@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
package/dist/connect.cjs
CHANGED
|
@@ -1346,6 +1346,11 @@ var SeamHttpAccessCodes = class _SeamHttpAccessCodes {
|
|
|
1346
1346
|
});
|
|
1347
1347
|
}
|
|
1348
1348
|
getTimeline(parameters, options = {}) {
|
|
1349
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
1350
|
+
throw new Error(
|
|
1351
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
1352
|
+
);
|
|
1353
|
+
}
|
|
1349
1354
|
return new SeamHttpRequest(this, {
|
|
1350
1355
|
pathname: "/access_codes/get_timeline",
|
|
1351
1356
|
method: "POST",
|
|
@@ -4202,6 +4207,11 @@ var SeamHttpCustomersReservations = class _SeamHttpCustomersReservations {
|
|
|
4202
4207
|
static ltsVersion = seamApiLtsVersion;
|
|
4203
4208
|
constructor(apiKeyOrOptions = {}) {
|
|
4204
4209
|
const options = parseOptions(apiKeyOrOptions);
|
|
4210
|
+
if (!options.isUndocumentedApiEnabled) {
|
|
4211
|
+
throw new Error(
|
|
4212
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
4213
|
+
);
|
|
4214
|
+
}
|
|
4205
4215
|
this.client = "client" in options ? options.client : createClient(options);
|
|
4206
4216
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
4207
4217
|
}
|
|
@@ -4279,6 +4289,11 @@ var SeamHttpCustomersReservations = class _SeamHttpCustomersReservations {
|
|
|
4279
4289
|
await clientSessions.get();
|
|
4280
4290
|
}
|
|
4281
4291
|
createDeepLink(parameters, options = {}) {
|
|
4292
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
4293
|
+
throw new Error(
|
|
4294
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
4295
|
+
);
|
|
4296
|
+
}
|
|
4282
4297
|
return new SeamHttpRequest(this, {
|
|
4283
4298
|
pathname: "/customers/reservations/create_deep_link",
|
|
4284
4299
|
method: "POST",
|
|
@@ -5217,6 +5232,15 @@ var SeamHttpLocks = class _SeamHttpLocks {
|
|
|
5217
5232
|
get simulate() {
|
|
5218
5233
|
return SeamHttpLocksSimulate.fromClient(this.client, this.defaults);
|
|
5219
5234
|
}
|
|
5235
|
+
configureAutoLock(parameters, options = {}) {
|
|
5236
|
+
return new SeamHttpRequest(this, {
|
|
5237
|
+
pathname: "/locks/configure_auto_lock",
|
|
5238
|
+
method: "POST",
|
|
5239
|
+
body: parameters,
|
|
5240
|
+
responseKey: "action_attempt",
|
|
5241
|
+
options
|
|
5242
|
+
});
|
|
5243
|
+
}
|
|
5220
5244
|
get(parameters, options = {}) {
|
|
5221
5245
|
return new SeamHttpRequest(this, {
|
|
5222
5246
|
pathname: "/locks/get",
|
|
@@ -6888,6 +6912,11 @@ var SeamHttpSeamCustomerV1CustomersAutomations = class _SeamHttpSeamCustomerV1Cu
|
|
|
6888
6912
|
static ltsVersion = seamApiLtsVersion;
|
|
6889
6913
|
constructor(apiKeyOrOptions = {}) {
|
|
6890
6914
|
const options = parseOptions(apiKeyOrOptions);
|
|
6915
|
+
if (!options.isUndocumentedApiEnabled) {
|
|
6916
|
+
throw new Error(
|
|
6917
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6918
|
+
);
|
|
6919
|
+
}
|
|
6891
6920
|
this.client = "client" in options ? options.client : createClient(options);
|
|
6892
6921
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
6893
6922
|
}
|
|
@@ -6968,6 +6997,11 @@ var SeamHttpSeamCustomerV1CustomersAutomations = class _SeamHttpSeamCustomerV1Cu
|
|
|
6968
6997
|
await clientSessions.get();
|
|
6969
6998
|
}
|
|
6970
6999
|
get(parameters, options = {}) {
|
|
7000
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7001
|
+
throw new Error(
|
|
7002
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7003
|
+
);
|
|
7004
|
+
}
|
|
6971
7005
|
return new SeamHttpRequest(this, {
|
|
6972
7006
|
pathname: "/seam/customer/v1/customers/automations/get",
|
|
6973
7007
|
method: "GET",
|
|
@@ -6977,6 +7011,11 @@ var SeamHttpSeamCustomerV1CustomersAutomations = class _SeamHttpSeamCustomerV1Cu
|
|
|
6977
7011
|
});
|
|
6978
7012
|
}
|
|
6979
7013
|
update(parameters, options = {}) {
|
|
7014
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7015
|
+
throw new Error(
|
|
7016
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7017
|
+
);
|
|
7018
|
+
}
|
|
6980
7019
|
return new SeamHttpRequest(this, {
|
|
6981
7020
|
pathname: "/seam/customer/v1/customers/automations/update",
|
|
6982
7021
|
method: "PATCH",
|
|
@@ -6995,6 +7034,11 @@ var SeamHttpSeamCustomerV1Customers = class _SeamHttpSeamCustomerV1Customers {
|
|
|
6995
7034
|
static ltsVersion = seamApiLtsVersion;
|
|
6996
7035
|
constructor(apiKeyOrOptions = {}) {
|
|
6997
7036
|
const options = parseOptions(apiKeyOrOptions);
|
|
7037
|
+
if (!options.isUndocumentedApiEnabled) {
|
|
7038
|
+
throw new Error(
|
|
7039
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7040
|
+
);
|
|
7041
|
+
}
|
|
6998
7042
|
this.client = "client" in options ? options.client : createClient(options);
|
|
6999
7043
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
7000
7044
|
}
|
|
@@ -7095,6 +7139,11 @@ var SeamHttpSeamCustomerV1Customers = class _SeamHttpSeamCustomerV1Customers {
|
|
|
7095
7139
|
});
|
|
7096
7140
|
}
|
|
7097
7141
|
me(parameters, options = {}) {
|
|
7142
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7143
|
+
throw new Error(
|
|
7144
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7145
|
+
);
|
|
7146
|
+
}
|
|
7098
7147
|
return new SeamHttpRequest(this, {
|
|
7099
7148
|
pathname: "/seam/customer/v1/customers/me",
|
|
7100
7149
|
method: "GET",
|
|
@@ -7554,6 +7603,20 @@ var SeamHttpSeamCustomerV1Reservations = class _SeamHttpSeamCustomerV1Reservatio
|
|
|
7554
7603
|
options
|
|
7555
7604
|
});
|
|
7556
7605
|
}
|
|
7606
|
+
listAccessGrants(parameters, options = {}) {
|
|
7607
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7608
|
+
throw new Error(
|
|
7609
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7610
|
+
);
|
|
7611
|
+
}
|
|
7612
|
+
return new SeamHttpRequest(this, {
|
|
7613
|
+
pathname: "/seam/customer/v1/reservations/list_access_grants",
|
|
7614
|
+
method: "POST",
|
|
7615
|
+
body: parameters,
|
|
7616
|
+
responseKey: "access_grants",
|
|
7617
|
+
options
|
|
7618
|
+
});
|
|
7619
|
+
}
|
|
7557
7620
|
};
|
|
7558
7621
|
|
|
7559
7622
|
// src/lib/seam/connect/routes/seam/customer/v1/settings/vertical-resource-aliases/vertical-resource-aliases.ts
|
|
@@ -7807,6 +7870,11 @@ var SeamHttpSeamCustomerV1Spaces = class _SeamHttpSeamCustomerV1Spaces {
|
|
|
7807
7870
|
static ltsVersion = seamApiLtsVersion;
|
|
7808
7871
|
constructor(apiKeyOrOptions = {}) {
|
|
7809
7872
|
const options = parseOptions(apiKeyOrOptions);
|
|
7873
|
+
if (!options.isUndocumentedApiEnabled) {
|
|
7874
|
+
throw new Error(
|
|
7875
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7876
|
+
);
|
|
7877
|
+
}
|
|
7810
7878
|
this.client = "client" in options ? options.client : createClient(options);
|
|
7811
7879
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
7812
7880
|
}
|
|
@@ -7926,6 +7994,11 @@ var SeamHttpSeamCustomerV1Spaces = class _SeamHttpSeamCustomerV1Spaces {
|
|
|
7926
7994
|
});
|
|
7927
7995
|
}
|
|
7928
7996
|
pushCommonAreas(parameters, options = {}) {
|
|
7997
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7998
|
+
throw new Error(
|
|
7999
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
8000
|
+
);
|
|
8001
|
+
}
|
|
7929
8002
|
return new SeamHttpRequest(this, {
|
|
7930
8003
|
pathname: "/seam/customer/v1/spaces/push_common_areas",
|
|
7931
8004
|
method: "POST",
|
|
@@ -8066,6 +8139,11 @@ var SeamHttpSeamCustomerV1 = class _SeamHttpSeamCustomerV1 {
|
|
|
8066
8139
|
static ltsVersion = seamApiLtsVersion;
|
|
8067
8140
|
constructor(apiKeyOrOptions = {}) {
|
|
8068
8141
|
const options = parseOptions(apiKeyOrOptions);
|
|
8142
|
+
if (!options.isUndocumentedApiEnabled) {
|
|
8143
|
+
throw new Error(
|
|
8144
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
8145
|
+
);
|
|
8146
|
+
}
|
|
8069
8147
|
this.client = "client" in options ? options.client : createClient(options);
|
|
8070
8148
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
8071
8149
|
}
|
|
@@ -10633,6 +10711,11 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10633
10711
|
}
|
|
10634
10712
|
get "/access_codes/get_timeline"() {
|
|
10635
10713
|
const { client, defaults } = this;
|
|
10714
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10715
|
+
throw new Error(
|
|
10716
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10717
|
+
);
|
|
10718
|
+
}
|
|
10636
10719
|
return function accessCodesGetTimeline(...args) {
|
|
10637
10720
|
const seam = SeamHttpAccessCodes.fromClient(client, defaults);
|
|
10638
10721
|
return seam.getTimeline(...args);
|
|
@@ -11429,6 +11512,11 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
11429
11512
|
}
|
|
11430
11513
|
get "/customers/reservations/create_deep_link"() {
|
|
11431
11514
|
const { client, defaults } = this;
|
|
11515
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
11516
|
+
throw new Error(
|
|
11517
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
11518
|
+
);
|
|
11519
|
+
}
|
|
11432
11520
|
return function customersReservationsCreateDeepLink(...args) {
|
|
11433
11521
|
const seam = SeamHttpCustomersReservations.fromClient(client, defaults);
|
|
11434
11522
|
return seam.createDeepLink(...args);
|
|
@@ -11579,6 +11667,13 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
11579
11667
|
return seam.list(...args);
|
|
11580
11668
|
};
|
|
11581
11669
|
}
|
|
11670
|
+
get "/locks/configure_auto_lock"() {
|
|
11671
|
+
const { client, defaults } = this;
|
|
11672
|
+
return function locksConfigureAutoLock(...args) {
|
|
11673
|
+
const seam = SeamHttpLocks.fromClient(client, defaults);
|
|
11674
|
+
return seam.configureAutoLock(...args);
|
|
11675
|
+
};
|
|
11676
|
+
}
|
|
11582
11677
|
get "/locks/get"() {
|
|
11583
11678
|
const { client, defaults } = this;
|
|
11584
11679
|
return function locksGet(...args) {
|
|
@@ -11943,6 +12038,11 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
11943
12038
|
}
|
|
11944
12039
|
get "/seam/customer/v1/customers/automations/get"() {
|
|
11945
12040
|
const { client, defaults } = this;
|
|
12041
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
12042
|
+
throw new Error(
|
|
12043
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
12044
|
+
);
|
|
12045
|
+
}
|
|
11946
12046
|
return function seamCustomerV1CustomersAutomationsGet(...args) {
|
|
11947
12047
|
const seam = SeamHttpSeamCustomerV1CustomersAutomations.fromClient(
|
|
11948
12048
|
client,
|
|
@@ -11953,6 +12053,11 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
11953
12053
|
}
|
|
11954
12054
|
get "/seam/customer/v1/customers/automations/update"() {
|
|
11955
12055
|
const { client, defaults } = this;
|
|
12056
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
12057
|
+
throw new Error(
|
|
12058
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
12059
|
+
);
|
|
12060
|
+
}
|
|
11956
12061
|
return function seamCustomerV1CustomersAutomationsUpdate(...args) {
|
|
11957
12062
|
const seam = SeamHttpSeamCustomerV1CustomersAutomations.fromClient(
|
|
11958
12063
|
client,
|
|
@@ -11975,6 +12080,11 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
11975
12080
|
}
|
|
11976
12081
|
get "/seam/customer/v1/customers/me"() {
|
|
11977
12082
|
const { client, defaults } = this;
|
|
12083
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
12084
|
+
throw new Error(
|
|
12085
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
12086
|
+
);
|
|
12087
|
+
}
|
|
11978
12088
|
return function seamCustomerV1CustomersMe(...args) {
|
|
11979
12089
|
const seam = SeamHttpSeamCustomerV1Customers.fromClient(client, defaults);
|
|
11980
12090
|
return seam.me(...args);
|
|
@@ -12058,6 +12168,21 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
12058
12168
|
return seam.list(...args);
|
|
12059
12169
|
};
|
|
12060
12170
|
}
|
|
12171
|
+
get "/seam/customer/v1/reservations/list_access_grants"() {
|
|
12172
|
+
const { client, defaults } = this;
|
|
12173
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
12174
|
+
throw new Error(
|
|
12175
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
12176
|
+
);
|
|
12177
|
+
}
|
|
12178
|
+
return function seamCustomerV1ReservationsListAccessGrants(...args) {
|
|
12179
|
+
const seam = SeamHttpSeamCustomerV1Reservations.fromClient(
|
|
12180
|
+
client,
|
|
12181
|
+
defaults
|
|
12182
|
+
);
|
|
12183
|
+
return seam.listAccessGrants(...args);
|
|
12184
|
+
};
|
|
12185
|
+
}
|
|
12061
12186
|
get "/seam/customer/v1/settings/get"() {
|
|
12062
12187
|
const { client, defaults } = this;
|
|
12063
12188
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
@@ -12135,6 +12260,11 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
12135
12260
|
}
|
|
12136
12261
|
get "/seam/customer/v1/spaces/push_common_areas"() {
|
|
12137
12262
|
const { client, defaults } = this;
|
|
12263
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
12264
|
+
throw new Error(
|
|
12265
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
12266
|
+
);
|
|
12267
|
+
}
|
|
12138
12268
|
return function seamCustomerV1SpacesPushCommonAreas(...args) {
|
|
12139
12269
|
const seam = SeamHttpSeamCustomerV1Spaces.fromClient(client, defaults);
|
|
12140
12270
|
return seam.pushCommonAreas(...args);
|