@matchi/api 0.20241211.1 → 0.20250110.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.
@@ -0,0 +1,128 @@
1
+ import * as _tanstack_query_core_build_legacy_hydration_ClXcjjG9 from '@tanstack/query-core/build/legacy/hydration-ClXcjjG9';
2
+ import * as _tanstack_react_query_build_legacy_types from '@tanstack/react-query/build/legacy/types';
3
+ import { FindBookingsData, Booking, PkgOpenapiSharedOffsetPaginatedResultSet, PkgOpenapiSharedProblemDetails, AddBookingData, DeleteBookingData, FindBookingByIdData, UpdateBookingData } from '../types.gen.js';
4
+ import { Options } from '@hey-api/client-fetch';
5
+ import { InfiniteData, UseMutationOptions } from '@tanstack/react-query';
6
+
7
+ type QueryKey<TOptions extends Options> = [
8
+ Pick<TOptions, 'baseUrl' | 'body' | 'headers' | 'path' | 'query'> & {
9
+ _id: string;
10
+ _infinite?: boolean;
11
+ }
12
+ ];
13
+ declare const findBookingsQueryKey: (options?: Options<FindBookingsData>) => (Pick<Options<FindBookingsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
14
+ _id: string;
15
+ _infinite?: boolean | undefined;
16
+ })[];
17
+ declare const findBookingsOptions: (options?: Options<FindBookingsData>) => _tanstack_query_core_build_legacy_hydration_ClXcjjG9.O<_tanstack_react_query_build_legacy_types.UseQueryOptions<{
18
+ data?: Booking[] | undefined;
19
+ meta?: PkgOpenapiSharedOffsetPaginatedResultSet | undefined;
20
+ }, Error, {
21
+ data?: Booking[] | undefined;
22
+ meta?: PkgOpenapiSharedOffsetPaginatedResultSet | undefined;
23
+ }, (Pick<Options<FindBookingsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
24
+ _id: string;
25
+ _infinite?: boolean | undefined;
26
+ })[]>, "queryFn"> & {
27
+ queryFn?: _tanstack_query_core_build_legacy_hydration_ClXcjjG9.K<{
28
+ data?: Booking[] | undefined;
29
+ meta?: PkgOpenapiSharedOffsetPaginatedResultSet | undefined;
30
+ }, (Pick<Options<FindBookingsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
31
+ _id: string;
32
+ _infinite?: boolean | undefined;
33
+ })[], never> | undefined;
34
+ } & {
35
+ queryKey: (Pick<Options<FindBookingsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
36
+ _id: string;
37
+ _infinite?: boolean | undefined;
38
+ })[] & {
39
+ [dataTagSymbol]: {
40
+ data?: Booking[] | undefined;
41
+ meta?: PkgOpenapiSharedOffsetPaginatedResultSet | undefined;
42
+ };
43
+ [dataTagErrorSymbol]: Error;
44
+ };
45
+ };
46
+ declare const findBookingsInfiniteQueryKey: (options?: Options<FindBookingsData>) => QueryKey<Options<FindBookingsData>>;
47
+ declare const findBookingsInfiniteOptions: (options?: Options<FindBookingsData>) => _tanstack_react_query_build_legacy_types.UseInfiniteQueryOptions<{
48
+ data?: Booking[] | undefined;
49
+ meta?: PkgOpenapiSharedOffsetPaginatedResultSet | undefined;
50
+ }, PkgOpenapiSharedProblemDetails, InfiniteData<{
51
+ data?: Booking[] | undefined;
52
+ meta?: PkgOpenapiSharedOffsetPaginatedResultSet | undefined;
53
+ }, unknown>, {
54
+ data?: Booking[] | undefined;
55
+ meta?: PkgOpenapiSharedOffsetPaginatedResultSet | undefined;
56
+ }, QueryKey<Options<FindBookingsData>>, number | Pick<Pick<Options<FindBookingsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
57
+ _id: string;
58
+ _infinite?: boolean | undefined;
59
+ }, "body" | "path" | "query" | "headers">> & {
60
+ initialData: InfiniteData<{
61
+ data?: Booking[] | undefined;
62
+ meta?: PkgOpenapiSharedOffsetPaginatedResultSet | undefined;
63
+ }, number | Pick<Pick<Options<FindBookingsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
64
+ _id: string;
65
+ _infinite?: boolean | undefined;
66
+ }, "body" | "path" | "query" | "headers">> | (() => InfiniteData<{
67
+ data?: Booking[] | undefined;
68
+ meta?: PkgOpenapiSharedOffsetPaginatedResultSet | undefined;
69
+ }, number | Pick<Pick<Options<FindBookingsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
70
+ _id: string;
71
+ _infinite?: boolean | undefined;
72
+ }, "body" | "path" | "query" | "headers">>) | undefined;
73
+ } & {
74
+ queryKey: QueryKey<Options<FindBookingsData>> & {
75
+ [dataTagSymbol]: InfiniteData<{
76
+ data?: Booking[] | undefined;
77
+ meta?: PkgOpenapiSharedOffsetPaginatedResultSet | undefined;
78
+ }, unknown>;
79
+ [dataTagErrorSymbol]: PkgOpenapiSharedProblemDetails;
80
+ };
81
+ };
82
+ declare const addBookingQueryKey: (options: Options<AddBookingData>) => (Pick<Options<AddBookingData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
83
+ _id: string;
84
+ _infinite?: boolean | undefined;
85
+ })[];
86
+ declare const addBookingOptions: (options: Options<AddBookingData>) => _tanstack_query_core_build_legacy_hydration_ClXcjjG9.O<_tanstack_react_query_build_legacy_types.UseQueryOptions<Booking, Error, Booking, (Pick<Options<AddBookingData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
87
+ _id: string;
88
+ _infinite?: boolean | undefined;
89
+ })[]>, "queryFn"> & {
90
+ queryFn?: _tanstack_query_core_build_legacy_hydration_ClXcjjG9.K<Booking, (Pick<Options<AddBookingData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
91
+ _id: string;
92
+ _infinite?: boolean | undefined;
93
+ })[], never> | undefined;
94
+ } & {
95
+ queryKey: (Pick<Options<AddBookingData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
96
+ _id: string;
97
+ _infinite?: boolean | undefined;
98
+ })[] & {
99
+ [dataTagSymbol]: Booking;
100
+ [dataTagErrorSymbol]: Error;
101
+ };
102
+ };
103
+ declare const addBookingMutation: (options?: Partial<Options<AddBookingData>>) => UseMutationOptions<Booking, PkgOpenapiSharedProblemDetails, Options<AddBookingData>, unknown>;
104
+ declare const deleteBookingMutation: (options?: Partial<Options<DeleteBookingData>>) => UseMutationOptions<void, PkgOpenapiSharedProblemDetails, Options<DeleteBookingData>, unknown>;
105
+ declare const findBookingByIdQueryKey: (options: Options<FindBookingByIdData>) => (Pick<Options<FindBookingByIdData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
106
+ _id: string;
107
+ _infinite?: boolean | undefined;
108
+ })[];
109
+ declare const findBookingByIdOptions: (options: Options<FindBookingByIdData>) => _tanstack_query_core_build_legacy_hydration_ClXcjjG9.O<_tanstack_react_query_build_legacy_types.UseQueryOptions<Booking, Error, Booking, (Pick<Options<FindBookingByIdData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
110
+ _id: string;
111
+ _infinite?: boolean | undefined;
112
+ })[]>, "queryFn"> & {
113
+ queryFn?: _tanstack_query_core_build_legacy_hydration_ClXcjjG9.K<Booking, (Pick<Options<FindBookingByIdData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
114
+ _id: string;
115
+ _infinite?: boolean | undefined;
116
+ })[], never> | undefined;
117
+ } & {
118
+ queryKey: (Pick<Options<FindBookingByIdData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
119
+ _id: string;
120
+ _infinite?: boolean | undefined;
121
+ })[] & {
122
+ [dataTagSymbol]: Booking;
123
+ [dataTagErrorSymbol]: Error;
124
+ };
125
+ };
126
+ declare const updateBookingMutation: (options?: Partial<Options<UpdateBookingData>>) => UseMutationOptions<Booking, PkgOpenapiSharedProblemDetails, Options<UpdateBookingData>, unknown>;
127
+
128
+ export { addBookingMutation, addBookingOptions, addBookingQueryKey, deleteBookingMutation, findBookingByIdOptions, findBookingByIdQueryKey, findBookingsInfiniteOptions, findBookingsInfiniteQueryKey, findBookingsOptions, findBookingsQueryKey, updateBookingMutation };
@@ -0,0 +1 @@
1
+ "use strict";var b=Object.defineProperty;var K=Object.getOwnPropertyDescriptor;var Q=Object.getOwnPropertyNames;var P=Object.prototype.hasOwnProperty;var W=(e,t)=>{for(var r in t)b(e,r,{get:t[r],enumerable:!0})},N=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Q(t))!P.call(e,i)&&i!==r&&b(e,i,{get:()=>t[i],enumerable:!(n=K(t,i))||n.enumerable});return e};var M=e=>N(b({},"__esModule",{value:!0}),e);var ce={};W(ce,{addBookingMutation:()=>le,addBookingOptions:()=>de,addBookingQueryKey:()=>$,deleteBookingMutation:()=>ue,findBookingByIdOptions:()=>pe,findBookingByIdQueryKey:()=>_,findBookingsInfiniteOptions:()=>se,findBookingsInfiniteQueryKey:()=>C,findBookingsOptions:()=>ae,findBookingsQueryKey:()=>v,updateBookingMutation:()=>ye});module.exports=M(ce);var H=/\{[^{}]+\}/g,k=({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)}`},J=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},L=e=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},V=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},R=({allowReserved:e,explode:t,name:r,style:n,value:i})=>{if(!t){let a=(e?i:i.map(d=>encodeURIComponent(d))).join(L(n));switch(n){case"label":return`.${a}`;case"matrix":return`;${r}=${a}`;case"simple":return a;default:return`${r}=${a}`}}let s=J(n),o=i.map(a=>n==="label"||n==="simple"?e?a:encodeURIComponent(a):k({allowReserved:e,name:r,value:a})).join(s);return n==="label"||n==="matrix"?s+o:o},q=({allowReserved:e,explode:t,name:r,style:n,value:i})=>{if(i instanceof Date)return`${r}=${i.toISOString()}`;if(n!=="deepObject"&&!t){let a=[];Object.entries(i).forEach(([c,u])=>{a=[...a,c,e?u:encodeURIComponent(u)]});let d=a.join(",");switch(n){case"form":return`${r}=${d}`;case"label":return`.${d}`;case"matrix":return`;${r}=${d}`;default:return d}}let s=V(n),o=Object.entries(i).map(([a,d])=>k({allowReserved:e,name:n==="deepObject"?`${r}[${a}]`:a,value:d})).join(s);return n==="label"||n==="matrix"?s+o:o},G=({path:e,url:t})=>{let r=t,n=t.match(H);if(n)for(let i of n){let s=!1,o=i.substring(1,i.length-1),a="simple";o.endsWith("*")&&(s=!0,o=o.substring(0,o.length-1)),o.startsWith(".")?(o=o.substring(1),a="label"):o.startsWith(";")&&(o=o.substring(1),a="matrix");let d=e[o];if(d==null)continue;if(Array.isArray(d)){r=r.replace(i,R({explode:s,name:o,style:a,value:d}));continue}if(typeof d=="object"){r=r.replace(i,q({explode:s,name:o,style:a,value:d}));continue}if(a==="matrix"){r=r.replace(i,`;${k({name:o,value:d})}`);continue}let c=encodeURIComponent(a==="label"?`.${d}`:d);r=r.replace(i,c)}return r},F=({allowReserved:e,array:t,object:r}={})=>n=>{let i=[];if(n&&typeof n=="object")for(let s in n){let o=n[s];if(o!=null){if(Array.isArray(o)){i=[...i,R({allowReserved:e,explode:!0,name:s,style:"form",value:o,...t})];continue}if(typeof o=="object"){i=[...i,q({allowReserved:e,explode:!0,name:s,style:"deepObject",value:o,...r})];continue}i=[...i,k({allowReserved:e,name:s,value:o})]}}return i.join("&")},X=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"}},Y=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},Z=async({security:e,...t})=>{for(let r of e){let n=await Y(r,t.auth);if(!n)continue;let i=r.name??"Authorization";switch(r.in){case"query":t.query||(t.query={}),t.query[i]=n;break;case"header":default:t.headers.set(i,n);break}return}},x=e=>ee({baseUrl:e.baseUrl??"",path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:F(e.querySerializer),url:e.url}),ee=({baseUrl:e,path:t,query:r,querySerializer:n,url:i})=>{let s=i.startsWith("/")?i:`/${i}`,o=e+s;t&&(o=G({path:t,url:o}));let a=r?n(r):"";return a.startsWith("?")&&(a=a.substring(1)),a&&(o+=`?${a}`),o},T=(e,t)=>{let r={...e,...t};return r.baseUrl?.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=U(e.headers,t.headers),r},U=(...e)=>{let t=new Headers;for(let r of e){if(!r||typeof r!="object")continue;let n=r instanceof Headers?r.entries():Object.entries(r);for(let[i,s]of n)if(s===null)t.delete(i);else if(Array.isArray(s))for(let o of s)t.append(i,o);else s!==void 0&&t.set(i,typeof s=="object"?JSON.stringify(s):s)}return t},m=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]}},te=()=>({error:new m,request:new m,response:new m});var re={bodySerializer:e=>JSON.stringify(e)};var oe=F({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),ne={"Content-Type":"application/json"},w=(e={})=>({...re,baseUrl:"",headers:ne,parseAs:"auto",querySerializer:oe,...e}),j=(e={})=>{let t=T(w(),e),r=()=>({...t}),n=o=>(t=T(t,o),r()),i=te(),s=async o=>{let a={...t,...o,fetch:o.fetch??t.fetch??globalThis.fetch,headers:U(t.headers,o.headers)};a.security&&await Z({...a,security:a.security}),a.body&&a.bodySerializer&&(a.body=a.bodySerializer(a.body)),a.body||a.headers.delete("Content-Type");let d=x(a),c={redirect:"follow",...a},u=new Request(d,c);for(let p of i.request._fns)u=await p(u,a);let z=a.fetch,l=await z(u);for(let p of i.response._fns)l=await p(l,u,a);let g={request:u,response:l};if(l.ok){if(l.status===204||l.headers.get("Content-Length")==="0")return{data:{},...g};let p=(a.parseAs==="auto"?X(l.headers.get("Content-Type")):a.parseAs)??"json";if(p==="stream")return{data:l.body,...g};let B=await l[p]();return p==="json"&&(a.responseValidator&&await a.responseValidator(B),a.responseTransformer&&(B=await a.responseTransformer(B))),{data:B,...g}}let h=await l.text();try{h=JSON.parse(h)}catch{}let f=h;for(let p of i.error._fns)f=await p(h,l,u,a);if(f=f||{},a.throwOnError)throw f;return{error:f,...g}};return{buildUrl:x,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:i,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:n,trace:o=>s({...o,method:"TRACE"})}};var y=j(w()),D=e=>(e?.client??y).get({...e,url:"/bookings"}),E=e=>(e?.client??y).post({...e,headers:{"Content-Type":"application/json",...e?.headers},url:"/bookings"}),A=e=>(e?.client??y).delete({...e,url:"/bookings/{bookingId}"}),I=e=>(e?.client??y).get({...e,url:"/bookings/{bookingId}"}),S=e=>(e?.client??y).put({...e,headers:{"Content-Type":"application/json",...e?.headers},url:"/bookings/{bookingId}"});var O=(e,t,r)=>{let n={_id:e,baseUrl:(t?.client??y).getConfig().baseUrl};return r&&(n._infinite=r),t?.body&&(n.body=t.body),t?.headers&&(n.headers=t.headers),t?.path&&(n.path=t.path),t?.query&&(n.query=t.query),n},v=e=>[O("findBookings",e)],ae=e=>({queryFn:async({queryKey:t,signal:r})=>{let{data:n}=await D({...e,...t[0],signal:r,throwOnError:!0});return n},queryKey:v(e)}),ie=(e,t)=>{let r=e[0];return t.body&&(r.body={...e[0].body,...t.body}),t.headers&&(r.headers={...e[0].headers,...t.headers}),t.path&&(r.path={...e[0].path,...t.path}),t.query&&(r.query={...e[0].query,...t.query}),r},C=e=>[O("findBookings",e,!0)],se=e=>({queryFn:async({pageParam:t,queryKey:r,signal:n})=>{let s=ie(r,typeof t=="object"?t:{query:{offset:t}}),{data:o}=await D({...e,...s,signal:n,throwOnError:!0});return o},queryKey:C(e)}),$=e=>[O("addBooking",e)],de=e=>({queryFn:async({queryKey:t,signal:r})=>{let{data:n}=await E({...e,...t[0],signal:r,throwOnError:!0});return n},queryKey:$(e)}),le=e=>({mutationFn:async r=>{let{data:n}=await E({...e,...r,throwOnError:!0});return n}}),ue=e=>({mutationFn:async r=>{let{data:n}=await A({...e,...r,throwOnError:!0});return n}}),_=e=>[O("findBookingById",e)],pe=e=>({queryFn:async({queryKey:t,signal:r})=>{let{data:n}=await I({...e,...t[0],signal:r,throwOnError:!0});return n},queryKey:_(e)}),ye=e=>({mutationFn:async r=>{let{data:n}=await S({...e,...r,throwOnError:!0});return n}});0&&(module.exports={addBookingMutation,addBookingOptions,addBookingQueryKey,deleteBookingMutation,findBookingByIdOptions,findBookingByIdQueryKey,findBookingsInfiniteOptions,findBookingsInfiniteQueryKey,findBookingsOptions,findBookingsQueryKey,updateBookingMutation});
@@ -0,0 +1 @@
1
+ import{a as s,b as r,c as a,d,e as y,f as p}from"../chunk-SNGJPP3Q.mjs";var i=(o,n,t)=>{let e={_id:o,baseUrl:(n?.client??s).getConfig().baseUrl};return t&&(e._infinite=t),n?.body&&(e.body=n.body),n?.headers&&(e.headers=n.headers),n?.path&&(e.path=n.path),n?.query&&(e.query=n.query),e},k=o=>[i("findBookings",o)],F=o=>({queryFn:async({queryKey:n,signal:t})=>{let{data:e}=await r({...o,...n[0],signal:t,throwOnError:!0});return e},queryKey:k(o)}),g=(o,n)=>{let t=o[0];return n.body&&(t.body={...o[0].body,...n.body}),n.headers&&(t.headers={...o[0].headers,...n.headers}),n.path&&(t.path={...o[0].path,...n.path}),n.query&&(t.query={...o[0].query,...n.query}),t},O=o=>[i("findBookings",o,!0)],l=o=>({queryFn:async({pageParam:n,queryKey:t,signal:e})=>{let u=g(t,typeof n=="object"?n:{query:{offset:n}}),{data:B}=await r({...o,...u,signal:e,throwOnError:!0});return B},queryKey:O(o)}),c=o=>[i("addBooking",o)],m=o=>({queryFn:async({queryKey:n,signal:t})=>{let{data:e}=await a({...o,...n[0],signal:t,throwOnError:!0});return e},queryKey:c(o)}),b=o=>({mutationFn:async t=>{let{data:e}=await a({...o,...t,throwOnError:!0});return e}}),q=o=>({mutationFn:async t=>{let{data:e}=await d({...o,...t,throwOnError:!0});return e}}),f=o=>[i("findBookingById",o)],K=o=>({queryFn:async({queryKey:n,signal:t})=>{let{data:e}=await y({...o,...n[0],signal:t,throwOnError:!0});return e},queryKey:f(o)}),Q=o=>({mutationFn:async t=>{let{data:e}=await p({...o,...t,throwOnError:!0});return e}});export{b as addBookingMutation,m as addBookingOptions,c as addBookingQueryKey,q as deleteBookingMutation,K as findBookingByIdOptions,f as findBookingByIdQueryKey,l as findBookingsInfiniteOptions,O as findBookingsInfiniteQueryKey,F as findBookingsOptions,k as findBookingsQueryKey,Q as updateBookingMutation};
File without changes
@@ -0,0 +1 @@
1
+ var D=/\{[^{}]+\}/g,m=({allowReserved:e,name:n,value:t})=>{if(t==null)return"";if(typeof t=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return`${n}=${e?t:encodeURIComponent(t)}`},v=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},A=e=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},U=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},E=({allowReserved:e,explode:n,name:t,style:s,value:a})=>{if(!n){let o=(e?a:a.map(l=>encodeURIComponent(l))).join(A(s));switch(s){case"label":return`.${o}`;case"matrix":return`;${t}=${o}`;case"simple":return o;default:return`${t}=${o}`}}let i=v(s),r=a.map(o=>s==="label"||s==="simple"?e?o:encodeURIComponent(o):m({allowReserved:e,name:t,value:o})).join(i);return s==="label"||s==="matrix"?i+r:r},x=({allowReserved:e,explode:n,name:t,style:s,value:a})=>{if(a instanceof Date)return`${t}=${a.toISOString()}`;if(s!=="deepObject"&&!n){let o=[];Object.entries(a).forEach(([f,u])=>{o=[...o,f,e?u:encodeURIComponent(u)]});let l=o.join(",");switch(s){case"form":return`${t}=${l}`;case"label":return`.${l}`;case"matrix":return`;${t}=${l}`;default:return l}}let i=U(s),r=Object.entries(a).map(([o,l])=>m({allowReserved:e,name:s==="deepObject"?`${t}[${o}]`:o,value:l})).join(i);return s==="label"||s==="matrix"?i+r:r},$=({path:e,url:n})=>{let t=n,s=n.match(D);if(s)for(let a of s){let i=!1,r=a.substring(1,a.length-1),o="simple";r.endsWith("*")&&(i=!0,r=r.substring(0,r.length-1)),r.startsWith(".")?(r=r.substring(1),o="label"):r.startsWith(";")&&(r=r.substring(1),o="matrix");let l=e[r];if(l==null)continue;if(Array.isArray(l)){t=t.replace(a,E({explode:i,name:r,style:o,value:l}));continue}if(typeof l=="object"){t=t.replace(a,x({explode:i,name:r,style:o,value:l}));continue}if(o==="matrix"){t=t.replace(a,`;${m({name:r,value:l})}`);continue}let f=encodeURIComponent(o==="label"?`.${l}`:l);t=t.replace(a,f)}return t},j=({allowReserved:e,array:n,object:t}={})=>s=>{let a=[];if(s&&typeof s=="object")for(let i in s){let r=s[i];if(r!=null){if(Array.isArray(r)){a=[...a,E({allowReserved:e,explode:!0,name:i,style:"form",value:r,...n})];continue}if(typeof r=="object"){a=[...a,x({allowReserved:e,explode:!0,name:i,style:"deepObject",value:r,...t})];continue}a=[...a,m({allowReserved:e,name:i,value:r})]}}return a.join("&")},C=e=>{if(!e)return"stream";let n=e.split(";")[0]?.trim();if(n){if(n.startsWith("application/json")||n.endsWith("+json"))return"json";if(n==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(t=>n.startsWith(t)))return"blob";if(n.startsWith("text/"))return"text"}},q=async(e,n)=>{let t=typeof n=="function"?await n(e):n;if(t)return e.scheme==="bearer"?`Bearer ${t}`:e.scheme==="basic"?`Basic ${btoa(t)}`:t},I=async({security:e,...n})=>{for(let t of e){let s=await q(t,n.auth);if(!s)continue;let a=t.name??"Authorization";switch(t.in){case"query":n.query||(n.query={}),n.query[a]=s;break;case"header":default:n.headers.set(a,s);break}return}},k=e=>z({baseUrl:e.baseUrl??"",path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:j(e.querySerializer),url:e.url}),z=({baseUrl:e,path:n,query:t,querySerializer:s,url:a})=>{let i=a.startsWith("/")?a:`/${a}`,r=e+i;n&&(r=$({path:n,url:r}));let o=t?s(t):"";return o.startsWith("?")&&(o=o.substring(1)),o&&(r+=`?${o}`),r},O=(e,n)=>{let t={...e,...n};return t.baseUrl?.endsWith("/")&&(t.baseUrl=t.baseUrl.substring(0,t.baseUrl.length-1)),t.headers=T(e.headers,n.headers),t},T=(...e)=>{let n=new Headers;for(let t of e){if(!t||typeof t!="object")continue;let s=t instanceof Headers?t.entries():Object.entries(t);for(let[a,i]of s)if(i===null)n.delete(a);else if(Array.isArray(i))for(let r of i)n.append(a,r);else i!==void 0&&n.set(a,typeof i=="object"?JSON.stringify(i):i)}return n},w=class{_fns;constructor(){this._fns=[]}clear(){this._fns=[]}exists(e){return this._fns.indexOf(e)!==-1}eject(e){let n=this._fns.indexOf(e);n!==-1&&(this._fns=[...this._fns.slice(0,n),...this._fns.slice(n+1)])}use(e){this._fns=[...this._fns,e]}},_=()=>({error:new w,request:new w,response:new w});var F={bodySerializer:e=>JSON.stringify(e)};var W=j({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),N={"Content-Type":"application/json"},B=(e={})=>({...F,baseUrl:"",headers:N,parseAs:"auto",querySerializer:W,...e}),R=(e={})=>{let n=O(B(),e),t=()=>({...n}),s=r=>(n=O(n,r),t()),a=_(),i=async r=>{let o={...n,...r,fetch:r.fetch??n.fetch??globalThis.fetch,headers:T(n.headers,r.headers)};o.security&&await I({...o,security:o.security}),o.body&&o.bodySerializer&&(o.body=o.bodySerializer(o.body)),o.body||o.headers.delete("Content-Type");let l=k(o),f={redirect:"follow",...o},u=new Request(l,f);for(let c of a.request._fns)u=await c(u,o);let S=o.fetch,d=await S(u);for(let c of a.response._fns)d=await c(d,u,o);let y={request:u,response:d};if(d.ok){if(d.status===204||d.headers.get("Content-Length")==="0")return{data:{},...y};let c=(o.parseAs==="auto"?C(d.headers.get("Content-Type")):o.parseAs)??"json";if(c==="stream")return{data:d.body,...y};let g=await d[c]();return c==="json"&&(o.responseValidator&&await o.responseValidator(g),o.responseTransformer&&(g=await o.responseTransformer(g))),{data:g,...y}}let b=await d.text();try{b=JSON.parse(b)}catch{}let p=b;for(let c of a.error._fns)p=await c(b,d,u,o);if(p=p||{},o.throwOnError)throw p;return{error:p,...y}};return{buildUrl:k,connect:r=>i({...r,method:"CONNECT"}),delete:r=>i({...r,method:"DELETE"}),get:r=>i({...r,method:"GET"}),getConfig:t,head:r=>i({...r,method:"HEAD"}),interceptors:a,options:r=>i({...r,method:"OPTIONS"}),patch:r=>i({...r,method:"PATCH"}),post:r=>i({...r,method:"POST"}),put:r=>i({...r,method:"PUT"}),request:i,setConfig:s,trace:r=>i({...r,method:"TRACE"})}};var h=R(B()),L=e=>(e?.client??h).get({...e,url:"/bookings"}),V=e=>(e?.client??h).post({...e,headers:{"Content-Type":"application/json",...e?.headers},url:"/bookings"}),G=e=>(e?.client??h).delete({...e,url:"/bookings/{bookingId}"}),M=e=>(e?.client??h).get({...e,url:"/bookings/{bookingId}"}),Q=e=>(e?.client??h).put({...e,headers:{"Content-Type":"application/json",...e?.headers},url:"/bookings/{bookingId}"});export{h as a,L as b,V as c,G as d,M as e,Q as f};
@@ -0,0 +1,3 @@
1
+ export { AddBookingData, AddBookingError, AddBookingErrors, AddBookingResponse, AddBookingResponses, Booking, CreateBooking, DeleteBookingData, DeleteBookingError, DeleteBookingErrors, DeleteBookingResponse, DeleteBookingResponses, FindBookingByIdData, FindBookingByIdError, FindBookingByIdErrors, FindBookingByIdResponse, FindBookingByIdResponses, FindBookingsData, FindBookingsError, FindBookingsErrors, FindBookingsResponse, FindBookingsResponses, Guest, PkgOpenapiSharedError, PkgOpenapiSharedErrors, PkgOpenapiSharedOffsetLimitParam, PkgOpenapiSharedOffsetPaginatedResultSet, PkgOpenapiSharedOffsetParam, PkgOpenapiSharedProblemDetails, Player, UpdateBooking, UpdateBookingData, UpdateBookingError, UpdateBookingErrors, UpdateBookingResponse, UpdateBookingResponses } from './types.gen.mjs';
2
+ export { addBooking, client, deleteBooking, findBookingById, findBookings, updateBooking } from './sdk.gen.mjs';
3
+ import '@hey-api/client-fetch';
@@ -0,0 +1,3 @@
1
+ export { AddBookingData, AddBookingError, AddBookingErrors, AddBookingResponse, AddBookingResponses, Booking, CreateBooking, DeleteBookingData, DeleteBookingError, DeleteBookingErrors, DeleteBookingResponse, DeleteBookingResponses, FindBookingByIdData, FindBookingByIdError, FindBookingByIdErrors, FindBookingByIdResponse, FindBookingByIdResponses, FindBookingsData, FindBookingsError, FindBookingsErrors, FindBookingsResponse, FindBookingsResponses, Guest, PkgOpenapiSharedError, PkgOpenapiSharedErrors, PkgOpenapiSharedOffsetLimitParam, PkgOpenapiSharedOffsetPaginatedResultSet, PkgOpenapiSharedOffsetParam, PkgOpenapiSharedProblemDetails, Player, UpdateBooking, UpdateBookingData, UpdateBookingError, UpdateBookingErrors, UpdateBookingResponse, UpdateBookingResponses } from './types.gen.js';
2
+ export { addBooking, client, deleteBooking, findBookingById, findBookings, updateBooking } from './sdk.gen.js';
3
+ import '@hey-api/client-fetch';
@@ -0,0 +1 @@
1
+ "use strict";var w=Object.defineProperty;var v=Object.getOwnPropertyDescriptor;var A=Object.getOwnPropertyNames;var U=Object.prototype.hasOwnProperty;var $=(e,t)=>{for(var r in t)w(e,r,{get:t[r],enumerable:!0})},C=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of A(t))!U.call(e,a)&&a!==r&&w(e,a,{get:()=>t[a],enumerable:!(i=v(t,a))||i.enumerable});return e};var q=e=>C(w({},"__esModule",{value:!0}),e);var ee={};$(ee,{addBooking:()=>K,client:()=>f,deleteBooking:()=>X,findBookingById:()=>Y,findBookings:()=>Q,updateBooking:()=>Z});module.exports=q(ee);var I=/\{[^{}]+\}/g,m=({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)}`},z=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},_=e=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},F=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(_(i));switch(i){case"label":return`.${n}`;case"matrix":return`;${r}=${n}`;case"simple":return n;default:return`${r}=${n}`}}let s=z(i),o=a.map(n=>i==="label"||i==="simple"?e?n:encodeURIComponent(n):m({allowReserved:e,name:r,value:n})).join(s);return i==="label"||i==="matrix"?s+o:o},j=({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,u])=>{n=[...n,p,e?u:encodeURIComponent(u)]});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=F(i),o=Object.entries(a).map(([n,l])=>m({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(I);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,j({explode:s,name:o,style:n,value:l}));continue}if(n==="matrix"){r=r.replace(a,`;${m({name:o,value:l})}`);continue}let p=encodeURIComponent(n==="label"?`.${l}`:l);r=r.replace(a,p)}return r},T=({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,j({allowReserved:e,explode:!0,name:s,style:"deepObject",value:o,...r})];continue}a=[...a,m({allowReserved:e,name:s,value:o})]}}return a.join("&")},N=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"}},P=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},H=async({security:e,...t})=>{for(let r of e){let i=await P(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}},O=e=>J({baseUrl:e.baseUrl??"",path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:T(e.querySerializer),url:e.url}),J=({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},E=(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},B=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]}},L=()=>({error:new B,request:new B,response:new B});var V={bodySerializer:e=>JSON.stringify(e)};var G=T({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),M={"Content-Type":"application/json"},k=(e={})=>({...V,baseUrl:"",headers:M,parseAs:"auto",querySerializer:G,...e}),S=(e={})=>{let t=E(k(),e),r=()=>({...t}),i=o=>(t=E(t,o),r()),a=L(),s=async o=>{let n={...t,...o,fetch:o.fetch??t.fetch??globalThis.fetch,headers:R(t.headers,o.headers)};n.security&&await H({...n,security:n.security}),n.body&&n.bodySerializer&&(n.body=n.bodySerializer(n.body)),n.body||n.headers.delete("Content-Type");let l=O(n),p={redirect:"follow",...n},u=new Request(l,p);for(let c of a.request._fns)u=await c(u,n);let D=n.fetch,d=await D(u);for(let c of a.response._fns)d=await c(d,u,n);let y={request:u,response:d};if(d.ok){if(d.status===204||d.headers.get("Content-Length")==="0")return{data:{},...y};let c=(n.parseAs==="auto"?N(d.headers.get("Content-Type")):n.parseAs)??"json";if(c==="stream")return{data:d.body,...y};let g=await d[c]();return c==="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 c of a.error._fns)h=await c(b,d,u,n);if(h=h||{},n.throwOnError)throw h;return{error:h,...y}};return{buildUrl:O,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 f=S(k()),Q=e=>(e?.client??f).get({...e,url:"/bookings"}),K=e=>(e?.client??f).post({...e,headers:{"Content-Type":"application/json",...e?.headers},url:"/bookings"}),X=e=>(e?.client??f).delete({...e,url:"/bookings/{bookingId}"}),Y=e=>(e?.client??f).get({...e,url:"/bookings/{bookingId}"}),Z=e=>(e?.client??f).put({...e,headers:{"Content-Type":"application/json",...e?.headers},url:"/bookings/{bookingId}"});0&&(module.exports={addBooking,client,deleteBooking,findBookingById,findBookings,updateBooking});
@@ -0,0 +1 @@
1
+ import"./chunk-PT2OYMNL.mjs";import{a as o,b as r,c as e,d as f,e as m,f as p}from"./chunk-SNGJPP3Q.mjs";export{e as addBooking,o as client,f as deleteBooking,m as findBookingById,r as findBookings,p as updateBooking};
@@ -0,0 +1,239 @@
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 GuestSchema: {
106
+ readonly properties: {
107
+ readonly email: {
108
+ readonly type: "string";
109
+ };
110
+ };
111
+ readonly required: readonly ["email"];
112
+ readonly type: "object";
113
+ };
114
+ declare const PlayerSchema: {
115
+ readonly properties: {
116
+ readonly email: {
117
+ readonly type: "string";
118
+ };
119
+ readonly id: {
120
+ readonly format: "uuid";
121
+ readonly type: "string";
122
+ };
123
+ };
124
+ readonly required: readonly ["id", "email"];
125
+ readonly type: "object";
126
+ };
127
+ declare const UpdateBookingSchema: {
128
+ readonly properties: {
129
+ readonly booker: {
130
+ readonly format: "uuid";
131
+ readonly type: "string";
132
+ };
133
+ readonly end_time: {
134
+ readonly format: "date-time";
135
+ readonly type: "string";
136
+ };
137
+ readonly location: {
138
+ readonly type: "string";
139
+ };
140
+ readonly participants: {
141
+ readonly properties: {
142
+ readonly guests: {
143
+ readonly items: {
144
+ readonly $ref: "#/components/schemas/Guest";
145
+ };
146
+ readonly type: "array";
147
+ };
148
+ readonly players: {
149
+ readonly items: {
150
+ readonly $ref: "#/components/schemas/Player";
151
+ };
152
+ readonly type: "array";
153
+ };
154
+ };
155
+ readonly type: "object";
156
+ };
157
+ readonly payment_reference: {
158
+ readonly type: "string";
159
+ };
160
+ readonly start_time: {
161
+ readonly format: "date-time";
162
+ readonly type: "string";
163
+ };
164
+ };
165
+ readonly required: readonly ["booker", "location", "start_time", "end_time", "participants", "payment_reference"];
166
+ readonly type: "object";
167
+ };
168
+ declare const pkgOpenapiSharedErrorSchema: {
169
+ readonly properties: {
170
+ readonly message: {
171
+ readonly description: "The error message";
172
+ readonly type: "string";
173
+ };
174
+ };
175
+ readonly type: "object";
176
+ };
177
+ declare const pkgOpenapiSharedErrorsSchema: {
178
+ readonly description: "An array of error details to accompany a problem details response.";
179
+ readonly items: {
180
+ readonly $ref: "#/components/schemas/pkgOpenapiSharedError";
181
+ };
182
+ readonly maxItems: 1000;
183
+ readonly type: "array";
184
+ };
185
+ declare const pkgOpenapiSharedOffsetPaginatedResultSetSchema: {
186
+ 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";
187
+ readonly properties: {
188
+ readonly limit: {
189
+ readonly type: "integer";
190
+ };
191
+ readonly moreResults: {
192
+ readonly type: "boolean";
193
+ };
194
+ readonly offset: {
195
+ readonly type: "integer";
196
+ };
197
+ };
198
+ readonly required: readonly ["offset", "limit", "moreResults"];
199
+ readonly type: "object";
200
+ };
201
+ declare const pkgOpenapiSharedProblemDetailsSchema: {
202
+ readonly properties: {
203
+ readonly detail: {
204
+ readonly description: "A human-readable explanation specific to this occurrence of the problem.";
205
+ readonly maxLength: 4096;
206
+ readonly type: "string";
207
+ };
208
+ readonly errors: {
209
+ readonly $ref: "#/components/schemas/pkgOpenapiSharedErrors";
210
+ };
211
+ readonly instance: {
212
+ readonly description: "A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.";
213
+ readonly maxLength: 1024;
214
+ readonly type: "string";
215
+ };
216
+ readonly status: {
217
+ readonly description: "The HTTP status code generated by the origin server for this occurrence of the problem.";
218
+ readonly format: "int32";
219
+ readonly maximum: 599;
220
+ readonly minimum: 100;
221
+ readonly type: "integer";
222
+ };
223
+ readonly title: {
224
+ 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.";
225
+ readonly maxLength: 1024;
226
+ readonly type: "string";
227
+ };
228
+ readonly type: {
229
+ readonly description: "A URI reference that identifies the problem type.";
230
+ readonly format: "uri";
231
+ readonly maxLength: 1024;
232
+ readonly type: "string";
233
+ };
234
+ };
235
+ readonly required: readonly ["title"];
236
+ readonly type: "object";
237
+ };
238
+
239
+ export { BookingSchema, CreateBookingSchema, GuestSchema, PlayerSchema, UpdateBookingSchema, pkgOpenapiSharedErrorSchema, pkgOpenapiSharedErrorsSchema, pkgOpenapiSharedOffsetPaginatedResultSetSchema, pkgOpenapiSharedProblemDetailsSchema };