@seamapi/types 1.898.0 → 1.899.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 +275 -1
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +227 -9
- package/dist/index.cjs +275 -1
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/customer/customer-data.d.ts +132 -0
- package/lib/seam/connect/models/customer/location-resources.d.ts +92 -0
- package/lib/seam/connect/models/customer/location-resources.js +7 -0
- package/lib/seam/connect/models/customer/location-resources.js.map +1 -1
- package/lib/seam/connect/models/spaces/space.d.ts +36 -0
- package/lib/seam/connect/models/spaces/space.js +12 -0
- package/lib/seam/connect/models/spaces/space.js.map +1 -1
- package/lib/seam/connect/openapi.js +268 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +204 -9
- package/package.json +1 -1
- package/src/lib/seam/connect/models/customer/location-resources.ts +9 -0
- package/src/lib/seam/connect/models/spaces/space.ts +13 -0
- package/src/lib/seam/connect/openapi.ts +313 -0
- package/src/lib/seam/connect/route-types.ts +237 -0
|
@@ -13228,7 +13228,16 @@ export type Routes = {
|
|
|
13228
13228
|
default_checkin_time?: (string | null) | undefined;
|
|
13229
13229
|
/** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */
|
|
13230
13230
|
default_checkout_time?: (string | null) | undefined;
|
|
13231
|
+
/** Postal address for the space. */
|
|
13232
|
+
address?: (string | null) | undefined;
|
|
13231
13233
|
} | undefined;
|
|
13234
|
+
/** Geographic coordinates (latitude and longitude) of the space. */
|
|
13235
|
+
geolocation?: ({
|
|
13236
|
+
/** Latitude of the space, in decimal degrees. */
|
|
13237
|
+
latitude: number;
|
|
13238
|
+
/** Longitude of the space, in decimal degrees. */
|
|
13239
|
+
longitude: number;
|
|
13240
|
+
} | null) | undefined;
|
|
13232
13241
|
/** */
|
|
13233
13242
|
parent_space_id?: string | undefined;
|
|
13234
13243
|
/** */
|
|
@@ -19818,7 +19827,16 @@ export type Routes = {
|
|
|
19818
19827
|
default_checkin_time?: (string | null) | undefined;
|
|
19819
19828
|
/** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */
|
|
19820
19829
|
default_checkout_time?: (string | null) | undefined;
|
|
19830
|
+
/** Postal address for the space. */
|
|
19831
|
+
address?: (string | null) | undefined;
|
|
19821
19832
|
} | undefined;
|
|
19833
|
+
/** Geographic coordinates (latitude and longitude) of the space. */
|
|
19834
|
+
geolocation?: ({
|
|
19835
|
+
/** Latitude of the space, in decimal degrees. */
|
|
19836
|
+
latitude: number;
|
|
19837
|
+
/** Longitude of the space, in decimal degrees. */
|
|
19838
|
+
longitude: number;
|
|
19839
|
+
} | null) | undefined;
|
|
19822
19840
|
/** */
|
|
19823
19841
|
parent_space_id?: string | undefined;
|
|
19824
19842
|
/** */
|
|
@@ -41331,6 +41349,24 @@ export type Routes = {
|
|
|
41331
41349
|
parent_site_key?: string | undefined;
|
|
41332
41350
|
/** Default duration of this space in minutes, when the space represents a fixed-length bookable slot (e.g. an appointment type). Used to interpret reservations booked against this space. */
|
|
41333
41351
|
duration_minutes?: number | undefined;
|
|
41352
|
+
/** Reservation/stay-related defaults for the space (time zone, default check-in/out times, address). */
|
|
41353
|
+
customer_data?: {
|
|
41354
|
+
/** IANA time zone for the space, e.g. America/Los_Angeles. */
|
|
41355
|
+
time_zone?: (string | null) | undefined;
|
|
41356
|
+
/** Default check-in time for reservations at the space, as HH:mm or HH:mm:ss. */
|
|
41357
|
+
default_checkin_time?: (string | null) | undefined;
|
|
41358
|
+
/** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */
|
|
41359
|
+
default_checkout_time?: (string | null) | undefined;
|
|
41360
|
+
/** Postal address for the space. */
|
|
41361
|
+
address?: (string | null) | undefined;
|
|
41362
|
+
} | undefined;
|
|
41363
|
+
/** Geographic coordinates (latitude and longitude) of the space. */
|
|
41364
|
+
geolocation?: {
|
|
41365
|
+
/** Latitude of the space, in decimal degrees. */
|
|
41366
|
+
latitude: number;
|
|
41367
|
+
/** Longitude of the space, in decimal degrees. */
|
|
41368
|
+
longitude: number;
|
|
41369
|
+
} | undefined;
|
|
41334
41370
|
}[] | undefined;
|
|
41335
41371
|
/** List of general sites or areas. */
|
|
41336
41372
|
sites?: {
|
|
@@ -41720,6 +41756,24 @@ export type Routes = {
|
|
|
41720
41756
|
parent_site_key?: string | undefined;
|
|
41721
41757
|
/** Default duration of this space in minutes, when the space represents a fixed-length bookable slot (e.g. an appointment type). Used to interpret reservations booked against this space. */
|
|
41722
41758
|
duration_minutes?: number | undefined;
|
|
41759
|
+
/** Reservation/stay-related defaults for the space (time zone, default check-in/out times, address). */
|
|
41760
|
+
customer_data?: {
|
|
41761
|
+
/** IANA time zone for the space, e.g. America/Los_Angeles. */
|
|
41762
|
+
time_zone?: (string | null) | undefined;
|
|
41763
|
+
/** Default check-in time for reservations at the space, as HH:mm or HH:mm:ss. */
|
|
41764
|
+
default_checkin_time?: (string | null) | undefined;
|
|
41765
|
+
/** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */
|
|
41766
|
+
default_checkout_time?: (string | null) | undefined;
|
|
41767
|
+
/** Postal address for the space. */
|
|
41768
|
+
address?: (string | null) | undefined;
|
|
41769
|
+
} | undefined;
|
|
41770
|
+
/** Geographic coordinates (latitude and longitude) of the space. */
|
|
41771
|
+
geolocation?: {
|
|
41772
|
+
/** Latitude of the space, in decimal degrees. */
|
|
41773
|
+
latitude: number;
|
|
41774
|
+
/** Longitude of the space, in decimal degrees. */
|
|
41775
|
+
longitude: number;
|
|
41776
|
+
} | undefined;
|
|
41723
41777
|
}[] | undefined;
|
|
41724
41778
|
/** List of general sites or areas. */
|
|
41725
41779
|
sites?: {
|
|
@@ -74416,7 +74470,16 @@ export type Routes = {
|
|
|
74416
74470
|
default_checkin_time?: (string | null) | undefined;
|
|
74417
74471
|
/** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */
|
|
74418
74472
|
default_checkout_time?: (string | null) | undefined;
|
|
74419
|
-
|
|
74473
|
+
/** Postal address for the space. */
|
|
74474
|
+
address?: (string | null) | undefined;
|
|
74475
|
+
} | undefined;
|
|
74476
|
+
/** Geographic coordinates (latitude and longitude) of the space. */
|
|
74477
|
+
geolocation?: ({
|
|
74478
|
+
/** Latitude of the space, in decimal degrees. */
|
|
74479
|
+
latitude: number;
|
|
74480
|
+
/** Longitude of the space, in decimal degrees. */
|
|
74481
|
+
longitude: number;
|
|
74482
|
+
} | null) | undefined;
|
|
74420
74483
|
/** */
|
|
74421
74484
|
parent_space_id?: string | undefined;
|
|
74422
74485
|
/** */
|
|
@@ -74476,7 +74539,16 @@ export type Routes = {
|
|
|
74476
74539
|
default_checkin_time?: (string | null) | undefined;
|
|
74477
74540
|
/** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */
|
|
74478
74541
|
default_checkout_time?: (string | null) | undefined;
|
|
74479
|
-
|
|
74542
|
+
/** Postal address for the space. */
|
|
74543
|
+
address?: (string | null) | undefined;
|
|
74544
|
+
} | undefined;
|
|
74545
|
+
/** Geographic coordinates (latitude and longitude) of the space. */
|
|
74546
|
+
geolocation?: ({
|
|
74547
|
+
/** Latitude of the space, in decimal degrees. */
|
|
74548
|
+
latitude: number;
|
|
74549
|
+
/** Longitude of the space, in decimal degrees. */
|
|
74550
|
+
longitude: number;
|
|
74551
|
+
} | null) | undefined;
|
|
74480
74552
|
/** */
|
|
74481
74553
|
parent_space_id?: string | undefined;
|
|
74482
74554
|
/** */
|
|
@@ -74528,7 +74600,16 @@ export type Routes = {
|
|
|
74528
74600
|
default_checkin_time?: (string | null) | undefined;
|
|
74529
74601
|
/** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */
|
|
74530
74602
|
default_checkout_time?: (string | null) | undefined;
|
|
74531
|
-
|
|
74603
|
+
/** Postal address for the space. */
|
|
74604
|
+
address?: (string | null) | undefined;
|
|
74605
|
+
} | undefined;
|
|
74606
|
+
/** Geographic coordinates (latitude and longitude) of the space. */
|
|
74607
|
+
geolocation?: ({
|
|
74608
|
+
/** Latitude of the space, in decimal degrees. */
|
|
74609
|
+
latitude: number;
|
|
74610
|
+
/** Longitude of the space, in decimal degrees. */
|
|
74611
|
+
longitude: number;
|
|
74612
|
+
} | null) | undefined;
|
|
74532
74613
|
/** */
|
|
74533
74614
|
parent_space_id?: string | undefined;
|
|
74534
74615
|
/** */
|
|
@@ -80920,6 +81001,8 @@ export type Routes = {
|
|
|
80920
81001
|
default_checkin_time?: (string | null) | undefined;
|
|
80921
81002
|
/** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */
|
|
80922
81003
|
default_checkout_time?: (string | null) | undefined;
|
|
81004
|
+
/** Postal address for the space. */
|
|
81005
|
+
address?: (string | null) | undefined;
|
|
80923
81006
|
} | undefined;
|
|
80924
81007
|
/** Space key of the parent space for this space. */
|
|
80925
81008
|
parent_space_key?: string | undefined;
|
|
@@ -80957,7 +81040,16 @@ export type Routes = {
|
|
|
80957
81040
|
default_checkin_time?: (string | null) | undefined;
|
|
80958
81041
|
/** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */
|
|
80959
81042
|
default_checkout_time?: (string | null) | undefined;
|
|
80960
|
-
|
|
81043
|
+
/** Postal address for the space. */
|
|
81044
|
+
address?: (string | null) | undefined;
|
|
81045
|
+
} | undefined;
|
|
81046
|
+
/** Geographic coordinates (latitude and longitude) of the space. */
|
|
81047
|
+
geolocation?: ({
|
|
81048
|
+
/** Latitude of the space, in decimal degrees. */
|
|
81049
|
+
latitude: number;
|
|
81050
|
+
/** Longitude of the space, in decimal degrees. */
|
|
81051
|
+
longitude: number;
|
|
81052
|
+
} | null) | undefined;
|
|
80961
81053
|
/** */
|
|
80962
81054
|
parent_space_id?: string | undefined;
|
|
80963
81055
|
/** */
|
|
@@ -81012,7 +81104,16 @@ export type Routes = {
|
|
|
81012
81104
|
default_checkin_time?: (string | null) | undefined;
|
|
81013
81105
|
/** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */
|
|
81014
81106
|
default_checkout_time?: (string | null) | undefined;
|
|
81015
|
-
|
|
81107
|
+
/** Postal address for the space. */
|
|
81108
|
+
address?: (string | null) | undefined;
|
|
81109
|
+
} | undefined;
|
|
81110
|
+
/** Geographic coordinates (latitude and longitude) of the space. */
|
|
81111
|
+
geolocation?: ({
|
|
81112
|
+
/** Latitude of the space, in decimal degrees. */
|
|
81113
|
+
latitude: number;
|
|
81114
|
+
/** Longitude of the space, in decimal degrees. */
|
|
81115
|
+
longitude: number;
|
|
81116
|
+
} | null) | undefined;
|
|
81016
81117
|
/** */
|
|
81017
81118
|
parent_space_id?: string | undefined;
|
|
81018
81119
|
/** */
|
|
@@ -82111,6 +82212,8 @@ export type Routes = {
|
|
|
82111
82212
|
default_checkin_time?: (string | null) | undefined;
|
|
82112
82213
|
/** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */
|
|
82113
82214
|
default_checkout_time?: (string | null) | undefined;
|
|
82215
|
+
/** Postal address for the space. */
|
|
82216
|
+
address?: (string | null) | undefined;
|
|
82114
82217
|
} | undefined;
|
|
82115
82218
|
};
|
|
82116
82219
|
commonParams: {};
|
|
@@ -82144,7 +82247,16 @@ export type Routes = {
|
|
|
82144
82247
|
default_checkin_time?: (string | null) | undefined;
|
|
82145
82248
|
/** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */
|
|
82146
82249
|
default_checkout_time?: (string | null) | undefined;
|
|
82147
|
-
|
|
82250
|
+
/** Postal address for the space. */
|
|
82251
|
+
address?: (string | null) | undefined;
|
|
82252
|
+
} | undefined;
|
|
82253
|
+
/** Geographic coordinates (latitude and longitude) of the space. */
|
|
82254
|
+
geolocation?: ({
|
|
82255
|
+
/** Latitude of the space, in decimal degrees. */
|
|
82256
|
+
latitude: number;
|
|
82257
|
+
/** Longitude of the space, in decimal degrees. */
|
|
82258
|
+
longitude: number;
|
|
82259
|
+
} | null) | undefined;
|
|
82148
82260
|
/** */
|
|
82149
82261
|
parent_space_id?: string | undefined;
|
|
82150
82262
|
/** */
|
|
@@ -82208,7 +82320,16 @@ export type Routes = {
|
|
|
82208
82320
|
default_checkin_time?: (string | null) | undefined;
|
|
82209
82321
|
/** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */
|
|
82210
82322
|
default_checkout_time?: (string | null) | undefined;
|
|
82211
|
-
|
|
82323
|
+
/** Postal address for the space. */
|
|
82324
|
+
address?: (string | null) | undefined;
|
|
82325
|
+
} | undefined;
|
|
82326
|
+
/** Geographic coordinates (latitude and longitude) of the space. */
|
|
82327
|
+
geolocation?: ({
|
|
82328
|
+
/** Latitude of the space, in decimal degrees. */
|
|
82329
|
+
latitude: number;
|
|
82330
|
+
/** Longitude of the space, in decimal degrees. */
|
|
82331
|
+
longitude: number;
|
|
82332
|
+
} | null) | undefined;
|
|
82212
82333
|
/** */
|
|
82213
82334
|
parent_space_id?: string | undefined;
|
|
82214
82335
|
/** */
|
|
@@ -82261,7 +82382,16 @@ export type Routes = {
|
|
|
82261
82382
|
default_checkin_time?: (string | null) | undefined;
|
|
82262
82383
|
/** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */
|
|
82263
82384
|
default_checkout_time?: (string | null) | undefined;
|
|
82385
|
+
/** Postal address for the space. */
|
|
82386
|
+
address?: (string | null) | undefined;
|
|
82264
82387
|
} | undefined;
|
|
82388
|
+
/** Geographic coordinates (latitude and longitude) of the space. */
|
|
82389
|
+
geolocation?: ({
|
|
82390
|
+
/** Latitude of the space, in decimal degrees. */
|
|
82391
|
+
latitude: number;
|
|
82392
|
+
/** Longitude of the space, in decimal degrees. */
|
|
82393
|
+
longitude: number;
|
|
82394
|
+
} | null) | undefined;
|
|
82265
82395
|
/** */
|
|
82266
82396
|
parent_space_id?: string | undefined;
|
|
82267
82397
|
/** */
|
|
@@ -84300,7 +84430,16 @@ export type Routes = {
|
|
|
84300
84430
|
default_checkin_time?: (string | null) | undefined;
|
|
84301
84431
|
/** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */
|
|
84302
84432
|
default_checkout_time?: (string | null) | undefined;
|
|
84303
|
-
|
|
84433
|
+
/** Postal address for the space. */
|
|
84434
|
+
address?: (string | null) | undefined;
|
|
84435
|
+
} | undefined;
|
|
84436
|
+
/** Geographic coordinates (latitude and longitude) of the space. */
|
|
84437
|
+
geolocation?: ({
|
|
84438
|
+
/** Latitude of the space, in decimal degrees. */
|
|
84439
|
+
latitude: number;
|
|
84440
|
+
/** Longitude of the space, in decimal degrees. */
|
|
84441
|
+
longitude: number;
|
|
84442
|
+
} | null) | undefined;
|
|
84304
84443
|
/** */
|
|
84305
84444
|
parent_space_id?: string | undefined;
|
|
84306
84445
|
/** */
|
|
@@ -84386,6 +84525,8 @@ export type Routes = {
|
|
|
84386
84525
|
default_checkin_time?: (string | null) | undefined;
|
|
84387
84526
|
/** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */
|
|
84388
84527
|
default_checkout_time?: (string | null) | undefined;
|
|
84528
|
+
/** Postal address for the space. */
|
|
84529
|
+
address?: (string | null) | undefined;
|
|
84389
84530
|
} | undefined;
|
|
84390
84531
|
/** Reassign this space to the parent space (site) with this `parent_space_id`. */
|
|
84391
84532
|
parent_space_id?: string | undefined;
|
|
@@ -84423,7 +84564,16 @@ export type Routes = {
|
|
|
84423
84564
|
default_checkin_time?: (string | null) | undefined;
|
|
84424
84565
|
/** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */
|
|
84425
84566
|
default_checkout_time?: (string | null) | undefined;
|
|
84426
|
-
|
|
84567
|
+
/** Postal address for the space. */
|
|
84568
|
+
address?: (string | null) | undefined;
|
|
84569
|
+
} | undefined;
|
|
84570
|
+
/** Geographic coordinates (latitude and longitude) of the space. */
|
|
84571
|
+
geolocation?: ({
|
|
84572
|
+
/** Latitude of the space, in decimal degrees. */
|
|
84573
|
+
latitude: number;
|
|
84574
|
+
/** Longitude of the space, in decimal degrees. */
|
|
84575
|
+
longitude: number;
|
|
84576
|
+
} | null) | undefined;
|
|
84427
84577
|
/** */
|
|
84428
84578
|
parent_space_id?: string | undefined;
|
|
84429
84579
|
/** */
|
|
@@ -104239,6 +104389,24 @@ export type Routes = {
|
|
|
104239
104389
|
parent_site_key?: string | undefined;
|
|
104240
104390
|
/** Default duration of this space in minutes, when the space represents a fixed-length bookable slot (e.g. an appointment type). Used to interpret reservations booked against this space. */
|
|
104241
104391
|
duration_minutes?: number | undefined;
|
|
104392
|
+
/** Reservation/stay-related defaults for the space (time zone, default check-in/out times, address). */
|
|
104393
|
+
customer_data?: {
|
|
104394
|
+
/** IANA time zone for the space, e.g. America/Los_Angeles. */
|
|
104395
|
+
time_zone?: (string | null) | undefined;
|
|
104396
|
+
/** Default check-in time for reservations at the space, as HH:mm or HH:mm:ss. */
|
|
104397
|
+
default_checkin_time?: (string | null) | undefined;
|
|
104398
|
+
/** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */
|
|
104399
|
+
default_checkout_time?: (string | null) | undefined;
|
|
104400
|
+
/** Postal address for the space. */
|
|
104401
|
+
address?: (string | null) | undefined;
|
|
104402
|
+
} | undefined;
|
|
104403
|
+
/** Geographic coordinates (latitude and longitude) of the space. */
|
|
104404
|
+
geolocation?: {
|
|
104405
|
+
/** Latitude of the space, in decimal degrees. */
|
|
104406
|
+
latitude: number;
|
|
104407
|
+
/** Longitude of the space, in decimal degrees. */
|
|
104408
|
+
longitude: number;
|
|
104409
|
+
} | undefined;
|
|
104242
104410
|
}[] | undefined;
|
|
104243
104411
|
};
|
|
104244
104412
|
formData: {};
|
|
@@ -104312,6 +104480,24 @@ export type Routes = {
|
|
|
104312
104480
|
parent_site_key?: string | undefined;
|
|
104313
104481
|
/** Default duration of this space in minutes, when the space represents a fixed-length bookable slot (e.g. an appointment type). Used to interpret reservations booked against this space. */
|
|
104314
104482
|
duration_minutes?: number | undefined;
|
|
104483
|
+
/** Reservation/stay-related defaults for the space (time zone, default check-in/out times, address). */
|
|
104484
|
+
customer_data?: {
|
|
104485
|
+
/** IANA time zone for the space, e.g. America/Los_Angeles. */
|
|
104486
|
+
time_zone?: (string | null) | undefined;
|
|
104487
|
+
/** Default check-in time for reservations at the space, as HH:mm or HH:mm:ss. */
|
|
104488
|
+
default_checkin_time?: (string | null) | undefined;
|
|
104489
|
+
/** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */
|
|
104490
|
+
default_checkout_time?: (string | null) | undefined;
|
|
104491
|
+
/** Postal address for the space. */
|
|
104492
|
+
address?: (string | null) | undefined;
|
|
104493
|
+
} | undefined;
|
|
104494
|
+
/** Geographic coordinates (latitude and longitude) of the space. */
|
|
104495
|
+
geolocation?: {
|
|
104496
|
+
/** Latitude of the space, in decimal degrees. */
|
|
104497
|
+
latitude: number;
|
|
104498
|
+
/** Longitude of the space, in decimal degrees. */
|
|
104499
|
+
longitude: number;
|
|
104500
|
+
} | undefined;
|
|
104315
104501
|
}[] | undefined;
|
|
104316
104502
|
};
|
|
104317
104503
|
formData: {};
|
|
@@ -113459,7 +113645,16 @@ export type Routes = {
|
|
|
113459
113645
|
default_checkin_time?: (string | null) | undefined;
|
|
113460
113646
|
/** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */
|
|
113461
113647
|
default_checkout_time?: (string | null) | undefined;
|
|
113648
|
+
/** Postal address for the space. */
|
|
113649
|
+
address?: (string | null) | undefined;
|
|
113462
113650
|
} | undefined;
|
|
113651
|
+
/** Geographic coordinates (latitude and longitude) of the space. */
|
|
113652
|
+
geolocation?: ({
|
|
113653
|
+
/** Latitude of the space, in decimal degrees. */
|
|
113654
|
+
latitude: number;
|
|
113655
|
+
/** Longitude of the space, in decimal degrees. */
|
|
113656
|
+
longitude: number;
|
|
113657
|
+
} | null) | undefined;
|
|
113463
113658
|
/** */
|
|
113464
113659
|
parent_space_id?: string | undefined;
|
|
113465
113660
|
/** */
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
3
|
import { custom_metadata_input } from '../custom-metadata.js'
|
|
4
|
+
import { space_customer_data, space_geolocation } from '../spaces/space.js'
|
|
4
5
|
|
|
5
6
|
// Base location resource with common fields
|
|
6
7
|
const base_location_resource = z.object({
|
|
@@ -32,6 +33,14 @@ export const neutral_resource = base_location_resource.extend({
|
|
|
32
33
|
.describe(
|
|
33
34
|
'Default duration of this space in minutes, when the space represents a fixed-length bookable slot (e.g. an appointment type). Used to interpret reservations booked against this space.',
|
|
34
35
|
),
|
|
36
|
+
customer_data: space_customer_data
|
|
37
|
+
.optional()
|
|
38
|
+
.describe(
|
|
39
|
+
'Reservation/stay-related defaults for the space (time zone, default check-in/out times, address).',
|
|
40
|
+
),
|
|
41
|
+
geolocation: space_geolocation
|
|
42
|
+
.optional()
|
|
43
|
+
.describe('Geographic coordinates (latitude and longitude) of the space.'),
|
|
35
44
|
})
|
|
36
45
|
|
|
37
46
|
export const property_resource = base_location_resource.extend({
|
|
@@ -22,9 +22,19 @@ export const space_customer_data = z
|
|
|
22
22
|
.describe(
|
|
23
23
|
'Default check-out time for reservations at the space, as HH:mm or HH:mm:ss.',
|
|
24
24
|
),
|
|
25
|
+
address: z.string().nullish().describe('Postal address for the space.'),
|
|
25
26
|
})
|
|
26
27
|
.describe('Reservation/stay-related defaults for the space.')
|
|
27
28
|
|
|
29
|
+
export const space_geolocation = z
|
|
30
|
+
.object({
|
|
31
|
+
latitude: z.number().describe('Latitude of the space, in decimal degrees.'),
|
|
32
|
+
longitude: z
|
|
33
|
+
.number()
|
|
34
|
+
.describe('Longitude of the space, in decimal degrees.'),
|
|
35
|
+
})
|
|
36
|
+
.describe('Geographic coordinates of the space.')
|
|
37
|
+
|
|
28
38
|
export const space = z.object({
|
|
29
39
|
space_id: z.string().uuid().describe('ID of the space.'),
|
|
30
40
|
workspace_id: z
|
|
@@ -50,6 +60,9 @@ export const space = z.object({
|
|
|
50
60
|
.optional()
|
|
51
61
|
.describe('Customer key associated with the space.'),
|
|
52
62
|
customer_data: space_customer_data.optional(),
|
|
63
|
+
geolocation: space_geolocation
|
|
64
|
+
.nullish()
|
|
65
|
+
.describe('Geographic coordinates (latitude and longitude) of the space.'),
|
|
53
66
|
parent_space_id: z.string().uuid().optional().describe(`
|
|
54
67
|
---
|
|
55
68
|
undocumented: Only used internally.
|