@seamapi/types 1.534.0 → 1.536.0
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/connect.cjs +274 -98
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +397 -49
- package/dist/index.cjs +274 -98
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/instant-keys/index.d.ts +1 -0
- package/lib/seam/connect/models/instant-keys/index.js +1 -0
- package/lib/seam/connect/models/instant-keys/index.js.map +1 -1
- package/lib/seam/connect/models/instant-keys/instant-key-preview.d.ts +240 -0
- package/lib/seam/connect/models/instant-keys/instant-key-preview.js +48 -0
- package/lib/seam/connect/models/instant-keys/instant-key-preview.js.map +1 -0
- package/lib/seam/connect/openapi.d.ts +346 -35
- package/lib/seam/connect/openapi.js +274 -98
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +51 -14
- package/package.json +1 -1
- package/src/lib/seam/connect/internal/schemas.ts +1 -0
- package/src/lib/seam/connect/models/instant-keys/index.ts +1 -0
- package/src/lib/seam/connect/models/instant-keys/instant-key-preview.ts +58 -0
- package/src/lib/seam/connect/openapi.ts +278 -112
- package/src/lib/seam/connect/route-types.ts +51 -14
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/instant-keys/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/instant-keys/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,0BAA0B,CAAA"}
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare const instant_key_preview_hotel: z.ZodObject<{
|
|
3
|
+
hotel_name: z.ZodString;
|
|
4
|
+
primary_color: z.ZodString;
|
|
5
|
+
accent_color: z.ZodString;
|
|
6
|
+
secondary_color: z.ZodString;
|
|
7
|
+
logo_url: z.ZodOptional<z.ZodString>;
|
|
8
|
+
verified: z.ZodBoolean;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
primary_color: string;
|
|
11
|
+
secondary_color: string;
|
|
12
|
+
hotel_name: string;
|
|
13
|
+
accent_color: string;
|
|
14
|
+
verified: boolean;
|
|
15
|
+
logo_url?: string | undefined;
|
|
16
|
+
}, {
|
|
17
|
+
primary_color: string;
|
|
18
|
+
secondary_color: string;
|
|
19
|
+
hotel_name: string;
|
|
20
|
+
accent_color: string;
|
|
21
|
+
verified: boolean;
|
|
22
|
+
logo_url?: string | undefined;
|
|
23
|
+
}>;
|
|
24
|
+
declare const instant_key_preview_guest: z.ZodObject<{
|
|
25
|
+
first_name: z.ZodString;
|
|
26
|
+
last_name: z.ZodString;
|
|
27
|
+
full_name: z.ZodString;
|
|
28
|
+
email: z.ZodString;
|
|
29
|
+
check_in_date: z.ZodString;
|
|
30
|
+
check_out_date: z.ZodString;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
email: string;
|
|
33
|
+
full_name: string;
|
|
34
|
+
first_name: string;
|
|
35
|
+
last_name: string;
|
|
36
|
+
check_in_date: string;
|
|
37
|
+
check_out_date: string;
|
|
38
|
+
}, {
|
|
39
|
+
email: string;
|
|
40
|
+
full_name: string;
|
|
41
|
+
first_name: string;
|
|
42
|
+
last_name: string;
|
|
43
|
+
check_in_date: string;
|
|
44
|
+
check_out_date: string;
|
|
45
|
+
}>;
|
|
46
|
+
declare const instant_key_preview_room: z.ZodObject<{
|
|
47
|
+
room_number: z.ZodString;
|
|
48
|
+
room_type: z.ZodString;
|
|
49
|
+
floor: z.ZodNumber;
|
|
50
|
+
}, "strip", z.ZodTypeAny, {
|
|
51
|
+
room_number: string;
|
|
52
|
+
room_type: string;
|
|
53
|
+
floor: number;
|
|
54
|
+
}, {
|
|
55
|
+
room_number: string;
|
|
56
|
+
room_type: string;
|
|
57
|
+
floor: number;
|
|
58
|
+
}>;
|
|
59
|
+
declare const instant_key_preview_access: z.ZodObject<{
|
|
60
|
+
name: z.ZodString;
|
|
61
|
+
icon: z.ZodString;
|
|
62
|
+
hours: z.ZodOptional<z.ZodString>;
|
|
63
|
+
location: z.ZodOptional<z.ZodString>;
|
|
64
|
+
available: z.ZodBoolean;
|
|
65
|
+
}, "strip", z.ZodTypeAny, {
|
|
66
|
+
name: string;
|
|
67
|
+
icon: string;
|
|
68
|
+
available: boolean;
|
|
69
|
+
location?: string | undefined;
|
|
70
|
+
hours?: string | undefined;
|
|
71
|
+
}, {
|
|
72
|
+
name: string;
|
|
73
|
+
icon: string;
|
|
74
|
+
available: boolean;
|
|
75
|
+
location?: string | undefined;
|
|
76
|
+
hours?: string | undefined;
|
|
77
|
+
}>;
|
|
78
|
+
export declare const instant_key_preview: z.ZodObject<{
|
|
79
|
+
shortcode: z.ZodString;
|
|
80
|
+
hotel: z.ZodObject<{
|
|
81
|
+
hotel_name: z.ZodString;
|
|
82
|
+
primary_color: z.ZodString;
|
|
83
|
+
accent_color: z.ZodString;
|
|
84
|
+
secondary_color: z.ZodString;
|
|
85
|
+
logo_url: z.ZodOptional<z.ZodString>;
|
|
86
|
+
verified: z.ZodBoolean;
|
|
87
|
+
}, "strip", z.ZodTypeAny, {
|
|
88
|
+
primary_color: string;
|
|
89
|
+
secondary_color: string;
|
|
90
|
+
hotel_name: string;
|
|
91
|
+
accent_color: string;
|
|
92
|
+
verified: boolean;
|
|
93
|
+
logo_url?: string | undefined;
|
|
94
|
+
}, {
|
|
95
|
+
primary_color: string;
|
|
96
|
+
secondary_color: string;
|
|
97
|
+
hotel_name: string;
|
|
98
|
+
accent_color: string;
|
|
99
|
+
verified: boolean;
|
|
100
|
+
logo_url?: string | undefined;
|
|
101
|
+
}>;
|
|
102
|
+
guest: z.ZodObject<{
|
|
103
|
+
first_name: z.ZodString;
|
|
104
|
+
last_name: z.ZodString;
|
|
105
|
+
full_name: z.ZodString;
|
|
106
|
+
email: z.ZodString;
|
|
107
|
+
check_in_date: z.ZodString;
|
|
108
|
+
check_out_date: z.ZodString;
|
|
109
|
+
}, "strip", z.ZodTypeAny, {
|
|
110
|
+
email: string;
|
|
111
|
+
full_name: string;
|
|
112
|
+
first_name: string;
|
|
113
|
+
last_name: string;
|
|
114
|
+
check_in_date: string;
|
|
115
|
+
check_out_date: string;
|
|
116
|
+
}, {
|
|
117
|
+
email: string;
|
|
118
|
+
full_name: string;
|
|
119
|
+
first_name: string;
|
|
120
|
+
last_name: string;
|
|
121
|
+
check_in_date: string;
|
|
122
|
+
check_out_date: string;
|
|
123
|
+
}>;
|
|
124
|
+
room: z.ZodObject<{
|
|
125
|
+
room_number: z.ZodString;
|
|
126
|
+
room_type: z.ZodString;
|
|
127
|
+
floor: z.ZodNumber;
|
|
128
|
+
}, "strip", z.ZodTypeAny, {
|
|
129
|
+
room_number: string;
|
|
130
|
+
room_type: string;
|
|
131
|
+
floor: number;
|
|
132
|
+
}, {
|
|
133
|
+
room_number: string;
|
|
134
|
+
room_type: string;
|
|
135
|
+
floor: number;
|
|
136
|
+
}>;
|
|
137
|
+
access: z.ZodArray<z.ZodObject<{
|
|
138
|
+
name: z.ZodString;
|
|
139
|
+
icon: z.ZodString;
|
|
140
|
+
hours: z.ZodOptional<z.ZodString>;
|
|
141
|
+
location: z.ZodOptional<z.ZodString>;
|
|
142
|
+
available: z.ZodBoolean;
|
|
143
|
+
}, "strip", z.ZodTypeAny, {
|
|
144
|
+
name: string;
|
|
145
|
+
icon: string;
|
|
146
|
+
available: boolean;
|
|
147
|
+
location?: string | undefined;
|
|
148
|
+
hours?: string | undefined;
|
|
149
|
+
}, {
|
|
150
|
+
name: string;
|
|
151
|
+
icon: string;
|
|
152
|
+
available: boolean;
|
|
153
|
+
location?: string | undefined;
|
|
154
|
+
hours?: string | undefined;
|
|
155
|
+
}>, "many">;
|
|
156
|
+
key_status: z.ZodEnum<["ready", "expired", "used"]>;
|
|
157
|
+
support_phone: z.ZodString;
|
|
158
|
+
support_email: z.ZodString;
|
|
159
|
+
created_at: z.ZodString;
|
|
160
|
+
updated_at: z.ZodString;
|
|
161
|
+
expires_at: z.ZodString;
|
|
162
|
+
}, "strip", z.ZodTypeAny, {
|
|
163
|
+
created_at: string;
|
|
164
|
+
guest: {
|
|
165
|
+
email: string;
|
|
166
|
+
full_name: string;
|
|
167
|
+
first_name: string;
|
|
168
|
+
last_name: string;
|
|
169
|
+
check_in_date: string;
|
|
170
|
+
check_out_date: string;
|
|
171
|
+
};
|
|
172
|
+
expires_at: string;
|
|
173
|
+
shortcode: string;
|
|
174
|
+
hotel: {
|
|
175
|
+
primary_color: string;
|
|
176
|
+
secondary_color: string;
|
|
177
|
+
hotel_name: string;
|
|
178
|
+
accent_color: string;
|
|
179
|
+
verified: boolean;
|
|
180
|
+
logo_url?: string | undefined;
|
|
181
|
+
};
|
|
182
|
+
room: {
|
|
183
|
+
room_number: string;
|
|
184
|
+
room_type: string;
|
|
185
|
+
floor: number;
|
|
186
|
+
};
|
|
187
|
+
access: {
|
|
188
|
+
name: string;
|
|
189
|
+
icon: string;
|
|
190
|
+
available: boolean;
|
|
191
|
+
location?: string | undefined;
|
|
192
|
+
hours?: string | undefined;
|
|
193
|
+
}[];
|
|
194
|
+
key_status: "expired" | "ready" | "used";
|
|
195
|
+
support_phone: string;
|
|
196
|
+
support_email: string;
|
|
197
|
+
updated_at: string;
|
|
198
|
+
}, {
|
|
199
|
+
created_at: string;
|
|
200
|
+
guest: {
|
|
201
|
+
email: string;
|
|
202
|
+
full_name: string;
|
|
203
|
+
first_name: string;
|
|
204
|
+
last_name: string;
|
|
205
|
+
check_in_date: string;
|
|
206
|
+
check_out_date: string;
|
|
207
|
+
};
|
|
208
|
+
expires_at: string;
|
|
209
|
+
shortcode: string;
|
|
210
|
+
hotel: {
|
|
211
|
+
primary_color: string;
|
|
212
|
+
secondary_color: string;
|
|
213
|
+
hotel_name: string;
|
|
214
|
+
accent_color: string;
|
|
215
|
+
verified: boolean;
|
|
216
|
+
logo_url?: string | undefined;
|
|
217
|
+
};
|
|
218
|
+
room: {
|
|
219
|
+
room_number: string;
|
|
220
|
+
room_type: string;
|
|
221
|
+
floor: number;
|
|
222
|
+
};
|
|
223
|
+
access: {
|
|
224
|
+
name: string;
|
|
225
|
+
icon: string;
|
|
226
|
+
available: boolean;
|
|
227
|
+
location?: string | undefined;
|
|
228
|
+
hours?: string | undefined;
|
|
229
|
+
}[];
|
|
230
|
+
key_status: "expired" | "ready" | "used";
|
|
231
|
+
support_phone: string;
|
|
232
|
+
support_email: string;
|
|
233
|
+
updated_at: string;
|
|
234
|
+
}>;
|
|
235
|
+
export type InstantKeyPreview = z.infer<typeof instant_key_preview>;
|
|
236
|
+
export type InstantKeyPreviewHotel = z.infer<typeof instant_key_preview_hotel>;
|
|
237
|
+
export type InstantKeyPreviewGuest = z.infer<typeof instant_key_preview_guest>;
|
|
238
|
+
export type InstantKeyPreviewRoom = z.infer<typeof instant_key_preview_room>;
|
|
239
|
+
export type InstantKeyPreviewAccess = z.infer<typeof instant_key_preview_access>;
|
|
240
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
const instant_key_preview_hotel = z.object({
|
|
3
|
+
hotel_name: z.string(),
|
|
4
|
+
primary_color: z.string(),
|
|
5
|
+
accent_color: z.string(),
|
|
6
|
+
secondary_color: z.string(),
|
|
7
|
+
logo_url: z.string().optional(),
|
|
8
|
+
verified: z.boolean(),
|
|
9
|
+
});
|
|
10
|
+
const instant_key_preview_guest = z.object({
|
|
11
|
+
first_name: z.string(),
|
|
12
|
+
last_name: z.string(),
|
|
13
|
+
full_name: z.string(),
|
|
14
|
+
email: z.string(),
|
|
15
|
+
check_in_date: z.string(),
|
|
16
|
+
check_out_date: z.string(),
|
|
17
|
+
});
|
|
18
|
+
const instant_key_preview_room = z.object({
|
|
19
|
+
room_number: z.string(),
|
|
20
|
+
room_type: z.string(),
|
|
21
|
+
floor: z.number(),
|
|
22
|
+
});
|
|
23
|
+
const instant_key_preview_access = z.object({
|
|
24
|
+
name: z.string(),
|
|
25
|
+
icon: z.string(),
|
|
26
|
+
hours: z.string().optional(),
|
|
27
|
+
location: z.string().optional(),
|
|
28
|
+
available: z.boolean(),
|
|
29
|
+
});
|
|
30
|
+
export const instant_key_preview = z.object({
|
|
31
|
+
shortcode: z.string(),
|
|
32
|
+
hotel: instant_key_preview_hotel,
|
|
33
|
+
guest: instant_key_preview_guest,
|
|
34
|
+
room: instant_key_preview_room,
|
|
35
|
+
access: z.array(instant_key_preview_access),
|
|
36
|
+
key_status: z.enum(['ready', 'expired', 'used']),
|
|
37
|
+
support_phone: z.string(),
|
|
38
|
+
support_email: z.string(),
|
|
39
|
+
created_at: z.string(),
|
|
40
|
+
updated_at: z.string(),
|
|
41
|
+
expires_at: z.string(),
|
|
42
|
+
}).describe(`
|
|
43
|
+
---
|
|
44
|
+
route_path: /instant_keys/preview
|
|
45
|
+
---
|
|
46
|
+
Represents a preview of an Instant Key with hotel, guest, and access information.
|
|
47
|
+
`);
|
|
48
|
+
//# sourceMappingURL=instant-key-preview.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instant-key-preview.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/instant-keys/instant-key-preview.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;IAC3B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,QAAQ,EAAE,CAA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