@seamapi/http 1.109.0 → 1.111.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 +127 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +29 -2
- package/dist/index.cjs +127 -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/portals/portals.d.ts +13 -0
- package/lib/seam/connect/routes/seam/customer/v1/portals/portals.js +12 -0
- package/lib/seam/connect/routes/seam/customer/v1/portals/portals.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 +5 -3
- 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/portals/portals.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 +69 -0
- package/src/lib/version.ts +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1617,6 +1617,11 @@ var SeamHttpAccessCodes = class _SeamHttpAccessCodes {
|
|
|
1617
1617
|
});
|
|
1618
1618
|
}
|
|
1619
1619
|
getTimeline(parameters, options = {}) {
|
|
1620
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
1621
|
+
throw new Error(
|
|
1622
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
1623
|
+
);
|
|
1624
|
+
}
|
|
1620
1625
|
return new SeamHttpRequest(this, {
|
|
1621
1626
|
pathname: "/access_codes/get_timeline",
|
|
1622
1627
|
method: "POST",
|
|
@@ -4473,6 +4478,11 @@ var SeamHttpCustomersReservations = class _SeamHttpCustomersReservations {
|
|
|
4473
4478
|
static ltsVersion = seamApiLtsVersion;
|
|
4474
4479
|
constructor(apiKeyOrOptions = {}) {
|
|
4475
4480
|
const options = parseOptions(apiKeyOrOptions);
|
|
4481
|
+
if (!options.isUndocumentedApiEnabled) {
|
|
4482
|
+
throw new Error(
|
|
4483
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
4484
|
+
);
|
|
4485
|
+
}
|
|
4476
4486
|
this.client = "client" in options ? options.client : createClient(options);
|
|
4477
4487
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
4478
4488
|
}
|
|
@@ -4550,6 +4560,11 @@ var SeamHttpCustomersReservations = class _SeamHttpCustomersReservations {
|
|
|
4550
4560
|
await clientSessions.get();
|
|
4551
4561
|
}
|
|
4552
4562
|
createDeepLink(parameters, options = {}) {
|
|
4563
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
4564
|
+
throw new Error(
|
|
4565
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
4566
|
+
);
|
|
4567
|
+
}
|
|
4553
4568
|
return new SeamHttpRequest(this, {
|
|
4554
4569
|
pathname: "/customers/reservations/create_deep_link",
|
|
4555
4570
|
method: "POST",
|
|
@@ -5488,6 +5503,15 @@ var SeamHttpLocks = class _SeamHttpLocks {
|
|
|
5488
5503
|
get simulate() {
|
|
5489
5504
|
return SeamHttpLocksSimulate.fromClient(this.client, this.defaults);
|
|
5490
5505
|
}
|
|
5506
|
+
configureAutoLock(parameters, options = {}) {
|
|
5507
|
+
return new SeamHttpRequest(this, {
|
|
5508
|
+
pathname: "/locks/configure_auto_lock",
|
|
5509
|
+
method: "POST",
|
|
5510
|
+
body: parameters,
|
|
5511
|
+
responseKey: "action_attempt",
|
|
5512
|
+
options
|
|
5513
|
+
});
|
|
5514
|
+
}
|
|
5491
5515
|
get(parameters, options = {}) {
|
|
5492
5516
|
return new SeamHttpRequest(this, {
|
|
5493
5517
|
pathname: "/locks/get",
|
|
@@ -7159,6 +7183,11 @@ var SeamHttpSeamCustomerV1CustomersAutomations = class _SeamHttpSeamCustomerV1Cu
|
|
|
7159
7183
|
static ltsVersion = seamApiLtsVersion;
|
|
7160
7184
|
constructor(apiKeyOrOptions = {}) {
|
|
7161
7185
|
const options = parseOptions(apiKeyOrOptions);
|
|
7186
|
+
if (!options.isUndocumentedApiEnabled) {
|
|
7187
|
+
throw new Error(
|
|
7188
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7189
|
+
);
|
|
7190
|
+
}
|
|
7162
7191
|
this.client = "client" in options ? options.client : createClient(options);
|
|
7163
7192
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
7164
7193
|
}
|
|
@@ -7239,6 +7268,11 @@ var SeamHttpSeamCustomerV1CustomersAutomations = class _SeamHttpSeamCustomerV1Cu
|
|
|
7239
7268
|
await clientSessions.get();
|
|
7240
7269
|
}
|
|
7241
7270
|
get(parameters, options = {}) {
|
|
7271
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7272
|
+
throw new Error(
|
|
7273
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7274
|
+
);
|
|
7275
|
+
}
|
|
7242
7276
|
return new SeamHttpRequest(this, {
|
|
7243
7277
|
pathname: "/seam/customer/v1/customers/automations/get",
|
|
7244
7278
|
method: "GET",
|
|
@@ -7248,6 +7282,11 @@ var SeamHttpSeamCustomerV1CustomersAutomations = class _SeamHttpSeamCustomerV1Cu
|
|
|
7248
7282
|
});
|
|
7249
7283
|
}
|
|
7250
7284
|
update(parameters, options = {}) {
|
|
7285
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7286
|
+
throw new Error(
|
|
7287
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7288
|
+
);
|
|
7289
|
+
}
|
|
7251
7290
|
return new SeamHttpRequest(this, {
|
|
7252
7291
|
pathname: "/seam/customer/v1/customers/automations/update",
|
|
7253
7292
|
method: "PATCH",
|
|
@@ -7266,6 +7305,11 @@ var SeamHttpSeamCustomerV1Customers = class _SeamHttpSeamCustomerV1Customers {
|
|
|
7266
7305
|
static ltsVersion = seamApiLtsVersion;
|
|
7267
7306
|
constructor(apiKeyOrOptions = {}) {
|
|
7268
7307
|
const options = parseOptions(apiKeyOrOptions);
|
|
7308
|
+
if (!options.isUndocumentedApiEnabled) {
|
|
7309
|
+
throw new Error(
|
|
7310
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7311
|
+
);
|
|
7312
|
+
}
|
|
7269
7313
|
this.client = "client" in options ? options.client : createClient(options);
|
|
7270
7314
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
7271
7315
|
}
|
|
@@ -7366,6 +7410,11 @@ var SeamHttpSeamCustomerV1Customers = class _SeamHttpSeamCustomerV1Customers {
|
|
|
7366
7410
|
});
|
|
7367
7411
|
}
|
|
7368
7412
|
me(parameters, options = {}) {
|
|
7413
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7414
|
+
throw new Error(
|
|
7415
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7416
|
+
);
|
|
7417
|
+
}
|
|
7369
7418
|
return new SeamHttpRequest(this, {
|
|
7370
7419
|
pathname: "/seam/customer/v1/customers/me",
|
|
7371
7420
|
method: "GET",
|
|
@@ -7703,6 +7752,20 @@ var SeamHttpSeamCustomerV1Portals = class _SeamHttpSeamCustomerV1Portals {
|
|
|
7703
7752
|
options
|
|
7704
7753
|
});
|
|
7705
7754
|
}
|
|
7755
|
+
update(parameters, options = {}) {
|
|
7756
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7757
|
+
throw new Error(
|
|
7758
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7759
|
+
);
|
|
7760
|
+
}
|
|
7761
|
+
return new SeamHttpRequest(this, {
|
|
7762
|
+
pathname: "/seam/customer/v1/portals/update",
|
|
7763
|
+
method: "PATCH",
|
|
7764
|
+
body: parameters,
|
|
7765
|
+
responseKey: void 0,
|
|
7766
|
+
options
|
|
7767
|
+
});
|
|
7768
|
+
}
|
|
7706
7769
|
};
|
|
7707
7770
|
|
|
7708
7771
|
// src/lib/seam/connect/routes/seam/customer/v1/reservations/reservations.ts
|
|
@@ -8092,6 +8155,11 @@ var SeamHttpSeamCustomerV1Spaces = class _SeamHttpSeamCustomerV1Spaces {
|
|
|
8092
8155
|
static ltsVersion = seamApiLtsVersion;
|
|
8093
8156
|
constructor(apiKeyOrOptions = {}) {
|
|
8094
8157
|
const options = parseOptions(apiKeyOrOptions);
|
|
8158
|
+
if (!options.isUndocumentedApiEnabled) {
|
|
8159
|
+
throw new Error(
|
|
8160
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
8161
|
+
);
|
|
8162
|
+
}
|
|
8095
8163
|
this.client = "client" in options ? options.client : createClient(options);
|
|
8096
8164
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
8097
8165
|
}
|
|
@@ -8211,6 +8279,11 @@ var SeamHttpSeamCustomerV1Spaces = class _SeamHttpSeamCustomerV1Spaces {
|
|
|
8211
8279
|
});
|
|
8212
8280
|
}
|
|
8213
8281
|
pushCommonAreas(parameters, options = {}) {
|
|
8282
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
8283
|
+
throw new Error(
|
|
8284
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
8285
|
+
);
|
|
8286
|
+
}
|
|
8214
8287
|
return new SeamHttpRequest(this, {
|
|
8215
8288
|
pathname: "/seam/customer/v1/spaces/push_common_areas",
|
|
8216
8289
|
method: "POST",
|
|
@@ -8351,6 +8424,11 @@ var SeamHttpSeamCustomerV1 = class _SeamHttpSeamCustomerV1 {
|
|
|
8351
8424
|
static ltsVersion = seamApiLtsVersion;
|
|
8352
8425
|
constructor(apiKeyOrOptions = {}) {
|
|
8353
8426
|
const options = parseOptions(apiKeyOrOptions);
|
|
8427
|
+
if (!options.isUndocumentedApiEnabled) {
|
|
8428
|
+
throw new Error(
|
|
8429
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
8430
|
+
);
|
|
8431
|
+
}
|
|
8354
8432
|
this.client = "client" in options ? options.client : createClient(options);
|
|
8355
8433
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
8356
8434
|
}
|
|
@@ -10918,6 +10996,11 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10918
10996
|
}
|
|
10919
10997
|
get "/access_codes/get_timeline"() {
|
|
10920
10998
|
const { client, defaults } = this;
|
|
10999
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
11000
|
+
throw new Error(
|
|
11001
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
11002
|
+
);
|
|
11003
|
+
}
|
|
10921
11004
|
return function accessCodesGetTimeline(...args) {
|
|
10922
11005
|
const seam = SeamHttpAccessCodes.fromClient(client, defaults);
|
|
10923
11006
|
return seam.getTimeline(...args);
|
|
@@ -11714,6 +11797,11 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
11714
11797
|
}
|
|
11715
11798
|
get "/customers/reservations/create_deep_link"() {
|
|
11716
11799
|
const { client, defaults } = this;
|
|
11800
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
11801
|
+
throw new Error(
|
|
11802
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
11803
|
+
);
|
|
11804
|
+
}
|
|
11717
11805
|
return function customersReservationsCreateDeepLink(...args) {
|
|
11718
11806
|
const seam = SeamHttpCustomersReservations.fromClient(client, defaults);
|
|
11719
11807
|
return seam.createDeepLink(...args);
|
|
@@ -11864,6 +11952,13 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
11864
11952
|
return seam.list(...args);
|
|
11865
11953
|
};
|
|
11866
11954
|
}
|
|
11955
|
+
get "/locks/configure_auto_lock"() {
|
|
11956
|
+
const { client, defaults } = this;
|
|
11957
|
+
return function locksConfigureAutoLock(...args) {
|
|
11958
|
+
const seam = SeamHttpLocks.fromClient(client, defaults);
|
|
11959
|
+
return seam.configureAutoLock(...args);
|
|
11960
|
+
};
|
|
11961
|
+
}
|
|
11867
11962
|
get "/locks/get"() {
|
|
11868
11963
|
const { client, defaults } = this;
|
|
11869
11964
|
return function locksGet(...args) {
|
|
@@ -12228,6 +12323,11 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
12228
12323
|
}
|
|
12229
12324
|
get "/seam/customer/v1/customers/automations/get"() {
|
|
12230
12325
|
const { client, defaults } = this;
|
|
12326
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
12327
|
+
throw new Error(
|
|
12328
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
12329
|
+
);
|
|
12330
|
+
}
|
|
12231
12331
|
return function seamCustomerV1CustomersAutomationsGet(...args) {
|
|
12232
12332
|
const seam = SeamHttpSeamCustomerV1CustomersAutomations.fromClient(
|
|
12233
12333
|
client,
|
|
@@ -12238,6 +12338,11 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
12238
12338
|
}
|
|
12239
12339
|
get "/seam/customer/v1/customers/automations/update"() {
|
|
12240
12340
|
const { client, defaults } = this;
|
|
12341
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
12342
|
+
throw new Error(
|
|
12343
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
12344
|
+
);
|
|
12345
|
+
}
|
|
12241
12346
|
return function seamCustomerV1CustomersAutomationsUpdate(...args) {
|
|
12242
12347
|
const seam = SeamHttpSeamCustomerV1CustomersAutomations.fromClient(
|
|
12243
12348
|
client,
|
|
@@ -12260,6 +12365,11 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
12260
12365
|
}
|
|
12261
12366
|
get "/seam/customer/v1/customers/me"() {
|
|
12262
12367
|
const { client, defaults } = this;
|
|
12368
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
12369
|
+
throw new Error(
|
|
12370
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
12371
|
+
);
|
|
12372
|
+
}
|
|
12263
12373
|
return function seamCustomerV1CustomersMe(...args) {
|
|
12264
12374
|
const seam = SeamHttpSeamCustomerV1Customers.fromClient(client, defaults);
|
|
12265
12375
|
return seam.me(...args);
|
|
@@ -12313,6 +12423,18 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
12313
12423
|
return seam.get(...args);
|
|
12314
12424
|
};
|
|
12315
12425
|
}
|
|
12426
|
+
get "/seam/customer/v1/portals/update"() {
|
|
12427
|
+
const { client, defaults } = this;
|
|
12428
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
12429
|
+
throw new Error(
|
|
12430
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
12431
|
+
);
|
|
12432
|
+
}
|
|
12433
|
+
return function seamCustomerV1PortalsUpdate(...args) {
|
|
12434
|
+
const seam = SeamHttpSeamCustomerV1Portals.fromClient(client, defaults);
|
|
12435
|
+
return seam.update(...args);
|
|
12436
|
+
};
|
|
12437
|
+
}
|
|
12316
12438
|
get "/seam/customer/v1/reservations/get"() {
|
|
12317
12439
|
const { client, defaults } = this;
|
|
12318
12440
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
@@ -12435,6 +12557,11 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
12435
12557
|
}
|
|
12436
12558
|
get "/seam/customer/v1/spaces/push_common_areas"() {
|
|
12437
12559
|
const { client, defaults } = this;
|
|
12560
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
12561
|
+
throw new Error(
|
|
12562
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
12563
|
+
);
|
|
12564
|
+
}
|
|
12438
12565
|
return function seamCustomerV1SpacesPushCommonAreas(...args) {
|
|
12439
12566
|
const seam = SeamHttpSeamCustomerV1Spaces.fromClient(client, defaults);
|
|
12440
12567
|
return seam.pushCommonAreas(...args);
|