@bondsports/types 2.4.83-a-1 → 2.4.83-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 (54) hide show
  1. package/dist/tsconfig.build.tsbuildinfo +1 -1
  2. package/dist/types/activities/types/activities.consts.d.ts +0 -2
  3. package/dist/types/activities/types/activities.consts.js +2 -138
  4. package/dist/types/activities/types/activities.consts.js.map +1 -1
  5. package/dist/types/employees/types/index.d.ts +1 -0
  6. package/dist/types/employees/types/index.js +1 -0
  7. package/dist/types/employees/types/index.js.map +1 -1
  8. package/dist/types/entity/Events.d.ts +0 -1
  9. package/dist/types/entity/Events.js.map +1 -1
  10. package/dist/types/folders/dto/folder-restrictions.dto.d.ts +0 -1
  11. package/dist/types/folders/dto/folder-restrictions.dto.js.map +1 -1
  12. package/dist/types/online-booking/types/classes/portals.classes.js.map +1 -1
  13. package/dist/types/online-booking/types/dto/portals.dto.js.map +1 -1
  14. package/dist/types/online-booking/types/dto/schedule.dto.js.map +1 -1
  15. package/dist/types/product-pricing/dto/product-pricing.dto.d.ts +3 -14
  16. package/dist/types/product-pricing/dto/product-pricing.dto.js.map +1 -1
  17. package/dist/types/product-pricing/dto/product.dto.d.ts +19 -17
  18. package/dist/types/product-pricing/dto/product.dto.js +10 -1
  19. package/dist/types/product-pricing/dto/product.dto.js.map +1 -1
  20. package/dist/types/product-pricing/types/consts/product-category.consts.d.ts +216 -22
  21. package/dist/types/product-pricing/types/consts/product-category.consts.js +54 -19
  22. package/dist/types/product-pricing/types/consts/product-category.consts.js.map +1 -1
  23. package/dist/types/product-pricing/types/enums/product.enums.d.ts +12 -1
  24. package/dist/types/product-pricing/types/enums/product.enums.js +21 -1
  25. package/dist/types/product-pricing/types/enums/product.enums.js.map +1 -1
  26. package/dist/types/product-pricing/types/interfaces/product-pricing.interfaces.d.ts +1 -13
  27. package/dist/types/programs/dto/event-public.dto.d.ts +1 -14
  28. package/dist/types/programs/dto/event-public.dto.js.map +1 -1
  29. package/dist/types/programs/dto/program-public.dto.d.ts +0 -2
  30. package/dist/types/programs/dto/program-public.dto.js.map +1 -1
  31. package/dist/types/programs/dto/program.dto.d.ts +1 -5
  32. package/dist/types/programs/dto/program.dto.js.map +1 -1
  33. package/dist/types/programs/dto/session-public.dto.d.ts +2 -5
  34. package/dist/types/programs/dto/session-public.dto.js.map +1 -1
  35. package/dist/types/programs/entities/Program.d.ts +0 -2
  36. package/dist/types/programs/entities/Program.js.map +1 -1
  37. package/dist/types/programs/types/enums/program.enums.d.ts +0 -1
  38. package/dist/types/programs/types/enums/program.enums.js +0 -1
  39. package/dist/types/programs/types/enums/program.enums.js.map +1 -1
  40. package/dist/types/programs/types/interfaces/index.d.ts +0 -1
  41. package/dist/types/programs/types/interfaces/index.js +0 -1
  42. package/dist/types/programs/types/interfaces/index.js.map +1 -1
  43. package/dist/types/programs-seasons/dto/program-session.dto.d.ts +0 -5
  44. package/dist/types/programs-seasons/dto/program-session.dto.js.map +1 -1
  45. package/dist/types/programs-seasons/entities/ProgramSeason.d.ts +0 -3
  46. package/dist/types/programs-seasons/entities/ProgramSeason.js.map +1 -1
  47. package/dist/types/programs-seasons/types/enums/program-season.enums.d.ts +0 -1
  48. package/dist/types/programs-seasons/types/enums/program-season.enums.js +0 -1
  49. package/dist/types/programs-seasons/types/enums/program-season.enums.js.map +1 -1
  50. package/dist/types/programs-seasons/types/interfaces/program-session.interfaces.d.ts +0 -14
  51. package/package.json +1 -1
  52. package/dist/types/programs/types/interfaces/program-scope-policy.interfaces.d.ts +0 -22
  53. package/dist/types/programs/types/interfaces/program-scope-policy.interfaces.js +0 -3
  54. package/dist/types/programs/types/interfaces/program-scope-policy.interfaces.js.map +0 -1
@@ -1,46 +1,71 @@
1
1
  import { TimeUnit } from '@bondsports/date-time';
2
- import { z } from 'zod';
2
+ import { z, ZodNumber } from 'zod';
3
3
  import { ResourceSubTypeEnum, ResourceTypeEnum } from '../../../services/enums.service';
4
- declare const _RESERVATION_SETTINGS_TYPE_SCHEMA: z.ZodObject<{
4
+ export declare const SLOT_ALLOWED_START_TIMES: number[];
5
+ export declare const RESERVATION_SETTINGS_SCHEMA: z.ZodEffects<z.ZodObject<{
5
6
  resourceTypes: z.ZodArray<z.ZodNativeEnum<typeof ResourceTypeEnum>, "atleastone">;
6
7
  approvalRequired: z.ZodDefault<z.ZodBoolean>;
7
8
  allowResourceSelection: z.ZodDefault<z.ZodBoolean>;
8
9
  prioritizedResourceAllocation: z.ZodNullable<z.ZodRecord<z.ZodNativeEnum<typeof ResourceSubTypeEnum>, z.ZodArray<z.ZodNumber, "atleastone">>>;
9
- bookingDurations: z.ZodObject<{
10
- minDuration: z.ZodObject<{
10
+ bookingDurations: z.ZodEffects<z.ZodObject<{
11
+ minDuration: z.ZodEffects<z.ZodObject<{
11
12
  amount: z.ZodNumber;
12
13
  unit: z.ZodNativeEnum<typeof TimeUnit>;
13
- }, "strip", z.ZodTypeAny, {
14
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
15
+ amount?: number;
16
+ unit?: TimeUnit;
17
+ }, {
18
+ amount?: number;
19
+ unit?: TimeUnit;
20
+ }>, {
14
21
  amount?: number;
15
22
  unit?: TimeUnit;
16
23
  }, {
17
24
  amount?: number;
18
25
  unit?: TimeUnit;
19
26
  }>;
20
- maxDuration: z.ZodObject<{
27
+ maxDuration: z.ZodEffects<z.ZodObject<{
21
28
  amount: z.ZodNumber;
22
29
  unit: z.ZodNativeEnum<typeof TimeUnit>;
23
- }, "strip", z.ZodTypeAny, {
30
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
31
+ amount?: number;
32
+ unit?: TimeUnit;
33
+ }, {
34
+ amount?: number;
35
+ unit?: TimeUnit;
36
+ }>, {
24
37
  amount?: number;
25
38
  unit?: TimeUnit;
26
39
  }, {
27
40
  amount?: number;
28
41
  unit?: TimeUnit;
29
42
  }>;
30
- durationStep: z.ZodObject<{
43
+ durationStep: z.ZodEffects<z.ZodObject<{
31
44
  amount: z.ZodNumber;
32
45
  unit: z.ZodNativeEnum<typeof TimeUnit>;
33
- }, "strip", z.ZodTypeAny, {
46
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
47
+ amount?: number;
48
+ unit?: TimeUnit;
49
+ }, {
50
+ amount?: number;
51
+ unit?: TimeUnit;
52
+ }>, {
34
53
  amount?: number;
35
54
  unit?: TimeUnit;
36
55
  }, {
37
56
  amount?: number;
38
57
  unit?: TimeUnit;
39
58
  }>;
40
- defaultDuration: z.ZodObject<{
59
+ defaultDuration: z.ZodEffects<z.ZodObject<{
41
60
  amount: z.ZodNumber;
42
61
  unit: z.ZodNativeEnum<typeof TimeUnit>;
43
- }, "strip", z.ZodTypeAny, {
62
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
63
+ amount?: number;
64
+ unit?: TimeUnit;
65
+ }, {
66
+ amount?: number;
67
+ unit?: TimeUnit;
68
+ }>, {
44
69
  amount?: number;
45
70
  unit?: TimeUnit;
46
71
  }, {
@@ -81,6 +106,40 @@ declare const _RESERVATION_SETTINGS_TYPE_SCHEMA: z.ZodObject<{
81
106
  amount?: number;
82
107
  unit?: TimeUnit;
83
108
  };
109
+ }>, {
110
+ minDuration?: {
111
+ amount?: number;
112
+ unit?: TimeUnit;
113
+ };
114
+ maxDuration?: {
115
+ amount?: number;
116
+ unit?: TimeUnit;
117
+ };
118
+ durationStep?: {
119
+ amount?: number;
120
+ unit?: TimeUnit;
121
+ };
122
+ defaultDuration?: {
123
+ amount?: number;
124
+ unit?: TimeUnit;
125
+ };
126
+ }, {
127
+ minDuration?: {
128
+ amount?: number;
129
+ unit?: TimeUnit;
130
+ };
131
+ maxDuration?: {
132
+ amount?: number;
133
+ unit?: TimeUnit;
134
+ };
135
+ durationStep?: {
136
+ amount?: number;
137
+ unit?: TimeUnit;
138
+ };
139
+ defaultDuration?: {
140
+ amount?: number;
141
+ unit?: TimeUnit;
142
+ };
84
143
  }>;
85
144
  default: z.ZodObject<{
86
145
  advanceBookingWindow: z.ZodObject<{
@@ -106,7 +165,7 @@ declare const _RESERVATION_SETTINGS_TYPE_SCHEMA: z.ZodObject<{
106
165
  maxBookingHours: z.ZodNullable<z.ZodObject<{
107
166
  amount: z.ZodNumber;
108
167
  unit: z.ZodNativeEnum<typeof TimeUnit>;
109
- }, "strip", z.ZodTypeAny, {
168
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
110
169
  amount?: number;
111
170
  unit?: TimeUnit;
112
171
  }, {
@@ -116,7 +175,7 @@ declare const _RESERVATION_SETTINGS_TYPE_SCHEMA: z.ZodObject<{
116
175
  maxSequentialBookings: z.ZodNullable<z.ZodObject<{
117
176
  amount: z.ZodNumber;
118
177
  unit: z.ZodNativeEnum<typeof TimeUnit>;
119
- }, "strip", z.ZodTypeAny, {
178
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
120
179
  amount?: number;
121
180
  unit?: TimeUnit;
122
181
  }, {
@@ -158,7 +217,7 @@ declare const _RESERVATION_SETTINGS_TYPE_SCHEMA: z.ZodObject<{
158
217
  unit?: TimeUnit;
159
218
  };
160
219
  }>;
161
- slotStartTime: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
220
+ slotStartTime: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, number, number>>>;
162
221
  allowOverlappingStartTimes: z.ZodDefault<z.ZodBoolean>;
163
222
  memberships: z.ZodNullable<z.ZodArray<z.ZodObject<{
164
223
  id: z.ZodString;
@@ -186,8 +245,8 @@ declare const _RESERVATION_SETTINGS_TYPE_SCHEMA: z.ZodObject<{
186
245
  }>;
187
246
  }, "strip", z.ZodTypeAny, {
188
247
  name?: string;
189
- membershipsIds?: [number, ...number[]];
190
248
  id?: string;
249
+ membershipsIds?: [number, ...number[]];
191
250
  advanceBookingWindow?: {
192
251
  amount?: number;
193
252
  unit?: TimeUnit;
@@ -198,8 +257,8 @@ declare const _RESERVATION_SETTINGS_TYPE_SCHEMA: z.ZodObject<{
198
257
  };
199
258
  }, {
200
259
  name?: string;
201
- membershipsIds?: [number, ...number[]];
202
260
  id?: string;
261
+ membershipsIds?: [number, ...number[]];
203
262
  advanceBookingWindow?: {
204
263
  amount?: number;
205
264
  unit?: TimeUnit;
@@ -254,8 +313,8 @@ declare const _RESERVATION_SETTINGS_TYPE_SCHEMA: z.ZodObject<{
254
313
  allowOverlappingStartTimes?: boolean;
255
314
  memberships?: [{
256
315
  name?: string;
257
- membershipsIds?: [number, ...number[]];
258
316
  id?: string;
317
+ membershipsIds?: [number, ...number[]];
259
318
  advanceBookingWindow?: {
260
319
  amount?: number;
261
320
  unit?: TimeUnit;
@@ -266,8 +325,8 @@ declare const _RESERVATION_SETTINGS_TYPE_SCHEMA: z.ZodObject<{
266
325
  };
267
326
  }, ...{
268
327
  name?: string;
269
- membershipsIds?: [number, ...number[]];
270
328
  id?: string;
329
+ membershipsIds?: [number, ...number[]];
271
330
  advanceBookingWindow?: {
272
331
  amount?: number;
273
332
  unit?: TimeUnit;
@@ -322,8 +381,76 @@ declare const _RESERVATION_SETTINGS_TYPE_SCHEMA: z.ZodObject<{
322
381
  allowOverlappingStartTimes?: boolean;
323
382
  memberships?: [{
324
383
  name?: string;
384
+ id?: string;
385
+ membershipsIds?: [number, ...number[]];
386
+ advanceBookingWindow?: {
387
+ amount?: number;
388
+ unit?: TimeUnit;
389
+ };
390
+ minimumBookingNotice?: {
391
+ amount?: number;
392
+ unit?: TimeUnit;
393
+ };
394
+ }, ...{
395
+ name?: string;
396
+ id?: string;
325
397
  membershipsIds?: [number, ...number[]];
398
+ advanceBookingWindow?: {
399
+ amount?: number;
400
+ unit?: TimeUnit;
401
+ };
402
+ minimumBookingNotice?: {
403
+ amount?: number;
404
+ unit?: TimeUnit;
405
+ };
406
+ }[]];
407
+ }>, {
408
+ default?: {
409
+ advanceBookingWindow?: {
410
+ amount?: number;
411
+ unit?: TimeUnit;
412
+ };
413
+ minimumBookingNotice?: {
414
+ amount?: number;
415
+ unit?: TimeUnit;
416
+ };
417
+ maxBookingHours?: {
418
+ amount?: number;
419
+ unit?: TimeUnit;
420
+ };
421
+ maxSequentialBookings?: {
422
+ amount?: number;
423
+ unit?: TimeUnit;
424
+ };
425
+ };
426
+ resourceTypes?: [ResourceTypeEnum, ...ResourceTypeEnum[]];
427
+ approvalRequired?: boolean;
428
+ allowResourceSelection?: boolean;
429
+ prioritizedResourceAllocation?: Partial<Record<ResourceSubTypeEnum, [number, ...number[]]>>;
430
+ bookingDurations?: {
431
+ minDuration?: {
432
+ amount?: number;
433
+ unit?: TimeUnit;
434
+ };
435
+ maxDuration?: {
436
+ amount?: number;
437
+ unit?: TimeUnit;
438
+ };
439
+ durationStep?: {
440
+ amount?: number;
441
+ unit?: TimeUnit;
442
+ };
443
+ defaultDuration?: {
444
+ amount?: number;
445
+ unit?: TimeUnit;
446
+ };
447
+ };
448
+ slotStartTime?: number;
449
+ allowOverlappingStartTimes?: boolean;
450
+ memberships?: [{
451
+ name?: string;
326
452
  id?: string;
453
+ membershipsIds?: [number, ...number[]];
327
454
  advanceBookingWindow?: {
328
455
  amount?: number;
329
456
  unit?: TimeUnit;
@@ -334,8 +461,76 @@ declare const _RESERVATION_SETTINGS_TYPE_SCHEMA: z.ZodObject<{
334
461
  };
335
462
  }, ...{
336
463
  name?: string;
464
+ id?: string;
337
465
  membershipsIds?: [number, ...number[]];
466
+ advanceBookingWindow?: {
467
+ amount?: number;
468
+ unit?: TimeUnit;
469
+ };
470
+ minimumBookingNotice?: {
471
+ amount?: number;
472
+ unit?: TimeUnit;
473
+ };
474
+ }[]];
475
+ }, {
476
+ default?: {
477
+ advanceBookingWindow?: {
478
+ amount?: number;
479
+ unit?: TimeUnit;
480
+ };
481
+ minimumBookingNotice?: {
482
+ amount?: number;
483
+ unit?: TimeUnit;
484
+ };
485
+ maxBookingHours?: {
486
+ amount?: number;
487
+ unit?: TimeUnit;
488
+ };
489
+ maxSequentialBookings?: {
490
+ amount?: number;
491
+ unit?: TimeUnit;
492
+ };
493
+ };
494
+ resourceTypes?: [ResourceTypeEnum, ...ResourceTypeEnum[]];
495
+ approvalRequired?: boolean;
496
+ allowResourceSelection?: boolean;
497
+ prioritizedResourceAllocation?: Partial<Record<ResourceSubTypeEnum, [number, ...number[]]>>;
498
+ bookingDurations?: {
499
+ minDuration?: {
500
+ amount?: number;
501
+ unit?: TimeUnit;
502
+ };
503
+ maxDuration?: {
504
+ amount?: number;
505
+ unit?: TimeUnit;
506
+ };
507
+ durationStep?: {
508
+ amount?: number;
509
+ unit?: TimeUnit;
510
+ };
511
+ defaultDuration?: {
512
+ amount?: number;
513
+ unit?: TimeUnit;
514
+ };
515
+ };
516
+ slotStartTime?: number;
517
+ allowOverlappingStartTimes?: boolean;
518
+ memberships?: [{
519
+ name?: string;
338
520
  id?: string;
521
+ membershipsIds?: [number, ...number[]];
522
+ advanceBookingWindow?: {
523
+ amount?: number;
524
+ unit?: TimeUnit;
525
+ };
526
+ minimumBookingNotice?: {
527
+ amount?: number;
528
+ unit?: TimeUnit;
529
+ };
530
+ }, ...{
531
+ name?: string;
532
+ id?: string;
533
+ membershipsIds?: [number, ...number[]];
339
534
  advanceBookingWindow?: {
340
535
  amount?: number;
341
536
  unit?: TimeUnit;
@@ -346,14 +541,13 @@ declare const _RESERVATION_SETTINGS_TYPE_SCHEMA: z.ZodObject<{
346
541
  };
347
542
  }[]];
348
543
  }>;
349
- declare const _GOODS_SETTINGS_TYPE_SCHEMA: z.ZodObject<{
544
+ export type TProductCategoryOnlineBookingSettings = z.infer<typeof RESERVATION_SETTINGS_SCHEMA>;
545
+ export declare const GOODS_SETTINGS_SCHEMA: z.ZodObject<{
350
546
  colorCodeId: z.ZodNullable<z.ZodNumber>;
351
547
  }, "strip", z.ZodTypeAny, {
352
548
  colorCodeId?: number;
353
549
  }, {
354
550
  colorCodeId?: number;
355
551
  }>;
356
- export type TProductCategoryOnlineBookingSettings = z.infer<typeof _RESERVATION_SETTINGS_TYPE_SCHEMA>;
357
- export type TProductCategoryGoodsSettings = z.infer<typeof _GOODS_SETTINGS_TYPE_SCHEMA>;
552
+ export type TProductCategoryGoodsSettings = z.infer<typeof GOODS_SETTINGS_SCHEMA>;
358
553
  export declare const RESERVATION_DEFAULT_SETTINGS: TProductCategoryOnlineBookingSettings;
359
- export {};
@@ -1,12 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RESERVATION_DEFAULT_SETTINGS = void 0;
3
+ exports.RESERVATION_DEFAULT_SETTINGS = exports.GOODS_SETTINGS_SCHEMA = exports.RESERVATION_SETTINGS_SCHEMA = exports.SLOT_ALLOWED_START_TIMES = void 0;
4
4
  const date_time_1 = require("@bondsports/date-time");
5
5
  const zod_1 = require("zod");
6
6
  const enums_service_1 = require("../../../services/enums.service");
7
- const DEFAULT_ADVANCE_BOOKING_WINDOW_DAYS = 14;
8
- const DEFAULT_MIN_DURATION_MINUTES = 30;
9
- const DEFAULT_MAX_DURATION_HOURS = 2;
7
+ const QUARTER_HOUR_OFFSET = 15;
8
+ const HALF_HOUR_OFFSET = 30;
9
+ const THREE_QUARTER_HOUR_OFFSET = 45;
10
+ exports.SLOT_ALLOWED_START_TIMES = [0, QUARTER_HOUR_OFFSET, HALF_HOUR_OFFSET, THREE_QUARTER_HOUR_OFFSET];
11
+ const FIFTEEN_MINUTES = 15;
12
+ const MINIMUM_DURATION_IN_MINUTES = (0, date_time_1.getDuration)(FIFTEEN_MINUTES, date_time_1.TimeUnit.MINUTE, date_time_1.TimeUnit.MINUTE);
10
13
  const INTEGER_SCHEMA = zod_1.z.number().int().min(1);
11
14
  const DURATION_SCHEMA = zod_1.z
12
15
  .object({
@@ -14,45 +17,77 @@ const DURATION_SCHEMA = zod_1.z
14
17
  unit: zod_1.z.nativeEnum(date_time_1.TimeUnit),
15
18
  })
16
19
  .required();
17
- const _RESERVATION_SETTINGS_TYPE_SCHEMA = zod_1.z.object({
20
+ const DURATION_WITH_LIMIT_SCHEMA = DURATION_SCHEMA.superRefine((value, ctx) => {
21
+ const durationInMinutes = (0, date_time_1.getDuration)(value.amount, value.unit, date_time_1.TimeUnit.MINUTE);
22
+ });
23
+ exports.RESERVATION_SETTINGS_SCHEMA = zod_1.z
24
+ .object({
18
25
  resourceTypes: zod_1.z.array(zod_1.z.nativeEnum(enums_service_1.ResourceTypeEnum)).nonempty(),
19
26
  approvalRequired: zod_1.z.boolean().default(true),
20
27
  allowResourceSelection: zod_1.z.boolean().default(false),
21
28
  prioritizedResourceAllocation: zod_1.z
22
29
  .record(zod_1.z.nativeEnum(enums_service_1.ResourceSubTypeEnum), zod_1.z.array(zod_1.z.number().int().min(0)).nonempty())
23
30
  .nullable(),
24
- bookingDurations: zod_1.z.object({
25
- minDuration: DURATION_SCHEMA,
26
- maxDuration: DURATION_SCHEMA,
27
- durationStep: DURATION_SCHEMA,
28
- defaultDuration: DURATION_SCHEMA,
31
+ bookingDurations: zod_1.z
32
+ .object({
33
+ minDuration: DURATION_WITH_LIMIT_SCHEMA,
34
+ maxDuration: DURATION_WITH_LIMIT_SCHEMA,
35
+ durationStep: DURATION_WITH_LIMIT_SCHEMA,
36
+ defaultDuration: DURATION_WITH_LIMIT_SCHEMA,
37
+ })
38
+ .superRefine(({ defaultDuration, durationStep, maxDuration, minDuration }, ctx) => {
39
+ const max = (0, date_time_1.getDuration)(maxDuration.amount, maxDuration.unit, date_time_1.TimeUnit.MINUTE);
40
+ const min = (0, date_time_1.getDuration)(minDuration.amount, minDuration.unit, date_time_1.TimeUnit.MINUTE);
41
+ const defaultDurationMinutes = (0, date_time_1.getDuration)(defaultDuration.amount, defaultDuration.unit, date_time_1.TimeUnit.MINUTE);
42
+ const durationStepMinutes = (0, date_time_1.getDuration)(durationStep.amount, durationStep.unit, date_time_1.TimeUnit.MINUTE);
29
43
  }),
30
44
  default: zod_1.z.object({
31
- advanceBookingWindow: DURATION_SCHEMA,
32
- minimumBookingNotice: DURATION_SCHEMA,
45
+ advanceBookingWindow: zod_1.z.object({
46
+ amount: INTEGER_SCHEMA,
47
+ unit: zod_1.z.nativeEnum(date_time_1.TimeUnit),
48
+ }),
49
+ minimumBookingNotice: zod_1.z.object({
50
+ amount: INTEGER_SCHEMA,
51
+ unit: zod_1.z.nativeEnum(date_time_1.TimeUnit),
52
+ }),
33
53
  maxBookingHours: DURATION_SCHEMA.nullable(),
34
54
  maxSequentialBookings: DURATION_SCHEMA.nullable(),
35
55
  }),
36
- slotStartTime: zod_1.z.number().int().nullable().default(null),
56
+ slotStartTime: zod_1.z
57
+ .number()
58
+ .int()
59
+ .refine(val => exports.SLOT_ALLOWED_START_TIMES.includes(val))
60
+ .nullable()
61
+ .default(null),
37
62
  allowOverlappingStartTimes: zod_1.z.boolean().default(false),
38
63
  memberships: zod_1.z
39
64
  .array(zod_1.z.object({
40
65
  id: zod_1.z.string().uuid(),
41
66
  name: zod_1.z.string(),
42
67
  membershipsIds: zod_1.z.array(zod_1.z.number().int()).nonempty(),
43
- advanceBookingWindow: DURATION_SCHEMA,
44
- minimumBookingNotice: DURATION_SCHEMA,
68
+ advanceBookingWindow: zod_1.z.object({
69
+ amount: INTEGER_SCHEMA,
70
+ unit: zod_1.z.nativeEnum(date_time_1.TimeUnit),
71
+ }),
72
+ minimumBookingNotice: zod_1.z.object({
73
+ amount: INTEGER_SCHEMA,
74
+ unit: zod_1.z.nativeEnum(date_time_1.TimeUnit),
75
+ }),
45
76
  }))
46
77
  .nonempty()
47
78
  .nullable(),
79
+ })
80
+ .superRefine((settings, ctx) => {
81
+ const membershipIds = settings.memberships?.flatMap(setting => setting.membershipsIds) ?? [];
82
+ const uniqueMembershipIds = [...new Set(membershipIds)];
48
83
  });
49
- const _GOODS_SETTINGS_TYPE_SCHEMA = zod_1.z.object({
84
+ exports.GOODS_SETTINGS_SCHEMA = zod_1.z.object({
50
85
  colorCodeId: zod_1.z.number().int().nullable(),
51
86
  });
52
87
  exports.RESERVATION_DEFAULT_SETTINGS = {
53
88
  default: {
54
89
  advanceBookingWindow: {
55
- amount: DEFAULT_ADVANCE_BOOKING_WINDOW_DAYS,
90
+ amount: 14,
56
91
  unit: date_time_1.TimeUnit.DAY,
57
92
  },
58
93
  minimumBookingNotice: {
@@ -64,11 +99,11 @@ exports.RESERVATION_DEFAULT_SETTINGS = {
64
99
  },
65
100
  bookingDurations: {
66
101
  minDuration: {
67
- amount: DEFAULT_MIN_DURATION_MINUTES,
102
+ amount: 30,
68
103
  unit: date_time_1.TimeUnit.MINUTE,
69
104
  },
70
105
  maxDuration: {
71
- amount: DEFAULT_MAX_DURATION_HOURS,
106
+ amount: 2,
72
107
  unit: date_time_1.TimeUnit.HOUR,
73
108
  },
74
109
  durationStep: {
@@ -1 +1 @@
1
- {"version":3,"file":"product-category.consts.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/consts/product-category.consts.ts"],"names":[],"mappings":";;;AAAA,qDAAiD;AACjD,6BAAmC;AAEnC,mEAAwF;AAExF,MAAM,mCAAmC,GAAG,EAAE,CAAC;AAC/C,MAAM,4BAA4B,GAAG,EAAE,CAAC;AACxC,MAAM,0BAA0B,GAAG,CAAC,CAAC;AAErC,MAAM,cAAc,GAAc,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAE1D,MAAM,eAAe,GAAG,OAAC;KACvB,MAAM,CAAC;IACP,MAAM,EAAE,cAAc;IACtB,IAAI,EAAE,OAAC,CAAC,UAAU,CAAC,oBAAQ,CAAC;CAC5B,CAAC;KACD,QAAQ,EAAE,CAAC;AAEb,MAAM,iCAAiC,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,aAAa,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,UAAU,CAAC,gCAAgB,CAAC,CAAC,CAAC,QAAQ,EAAE;IAEjE,gBAAgB,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;IAE3C,sBAAsB,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IAElD,6BAA6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AE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;CACxC,CAAC,CAAC;AAMU,QAAA,4BAA4B,GAA0C;IAClF,OAAO,EAAE;QACR,oBAAoB,EAAE;YACrB,MAAM,EAAE,mCAAmC;YAC3C,IAAI,EAAE,oBAAQ,CAAC,GAAG;SAClB;QACD,oBAAoB,EAAE;YACrB,MAAM,EAAE,CAAC;YACT,IAAI,EAAE,oBAAQ,CAAC,GAAG;SAClB;QACD,eAAe,EAAE,IAAI;QACrB,qBAAqB,EAAE,IAAI;KAC3B;IACD,gBAAgB,EAAE;QACjB,WAAW,EAAE;YACZ,MAAM,EAAE,4BAA4B;YACpC,IAAI,EAAE,oBAAQ,CAAC,MAAM;SACrB;QACD,WAAW,EAAE;YACZ,MAAM,EAAE,0BAA0B;YAClC,IAAI,EAAE,oBAAQ,CAAC,IAAI;SACnB;QACD,YAAY,EAAE;YACb,MAAM,EAAE,CAAC;YACT,IAAI,EAAE,oBAAQ,CAAC,IAAI;SACnB;QACD,eAAe,EAAE;YAChB,MAAM,EAAE,CAAC;YACT,IAAI,EAAE,oBAAQ,CAAC,IAAI;SACnB;KACD;IACD,aAAa,EAAE,IAAI;IACnB,0BAA0B,EAAE,KAAK;IACjC,WAAW,EAAE,IAAI;IACjB,gBAAgB,EAAE,KAAK;IACvB,sBAAsB,EAAE,IAAI;IAC5B,6BAA6B,EAAE,IAAI;CACnC,CAAC"}
1
+ {"version":3,"file":"product-category.consts.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/consts/product-category.consts.ts"],"names":[],"mappings":";;;AAAA,qDAA8D;AAE9D,6BAAmC;AAEnC,mEAAwF;AAExF,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAC/B,MAAM,gBAAgB,GAAG,EAAE,CAAC;AAC5B,MAAM,yBAAyB,GAAG,EAAE,CAAC;AAExB,QAAA,wBAAwB,GAAa,CAAC,CAAC,EAAE,mBAAmB,EAAE,gBAAgB,EAAE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AM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;CACxC,CAAC,CAAC;AAIU,QAAA,4BAA4B,GAA0C;IAClF,OAAO,EAAE;QACR,oBAAoB,EAAE;YACrB,MAAM,EAAE,EAAE;YACV,IAAI,EAAE,oBAAQ,CAAC,GAAG;SAClB;QACD,oBAAoB,EAAE;YACrB,MAAM,EAAE,CAAC;YACT,IAAI,EAAE,oBAAQ,CAAC,GAAG;SAClB;QACD,eAAe,EAAE,IAAI;QACrB,qBAAqB,EAAE,IAAI;KAC3B;IACD,gBAAgB,EAAE;QACjB,WAAW,EAAE;YACZ,MAAM,EAAE,EAAE;YACV,IAAI,EAAE,oBAAQ,CAAC,MAAM;SACrB;QACD,WAAW,EAAE;YACZ,MAAM,EAAE,CAAC;YACT,IAAI,EAAE,oBAAQ,CAAC,IAAI;SACnB;QACD,YAAY,EAAE;YACb,MAAM,EAAE,CAAC;YACT,IAAI,EAAE,oBAAQ,CAAC,IAAI;SACnB;QACD,eAAe,EAAE;YAChB,MAAM,EAAE,CAAC;YACT,IAAI,EAAE,oBAAQ,CAAC,IAAI;SACnB;KACD;IACD,aAAa,EAAE,IAAI;IACnB,0BAA0B,EAAE,KAAK;IACjC,WAAW,EAAE,IAAI;IACjB,gBAAgB,EAAE,KAAK;IACvB,sBAAsB,EAAE,IAAI;IAC5B,6BAA6B,EAAE,IAAI;CACnC,CAAC"}
@@ -21,8 +21,19 @@ export declare enum ProductExpandEnum {
21
21
  PRODUCT_PACKAGES = "packages",
22
22
  PRICING_SCHEDULE = "pricingSchedule",
23
23
  ACTIVITY_TIMES = "activityTimes",
24
- MEDIA = "media"
24
+ MEDIA = "media",
25
+ RESOURCES = "resources",
26
+ PRODUCT_RESOURCES = "productResources",
27
+ FACILITIES = "facilities",
28
+ GL_CODES = "glCodes",
29
+ PRODUCT_CATEGORIES = "productCategories",
30
+ CUSTOMERS = "customers",
31
+ PAYMENT_PLANS = "paymentPlans",
32
+ RESOURCE_SETTINGS = "resourceSettings",
33
+ PUNCH_PASS = "punchPass",
34
+ VARIANTS = "variants"
25
35
  }
36
+ export declare const PUBLIC_PRODUCT_EXPAND_VALUES: ProductExpandEnum[];
26
37
  export declare enum ProductBuilderTypeEnum {
27
38
  RENTAL = "rental",
28
39
  PROGRAM_PUNCH_PASS = "program_punch_pass",
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ProductBuilderTypeEnum = exports.ProductExpandEnum = exports.OrderByProductEnum = exports.ProductStateEnum = void 0;
3
+ exports.ProductBuilderTypeEnum = 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";
@@ -28,7 +28,27 @@ var ProductExpandEnum;
28
28
  ProductExpandEnum["PRICING_SCHEDULE"] = "pricingSchedule";
29
29
  ProductExpandEnum["ACTIVITY_TIMES"] = "activityTimes";
30
30
  ProductExpandEnum["MEDIA"] = "media";
31
+ ProductExpandEnum["RESOURCES"] = "resources";
32
+ ProductExpandEnum["PRODUCT_RESOURCES"] = "productResources";
33
+ ProductExpandEnum["FACILITIES"] = "facilities";
34
+ ProductExpandEnum["GL_CODES"] = "glCodes";
35
+ ProductExpandEnum["PRODUCT_CATEGORIES"] = "productCategories";
36
+ ProductExpandEnum["CUSTOMERS"] = "customers";
37
+ ProductExpandEnum["PAYMENT_PLANS"] = "paymentPlans";
38
+ ProductExpandEnum["RESOURCE_SETTINGS"] = "resourceSettings";
39
+ ProductExpandEnum["PUNCH_PASS"] = "punchPass";
40
+ ProductExpandEnum["VARIANTS"] = "variants";
31
41
  })(ProductExpandEnum = exports.ProductExpandEnum || (exports.ProductExpandEnum = {}));
42
+ exports.PUBLIC_PRODUCT_EXPAND_VALUES = [
43
+ ProductExpandEnum.PRICES,
44
+ ProductExpandEnum.REQUIRED_PRODUCTS,
45
+ ProductExpandEnum.ENTITLEMENT_DISCOUNTS,
46
+ ProductExpandEnum.ACCOUNTING_CODES,
47
+ ProductExpandEnum.PRODUCT_PACKAGES,
48
+ ProductExpandEnum.PRICING_SCHEDULE,
49
+ ProductExpandEnum.ACTIVITY_TIMES,
50
+ ProductExpandEnum.MEDIA,
51
+ ];
32
52
  var ProductBuilderTypeEnum;
33
53
  (function (ProductBuilderTypeEnum) {
34
54
  ProductBuilderTypeEnum["RENTAL"] = "rental";
@@ -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,iBASX;AATD,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;AAChB,CAAC,EATW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAS5B;AAED,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,iBAmBX;AAnBD,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,yCAAoB,CAAA;IACpB,6DAAwC,CAAA;IACxC,4CAAuB,CAAA;IACvB,mDAA8B,CAAA;IAC9B,2DAAsC,CAAA;IACtC,6CAAwB,CAAA;IACxB,0CAAqB,CAAA;AACtB,CAAC,EAnBW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAmB5B;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,IAAY,sBAIX;AAJD,WAAY,sBAAsB;IACjC,2CAAiB,CAAA;IACjB,mEAAyC,CAAA;IACzC,iEAAuC,CAAA;AACxC,CAAC,EAJW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAIjC"}
@@ -22,22 +22,10 @@ export interface IGetProductsByTypeOptions extends IPagination {
22
22
  customersIds?: number[];
23
23
  excludeProductIds?: number[];
24
24
  excludeResourceIds?: number[];
25
+ expand?: ProductExpandEnum[];
25
26
  facilitiesIds?: number[];
26
- includeActivityTimes?: boolean;
27
27
  includeArchived?: boolean;
28
- includeCurrentPrice?: boolean;
29
- includeCustomers?: boolean;
30
- includeEntitlementDiscounts?: boolean;
31
- includeFacilities?: boolean;
32
- includeGlCodes?: boolean;
33
28
  includeOnlyNotAssignedToCategory?: boolean;
34
- includePaymentPlan?: boolean;
35
- includePricesSchedule?: boolean;
36
- includeProductCategories?: boolean;
37
- includeProductResources?: boolean;
38
- includePunchPass?: boolean;
39
- includeResources?: boolean;
40
- includeResourceSettings?: boolean;
41
29
  inclusion?: boolean;
42
30
  instructorsIds?: number[];
43
31
  isAvailableOnline?: boolean;
@@ -1,5 +1,4 @@
1
- import { IdAndNameDto, PaginationQuery, SimpleResourceDto } from '../../dto/general.dto';
2
- import { EventSubTypeEnum } from '../../leagues-scheduler/types/enums';
1
+ import { PaginationQuery, SimpleResourceDto } from '../../dto/general.dto';
3
2
  import { OrganizationBaseEntityDto } from '../../organization/dto/organization.dto';
4
3
  import { EventExpandEnum } from '../../programs-seasons/types/enums/program-season.enums';
5
4
  import { RegistrationWindowStatusEnum } from '../../services/enums.service';
@@ -7,10 +6,6 @@ export declare class GetEventsFiltersDto extends PaginationQuery {
7
6
  startDate?: string;
8
7
  endDate?: string;
9
8
  expand?: EventExpandEnum[];
10
- teamIds?: number[];
11
- groupIds?: number[];
12
- parentGroupIds?: number[];
13
- eventSubTypes?: EventSubTypeEnum[];
14
9
  }
15
10
  export declare class EventDto extends OrganizationBaseEntityDto {
16
11
  title: string;
@@ -22,13 +17,5 @@ export declare class EventDto extends OrganizationBaseEntityDto {
22
17
  participantsNumber?: number;
23
18
  spotsLeft?: number;
24
19
  isWaitlistEnabled?: boolean;
25
- isGroupEvent?: boolean;
26
20
  resources?: SimpleResourceDto[];
27
- eventSubType?: string;
28
- homeTeam?: IdAndNameDto;
29
- awayTeam?: IdAndNameDto;
30
- homeParentGroup?: IdAndNameDto;
31
- awayParentGroup?: IdAndNameDto;
32
- group?: IdAndNameDto;
33
- parentGroup?: IdAndNameDto;
34
21
  }
@@ -1 +1 @@
1
- {"version":3,"file":"event-public.dto.js","sourceRoot":"","sources":["../../../../src/types/programs/dto/event-public.dto.ts"],"names":[],"mappings":";;;AACA,uDAAyF;AAEzF,8EAAoF;AAIpF,MAAa,mBAAoB,SAAQ,6BAAe;CAcvD;AAdD,kDAcC;AAED,MAAa,QAAS,SAAQ,4CAAyB;CAoCtD;AApCD,4BAoCC"}
1
+ {"version":3,"file":"event-public.dto.js","sourceRoot":"","sources":["../../../../src/types/programs/dto/event-public.dto.ts"],"names":[],"mappings":";;;AACA,uDAA2E;AAC3E,8EAAoF;AAIpF,MAAa,mBAAoB,SAAQ,6BAAe;CAMvD;AAND,kDAMC;AAED,MAAa,QAAS,SAAQ,4CAAyB;CAoBtD;AApBD,4BAoBC"}
@@ -26,9 +26,7 @@ export declare class OrganizationProgramsFiltersDto extends PaginationQuery impl
26
26
  export declare class ProgramDto extends OrganizationBaseEntityDto {
27
27
  type: ProgramTypeNameEnum;
28
28
  name: string;
29
- /** Deprecated — equals sports[0]. Removed in v5. Tracked: BOND-18629. */
30
29
  sport: SportNameEnum;
31
- sports: SportNameEnum[];
32
30
  minAge: number;
33
31
  maxAge: number;
34
32
  gender: GenderNameEnum;
@@ -1 +1 @@
1
- {"version":3,"file":"program-public.dto.js","sourceRoot":"","sources":["../../../../src/types/programs/dto/program-public.dto.ts"],"names":[],"mappings":";;;AAGA,uDAA6E;AAG7E,8EAAoF;AAqBpF,MAAa,8BAA+B,SAAQ,6BAAe;CA4BlE;AA5BD,wEA4BC;AAED,MAAa,UAAW,SAAQ,4CAAyB;CA+BxD;AA/BD,gCA+BC"}
1
+ {"version":3,"file":"program-public.dto.js","sourceRoot":"","sources":["../../../../src/types/programs/dto/program-public.dto.ts"],"names":[],"mappings":";;;AAGA,uDAA6E;AAG7E,8EAAoF;AAqBpF,MAAa,8BAA+B,SAAQ,6BAAe;CA4BlE;AA5BD,wEA4BC;AAED,MAAa,UAAW,SAAQ,4CAAyB;CA4BxD;AA5BD,gCA4BC"}
@@ -60,9 +60,7 @@ export declare class ProgramHighlightDto {
60
60
  export declare class BaseProgramDto {
61
61
  type?: ProgramTypesEnum;
62
62
  name?: string;
63
- /** Deprecated — use sports[] instead. Still accepted on program create/update; coerced to sports = [sport] when sports is omitted. Removal tracked: BOND-18628. */
64
- sport?: SportsEnum;
65
- sports?: SportsEnum[];
63
+ sport: SportsEnum;
66
64
  minAge: string;
67
65
  maxAge: string;
68
66
  gender: GenderEnum;
@@ -89,9 +87,7 @@ export declare class UpdateProgramOptionsDto {
89
87
  updateChildrenGls?: boolean;
90
88
  }
91
89
  export declare class SimpleProgramDto extends IdAndNameDto {
92
- /** Deprecated — equals sports[0]. Removed in v5. Tracked: BOND-18629. */
93
90
  sport?: SportsEnum;
94
- sports?: SportsEnum[];
95
91
  type?: ProgramTypesEnum;
96
92
  status?: PublishingStatusEnum;
97
93
  gender?: GenderEnum;