@tietokilta/pakuvaraus-client 0.1.0 → 0.1.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/package.json +1 -1
- package/schema.d.ts +31 -3
package/package.json
CHANGED
package/schema.d.ts
CHANGED
|
@@ -11,7 +11,13 @@ export interface paths {
|
|
|
11
11
|
path?: never;
|
|
12
12
|
cookie?: never;
|
|
13
13
|
};
|
|
14
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* List when the van is taken.
|
|
16
|
+
* @description Returns pending and approved reservations that overlap `[from, to)`,
|
|
17
|
+
* ordered by start time. Either bound may be left out. An empty or reversed
|
|
18
|
+
* range returns an empty list. Cancelled reservations and personal data are
|
|
19
|
+
* left out.
|
|
20
|
+
*/
|
|
15
21
|
get: operations["listReservations"];
|
|
16
22
|
put?: never;
|
|
17
23
|
/**
|
|
@@ -56,9 +62,17 @@ export interface components {
|
|
|
56
62
|
FullName: string;
|
|
57
63
|
/** @description Phone number; a number without a country code is read as Finnish */
|
|
58
64
|
Phone: string;
|
|
65
|
+
/** @description When the van is taken, without personal data. */
|
|
59
66
|
ReservationItem: {
|
|
67
|
+
/** @description Approved by an admin; otherwise the request is still pending */
|
|
68
|
+
approved: boolean;
|
|
60
69
|
/** Format: date-time */
|
|
61
70
|
end_time: string;
|
|
71
|
+
/**
|
|
72
|
+
* @description Reserved for guild use. A member's reservation can't overlap a guild
|
|
73
|
+
* one, but a guild reservation may overlap a member's.
|
|
74
|
+
*/
|
|
75
|
+
internal: boolean;
|
|
62
76
|
/** Format: date-time */
|
|
63
77
|
start_time: string;
|
|
64
78
|
};
|
|
@@ -80,14 +94,19 @@ export type $defs = Record<string, never>;
|
|
|
80
94
|
export interface operations {
|
|
81
95
|
listReservations: {
|
|
82
96
|
parameters: {
|
|
83
|
-
query?:
|
|
97
|
+
query?: {
|
|
98
|
+
/** @description Only reservations that end after this time */
|
|
99
|
+
from?: string;
|
|
100
|
+
/** @description Only reservations that start before this time */
|
|
101
|
+
to?: string;
|
|
102
|
+
};
|
|
84
103
|
header?: never;
|
|
85
104
|
path?: never;
|
|
86
105
|
cookie?: never;
|
|
87
106
|
};
|
|
88
107
|
requestBody?: never;
|
|
89
108
|
responses: {
|
|
90
|
-
/** @description
|
|
109
|
+
/** @description Pending and approved reservations in the range */
|
|
91
110
|
200: {
|
|
92
111
|
headers: {
|
|
93
112
|
[name: string]: unknown;
|
|
@@ -96,6 +115,15 @@ export interface operations {
|
|
|
96
115
|
"application/json": components["schemas"]["ReservationItem"][];
|
|
97
116
|
};
|
|
98
117
|
};
|
|
118
|
+
/** @description `from` or `to` is not an RFC 3339 timestamp */
|
|
119
|
+
400: {
|
|
120
|
+
headers: {
|
|
121
|
+
[name: string]: unknown;
|
|
122
|
+
};
|
|
123
|
+
content: {
|
|
124
|
+
"text/plain": string;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
99
127
|
/** @description Internal server error */
|
|
100
128
|
500: {
|
|
101
129
|
headers: {
|