@bondsports/types 2.4.11 → 2.4.14-squad-c-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.
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/auth/auth-headers-names.enum.d.ts +6 -0
- package/dist/types/auth/auth-headers-names.enum.js +8 -1
- package/dist/types/auth/auth-headers-names.enum.js.map +1 -1
- package/dist/types/cart/types/interfaces/cart.interfaces.d.ts +0 -1
- package/dist/types/customers/dto/add-family-member.dto.d.ts +2 -1
- package/dist/types/customers/dto/add-family-member.dto.js.map +1 -1
- package/dist/types/customers/dto/customer-response.dto.d.ts +9 -0
- package/dist/types/customers/dto/customer-response.dto.js +9 -1
- package/dist/types/customers/dto/customer-response.dto.js.map +1 -1
- package/dist/types/customers/types/interfaces.d.ts +4 -0
- package/dist/types/entity/Invoice.d.ts +2 -0
- package/dist/types/entity/Invoice.js.map +1 -1
- package/dist/types/invoice/types/consts/index.d.ts +1 -0
- package/dist/types/invoice/types/consts/index.js +1 -0
- package/dist/types/invoice/types/consts/index.js.map +1 -1
- package/dist/types/invoice/types/consts/invoice-visibility.consts.d.ts +11 -0
- package/dist/types/invoice/types/consts/invoice-visibility.consts.js +24 -0
- package/dist/types/invoice/types/consts/invoice-visibility.consts.js.map +1 -0
- package/dist/types/invoice/types/enums/index.d.ts +1 -0
- package/dist/types/invoice/types/enums/index.js +18 -0
- package/dist/types/invoice/types/enums/index.js.map +1 -0
- package/dist/types/invoice/types/enums/invoice-visibility.enums.d.ts +19 -0
- package/dist/types/invoice/types/enums/invoice-visibility.enums.js +25 -0
- package/dist/types/invoice/types/enums/invoice-visibility.enums.js.map +1 -0
- package/dist/types/invoice/types/index.d.ts +1 -0
- package/dist/types/invoice/types/index.js +1 -0
- package/dist/types/invoice/types/index.js.map +1 -1
- package/dist/types/league-standings/interfaces/competition-team.interface.d.ts +10 -0
- package/dist/types/league-standings/interfaces/competition-team.interface.js +3 -0
- package/dist/types/league-standings/interfaces/competition-team.interface.js.map +1 -0
- package/dist/types/league-standings/interfaces/index.d.ts +4 -0
- package/dist/types/league-standings/interfaces/index.js +4 -0
- package/dist/types/league-standings/interfaces/index.js.map +1 -1
- package/dist/types/league-standings/interfaces/standings.interface.d.ts +4 -0
- package/dist/types/league-standings/interfaces/standings.interface.js +3 -0
- package/dist/types/league-standings/interfaces/standings.interface.js.map +1 -0
- package/dist/types/product-pricing/dto/index.d.ts +1 -0
- package/dist/types/product-pricing/dto/index.js +1 -0
- package/dist/types/product-pricing/dto/index.js.map +1 -1
- package/dist/types/product-pricing/dto/product-categories.dto.d.ts +43 -0
- package/dist/types/product-pricing/dto/product-categories.dto.js +30 -0
- package/dist/types/product-pricing/dto/product-categories.dto.js.map +1 -0
- package/dist/types/product-pricing/dto/product-pricing.dto.d.ts +3 -0
- package/dist/types/product-pricing/dto/product-pricing.dto.js.map +1 -1
- package/dist/types/product-pricing/dto/product.dto.d.ts +2 -0
- package/dist/types/product-pricing/dto/product.dto.js.map +1 -1
- package/dist/types/product-pricing/entities/index.d.ts +1 -0
- package/dist/types/product-pricing/entities/index.js +1 -0
- package/dist/types/product-pricing/entities/index.js.map +1 -1
- package/dist/types/product-pricing/entities/product-category.entity.d.ts +12 -0
- package/dist/types/product-pricing/entities/product-category.entity.js +8 -0
- package/dist/types/product-pricing/entities/product-category.entity.js.map +1 -0
- package/dist/types/product-pricing/entities/product.entity.d.ts +3 -0
- package/dist/types/product-pricing/entities/product.entity.js.map +1 -1
- package/dist/types/product-pricing/types/consts/index.d.ts +1 -0
- package/dist/types/product-pricing/types/consts/index.js +1 -0
- package/dist/types/product-pricing/types/consts/index.js.map +1 -1
- package/dist/types/product-pricing/types/consts/product-category.consts.d.ts +455 -0
- package/dist/types/product-pricing/types/consts/product-category.consts.js +116 -0
- package/dist/types/product-pricing/types/consts/product-category.consts.js.map +1 -0
- package/dist/types/product-pricing/types/enums/index.d.ts +1 -0
- package/dist/types/product-pricing/types/enums/index.js +1 -0
- package/dist/types/product-pricing/types/enums/index.js.map +1 -1
- package/dist/types/product-pricing/types/enums/product-categories.enums.d.ts +8 -0
- package/dist/types/product-pricing/types/enums/product-categories.enums.js +13 -0
- package/dist/types/product-pricing/types/enums/product-categories.enums.js.map +1 -0
- package/dist/types/product-pricing/types/enums/product.enums.d.ts +2 -1
- package/dist/types/product-pricing/types/enums/product.enums.js +1 -0
- package/dist/types/product-pricing/types/enums/product.enums.js.map +1 -1
- package/dist/types/product-pricing/types/interfaces/index.d.ts +1 -0
- package/dist/types/product-pricing/types/interfaces/index.js +1 -0
- package/dist/types/product-pricing/types/interfaces/index.js.map +1 -1
- package/dist/types/product-pricing/types/interfaces/product-categories.interfaces.d.ts +25 -0
- package/dist/types/product-pricing/types/interfaces/product-categories.interfaces.js +3 -0
- package/dist/types/product-pricing/types/interfaces/product-categories.interfaces.js.map +1 -0
- package/dist/types/product-pricing/types/interfaces/product-pricing.interfaces.d.ts +3 -0
- package/dist/types/product-pricing/types/interfaces/validate-resources.interfaces.d.ts +0 -1
- package/dist/types/programs-seasons/dto/program-session.dto.d.ts +1 -0
- package/dist/types/programs-seasons/dto/program-session.dto.js.map +1 -1
- package/dist/types/programs-seasons/types/interfaces/program-session.interfaces.d.ts +20 -2
- package/dist/types/punch-pass/types/interfaces.d.ts +38 -0
- package/dist/types/services/enums.service.d.ts +3 -1
- package/dist/types/services/enums.service.js +2 -0
- package/dist/types/services/enums.service.js.map +1 -1
- package/dist/types/session-participants/types/interfaces.d.ts +27 -0
- package/package.json +4 -3
|
@@ -0,0 +1,455 @@
|
|
|
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.ZodRecord<z.ZodString, z.ZodObject<{
|
|
196
|
+
name: z.ZodString;
|
|
197
|
+
membershipsIds: z.ZodArray<z.ZodNumber, "atleastone">;
|
|
198
|
+
advanceBookingWindow: z.ZodRecord<z.ZodNumber, z.ZodObject<{
|
|
199
|
+
amount: z.ZodNumber;
|
|
200
|
+
unit: z.ZodNativeEnum<typeof TimeUnit>;
|
|
201
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
202
|
+
amount?: number;
|
|
203
|
+
unit?: TimeUnit;
|
|
204
|
+
}, {
|
|
205
|
+
amount?: number;
|
|
206
|
+
unit?: TimeUnit;
|
|
207
|
+
}>>;
|
|
208
|
+
minimumBookingNotice: z.ZodRecord<z.ZodNumber, z.ZodObject<{
|
|
209
|
+
amount: z.ZodNumber;
|
|
210
|
+
unit: z.ZodNativeEnum<typeof TimeUnit>;
|
|
211
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
212
|
+
amount?: number;
|
|
213
|
+
unit?: TimeUnit;
|
|
214
|
+
}, {
|
|
215
|
+
amount?: number;
|
|
216
|
+
unit?: TimeUnit;
|
|
217
|
+
}>>;
|
|
218
|
+
}, "strip", z.ZodTypeAny, {
|
|
219
|
+
name?: string;
|
|
220
|
+
membershipsIds?: [number, ...number[]];
|
|
221
|
+
advanceBookingWindow?: Record<number, {
|
|
222
|
+
amount?: number;
|
|
223
|
+
unit?: TimeUnit;
|
|
224
|
+
}>;
|
|
225
|
+
minimumBookingNotice?: Record<number, {
|
|
226
|
+
amount?: number;
|
|
227
|
+
unit?: TimeUnit;
|
|
228
|
+
}>;
|
|
229
|
+
}, {
|
|
230
|
+
name?: string;
|
|
231
|
+
membershipsIds?: [number, ...number[]];
|
|
232
|
+
advanceBookingWindow?: Record<number, {
|
|
233
|
+
amount?: number;
|
|
234
|
+
unit?: TimeUnit;
|
|
235
|
+
}>;
|
|
236
|
+
minimumBookingNotice?: Record<number, {
|
|
237
|
+
amount?: number;
|
|
238
|
+
unit?: TimeUnit;
|
|
239
|
+
}>;
|
|
240
|
+
}>>>;
|
|
241
|
+
}, "strip", z.ZodTypeAny, {
|
|
242
|
+
default?: {
|
|
243
|
+
advanceBookingWindow?: {
|
|
244
|
+
amount?: number;
|
|
245
|
+
unit?: TimeUnit;
|
|
246
|
+
};
|
|
247
|
+
minimumBookingNotice?: {
|
|
248
|
+
amount?: number;
|
|
249
|
+
unit?: TimeUnit;
|
|
250
|
+
};
|
|
251
|
+
maxBookingHours?: {
|
|
252
|
+
amount?: number;
|
|
253
|
+
unit?: TimeUnit;
|
|
254
|
+
};
|
|
255
|
+
maxSequentialBookings?: {
|
|
256
|
+
amount?: number;
|
|
257
|
+
unit?: TimeUnit;
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
resourceTypes?: [ResourceTypeEnum, ...ResourceTypeEnum[]];
|
|
261
|
+
approvalRequired?: boolean;
|
|
262
|
+
allowResourceSelection?: boolean;
|
|
263
|
+
prioritizedResourceAllocation?: Partial<Record<ResourceSubTypeEnum, [number, ...number[]]>>;
|
|
264
|
+
bookingDurations?: {
|
|
265
|
+
minDuration?: {
|
|
266
|
+
amount?: number;
|
|
267
|
+
unit?: TimeUnit;
|
|
268
|
+
};
|
|
269
|
+
maxDuration?: {
|
|
270
|
+
amount?: number;
|
|
271
|
+
unit?: TimeUnit;
|
|
272
|
+
};
|
|
273
|
+
durationStep?: {
|
|
274
|
+
amount?: number;
|
|
275
|
+
unit?: TimeUnit;
|
|
276
|
+
};
|
|
277
|
+
defaultDuration?: {
|
|
278
|
+
amount?: number;
|
|
279
|
+
unit?: TimeUnit;
|
|
280
|
+
};
|
|
281
|
+
};
|
|
282
|
+
memberships?: Record<string, {
|
|
283
|
+
name?: string;
|
|
284
|
+
membershipsIds?: [number, ...number[]];
|
|
285
|
+
advanceBookingWindow?: Record<number, {
|
|
286
|
+
amount?: number;
|
|
287
|
+
unit?: TimeUnit;
|
|
288
|
+
}>;
|
|
289
|
+
minimumBookingNotice?: Record<number, {
|
|
290
|
+
amount?: number;
|
|
291
|
+
unit?: TimeUnit;
|
|
292
|
+
}>;
|
|
293
|
+
}>;
|
|
294
|
+
}, {
|
|
295
|
+
default?: {
|
|
296
|
+
advanceBookingWindow?: {
|
|
297
|
+
amount?: number;
|
|
298
|
+
unit?: TimeUnit;
|
|
299
|
+
};
|
|
300
|
+
minimumBookingNotice?: {
|
|
301
|
+
amount?: number;
|
|
302
|
+
unit?: TimeUnit;
|
|
303
|
+
};
|
|
304
|
+
maxBookingHours?: {
|
|
305
|
+
amount?: number;
|
|
306
|
+
unit?: TimeUnit;
|
|
307
|
+
};
|
|
308
|
+
maxSequentialBookings?: {
|
|
309
|
+
amount?: number;
|
|
310
|
+
unit?: TimeUnit;
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
resourceTypes?: [ResourceTypeEnum, ...ResourceTypeEnum[]];
|
|
314
|
+
approvalRequired?: boolean;
|
|
315
|
+
allowResourceSelection?: boolean;
|
|
316
|
+
prioritizedResourceAllocation?: Partial<Record<ResourceSubTypeEnum, [number, ...number[]]>>;
|
|
317
|
+
bookingDurations?: {
|
|
318
|
+
minDuration?: {
|
|
319
|
+
amount?: number;
|
|
320
|
+
unit?: TimeUnit;
|
|
321
|
+
};
|
|
322
|
+
maxDuration?: {
|
|
323
|
+
amount?: number;
|
|
324
|
+
unit?: TimeUnit;
|
|
325
|
+
};
|
|
326
|
+
durationStep?: {
|
|
327
|
+
amount?: number;
|
|
328
|
+
unit?: TimeUnit;
|
|
329
|
+
};
|
|
330
|
+
defaultDuration?: {
|
|
331
|
+
amount?: number;
|
|
332
|
+
unit?: TimeUnit;
|
|
333
|
+
};
|
|
334
|
+
};
|
|
335
|
+
memberships?: Record<string, {
|
|
336
|
+
name?: string;
|
|
337
|
+
membershipsIds?: [number, ...number[]];
|
|
338
|
+
advanceBookingWindow?: Record<number, {
|
|
339
|
+
amount?: number;
|
|
340
|
+
unit?: TimeUnit;
|
|
341
|
+
}>;
|
|
342
|
+
minimumBookingNotice?: Record<number, {
|
|
343
|
+
amount?: number;
|
|
344
|
+
unit?: TimeUnit;
|
|
345
|
+
}>;
|
|
346
|
+
}>;
|
|
347
|
+
}>, {
|
|
348
|
+
default?: {
|
|
349
|
+
advanceBookingWindow?: {
|
|
350
|
+
amount?: number;
|
|
351
|
+
unit?: TimeUnit;
|
|
352
|
+
};
|
|
353
|
+
minimumBookingNotice?: {
|
|
354
|
+
amount?: number;
|
|
355
|
+
unit?: TimeUnit;
|
|
356
|
+
};
|
|
357
|
+
maxBookingHours?: {
|
|
358
|
+
amount?: number;
|
|
359
|
+
unit?: TimeUnit;
|
|
360
|
+
};
|
|
361
|
+
maxSequentialBookings?: {
|
|
362
|
+
amount?: number;
|
|
363
|
+
unit?: TimeUnit;
|
|
364
|
+
};
|
|
365
|
+
};
|
|
366
|
+
resourceTypes?: [ResourceTypeEnum, ...ResourceTypeEnum[]];
|
|
367
|
+
approvalRequired?: boolean;
|
|
368
|
+
allowResourceSelection?: boolean;
|
|
369
|
+
prioritizedResourceAllocation?: Partial<Record<ResourceSubTypeEnum, [number, ...number[]]>>;
|
|
370
|
+
bookingDurations?: {
|
|
371
|
+
minDuration?: {
|
|
372
|
+
amount?: number;
|
|
373
|
+
unit?: TimeUnit;
|
|
374
|
+
};
|
|
375
|
+
maxDuration?: {
|
|
376
|
+
amount?: number;
|
|
377
|
+
unit?: TimeUnit;
|
|
378
|
+
};
|
|
379
|
+
durationStep?: {
|
|
380
|
+
amount?: number;
|
|
381
|
+
unit?: TimeUnit;
|
|
382
|
+
};
|
|
383
|
+
defaultDuration?: {
|
|
384
|
+
amount?: number;
|
|
385
|
+
unit?: TimeUnit;
|
|
386
|
+
};
|
|
387
|
+
};
|
|
388
|
+
memberships?: Record<string, {
|
|
389
|
+
name?: string;
|
|
390
|
+
membershipsIds?: [number, ...number[]];
|
|
391
|
+
advanceBookingWindow?: Record<number, {
|
|
392
|
+
amount?: number;
|
|
393
|
+
unit?: TimeUnit;
|
|
394
|
+
}>;
|
|
395
|
+
minimumBookingNotice?: Record<number, {
|
|
396
|
+
amount?: number;
|
|
397
|
+
unit?: TimeUnit;
|
|
398
|
+
}>;
|
|
399
|
+
}>;
|
|
400
|
+
}, {
|
|
401
|
+
default?: {
|
|
402
|
+
advanceBookingWindow?: {
|
|
403
|
+
amount?: number;
|
|
404
|
+
unit?: TimeUnit;
|
|
405
|
+
};
|
|
406
|
+
minimumBookingNotice?: {
|
|
407
|
+
amount?: number;
|
|
408
|
+
unit?: TimeUnit;
|
|
409
|
+
};
|
|
410
|
+
maxBookingHours?: {
|
|
411
|
+
amount?: number;
|
|
412
|
+
unit?: TimeUnit;
|
|
413
|
+
};
|
|
414
|
+
maxSequentialBookings?: {
|
|
415
|
+
amount?: number;
|
|
416
|
+
unit?: TimeUnit;
|
|
417
|
+
};
|
|
418
|
+
};
|
|
419
|
+
resourceTypes?: [ResourceTypeEnum, ...ResourceTypeEnum[]];
|
|
420
|
+
approvalRequired?: boolean;
|
|
421
|
+
allowResourceSelection?: boolean;
|
|
422
|
+
prioritizedResourceAllocation?: Partial<Record<ResourceSubTypeEnum, [number, ...number[]]>>;
|
|
423
|
+
bookingDurations?: {
|
|
424
|
+
minDuration?: {
|
|
425
|
+
amount?: number;
|
|
426
|
+
unit?: TimeUnit;
|
|
427
|
+
};
|
|
428
|
+
maxDuration?: {
|
|
429
|
+
amount?: number;
|
|
430
|
+
unit?: TimeUnit;
|
|
431
|
+
};
|
|
432
|
+
durationStep?: {
|
|
433
|
+
amount?: number;
|
|
434
|
+
unit?: TimeUnit;
|
|
435
|
+
};
|
|
436
|
+
defaultDuration?: {
|
|
437
|
+
amount?: number;
|
|
438
|
+
unit?: TimeUnit;
|
|
439
|
+
};
|
|
440
|
+
};
|
|
441
|
+
memberships?: Record<string, {
|
|
442
|
+
name?: string;
|
|
443
|
+
membershipsIds?: [number, ...number[]];
|
|
444
|
+
advanceBookingWindow?: Record<number, {
|
|
445
|
+
amount?: number;
|
|
446
|
+
unit?: TimeUnit;
|
|
447
|
+
}>;
|
|
448
|
+
minimumBookingNotice?: Record<number, {
|
|
449
|
+
amount?: number;
|
|
450
|
+
unit?: TimeUnit;
|
|
451
|
+
}>;
|
|
452
|
+
}>;
|
|
453
|
+
}>;
|
|
454
|
+
export type TProductCategoryOnlineBookingSettings = z.infer<typeof RESERVATION_SETTINGS_SCHEMA>;
|
|
455
|
+
export declare const RESERVATION_DEFAULT_SETTINGS: TProductCategoryOnlineBookingSettings;
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RESERVATION_DEFAULT_SETTINGS = exports.RESERVATION_SETTINGS_SCHEMA = void 0;
|
|
4
|
+
const date_time_1 = require("@bondsports/date-time");
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
|
+
const enums_service_1 = require("../../../services/enums.service");
|
|
7
|
+
const FIFTEEN_MINUTES = 15;
|
|
8
|
+
const INTEGER_SCHEMA = zod_1.z.number().int().min(1);
|
|
9
|
+
const DURATION_SCHEMA = zod_1.z.object({
|
|
10
|
+
amount: INTEGER_SCHEMA,
|
|
11
|
+
unit: zod_1.z.nativeEnum(date_time_1.TimeUnit),
|
|
12
|
+
});
|
|
13
|
+
exports.RESERVATION_SETTINGS_SCHEMA = zod_1.z
|
|
14
|
+
.object({
|
|
15
|
+
resourceTypes: zod_1.z.array(zod_1.z.nativeEnum(enums_service_1.ResourceTypeEnum)).nonempty(),
|
|
16
|
+
approvalRequired: zod_1.z.boolean().default(true),
|
|
17
|
+
allowResourceSelection: zod_1.z.boolean().default(false),
|
|
18
|
+
prioritizedResourceAllocation: zod_1.z
|
|
19
|
+
.record(zod_1.z.nativeEnum(enums_service_1.ResourceSubTypeEnum), zod_1.z.array(zod_1.z.number().int().min(0)).nonempty())
|
|
20
|
+
.nullable(),
|
|
21
|
+
bookingDurations: zod_1.z
|
|
22
|
+
.object({
|
|
23
|
+
minDuration: zod_1.z.object({
|
|
24
|
+
amount: INTEGER_SCHEMA.min(FIFTEEN_MINUTES),
|
|
25
|
+
unit: zod_1.z.nativeEnum(date_time_1.TimeUnit),
|
|
26
|
+
}),
|
|
27
|
+
maxDuration: zod_1.z.object({
|
|
28
|
+
amount: INTEGER_SCHEMA.min(FIFTEEN_MINUTES),
|
|
29
|
+
unit: zod_1.z.nativeEnum(date_time_1.TimeUnit),
|
|
30
|
+
}),
|
|
31
|
+
durationStep: zod_1.z.object({
|
|
32
|
+
amount: INTEGER_SCHEMA.min(FIFTEEN_MINUTES),
|
|
33
|
+
unit: zod_1.z.nativeEnum(date_time_1.TimeUnit),
|
|
34
|
+
}),
|
|
35
|
+
defaultDuration: zod_1.z.object({
|
|
36
|
+
amount: INTEGER_SCHEMA.min(FIFTEEN_MINUTES),
|
|
37
|
+
unit: zod_1.z.nativeEnum(date_time_1.TimeUnit),
|
|
38
|
+
}),
|
|
39
|
+
})
|
|
40
|
+
.superRefine(({ defaultDuration, durationStep, maxDuration, minDuration }, ctx) => {
|
|
41
|
+
const max = (0, date_time_1.getDuration)(maxDuration.amount, maxDuration.unit, date_time_1.TimeUnit.MINUTE);
|
|
42
|
+
const min = (0, date_time_1.getDuration)(minDuration.amount, minDuration.unit, date_time_1.TimeUnit.MINUTE);
|
|
43
|
+
const defaultDurationMinutes = (0, date_time_1.getDuration)(defaultDuration.amount, defaultDuration.unit, date_time_1.TimeUnit.MINUTE);
|
|
44
|
+
const durationStepMinutes = (0, date_time_1.getDuration)(durationStep.amount, durationStep.unit, date_time_1.TimeUnit.MINUTE);
|
|
45
|
+
if ((defaultDurationMinutes !== min || defaultDurationMinutes !== max) &&
|
|
46
|
+
defaultDurationMinutes % durationStepMinutes !== 0) {
|
|
47
|
+
const unitLabel = durationStep.amount === 1 ? durationStep.unit : `${durationStep.unit}s`;
|
|
48
|
+
ctx.addIssue({
|
|
49
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
50
|
+
message: `Default duration must be in increments of ${durationStep.amount} ${unitLabel}`,
|
|
51
|
+
path: ['defaultDuration'],
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
}),
|
|
55
|
+
default: zod_1.z.object({
|
|
56
|
+
advanceBookingWindow: zod_1.z.object({
|
|
57
|
+
amount: INTEGER_SCHEMA,
|
|
58
|
+
unit: zod_1.z.nativeEnum(date_time_1.TimeUnit),
|
|
59
|
+
}),
|
|
60
|
+
minimumBookingNotice: zod_1.z.object({
|
|
61
|
+
amount: INTEGER_SCHEMA,
|
|
62
|
+
unit: zod_1.z.nativeEnum(date_time_1.TimeUnit),
|
|
63
|
+
}),
|
|
64
|
+
maxBookingHours: DURATION_SCHEMA.nullable(),
|
|
65
|
+
maxSequentialBookings: DURATION_SCHEMA.nullable(),
|
|
66
|
+
}),
|
|
67
|
+
memberships: zod_1.z
|
|
68
|
+
.record(zod_1.z.string().uuid(), zod_1.z.object({
|
|
69
|
+
name: zod_1.z.string(),
|
|
70
|
+
membershipsIds: zod_1.z.array(zod_1.z.number().int()).nonempty(),
|
|
71
|
+
advanceBookingWindow: zod_1.z.record(INTEGER_SCHEMA, DURATION_SCHEMA),
|
|
72
|
+
minimumBookingNotice: zod_1.z.record(INTEGER_SCHEMA, DURATION_SCHEMA),
|
|
73
|
+
}))
|
|
74
|
+
.nullable(),
|
|
75
|
+
})
|
|
76
|
+
.superRefine((settings, ctx) => {
|
|
77
|
+
const membershipIds = Object.values(settings.memberships).flatMap(setting => setting.membershipsIds);
|
|
78
|
+
const uniqueMembershipIds = [...new Set(membershipIds)];
|
|
79
|
+
});
|
|
80
|
+
exports.RESERVATION_DEFAULT_SETTINGS = {
|
|
81
|
+
default: {
|
|
82
|
+
advanceBookingWindow: {
|
|
83
|
+
amount: 14,
|
|
84
|
+
unit: date_time_1.TimeUnit.DAY,
|
|
85
|
+
},
|
|
86
|
+
minimumBookingNotice: {
|
|
87
|
+
amount: 1,
|
|
88
|
+
unit: date_time_1.TimeUnit.DAY,
|
|
89
|
+
},
|
|
90
|
+
maxBookingHours: null,
|
|
91
|
+
maxSequentialBookings: null,
|
|
92
|
+
},
|
|
93
|
+
bookingDurations: {
|
|
94
|
+
minDuration: {
|
|
95
|
+
amount: 30,
|
|
96
|
+
unit: date_time_1.TimeUnit.MINUTE,
|
|
97
|
+
},
|
|
98
|
+
maxDuration: {
|
|
99
|
+
amount: 3,
|
|
100
|
+
unit: date_time_1.TimeUnit.HOUR,
|
|
101
|
+
},
|
|
102
|
+
durationStep: {
|
|
103
|
+
amount: 30,
|
|
104
|
+
unit: date_time_1.TimeUnit.MINUTE,
|
|
105
|
+
},
|
|
106
|
+
defaultDuration: {
|
|
107
|
+
amount: 1,
|
|
108
|
+
unit: date_time_1.TimeUnit.HOUR,
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
memberships: null,
|
|
112
|
+
approvalRequired: true,
|
|
113
|
+
allowResourceSelection: true,
|
|
114
|
+
prioritizedResourceAllocation: null,
|
|
115
|
+
};
|
|
116
|
+
//# sourceMappingURL=product-category.consts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-category.consts.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/consts/product-category.consts.ts"],"names":[],"mappings":";;;AAAA,qDAA8D;AAC9D,6BAAmC;AAEnC,mEAAwF;AAExF,MAAM,eAAe,GAAG,EAAE,CAAC;AAE3B,MAAM,cAAc,GAAc,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAE1D,MAAM,eAAe,GAAiF,OAAC,CAAC,MAAM,CAAC;IAC9G,MAAM,EAAE,cAAc;IACtB,IAAI,EAAE,OAAC,CAAC,UAAU,CAAC,oBAAQ,CAAC;CAC5B,CAAC,CAAC;AAEU,QAAA,2BAA2B,GAAG,OAAC;KAC1C,MAAM,CAAC;IACP,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,6BAA6B,EAAE,OAAC;SAC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E;YACV,IAAI,EAAE,oBAAQ,CAAC,MAAM;SACrB;QACD,eAAe,EAAE;YAChB,MAAM,EAAE,CAAC;YACT,IAAI,EAAE,oBAAQ,CAAC,IAAI;SACnB;KACD;IACD,WAAW,EAAE,IAAI;IACjB,gBAAgB,EAAE,IAAI;IACtB,sBAAsB,EAAE,IAAI;IAC5B,6BAA6B,EAAE,IAAI;CACnC,CAAC"}
|
|
@@ -14,5 +14,6 @@ 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-categories.enums"), exports);
|
|
17
18
|
__exportStar(require("./product.enums"), exports);
|
|
18
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,kDAAgC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CategoryOrderColumnEnum = void 0;
|
|
4
|
+
var CategoryOrderColumnEnum;
|
|
5
|
+
(function (CategoryOrderColumnEnum) {
|
|
6
|
+
CategoryOrderColumnEnum["NAME"] = "name";
|
|
7
|
+
CategoryOrderColumnEnum["PRODUCT_COUNT"] = "product_count";
|
|
8
|
+
/** Only for reservation categories */
|
|
9
|
+
CategoryOrderColumnEnum["APPROVAL_TYPE"] = "approval_type";
|
|
10
|
+
/** Only for reservation categories */
|
|
11
|
+
CategoryOrderColumnEnum["VIP_ENABLED"] = "vip_enabled";
|
|
12
|
+
})(CategoryOrderColumnEnum = exports.CategoryOrderColumnEnum || (exports.CategoryOrderColumnEnum = {}));
|
|
13
|
+
//# sourceMappingURL=product-categories.enums.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-categories.enums.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/enums/product-categories.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,uBASX;AATD,WAAY,uBAAuB;IAClC,wCAAa,CAAA;IACb,0DAA+B,CAAA;IAE/B,sCAAsC;IACtC,0DAA+B,CAAA;IAE/B,sCAAsC;IACtC,sDAA2B,CAAA;AAC5B,CAAC,EATW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QASlC"}
|
|
@@ -9,7 +9,8 @@ export declare enum OrderByProductEnum {
|
|
|
9
9
|
DURATION = "duration",
|
|
10
10
|
PRODUCT_SUB_TYPE = "productSubType",
|
|
11
11
|
STATUS = "status",
|
|
12
|
-
PRODUCT_STATUS = "productStatus"
|
|
12
|
+
PRODUCT_STATUS = "productStatus",
|
|
13
|
+
PRODUCT_CATEGORY = "product_category"
|
|
13
14
|
}
|
|
14
15
|
export declare enum ProductExpandEnum {
|
|
15
16
|
PRICES = "prices",
|
|
@@ -15,6 +15,7 @@ var OrderByProductEnum;
|
|
|
15
15
|
OrderByProductEnum["PRODUCT_SUB_TYPE"] = "productSubType";
|
|
16
16
|
OrderByProductEnum["STATUS"] = "status";
|
|
17
17
|
OrderByProductEnum["PRODUCT_STATUS"] = "productStatus";
|
|
18
|
+
OrderByProductEnum["PRODUCT_CATEGORY"] = "product_category";
|
|
18
19
|
})(OrderByProductEnum = exports.OrderByProductEnum || (exports.OrderByProductEnum = {}));
|
|
19
20
|
var ProductExpandEnum;
|
|
20
21
|
(function (ProductExpandEnum) {
|
|
@@ -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,
|
|
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,kBASX;AATD,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;AACtC,CAAC,EATW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAS7B;AAED,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC5B,sCAAiB,CAAA;IACjB,2DAAsC,CAAA;IACtC,mEAA8C,CAAA;AAC/C,CAAC,EAJW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAI5B;AAED,IAAY,sBAIX;AAJD,WAAY,sBAAsB;IACjC,2CAAiB,CAAA;IACjB,mEAAyC,CAAA;IACzC,iEAAuC,CAAA;AACxC,CAAC,EAJW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAIjC"}
|
|
@@ -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-categories.interfaces"), exports);
|
|
17
18
|
__exportStar(require("./product-pricing.interfaces"), exports);
|
|
18
19
|
__exportStar(require("./product-resource.interfaces"), exports);
|
|
19
20
|
__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,+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,+DAA6C;AAC7C,gEAA8C;AAC9C,kEAAgD"}
|