@seamapi/types 1.1107.0 → 1.1109.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/customer-portal.d.ts +14 -0
- package/lib/seam/connect/models/customer/customer-portal.js +5 -0
- package/lib/seam/connect/models/customer/customer-portal.js.map +1 -1
- package/lib/seam/connect/openapi.js +584 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +202 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/customer/customer-portal.ts +7 -0
- package/src/lib/seam/connect/openapi.ts +592 -0
- package/src/lib/seam/connect/route-types.ts +270 -0
|
@@ -46558,6 +46558,8 @@ export type Routes = {
|
|
|
46558
46558
|
allow_climate_automation_rule_customization?: boolean;
|
|
46559
46559
|
/** Indicates whether the customer can customize the Instant Key profile for their properties. */
|
|
46560
46560
|
allow_instant_key_customization?: boolean;
|
|
46561
|
+
/** Indicates whether the customer can customize their notification settings, such as the low-battery alert threshold. */
|
|
46562
|
+
allow_notification_customization?: boolean;
|
|
46561
46563
|
};
|
|
46562
46564
|
};
|
|
46563
46565
|
/** Whether the portal is embedded in another application. */
|
|
@@ -90811,6 +90813,47 @@ export type Routes = {
|
|
|
90811
90813
|
reservation_deleted?: {} | undefined;
|
|
90812
90814
|
};
|
|
90813
90815
|
} | undefined;
|
|
90816
|
+
sound_rules?: {
|
|
90817
|
+
rules: {
|
|
90818
|
+
reservation_created?: {
|
|
90819
|
+
on_check_in?: {
|
|
90820
|
+
minutes_before_check_in?: number | undefined;
|
|
90821
|
+
speakers?: {
|
|
90822
|
+
set_volume_to?: number | undefined;
|
|
90823
|
+
unmute?: boolean | undefined;
|
|
90824
|
+
play_chime?: boolean | undefined;
|
|
90825
|
+
} | undefined;
|
|
90826
|
+
noise_sensors?: {
|
|
90827
|
+
noise_thresholds: {
|
|
90828
|
+
name?: string | undefined;
|
|
90829
|
+
starts_daily_at: string;
|
|
90830
|
+
ends_daily_at: string;
|
|
90831
|
+
noise_threshold_decibels: number;
|
|
90832
|
+
}[];
|
|
90833
|
+
} | undefined;
|
|
90834
|
+
} | undefined;
|
|
90835
|
+
on_check_out?: {
|
|
90836
|
+
minutes_after_check_out?: number | undefined;
|
|
90837
|
+
speakers?: {
|
|
90838
|
+
pause_playback?: boolean | undefined;
|
|
90839
|
+
unmute?: boolean | undefined;
|
|
90840
|
+
reset_volume_to?: number | undefined;
|
|
90841
|
+
} | undefined;
|
|
90842
|
+
noise_sensors?: {
|
|
90843
|
+
noise_thresholds: {
|
|
90844
|
+
name?: string | undefined;
|
|
90845
|
+
starts_daily_at: string;
|
|
90846
|
+
ends_daily_at: string;
|
|
90847
|
+
noise_threshold_decibels: number;
|
|
90848
|
+
}[];
|
|
90849
|
+
} | undefined;
|
|
90850
|
+
} | undefined;
|
|
90851
|
+
} | undefined;
|
|
90852
|
+
reservation_time_updated?: {} | undefined;
|
|
90853
|
+
reservation_spaces_updated?: {} | undefined;
|
|
90854
|
+
reservation_deleted?: {} | undefined;
|
|
90855
|
+
};
|
|
90856
|
+
} | undefined;
|
|
90814
90857
|
};
|
|
90815
90858
|
maxDuration: undefined;
|
|
90816
90859
|
};
|
|
@@ -90897,6 +90940,48 @@ export type Routes = {
|
|
|
90897
90940
|
reservation_deleted?: ({} | null) | undefined;
|
|
90898
90941
|
} | undefined;
|
|
90899
90942
|
} | undefined;
|
|
90943
|
+
/** Sound automation rules configuration. */
|
|
90944
|
+
sound_rules?: {
|
|
90945
|
+
rules?: {
|
|
90946
|
+
reservation_created?: ({
|
|
90947
|
+
on_check_in?: {
|
|
90948
|
+
minutes_before_check_in?: number | undefined;
|
|
90949
|
+
speakers?: {
|
|
90950
|
+
set_volume_to?: number | undefined;
|
|
90951
|
+
unmute?: boolean | undefined;
|
|
90952
|
+
play_chime?: boolean | undefined;
|
|
90953
|
+
} | undefined;
|
|
90954
|
+
noise_sensors?: {
|
|
90955
|
+
noise_thresholds: {
|
|
90956
|
+
name?: string | undefined;
|
|
90957
|
+
starts_daily_at: string;
|
|
90958
|
+
ends_daily_at: string;
|
|
90959
|
+
noise_threshold_decibels: number;
|
|
90960
|
+
}[];
|
|
90961
|
+
} | undefined;
|
|
90962
|
+
} | undefined;
|
|
90963
|
+
on_check_out?: {
|
|
90964
|
+
minutes_after_check_out?: number | undefined;
|
|
90965
|
+
speakers?: {
|
|
90966
|
+
pause_playback?: boolean | undefined;
|
|
90967
|
+
unmute?: boolean | undefined;
|
|
90968
|
+
reset_volume_to?: number | undefined;
|
|
90969
|
+
} | undefined;
|
|
90970
|
+
noise_sensors?: {
|
|
90971
|
+
noise_thresholds: {
|
|
90972
|
+
name?: string | undefined;
|
|
90973
|
+
starts_daily_at: string;
|
|
90974
|
+
ends_daily_at: string;
|
|
90975
|
+
noise_threshold_decibels: number;
|
|
90976
|
+
}[];
|
|
90977
|
+
} | undefined;
|
|
90978
|
+
} | undefined;
|
|
90979
|
+
} | null) | undefined;
|
|
90980
|
+
reservation_time_updated?: ({} | null) | undefined;
|
|
90981
|
+
reservation_spaces_updated?: ({} | null) | undefined;
|
|
90982
|
+
reservation_deleted?: ({} | null) | undefined;
|
|
90983
|
+
} | undefined;
|
|
90984
|
+
} | undefined;
|
|
90900
90985
|
};
|
|
90901
90986
|
commonParams: {};
|
|
90902
90987
|
formData: {};
|
|
@@ -91308,6 +91393,47 @@ export type Routes = {
|
|
|
91308
91393
|
reservation_deleted?: {} | undefined;
|
|
91309
91394
|
};
|
|
91310
91395
|
} | undefined;
|
|
91396
|
+
sound_rules?: {
|
|
91397
|
+
rules: {
|
|
91398
|
+
reservation_created?: {
|
|
91399
|
+
on_check_in?: {
|
|
91400
|
+
minutes_before_check_in?: number | undefined;
|
|
91401
|
+
speakers?: {
|
|
91402
|
+
set_volume_to?: number | undefined;
|
|
91403
|
+
unmute?: boolean | undefined;
|
|
91404
|
+
play_chime?: boolean | undefined;
|
|
91405
|
+
} | undefined;
|
|
91406
|
+
noise_sensors?: {
|
|
91407
|
+
noise_thresholds: {
|
|
91408
|
+
name?: string | undefined;
|
|
91409
|
+
starts_daily_at: string;
|
|
91410
|
+
ends_daily_at: string;
|
|
91411
|
+
noise_threshold_decibels: number;
|
|
91412
|
+
}[];
|
|
91413
|
+
} | undefined;
|
|
91414
|
+
} | undefined;
|
|
91415
|
+
on_check_out?: {
|
|
91416
|
+
minutes_after_check_out?: number | undefined;
|
|
91417
|
+
speakers?: {
|
|
91418
|
+
pause_playback?: boolean | undefined;
|
|
91419
|
+
unmute?: boolean | undefined;
|
|
91420
|
+
reset_volume_to?: number | undefined;
|
|
91421
|
+
} | undefined;
|
|
91422
|
+
noise_sensors?: {
|
|
91423
|
+
noise_thresholds: {
|
|
91424
|
+
name?: string | undefined;
|
|
91425
|
+
starts_daily_at: string;
|
|
91426
|
+
ends_daily_at: string;
|
|
91427
|
+
noise_threshold_decibels: number;
|
|
91428
|
+
}[];
|
|
91429
|
+
} | undefined;
|
|
91430
|
+
} | undefined;
|
|
91431
|
+
} | undefined;
|
|
91432
|
+
reservation_time_updated?: {} | undefined;
|
|
91433
|
+
reservation_spaces_updated?: {} | undefined;
|
|
91434
|
+
reservation_deleted?: {} | undefined;
|
|
91435
|
+
};
|
|
91436
|
+
} | undefined;
|
|
91311
91437
|
};
|
|
91312
91438
|
};
|
|
91313
91439
|
maxDuration: undefined;
|
|
@@ -91393,6 +91519,48 @@ export type Routes = {
|
|
|
91393
91519
|
reservation_deleted?: ({} | null) | undefined;
|
|
91394
91520
|
} | undefined;
|
|
91395
91521
|
} | undefined;
|
|
91522
|
+
/** Sound automation rules configuration. */
|
|
91523
|
+
sound_rules?: {
|
|
91524
|
+
rules?: {
|
|
91525
|
+
reservation_created?: ({
|
|
91526
|
+
on_check_in?: {
|
|
91527
|
+
minutes_before_check_in?: number | undefined;
|
|
91528
|
+
speakers?: {
|
|
91529
|
+
set_volume_to?: number | undefined;
|
|
91530
|
+
unmute?: boolean | undefined;
|
|
91531
|
+
play_chime?: boolean | undefined;
|
|
91532
|
+
} | undefined;
|
|
91533
|
+
noise_sensors?: {
|
|
91534
|
+
noise_thresholds: {
|
|
91535
|
+
name?: string | undefined;
|
|
91536
|
+
starts_daily_at: string;
|
|
91537
|
+
ends_daily_at: string;
|
|
91538
|
+
noise_threshold_decibels: number;
|
|
91539
|
+
}[];
|
|
91540
|
+
} | undefined;
|
|
91541
|
+
} | undefined;
|
|
91542
|
+
on_check_out?: {
|
|
91543
|
+
minutes_after_check_out?: number | undefined;
|
|
91544
|
+
speakers?: {
|
|
91545
|
+
pause_playback?: boolean | undefined;
|
|
91546
|
+
unmute?: boolean | undefined;
|
|
91547
|
+
reset_volume_to?: number | undefined;
|
|
91548
|
+
} | undefined;
|
|
91549
|
+
noise_sensors?: {
|
|
91550
|
+
noise_thresholds: {
|
|
91551
|
+
name?: string | undefined;
|
|
91552
|
+
starts_daily_at: string;
|
|
91553
|
+
ends_daily_at: string;
|
|
91554
|
+
noise_threshold_decibels: number;
|
|
91555
|
+
}[];
|
|
91556
|
+
} | undefined;
|
|
91557
|
+
} | undefined;
|
|
91558
|
+
} | null) | undefined;
|
|
91559
|
+
reservation_time_updated?: ({} | null) | undefined;
|
|
91560
|
+
reservation_spaces_updated?: ({} | null) | undefined;
|
|
91561
|
+
reservation_deleted?: ({} | null) | undefined;
|
|
91562
|
+
} | undefined;
|
|
91563
|
+
} | undefined;
|
|
91396
91564
|
};
|
|
91397
91565
|
commonParams: {};
|
|
91398
91566
|
formData: {};
|
|
@@ -91486,6 +91654,36 @@ export type Routes = {
|
|
|
91486
91654
|
};
|
|
91487
91655
|
maxDuration: undefined;
|
|
91488
91656
|
};
|
|
91657
|
+
'/seam/customer/v1/customers/notifications/get': {
|
|
91658
|
+
route: '/seam/customer/v1/customers/notifications/get';
|
|
91659
|
+
method: 'GET' | 'POST';
|
|
91660
|
+
queryParams: {};
|
|
91661
|
+
jsonBody: {};
|
|
91662
|
+
commonParams: {};
|
|
91663
|
+
formData: {};
|
|
91664
|
+
jsonResponse: {
|
|
91665
|
+
notification_settings: {
|
|
91666
|
+
/** Battery level, from 0 to 1, at or below which `device.low_battery` events fire for this customer's devices. `null` means the workspace or device default applies. */
|
|
91667
|
+
low_battery_alert_threshold: number | null;
|
|
91668
|
+
/** Workspace-level low-battery alert threshold that applies when the customer has not set one. `null` means the device default applies. */
|
|
91669
|
+
workspace_default_low_battery_alert_threshold: number | null;
|
|
91670
|
+
};
|
|
91671
|
+
};
|
|
91672
|
+
maxDuration: undefined;
|
|
91673
|
+
};
|
|
91674
|
+
'/seam/customer/v1/customers/notifications/update': {
|
|
91675
|
+
route: '/seam/customer/v1/customers/notifications/update';
|
|
91676
|
+
method: 'PATCH' | 'POST';
|
|
91677
|
+
queryParams: {};
|
|
91678
|
+
jsonBody: {
|
|
91679
|
+
/** Battery level, from 0 to 1, at or below which `device.low_battery` events fire for this customer's devices. Pass `null` to fall back to the workspace default. */
|
|
91680
|
+
low_battery_alert_threshold?: (number | null) | undefined;
|
|
91681
|
+
};
|
|
91682
|
+
commonParams: {};
|
|
91683
|
+
formData: {};
|
|
91684
|
+
jsonResponse: {};
|
|
91685
|
+
maxDuration: undefined;
|
|
91686
|
+
};
|
|
91489
91687
|
'/seam/customer/v1/customers/open_portal': {
|
|
91490
91688
|
route: '/seam/customer/v1/customers/open_portal';
|
|
91491
91689
|
method: 'POST';
|
|
@@ -95202,6 +95400,8 @@ export type Routes = {
|
|
|
95202
95400
|
allow_climate_automation_rule_customization?: boolean;
|
|
95203
95401
|
/** Indicates whether the customer can customize the Instant Key profile for their properties. */
|
|
95204
95402
|
allow_instant_key_customization?: boolean;
|
|
95403
|
+
/** Indicates whether the customer can customize their notification settings, such as the low-battery alert threshold. */
|
|
95404
|
+
allow_notification_customization?: boolean;
|
|
95205
95405
|
};
|
|
95206
95406
|
};
|
|
95207
95407
|
/** Whether the portal is embedded in another application. */
|
|
@@ -95353,6 +95553,8 @@ export type Routes = {
|
|
|
95353
95553
|
allow_climate_automation_rule_customization?: boolean;
|
|
95354
95554
|
/** Indicates whether the customer can customize the Instant Key profile for their properties. */
|
|
95355
95555
|
allow_instant_key_customization?: boolean;
|
|
95556
|
+
/** Indicates whether the customer can customize their notification settings, such as the low-battery alert threshold. */
|
|
95557
|
+
allow_notification_customization?: boolean;
|
|
95356
95558
|
};
|
|
95357
95559
|
} | undefined;
|
|
95358
95560
|
/** Whether the portal is embedded in another application. */
|
package/package.json
CHANGED
|
@@ -109,6 +109,12 @@ const base_configure_feature = base_feature.extend({
|
|
|
109
109
|
.describe(
|
|
110
110
|
'Indicates whether the customer can customize the Instant Key profile for their properties.',
|
|
111
111
|
),
|
|
112
|
+
allow_notification_customization: z
|
|
113
|
+
.boolean()
|
|
114
|
+
.default(false)
|
|
115
|
+
.describe(
|
|
116
|
+
'Indicates whether the customer can customize their notification settings, such as the low-battery alert threshold.',
|
|
117
|
+
),
|
|
112
118
|
})
|
|
113
119
|
|
|
114
120
|
const base_features = z.object({
|
|
@@ -263,6 +269,7 @@ export const portal_configuration = portal_configuration_base
|
|
|
263
269
|
allow_instant_key_customization: false,
|
|
264
270
|
allow_access_automation_rule_customization: false,
|
|
265
271
|
allow_climate_automation_rule_customization: false,
|
|
272
|
+
allow_notification_customization: false,
|
|
266
273
|
},
|
|
267
274
|
},
|
|
268
275
|
is_embedded: false,
|