@seamapi/http 1.108.0 → 1.110.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 +130 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +30 -3
- package/dist/index.cjs +130 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/lib/seam/connect/routes/access-codes/access-codes.js +3 -0
- package/lib/seam/connect/routes/access-codes/access-codes.js.map +1 -1
- package/lib/seam/connect/routes/customers/reservations/reservations.js +6 -0
- package/lib/seam/connect/routes/customers/reservations/reservations.js.map +1 -1
- package/lib/seam/connect/routes/locks/locks.d.ts +12 -0
- package/lib/seam/connect/routes/locks/locks.js +9 -0
- package/lib/seam/connect/routes/locks/locks.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/customers/automations/automations.js +9 -0
- package/lib/seam/connect/routes/seam/customer/v1/customers/automations/automations.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/customers/customers.js +6 -0
- package/lib/seam/connect/routes/seam/customer/v1/customers/customers.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/reservations/reservations.d.ts +13 -0
- package/lib/seam/connect/routes/seam/customer/v1/reservations/reservations.js +12 -0
- package/lib/seam/connect/routes/seam/customer/v1/reservations/reservations.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/spaces/spaces.js +6 -0
- package/lib/seam/connect/routes/seam/customer/v1/spaces/spaces.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/v1.js +3 -0
- package/lib/seam/connect/routes/seam/customer/v1/v1.js.map +1 -1
- package/lib/seam/connect/routes/seam-http-endpoints.d.ts +6 -4
- package/lib/seam/connect/routes/seam-http-endpoints.js +35 -0
- package/lib/seam/connect/routes/seam-http-endpoints.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/access-codes/access-codes.ts +5 -0
- package/src/lib/seam/connect/routes/customers/reservations/reservations.ts +10 -0
- package/src/lib/seam/connect/routes/locks/locks.ts +38 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/customers/automations/automations.ts +15 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/customers/customers.ts +10 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/reservations/reservations.ts +41 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/spaces/spaces.ts +10 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/v1.ts +5 -0
- package/src/lib/seam/connect/routes/seam-http-endpoints.ts +74 -0
- package/src/lib/version.ts +1 -1
|
@@ -44,6 +44,11 @@ export class SeamHttpSeamCustomerV1Spaces {
|
|
|
44
44
|
|
|
45
45
|
constructor(apiKeyOrOptions: string | SeamHttpOptions = {}) {
|
|
46
46
|
const options = parseOptions(apiKeyOrOptions)
|
|
47
|
+
if (!options.isUndocumentedApiEnabled) {
|
|
48
|
+
throw new Error(
|
|
49
|
+
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
50
|
+
)
|
|
51
|
+
}
|
|
47
52
|
this.client = 'client' in options ? options.client : createClient(options)
|
|
48
53
|
this.defaults = limitToSeamHttpRequestOptions(options)
|
|
49
54
|
}
|
|
@@ -221,6 +226,11 @@ export class SeamHttpSeamCustomerV1Spaces {
|
|
|
221
226
|
parameters?: SeamCustomerV1SpacesPushCommonAreasParameters,
|
|
222
227
|
options: SeamCustomerV1SpacesPushCommonAreasOptions = {},
|
|
223
228
|
): SeamCustomerV1SpacesPushCommonAreasRequest {
|
|
229
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
230
|
+
throw new Error(
|
|
231
|
+
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
232
|
+
)
|
|
233
|
+
}
|
|
224
234
|
return new SeamHttpRequest(this, {
|
|
225
235
|
pathname: '/seam/customer/v1/spaces/push_common_areas',
|
|
226
236
|
method: 'POST',
|
|
@@ -56,6 +56,11 @@ export class SeamHttpSeamCustomerV1 {
|
|
|
56
56
|
|
|
57
57
|
constructor(apiKeyOrOptions: string | SeamHttpOptions = {}) {
|
|
58
58
|
const options = parseOptions(apiKeyOrOptions)
|
|
59
|
+
if (!options.isUndocumentedApiEnabled) {
|
|
60
|
+
throw new Error(
|
|
61
|
+
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
62
|
+
)
|
|
63
|
+
}
|
|
59
64
|
this.client = 'client' in options ? options.client : createClient(options)
|
|
60
65
|
this.defaults = limitToSeamHttpRequestOptions(options)
|
|
61
66
|
}
|
|
@@ -522,6 +522,9 @@ import {
|
|
|
522
522
|
SeamHttpInstantKeys,
|
|
523
523
|
} from './instant-keys/index.js'
|
|
524
524
|
import {
|
|
525
|
+
type LocksConfigureAutoLockOptions,
|
|
526
|
+
type LocksConfigureAutoLockParameters,
|
|
527
|
+
type LocksConfigureAutoLockRequest,
|
|
525
528
|
type LocksGetOptions,
|
|
526
529
|
type LocksGetParameters,
|
|
527
530
|
type LocksGetRequest,
|
|
@@ -711,6 +714,9 @@ import {
|
|
|
711
714
|
type SeamCustomerV1ReservationsGetOptions,
|
|
712
715
|
type SeamCustomerV1ReservationsGetParameters,
|
|
713
716
|
type SeamCustomerV1ReservationsGetRequest,
|
|
717
|
+
type SeamCustomerV1ReservationsListAccessGrantsOptions,
|
|
718
|
+
type SeamCustomerV1ReservationsListAccessGrantsParameters,
|
|
719
|
+
type SeamCustomerV1ReservationsListAccessGrantsRequest,
|
|
714
720
|
type SeamCustomerV1ReservationsListOptions,
|
|
715
721
|
type SeamCustomerV1ReservationsListParameters,
|
|
716
722
|
type SeamCustomerV1ReservationsListRequest,
|
|
@@ -1220,6 +1226,11 @@ export class SeamHttpEndpoints {
|
|
|
1220
1226
|
options?: AccessCodesGetTimelineOptions,
|
|
1221
1227
|
) => AccessCodesGetTimelineRequest {
|
|
1222
1228
|
const { client, defaults } = this
|
|
1229
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
1230
|
+
throw new Error(
|
|
1231
|
+
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
1232
|
+
)
|
|
1233
|
+
}
|
|
1223
1234
|
return function accessCodesGetTimeline(
|
|
1224
1235
|
...args: Parameters<SeamHttpAccessCodes['getTimeline']>
|
|
1225
1236
|
): ReturnType<SeamHttpAccessCodes['getTimeline']> {
|
|
@@ -2666,6 +2677,11 @@ export class SeamHttpEndpoints {
|
|
|
2666
2677
|
options?: CustomersReservationsCreateDeepLinkOptions,
|
|
2667
2678
|
) => CustomersReservationsCreateDeepLinkRequest {
|
|
2668
2679
|
const { client, defaults } = this
|
|
2680
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
2681
|
+
throw new Error(
|
|
2682
|
+
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
2683
|
+
)
|
|
2684
|
+
}
|
|
2669
2685
|
return function customersReservationsCreateDeepLink(
|
|
2670
2686
|
...args: Parameters<SeamHttpCustomersReservations['createDeepLink']>
|
|
2671
2687
|
): ReturnType<SeamHttpCustomersReservations['createDeepLink']> {
|
|
@@ -2939,6 +2955,19 @@ export class SeamHttpEndpoints {
|
|
|
2939
2955
|
}
|
|
2940
2956
|
}
|
|
2941
2957
|
|
|
2958
|
+
get '/locks/configure_auto_lock'(): (
|
|
2959
|
+
parameters?: LocksConfigureAutoLockParameters,
|
|
2960
|
+
options?: LocksConfigureAutoLockOptions,
|
|
2961
|
+
) => LocksConfigureAutoLockRequest {
|
|
2962
|
+
const { client, defaults } = this
|
|
2963
|
+
return function locksConfigureAutoLock(
|
|
2964
|
+
...args: Parameters<SeamHttpLocks['configureAutoLock']>
|
|
2965
|
+
): ReturnType<SeamHttpLocks['configureAutoLock']> {
|
|
2966
|
+
const seam = SeamHttpLocks.fromClient(client, defaults)
|
|
2967
|
+
return seam.configureAutoLock(...args)
|
|
2968
|
+
}
|
|
2969
|
+
}
|
|
2970
|
+
|
|
2942
2971
|
get '/locks/get'(): (
|
|
2943
2972
|
parameters?: LocksGetParameters,
|
|
2944
2973
|
options?: LocksGetOptions,
|
|
@@ -3510,6 +3539,11 @@ export class SeamHttpEndpoints {
|
|
|
3510
3539
|
options?: SeamCustomerV1CustomersAutomationsGetOptions,
|
|
3511
3540
|
) => SeamCustomerV1CustomersAutomationsGetRequest {
|
|
3512
3541
|
const { client, defaults } = this
|
|
3542
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
3543
|
+
throw new Error(
|
|
3544
|
+
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
3545
|
+
)
|
|
3546
|
+
}
|
|
3513
3547
|
return function seamCustomerV1CustomersAutomationsGet(
|
|
3514
3548
|
...args: Parameters<SeamHttpSeamCustomerV1CustomersAutomations['get']>
|
|
3515
3549
|
): ReturnType<SeamHttpSeamCustomerV1CustomersAutomations['get']> {
|
|
@@ -3526,6 +3560,11 @@ export class SeamHttpEndpoints {
|
|
|
3526
3560
|
options?: SeamCustomerV1CustomersAutomationsUpdateOptions,
|
|
3527
3561
|
) => SeamCustomerV1CustomersAutomationsUpdateRequest {
|
|
3528
3562
|
const { client, defaults } = this
|
|
3563
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
3564
|
+
throw new Error(
|
|
3565
|
+
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
3566
|
+
)
|
|
3567
|
+
}
|
|
3529
3568
|
return function seamCustomerV1CustomersAutomationsUpdate(
|
|
3530
3569
|
...args: Parameters<SeamHttpSeamCustomerV1CustomersAutomations['update']>
|
|
3531
3570
|
): ReturnType<SeamHttpSeamCustomerV1CustomersAutomations['update']> {
|
|
@@ -3560,6 +3599,11 @@ export class SeamHttpEndpoints {
|
|
|
3560
3599
|
options?: SeamCustomerV1CustomersMeOptions,
|
|
3561
3600
|
) => SeamCustomerV1CustomersMeRequest {
|
|
3562
3601
|
const { client, defaults } = this
|
|
3602
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
3603
|
+
throw new Error(
|
|
3604
|
+
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
3605
|
+
)
|
|
3606
|
+
}
|
|
3563
3607
|
return function seamCustomerV1CustomersMe(
|
|
3564
3608
|
...args: Parameters<SeamHttpSeamCustomerV1Customers['me']>
|
|
3565
3609
|
): ReturnType<SeamHttpSeamCustomerV1Customers['me']> {
|
|
@@ -3682,6 +3726,29 @@ export class SeamHttpEndpoints {
|
|
|
3682
3726
|
}
|
|
3683
3727
|
}
|
|
3684
3728
|
|
|
3729
|
+
get '/seam/customer/v1/reservations/list_access_grants'(): (
|
|
3730
|
+
parameters?: SeamCustomerV1ReservationsListAccessGrantsParameters,
|
|
3731
|
+
options?: SeamCustomerV1ReservationsListAccessGrantsOptions,
|
|
3732
|
+
) => SeamCustomerV1ReservationsListAccessGrantsRequest {
|
|
3733
|
+
const { client, defaults } = this
|
|
3734
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
3735
|
+
throw new Error(
|
|
3736
|
+
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
3737
|
+
)
|
|
3738
|
+
}
|
|
3739
|
+
return function seamCustomerV1ReservationsListAccessGrants(
|
|
3740
|
+
...args: Parameters<
|
|
3741
|
+
SeamHttpSeamCustomerV1Reservations['listAccessGrants']
|
|
3742
|
+
>
|
|
3743
|
+
): ReturnType<SeamHttpSeamCustomerV1Reservations['listAccessGrants']> {
|
|
3744
|
+
const seam = SeamHttpSeamCustomerV1Reservations.fromClient(
|
|
3745
|
+
client,
|
|
3746
|
+
defaults,
|
|
3747
|
+
)
|
|
3748
|
+
return seam.listAccessGrants(...args)
|
|
3749
|
+
}
|
|
3750
|
+
}
|
|
3751
|
+
|
|
3685
3752
|
get '/seam/customer/v1/settings/get'(): (
|
|
3686
3753
|
parameters?: SeamCustomerV1SettingsGetParameters,
|
|
3687
3754
|
options?: SeamCustomerV1SettingsGetOptions,
|
|
@@ -3803,6 +3870,11 @@ export class SeamHttpEndpoints {
|
|
|
3803
3870
|
options?: SeamCustomerV1SpacesPushCommonAreasOptions,
|
|
3804
3871
|
) => SeamCustomerV1SpacesPushCommonAreasRequest {
|
|
3805
3872
|
const { client, defaults } = this
|
|
3873
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
3874
|
+
throw new Error(
|
|
3875
|
+
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
3876
|
+
)
|
|
3877
|
+
}
|
|
3806
3878
|
return function seamCustomerV1SpacesPushCommonAreas(
|
|
3807
3879
|
...args: Parameters<SeamHttpSeamCustomerV1Spaces['pushCommonAreas']>
|
|
3808
3880
|
): ReturnType<SeamHttpSeamCustomerV1Spaces['pushCommonAreas']> {
|
|
@@ -5059,6 +5131,7 @@ export type SeamHttpEndpointQueryPaths =
|
|
|
5059
5131
|
| '/seam/customer/v1/portals/get'
|
|
5060
5132
|
| '/seam/customer/v1/reservations/get'
|
|
5061
5133
|
| '/seam/customer/v1/reservations/list'
|
|
5134
|
+
| '/seam/customer/v1/reservations/list_access_grants'
|
|
5062
5135
|
| '/seam/customer/v1/settings/get'
|
|
5063
5136
|
| '/seam/customer/v1/settings/vertical_resource_aliases/get'
|
|
5064
5137
|
| '/seam/customer/v1/spaces/list'
|
|
@@ -5184,6 +5257,7 @@ export type SeamHttpEndpointMutationPaths =
|
|
|
5184
5257
|
| '/devices/simulate/remove'
|
|
5185
5258
|
| '/devices/unmanaged/update'
|
|
5186
5259
|
| '/instant_keys/delete'
|
|
5260
|
+
| '/locks/configure_auto_lock'
|
|
5187
5261
|
| '/locks/lock_door'
|
|
5188
5262
|
| '/locks/unlock_door'
|
|
5189
5263
|
| '/locks/simulate/keypad_code_entry'
|
package/src/lib/version.ts
CHANGED