@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.
- package/dist/main/index.d.mts +849 -1
- package/dist/main/index.d.ts +849 -1
- package/dist/main/index.js +1 -1
- package/dist/main/index.mjs +1 -1
- package/package.json +3 -35
- package/dist/v1/@tanstack/react-query.gen.d.mts +0 -189
- package/dist/v1/@tanstack/react-query.gen.d.ts +0 -189
- package/dist/v1/@tanstack/react-query.gen.js +0 -1
- package/dist/v1/@tanstack/react-query.gen.mjs +0 -1
- package/dist/v1/chunk-M5A265XW.mjs +0 -1
- package/dist/v1/chunk-PT2OYMNL.mjs +0 -0
- package/dist/v1/index.d.mts +0 -3
- package/dist/v1/index.d.ts +0 -3
- package/dist/v1/index.js +0 -1
- package/dist/v1/index.mjs +0 -1
- package/dist/v1/schemas.gen.d.mts +0 -525
- package/dist/v1/schemas.gen.d.ts +0 -525
- package/dist/v1/schemas.gen.js +0 -1
- package/dist/v1/schemas.gen.mjs +0 -1
- package/dist/v1/sdk.gen.d.mts +0 -45
- package/dist/v1/sdk.gen.d.ts +0 -45
- package/dist/v1/sdk.gen.js +0 -1
- package/dist/v1/sdk.gen.mjs +0 -1
- package/dist/v1/types.gen.d.mts +0 -506
- package/dist/v1/types.gen.d.ts +0 -506
- package/dist/v1/types.gen.js +0 -1
- package/dist/v1/types.gen.mjs +0 -1
package/dist/v1/sdk.gen.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var m=Object.defineProperty;var F=Object.getOwnPropertyDescriptor;var S=Object.getOwnPropertyNames;var v=Object.prototype.hasOwnProperty;var A=(e,t)=>{for(var r in t)m(e,r,{get:t[r],enumerable:!0})},U=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of S(t))!v.call(e,a)&&a!==r&&m(e,a,{get:()=>t[a],enumerable:!(i=F(t,a))||i.enumerable});return e};var $=e=>U(m({},"__esModule",{value:!0}),e);var te={};A(te,{addBooking:()=>K,client:()=>c,createFacilityOfferOrder:()=>re,deleteBooking:()=>X,findBookingById:()=>Y,findBookings:()=>Q,listFacilityOffers:()=>ee,updateBooking:()=>Z});module.exports=$(te);var q=/\{[^{}]+\}/g,O=({allowReserved:e,name:t,value:r})=>{if(r==null)return"";if(typeof r=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return`${t}=${e?r:encodeURIComponent(r)}`},I=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},z=e=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},_=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},x=({allowReserved:e,explode:t,name:r,style:i,value:a})=>{if(!t){let n=(e?a:a.map(l=>encodeURIComponent(l))).join(z(i));switch(i){case"label":return`.${n}`;case"matrix":return`;${r}=${n}`;case"simple":return n;default:return`${r}=${n}`}}let s=I(i),o=a.map(n=>i==="label"||i==="simple"?e?n:encodeURIComponent(n):O({allowReserved:e,name:r,value:n})).join(s);return i==="label"||i==="matrix"?s+o:o},T=({allowReserved:e,explode:t,name:r,style:i,value:a})=>{if(a instanceof Date)return`${r}=${a.toISOString()}`;if(i!=="deepObject"&&!t){let n=[];Object.entries(a).forEach(([p,f])=>{n=[...n,p,e?f:encodeURIComponent(f)]});let l=n.join(",");switch(i){case"form":return`${r}=${l}`;case"label":return`.${l}`;case"matrix":return`;${r}=${l}`;default:return l}}let s=_(i),o=Object.entries(a).map(([n,l])=>O({allowReserved:e,name:i==="deepObject"?`${r}[${n}]`:n,value:l})).join(s);return i==="label"||i==="matrix"?s+o:o},W=({path:e,url:t})=>{let r=t,i=t.match(q);if(i)for(let a of i){let s=!1,o=a.substring(1,a.length-1),n="simple";o.endsWith("*")&&(s=!0,o=o.substring(0,o.length-1)),o.startsWith(".")?(o=o.substring(1),n="label"):o.startsWith(";")&&(o=o.substring(1),n="matrix");let l=e[o];if(l==null)continue;if(Array.isArray(l)){r=r.replace(a,x({explode:s,name:o,style:n,value:l}));continue}if(typeof l=="object"){r=r.replace(a,T({explode:s,name:o,style:n,value:l}));continue}if(n==="matrix"){r=r.replace(a,`;${O({name:o,value:l})}`);continue}let p=encodeURIComponent(n==="label"?`.${l}`:l);r=r.replace(a,p)}return r},j=({allowReserved:e,array:t,object:r}={})=>i=>{let a=[];if(i&&typeof i=="object")for(let s in i){let o=i[s];if(o!=null){if(Array.isArray(o)){a=[...a,x({allowReserved:e,explode:!0,name:s,style:"form",value:o,...t})];continue}if(typeof o=="object"){a=[...a,T({allowReserved:e,explode:!0,name:s,style:"deepObject",value:o,...r})];continue}a=[...a,O({allowReserved:e,name:s,value:o})]}}return a.join("&")},L=e=>{if(!e)return"stream";let t=e.split(";")[0]?.trim();if(t){if(t.startsWith("application/json")||t.endsWith("+json"))return"json";if(t==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(r=>t.startsWith(r)))return"blob";if(t.startsWith("text/"))return"text"}},N=async(e,t)=>{let r=typeof t=="function"?await t(e):t;if(r)return e.scheme==="bearer"?`Bearer ${r}`:e.scheme==="basic"?`Basic ${btoa(r)}`:r},P=async({security:e,...t})=>{for(let r of e){let i=await N(r,t.auth);if(!i)continue;let a=r.name??"Authorization";switch(r.in){case"query":t.query||(t.query={}),t.query[a]=i;break;case"header":default:t.headers.set(a,i);break}return}},B=e=>H({baseUrl:e.baseUrl??"",path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:j(e.querySerializer),url:e.url}),H=({baseUrl:e,path:t,query:r,querySerializer:i,url:a})=>{let s=a.startsWith("/")?a:`/${a}`,o=e+s;t&&(o=W({path:t,url:o}));let n=r?i(r):"";return n.startsWith("?")&&(n=n.substring(1)),n&&(o+=`?${n}`),o},k=(e,t)=>{let r={...e,...t};return r.baseUrl?.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=R(e.headers,t.headers),r},R=(...e)=>{let t=new Headers;for(let r of e){if(!r||typeof r!="object")continue;let i=r instanceof Headers?r.entries():Object.entries(r);for(let[a,s]of i)if(s===null)t.delete(a);else if(Array.isArray(s))for(let o of s)t.append(a,o);else s!==void 0&&t.set(a,typeof s=="object"?JSON.stringify(s):s)}return t},w=class{_fns;constructor(){this._fns=[]}clear(){this._fns=[]}exists(e){return this._fns.indexOf(e)!==-1}eject(e){let t=this._fns.indexOf(e);t!==-1&&(this._fns=[...this._fns.slice(0,t),...this._fns.slice(t+1)])}use(e){this._fns=[...this._fns,e]}},J=()=>({error:new w,request:new w,response:new w});var V={bodySerializer:e=>JSON.stringify(e)};var G=j({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),M={"Content-Type":"application/json"},E=(e={})=>({...V,baseUrl:"",headers:M,parseAs:"auto",querySerializer:G,...e}),D=(e={})=>{let t=k(E(),e),r=()=>({...t}),i=o=>(t=k(t,o),r()),a=J(),s=async o=>{let n={...t,...o,fetch:o.fetch??t.fetch??globalThis.fetch,headers:R(t.headers,o.headers)};n.security&&await P({...n,security:n.security}),n.body&&n.bodySerializer&&(n.body=n.bodySerializer(n.body)),n.body||n.headers.delete("Content-Type");let l=B(n),p={redirect:"follow",...n},f=new Request(l,p);for(let u of a.request._fns)f=await u(f,n);let C=n.fetch,d=await C(f);for(let u of a.response._fns)d=await u(d,f,n);let y={request:f,response:d};if(d.ok){if(d.status===204||d.headers.get("Content-Length")==="0")return{data:{},...y};let u=(n.parseAs==="auto"?L(d.headers.get("Content-Type")):n.parseAs)??"json";if(u==="stream")return{data:d.body,...y};let g=await d[u]();return u==="json"&&(n.responseValidator&&await n.responseValidator(g),n.responseTransformer&&(g=await n.responseTransformer(g))),{data:g,...y}}let b=await d.text();try{b=JSON.parse(b)}catch{}let h=b;for(let u of a.error._fns)h=await u(b,d,f,n);if(h=h||{},n.throwOnError)throw h;return{error:h,...y}};return{buildUrl:B,connect:o=>s({...o,method:"CONNECT"}),delete:o=>s({...o,method:"DELETE"}),get:o=>s({...o,method:"GET"}),getConfig:r,head:o=>s({...o,method:"HEAD"}),interceptors:a,options:o=>s({...o,method:"OPTIONS"}),patch:o=>s({...o,method:"PATCH"}),post:o=>s({...o,method:"POST"}),put:o=>s({...o,method:"PUT"}),request:s,setConfig:i,trace:o=>s({...o,method:"TRACE"})}};var c=D(E()),Q=e=>(e?.client??c).get({...e,url:"/bookings"}),K=e=>(e?.client??c).post({...e,headers:{"Content-Type":"application/json",...e?.headers},url:"/bookings"}),X=e=>(e?.client??c).delete({...e,url:"/bookings/{bookingId}"}),Y=e=>(e?.client??c).get({...e,url:"/bookings/{bookingId}"}),Z=e=>(e?.client??c).put({...e,headers:{"Content-Type":"application/json",...e?.headers},url:"/bookings/{bookingId}"}),ee=e=>(e?.client??c).get({...e,url:"/facilities/{facility_id}/offers"}),re=e=>(e?.client??c).post({...e,url:"/facilities/{facility_id}/offers/{offer_id}"});0&&(module.exports={addBooking,client,createFacilityOfferOrder,deleteBooking,findBookingById,findBookings,listFacilityOffers,updateBooking});
|
package/dist/v1/sdk.gen.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g,h}from"./chunk-M5A265XW.mjs";export{c as addBooking,a as client,h as createFacilityOfferOrder,d as deleteBooking,e as findBookingById,b as findBookings,g as listFacilityOffers,f as updateBooking};
|
package/dist/v1/types.gen.d.mts
DELETED
|
@@ -1,506 +0,0 @@
|
|
|
1
|
-
type Booking = {
|
|
2
|
-
booker: string;
|
|
3
|
-
created_at: string;
|
|
4
|
-
created_by: string;
|
|
5
|
-
end_time: string;
|
|
6
|
-
id: string;
|
|
7
|
-
location: string;
|
|
8
|
-
participants: {
|
|
9
|
-
guests: Array<Guest>;
|
|
10
|
-
players: Array<Player>;
|
|
11
|
-
};
|
|
12
|
-
payment_reference: string;
|
|
13
|
-
start_time: string;
|
|
14
|
-
updated_at: string;
|
|
15
|
-
updated_by: string;
|
|
16
|
-
};
|
|
17
|
-
type CreateBooking = {
|
|
18
|
-
booker: string;
|
|
19
|
-
created_by?: string;
|
|
20
|
-
end_time: string;
|
|
21
|
-
location: string;
|
|
22
|
-
participants: {
|
|
23
|
-
guests?: Array<Guest>;
|
|
24
|
-
players?: Array<Player>;
|
|
25
|
-
};
|
|
26
|
-
payment_reference: string;
|
|
27
|
-
start_time: string;
|
|
28
|
-
};
|
|
29
|
-
type FacilityOffer = {
|
|
30
|
-
data: FacilityPunchCardData | FacilityValueCardData;
|
|
31
|
-
type: 'FACILITY_PUNCH_CARD' | 'FACILITY_VALUE_CARD';
|
|
32
|
-
};
|
|
33
|
-
type FacilityOfferCondition = (FacilityOfferConditionWeekdays | FacilityOfferConditionCourts | FacilityOfferConditionDate | FacilityOfferConditionTime | FacilityOfferConditionHoursinadvance | FacilityOfferConditionActivities | FacilityOfferConditionNotImplemented) & {
|
|
34
|
-
type?: 'WEEKDAYS' | 'COURTS' | 'DATE' | 'TIME' | 'HOURSINADVANCE' | 'ACTIVITIES' | 'NOT_IMPLEMENTED';
|
|
35
|
-
};
|
|
36
|
-
type FacilityOfferConditionActivities = {
|
|
37
|
-
all_activities: boolean;
|
|
38
|
-
not_valid_for_activities: boolean;
|
|
39
|
-
type: string;
|
|
40
|
-
};
|
|
41
|
-
type FacilityOfferConditionCourts = {
|
|
42
|
-
name?: string;
|
|
43
|
-
type: string;
|
|
44
|
-
};
|
|
45
|
-
type FacilityOfferConditionDate = {
|
|
46
|
-
end_date: string;
|
|
47
|
-
start_date: string;
|
|
48
|
-
type: string;
|
|
49
|
-
};
|
|
50
|
-
type FacilityOfferConditionHoursinadvance = {
|
|
51
|
-
nr_of_hours: number;
|
|
52
|
-
type: string;
|
|
53
|
-
};
|
|
54
|
-
type FacilityOfferConditionNotImplemented = {
|
|
55
|
-
type: string;
|
|
56
|
-
};
|
|
57
|
-
type FacilityOfferConditionTime = {
|
|
58
|
-
end_time: string;
|
|
59
|
-
start_time: string;
|
|
60
|
-
type: string;
|
|
61
|
-
};
|
|
62
|
-
type FacilityOfferConditionWeekdays = {
|
|
63
|
-
type: string;
|
|
64
|
-
weekdays: Array<number>;
|
|
65
|
-
};
|
|
66
|
-
type FacilityOfferList = {
|
|
67
|
-
data: Array<FacilityOffer>;
|
|
68
|
-
meta: PkgOpenapiSharedCursorPaginatedResultSet;
|
|
69
|
-
};
|
|
70
|
-
type FacilityOfferOrder = {
|
|
71
|
-
/**
|
|
72
|
-
* The URL to the checkout page for the facility offer order
|
|
73
|
-
*/
|
|
74
|
-
checkout_url: string;
|
|
75
|
-
id: string;
|
|
76
|
-
};
|
|
77
|
-
type FacilityPunchCardData = {
|
|
78
|
-
conditions: Array<FacilityOfferCondition>;
|
|
79
|
-
description: string | null;
|
|
80
|
-
expire_date: string;
|
|
81
|
-
facility_id: number;
|
|
82
|
-
facility_receive_membership_requests: boolean;
|
|
83
|
-
max_duration: number;
|
|
84
|
-
members_only: boolean;
|
|
85
|
-
name: string;
|
|
86
|
-
nr_of_bookings_in_period: number | null;
|
|
87
|
-
nr_of_days_valid: number;
|
|
88
|
-
nr_of_tickets: number;
|
|
89
|
-
offer_id: number;
|
|
90
|
-
price: string;
|
|
91
|
-
unlimited: boolean;
|
|
92
|
-
user_has_active_membership: boolean;
|
|
93
|
-
};
|
|
94
|
-
type FacilityValueCardData = {
|
|
95
|
-
amount: string;
|
|
96
|
-
description: string | null;
|
|
97
|
-
expire_date: string;
|
|
98
|
-
facility_id: number;
|
|
99
|
-
facility_receive_membership_requests: boolean;
|
|
100
|
-
members_only: boolean;
|
|
101
|
-
name: string;
|
|
102
|
-
nr_of_days_valid: number;
|
|
103
|
-
offer_id: number;
|
|
104
|
-
price: string;
|
|
105
|
-
user_has_active_membership: boolean;
|
|
106
|
-
};
|
|
107
|
-
type Guest = {
|
|
108
|
-
email: string;
|
|
109
|
-
};
|
|
110
|
-
type Player = {
|
|
111
|
-
email: string;
|
|
112
|
-
id: string;
|
|
113
|
-
};
|
|
114
|
-
type UpdateBooking = {
|
|
115
|
-
booker: string;
|
|
116
|
-
end_time: string;
|
|
117
|
-
location: string;
|
|
118
|
-
participants: {
|
|
119
|
-
guests?: Array<Guest>;
|
|
120
|
-
players?: Array<Player>;
|
|
121
|
-
};
|
|
122
|
-
payment_reference: string;
|
|
123
|
-
start_time: string;
|
|
124
|
-
};
|
|
125
|
-
/**
|
|
126
|
-
* 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.
|
|
127
|
-
*
|
|
128
|
-
*/
|
|
129
|
-
type PkgOpenapiSharedCursorPaginatedResultSet = {
|
|
130
|
-
/**
|
|
131
|
-
* Cursor used to retrieve the current page of results.
|
|
132
|
-
*/
|
|
133
|
-
current_cursor: string;
|
|
134
|
-
/**
|
|
135
|
-
* Indicates if there are more results available.
|
|
136
|
-
*/
|
|
137
|
-
more_results: boolean;
|
|
138
|
-
/**
|
|
139
|
-
* Cursor to retrieve the next page of results.
|
|
140
|
-
*/
|
|
141
|
-
next_cursor?: string;
|
|
142
|
-
};
|
|
143
|
-
type PkgOpenapiSharedError = {
|
|
144
|
-
/**
|
|
145
|
-
* The error message
|
|
146
|
-
*/
|
|
147
|
-
message?: string;
|
|
148
|
-
};
|
|
149
|
-
/**
|
|
150
|
-
* An array of error details to accompany a problem details response.
|
|
151
|
-
*/
|
|
152
|
-
type PkgOpenapiSharedErrors = Array<PkgOpenapiSharedError>;
|
|
153
|
-
/**
|
|
154
|
-
* 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.
|
|
155
|
-
*
|
|
156
|
-
*/
|
|
157
|
-
type PkgOpenapiSharedOffsetPaginatedResultSet = {
|
|
158
|
-
limit: number;
|
|
159
|
-
more_results: boolean;
|
|
160
|
-
offset: number;
|
|
161
|
-
};
|
|
162
|
-
type PkgOpenapiSharedProblemDetails = {
|
|
163
|
-
/**
|
|
164
|
-
* A human-readable explanation specific to this occurrence of the problem.
|
|
165
|
-
*/
|
|
166
|
-
detail?: string;
|
|
167
|
-
errors?: PkgOpenapiSharedErrors;
|
|
168
|
-
/**
|
|
169
|
-
* A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
|
|
170
|
-
*/
|
|
171
|
-
instance?: string;
|
|
172
|
-
/**
|
|
173
|
-
* The HTTP status code generated by the origin server for this occurrence of the problem.
|
|
174
|
-
*/
|
|
175
|
-
status?: number;
|
|
176
|
-
/**
|
|
177
|
-
* 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.
|
|
178
|
-
*/
|
|
179
|
-
title: string;
|
|
180
|
-
/**
|
|
181
|
-
* A URI reference that identifies the problem type.
|
|
182
|
-
*/
|
|
183
|
-
type?: string;
|
|
184
|
-
};
|
|
185
|
-
type FacilityIdPath = string;
|
|
186
|
-
type OfferIdPath = string;
|
|
187
|
-
/**
|
|
188
|
-
* Maximum number of items to return per page.
|
|
189
|
-
*/
|
|
190
|
-
type PkgOpenapiSharedCursorLimitParam = number;
|
|
191
|
-
/**
|
|
192
|
-
* Cursor for pagination. An opaque value to request the next page. Should not be set for the first call to the resource. Subsequent should use the value from `meta.next_cursor` in the response, until `meta.more_results` is false.
|
|
193
|
-
*
|
|
194
|
-
*/
|
|
195
|
-
type PkgOpenapiSharedCursorParam = string;
|
|
196
|
-
/**
|
|
197
|
-
* Maximum number of items to return.
|
|
198
|
-
*/
|
|
199
|
-
type PkgOpenapiSharedOffsetLimitParam = number;
|
|
200
|
-
/**
|
|
201
|
-
* Number of items to skip before returning the results.
|
|
202
|
-
*/
|
|
203
|
-
type PkgOpenapiSharedOffsetParam = number;
|
|
204
|
-
type FindBookingsData = {
|
|
205
|
-
body?: never;
|
|
206
|
-
path?: never;
|
|
207
|
-
query?: {
|
|
208
|
-
/**
|
|
209
|
-
* Number of items to skip before returning the results.
|
|
210
|
-
*/
|
|
211
|
-
offset?: number;
|
|
212
|
-
/**
|
|
213
|
-
* Maximum number of items to return.
|
|
214
|
-
*/
|
|
215
|
-
limit?: number;
|
|
216
|
-
/**
|
|
217
|
-
* The location to filter the bookings by.
|
|
218
|
-
*/
|
|
219
|
-
location?: string;
|
|
220
|
-
};
|
|
221
|
-
url: '/bookings';
|
|
222
|
-
};
|
|
223
|
-
type FindBookingsErrors = {
|
|
224
|
-
/**
|
|
225
|
-
* Access token is not set or invalid.
|
|
226
|
-
*/
|
|
227
|
-
401: PkgOpenapiSharedProblemDetails;
|
|
228
|
-
/**
|
|
229
|
-
* The requestor is not authorized to perform this operation on the resource.
|
|
230
|
-
*/
|
|
231
|
-
403: PkgOpenapiSharedProblemDetails;
|
|
232
|
-
/**
|
|
233
|
-
* The server encountered an unexpected error
|
|
234
|
-
*/
|
|
235
|
-
500: PkgOpenapiSharedProblemDetails;
|
|
236
|
-
/**
|
|
237
|
-
* The requested operation is not implemented.
|
|
238
|
-
*/
|
|
239
|
-
501: PkgOpenapiSharedProblemDetails;
|
|
240
|
-
};
|
|
241
|
-
type FindBookingsError = FindBookingsErrors[keyof FindBookingsErrors];
|
|
242
|
-
type FindBookingsResponses = {
|
|
243
|
-
/**
|
|
244
|
-
* OK
|
|
245
|
-
*/
|
|
246
|
-
200: {
|
|
247
|
-
data?: Array<Booking>;
|
|
248
|
-
meta?: PkgOpenapiSharedOffsetPaginatedResultSet;
|
|
249
|
-
};
|
|
250
|
-
};
|
|
251
|
-
type FindBookingsResponse = FindBookingsResponses[keyof FindBookingsResponses];
|
|
252
|
-
type AddBookingData = {
|
|
253
|
-
body: CreateBooking;
|
|
254
|
-
path?: never;
|
|
255
|
-
query?: never;
|
|
256
|
-
url: '/bookings';
|
|
257
|
-
};
|
|
258
|
-
type AddBookingErrors = {
|
|
259
|
-
/**
|
|
260
|
-
* The request was malformed or could not be processed.
|
|
261
|
-
*/
|
|
262
|
-
400: PkgOpenapiSharedProblemDetails;
|
|
263
|
-
/**
|
|
264
|
-
* Access token is not set or invalid.
|
|
265
|
-
*/
|
|
266
|
-
401: PkgOpenapiSharedProblemDetails;
|
|
267
|
-
/**
|
|
268
|
-
* The requestor is not authorized to perform this operation on the resource.
|
|
269
|
-
*/
|
|
270
|
-
403: PkgOpenapiSharedProblemDetails;
|
|
271
|
-
/**
|
|
272
|
-
* The resource being created is found to already exist on the server.
|
|
273
|
-
*/
|
|
274
|
-
409: PkgOpenapiSharedProblemDetails;
|
|
275
|
-
/**
|
|
276
|
-
* The server encountered an unexpected error
|
|
277
|
-
*/
|
|
278
|
-
500: PkgOpenapiSharedProblemDetails;
|
|
279
|
-
/**
|
|
280
|
-
* The service requested is unavailable
|
|
281
|
-
*/
|
|
282
|
-
503: PkgOpenapiSharedProblemDetails;
|
|
283
|
-
};
|
|
284
|
-
type AddBookingError = AddBookingErrors[keyof AddBookingErrors];
|
|
285
|
-
type AddBookingResponses = {
|
|
286
|
-
/**
|
|
287
|
-
* Created
|
|
288
|
-
*/
|
|
289
|
-
201: Booking;
|
|
290
|
-
};
|
|
291
|
-
type AddBookingResponse = AddBookingResponses[keyof AddBookingResponses];
|
|
292
|
-
type DeleteBookingData = {
|
|
293
|
-
body?: never;
|
|
294
|
-
path: {
|
|
295
|
-
bookingId: string;
|
|
296
|
-
};
|
|
297
|
-
query?: never;
|
|
298
|
-
url: '/bookings/{bookingId}';
|
|
299
|
-
};
|
|
300
|
-
type DeleteBookingErrors = {
|
|
301
|
-
/**
|
|
302
|
-
* Access token is not set or invalid.
|
|
303
|
-
*/
|
|
304
|
-
401: PkgOpenapiSharedProblemDetails;
|
|
305
|
-
/**
|
|
306
|
-
* The requestor is not authorized to perform this operation on the resource.
|
|
307
|
-
*/
|
|
308
|
-
403: PkgOpenapiSharedProblemDetails;
|
|
309
|
-
/**
|
|
310
|
-
* The requested resource was not found.
|
|
311
|
-
*/
|
|
312
|
-
404: PkgOpenapiSharedProblemDetails;
|
|
313
|
-
/**
|
|
314
|
-
* The server encountered an unexpected error
|
|
315
|
-
*/
|
|
316
|
-
500: PkgOpenapiSharedProblemDetails;
|
|
317
|
-
/**
|
|
318
|
-
* The requested operation is not implemented.
|
|
319
|
-
*/
|
|
320
|
-
501: PkgOpenapiSharedProblemDetails;
|
|
321
|
-
/**
|
|
322
|
-
* The service requested is unavailable
|
|
323
|
-
*/
|
|
324
|
-
503: PkgOpenapiSharedProblemDetails;
|
|
325
|
-
};
|
|
326
|
-
type DeleteBookingError = DeleteBookingErrors[keyof DeleteBookingErrors];
|
|
327
|
-
type DeleteBookingResponses = {
|
|
328
|
-
/**
|
|
329
|
-
* No Content
|
|
330
|
-
*/
|
|
331
|
-
204: void;
|
|
332
|
-
};
|
|
333
|
-
type DeleteBookingResponse = DeleteBookingResponses[keyof DeleteBookingResponses];
|
|
334
|
-
type FindBookingByIdData = {
|
|
335
|
-
body?: never;
|
|
336
|
-
path: {
|
|
337
|
-
bookingId: string;
|
|
338
|
-
};
|
|
339
|
-
query?: never;
|
|
340
|
-
url: '/bookings/{bookingId}';
|
|
341
|
-
};
|
|
342
|
-
type FindBookingByIdErrors = {
|
|
343
|
-
/**
|
|
344
|
-
* Access token is not set or invalid.
|
|
345
|
-
*/
|
|
346
|
-
401: PkgOpenapiSharedProblemDetails;
|
|
347
|
-
/**
|
|
348
|
-
* The requestor is not authorized to perform this operation on the resource.
|
|
349
|
-
*/
|
|
350
|
-
403: PkgOpenapiSharedProblemDetails;
|
|
351
|
-
/**
|
|
352
|
-
* The requested resource was not found.
|
|
353
|
-
*/
|
|
354
|
-
404: PkgOpenapiSharedProblemDetails;
|
|
355
|
-
/**
|
|
356
|
-
* The server encountered an unexpected error
|
|
357
|
-
*/
|
|
358
|
-
500: PkgOpenapiSharedProblemDetails;
|
|
359
|
-
/**
|
|
360
|
-
* The requested operation is not implemented.
|
|
361
|
-
*/
|
|
362
|
-
501: PkgOpenapiSharedProblemDetails;
|
|
363
|
-
/**
|
|
364
|
-
* The service requested is unavailable
|
|
365
|
-
*/
|
|
366
|
-
503: PkgOpenapiSharedProblemDetails;
|
|
367
|
-
};
|
|
368
|
-
type FindBookingByIdError = FindBookingByIdErrors[keyof FindBookingByIdErrors];
|
|
369
|
-
type FindBookingByIdResponses = {
|
|
370
|
-
/**
|
|
371
|
-
* OK
|
|
372
|
-
*/
|
|
373
|
-
200: Booking;
|
|
374
|
-
};
|
|
375
|
-
type FindBookingByIdResponse = FindBookingByIdResponses[keyof FindBookingByIdResponses];
|
|
376
|
-
type UpdateBookingData = {
|
|
377
|
-
body: UpdateBooking;
|
|
378
|
-
path: {
|
|
379
|
-
bookingId: string;
|
|
380
|
-
};
|
|
381
|
-
query?: never;
|
|
382
|
-
url: '/bookings/{bookingId}';
|
|
383
|
-
};
|
|
384
|
-
type UpdateBookingErrors = {
|
|
385
|
-
/**
|
|
386
|
-
* The request was malformed or could not be processed.
|
|
387
|
-
*/
|
|
388
|
-
400: PkgOpenapiSharedProblemDetails;
|
|
389
|
-
/**
|
|
390
|
-
* Access token is not set or invalid.
|
|
391
|
-
*/
|
|
392
|
-
401: PkgOpenapiSharedProblemDetails;
|
|
393
|
-
/**
|
|
394
|
-
* The requestor is not authorized to perform this operation on the resource.
|
|
395
|
-
*/
|
|
396
|
-
403: PkgOpenapiSharedProblemDetails;
|
|
397
|
-
/**
|
|
398
|
-
* The requested resource was not found.
|
|
399
|
-
*/
|
|
400
|
-
404: PkgOpenapiSharedProblemDetails;
|
|
401
|
-
/**
|
|
402
|
-
* The server encountered an unexpected error
|
|
403
|
-
*/
|
|
404
|
-
500: PkgOpenapiSharedProblemDetails;
|
|
405
|
-
/**
|
|
406
|
-
* The requested operation is not implemented.
|
|
407
|
-
*/
|
|
408
|
-
501: PkgOpenapiSharedProblemDetails;
|
|
409
|
-
/**
|
|
410
|
-
* The service requested is unavailable
|
|
411
|
-
*/
|
|
412
|
-
503: PkgOpenapiSharedProblemDetails;
|
|
413
|
-
};
|
|
414
|
-
type UpdateBookingError = UpdateBookingErrors[keyof UpdateBookingErrors];
|
|
415
|
-
type UpdateBookingResponses = {
|
|
416
|
-
/**
|
|
417
|
-
* OK
|
|
418
|
-
*/
|
|
419
|
-
200: Booking;
|
|
420
|
-
};
|
|
421
|
-
type UpdateBookingResponse = UpdateBookingResponses[keyof UpdateBookingResponses];
|
|
422
|
-
type ListFacilityOffersData = {
|
|
423
|
-
body?: never;
|
|
424
|
-
path: {
|
|
425
|
-
facility_id: string;
|
|
426
|
-
};
|
|
427
|
-
query?: {
|
|
428
|
-
/**
|
|
429
|
-
* Cursor for pagination. An opaque value to request the next page. Should not be set for the first call to the resource. Subsequent should use the value from `meta.next_cursor` in the response, until `meta.more_results` is false.
|
|
430
|
-
*
|
|
431
|
-
*/
|
|
432
|
-
cursor?: string;
|
|
433
|
-
/**
|
|
434
|
-
* Maximum number of items to return per page.
|
|
435
|
-
*/
|
|
436
|
-
limit?: number;
|
|
437
|
-
};
|
|
438
|
-
url: '/facilities/{facility_id}/offers';
|
|
439
|
-
};
|
|
440
|
-
type ListFacilityOffersErrors = {
|
|
441
|
-
/**
|
|
442
|
-
* Access token is not set or invalid.
|
|
443
|
-
*/
|
|
444
|
-
401: PkgOpenapiSharedProblemDetails;
|
|
445
|
-
/**
|
|
446
|
-
* The requestor is not authorized to perform this operation on the resource.
|
|
447
|
-
*/
|
|
448
|
-
403: PkgOpenapiSharedProblemDetails;
|
|
449
|
-
/**
|
|
450
|
-
* The server encountered an unexpected error
|
|
451
|
-
*/
|
|
452
|
-
500: PkgOpenapiSharedProblemDetails;
|
|
453
|
-
/**
|
|
454
|
-
* The requested operation is not implemented.
|
|
455
|
-
*/
|
|
456
|
-
501: PkgOpenapiSharedProblemDetails;
|
|
457
|
-
};
|
|
458
|
-
type ListFacilityOffersError = ListFacilityOffersErrors[keyof ListFacilityOffersErrors];
|
|
459
|
-
type ListFacilityOffersResponses = {
|
|
460
|
-
/**
|
|
461
|
-
* OK
|
|
462
|
-
*/
|
|
463
|
-
200: FacilityOfferList;
|
|
464
|
-
};
|
|
465
|
-
type ListFacilityOffersResponse = ListFacilityOffersResponses[keyof ListFacilityOffersResponses];
|
|
466
|
-
type CreateFacilityOfferOrderData = {
|
|
467
|
-
body?: never;
|
|
468
|
-
path: {
|
|
469
|
-
facility_id: string;
|
|
470
|
-
offer_id: string;
|
|
471
|
-
};
|
|
472
|
-
query?: never;
|
|
473
|
-
url: '/facilities/{facility_id}/offers/{offer_id}';
|
|
474
|
-
};
|
|
475
|
-
type CreateFacilityOfferOrderErrors = {
|
|
476
|
-
/**
|
|
477
|
-
* Access token is not set or invalid.
|
|
478
|
-
*/
|
|
479
|
-
401: PkgOpenapiSharedProblemDetails;
|
|
480
|
-
/**
|
|
481
|
-
* The requestor is not authorized to perform this operation on the resource.
|
|
482
|
-
*/
|
|
483
|
-
403: PkgOpenapiSharedProblemDetails;
|
|
484
|
-
/**
|
|
485
|
-
* The requested resource was not found.
|
|
486
|
-
*/
|
|
487
|
-
404: PkgOpenapiSharedProblemDetails;
|
|
488
|
-
/**
|
|
489
|
-
* The server encountered an unexpected error
|
|
490
|
-
*/
|
|
491
|
-
500: PkgOpenapiSharedProblemDetails;
|
|
492
|
-
/**
|
|
493
|
-
* The requested operation is not implemented.
|
|
494
|
-
*/
|
|
495
|
-
501: PkgOpenapiSharedProblemDetails;
|
|
496
|
-
};
|
|
497
|
-
type CreateFacilityOfferOrderError = CreateFacilityOfferOrderErrors[keyof CreateFacilityOfferOrderErrors];
|
|
498
|
-
type CreateFacilityOfferOrderResponses = {
|
|
499
|
-
/**
|
|
500
|
-
* OK
|
|
501
|
-
*/
|
|
502
|
-
200: FacilityOfferOrder;
|
|
503
|
-
};
|
|
504
|
-
type CreateFacilityOfferOrderResponse = CreateFacilityOfferOrderResponses[keyof CreateFacilityOfferOrderResponses];
|
|
505
|
-
|
|
506
|
-
export type { AddBookingData, AddBookingError, AddBookingErrors, AddBookingResponse, AddBookingResponses, Booking, CreateBooking, CreateFacilityOfferOrderData, CreateFacilityOfferOrderError, CreateFacilityOfferOrderErrors, CreateFacilityOfferOrderResponse, CreateFacilityOfferOrderResponses, DeleteBookingData, DeleteBookingError, DeleteBookingErrors, DeleteBookingResponse, DeleteBookingResponses, FacilityIdPath, FacilityOffer, FacilityOfferCondition, FacilityOfferConditionActivities, FacilityOfferConditionCourts, FacilityOfferConditionDate, FacilityOfferConditionHoursinadvance, FacilityOfferConditionNotImplemented, FacilityOfferConditionTime, FacilityOfferConditionWeekdays, FacilityOfferList, FacilityOfferOrder, FacilityPunchCardData, FacilityValueCardData, FindBookingByIdData, FindBookingByIdError, FindBookingByIdErrors, FindBookingByIdResponse, FindBookingByIdResponses, FindBookingsData, FindBookingsError, FindBookingsErrors, FindBookingsResponse, FindBookingsResponses, Guest, ListFacilityOffersData, ListFacilityOffersError, ListFacilityOffersErrors, ListFacilityOffersResponse, ListFacilityOffersResponses, OfferIdPath, PkgOpenapiSharedCursorLimitParam, PkgOpenapiSharedCursorPaginatedResultSet, PkgOpenapiSharedCursorParam, PkgOpenapiSharedError, PkgOpenapiSharedErrors, PkgOpenapiSharedOffsetLimitParam, PkgOpenapiSharedOffsetPaginatedResultSet, PkgOpenapiSharedOffsetParam, PkgOpenapiSharedProblemDetails, Player, UpdateBooking, UpdateBookingData, UpdateBookingError, UpdateBookingErrors, UpdateBookingResponse, UpdateBookingResponses };
|