@seamapi/types 1.564.0 → 1.566.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.
@@ -31200,6 +31200,8 @@ export type Routes = {
31200
31200
  connect?: {
31201
31201
  /** Whether to exclude this feature from the portal. */
31202
31202
  exclude?: boolean;
31203
+ /** List of provider keys to exclude from the connect feature. These providers will not be shown when the customer tries to connect an account. */
31204
+ excluded_providers?: string[] | undefined;
31203
31205
  };
31204
31206
  /** Configuration for the manage devices feature. */
31205
31207
  manage_devices?: {
@@ -31225,7 +31227,7 @@ export type Routes = {
31225
31227
  is_embedded?: boolean;
31226
31228
  /** Configuration for the landing page when the portal loads. */
31227
31229
  landing_page?: {
31228
- manage?: ({
31230
+ manage?: (({
31229
31231
  space_key: string;
31230
31232
  } | {
31231
31233
  property_key: string;
@@ -31243,7 +31245,13 @@ export type Routes = {
31243
31245
  listing_key: string;
31244
31246
  } | {
31245
31247
  property_listing_key: string;
31246
- }) | undefined;
31248
+ }) | ({
31249
+ reservation_key: string;
31250
+ } | {
31251
+ booking_key: string;
31252
+ } | {
31253
+ access_grant_key: string;
31254
+ })) | undefined;
31247
31255
  } | undefined;
31248
31256
  } & {
31249
31257
  customer_data?: {
@@ -58168,6 +58176,7 @@ export type Routes = {
58168
58176
  features?: {
58169
58177
  connect?: {
58170
58178
  exclude?: boolean | undefined;
58179
+ excluded_providers?: string[] | undefined;
58171
58180
  } | undefined;
58172
58181
  manage_devices?: {
58173
58182
  exclude?: boolean | undefined;
@@ -58183,7 +58192,7 @@ export type Routes = {
58183
58192
  } | undefined;
58184
58193
  is_embedded?: boolean | undefined;
58185
58194
  landing_page?: {
58186
- manage?: ({
58195
+ manage?: (({
58187
58196
  space_key: string;
58188
58197
  } | {
58189
58198
  property_key: string;
@@ -58201,7 +58210,13 @@ export type Routes = {
58201
58210
  listing_key: string;
58202
58211
  } | {
58203
58212
  property_listing_key: string;
58204
- }) | undefined;
58213
+ }) | ({
58214
+ reservation_key: string;
58215
+ } | {
58216
+ booking_key: string;
58217
+ } | {
58218
+ access_grant_key: string;
58219
+ })) | undefined;
58205
58220
  } | undefined;
58206
58221
  /** Business vertical of the customer portal. */
58207
58222
  business_vertical?: ('short_term_rental' | 'hospitality' | 'multi_family' | 'gym_management' | 'property_tours') | undefined;
@@ -58229,10 +58244,17 @@ export type Routes = {
58229
58244
  ends_at: string | null;
58230
58245
  created_at: string;
58231
58246
  guest_name: string | null;
58247
+ spaces: {
58248
+ space_id: string | null;
58249
+ space_key: string;
58250
+ name: string | null;
58251
+ }[];
58232
58252
  access_methods: {
58233
58253
  access_method_id: string;
58234
58254
  mode: string;
58235
58255
  is_issued: boolean;
58256
+ is_card_encoding_required?: boolean | undefined;
58257
+ code?: (string | null) | undefined;
58236
58258
  }[];
58237
58259
  };
58238
58260
  };
@@ -58269,6 +58291,11 @@ export type Routes = {
58269
58291
  mode: string;
58270
58292
  is_issued: boolean;
58271
58293
  }[];
58294
+ spaces: {
58295
+ space_id: string | null;
58296
+ space_key: string;
58297
+ name: string | null;
58298
+ }[];
58272
58299
  }[];
58273
58300
  /** Information about the current page of results. */
58274
58301
  pagination: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.564.0",
3
+ "version": "1.566.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -1,5 +1,6 @@
1
1
  import { z } from 'zod'
2
2
 
3
+ import { access_grant_key_aliases } from './access-grant-resources.js'
3
4
  import { location_key_aliases } from './location-resources.js'
4
5
 
5
6
  const base_feature = z.object({
@@ -9,7 +10,14 @@ const base_feature = z.object({
9
10
  .describe('Whether to exclude this feature from the portal.'),
10
11
  })
11
12
 
12
- const base_connect_feature = base_feature
13
+ const base_connect_feature = base_feature.extend({
14
+ excluded_providers: z
15
+ .array(z.string())
16
+ .optional()
17
+ .describe(
18
+ 'List of provider keys to exclude from the connect feature. These providers will not be shown when the customer tries to connect an account.',
19
+ ),
20
+ })
13
21
  const base_manage_devices_feature = base_feature
14
22
  const base_organize_feature = base_feature
15
23
 
@@ -52,7 +60,9 @@ export const portal_configuration = z
52
60
  .describe('Whether the portal is embedded in another application.'),
53
61
  landing_page: z
54
62
  .object({
55
- manage: location_key_aliases.optional(),
63
+ manage: z
64
+ .union([location_key_aliases, access_grant_key_aliases])
65
+ .optional(),
56
66
  })
57
67
  .optional()
58
68
  .describe('Configuration for the landing page when the portal loads.'),