@seamapi/types 1.617.0 → 1.619.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 +327 -6
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +387 -0
- package/dist/index.cjs +327 -6
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/customer/access-grant-resources.d.ts +6 -6
- package/lib/seam/connect/models/customer/access-grant-resources.js +15 -1
- package/lib/seam/connect/models/customer/access-grant-resources.js.map +1 -1
- package/lib/seam/connect/models/customer/customer-data.d.ts +22 -22
- package/lib/seam/connect/models/customer/customer-data.js +7 -1
- package/lib/seam/connect/models/customer/customer-data.js.map +1 -1
- package/lib/seam/connect/models/customer/location-resources.d.ts +26 -26
- package/lib/seam/connect/models/customer/location-resources.js +76 -8
- package/lib/seam/connect/models/customer/location-resources.js.map +1 -1
- package/lib/seam/connect/models/customer/user-identity-resources.d.ts +10 -10
- package/lib/seam/connect/models/customer/user-identity-resources.js +32 -4
- package/lib/seam/connect/models/customer/user-identity-resources.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +342 -0
- package/lib/seam/connect/openapi.js +312 -1
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +45 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/customer/access-grant-resources.ts +15 -1
- package/src/lib/seam/connect/models/customer/customer-data.ts +7 -1
- package/src/lib/seam/connect/models/customer/location-resources.ts +76 -8
- package/src/lib/seam/connect/models/customer/user-identity-resources.ts +32 -4
- package/src/lib/seam/connect/openapi.ts +312 -1
- package/src/lib/seam/connect/route-types.ts +67 -0
|
@@ -57079,6 +57079,28 @@ export type Routes = {
|
|
|
57079
57079
|
config?: {} | undefined;
|
|
57080
57080
|
} | undefined;
|
|
57081
57081
|
} | undefined;
|
|
57082
|
+
climate_rules?: {
|
|
57083
|
+
rules: {
|
|
57084
|
+
reservation_created?: {
|
|
57085
|
+
enabled: boolean;
|
|
57086
|
+
occupied_preset_key?: string | undefined;
|
|
57087
|
+
fallback_preset?: {
|
|
57088
|
+
mode: 'heat' | 'cool' | 'auto';
|
|
57089
|
+
temperature: number;
|
|
57090
|
+
temperature_unit: 'celsius' | 'fahrenheit';
|
|
57091
|
+
fan_mode: 'on' | 'auto' | 'circulate';
|
|
57092
|
+
is_override_allowed: boolean;
|
|
57093
|
+
override_period_minutes: number;
|
|
57094
|
+
} | undefined;
|
|
57095
|
+
} | undefined;
|
|
57096
|
+
update_on_time_change?: {
|
|
57097
|
+
enabled: boolean;
|
|
57098
|
+
} | undefined;
|
|
57099
|
+
delete_on_reservation_end?: {
|
|
57100
|
+
enabled: boolean;
|
|
57101
|
+
} | undefined;
|
|
57102
|
+
};
|
|
57103
|
+
} | undefined;
|
|
57082
57104
|
};
|
|
57083
57105
|
};
|
|
57084
57106
|
'/seam/customer/v1/automations/update': {
|
|
@@ -57112,6 +57134,29 @@ export type Routes = {
|
|
|
57112
57134
|
config?: {} | undefined;
|
|
57113
57135
|
} | undefined;
|
|
57114
57136
|
} | undefined;
|
|
57137
|
+
/** Climate automation rules configuration. */
|
|
57138
|
+
climate_rules?: {
|
|
57139
|
+
rules?: {
|
|
57140
|
+
reservation_created?: {
|
|
57141
|
+
enabled: boolean;
|
|
57142
|
+
occupied_preset_key?: string | undefined;
|
|
57143
|
+
fallback_preset?: {
|
|
57144
|
+
mode: 'heat' | 'cool' | 'auto';
|
|
57145
|
+
temperature: number;
|
|
57146
|
+
temperature_unit: 'celsius' | 'fahrenheit';
|
|
57147
|
+
fan_mode: 'on' | 'auto' | 'circulate';
|
|
57148
|
+
is_override_allowed: boolean;
|
|
57149
|
+
override_period_minutes: number;
|
|
57150
|
+
} | undefined;
|
|
57151
|
+
} | undefined;
|
|
57152
|
+
update_on_time_change?: {
|
|
57153
|
+
enabled: boolean;
|
|
57154
|
+
} | undefined;
|
|
57155
|
+
delete_on_reservation_end?: {
|
|
57156
|
+
enabled: boolean;
|
|
57157
|
+
} | undefined;
|
|
57158
|
+
} | undefined;
|
|
57159
|
+
} | undefined;
|
|
57115
57160
|
};
|
|
57116
57161
|
commonParams: {};
|
|
57117
57162
|
formData: {};
|
package/package.json
CHANGED
|
@@ -89,6 +89,10 @@ export const reservation_resource = base_access_grant_resource
|
|
|
89
89
|
.extend({
|
|
90
90
|
reservation_key: z
|
|
91
91
|
.string()
|
|
92
|
+
.min(1)
|
|
93
|
+
.refine((val) => val === val.trim(), {
|
|
94
|
+
message: 'Must not have leading or trailing whitespace',
|
|
95
|
+
})
|
|
92
96
|
.describe('Your unique identifier for the reservation.'),
|
|
93
97
|
})
|
|
94
98
|
.merge(user_identity_reference)
|
|
@@ -96,7 +100,13 @@ export const reservation_resource = base_access_grant_resource
|
|
|
96
100
|
|
|
97
101
|
export const booking_resource = base_access_grant_resource
|
|
98
102
|
.extend({
|
|
99
|
-
booking_key: z
|
|
103
|
+
booking_key: z
|
|
104
|
+
.string()
|
|
105
|
+
.min(1)
|
|
106
|
+
.refine((val) => val === val.trim(), {
|
|
107
|
+
message: 'Must not have leading or trailing whitespace',
|
|
108
|
+
})
|
|
109
|
+
.describe('Your unique identifier for the booking.'),
|
|
100
110
|
})
|
|
101
111
|
.merge(user_identity_reference)
|
|
102
112
|
.merge(location_references)
|
|
@@ -105,6 +115,10 @@ export const access_grant_resource = base_access_grant_resource
|
|
|
105
115
|
.extend({
|
|
106
116
|
access_grant_key: z
|
|
107
117
|
.string()
|
|
118
|
+
.min(1)
|
|
119
|
+
.refine((val) => val === val.trim(), {
|
|
120
|
+
message: 'Must not have leading or trailing whitespace',
|
|
121
|
+
})
|
|
108
122
|
.describe('Your unique identifier for the access grant.'),
|
|
109
123
|
})
|
|
110
124
|
.merge(user_identity_reference)
|
|
@@ -27,7 +27,13 @@ import {
|
|
|
27
27
|
} from './user-identity-resources.js'
|
|
28
28
|
|
|
29
29
|
export const customer_data = z.object({
|
|
30
|
-
customer_key: z
|
|
30
|
+
customer_key: z
|
|
31
|
+
.string()
|
|
32
|
+
.min(1)
|
|
33
|
+
.refine((val) => val === val.trim(), {
|
|
34
|
+
message: 'Must not have leading or trailing whitespace',
|
|
35
|
+
})
|
|
36
|
+
.describe('Your unique identifier for the customer.'),
|
|
31
37
|
|
|
32
38
|
// Location resources
|
|
33
39
|
spaces: z
|
|
@@ -7,17 +7,39 @@ const base_location_resource = z.object({
|
|
|
7
7
|
|
|
8
8
|
// Location resource types with their key aliases
|
|
9
9
|
export const neutral_resource = base_location_resource.extend({
|
|
10
|
-
space_key: z
|
|
10
|
+
space_key: z
|
|
11
|
+
.string()
|
|
12
|
+
.min(1)
|
|
13
|
+
.refine((val) => val === val.trim(), {
|
|
14
|
+
message: 'Must not have leading or trailing whitespace',
|
|
15
|
+
})
|
|
16
|
+
.describe('Your unique identifier for the space.'),
|
|
11
17
|
})
|
|
12
18
|
|
|
13
19
|
export const property_resource = base_location_resource.extend({
|
|
14
|
-
property_key: z
|
|
20
|
+
property_key: z
|
|
21
|
+
.string()
|
|
22
|
+
.min(1)
|
|
23
|
+
.refine((val) => val === val.trim(), {
|
|
24
|
+
message: 'Must not have leading or trailing whitespace',
|
|
25
|
+
})
|
|
26
|
+
.describe('Your unique identifier for the property.'),
|
|
15
27
|
})
|
|
16
28
|
|
|
17
29
|
export const room_resource = base_location_resource.extend({
|
|
18
|
-
room_key: z
|
|
30
|
+
room_key: z
|
|
31
|
+
.string()
|
|
32
|
+
.min(1)
|
|
33
|
+
.refine((val) => val === val.trim(), {
|
|
34
|
+
message: 'Must not have leading or trailing whitespace',
|
|
35
|
+
})
|
|
36
|
+
.describe('Your unique identifier for the room.'),
|
|
19
37
|
parent_site_key: z
|
|
20
38
|
.string()
|
|
39
|
+
.min(1)
|
|
40
|
+
.refine((val) => val === val.trim(), {
|
|
41
|
+
message: 'Must not have leading or trailing whitespace',
|
|
42
|
+
})
|
|
21
43
|
.optional()
|
|
22
44
|
.describe('Your unique identifier for the site.'),
|
|
23
45
|
})
|
|
@@ -25,41 +47,87 @@ export const room_resource = base_location_resource.extend({
|
|
|
25
47
|
export const common_area_resource = base_location_resource.extend({
|
|
26
48
|
common_area_key: z
|
|
27
49
|
.string()
|
|
50
|
+
.min(1)
|
|
51
|
+
.refine((val) => val === val.trim(), {
|
|
52
|
+
message: 'Must not have leading or trailing whitespace',
|
|
53
|
+
})
|
|
28
54
|
.describe('Your unique identifier for the common area.'),
|
|
29
55
|
parent_site_key: z
|
|
30
56
|
.string()
|
|
57
|
+
.min(1)
|
|
58
|
+
.refine((val) => val === val.trim(), {
|
|
59
|
+
message: 'Must not have leading or trailing whitespace',
|
|
60
|
+
})
|
|
31
61
|
.optional()
|
|
32
62
|
.describe('Your unique identifier for the site.'),
|
|
33
63
|
})
|
|
34
64
|
|
|
35
65
|
export const unit_resource = base_location_resource.extend({
|
|
36
|
-
unit_key: z
|
|
66
|
+
unit_key: z
|
|
67
|
+
.string()
|
|
68
|
+
.min(1)
|
|
69
|
+
.refine((val) => val === val.trim(), {
|
|
70
|
+
message: 'Must not have leading or trailing whitespace',
|
|
71
|
+
})
|
|
72
|
+
.describe('Your unique identifier for the unit.'),
|
|
37
73
|
parent_site_key: z
|
|
38
74
|
.string()
|
|
75
|
+
.min(1)
|
|
76
|
+
.refine((val) => val === val.trim(), {
|
|
77
|
+
message: 'Must not have leading or trailing whitespace',
|
|
78
|
+
})
|
|
39
79
|
.optional()
|
|
40
80
|
.describe('Your unique identifier for the site.'),
|
|
41
81
|
})
|
|
42
82
|
|
|
43
83
|
export const facility_resource = base_location_resource.extend({
|
|
44
|
-
facility_key: z
|
|
84
|
+
facility_key: z
|
|
85
|
+
.string()
|
|
86
|
+
.min(1)
|
|
87
|
+
.refine((val) => val === val.trim(), {
|
|
88
|
+
message: 'Must not have leading or trailing whitespace',
|
|
89
|
+
})
|
|
90
|
+
.describe('Your unique identifier for the facility.'),
|
|
45
91
|
})
|
|
46
92
|
|
|
47
93
|
export const building_resource = base_location_resource.extend({
|
|
48
|
-
building_key: z
|
|
94
|
+
building_key: z
|
|
95
|
+
.string()
|
|
96
|
+
.min(1)
|
|
97
|
+
.refine((val) => val === val.trim(), {
|
|
98
|
+
message: 'Must not have leading or trailing whitespace',
|
|
99
|
+
})
|
|
100
|
+
.describe('Your unique identifier for the building.'),
|
|
49
101
|
})
|
|
50
102
|
|
|
51
103
|
export const listing_resource = base_location_resource.extend({
|
|
52
|
-
listing_key: z
|
|
104
|
+
listing_key: z
|
|
105
|
+
.string()
|
|
106
|
+
.min(1)
|
|
107
|
+
.refine((val) => val === val.trim(), {
|
|
108
|
+
message: 'Must not have leading or trailing whitespace',
|
|
109
|
+
})
|
|
110
|
+
.describe('Your unique identifier for the listing.'),
|
|
53
111
|
})
|
|
54
112
|
|
|
55
113
|
export const property_listing_resource = base_location_resource.extend({
|
|
56
114
|
property_listing_key: z
|
|
57
115
|
.string()
|
|
116
|
+
.min(1)
|
|
117
|
+
.refine((val) => val === val.trim(), {
|
|
118
|
+
message: 'Must not have leading or trailing whitespace',
|
|
119
|
+
})
|
|
58
120
|
.describe('Your unique identifier for the property listing.'),
|
|
59
121
|
})
|
|
60
122
|
|
|
61
123
|
export const site_resource = base_location_resource.extend({
|
|
62
|
-
site_key: z
|
|
124
|
+
site_key: z
|
|
125
|
+
.string()
|
|
126
|
+
.min(1)
|
|
127
|
+
.refine((val) => val === val.trim(), {
|
|
128
|
+
message: 'Must not have leading or trailing whitespace',
|
|
129
|
+
})
|
|
130
|
+
.describe('Your unique identifier for the site.'),
|
|
63
131
|
})
|
|
64
132
|
|
|
65
133
|
// Union of all location resource types
|
|
@@ -17,19 +17,43 @@ const base_user_identity_resource = z.object({
|
|
|
17
17
|
|
|
18
18
|
// User identity resource types with their key aliases
|
|
19
19
|
export const guest_resource = base_user_identity_resource.extend({
|
|
20
|
-
guest_key: z
|
|
20
|
+
guest_key: z
|
|
21
|
+
.string()
|
|
22
|
+
.min(1)
|
|
23
|
+
.refine((val) => val === val.trim(), {
|
|
24
|
+
message: 'Must not have leading or trailing whitespace',
|
|
25
|
+
})
|
|
26
|
+
.describe('Your unique identifier for the guest.'),
|
|
21
27
|
})
|
|
22
28
|
|
|
23
29
|
export const tenant_resource = base_user_identity_resource.extend({
|
|
24
|
-
tenant_key: z
|
|
30
|
+
tenant_key: z
|
|
31
|
+
.string()
|
|
32
|
+
.min(1)
|
|
33
|
+
.refine((val) => val === val.trim(), {
|
|
34
|
+
message: 'Must not have leading or trailing whitespace',
|
|
35
|
+
})
|
|
36
|
+
.describe('Your unique identifier for the tenant.'),
|
|
25
37
|
})
|
|
26
38
|
|
|
27
39
|
export const resident_resource = base_user_identity_resource.extend({
|
|
28
|
-
resident_key: z
|
|
40
|
+
resident_key: z
|
|
41
|
+
.string()
|
|
42
|
+
.min(1)
|
|
43
|
+
.refine((val) => val === val.trim(), {
|
|
44
|
+
message: 'Must not have leading or trailing whitespace',
|
|
45
|
+
})
|
|
46
|
+
.describe('Your unique identifier for the resident.'),
|
|
29
47
|
})
|
|
30
48
|
|
|
31
49
|
export const user_resource = base_user_identity_resource.extend({
|
|
32
|
-
user_key: z
|
|
50
|
+
user_key: z
|
|
51
|
+
.string()
|
|
52
|
+
.min(1)
|
|
53
|
+
.refine((val) => val === val.trim(), {
|
|
54
|
+
message: 'Must not have leading or trailing whitespace',
|
|
55
|
+
})
|
|
56
|
+
.describe('Your unique identifier for the user.'),
|
|
33
57
|
})
|
|
34
58
|
|
|
35
59
|
// staff resource
|
|
@@ -52,6 +76,10 @@ export const staff_member_resource = base_user_identity_resource.extend({
|
|
|
52
76
|
export const user_identity_resource = base_user_identity_resource.extend({
|
|
53
77
|
user_identity_key: z
|
|
54
78
|
.string()
|
|
79
|
+
.min(1)
|
|
80
|
+
.refine((val) => val === val.trim(), {
|
|
81
|
+
message: 'Must not have leading or trailing whitespace',
|
|
82
|
+
})
|
|
55
83
|
.describe('Your unique identifier for the user identity.'),
|
|
56
84
|
})
|
|
57
85
|
|