@matchi/api 0.20250225.1 → 0.20250304.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/main/index.d.mts +4 -0
- package/dist/main/index.d.ts +4 -0
- package/dist/v1/schemas.gen.d.mts +9 -8
- package/dist/v1/schemas.gen.d.ts +9 -8
- package/dist/v1/schemas.gen.js +1 -1
- package/dist/v1/schemas.gen.mjs +1 -1
- package/dist/v1/types.gen.d.mts +3 -3
- package/dist/v1/types.gen.d.ts +3 -3
- package/dist/v1/types.gen.js +1 -1
- package/package.json +1 -1
package/dist/main/index.d.mts
CHANGED
|
@@ -1152,6 +1152,7 @@ type paymentMethodPaymentDetail = {
|
|
|
1152
1152
|
type PaymentMethodPaymentRefund = {
|
|
1153
1153
|
amount: string;
|
|
1154
1154
|
note: string;
|
|
1155
|
+
reason?: string;
|
|
1155
1156
|
lastUpdated: timeStamp;
|
|
1156
1157
|
};
|
|
1157
1158
|
|
|
@@ -1170,11 +1171,14 @@ type OrderPaymentDetails = {
|
|
|
1170
1171
|
totalPaidWithoutFee?: string;
|
|
1171
1172
|
splitPart?: string | null;
|
|
1172
1173
|
totalRefunded: string;
|
|
1174
|
+
numberUnpaidSplits?: string;
|
|
1175
|
+
unpaidSplitPrice?: string;
|
|
1173
1176
|
payments?: Array<paymentMethodPaymentDetail>;
|
|
1174
1177
|
promoCodeOutcome?: {
|
|
1175
1178
|
code: string;
|
|
1176
1179
|
discountAmount?: string;
|
|
1177
1180
|
discountPercent?: string;
|
|
1181
|
+
amount?: string;
|
|
1178
1182
|
};
|
|
1179
1183
|
serviceFeeSettings?: ServiceFeeSettings;
|
|
1180
1184
|
standardPrice?: OrderPriceDetails;
|
package/dist/main/index.d.ts
CHANGED
|
@@ -1152,6 +1152,7 @@ type paymentMethodPaymentDetail = {
|
|
|
1152
1152
|
type PaymentMethodPaymentRefund = {
|
|
1153
1153
|
amount: string;
|
|
1154
1154
|
note: string;
|
|
1155
|
+
reason?: string;
|
|
1155
1156
|
lastUpdated: timeStamp;
|
|
1156
1157
|
};
|
|
1157
1158
|
|
|
@@ -1170,11 +1171,14 @@ type OrderPaymentDetails = {
|
|
|
1170
1171
|
totalPaidWithoutFee?: string;
|
|
1171
1172
|
splitPart?: string | null;
|
|
1172
1173
|
totalRefunded: string;
|
|
1174
|
+
numberUnpaidSplits?: string;
|
|
1175
|
+
unpaidSplitPrice?: string;
|
|
1173
1176
|
payments?: Array<paymentMethodPaymentDetail>;
|
|
1174
1177
|
promoCodeOutcome?: {
|
|
1175
1178
|
code: string;
|
|
1176
1179
|
discountAmount?: string;
|
|
1177
1180
|
discountPercent?: string;
|
|
1181
|
+
amount?: string;
|
|
1178
1182
|
};
|
|
1179
1183
|
serviceFeeSettings?: ServiceFeeSettings;
|
|
1180
1184
|
standardPrice?: OrderPriceDetails;
|
|
@@ -293,9 +293,6 @@ declare const FacilityPunchCardDataSchema: {
|
|
|
293
293
|
readonly facility_receive_membership_requests: {
|
|
294
294
|
readonly type: "boolean";
|
|
295
295
|
};
|
|
296
|
-
readonly id: {
|
|
297
|
-
readonly type: "integer";
|
|
298
|
-
};
|
|
299
296
|
readonly max_duration: {
|
|
300
297
|
readonly type: "integer";
|
|
301
298
|
};
|
|
@@ -306,6 +303,7 @@ declare const FacilityPunchCardDataSchema: {
|
|
|
306
303
|
readonly type: "string";
|
|
307
304
|
};
|
|
308
305
|
readonly nr_of_bookings_in_period: {
|
|
306
|
+
readonly nullable: true;
|
|
309
307
|
readonly type: "integer";
|
|
310
308
|
};
|
|
311
309
|
readonly nr_of_days_valid: {
|
|
@@ -314,6 +312,9 @@ declare const FacilityPunchCardDataSchema: {
|
|
|
314
312
|
readonly nr_of_tickets: {
|
|
315
313
|
readonly type: "integer";
|
|
316
314
|
};
|
|
315
|
+
readonly offer_id: {
|
|
316
|
+
readonly type: "integer";
|
|
317
|
+
};
|
|
317
318
|
readonly price: {
|
|
318
319
|
readonly type: "string";
|
|
319
320
|
};
|
|
@@ -324,7 +325,7 @@ declare const FacilityPunchCardDataSchema: {
|
|
|
324
325
|
readonly type: "boolean";
|
|
325
326
|
};
|
|
326
327
|
};
|
|
327
|
-
readonly required: readonly ["
|
|
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"];
|
|
328
329
|
readonly type: "object";
|
|
329
330
|
};
|
|
330
331
|
declare const FacilityValueCardDataSchema: {
|
|
@@ -346,9 +347,6 @@ declare const FacilityValueCardDataSchema: {
|
|
|
346
347
|
readonly facility_receive_membership_requests: {
|
|
347
348
|
readonly type: "boolean";
|
|
348
349
|
};
|
|
349
|
-
readonly id: {
|
|
350
|
-
readonly type: "integer";
|
|
351
|
-
};
|
|
352
350
|
readonly members_only: {
|
|
353
351
|
readonly type: "boolean";
|
|
354
352
|
};
|
|
@@ -358,6 +356,9 @@ declare const FacilityValueCardDataSchema: {
|
|
|
358
356
|
readonly nr_of_days_valid: {
|
|
359
357
|
readonly type: "integer";
|
|
360
358
|
};
|
|
359
|
+
readonly offer_id: {
|
|
360
|
+
readonly type: "integer";
|
|
361
|
+
};
|
|
361
362
|
readonly price: {
|
|
362
363
|
readonly type: "string";
|
|
363
364
|
};
|
|
@@ -365,7 +366,7 @@ declare const FacilityValueCardDataSchema: {
|
|
|
365
366
|
readonly type: "boolean";
|
|
366
367
|
};
|
|
367
368
|
};
|
|
368
|
-
readonly required: readonly ["
|
|
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"];
|
|
369
370
|
readonly type: "object";
|
|
370
371
|
};
|
|
371
372
|
declare const GuestSchema: {
|
package/dist/v1/schemas.gen.d.ts
CHANGED
|
@@ -293,9 +293,6 @@ declare const FacilityPunchCardDataSchema: {
|
|
|
293
293
|
readonly facility_receive_membership_requests: {
|
|
294
294
|
readonly type: "boolean";
|
|
295
295
|
};
|
|
296
|
-
readonly id: {
|
|
297
|
-
readonly type: "integer";
|
|
298
|
-
};
|
|
299
296
|
readonly max_duration: {
|
|
300
297
|
readonly type: "integer";
|
|
301
298
|
};
|
|
@@ -306,6 +303,7 @@ declare const FacilityPunchCardDataSchema: {
|
|
|
306
303
|
readonly type: "string";
|
|
307
304
|
};
|
|
308
305
|
readonly nr_of_bookings_in_period: {
|
|
306
|
+
readonly nullable: true;
|
|
309
307
|
readonly type: "integer";
|
|
310
308
|
};
|
|
311
309
|
readonly nr_of_days_valid: {
|
|
@@ -314,6 +312,9 @@ declare const FacilityPunchCardDataSchema: {
|
|
|
314
312
|
readonly nr_of_tickets: {
|
|
315
313
|
readonly type: "integer";
|
|
316
314
|
};
|
|
315
|
+
readonly offer_id: {
|
|
316
|
+
readonly type: "integer";
|
|
317
|
+
};
|
|
317
318
|
readonly price: {
|
|
318
319
|
readonly type: "string";
|
|
319
320
|
};
|
|
@@ -324,7 +325,7 @@ declare const FacilityPunchCardDataSchema: {
|
|
|
324
325
|
readonly type: "boolean";
|
|
325
326
|
};
|
|
326
327
|
};
|
|
327
|
-
readonly required: readonly ["
|
|
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"];
|
|
328
329
|
readonly type: "object";
|
|
329
330
|
};
|
|
330
331
|
declare const FacilityValueCardDataSchema: {
|
|
@@ -346,9 +347,6 @@ declare const FacilityValueCardDataSchema: {
|
|
|
346
347
|
readonly facility_receive_membership_requests: {
|
|
347
348
|
readonly type: "boolean";
|
|
348
349
|
};
|
|
349
|
-
readonly id: {
|
|
350
|
-
readonly type: "integer";
|
|
351
|
-
};
|
|
352
350
|
readonly members_only: {
|
|
353
351
|
readonly type: "boolean";
|
|
354
352
|
};
|
|
@@ -358,6 +356,9 @@ declare const FacilityValueCardDataSchema: {
|
|
|
358
356
|
readonly nr_of_days_valid: {
|
|
359
357
|
readonly type: "integer";
|
|
360
358
|
};
|
|
359
|
+
readonly offer_id: {
|
|
360
|
+
readonly type: "integer";
|
|
361
|
+
};
|
|
361
362
|
readonly price: {
|
|
362
363
|
readonly type: "string";
|
|
363
364
|
};
|
|
@@ -365,7 +366,7 @@ declare const FacilityValueCardDataSchema: {
|
|
|
365
366
|
readonly type: "boolean";
|
|
366
367
|
};
|
|
367
368
|
};
|
|
368
|
-
readonly required: readonly ["
|
|
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"];
|
|
369
370
|
readonly type: "object";
|
|
370
371
|
};
|
|
371
372
|
declare const GuestSchema: {
|
package/dist/v1/schemas.gen.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var o=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var c=(t,e)=>{for(var i in e)o(t,i,{get:e[i],enumerable:!0})},m=(t,e,i,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of n(e))!p.call(t,r)&&r!==i&&o(t,r,{get:()=>e[r],enumerable:!(a=s(e,r))||a.enumerable});return t};var y=t=>m(o({},"__esModule",{value:!0}),t);var D={};c(D,{BookingSchema:()=>d,CreateBookingSchema:()=>f,FacilityOfferConditionActivitiesSchema:()=>_,FacilityOfferConditionCourtsSchema:()=>h,FacilityOfferConditionDateSchema:()=>g,FacilityOfferConditionHoursinadvanceSchema:()=>b,FacilityOfferConditionNotImplementedSchema:()=>x,FacilityOfferConditionSchema:()=>u,FacilityOfferConditionTimeSchema:()=>S,FacilityOfferConditionWeekdaysSchema:()=>C,FacilityOfferListSchema:()=>O,FacilityOfferOrderSchema:()=>k,FacilityOfferSchema:()=>l,FacilityPunchCardDataSchema:()=>v,FacilityValueCardDataSchema:()=>F,GuestSchema:()=>j,PlayerSchema:()=>q,UpdateBookingSchema:()=>I,pkgOpenapiSharedCursorPaginatedResultSetSchema:()=>$,pkgOpenapiSharedErrorSchema:()=>T,pkgOpenapiSharedErrorsSchema:()=>A,pkgOpenapiSharedOffsetPaginatedResultSetSchema:()=>P,pkgOpenapiSharedProblemDetailsSchema:()=>E});module.exports=y(D);var d={properties:{booker:{format:"uuid",type:"string"},created_at:{format:"date-time",type:"string"},created_by:{type:"string"},end_time:{format:"date-time",type:"string"},id:{format:"uuid",type:"string"},location:{type:"string"},participants:{properties:{guests:{items:{$ref:"#/components/schemas/Guest"},type:"array"},players:{items:{$ref:"#/components/schemas/Player"},type:"array"}},required:["guests","players"],type:"object"},payment_reference:{type:"string"},start_time:{format:"date-time",type:"string"},updated_at:{format:"date-time",type:"string"},updated_by:{type:"string"}},required:["id","booker","location","start_time","end_time","created_at","updated_at","participants","payment_reference","created_by","updated_by"],type:"object"},f={properties:{booker:{format:"uuid",type:"string"},created_by:{type:"string"},end_time:{format:"date-time",type:"string"},location:{type:"string"},participants:{properties:{guests:{items:{$ref:"#/components/schemas/Guest"},type:"array"},players:{items:{$ref:"#/components/schemas/Player"},type:"array"}},type:"object"},payment_reference:{type:"string"},start_time:{format:"date-time",type:"string"}},required:["booker","location","start_time","end_time","participants","payment_reference"],type:"object"},l={properties:{data:{oneOf:[{$ref:"#/components/schemas/FacilityPunchCardData"},{$ref:"#/components/schemas/FacilityValueCardData"}]},type:{enum:["FACILITY_PUNCH_CARD","FACILITY_VALUE_CARD"],type:"string"}},required:["type","data"],type:"object"},u={oneOf:[{$ref:"#/components/schemas/FacilityOfferConditionWeekdays"},{$ref:"#/components/schemas/FacilityOfferConditionCourts"},{$ref:"#/components/schemas/FacilityOfferConditionDate"},{$ref:"#/components/schemas/FacilityOfferConditionTime"},{$ref:"#/components/schemas/FacilityOfferConditionHoursinadvance"},{$ref:"#/components/schemas/FacilityOfferConditionActivities"},{$ref:"#/components/schemas/FacilityOfferConditionNotImplemented"}],properties:{type:{enum:["WEEKDAYS","COURTS","DATE","TIME","HOURSINADVANCE","ACTIVITIES","NOT_IMPLEMENTED"],type:"string"}},type:"object"},_={properties:{all_activities:{type:"boolean"},not_valid_for_activities:{type:"boolean"},type:{type:"string"}},required:["type","not_valid_for_activities","all_activities"],type:"object"},h={properties:{name:{type:"string"},type:{type:"string"}},required:["type"],type:"object"},g={properties:{end_date:{format:"date-time",type:"string"},start_date:{format:"date-time",type:"string"},type:{type:"string"}},required:["type","start_date","end_date"],type:"object"},b={properties:{nr_of_hours:{type:"integer"},type:{type:"string"}},required:["type","nr_of_hours"],type:"object"},x={properties:{type:{type:"string"}},required:["type"],type:"object"},S={properties:{end_time:{format:"time",type:"string"},start_time:{format:"time",type:"string"},type:{type:"string"}},required:["type","start_time","end_time"],type:"object"},C={properties:{type:{type:"string"},weekdays:{items:{description:"Interger representation of weekday. 1 (Monday), 7 (Sunday).",type:"integer"},type:"array"}},required:["type","weekdays"],type:"object"},O={properties:{data:{items:{$ref:"#/components/schemas/FacilityOffer"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"}},required:["data","meta"],type:"object"},k={properties:{checkout_url:{description:"The URL to the checkout page for the facility offer order",example:"https://checkout.matchi.com/pay/1b44a93b24a3413dadsee96e1bc7a4350ecac",format:"uri",type:"string"},id:{type:"string"}},required:["id","checkout_url"],type:"object"},v={properties:{conditions:{items:{$ref:"#/components/schemas/FacilityOfferCondition"},type:"array"},description:{nullable:!0,type:"string"},expire_date:{format:"date-time",type:"string"},facility_id:{type:"integer"},facility_receive_membership_requests:{type:"boolean"},max_duration:{type:"integer"},members_only:{type:"boolean"},name:{type:"string"},nr_of_bookings_in_period:{nullable:!0,type:"integer"},nr_of_days_valid:{type:"integer"},nr_of_tickets:{type:"integer"},offer_id:{type:"integer"},price:{type:"string"},unlimited:{type:"boolean"},user_has_active_membership:{type:"boolean"}},required:["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"],type:"object"},F={properties:{amount:{type:"string"},description:{nullable:!0,type:"string"},expire_date:{format:"date-time",type:"string"},facility_id:{type:"integer"},facility_receive_membership_requests:{type:"boolean"},members_only:{type:"boolean"},name:{type:"string"},nr_of_days_valid:{type:"integer"},offer_id:{type:"integer"},price:{type:"string"},user_has_active_membership:{type:"boolean"}},required:["offer_id","facility_id","name","description","price","nr_of_days_valid","amount","members_only","user_has_active_membership","facility_receive_membership_requests","expire_date"],type:"object"},j={properties:{email:{type:"string"}},required:["email"],type:"object"},q={properties:{email:{type:"string"},id:{format:"uuid",type:"string"}},required:["id","email"],type:"object"},I={properties:{booker:{format:"uuid",type:"string"},end_time:{format:"date-time",type:"string"},location:{type:"string"},participants:{properties:{guests:{items:{$ref:"#/components/schemas/Guest"},type:"array"},players:{items:{$ref:"#/components/schemas/Player"},type:"array"}},type:"object"},payment_reference:{type:"string"},start_time:{format:"date-time",type:"string"}},required:["booker","location","start_time","end_time","participants","payment_reference"],type:"object"},$={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",properties:{current_cursor:{description:"Cursor used to retrieve the current page of results.",type:"string"},more_results:{description:"Indicates if there are more results available.",type:"boolean"},next_cursor:{description:"Cursor to retrieve the next page of results.",type:"string"}},required:["current_cursor","more_results"],type:"object"},T={properties:{message:{description:"The error message",type:"string"}},type:"object"},A={description:"An array of error details to accompany a problem details response.",items:{$ref:"#/components/schemas/pkgOpenapiSharedError"},maxItems:1e3,type:"array"},P={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",properties:{limit:{type:"integer"},more_results:{type:"boolean"},offset:{type:"integer"}},required:["offset","limit","more_results"],type:"object"},E={properties:{detail:{description:"A human-readable explanation specific to this occurrence of the problem.",maxLength:4096,type:"string"},errors:{$ref:"#/components/schemas/pkgOpenapiSharedErrors"},instance:{description:"A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.",maxLength:1024,type:"string"},status:{description:"The HTTP status code generated by the origin server for this occurrence of the problem.",format:"int32",maximum:599,minimum:100,type:"integer"},title:{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.",maxLength:1024,type:"string"},type:{description:"A URI reference that identifies the problem type.",format:"uri",maxLength:1024,type:"string"}},required:["title"],type:"object"};0&&(module.exports={BookingSchema,CreateBookingSchema,FacilityOfferConditionActivitiesSchema,FacilityOfferConditionCourtsSchema,FacilityOfferConditionDateSchema,FacilityOfferConditionHoursinadvanceSchema,FacilityOfferConditionNotImplementedSchema,FacilityOfferConditionSchema,FacilityOfferConditionTimeSchema,FacilityOfferConditionWeekdaysSchema,FacilityOfferListSchema,FacilityOfferOrderSchema,FacilityOfferSchema,FacilityPunchCardDataSchema,FacilityValueCardDataSchema,GuestSchema,PlayerSchema,UpdateBookingSchema,pkgOpenapiSharedCursorPaginatedResultSetSchema,pkgOpenapiSharedErrorSchema,pkgOpenapiSharedErrorsSchema,pkgOpenapiSharedOffsetPaginatedResultSetSchema,pkgOpenapiSharedProblemDetailsSchema});
|
package/dist/v1/schemas.gen.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e={properties:{booker:{format:"uuid",type:"string"},created_at:{format:"date-time",type:"string"},created_by:{type:"string"},end_time:{format:"date-time",type:"string"},id:{format:"uuid",type:"string"},location:{type:"string"},participants:{properties:{guests:{items:{$ref:"#/components/schemas/Guest"},type:"array"},players:{items:{$ref:"#/components/schemas/Player"},type:"array"}},required:["guests","players"],type:"object"},payment_reference:{type:"string"},start_time:{format:"date-time",type:"string"},updated_at:{format:"date-time",type:"string"},updated_by:{type:"string"}},required:["id","booker","location","start_time","end_time","created_at","updated_at","participants","payment_reference","created_by","updated_by"],type:"object"},t={properties:{booker:{format:"uuid",type:"string"},created_by:{type:"string"},end_time:{format:"date-time",type:"string"},location:{type:"string"},participants:{properties:{guests:{items:{$ref:"#/components/schemas/Guest"},type:"array"},players:{items:{$ref:"#/components/schemas/Player"},type:"array"}},type:"object"},payment_reference:{type:"string"},start_time:{format:"date-time",type:"string"}},required:["booker","location","start_time","end_time","participants","payment_reference"],type:"object"},r={properties:{data:{oneOf:[{$ref:"#/components/schemas/FacilityPunchCardData"},{$ref:"#/components/schemas/FacilityValueCardData"}]},type:{enum:["FACILITY_PUNCH_CARD","FACILITY_VALUE_CARD"],type:"string"}},required:["type","data"],type:"object"},i={oneOf:[{$ref:"#/components/schemas/FacilityOfferConditionWeekdays"},{$ref:"#/components/schemas/FacilityOfferConditionCourts"},{$ref:"#/components/schemas/FacilityOfferConditionDate"},{$ref:"#/components/schemas/FacilityOfferConditionTime"},{$ref:"#/components/schemas/FacilityOfferConditionHoursinadvance"},{$ref:"#/components/schemas/FacilityOfferConditionActivities"},{$ref:"#/components/schemas/FacilityOfferConditionNotImplemented"}],properties:{type:{enum:["WEEKDAYS","COURTS","DATE","TIME","HOURSINADVANCE","ACTIVITIES","NOT_IMPLEMENTED"],type:"string"}},type:"object"},
|
|
1
|
+
var e={properties:{booker:{format:"uuid",type:"string"},created_at:{format:"date-time",type:"string"},created_by:{type:"string"},end_time:{format:"date-time",type:"string"},id:{format:"uuid",type:"string"},location:{type:"string"},participants:{properties:{guests:{items:{$ref:"#/components/schemas/Guest"},type:"array"},players:{items:{$ref:"#/components/schemas/Player"},type:"array"}},required:["guests","players"],type:"object"},payment_reference:{type:"string"},start_time:{format:"date-time",type:"string"},updated_at:{format:"date-time",type:"string"},updated_by:{type:"string"}},required:["id","booker","location","start_time","end_time","created_at","updated_at","participants","payment_reference","created_by","updated_by"],type:"object"},t={properties:{booker:{format:"uuid",type:"string"},created_by:{type:"string"},end_time:{format:"date-time",type:"string"},location:{type:"string"},participants:{properties:{guests:{items:{$ref:"#/components/schemas/Guest"},type:"array"},players:{items:{$ref:"#/components/schemas/Player"},type:"array"}},type:"object"},payment_reference:{type:"string"},start_time:{format:"date-time",type:"string"}},required:["booker","location","start_time","end_time","participants","payment_reference"],type:"object"},r={properties:{data:{oneOf:[{$ref:"#/components/schemas/FacilityPunchCardData"},{$ref:"#/components/schemas/FacilityValueCardData"}]},type:{enum:["FACILITY_PUNCH_CARD","FACILITY_VALUE_CARD"],type:"string"}},required:["type","data"],type:"object"},i={oneOf:[{$ref:"#/components/schemas/FacilityOfferConditionWeekdays"},{$ref:"#/components/schemas/FacilityOfferConditionCourts"},{$ref:"#/components/schemas/FacilityOfferConditionDate"},{$ref:"#/components/schemas/FacilityOfferConditionTime"},{$ref:"#/components/schemas/FacilityOfferConditionHoursinadvance"},{$ref:"#/components/schemas/FacilityOfferConditionActivities"},{$ref:"#/components/schemas/FacilityOfferConditionNotImplemented"}],properties:{type:{enum:["WEEKDAYS","COURTS","DATE","TIME","HOURSINADVANCE","ACTIVITIES","NOT_IMPLEMENTED"],type:"string"}},type:"object"},o={properties:{all_activities:{type:"boolean"},not_valid_for_activities:{type:"boolean"},type:{type:"string"}},required:["type","not_valid_for_activities","all_activities"],type:"object"},a={properties:{name:{type:"string"},type:{type:"string"}},required:["type"],type:"object"},s={properties:{end_date:{format:"date-time",type:"string"},start_date:{format:"date-time",type:"string"},type:{type:"string"}},required:["type","start_date","end_date"],type:"object"},n={properties:{nr_of_hours:{type:"integer"},type:{type:"string"}},required:["type","nr_of_hours"],type:"object"},p={properties:{type:{type:"string"}},required:["type"],type:"object"},c={properties:{end_time:{format:"time",type:"string"},start_time:{format:"time",type:"string"},type:{type:"string"}},required:["type","start_time","end_time"],type:"object"},m={properties:{type:{type:"string"},weekdays:{items:{description:"Interger representation of weekday. 1 (Monday), 7 (Sunday).",type:"integer"},type:"array"}},required:["type","weekdays"],type:"object"},y={properties:{data:{items:{$ref:"#/components/schemas/FacilityOffer"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"}},required:["data","meta"],type:"object"},d={properties:{checkout_url:{description:"The URL to the checkout page for the facility offer order",example:"https://checkout.matchi.com/pay/1b44a93b24a3413dadsee96e1bc7a4350ecac",format:"uri",type:"string"},id:{type:"string"}},required:["id","checkout_url"],type:"object"},f={properties:{conditions:{items:{$ref:"#/components/schemas/FacilityOfferCondition"},type:"array"},description:{nullable:!0,type:"string"},expire_date:{format:"date-time",type:"string"},facility_id:{type:"integer"},facility_receive_membership_requests:{type:"boolean"},max_duration:{type:"integer"},members_only:{type:"boolean"},name:{type:"string"},nr_of_bookings_in_period:{nullable:!0,type:"integer"},nr_of_days_valid:{type:"integer"},nr_of_tickets:{type:"integer"},offer_id:{type:"integer"},price:{type:"string"},unlimited:{type:"boolean"},user_has_active_membership:{type:"boolean"}},required:["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"],type:"object"},l={properties:{amount:{type:"string"},description:{nullable:!0,type:"string"},expire_date:{format:"date-time",type:"string"},facility_id:{type:"integer"},facility_receive_membership_requests:{type:"boolean"},members_only:{type:"boolean"},name:{type:"string"},nr_of_days_valid:{type:"integer"},offer_id:{type:"integer"},price:{type:"string"},user_has_active_membership:{type:"boolean"}},required:["offer_id","facility_id","name","description","price","nr_of_days_valid","amount","members_only","user_has_active_membership","facility_receive_membership_requests","expire_date"],type:"object"},u={properties:{email:{type:"string"}},required:["email"],type:"object"},_={properties:{email:{type:"string"},id:{format:"uuid",type:"string"}},required:["id","email"],type:"object"},h={properties:{booker:{format:"uuid",type:"string"},end_time:{format:"date-time",type:"string"},location:{type:"string"},participants:{properties:{guests:{items:{$ref:"#/components/schemas/Guest"},type:"array"},players:{items:{$ref:"#/components/schemas/Player"},type:"array"}},type:"object"},payment_reference:{type:"string"},start_time:{format:"date-time",type:"string"}},required:["booker","location","start_time","end_time","participants","payment_reference"],type:"object"},g={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",properties:{current_cursor:{description:"Cursor used to retrieve the current page of results.",type:"string"},more_results:{description:"Indicates if there are more results available.",type:"boolean"},next_cursor:{description:"Cursor to retrieve the next page of results.",type:"string"}},required:["current_cursor","more_results"],type:"object"},b={properties:{message:{description:"The error message",type:"string"}},type:"object"},x={description:"An array of error details to accompany a problem details response.",items:{$ref:"#/components/schemas/pkgOpenapiSharedError"},maxItems:1e3,type:"array"},S={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",properties:{limit:{type:"integer"},more_results:{type:"boolean"},offset:{type:"integer"}},required:["offset","limit","more_results"],type:"object"},C={properties:{detail:{description:"A human-readable explanation specific to this occurrence of the problem.",maxLength:4096,type:"string"},errors:{$ref:"#/components/schemas/pkgOpenapiSharedErrors"},instance:{description:"A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.",maxLength:1024,type:"string"},status:{description:"The HTTP status code generated by the origin server for this occurrence of the problem.",format:"int32",maximum:599,minimum:100,type:"integer"},title:{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.",maxLength:1024,type:"string"},type:{description:"A URI reference that identifies the problem type.",format:"uri",maxLength:1024,type:"string"}},required:["title"],type:"object"};export{e as BookingSchema,t as CreateBookingSchema,o as FacilityOfferConditionActivitiesSchema,a as FacilityOfferConditionCourtsSchema,s as FacilityOfferConditionDateSchema,n as FacilityOfferConditionHoursinadvanceSchema,p as FacilityOfferConditionNotImplementedSchema,i as FacilityOfferConditionSchema,c as FacilityOfferConditionTimeSchema,m as FacilityOfferConditionWeekdaysSchema,y as FacilityOfferListSchema,d as FacilityOfferOrderSchema,r as FacilityOfferSchema,f as FacilityPunchCardDataSchema,l as FacilityValueCardDataSchema,u as GuestSchema,_ as PlayerSchema,h as UpdateBookingSchema,g as pkgOpenapiSharedCursorPaginatedResultSetSchema,b as pkgOpenapiSharedErrorSchema,x as pkgOpenapiSharedErrorsSchema,S as pkgOpenapiSharedOffsetPaginatedResultSetSchema,C as pkgOpenapiSharedProblemDetailsSchema};
|
package/dist/v1/types.gen.d.mts
CHANGED
|
@@ -80,13 +80,13 @@ type FacilityPunchCardData = {
|
|
|
80
80
|
expireDate: string;
|
|
81
81
|
facilityId: number;
|
|
82
82
|
facilityReceiveMembershipRequests: boolean;
|
|
83
|
-
id: number;
|
|
84
83
|
maxDuration: number;
|
|
85
84
|
membersOnly: boolean;
|
|
86
85
|
name: string;
|
|
87
|
-
nrOfBookingsInPeriod: number;
|
|
86
|
+
nrOfBookingsInPeriod: number | null;
|
|
88
87
|
nrOfDaysValid: number;
|
|
89
88
|
nrOfTickets: number;
|
|
89
|
+
offerId: number;
|
|
90
90
|
price: string;
|
|
91
91
|
unlimited: boolean;
|
|
92
92
|
userHasActiveMembership: boolean;
|
|
@@ -97,10 +97,10 @@ type FacilityValueCardData = {
|
|
|
97
97
|
expireDate: string;
|
|
98
98
|
facilityId: number;
|
|
99
99
|
facilityReceiveMembershipRequests: boolean;
|
|
100
|
-
id: number;
|
|
101
100
|
membersOnly: boolean;
|
|
102
101
|
name: string;
|
|
103
102
|
nrOfDaysValid: number;
|
|
103
|
+
offerId: number;
|
|
104
104
|
price: string;
|
|
105
105
|
userHasActiveMembership: boolean;
|
|
106
106
|
};
|
package/dist/v1/types.gen.d.ts
CHANGED
|
@@ -80,13 +80,13 @@ type FacilityPunchCardData = {
|
|
|
80
80
|
expireDate: string;
|
|
81
81
|
facilityId: number;
|
|
82
82
|
facilityReceiveMembershipRequests: boolean;
|
|
83
|
-
id: number;
|
|
84
83
|
maxDuration: number;
|
|
85
84
|
membersOnly: boolean;
|
|
86
85
|
name: string;
|
|
87
|
-
nrOfBookingsInPeriod: number;
|
|
86
|
+
nrOfBookingsInPeriod: number | null;
|
|
88
87
|
nrOfDaysValid: number;
|
|
89
88
|
nrOfTickets: number;
|
|
89
|
+
offerId: number;
|
|
90
90
|
price: string;
|
|
91
91
|
unlimited: boolean;
|
|
92
92
|
userHasActiveMembership: boolean;
|
|
@@ -97,10 +97,10 @@ type FacilityValueCardData = {
|
|
|
97
97
|
expireDate: string;
|
|
98
98
|
facilityId: number;
|
|
99
99
|
facilityReceiveMembershipRequests: boolean;
|
|
100
|
-
id: number;
|
|
101
100
|
membersOnly: boolean;
|
|
102
101
|
name: string;
|
|
103
102
|
nrOfDaysValid: number;
|
|
103
|
+
offerId: number;
|
|
104
104
|
price: string;
|
|
105
105
|
userHasActiveMembership: boolean;
|
|
106
106
|
};
|
package/dist/v1/types.gen.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var o=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var
|
|
1
|
+
"use strict";var o=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var l=(r,e,a,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of s(e))!p.call(r,t)&&t!==a&&o(r,t,{get:()=>e[t],enumerable:!(i=n(e,t))||i.enumerable});return r};var d=r=>l(o({},"__esModule",{value:!0}),r);var y={};module.exports=d(y);
|