@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/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",
|
|
@@ -7825,6 +7874,20 @@ var SeamHttpSeamCustomerV1Reservations = class _SeamHttpSeamCustomerV1Reservatio
|
|
|
7825
7874
|
options
|
|
7826
7875
|
});
|
|
7827
7876
|
}
|
|
7877
|
+
listAccessGrants(parameters, options = {}) {
|
|
7878
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7879
|
+
throw new Error(
|
|
7880
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7881
|
+
);
|
|
7882
|
+
}
|
|
7883
|
+
return new SeamHttpRequest(this, {
|
|
7884
|
+
pathname: "/seam/customer/v1/reservations/list_access_grants",
|
|
7885
|
+
method: "POST",
|
|
7886
|
+
body: parameters,
|
|
7887
|
+
responseKey: "access_grants",
|
|
7888
|
+
options
|
|
7889
|
+
});
|
|
7890
|
+
}
|
|
7828
7891
|
};
|
|
7829
7892
|
|
|
7830
7893
|
// src/lib/seam/connect/routes/seam/customer/v1/settings/vertical-resource-aliases/vertical-resource-aliases.ts
|
|
@@ -8078,6 +8141,11 @@ var SeamHttpSeamCustomerV1Spaces = class _SeamHttpSeamCustomerV1Spaces {
|
|
|
8078
8141
|
static ltsVersion = seamApiLtsVersion;
|
|
8079
8142
|
constructor(apiKeyOrOptions = {}) {
|
|
8080
8143
|
const options = parseOptions(apiKeyOrOptions);
|
|
8144
|
+
if (!options.isUndocumentedApiEnabled) {
|
|
8145
|
+
throw new Error(
|
|
8146
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
8147
|
+
);
|
|
8148
|
+
}
|
|
8081
8149
|
this.client = "client" in options ? options.client : createClient(options);
|
|
8082
8150
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
8083
8151
|
}
|
|
@@ -8197,6 +8265,11 @@ var SeamHttpSeamCustomerV1Spaces = class _SeamHttpSeamCustomerV1Spaces {
|
|
|
8197
8265
|
});
|
|
8198
8266
|
}
|
|
8199
8267
|
pushCommonAreas(parameters, options = {}) {
|
|
8268
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
8269
|
+
throw new Error(
|
|
8270
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
8271
|
+
);
|
|
8272
|
+
}
|
|
8200
8273
|
return new SeamHttpRequest(this, {
|
|
8201
8274
|
pathname: "/seam/customer/v1/spaces/push_common_areas",
|
|
8202
8275
|
method: "POST",
|
|
@@ -8337,6 +8410,11 @@ var SeamHttpSeamCustomerV1 = class _SeamHttpSeamCustomerV1 {
|
|
|
8337
8410
|
static ltsVersion = seamApiLtsVersion;
|
|
8338
8411
|
constructor(apiKeyOrOptions = {}) {
|
|
8339
8412
|
const options = parseOptions(apiKeyOrOptions);
|
|
8413
|
+
if (!options.isUndocumentedApiEnabled) {
|
|
8414
|
+
throw new Error(
|
|
8415
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
8416
|
+
);
|
|
8417
|
+
}
|
|
8340
8418
|
this.client = "client" in options ? options.client : createClient(options);
|
|
8341
8419
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
8342
8420
|
}
|
|
@@ -10904,6 +10982,11 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10904
10982
|
}
|
|
10905
10983
|
get "/access_codes/get_timeline"() {
|
|
10906
10984
|
const { client, defaults } = this;
|
|
10985
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10986
|
+
throw new Error(
|
|
10987
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10988
|
+
);
|
|
10989
|
+
}
|
|
10907
10990
|
return function accessCodesGetTimeline(...args) {
|
|
10908
10991
|
const seam = SeamHttpAccessCodes.fromClient(client, defaults);
|
|
10909
10992
|
return seam.getTimeline(...args);
|
|
@@ -11700,6 +11783,11 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
11700
11783
|
}
|
|
11701
11784
|
get "/customers/reservations/create_deep_link"() {
|
|
11702
11785
|
const { client, defaults } = this;
|
|
11786
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
11787
|
+
throw new Error(
|
|
11788
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
11789
|
+
);
|
|
11790
|
+
}
|
|
11703
11791
|
return function customersReservationsCreateDeepLink(...args) {
|
|
11704
11792
|
const seam = SeamHttpCustomersReservations.fromClient(client, defaults);
|
|
11705
11793
|
return seam.createDeepLink(...args);
|
|
@@ -11850,6 +11938,13 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
11850
11938
|
return seam.list(...args);
|
|
11851
11939
|
};
|
|
11852
11940
|
}
|
|
11941
|
+
get "/locks/configure_auto_lock"() {
|
|
11942
|
+
const { client, defaults } = this;
|
|
11943
|
+
return function locksConfigureAutoLock(...args) {
|
|
11944
|
+
const seam = SeamHttpLocks.fromClient(client, defaults);
|
|
11945
|
+
return seam.configureAutoLock(...args);
|
|
11946
|
+
};
|
|
11947
|
+
}
|
|
11853
11948
|
get "/locks/get"() {
|
|
11854
11949
|
const { client, defaults } = this;
|
|
11855
11950
|
return function locksGet(...args) {
|
|
@@ -12214,6 +12309,11 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
12214
12309
|
}
|
|
12215
12310
|
get "/seam/customer/v1/customers/automations/get"() {
|
|
12216
12311
|
const { client, defaults } = this;
|
|
12312
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
12313
|
+
throw new Error(
|
|
12314
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
12315
|
+
);
|
|
12316
|
+
}
|
|
12217
12317
|
return function seamCustomerV1CustomersAutomationsGet(...args) {
|
|
12218
12318
|
const seam = SeamHttpSeamCustomerV1CustomersAutomations.fromClient(
|
|
12219
12319
|
client,
|
|
@@ -12224,6 +12324,11 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
12224
12324
|
}
|
|
12225
12325
|
get "/seam/customer/v1/customers/automations/update"() {
|
|
12226
12326
|
const { client, defaults } = this;
|
|
12327
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
12328
|
+
throw new Error(
|
|
12329
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
12330
|
+
);
|
|
12331
|
+
}
|
|
12227
12332
|
return function seamCustomerV1CustomersAutomationsUpdate(...args) {
|
|
12228
12333
|
const seam = SeamHttpSeamCustomerV1CustomersAutomations.fromClient(
|
|
12229
12334
|
client,
|
|
@@ -12246,6 +12351,11 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
12246
12351
|
}
|
|
12247
12352
|
get "/seam/customer/v1/customers/me"() {
|
|
12248
12353
|
const { client, defaults } = this;
|
|
12354
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
12355
|
+
throw new Error(
|
|
12356
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
12357
|
+
);
|
|
12358
|
+
}
|
|
12249
12359
|
return function seamCustomerV1CustomersMe(...args) {
|
|
12250
12360
|
const seam = SeamHttpSeamCustomerV1Customers.fromClient(client, defaults);
|
|
12251
12361
|
return seam.me(...args);
|
|
@@ -12329,6 +12439,21 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
12329
12439
|
return seam.list(...args);
|
|
12330
12440
|
};
|
|
12331
12441
|
}
|
|
12442
|
+
get "/seam/customer/v1/reservations/list_access_grants"() {
|
|
12443
|
+
const { client, defaults } = this;
|
|
12444
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
12445
|
+
throw new Error(
|
|
12446
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
12447
|
+
);
|
|
12448
|
+
}
|
|
12449
|
+
return function seamCustomerV1ReservationsListAccessGrants(...args) {
|
|
12450
|
+
const seam = SeamHttpSeamCustomerV1Reservations.fromClient(
|
|
12451
|
+
client,
|
|
12452
|
+
defaults
|
|
12453
|
+
);
|
|
12454
|
+
return seam.listAccessGrants(...args);
|
|
12455
|
+
};
|
|
12456
|
+
}
|
|
12332
12457
|
get "/seam/customer/v1/settings/get"() {
|
|
12333
12458
|
const { client, defaults } = this;
|
|
12334
12459
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
@@ -12406,6 +12531,11 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
12406
12531
|
}
|
|
12407
12532
|
get "/seam/customer/v1/spaces/push_common_areas"() {
|
|
12408
12533
|
const { client, defaults } = this;
|
|
12534
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
12535
|
+
throw new Error(
|
|
12536
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
12537
|
+
);
|
|
12538
|
+
}
|
|
12409
12539
|
return function seamCustomerV1SpacesPushCommonAreas(...args) {
|
|
12410
12540
|
const seam = SeamHttpSeamCustomerV1Spaces.fromClient(client, defaults);
|
|
12411
12541
|
return seam.pushCommonAreas(...args);
|