@seamapi/http 1.11.1 → 1.12.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 +8 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +254 -7
- package/lib/seam/connect/resolve-action-attempt.d.ts +332 -8
- package/lib/seam/connect/routes/thermostats.d.ts +4 -0
- package/lib/seam/connect/routes/thermostats.js +8 -0
- package/lib/seam/connect/routes/thermostats.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +3 -3
- package/src/lib/seam/connect/routes/thermostats.ts +20 -0
- package/src/lib/version.ts +1 -1
|
@@ -65,7 +65,6 @@ export declare const resolveActionAttempt: <T extends {
|
|
|
65
65
|
is_issued: boolean | null;
|
|
66
66
|
visionline_metadata?: {
|
|
67
67
|
expired: boolean;
|
|
68
|
-
card_function_type: "guest" | "staff";
|
|
69
68
|
card_id: string;
|
|
70
69
|
cancelled: boolean;
|
|
71
70
|
discarded: boolean;
|
|
@@ -73,6 +72,8 @@ export declare const resolveActionAttempt: <T extends {
|
|
|
73
72
|
pending_auto_update: boolean;
|
|
74
73
|
card_format: "TLCode" | "rfid48";
|
|
75
74
|
number_of_issued_cards: number;
|
|
75
|
+
guest_acs_entrance_ids?: string[] | undefined;
|
|
76
|
+
common_acs_entrance_ids?: string[] | undefined;
|
|
76
77
|
overridden?: boolean | undefined;
|
|
77
78
|
card_holder?: string | undefined;
|
|
78
79
|
} | undefined;
|
|
@@ -179,7 +180,87 @@ export declare const resolveActionAttempt: <T extends {
|
|
|
179
180
|
error: null;
|
|
180
181
|
status: "success";
|
|
181
182
|
action_attempt_id: string;
|
|
182
|
-
result: {
|
|
183
|
+
result: {
|
|
184
|
+
created_at: string;
|
|
185
|
+
errors: {
|
|
186
|
+
message: string;
|
|
187
|
+
error_code: string;
|
|
188
|
+
}[];
|
|
189
|
+
warnings: {
|
|
190
|
+
message: string;
|
|
191
|
+
warning_code: string;
|
|
192
|
+
}[];
|
|
193
|
+
display_name: string;
|
|
194
|
+
workspace_id: string;
|
|
195
|
+
is_managed: true;
|
|
196
|
+
acs_system_id: string;
|
|
197
|
+
acs_credential_id: string;
|
|
198
|
+
access_method: "code" | "card" | "mobile_key";
|
|
199
|
+
code?: string | null | undefined;
|
|
200
|
+
starts_at?: string | undefined;
|
|
201
|
+
ends_at?: string | undefined;
|
|
202
|
+
visionline_metadata?: {
|
|
203
|
+
card_function_type: "guest" | "staff";
|
|
204
|
+
joiner_acs_credential_ids?: string[] | undefined;
|
|
205
|
+
guest_acs_entrance_ids?: string[] | undefined;
|
|
206
|
+
common_acs_entrance_ids?: string[] | undefined;
|
|
207
|
+
is_valid?: boolean | undefined;
|
|
208
|
+
auto_join?: boolean | undefined;
|
|
209
|
+
card_id?: string | undefined;
|
|
210
|
+
credential_id?: string | undefined;
|
|
211
|
+
} | undefined;
|
|
212
|
+
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
|
|
213
|
+
external_type_display_name?: string | undefined;
|
|
214
|
+
acs_user_id?: string | undefined;
|
|
215
|
+
acs_credential_pool_id?: string | undefined;
|
|
216
|
+
parent_acs_credential_id?: string | undefined;
|
|
217
|
+
card_number?: string | null | undefined;
|
|
218
|
+
is_issued?: boolean | undefined;
|
|
219
|
+
issued_at?: string | null | undefined;
|
|
220
|
+
is_multi_phone_sync_credential?: boolean | undefined;
|
|
221
|
+
is_latest_desired_state_synced_with_provider?: boolean | undefined;
|
|
222
|
+
latest_desired_state_synced_with_provider_at?: string | undefined;
|
|
223
|
+
} | {
|
|
224
|
+
created_at: string;
|
|
225
|
+
errors: {
|
|
226
|
+
message: string;
|
|
227
|
+
error_code: string;
|
|
228
|
+
}[];
|
|
229
|
+
warnings: {
|
|
230
|
+
message: string;
|
|
231
|
+
warning_code: string;
|
|
232
|
+
}[];
|
|
233
|
+
display_name: string;
|
|
234
|
+
workspace_id: string;
|
|
235
|
+
is_managed: false;
|
|
236
|
+
acs_system_id: string;
|
|
237
|
+
acs_credential_id: string;
|
|
238
|
+
access_method: "code" | "card" | "mobile_key";
|
|
239
|
+
code?: string | null | undefined;
|
|
240
|
+
starts_at?: string | undefined;
|
|
241
|
+
ends_at?: string | undefined;
|
|
242
|
+
visionline_metadata?: {
|
|
243
|
+
card_function_type: "guest" | "staff";
|
|
244
|
+
joiner_acs_credential_ids?: string[] | undefined;
|
|
245
|
+
guest_acs_entrance_ids?: string[] | undefined;
|
|
246
|
+
common_acs_entrance_ids?: string[] | undefined;
|
|
247
|
+
is_valid?: boolean | undefined;
|
|
248
|
+
auto_join?: boolean | undefined;
|
|
249
|
+
card_id?: string | undefined;
|
|
250
|
+
credential_id?: string | undefined;
|
|
251
|
+
} | undefined;
|
|
252
|
+
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
|
|
253
|
+
external_type_display_name?: string | undefined;
|
|
254
|
+
acs_user_id?: string | undefined;
|
|
255
|
+
acs_credential_pool_id?: string | undefined;
|
|
256
|
+
parent_acs_credential_id?: string | undefined;
|
|
257
|
+
card_number?: string | null | undefined;
|
|
258
|
+
is_issued?: boolean | undefined;
|
|
259
|
+
issued_at?: string | null | undefined;
|
|
260
|
+
is_multi_phone_sync_credential?: boolean | undefined;
|
|
261
|
+
is_latest_desired_state_synced_with_provider?: boolean | undefined;
|
|
262
|
+
latest_desired_state_synced_with_provider_at?: string | undefined;
|
|
263
|
+
};
|
|
183
264
|
action_type: "ENCODE_CARD";
|
|
184
265
|
} | {
|
|
185
266
|
error: {
|
|
@@ -556,7 +637,6 @@ export declare const isSeamActionAttemptError: <T extends {
|
|
|
556
637
|
is_issued: boolean | null;
|
|
557
638
|
visionline_metadata?: {
|
|
558
639
|
expired: boolean;
|
|
559
|
-
card_function_type: "guest" | "staff";
|
|
560
640
|
card_id: string;
|
|
561
641
|
cancelled: boolean;
|
|
562
642
|
discarded: boolean;
|
|
@@ -564,6 +644,8 @@ export declare const isSeamActionAttemptError: <T extends {
|
|
|
564
644
|
pending_auto_update: boolean;
|
|
565
645
|
card_format: "TLCode" | "rfid48";
|
|
566
646
|
number_of_issued_cards: number;
|
|
647
|
+
guest_acs_entrance_ids?: string[] | undefined;
|
|
648
|
+
common_acs_entrance_ids?: string[] | undefined;
|
|
567
649
|
overridden?: boolean | undefined;
|
|
568
650
|
card_holder?: string | undefined;
|
|
569
651
|
} | undefined;
|
|
@@ -670,7 +752,87 @@ export declare const isSeamActionAttemptError: <T extends {
|
|
|
670
752
|
error: null;
|
|
671
753
|
status: "success";
|
|
672
754
|
action_attempt_id: string;
|
|
673
|
-
result: {
|
|
755
|
+
result: {
|
|
756
|
+
created_at: string;
|
|
757
|
+
errors: {
|
|
758
|
+
message: string;
|
|
759
|
+
error_code: string;
|
|
760
|
+
}[];
|
|
761
|
+
warnings: {
|
|
762
|
+
message: string;
|
|
763
|
+
warning_code: string;
|
|
764
|
+
}[];
|
|
765
|
+
display_name: string;
|
|
766
|
+
workspace_id: string;
|
|
767
|
+
is_managed: true;
|
|
768
|
+
acs_system_id: string;
|
|
769
|
+
acs_credential_id: string;
|
|
770
|
+
access_method: "code" | "card" | "mobile_key";
|
|
771
|
+
code?: string | null | undefined;
|
|
772
|
+
starts_at?: string | undefined;
|
|
773
|
+
ends_at?: string | undefined;
|
|
774
|
+
visionline_metadata?: {
|
|
775
|
+
card_function_type: "guest" | "staff";
|
|
776
|
+
joiner_acs_credential_ids?: string[] | undefined;
|
|
777
|
+
guest_acs_entrance_ids?: string[] | undefined;
|
|
778
|
+
common_acs_entrance_ids?: string[] | undefined;
|
|
779
|
+
is_valid?: boolean | undefined;
|
|
780
|
+
auto_join?: boolean | undefined;
|
|
781
|
+
card_id?: string | undefined;
|
|
782
|
+
credential_id?: string | undefined;
|
|
783
|
+
} | undefined;
|
|
784
|
+
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
|
|
785
|
+
external_type_display_name?: string | undefined;
|
|
786
|
+
acs_user_id?: string | undefined;
|
|
787
|
+
acs_credential_pool_id?: string | undefined;
|
|
788
|
+
parent_acs_credential_id?: string | undefined;
|
|
789
|
+
card_number?: string | null | undefined;
|
|
790
|
+
is_issued?: boolean | undefined;
|
|
791
|
+
issued_at?: string | null | undefined;
|
|
792
|
+
is_multi_phone_sync_credential?: boolean | undefined;
|
|
793
|
+
is_latest_desired_state_synced_with_provider?: boolean | undefined;
|
|
794
|
+
latest_desired_state_synced_with_provider_at?: string | undefined;
|
|
795
|
+
} | {
|
|
796
|
+
created_at: string;
|
|
797
|
+
errors: {
|
|
798
|
+
message: string;
|
|
799
|
+
error_code: string;
|
|
800
|
+
}[];
|
|
801
|
+
warnings: {
|
|
802
|
+
message: string;
|
|
803
|
+
warning_code: string;
|
|
804
|
+
}[];
|
|
805
|
+
display_name: string;
|
|
806
|
+
workspace_id: string;
|
|
807
|
+
is_managed: false;
|
|
808
|
+
acs_system_id: string;
|
|
809
|
+
acs_credential_id: string;
|
|
810
|
+
access_method: "code" | "card" | "mobile_key";
|
|
811
|
+
code?: string | null | undefined;
|
|
812
|
+
starts_at?: string | undefined;
|
|
813
|
+
ends_at?: string | undefined;
|
|
814
|
+
visionline_metadata?: {
|
|
815
|
+
card_function_type: "guest" | "staff";
|
|
816
|
+
joiner_acs_credential_ids?: string[] | undefined;
|
|
817
|
+
guest_acs_entrance_ids?: string[] | undefined;
|
|
818
|
+
common_acs_entrance_ids?: string[] | undefined;
|
|
819
|
+
is_valid?: boolean | undefined;
|
|
820
|
+
auto_join?: boolean | undefined;
|
|
821
|
+
card_id?: string | undefined;
|
|
822
|
+
credential_id?: string | undefined;
|
|
823
|
+
} | undefined;
|
|
824
|
+
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
|
|
825
|
+
external_type_display_name?: string | undefined;
|
|
826
|
+
acs_user_id?: string | undefined;
|
|
827
|
+
acs_credential_pool_id?: string | undefined;
|
|
828
|
+
parent_acs_credential_id?: string | undefined;
|
|
829
|
+
card_number?: string | null | undefined;
|
|
830
|
+
is_issued?: boolean | undefined;
|
|
831
|
+
issued_at?: string | null | undefined;
|
|
832
|
+
is_multi_phone_sync_credential?: boolean | undefined;
|
|
833
|
+
is_latest_desired_state_synced_with_provider?: boolean | undefined;
|
|
834
|
+
latest_desired_state_synced_with_provider_at?: string | undefined;
|
|
835
|
+
};
|
|
674
836
|
action_type: "ENCODE_CARD";
|
|
675
837
|
} | {
|
|
676
838
|
error: {
|
|
@@ -1049,7 +1211,6 @@ export declare const isSeamActionAttemptFailedError: <T extends {
|
|
|
1049
1211
|
is_issued: boolean | null;
|
|
1050
1212
|
visionline_metadata?: {
|
|
1051
1213
|
expired: boolean;
|
|
1052
|
-
card_function_type: "guest" | "staff";
|
|
1053
1214
|
card_id: string;
|
|
1054
1215
|
cancelled: boolean;
|
|
1055
1216
|
discarded: boolean;
|
|
@@ -1057,6 +1218,8 @@ export declare const isSeamActionAttemptFailedError: <T extends {
|
|
|
1057
1218
|
pending_auto_update: boolean;
|
|
1058
1219
|
card_format: "TLCode" | "rfid48";
|
|
1059
1220
|
number_of_issued_cards: number;
|
|
1221
|
+
guest_acs_entrance_ids?: string[] | undefined;
|
|
1222
|
+
common_acs_entrance_ids?: string[] | undefined;
|
|
1060
1223
|
overridden?: boolean | undefined;
|
|
1061
1224
|
card_holder?: string | undefined;
|
|
1062
1225
|
} | undefined;
|
|
@@ -1163,7 +1326,87 @@ export declare const isSeamActionAttemptFailedError: <T extends {
|
|
|
1163
1326
|
error: null;
|
|
1164
1327
|
status: "success";
|
|
1165
1328
|
action_attempt_id: string;
|
|
1166
|
-
result: {
|
|
1329
|
+
result: {
|
|
1330
|
+
created_at: string;
|
|
1331
|
+
errors: {
|
|
1332
|
+
message: string;
|
|
1333
|
+
error_code: string;
|
|
1334
|
+
}[];
|
|
1335
|
+
warnings: {
|
|
1336
|
+
message: string;
|
|
1337
|
+
warning_code: string;
|
|
1338
|
+
}[];
|
|
1339
|
+
display_name: string;
|
|
1340
|
+
workspace_id: string;
|
|
1341
|
+
is_managed: true;
|
|
1342
|
+
acs_system_id: string;
|
|
1343
|
+
acs_credential_id: string;
|
|
1344
|
+
access_method: "code" | "card" | "mobile_key";
|
|
1345
|
+
code?: string | null | undefined;
|
|
1346
|
+
starts_at?: string | undefined;
|
|
1347
|
+
ends_at?: string | undefined;
|
|
1348
|
+
visionline_metadata?: {
|
|
1349
|
+
card_function_type: "guest" | "staff";
|
|
1350
|
+
joiner_acs_credential_ids?: string[] | undefined;
|
|
1351
|
+
guest_acs_entrance_ids?: string[] | undefined;
|
|
1352
|
+
common_acs_entrance_ids?: string[] | undefined;
|
|
1353
|
+
is_valid?: boolean | undefined;
|
|
1354
|
+
auto_join?: boolean | undefined;
|
|
1355
|
+
card_id?: string | undefined;
|
|
1356
|
+
credential_id?: string | undefined;
|
|
1357
|
+
} | undefined;
|
|
1358
|
+
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
|
|
1359
|
+
external_type_display_name?: string | undefined;
|
|
1360
|
+
acs_user_id?: string | undefined;
|
|
1361
|
+
acs_credential_pool_id?: string | undefined;
|
|
1362
|
+
parent_acs_credential_id?: string | undefined;
|
|
1363
|
+
card_number?: string | null | undefined;
|
|
1364
|
+
is_issued?: boolean | undefined;
|
|
1365
|
+
issued_at?: string | null | undefined;
|
|
1366
|
+
is_multi_phone_sync_credential?: boolean | undefined;
|
|
1367
|
+
is_latest_desired_state_synced_with_provider?: boolean | undefined;
|
|
1368
|
+
latest_desired_state_synced_with_provider_at?: string | undefined;
|
|
1369
|
+
} | {
|
|
1370
|
+
created_at: string;
|
|
1371
|
+
errors: {
|
|
1372
|
+
message: string;
|
|
1373
|
+
error_code: string;
|
|
1374
|
+
}[];
|
|
1375
|
+
warnings: {
|
|
1376
|
+
message: string;
|
|
1377
|
+
warning_code: string;
|
|
1378
|
+
}[];
|
|
1379
|
+
display_name: string;
|
|
1380
|
+
workspace_id: string;
|
|
1381
|
+
is_managed: false;
|
|
1382
|
+
acs_system_id: string;
|
|
1383
|
+
acs_credential_id: string;
|
|
1384
|
+
access_method: "code" | "card" | "mobile_key";
|
|
1385
|
+
code?: string | null | undefined;
|
|
1386
|
+
starts_at?: string | undefined;
|
|
1387
|
+
ends_at?: string | undefined;
|
|
1388
|
+
visionline_metadata?: {
|
|
1389
|
+
card_function_type: "guest" | "staff";
|
|
1390
|
+
joiner_acs_credential_ids?: string[] | undefined;
|
|
1391
|
+
guest_acs_entrance_ids?: string[] | undefined;
|
|
1392
|
+
common_acs_entrance_ids?: string[] | undefined;
|
|
1393
|
+
is_valid?: boolean | undefined;
|
|
1394
|
+
auto_join?: boolean | undefined;
|
|
1395
|
+
card_id?: string | undefined;
|
|
1396
|
+
credential_id?: string | undefined;
|
|
1397
|
+
} | undefined;
|
|
1398
|
+
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
|
|
1399
|
+
external_type_display_name?: string | undefined;
|
|
1400
|
+
acs_user_id?: string | undefined;
|
|
1401
|
+
acs_credential_pool_id?: string | undefined;
|
|
1402
|
+
parent_acs_credential_id?: string | undefined;
|
|
1403
|
+
card_number?: string | null | undefined;
|
|
1404
|
+
is_issued?: boolean | undefined;
|
|
1405
|
+
issued_at?: string | null | undefined;
|
|
1406
|
+
is_multi_phone_sync_credential?: boolean | undefined;
|
|
1407
|
+
is_latest_desired_state_synced_with_provider?: boolean | undefined;
|
|
1408
|
+
latest_desired_state_synced_with_provider_at?: string | undefined;
|
|
1409
|
+
};
|
|
1167
1410
|
action_type: "ENCODE_CARD";
|
|
1168
1411
|
} | {
|
|
1169
1412
|
error: {
|
|
@@ -1542,7 +1785,6 @@ export declare const isSeamActionAttemptTimeoutError: <T extends {
|
|
|
1542
1785
|
is_issued: boolean | null;
|
|
1543
1786
|
visionline_metadata?: {
|
|
1544
1787
|
expired: boolean;
|
|
1545
|
-
card_function_type: "guest" | "staff";
|
|
1546
1788
|
card_id: string;
|
|
1547
1789
|
cancelled: boolean;
|
|
1548
1790
|
discarded: boolean;
|
|
@@ -1550,6 +1792,8 @@ export declare const isSeamActionAttemptTimeoutError: <T extends {
|
|
|
1550
1792
|
pending_auto_update: boolean;
|
|
1551
1793
|
card_format: "TLCode" | "rfid48";
|
|
1552
1794
|
number_of_issued_cards: number;
|
|
1795
|
+
guest_acs_entrance_ids?: string[] | undefined;
|
|
1796
|
+
common_acs_entrance_ids?: string[] | undefined;
|
|
1553
1797
|
overridden?: boolean | undefined;
|
|
1554
1798
|
card_holder?: string | undefined;
|
|
1555
1799
|
} | undefined;
|
|
@@ -1656,7 +1900,87 @@ export declare const isSeamActionAttemptTimeoutError: <T extends {
|
|
|
1656
1900
|
error: null;
|
|
1657
1901
|
status: "success";
|
|
1658
1902
|
action_attempt_id: string;
|
|
1659
|
-
result: {
|
|
1903
|
+
result: {
|
|
1904
|
+
created_at: string;
|
|
1905
|
+
errors: {
|
|
1906
|
+
message: string;
|
|
1907
|
+
error_code: string;
|
|
1908
|
+
}[];
|
|
1909
|
+
warnings: {
|
|
1910
|
+
message: string;
|
|
1911
|
+
warning_code: string;
|
|
1912
|
+
}[];
|
|
1913
|
+
display_name: string;
|
|
1914
|
+
workspace_id: string;
|
|
1915
|
+
is_managed: true;
|
|
1916
|
+
acs_system_id: string;
|
|
1917
|
+
acs_credential_id: string;
|
|
1918
|
+
access_method: "code" | "card" | "mobile_key";
|
|
1919
|
+
code?: string | null | undefined;
|
|
1920
|
+
starts_at?: string | undefined;
|
|
1921
|
+
ends_at?: string | undefined;
|
|
1922
|
+
visionline_metadata?: {
|
|
1923
|
+
card_function_type: "guest" | "staff";
|
|
1924
|
+
joiner_acs_credential_ids?: string[] | undefined;
|
|
1925
|
+
guest_acs_entrance_ids?: string[] | undefined;
|
|
1926
|
+
common_acs_entrance_ids?: string[] | undefined;
|
|
1927
|
+
is_valid?: boolean | undefined;
|
|
1928
|
+
auto_join?: boolean | undefined;
|
|
1929
|
+
card_id?: string | undefined;
|
|
1930
|
+
credential_id?: string | undefined;
|
|
1931
|
+
} | undefined;
|
|
1932
|
+
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
|
|
1933
|
+
external_type_display_name?: string | undefined;
|
|
1934
|
+
acs_user_id?: string | undefined;
|
|
1935
|
+
acs_credential_pool_id?: string | undefined;
|
|
1936
|
+
parent_acs_credential_id?: string | undefined;
|
|
1937
|
+
card_number?: string | null | undefined;
|
|
1938
|
+
is_issued?: boolean | undefined;
|
|
1939
|
+
issued_at?: string | null | undefined;
|
|
1940
|
+
is_multi_phone_sync_credential?: boolean | undefined;
|
|
1941
|
+
is_latest_desired_state_synced_with_provider?: boolean | undefined;
|
|
1942
|
+
latest_desired_state_synced_with_provider_at?: string | undefined;
|
|
1943
|
+
} | {
|
|
1944
|
+
created_at: string;
|
|
1945
|
+
errors: {
|
|
1946
|
+
message: string;
|
|
1947
|
+
error_code: string;
|
|
1948
|
+
}[];
|
|
1949
|
+
warnings: {
|
|
1950
|
+
message: string;
|
|
1951
|
+
warning_code: string;
|
|
1952
|
+
}[];
|
|
1953
|
+
display_name: string;
|
|
1954
|
+
workspace_id: string;
|
|
1955
|
+
is_managed: false;
|
|
1956
|
+
acs_system_id: string;
|
|
1957
|
+
acs_credential_id: string;
|
|
1958
|
+
access_method: "code" | "card" | "mobile_key";
|
|
1959
|
+
code?: string | null | undefined;
|
|
1960
|
+
starts_at?: string | undefined;
|
|
1961
|
+
ends_at?: string | undefined;
|
|
1962
|
+
visionline_metadata?: {
|
|
1963
|
+
card_function_type: "guest" | "staff";
|
|
1964
|
+
joiner_acs_credential_ids?: string[] | undefined;
|
|
1965
|
+
guest_acs_entrance_ids?: string[] | undefined;
|
|
1966
|
+
common_acs_entrance_ids?: string[] | undefined;
|
|
1967
|
+
is_valid?: boolean | undefined;
|
|
1968
|
+
auto_join?: boolean | undefined;
|
|
1969
|
+
card_id?: string | undefined;
|
|
1970
|
+
credential_id?: string | undefined;
|
|
1971
|
+
} | undefined;
|
|
1972
|
+
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
|
|
1973
|
+
external_type_display_name?: string | undefined;
|
|
1974
|
+
acs_user_id?: string | undefined;
|
|
1975
|
+
acs_credential_pool_id?: string | undefined;
|
|
1976
|
+
parent_acs_credential_id?: string | undefined;
|
|
1977
|
+
card_number?: string | null | undefined;
|
|
1978
|
+
is_issued?: boolean | undefined;
|
|
1979
|
+
issued_at?: string | null | undefined;
|
|
1980
|
+
is_multi_phone_sync_credential?: boolean | undefined;
|
|
1981
|
+
is_latest_desired_state_synced_with_provider?: boolean | undefined;
|
|
1982
|
+
latest_desired_state_synced_with_provider_at?: string | undefined;
|
|
1983
|
+
};
|
|
1660
1984
|
action_type: "ENCODE_CARD";
|
|
1661
1985
|
} | {
|
|
1662
1986
|
error: {
|
|
@@ -27,6 +27,7 @@ export declare class SeamHttpThermostats {
|
|
|
27
27
|
off(body?: ThermostatsOffBody, options?: Pick<SeamHttpRequestOptions, 'waitForActionAttempt'>): SeamHttpRequest<ThermostatsOffResponse, 'action_attempt'>;
|
|
28
28
|
setFallbackClimatePreset(body?: ThermostatsSetFallbackClimatePresetBody): SeamHttpRequest<void, undefined>;
|
|
29
29
|
setFanMode(body?: ThermostatsSetFanModeBody, options?: Pick<SeamHttpRequestOptions, 'waitForActionAttempt'>): SeamHttpRequest<ThermostatsSetFanModeResponse, 'action_attempt'>;
|
|
30
|
+
setTemperatureThreshold(body?: ThermostatsSetTemperatureThresholdBody): SeamHttpRequest<void, undefined>;
|
|
30
31
|
updateClimatePreset(body?: ThermostatsUpdateClimatePresetBody): SeamHttpRequest<void, undefined>;
|
|
31
32
|
}
|
|
32
33
|
export type ThermostatsActivateClimatePresetBody = RouteRequestBody<'/thermostats/activate_climate_preset'>;
|
|
@@ -62,6 +63,9 @@ export type ThermostatsSetFallbackClimatePresetOptions = never;
|
|
|
62
63
|
export type ThermostatsSetFanModeBody = RouteRequestBody<'/thermostats/set_fan_mode'>;
|
|
63
64
|
export type ThermostatsSetFanModeResponse = SetNonNullable<Required<RouteResponse<'/thermostats/set_fan_mode'>>>;
|
|
64
65
|
export type ThermostatsSetFanModeOptions = Pick<SeamHttpRequestOptions, 'waitForActionAttempt'>;
|
|
66
|
+
export type ThermostatsSetTemperatureThresholdBody = RouteRequestBody<'/thermostats/set_temperature_threshold'>;
|
|
67
|
+
export type ThermostatsSetTemperatureThresholdResponse = SetNonNullable<Required<RouteResponse<'/thermostats/set_temperature_threshold'>>>;
|
|
68
|
+
export type ThermostatsSetTemperatureThresholdOptions = never;
|
|
65
69
|
export type ThermostatsUpdateClimatePresetBody = RouteRequestBody<'/thermostats/update_climate_preset'>;
|
|
66
70
|
export type ThermostatsUpdateClimatePresetResponse = SetNonNullable<Required<RouteResponse<'/thermostats/update_climate_preset'>>>;
|
|
67
71
|
export type ThermostatsUpdateClimatePresetOptions = never;
|
|
@@ -174,6 +174,14 @@ export class SeamHttpThermostats {
|
|
|
174
174
|
options,
|
|
175
175
|
});
|
|
176
176
|
}
|
|
177
|
+
setTemperatureThreshold(body) {
|
|
178
|
+
return new SeamHttpRequest(this, {
|
|
179
|
+
path: '/thermostats/set_temperature_threshold',
|
|
180
|
+
method: 'post',
|
|
181
|
+
body,
|
|
182
|
+
responseKey: undefined,
|
|
183
|
+
});
|
|
184
|
+
}
|
|
177
185
|
updateClimatePreset(body) {
|
|
178
186
|
return new SeamHttpRequest(this, {
|
|
179
187
|
path: '/thermostats/update_climate_preset',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thermostats.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/routes/thermostats.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EACL,mCAAmC,EACnC,+BAA+B,GAChC,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAe,YAAY,EAAE,M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ACJ,CAAC;IAED,uBAAuB,CACrB,IAA6C;QAE7C,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,IAAI,EAAE,wCAAwC;YAC9C,MAAM,EAAE,MAAM;YACd,IAAI;YACJ,WAAW,EAAE,SAAS;SACvB,CAAC,CAAA;IACJ,CAAC;IAED,mBAAmB,CACjB,IAAyC;QAEzC,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,IAAI,EAAE,oCAAoC;YAC1C,MAAM,EAAE,MAAM;YACd,IAAI;YACJ,WAAW,EAAE,SAAS;SACvB,CAAC,CAAA;IACJ,CAAC;CACF"}
|
package/lib/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const seamapiJavascriptHttpVersion = "1.
|
|
1
|
+
declare const seamapiJavascriptHttpVersion = "1.12.0";
|
|
2
2
|
export default seamapiJavascriptHttpVersion;
|
package/lib/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seamapi/http",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.0",
|
|
4
4
|
"description": "JavaScript HTTP client for the Seam API written in TypeScript.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"npm": ">= 9.0.0"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
|
-
"@seamapi/types": "^1.
|
|
87
|
+
"@seamapi/types": "^1.275.0"
|
|
88
88
|
},
|
|
89
89
|
"peerDependenciesMeta": {
|
|
90
90
|
"@seamapi/types": {
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
},
|
|
100
100
|
"devDependencies": {
|
|
101
101
|
"@seamapi/fake-seam-connect": "1.71.0",
|
|
102
|
-
"@seamapi/types": "1.
|
|
102
|
+
"@seamapi/types": "1.275.0",
|
|
103
103
|
"@types/eslint": "^8.44.2",
|
|
104
104
|
"@types/node": "^20.8.10",
|
|
105
105
|
"ava": "^5.0.1",
|
|
@@ -295,6 +295,17 @@ export class SeamHttpThermostats {
|
|
|
295
295
|
})
|
|
296
296
|
}
|
|
297
297
|
|
|
298
|
+
setTemperatureThreshold(
|
|
299
|
+
body?: ThermostatsSetTemperatureThresholdBody,
|
|
300
|
+
): SeamHttpRequest<void, undefined> {
|
|
301
|
+
return new SeamHttpRequest(this, {
|
|
302
|
+
path: '/thermostats/set_temperature_threshold',
|
|
303
|
+
method: 'post',
|
|
304
|
+
body,
|
|
305
|
+
responseKey: undefined,
|
|
306
|
+
})
|
|
307
|
+
}
|
|
308
|
+
|
|
298
309
|
updateClimatePreset(
|
|
299
310
|
body?: ThermostatsUpdateClimatePresetBody,
|
|
300
311
|
): SeamHttpRequest<void, undefined> {
|
|
@@ -418,6 +429,15 @@ export type ThermostatsSetFanModeOptions = Pick<
|
|
|
418
429
|
'waitForActionAttempt'
|
|
419
430
|
>
|
|
420
431
|
|
|
432
|
+
export type ThermostatsSetTemperatureThresholdBody =
|
|
433
|
+
RouteRequestBody<'/thermostats/set_temperature_threshold'>
|
|
434
|
+
|
|
435
|
+
export type ThermostatsSetTemperatureThresholdResponse = SetNonNullable<
|
|
436
|
+
Required<RouteResponse<'/thermostats/set_temperature_threshold'>>
|
|
437
|
+
>
|
|
438
|
+
|
|
439
|
+
export type ThermostatsSetTemperatureThresholdOptions = never
|
|
440
|
+
|
|
421
441
|
export type ThermostatsUpdateClimatePresetBody =
|
|
422
442
|
RouteRequestBody<'/thermostats/update_climate_preset'>
|
|
423
443
|
|
package/src/lib/version.ts
CHANGED