@matchi/api 0.20250304.2 → 0.20250305.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.
@@ -1,525 +0,0 @@
1
- declare const BookingSchema: {
2
- readonly properties: {
3
- readonly booker: {
4
- readonly format: "uuid";
5
- readonly type: "string";
6
- };
7
- readonly created_at: {
8
- readonly format: "date-time";
9
- readonly type: "string";
10
- };
11
- readonly created_by: {
12
- readonly type: "string";
13
- };
14
- readonly end_time: {
15
- readonly format: "date-time";
16
- readonly type: "string";
17
- };
18
- readonly id: {
19
- readonly format: "uuid";
20
- readonly type: "string";
21
- };
22
- readonly location: {
23
- readonly type: "string";
24
- };
25
- readonly participants: {
26
- readonly properties: {
27
- readonly guests: {
28
- readonly items: {
29
- readonly $ref: "#/components/schemas/Guest";
30
- };
31
- readonly type: "array";
32
- };
33
- readonly players: {
34
- readonly items: {
35
- readonly $ref: "#/components/schemas/Player";
36
- };
37
- readonly type: "array";
38
- };
39
- };
40
- readonly required: readonly ["guests", "players"];
41
- readonly type: "object";
42
- };
43
- readonly payment_reference: {
44
- readonly type: "string";
45
- };
46
- readonly start_time: {
47
- readonly format: "date-time";
48
- readonly type: "string";
49
- };
50
- readonly updated_at: {
51
- readonly format: "date-time";
52
- readonly type: "string";
53
- };
54
- readonly updated_by: {
55
- readonly type: "string";
56
- };
57
- };
58
- readonly required: readonly ["id", "booker", "location", "start_time", "end_time", "created_at", "updated_at", "participants", "payment_reference", "created_by", "updated_by"];
59
- readonly type: "object";
60
- };
61
- declare const CreateBookingSchema: {
62
- readonly properties: {
63
- readonly booker: {
64
- readonly format: "uuid";
65
- readonly type: "string";
66
- };
67
- readonly created_by: {
68
- readonly type: "string";
69
- };
70
- readonly end_time: {
71
- readonly format: "date-time";
72
- readonly type: "string";
73
- };
74
- readonly location: {
75
- readonly type: "string";
76
- };
77
- readonly participants: {
78
- readonly properties: {
79
- readonly guests: {
80
- readonly items: {
81
- readonly $ref: "#/components/schemas/Guest";
82
- };
83
- readonly type: "array";
84
- };
85
- readonly players: {
86
- readonly items: {
87
- readonly $ref: "#/components/schemas/Player";
88
- };
89
- readonly type: "array";
90
- };
91
- };
92
- readonly type: "object";
93
- };
94
- readonly payment_reference: {
95
- readonly type: "string";
96
- };
97
- readonly start_time: {
98
- readonly format: "date-time";
99
- readonly type: "string";
100
- };
101
- };
102
- readonly required: readonly ["booker", "location", "start_time", "end_time", "participants", "payment_reference"];
103
- readonly type: "object";
104
- };
105
- declare const FacilityOfferSchema: {
106
- readonly properties: {
107
- readonly data: {
108
- readonly oneOf: readonly [{
109
- readonly $ref: "#/components/schemas/FacilityPunchCardData";
110
- }, {
111
- readonly $ref: "#/components/schemas/FacilityValueCardData";
112
- }];
113
- };
114
- readonly type: {
115
- readonly enum: readonly ["FACILITY_PUNCH_CARD", "FACILITY_VALUE_CARD"];
116
- readonly type: "string";
117
- };
118
- };
119
- readonly required: readonly ["type", "data"];
120
- readonly type: "object";
121
- };
122
- declare const FacilityOfferConditionSchema: {
123
- readonly oneOf: readonly [{
124
- readonly $ref: "#/components/schemas/FacilityOfferConditionWeekdays";
125
- }, {
126
- readonly $ref: "#/components/schemas/FacilityOfferConditionCourts";
127
- }, {
128
- readonly $ref: "#/components/schemas/FacilityOfferConditionDate";
129
- }, {
130
- readonly $ref: "#/components/schemas/FacilityOfferConditionTime";
131
- }, {
132
- readonly $ref: "#/components/schemas/FacilityOfferConditionHoursinadvance";
133
- }, {
134
- readonly $ref: "#/components/schemas/FacilityOfferConditionActivities";
135
- }, {
136
- readonly $ref: "#/components/schemas/FacilityOfferConditionNotImplemented";
137
- }];
138
- readonly properties: {
139
- readonly type: {
140
- readonly enum: readonly ["WEEKDAYS", "COURTS", "DATE", "TIME", "HOURSINADVANCE", "ACTIVITIES", "NOT_IMPLEMENTED"];
141
- readonly type: "string";
142
- };
143
- };
144
- readonly type: "object";
145
- };
146
- declare const FacilityOfferConditionActivitiesSchema: {
147
- readonly properties: {
148
- readonly all_activities: {
149
- readonly type: "boolean";
150
- };
151
- readonly not_valid_for_activities: {
152
- readonly type: "boolean";
153
- };
154
- readonly type: {
155
- readonly type: "string";
156
- };
157
- };
158
- readonly required: readonly ["type", "not_valid_for_activities", "all_activities"];
159
- readonly type: "object";
160
- };
161
- declare const FacilityOfferConditionCourtsSchema: {
162
- readonly properties: {
163
- readonly name: {
164
- readonly type: "string";
165
- };
166
- readonly type: {
167
- readonly type: "string";
168
- };
169
- };
170
- readonly required: readonly ["type"];
171
- readonly type: "object";
172
- };
173
- declare const FacilityOfferConditionDateSchema: {
174
- readonly properties: {
175
- readonly end_date: {
176
- readonly format: "date-time";
177
- readonly type: "string";
178
- };
179
- readonly start_date: {
180
- readonly format: "date-time";
181
- readonly type: "string";
182
- };
183
- readonly type: {
184
- readonly type: "string";
185
- };
186
- };
187
- readonly required: readonly ["type", "start_date", "end_date"];
188
- readonly type: "object";
189
- };
190
- declare const FacilityOfferConditionHoursinadvanceSchema: {
191
- readonly properties: {
192
- readonly nr_of_hours: {
193
- readonly type: "integer";
194
- };
195
- readonly type: {
196
- readonly type: "string";
197
- };
198
- };
199
- readonly required: readonly ["type", "nr_of_hours"];
200
- readonly type: "object";
201
- };
202
- declare const FacilityOfferConditionNotImplementedSchema: {
203
- readonly properties: {
204
- readonly type: {
205
- readonly type: "string";
206
- };
207
- };
208
- readonly required: readonly ["type"];
209
- readonly type: "object";
210
- };
211
- declare const FacilityOfferConditionTimeSchema: {
212
- readonly properties: {
213
- readonly end_time: {
214
- readonly format: "time";
215
- readonly type: "string";
216
- };
217
- readonly start_time: {
218
- readonly format: "time";
219
- readonly type: "string";
220
- };
221
- readonly type: {
222
- readonly type: "string";
223
- };
224
- };
225
- readonly required: readonly ["type", "start_time", "end_time"];
226
- readonly type: "object";
227
- };
228
- declare const FacilityOfferConditionWeekdaysSchema: {
229
- readonly properties: {
230
- readonly type: {
231
- readonly type: "string";
232
- };
233
- readonly weekdays: {
234
- readonly items: {
235
- readonly description: "Interger representation of weekday. 1 (Monday), 7 (Sunday).";
236
- readonly type: "integer";
237
- };
238
- readonly type: "array";
239
- };
240
- };
241
- readonly required: readonly ["type", "weekdays"];
242
- readonly type: "object";
243
- };
244
- declare const FacilityOfferListSchema: {
245
- readonly properties: {
246
- readonly data: {
247
- readonly items: {
248
- readonly $ref: "#/components/schemas/FacilityOffer";
249
- };
250
- readonly type: "array";
251
- };
252
- readonly meta: {
253
- readonly $ref: "#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet";
254
- };
255
- };
256
- readonly required: readonly ["data", "meta"];
257
- readonly type: "object";
258
- };
259
- declare const FacilityOfferOrderSchema: {
260
- readonly properties: {
261
- readonly checkout_url: {
262
- readonly description: "The URL to the checkout page for the facility offer order";
263
- readonly example: "https://checkout.matchi.com/pay/1b44a93b24a3413dadsee96e1bc7a4350ecac";
264
- readonly format: "uri";
265
- readonly type: "string";
266
- };
267
- readonly id: {
268
- readonly type: "string";
269
- };
270
- };
271
- readonly required: readonly ["id", "checkout_url"];
272
- readonly type: "object";
273
- };
274
- declare const FacilityPunchCardDataSchema: {
275
- readonly properties: {
276
- readonly conditions: {
277
- readonly items: {
278
- readonly $ref: "#/components/schemas/FacilityOfferCondition";
279
- };
280
- readonly type: "array";
281
- };
282
- readonly description: {
283
- readonly nullable: true;
284
- readonly type: "string";
285
- };
286
- readonly expire_date: {
287
- readonly format: "date-time";
288
- readonly type: "string";
289
- };
290
- readonly facility_id: {
291
- readonly type: "integer";
292
- };
293
- readonly facility_receive_membership_requests: {
294
- readonly type: "boolean";
295
- };
296
- readonly max_duration: {
297
- readonly type: "integer";
298
- };
299
- readonly members_only: {
300
- readonly type: "boolean";
301
- };
302
- readonly name: {
303
- readonly type: "string";
304
- };
305
- readonly nr_of_bookings_in_period: {
306
- readonly nullable: true;
307
- readonly type: "integer";
308
- };
309
- readonly nr_of_days_valid: {
310
- readonly type: "integer";
311
- };
312
- readonly nr_of_tickets: {
313
- readonly type: "integer";
314
- };
315
- readonly offer_id: {
316
- readonly type: "integer";
317
- };
318
- readonly price: {
319
- readonly type: "string";
320
- };
321
- readonly unlimited: {
322
- readonly type: "boolean";
323
- };
324
- readonly user_has_active_membership: {
325
- readonly type: "boolean";
326
- };
327
- };
328
- readonly required: readonly ["offer_id", "facility_id", "name", "description", "price", "unlimited", "max_duration", "nr_of_days_valid", "nr_of_tickets", "members_only", "user_has_active_membership", "facility_receive_membership_requests", "expire_date", "conditions", "nr_of_bookings_in_period"];
329
- readonly type: "object";
330
- };
331
- declare const FacilityValueCardDataSchema: {
332
- readonly properties: {
333
- readonly amount: {
334
- readonly type: "string";
335
- };
336
- readonly description: {
337
- readonly nullable: true;
338
- readonly type: "string";
339
- };
340
- readonly expire_date: {
341
- readonly format: "date-time";
342
- readonly type: "string";
343
- };
344
- readonly facility_id: {
345
- readonly type: "integer";
346
- };
347
- readonly facility_receive_membership_requests: {
348
- readonly type: "boolean";
349
- };
350
- readonly members_only: {
351
- readonly type: "boolean";
352
- };
353
- readonly name: {
354
- readonly type: "string";
355
- };
356
- readonly nr_of_days_valid: {
357
- readonly type: "integer";
358
- };
359
- readonly offer_id: {
360
- readonly type: "integer";
361
- };
362
- readonly price: {
363
- readonly type: "string";
364
- };
365
- readonly user_has_active_membership: {
366
- readonly type: "boolean";
367
- };
368
- };
369
- readonly required: readonly ["offer_id", "facility_id", "name", "description", "price", "nr_of_days_valid", "amount", "members_only", "user_has_active_membership", "facility_receive_membership_requests", "expire_date"];
370
- readonly type: "object";
371
- };
372
- declare const GuestSchema: {
373
- readonly properties: {
374
- readonly email: {
375
- readonly type: "string";
376
- };
377
- };
378
- readonly required: readonly ["email"];
379
- readonly type: "object";
380
- };
381
- declare const PlayerSchema: {
382
- readonly properties: {
383
- readonly email: {
384
- readonly type: "string";
385
- };
386
- readonly id: {
387
- readonly format: "uuid";
388
- readonly type: "string";
389
- };
390
- };
391
- readonly required: readonly ["id", "email"];
392
- readonly type: "object";
393
- };
394
- declare const UpdateBookingSchema: {
395
- readonly properties: {
396
- readonly booker: {
397
- readonly format: "uuid";
398
- readonly type: "string";
399
- };
400
- readonly end_time: {
401
- readonly format: "date-time";
402
- readonly type: "string";
403
- };
404
- readonly location: {
405
- readonly type: "string";
406
- };
407
- readonly participants: {
408
- readonly properties: {
409
- readonly guests: {
410
- readonly items: {
411
- readonly $ref: "#/components/schemas/Guest";
412
- };
413
- readonly type: "array";
414
- };
415
- readonly players: {
416
- readonly items: {
417
- readonly $ref: "#/components/schemas/Player";
418
- };
419
- readonly type: "array";
420
- };
421
- };
422
- readonly type: "object";
423
- };
424
- readonly payment_reference: {
425
- readonly type: "string";
426
- };
427
- readonly start_time: {
428
- readonly format: "date-time";
429
- readonly type: "string";
430
- };
431
- };
432
- readonly required: readonly ["booker", "location", "start_time", "end_time", "participants", "payment_reference"];
433
- readonly type: "object";
434
- };
435
- declare const pkgOpenapiSharedCursorPaginatedResultSetSchema: {
436
- readonly description: "Metadata about the cursor based pagination for the result. This information is coupled with the CursorParam and CursorLimitParam. Intended to be used as the `meta` field in a list response, next to an `items` array field containing the data.\n";
437
- readonly properties: {
438
- readonly current_cursor: {
439
- readonly description: "Cursor used to retrieve the current page of results.";
440
- readonly type: "string";
441
- };
442
- readonly more_results: {
443
- readonly description: "Indicates if there are more results available.";
444
- readonly type: "boolean";
445
- };
446
- readonly next_cursor: {
447
- readonly description: "Cursor to retrieve the next page of results.";
448
- readonly type: "string";
449
- };
450
- };
451
- readonly required: readonly ["current_cursor", "more_results"];
452
- readonly type: "object";
453
- };
454
- declare const pkgOpenapiSharedErrorSchema: {
455
- readonly properties: {
456
- readonly message: {
457
- readonly description: "The error message";
458
- readonly type: "string";
459
- };
460
- };
461
- readonly type: "object";
462
- };
463
- declare const pkgOpenapiSharedErrorsSchema: {
464
- readonly description: "An array of error details to accompany a problem details response.";
465
- readonly items: {
466
- readonly $ref: "#/components/schemas/pkgOpenapiSharedError";
467
- };
468
- readonly maxItems: 1000;
469
- readonly type: "array";
470
- };
471
- declare const pkgOpenapiSharedOffsetPaginatedResultSetSchema: {
472
- readonly description: "Metadata about the offset based pagination for the result. This information is coupled with the OffsetParam and OffsetLimitParam. Intended to be used as the `meta` field in a list response, next to an `items` array field containing the data.\n";
473
- readonly properties: {
474
- readonly limit: {
475
- readonly type: "integer";
476
- };
477
- readonly more_results: {
478
- readonly type: "boolean";
479
- };
480
- readonly offset: {
481
- readonly type: "integer";
482
- };
483
- };
484
- readonly required: readonly ["offset", "limit", "more_results"];
485
- readonly type: "object";
486
- };
487
- declare const pkgOpenapiSharedProblemDetailsSchema: {
488
- readonly properties: {
489
- readonly detail: {
490
- readonly description: "A human-readable explanation specific to this occurrence of the problem.";
491
- readonly maxLength: 4096;
492
- readonly type: "string";
493
- };
494
- readonly errors: {
495
- readonly $ref: "#/components/schemas/pkgOpenapiSharedErrors";
496
- };
497
- readonly instance: {
498
- readonly description: "A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.";
499
- readonly maxLength: 1024;
500
- readonly type: "string";
501
- };
502
- readonly status: {
503
- readonly description: "The HTTP status code generated by the origin server for this occurrence of the problem.";
504
- readonly format: "int32";
505
- readonly maximum: 599;
506
- readonly minimum: 100;
507
- readonly type: "integer";
508
- };
509
- readonly title: {
510
- readonly description: "A short, human-readable summary of the problem type. It should not change from occurrence to occurrence of the problem, except for purposes of localization.";
511
- readonly maxLength: 1024;
512
- readonly type: "string";
513
- };
514
- readonly type: {
515
- readonly description: "A URI reference that identifies the problem type.";
516
- readonly format: "uri";
517
- readonly maxLength: 1024;
518
- readonly type: "string";
519
- };
520
- };
521
- readonly required: readonly ["title"];
522
- readonly type: "object";
523
- };
524
-
525
- export { BookingSchema, CreateBookingSchema, FacilityOfferConditionActivitiesSchema, FacilityOfferConditionCourtsSchema, FacilityOfferConditionDateSchema, FacilityOfferConditionHoursinadvanceSchema, FacilityOfferConditionNotImplementedSchema, FacilityOfferConditionSchema, FacilityOfferConditionTimeSchema, FacilityOfferConditionWeekdaysSchema, FacilityOfferListSchema, FacilityOfferOrderSchema, FacilityOfferSchema, FacilityPunchCardDataSchema, FacilityValueCardDataSchema, GuestSchema, PlayerSchema, UpdateBookingSchema, pkgOpenapiSharedCursorPaginatedResultSetSchema, pkgOpenapiSharedErrorSchema, pkgOpenapiSharedErrorsSchema, pkgOpenapiSharedOffsetPaginatedResultSetSchema, pkgOpenapiSharedProblemDetailsSchema };