@seamapi/types 1.535.0 → 1.537.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 +473 -2
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +898 -0
- package/dist/index.cjs +473 -2
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/customer/customer-portal.d.ts +139 -0
- package/lib/seam/connect/models/customer/customer-portal.js +7 -0
- package/lib/seam/connect/models/customer/customer-portal.js.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 +804 -0
- package/lib/seam/connect/openapi.js +471 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +94 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/internal/schemas.ts +1 -0
- package/src/lib/seam/connect/models/customer/customer-portal.ts +8 -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 +476 -0
- package/src/lib/seam/connect/route-types.ts +122 -0
|
@@ -31061,6 +31061,28 @@ export type Routes = {
|
|
|
31061
31061
|
};
|
|
31062
31062
|
/** Whether the portal is embedded in another application. */
|
|
31063
31063
|
is_embedded?: boolean;
|
|
31064
|
+
/** Configuration for the landing page when the portal loads. */
|
|
31065
|
+
landing_page?: {
|
|
31066
|
+
manage?: ({
|
|
31067
|
+
space_key: string;
|
|
31068
|
+
} | {
|
|
31069
|
+
property_key: string;
|
|
31070
|
+
} | {
|
|
31071
|
+
room_key: string;
|
|
31072
|
+
} | {
|
|
31073
|
+
common_area_key: string;
|
|
31074
|
+
} | {
|
|
31075
|
+
unit_key: string;
|
|
31076
|
+
} | {
|
|
31077
|
+
facility_key: string;
|
|
31078
|
+
} | {
|
|
31079
|
+
building_key: string;
|
|
31080
|
+
} | {
|
|
31081
|
+
listing_key: string;
|
|
31082
|
+
} | {
|
|
31083
|
+
property_listing_key: string;
|
|
31084
|
+
}) | undefined;
|
|
31085
|
+
} | undefined;
|
|
31064
31086
|
} & {
|
|
31065
31087
|
customer_data?: {
|
|
31066
31088
|
/** Your unique identifier for the customer. */
|
|
@@ -57671,6 +57693,27 @@ export type Routes = {
|
|
|
57671
57693
|
} | undefined;
|
|
57672
57694
|
} | undefined;
|
|
57673
57695
|
is_embedded?: boolean | undefined;
|
|
57696
|
+
landing_page?: {
|
|
57697
|
+
manage?: ({
|
|
57698
|
+
space_key: string;
|
|
57699
|
+
} | {
|
|
57700
|
+
property_key: string;
|
|
57701
|
+
} | {
|
|
57702
|
+
room_key: string;
|
|
57703
|
+
} | {
|
|
57704
|
+
common_area_key: string;
|
|
57705
|
+
} | {
|
|
57706
|
+
unit_key: string;
|
|
57707
|
+
} | {
|
|
57708
|
+
facility_key: string;
|
|
57709
|
+
} | {
|
|
57710
|
+
building_key: string;
|
|
57711
|
+
} | {
|
|
57712
|
+
listing_key: string;
|
|
57713
|
+
} | {
|
|
57714
|
+
property_listing_key: string;
|
|
57715
|
+
}) | undefined;
|
|
57716
|
+
} | undefined;
|
|
57674
57717
|
/** Business vertical of the customer portal. */
|
|
57675
57718
|
business_vertical?: ('short_term_rental' | 'hospitality' | 'multi_family' | 'gym_management' | 'property_tours') | undefined;
|
|
57676
57719
|
};
|
|
@@ -57749,6 +57792,57 @@ export type Routes = {
|
|
|
57749
57792
|
};
|
|
57750
57793
|
};
|
|
57751
57794
|
};
|
|
57795
|
+
'/seam/instant_key/v1/preview/get': {
|
|
57796
|
+
route: '/seam/instant_key/v1/preview/get';
|
|
57797
|
+
method: 'GET' | 'POST';
|
|
57798
|
+
queryParams: {};
|
|
57799
|
+
jsonBody: {
|
|
57800
|
+
/** The short code of the instant key to preview. */
|
|
57801
|
+
instant_key_url: string;
|
|
57802
|
+
};
|
|
57803
|
+
commonParams: {};
|
|
57804
|
+
formData: {};
|
|
57805
|
+
jsonResponse: {
|
|
57806
|
+
/** Represents a preview of an Instant Key with hotel, guest, and access information. */
|
|
57807
|
+
instant_key_preview: {
|
|
57808
|
+
shortcode: string;
|
|
57809
|
+
hotel: {
|
|
57810
|
+
hotel_name: string;
|
|
57811
|
+
primary_color: string;
|
|
57812
|
+
accent_color: string;
|
|
57813
|
+
secondary_color: string;
|
|
57814
|
+
logo_url?: string | undefined;
|
|
57815
|
+
verified: boolean;
|
|
57816
|
+
};
|
|
57817
|
+
guest: {
|
|
57818
|
+
first_name: string;
|
|
57819
|
+
last_name: string;
|
|
57820
|
+
full_name: string;
|
|
57821
|
+
email: string;
|
|
57822
|
+
check_in_date: string;
|
|
57823
|
+
check_out_date: string;
|
|
57824
|
+
};
|
|
57825
|
+
room: {
|
|
57826
|
+
room_number: string;
|
|
57827
|
+
room_type: string;
|
|
57828
|
+
floor: number;
|
|
57829
|
+
};
|
|
57830
|
+
access: {
|
|
57831
|
+
name: string;
|
|
57832
|
+
icon: string;
|
|
57833
|
+
hours?: string | undefined;
|
|
57834
|
+
location?: string | undefined;
|
|
57835
|
+
available: boolean;
|
|
57836
|
+
}[];
|
|
57837
|
+
key_status: 'ready' | 'expired' | 'used';
|
|
57838
|
+
support_phone: string;
|
|
57839
|
+
support_email: string;
|
|
57840
|
+
created_at: string;
|
|
57841
|
+
updated_at: string;
|
|
57842
|
+
expires_at: string;
|
|
57843
|
+
};
|
|
57844
|
+
};
|
|
57845
|
+
};
|
|
57752
57846
|
'/seam/mobile_sdk/v1/acs/credentials/list': {
|
|
57753
57847
|
route: '/seam/mobile_sdk/v1/acs/credentials/list';
|
|
57754
57848
|
method: 'GET' | 'POST';
|
package/package.json
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
|
+
import { location_key_aliases } from './location-resources.js'
|
|
4
|
+
|
|
3
5
|
const base_feature = z.object({
|
|
4
6
|
exclude: z
|
|
5
7
|
.boolean()
|
|
@@ -48,6 +50,12 @@ export const portal_configuration = z
|
|
|
48
50
|
.boolean()
|
|
49
51
|
.default(false)
|
|
50
52
|
.describe('Whether the portal is embedded in another application.'),
|
|
53
|
+
landing_page: z
|
|
54
|
+
.object({
|
|
55
|
+
manage: location_key_aliases.optional(),
|
|
56
|
+
})
|
|
57
|
+
.optional()
|
|
58
|
+
.describe('Configuration for the landing page when the portal loads.'),
|
|
51
59
|
})
|
|
52
60
|
.default({
|
|
53
61
|
features: {
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
|
|
3
|
+
const instant_key_preview_hotel = z.object({
|
|
4
|
+
hotel_name: z.string(),
|
|
5
|
+
primary_color: z.string(),
|
|
6
|
+
accent_color: z.string(),
|
|
7
|
+
secondary_color: z.string(),
|
|
8
|
+
logo_url: z.string().optional(),
|
|
9
|
+
verified: z.boolean(),
|
|
10
|
+
})
|
|
11
|
+
|
|
12
|
+
const instant_key_preview_guest = z.object({
|
|
13
|
+
first_name: z.string(),
|
|
14
|
+
last_name: z.string(),
|
|
15
|
+
full_name: z.string(),
|
|
16
|
+
email: z.string(),
|
|
17
|
+
check_in_date: z.string(),
|
|
18
|
+
check_out_date: z.string(),
|
|
19
|
+
})
|
|
20
|
+
|
|
21
|
+
const instant_key_preview_room = z.object({
|
|
22
|
+
room_number: z.string(),
|
|
23
|
+
room_type: z.string(),
|
|
24
|
+
floor: z.number(),
|
|
25
|
+
})
|
|
26
|
+
|
|
27
|
+
const instant_key_preview_access = z.object({
|
|
28
|
+
name: z.string(),
|
|
29
|
+
icon: z.string(),
|
|
30
|
+
hours: z.string().optional(),
|
|
31
|
+
location: z.string().optional(),
|
|
32
|
+
available: z.boolean(),
|
|
33
|
+
})
|
|
34
|
+
|
|
35
|
+
export const instant_key_preview = z.object({
|
|
36
|
+
shortcode: z.string(),
|
|
37
|
+
hotel: instant_key_preview_hotel,
|
|
38
|
+
guest: instant_key_preview_guest,
|
|
39
|
+
room: instant_key_preview_room,
|
|
40
|
+
access: z.array(instant_key_preview_access),
|
|
41
|
+
key_status: z.enum(['ready', 'expired', 'used']),
|
|
42
|
+
support_phone: z.string(),
|
|
43
|
+
support_email: z.string(),
|
|
44
|
+
created_at: z.string(),
|
|
45
|
+
updated_at: z.string(),
|
|
46
|
+
expires_at: z.string(),
|
|
47
|
+
}).describe(`
|
|
48
|
+
---
|
|
49
|
+
route_path: /instant_keys/preview
|
|
50
|
+
---
|
|
51
|
+
Represents a preview of an Instant Key with hotel, guest, and access information.
|
|
52
|
+
`)
|
|
53
|
+
|
|
54
|
+
export type InstantKeyPreview = z.infer<typeof instant_key_preview>
|
|
55
|
+
export type InstantKeyPreviewHotel = z.infer<typeof instant_key_preview_hotel>
|
|
56
|
+
export type InstantKeyPreviewGuest = z.infer<typeof instant_key_preview_guest>
|
|
57
|
+
export type InstantKeyPreviewRoom = z.infer<typeof instant_key_preview_room>
|
|
58
|
+
export type InstantKeyPreviewAccess = z.infer<typeof instant_key_preview_access>
|