@seamapi/http 1.109.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 +101 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +15 -2
- package/dist/index.cjs +101 -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/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 +3 -2
- package/lib/seam/connect/routes/seam-http-endpoints.js +25 -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/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 +47 -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",
|
|
@@ -7821,6 +7870,11 @@ var SeamHttpSeamCustomerV1Spaces = class _SeamHttpSeamCustomerV1Spaces {
|
|
|
7821
7870
|
static ltsVersion = seamApiLtsVersion;
|
|
7822
7871
|
constructor(apiKeyOrOptions = {}) {
|
|
7823
7872
|
const options = parseOptions(apiKeyOrOptions);
|
|
7873
|
+
if (!options.isUndocumentedApiEnabled) {
|
|
7874
|
+
throw new Error(
|
|
7875
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7876
|
+
);
|
|
7877
|
+
}
|
|
7824
7878
|
this.client = "client" in options ? options.client : createClient(options);
|
|
7825
7879
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
7826
7880
|
}
|
|
@@ -7940,6 +7994,11 @@ var SeamHttpSeamCustomerV1Spaces = class _SeamHttpSeamCustomerV1Spaces {
|
|
|
7940
7994
|
});
|
|
7941
7995
|
}
|
|
7942
7996
|
pushCommonAreas(parameters, options = {}) {
|
|
7997
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7998
|
+
throw new Error(
|
|
7999
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
8000
|
+
);
|
|
8001
|
+
}
|
|
7943
8002
|
return new SeamHttpRequest(this, {
|
|
7944
8003
|
pathname: "/seam/customer/v1/spaces/push_common_areas",
|
|
7945
8004
|
method: "POST",
|
|
@@ -8080,6 +8139,11 @@ var SeamHttpSeamCustomerV1 = class _SeamHttpSeamCustomerV1 {
|
|
|
8080
8139
|
static ltsVersion = seamApiLtsVersion;
|
|
8081
8140
|
constructor(apiKeyOrOptions = {}) {
|
|
8082
8141
|
const options = parseOptions(apiKeyOrOptions);
|
|
8142
|
+
if (!options.isUndocumentedApiEnabled) {
|
|
8143
|
+
throw new Error(
|
|
8144
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
8145
|
+
);
|
|
8146
|
+
}
|
|
8083
8147
|
this.client = "client" in options ? options.client : createClient(options);
|
|
8084
8148
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
8085
8149
|
}
|
|
@@ -10647,6 +10711,11 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10647
10711
|
}
|
|
10648
10712
|
get "/access_codes/get_timeline"() {
|
|
10649
10713
|
const { client, defaults } = this;
|
|
10714
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10715
|
+
throw new Error(
|
|
10716
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10717
|
+
);
|
|
10718
|
+
}
|
|
10650
10719
|
return function accessCodesGetTimeline(...args) {
|
|
10651
10720
|
const seam = SeamHttpAccessCodes.fromClient(client, defaults);
|
|
10652
10721
|
return seam.getTimeline(...args);
|
|
@@ -11443,6 +11512,11 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
11443
11512
|
}
|
|
11444
11513
|
get "/customers/reservations/create_deep_link"() {
|
|
11445
11514
|
const { client, defaults } = this;
|
|
11515
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
11516
|
+
throw new Error(
|
|
11517
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
11518
|
+
);
|
|
11519
|
+
}
|
|
11446
11520
|
return function customersReservationsCreateDeepLink(...args) {
|
|
11447
11521
|
const seam = SeamHttpCustomersReservations.fromClient(client, defaults);
|
|
11448
11522
|
return seam.createDeepLink(...args);
|
|
@@ -11593,6 +11667,13 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
11593
11667
|
return seam.list(...args);
|
|
11594
11668
|
};
|
|
11595
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
|
+
}
|
|
11596
11677
|
get "/locks/get"() {
|
|
11597
11678
|
const { client, defaults } = this;
|
|
11598
11679
|
return function locksGet(...args) {
|
|
@@ -11957,6 +12038,11 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
11957
12038
|
}
|
|
11958
12039
|
get "/seam/customer/v1/customers/automations/get"() {
|
|
11959
12040
|
const { client, defaults } = this;
|
|
12041
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
12042
|
+
throw new Error(
|
|
12043
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
12044
|
+
);
|
|
12045
|
+
}
|
|
11960
12046
|
return function seamCustomerV1CustomersAutomationsGet(...args) {
|
|
11961
12047
|
const seam = SeamHttpSeamCustomerV1CustomersAutomations.fromClient(
|
|
11962
12048
|
client,
|
|
@@ -11967,6 +12053,11 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
11967
12053
|
}
|
|
11968
12054
|
get "/seam/customer/v1/customers/automations/update"() {
|
|
11969
12055
|
const { client, defaults } = this;
|
|
12056
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
12057
|
+
throw new Error(
|
|
12058
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
12059
|
+
);
|
|
12060
|
+
}
|
|
11970
12061
|
return function seamCustomerV1CustomersAutomationsUpdate(...args) {
|
|
11971
12062
|
const seam = SeamHttpSeamCustomerV1CustomersAutomations.fromClient(
|
|
11972
12063
|
client,
|
|
@@ -11989,6 +12080,11 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
11989
12080
|
}
|
|
11990
12081
|
get "/seam/customer/v1/customers/me"() {
|
|
11991
12082
|
const { client, defaults } = this;
|
|
12083
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
12084
|
+
throw new Error(
|
|
12085
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
12086
|
+
);
|
|
12087
|
+
}
|
|
11992
12088
|
return function seamCustomerV1CustomersMe(...args) {
|
|
11993
12089
|
const seam = SeamHttpSeamCustomerV1Customers.fromClient(client, defaults);
|
|
11994
12090
|
return seam.me(...args);
|
|
@@ -12164,6 +12260,11 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
12164
12260
|
}
|
|
12165
12261
|
get "/seam/customer/v1/spaces/push_common_areas"() {
|
|
12166
12262
|
const { client, defaults } = this;
|
|
12263
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
12264
|
+
throw new Error(
|
|
12265
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
12266
|
+
);
|
|
12267
|
+
}
|
|
12167
12268
|
return function seamCustomerV1SpacesPushCommonAreas(...args) {
|
|
12168
12269
|
const seam = SeamHttpSeamCustomerV1Spaces.fromClient(client, defaults);
|
|
12169
12270
|
return seam.pushCommonAreas(...args);
|