@seamapi/types 1.1153.0 → 1.1154.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/lib/seam/connect/models/customer/access-grant-resources.d.ts +13 -0
- package/lib/seam/connect/models/customer/access-grant-resources.js +4 -0
- package/lib/seam/connect/models/customer/access-grant-resources.js.map +1 -1
- package/lib/seam/connect/models/customer/customer-data.d.ts +14 -0
- package/lib/seam/connect/openapi.js +30 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +12 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/customer/access-grant-resources.ts +6 -0
- package/src/lib/seam/connect/openapi.ts +36 -0
- package/src/lib/seam/connect/route-types.ts +12 -0
|
@@ -49092,6 +49092,8 @@ export type Routes = {
|
|
|
49092
49092
|
preferred_code?: (string | null) | undefined;
|
|
49093
49093
|
/** Your identifier for the sub-reservation. Must be unique within its reservation. */
|
|
49094
49094
|
sub_reservation_key: string;
|
|
49095
|
+
/** Whether this is the reservation's primary sub-reservation, for example the room the guest stays in. Only the primary sub-reservation passes the guest's phone number to access systems that require a phone number to be unique per user. At most one sub-reservation of a reservation can be primary. If none is, the first sub-reservation in the list is primary. */
|
|
49096
|
+
is_primary?: boolean | undefined;
|
|
49095
49097
|
/** Set key:value pairs for filtering sub-reservations by custom criteria. Merged over the reservation's custom metadata. Set a key to `null` or to an empty string to remove that key from the custom metadata. */
|
|
49096
49098
|
custom_metadata?: {
|
|
49097
49099
|
[x: string]: string | boolean | null;
|
|
@@ -49546,6 +49548,8 @@ export type Routes = {
|
|
|
49546
49548
|
preferred_code?: (string | null) | undefined;
|
|
49547
49549
|
/** Your identifier for the sub-reservation. Must be unique within its reservation. */
|
|
49548
49550
|
sub_reservation_key: string;
|
|
49551
|
+
/** Whether this is the reservation's primary sub-reservation, for example the room the guest stays in. Only the primary sub-reservation passes the guest's phone number to access systems that require a phone number to be unique per user. At most one sub-reservation of a reservation can be primary. If none is, the first sub-reservation in the list is primary. */
|
|
49552
|
+
is_primary?: boolean | undefined;
|
|
49549
49553
|
/** Set key:value pairs for filtering sub-reservations by custom criteria. Merged over the reservation's custom metadata. Set a key to `null` or to an empty string to remove that key from the custom metadata. */
|
|
49550
49554
|
custom_metadata?: {
|
|
49551
49555
|
[x: string]: string | boolean | null;
|
|
@@ -100265,10 +100269,14 @@ export type Routes = {
|
|
|
100265
100269
|
parent_reservation_id: string | null;
|
|
100266
100270
|
/** Key of the parent reservation when this reservation is a sub-reservation. Its `reservation_key` is then `<parent_reservation_key>::<sub-reservation key>`. Null otherwise. */
|
|
100267
100271
|
parent_reservation_key: string | null;
|
|
100272
|
+
/** Whether this sub-reservation is its reservation's primary one, the only one that passes the guest's phone number to access systems that require it to be unique per user. Null when this reservation is not a sub-reservation. */
|
|
100273
|
+
is_primary: boolean | null;
|
|
100268
100274
|
/** Parts of the reservation that each hold their own access, for example one per room. When present, the reservation's spaces are the union of its sub-reservations' spaces. */
|
|
100269
100275
|
sub_reservations: {
|
|
100270
100276
|
sub_reservation_id: string;
|
|
100271
100277
|
sub_reservation_key: string;
|
|
100278
|
+
/** Whether this is the reservation's primary sub-reservation, the only one that passes the guest's phone number to access systems that require it to be unique per user. */
|
|
100279
|
+
is_primary: boolean;
|
|
100272
100280
|
name: string | null;
|
|
100273
100281
|
starts_at: string | null;
|
|
100274
100282
|
ends_at: string | null;
|
|
@@ -100378,6 +100386,8 @@ export type Routes = {
|
|
|
100378
100386
|
sub_reservations: {
|
|
100379
100387
|
sub_reservation_id: string;
|
|
100380
100388
|
sub_reservation_key: string;
|
|
100389
|
+
/** Whether this is the reservation's primary sub-reservation, the only one that passes the guest's phone number to access systems that require it to be unique per user. */
|
|
100390
|
+
is_primary: boolean;
|
|
100381
100391
|
name: string | null;
|
|
100382
100392
|
starts_at: string | null;
|
|
100383
100393
|
ends_at: string | null;
|
|
@@ -100945,6 +100955,8 @@ export type Routes = {
|
|
|
100945
100955
|
parent_reservation_id: string | null;
|
|
100946
100956
|
/** Key of the parent reservation when this reservation is a sub-reservation. Its `reservation_key` is then `<parent_reservation_key>::<sub-reservation key>`. Null otherwise. */
|
|
100947
100957
|
parent_reservation_key: string | null;
|
|
100958
|
+
/** Whether this sub-reservation is its reservation's primary one, the only one that passes the guest's phone number to access systems that require it to be unique per user. Null when this reservation is not a sub-reservation. */
|
|
100959
|
+
is_primary: boolean | null;
|
|
100948
100960
|
}[];
|
|
100949
100961
|
};
|
|
100950
100962
|
maxDuration: undefined;
|
package/package.json
CHANGED
|
@@ -92,6 +92,12 @@ export const sub_reservation_resource = base_access_grant_resource
|
|
|
92
92
|
.describe(
|
|
93
93
|
'Your identifier for the sub-reservation. Must be unique within its reservation.',
|
|
94
94
|
),
|
|
95
|
+
is_primary: z
|
|
96
|
+
.boolean()
|
|
97
|
+
.optional()
|
|
98
|
+
.describe(
|
|
99
|
+
"Whether this is the reservation's primary sub-reservation, for example the room the guest stays in. Only the primary sub-reservation passes the guest's phone number to access systems that require a phone number to be unique per user. At most one sub-reservation of a reservation can be primary. If none is, the first sub-reservation in the list is primary.",
|
|
100
|
+
),
|
|
95
101
|
custom_metadata: custom_metadata_input
|
|
96
102
|
.optional()
|
|
97
103
|
.describe(
|
|
@@ -53735,6 +53735,11 @@ const openapi: OpenAPISpec = {
|
|
|
53735
53735
|
'Guest key associated with the access grant.',
|
|
53736
53736
|
type: 'string',
|
|
53737
53737
|
},
|
|
53738
|
+
is_primary: {
|
|
53739
|
+
description:
|
|
53740
|
+
"Whether this is the reservation's primary sub-reservation, for example the room the guest stays in. Only the primary sub-reservation passes the guest's phone number to access systems that require a phone number to be unique per user. At most one sub-reservation of a reservation can be primary. If none is, the first sub-reservation in the list is primary.",
|
|
53741
|
+
type: 'boolean',
|
|
53742
|
+
},
|
|
53738
53743
|
listing_keys: {
|
|
53739
53744
|
description:
|
|
53740
53745
|
'Listing keys associated with the access grant.',
|
|
@@ -55052,6 +55057,11 @@ const openapi: OpenAPISpec = {
|
|
|
55052
55057
|
'Guest key associated with the access grant.',
|
|
55053
55058
|
type: 'string',
|
|
55054
55059
|
},
|
|
55060
|
+
is_primary: {
|
|
55061
|
+
description:
|
|
55062
|
+
"Whether this is the reservation's primary sub-reservation, for example the room the guest stays in. Only the primary sub-reservation passes the guest's phone number to access systems that require a phone number to be unique per user. At most one sub-reservation of a reservation can be primary. If none is, the first sub-reservation in the list is primary.",
|
|
55063
|
+
type: 'boolean',
|
|
55064
|
+
},
|
|
55055
55065
|
listing_keys: {
|
|
55056
55066
|
description:
|
|
55057
55067
|
'Listing keys associated with the access grant.',
|
|
@@ -70039,6 +70049,12 @@ const openapi: OpenAPISpec = {
|
|
|
70039
70049
|
type: 'object',
|
|
70040
70050
|
},
|
|
70041
70051
|
guest_name: { nullable: true, type: 'string' },
|
|
70052
|
+
is_primary: {
|
|
70053
|
+
description:
|
|
70054
|
+
"Whether this sub-reservation is its reservation's primary one, the only one that passes the guest's phone number to access systems that require it to be unique per user. Null when this reservation is not a sub-reservation.",
|
|
70055
|
+
nullable: true,
|
|
70056
|
+
type: 'boolean',
|
|
70057
|
+
},
|
|
70042
70058
|
is_resource_syncing: { type: 'boolean' },
|
|
70043
70059
|
last_automation_result: {
|
|
70044
70060
|
nullable: true,
|
|
@@ -70140,6 +70156,11 @@ const openapi: OpenAPISpec = {
|
|
|
70140
70156
|
nullable: true,
|
|
70141
70157
|
type: 'string',
|
|
70142
70158
|
},
|
|
70159
|
+
is_primary: {
|
|
70160
|
+
description:
|
|
70161
|
+
"Whether this is the reservation's primary sub-reservation, the only one that passes the guest's phone number to access systems that require it to be unique per user.",
|
|
70162
|
+
type: 'boolean',
|
|
70163
|
+
},
|
|
70143
70164
|
is_resource_syncing: { type: 'boolean' },
|
|
70144
70165
|
name: { nullable: true, type: 'string' },
|
|
70145
70166
|
spaces: {
|
|
@@ -70172,6 +70193,7 @@ const openapi: OpenAPISpec = {
|
|
|
70172
70193
|
required: [
|
|
70173
70194
|
'sub_reservation_id',
|
|
70174
70195
|
'sub_reservation_key',
|
|
70196
|
+
'is_primary',
|
|
70175
70197
|
'name',
|
|
70176
70198
|
'starts_at',
|
|
70177
70199
|
'ends_at',
|
|
@@ -70202,6 +70224,7 @@ const openapi: OpenAPISpec = {
|
|
|
70202
70224
|
'last_automation_result',
|
|
70203
70225
|
'parent_reservation_id',
|
|
70204
70226
|
'parent_reservation_key',
|
|
70227
|
+
'is_primary',
|
|
70205
70228
|
'sub_reservations',
|
|
70206
70229
|
],
|
|
70207
70230
|
type: 'object',
|
|
@@ -70538,6 +70561,11 @@ const openapi: OpenAPISpec = {
|
|
|
70538
70561
|
nullable: true,
|
|
70539
70562
|
type: 'string',
|
|
70540
70563
|
},
|
|
70564
|
+
is_primary: {
|
|
70565
|
+
description:
|
|
70566
|
+
"Whether this is the reservation's primary sub-reservation, the only one that passes the guest's phone number to access systems that require it to be unique per user.",
|
|
70567
|
+
type: 'boolean',
|
|
70568
|
+
},
|
|
70541
70569
|
is_resource_syncing: { type: 'boolean' },
|
|
70542
70570
|
name: { nullable: true, type: 'string' },
|
|
70543
70571
|
spaces: {
|
|
@@ -70570,6 +70598,7 @@ const openapi: OpenAPISpec = {
|
|
|
70570
70598
|
required: [
|
|
70571
70599
|
'sub_reservation_id',
|
|
70572
70600
|
'sub_reservation_key',
|
|
70601
|
+
'is_primary',
|
|
70573
70602
|
'name',
|
|
70574
70603
|
'starts_at',
|
|
70575
70604
|
'ends_at',
|
|
@@ -71333,6 +71362,12 @@ const openapi: OpenAPISpec = {
|
|
|
71333
71362
|
},
|
|
71334
71363
|
guest_name: { nullable: true, type: 'string' },
|
|
71335
71364
|
has_issued_access: { type: 'boolean' },
|
|
71365
|
+
is_primary: {
|
|
71366
|
+
description:
|
|
71367
|
+
"Whether this sub-reservation is its reservation's primary one, the only one that passes the guest's phone number to access systems that require it to be unique per user. Null when this reservation is not a sub-reservation.",
|
|
71368
|
+
nullable: true,
|
|
71369
|
+
type: 'boolean',
|
|
71370
|
+
},
|
|
71336
71371
|
last_automation_result: {
|
|
71337
71372
|
nullable: true,
|
|
71338
71373
|
properties: {
|
|
@@ -71413,6 +71448,7 @@ const openapi: OpenAPISpec = {
|
|
|
71413
71448
|
'last_automation_result',
|
|
71414
71449
|
'parent_reservation_id',
|
|
71415
71450
|
'parent_reservation_key',
|
|
71451
|
+
'is_primary',
|
|
71416
71452
|
],
|
|
71417
71453
|
type: 'object',
|
|
71418
71454
|
},
|
|
@@ -57266,6 +57266,8 @@ export type Routes = {
|
|
|
57266
57266
|
preferred_code?: (string | null) | undefined
|
|
57267
57267
|
/** Your identifier for the sub-reservation. Must be unique within its reservation. */
|
|
57268
57268
|
sub_reservation_key: string
|
|
57269
|
+
/** Whether this is the reservation's primary sub-reservation, for example the room the guest stays in. Only the primary sub-reservation passes the guest's phone number to access systems that require a phone number to be unique per user. At most one sub-reservation of a reservation can be primary. If none is, the first sub-reservation in the list is primary. */
|
|
57270
|
+
is_primary?: boolean | undefined
|
|
57269
57271
|
/** Set key:value pairs for filtering sub-reservations by custom criteria. Merged over the reservation's custom metadata. Set a key to `null` or to an empty string to remove that key from the custom metadata. */
|
|
57270
57272
|
custom_metadata?:
|
|
57271
57273
|
| {
|
|
@@ -57771,6 +57773,8 @@ export type Routes = {
|
|
|
57771
57773
|
preferred_code?: (string | null) | undefined
|
|
57772
57774
|
/** Your identifier for the sub-reservation. Must be unique within its reservation. */
|
|
57773
57775
|
sub_reservation_key: string
|
|
57776
|
+
/** Whether this is the reservation's primary sub-reservation, for example the room the guest stays in. Only the primary sub-reservation passes the guest's phone number to access systems that require a phone number to be unique per user. At most one sub-reservation of a reservation can be primary. If none is, the first sub-reservation in the list is primary. */
|
|
57777
|
+
is_primary?: boolean | undefined
|
|
57774
57778
|
/** Set key:value pairs for filtering sub-reservations by custom criteria. Merged over the reservation's custom metadata. Set a key to `null` or to an empty string to remove that key from the custom metadata. */
|
|
57775
57779
|
custom_metadata?:
|
|
57776
57780
|
| {
|
|
@@ -119523,10 +119527,14 @@ export type Routes = {
|
|
|
119523
119527
|
parent_reservation_id: string | null
|
|
119524
119528
|
/** Key of the parent reservation when this reservation is a sub-reservation. Its `reservation_key` is then `<parent_reservation_key>::<sub-reservation key>`. Null otherwise. */
|
|
119525
119529
|
parent_reservation_key: string | null
|
|
119530
|
+
/** Whether this sub-reservation is its reservation's primary one, the only one that passes the guest's phone number to access systems that require it to be unique per user. Null when this reservation is not a sub-reservation. */
|
|
119531
|
+
is_primary: boolean | null
|
|
119526
119532
|
/** Parts of the reservation that each hold their own access, for example one per room. When present, the reservation's spaces are the union of its sub-reservations' spaces. */
|
|
119527
119533
|
sub_reservations: {
|
|
119528
119534
|
sub_reservation_id: string
|
|
119529
119535
|
sub_reservation_key: string
|
|
119536
|
+
/** Whether this is the reservation's primary sub-reservation, the only one that passes the guest's phone number to access systems that require it to be unique per user. */
|
|
119537
|
+
is_primary: boolean
|
|
119530
119538
|
name: string | null
|
|
119531
119539
|
starts_at: string | null
|
|
119532
119540
|
ends_at: string | null
|
|
@@ -119636,6 +119644,8 @@ export type Routes = {
|
|
|
119636
119644
|
sub_reservations: {
|
|
119637
119645
|
sub_reservation_id: string
|
|
119638
119646
|
sub_reservation_key: string
|
|
119647
|
+
/** Whether this is the reservation's primary sub-reservation, the only one that passes the guest's phone number to access systems that require it to be unique per user. */
|
|
119648
|
+
is_primary: boolean
|
|
119639
119649
|
name: string | null
|
|
119640
119650
|
starts_at: string | null
|
|
119641
119651
|
ends_at: string | null
|
|
@@ -120264,6 +120274,8 @@ export type Routes = {
|
|
|
120264
120274
|
parent_reservation_id: string | null
|
|
120265
120275
|
/** Key of the parent reservation when this reservation is a sub-reservation. Its `reservation_key` is then `<parent_reservation_key>::<sub-reservation key>`. Null otherwise. */
|
|
120266
120276
|
parent_reservation_key: string | null
|
|
120277
|
+
/** Whether this sub-reservation is its reservation's primary one, the only one that passes the guest's phone number to access systems that require it to be unique per user. Null when this reservation is not a sub-reservation. */
|
|
120278
|
+
is_primary: boolean | null
|
|
120267
120279
|
}[]
|
|
120268
120280
|
}
|
|
120269
120281
|
maxDuration: undefined
|