@seamapi/http 1.101.0 → 1.105.1
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/README.md +0 -1
- package/dist/connect.cjs +790 -294
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +215 -52
- package/dist/index.cjs +800 -298
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/lib/seam/connect/routes/access-codes/access-codes.d.ts +13 -0
- package/lib/seam/connect/routes/access-codes/access-codes.js +9 -0
- package/lib/seam/connect/routes/access-codes/access-codes.js.map +1 -1
- package/lib/seam/connect/routes/access-methods/access-methods.d.ts +2 -2
- package/lib/seam/connect/routes/access-methods/access-methods.js +2 -2
- package/lib/seam/connect/routes/access-methods/access-methods.js.map +1 -1
- package/lib/seam/connect/routes/customers/customers.d.ts +2 -0
- package/lib/seam/connect/routes/customers/customers.js +4 -0
- package/lib/seam/connect/routes/customers/customers.js.map +1 -1
- package/lib/seam/connect/routes/customers/index.d.ts +1 -0
- package/lib/seam/connect/routes/customers/index.js +1 -0
- package/lib/seam/connect/routes/customers/index.js.map +1 -1
- package/lib/seam/connect/routes/customers/reservations/index.d.ts +1 -0
- package/lib/seam/connect/routes/{seam/v1 → customers/reservations}/index.js +1 -2
- package/lib/seam/connect/routes/customers/reservations/index.js.map +1 -0
- package/lib/seam/connect/routes/{seam/v1/v1.d.ts → customers/reservations/reservations.d.ts} +23 -10
- package/lib/seam/connect/routes/{seam/v1/v1.js → customers/reservations/reservations.js} +18 -12
- package/lib/seam/connect/routes/customers/reservations/reservations.js.map +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/access-grants/access-grants.d.ts +13 -0
- package/lib/seam/connect/routes/seam/customer/v1/access-grants/access-grants.js +12 -0
- package/lib/seam/connect/routes/seam/customer/v1/access-grants/access-grants.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/access-methods/access-methods.d.ts +33 -0
- package/lib/seam/connect/routes/seam/customer/v1/access-methods/access-methods.js +104 -0
- package/lib/seam/connect/routes/seam/customer/v1/access-methods/access-methods.js.map +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/access-methods/index.d.ts +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/access-methods/index.js +6 -0
- package/lib/seam/connect/routes/seam/customer/v1/access-methods/index.js.map +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/connector-customers/connector-customers.d.ts +34 -0
- package/lib/seam/connect/routes/seam/customer/v1/connector-customers/connector-customers.js +104 -0
- package/lib/seam/connect/routes/seam/customer/v1/connector-customers/connector-customers.js.map +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/connector-customers/index.d.ts +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/connector-customers/index.js +6 -0
- package/lib/seam/connect/routes/seam/customer/v1/connector-customers/index.js.map +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/customers/customers.d.ts +14 -1
- package/lib/seam/connect/routes/seam/customer/v1/customers/customers.js +9 -3
- package/lib/seam/connect/routes/seam/customer/v1/customers/customers.js.map +1 -1
- package/lib/seam/connect/routes/seam/{v1/customers/customers.d.ts → customer/v1/encoders/encoders.d.ts} +20 -20
- package/lib/seam/connect/routes/seam/{v1/customers/customers.js → customer/v1/encoders/encoders.js} +26 -20
- package/lib/seam/connect/routes/seam/customer/v1/encoders/encoders.js.map +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/encoders/index.d.ts +1 -0
- package/lib/seam/connect/routes/seam/{v1/customers → customer/v1/encoders}/index.js +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/encoders/index.js.map +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/index.d.ts +3 -0
- package/lib/seam/connect/routes/seam/customer/v1/index.js +3 -0
- package/lib/seam/connect/routes/seam/customer/v1/index.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/settings/index.d.ts +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/settings/index.js +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/settings/index.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/settings/settings.d.ts +2 -0
- package/lib/seam/connect/routes/seam/customer/v1/settings/settings.js +4 -0
- package/lib/seam/connect/routes/seam/customer/v1/settings/settings.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/settings/vertical-resource-aliases/index.d.ts +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/settings/vertical-resource-aliases/index.js +6 -0
- package/lib/seam/connect/routes/seam/customer/v1/settings/vertical-resource-aliases/index.js.map +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/settings/vertical-resource-aliases/vertical-resource-aliases.d.ts +34 -0
- package/lib/seam/connect/routes/seam/customer/v1/settings/vertical-resource-aliases/vertical-resource-aliases.js +104 -0
- package/lib/seam/connect/routes/seam/customer/v1/settings/vertical-resource-aliases/vertical-resource-aliases.js.map +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/spaces/spaces.d.ts +13 -0
- package/lib/seam/connect/routes/seam/customer/v1/spaces/spaces.js +9 -3
- package/lib/seam/connect/routes/seam/customer/v1/spaces/spaces.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/v1.d.ts +6 -0
- package/lib/seam/connect/routes/seam/customer/v1/v1.js +12 -3
- package/lib/seam/connect/routes/seam/customer/v1/v1.js.map +1 -1
- package/lib/seam/connect/routes/seam/index.d.ts +0 -1
- package/lib/seam/connect/routes/seam/index.js +0 -1
- package/lib/seam/connect/routes/seam/index.js.map +1 -1
- package/lib/seam/connect/routes/seam-http-endpoints.d.ts +21 -9
- package/lib/seam/connect/routes/seam-http-endpoints.js +83 -8
- 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 +6 -6
- package/src/lib/seam/connect/routes/access-codes/access-codes.ts +35 -0
- package/src/lib/seam/connect/routes/access-methods/access-methods.ts +8 -4
- package/src/lib/seam/connect/routes/customers/customers.ts +6 -0
- package/src/lib/seam/connect/routes/customers/index.ts +1 -0
- package/src/lib/seam/connect/routes/{seam/v1 → customers/reservations}/index.ts +1 -2
- package/src/lib/seam/connect/routes/{seam/v1/customers/customers.ts → customers/reservations/reservations.ts} +33 -29
- package/src/lib/seam/connect/routes/seam/customer/v1/access-grants/access-grants.ts +41 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/access-methods/access-methods.ts +217 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/access-methods/index.ts +6 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/connector-customers/connector-customers.ts +214 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/connector-customers/index.ts +6 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/customers/customers.ts +38 -6
- package/src/lib/seam/connect/routes/seam/{v1/v1.ts → customer/v1/encoders/encoders.ts} +62 -19
- package/src/lib/seam/connect/routes/seam/{v1/customers → customer/v1/encoders}/index.ts +1 -1
- package/src/lib/seam/connect/routes/seam/customer/v1/index.ts +3 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/settings/index.ts +1 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/settings/settings.ts +9 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/settings/vertical-resource-aliases/index.ts +6 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/settings/vertical-resource-aliases/vertical-resource-aliases.ts +228 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/spaces/spaces.ts +36 -5
- package/src/lib/seam/connect/routes/seam/customer/v1/v1.ts +21 -5
- package/src/lib/seam/connect/routes/seam/index.ts +0 -1
- package/src/lib/seam/connect/routes/seam-http-endpoints.ts +210 -21
- package/src/lib/version.ts +1 -1
- package/lib/seam/connect/routes/seam/v1/customers/customers.js.map +0 -1
- package/lib/seam/connect/routes/seam/v1/customers/index.d.ts +0 -1
- package/lib/seam/connect/routes/seam/v1/customers/index.js.map +0 -1
- package/lib/seam/connect/routes/seam/v1/index.d.ts +0 -2
- package/lib/seam/connect/routes/seam/v1/index.js.map +0 -1
- package/lib/seam/connect/routes/seam/v1/v1.js.map +0 -1
package/dist/connect.cjs
CHANGED
|
@@ -1345,6 +1345,15 @@ var SeamHttpAccessCodes = class _SeamHttpAccessCodes {
|
|
|
1345
1345
|
options
|
|
1346
1346
|
});
|
|
1347
1347
|
}
|
|
1348
|
+
getTimeline(parameters, options = {}) {
|
|
1349
|
+
return new SeamHttpRequest(this, {
|
|
1350
|
+
pathname: "/access_codes/get_timeline",
|
|
1351
|
+
method: "POST",
|
|
1352
|
+
body: parameters,
|
|
1353
|
+
responseKey: "timeline_events",
|
|
1354
|
+
options
|
|
1355
|
+
});
|
|
1356
|
+
}
|
|
1348
1357
|
list(parameters, options = {}) {
|
|
1349
1358
|
return new SeamHttpRequest(this, {
|
|
1350
1359
|
pathname: "/access_codes/list",
|
|
@@ -1851,8 +1860,8 @@ var SeamHttpAccessMethods = class _SeamHttpAccessMethods {
|
|
|
1851
1860
|
delete(parameters, options = {}) {
|
|
1852
1861
|
return new SeamHttpRequest(this, {
|
|
1853
1862
|
pathname: "/access_methods/delete",
|
|
1854
|
-
method: "
|
|
1855
|
-
|
|
1863
|
+
method: "DELETE",
|
|
1864
|
+
params: parameters,
|
|
1856
1865
|
responseKey: void 0,
|
|
1857
1866
|
options
|
|
1858
1867
|
});
|
|
@@ -4176,6 +4185,101 @@ var SeamHttpConnectedAccounts = class _SeamHttpConnectedAccounts {
|
|
|
4176
4185
|
}
|
|
4177
4186
|
};
|
|
4178
4187
|
|
|
4188
|
+
// src/lib/seam/connect/routes/customers/reservations/reservations.ts
|
|
4189
|
+
var SeamHttpCustomersReservations = class _SeamHttpCustomersReservations {
|
|
4190
|
+
client;
|
|
4191
|
+
defaults;
|
|
4192
|
+
ltsVersion = seamApiLtsVersion;
|
|
4193
|
+
static ltsVersion = seamApiLtsVersion;
|
|
4194
|
+
constructor(apiKeyOrOptions = {}) {
|
|
4195
|
+
const options = parseOptions(apiKeyOrOptions);
|
|
4196
|
+
this.client = "client" in options ? options.client : createClient(options);
|
|
4197
|
+
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
4198
|
+
}
|
|
4199
|
+
static fromClient(client, options = {}) {
|
|
4200
|
+
const constructorOptions = { ...options, client };
|
|
4201
|
+
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
4202
|
+
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
4203
|
+
}
|
|
4204
|
+
return new _SeamHttpCustomersReservations(constructorOptions);
|
|
4205
|
+
}
|
|
4206
|
+
static fromApiKey(apiKey, options = {}) {
|
|
4207
|
+
const constructorOptions = { ...options, apiKey };
|
|
4208
|
+
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
4209
|
+
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
4210
|
+
}
|
|
4211
|
+
return new _SeamHttpCustomersReservations(constructorOptions);
|
|
4212
|
+
}
|
|
4213
|
+
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
4214
|
+
const constructorOptions = { ...options, clientSessionToken };
|
|
4215
|
+
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
4216
|
+
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
4217
|
+
}
|
|
4218
|
+
return new _SeamHttpCustomersReservations(constructorOptions);
|
|
4219
|
+
}
|
|
4220
|
+
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
4221
|
+
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
4222
|
+
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
4223
|
+
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
4224
|
+
throw new SeamHttpInvalidOptionsError(
|
|
4225
|
+
"The client option cannot be used with SeamHttpCustomersReservations.fromPublishableKey"
|
|
4226
|
+
);
|
|
4227
|
+
}
|
|
4228
|
+
const client = createClient(clientOptions);
|
|
4229
|
+
const clientSessions = SeamHttpClientSessions.fromClient(client);
|
|
4230
|
+
const { token } = await clientSessions.getOrCreate({
|
|
4231
|
+
user_identifier_key: userIdentifierKey
|
|
4232
|
+
});
|
|
4233
|
+
return _SeamHttpCustomersReservations.fromClientSessionToken(token, options);
|
|
4234
|
+
}
|
|
4235
|
+
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
4236
|
+
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
4237
|
+
if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
|
|
4238
|
+
throw new SeamHttpInvalidOptionsError(
|
|
4239
|
+
"Missing consoleSessionToken or workspaceId"
|
|
4240
|
+
);
|
|
4241
|
+
}
|
|
4242
|
+
return new _SeamHttpCustomersReservations(constructorOptions);
|
|
4243
|
+
}
|
|
4244
|
+
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
4245
|
+
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
4246
|
+
if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
|
|
4247
|
+
throw new SeamHttpInvalidOptionsError(
|
|
4248
|
+
"Missing personalAccessToken or workspaceId"
|
|
4249
|
+
);
|
|
4250
|
+
}
|
|
4251
|
+
return new _SeamHttpCustomersReservations(constructorOptions);
|
|
4252
|
+
}
|
|
4253
|
+
createPaginator(request) {
|
|
4254
|
+
return new SeamPaginator(this, request);
|
|
4255
|
+
}
|
|
4256
|
+
async updateClientSessionToken(clientSessionToken) {
|
|
4257
|
+
const { headers } = this.client.defaults;
|
|
4258
|
+
const authHeaders = getAuthHeadersForClientSessionToken({
|
|
4259
|
+
clientSessionToken
|
|
4260
|
+
});
|
|
4261
|
+
for (const key of Object.keys(authHeaders)) {
|
|
4262
|
+
if (headers[key] == null) {
|
|
4263
|
+
throw new Error(
|
|
4264
|
+
"Cannot update a clientSessionToken on a client created without a clientSessionToken"
|
|
4265
|
+
);
|
|
4266
|
+
}
|
|
4267
|
+
}
|
|
4268
|
+
this.client.defaults.headers = { ...headers, ...authHeaders };
|
|
4269
|
+
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
4270
|
+
await clientSessions.get();
|
|
4271
|
+
}
|
|
4272
|
+
createDeepLink(parameters, options = {}) {
|
|
4273
|
+
return new SeamHttpRequest(this, {
|
|
4274
|
+
pathname: "/customers/reservations/create_deep_link",
|
|
4275
|
+
method: "POST",
|
|
4276
|
+
body: parameters,
|
|
4277
|
+
responseKey: "deep_link",
|
|
4278
|
+
options
|
|
4279
|
+
});
|
|
4280
|
+
}
|
|
4281
|
+
};
|
|
4282
|
+
|
|
4179
4283
|
// src/lib/seam/connect/routes/customers/customers.ts
|
|
4180
4284
|
var SeamHttpCustomers = class _SeamHttpCustomers {
|
|
4181
4285
|
client;
|
|
@@ -4260,6 +4364,9 @@ var SeamHttpCustomers = class _SeamHttpCustomers {
|
|
|
4260
4364
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
4261
4365
|
await clientSessions.get();
|
|
4262
4366
|
}
|
|
4367
|
+
get reservations() {
|
|
4368
|
+
return SeamHttpCustomersReservations.fromClient(this.client, this.defaults);
|
|
4369
|
+
}
|
|
4263
4370
|
createPortal(parameters, options = {}) {
|
|
4264
4371
|
return new SeamHttpRequest(this, {
|
|
4265
4372
|
pathname: "/customers/create_portal",
|
|
@@ -6096,6 +6203,128 @@ var SeamHttpSeamCustomerV1AccessGrants = class _SeamHttpSeamCustomerV1AccessGran
|
|
|
6096
6203
|
options
|
|
6097
6204
|
});
|
|
6098
6205
|
}
|
|
6206
|
+
update(parameters, options = {}) {
|
|
6207
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6208
|
+
throw new Error(
|
|
6209
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6210
|
+
);
|
|
6211
|
+
}
|
|
6212
|
+
return new SeamHttpRequest(this, {
|
|
6213
|
+
pathname: "/seam/customer/v1/access_grants/update",
|
|
6214
|
+
method: "PATCH",
|
|
6215
|
+
body: parameters,
|
|
6216
|
+
responseKey: void 0,
|
|
6217
|
+
options
|
|
6218
|
+
});
|
|
6219
|
+
}
|
|
6220
|
+
};
|
|
6221
|
+
|
|
6222
|
+
// src/lib/seam/connect/routes/seam/customer/v1/access-methods/access-methods.ts
|
|
6223
|
+
var SeamHttpSeamCustomerV1AccessMethods = class _SeamHttpSeamCustomerV1AccessMethods {
|
|
6224
|
+
client;
|
|
6225
|
+
defaults;
|
|
6226
|
+
ltsVersion = seamApiLtsVersion;
|
|
6227
|
+
static ltsVersion = seamApiLtsVersion;
|
|
6228
|
+
constructor(apiKeyOrOptions = {}) {
|
|
6229
|
+
const options = parseOptions(apiKeyOrOptions);
|
|
6230
|
+
if (!options.isUndocumentedApiEnabled) {
|
|
6231
|
+
throw new Error(
|
|
6232
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6233
|
+
);
|
|
6234
|
+
}
|
|
6235
|
+
this.client = "client" in options ? options.client : createClient(options);
|
|
6236
|
+
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
6237
|
+
}
|
|
6238
|
+
static fromClient(client, options = {}) {
|
|
6239
|
+
const constructorOptions = { ...options, client };
|
|
6240
|
+
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
6241
|
+
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
6242
|
+
}
|
|
6243
|
+
return new _SeamHttpSeamCustomerV1AccessMethods(constructorOptions);
|
|
6244
|
+
}
|
|
6245
|
+
static fromApiKey(apiKey, options = {}) {
|
|
6246
|
+
const constructorOptions = { ...options, apiKey };
|
|
6247
|
+
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
6248
|
+
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
6249
|
+
}
|
|
6250
|
+
return new _SeamHttpSeamCustomerV1AccessMethods(constructorOptions);
|
|
6251
|
+
}
|
|
6252
|
+
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
6253
|
+
const constructorOptions = { ...options, clientSessionToken };
|
|
6254
|
+
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
6255
|
+
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
6256
|
+
}
|
|
6257
|
+
return new _SeamHttpSeamCustomerV1AccessMethods(constructorOptions);
|
|
6258
|
+
}
|
|
6259
|
+
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
6260
|
+
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
6261
|
+
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
6262
|
+
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
6263
|
+
throw new SeamHttpInvalidOptionsError(
|
|
6264
|
+
"The client option cannot be used with SeamHttpSeamCustomerV1AccessMethods.fromPublishableKey"
|
|
6265
|
+
);
|
|
6266
|
+
}
|
|
6267
|
+
const client = createClient(clientOptions);
|
|
6268
|
+
const clientSessions = SeamHttpClientSessions.fromClient(client);
|
|
6269
|
+
const { token } = await clientSessions.getOrCreate({
|
|
6270
|
+
user_identifier_key: userIdentifierKey
|
|
6271
|
+
});
|
|
6272
|
+
return _SeamHttpSeamCustomerV1AccessMethods.fromClientSessionToken(
|
|
6273
|
+
token,
|
|
6274
|
+
options
|
|
6275
|
+
);
|
|
6276
|
+
}
|
|
6277
|
+
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
6278
|
+
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
6279
|
+
if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
|
|
6280
|
+
throw new SeamHttpInvalidOptionsError(
|
|
6281
|
+
"Missing consoleSessionToken or workspaceId"
|
|
6282
|
+
);
|
|
6283
|
+
}
|
|
6284
|
+
return new _SeamHttpSeamCustomerV1AccessMethods(constructorOptions);
|
|
6285
|
+
}
|
|
6286
|
+
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
6287
|
+
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
6288
|
+
if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
|
|
6289
|
+
throw new SeamHttpInvalidOptionsError(
|
|
6290
|
+
"Missing personalAccessToken or workspaceId"
|
|
6291
|
+
);
|
|
6292
|
+
}
|
|
6293
|
+
return new _SeamHttpSeamCustomerV1AccessMethods(constructorOptions);
|
|
6294
|
+
}
|
|
6295
|
+
createPaginator(request) {
|
|
6296
|
+
return new SeamPaginator(this, request);
|
|
6297
|
+
}
|
|
6298
|
+
async updateClientSessionToken(clientSessionToken) {
|
|
6299
|
+
const { headers } = this.client.defaults;
|
|
6300
|
+
const authHeaders = getAuthHeadersForClientSessionToken({
|
|
6301
|
+
clientSessionToken
|
|
6302
|
+
});
|
|
6303
|
+
for (const key of Object.keys(authHeaders)) {
|
|
6304
|
+
if (headers[key] == null) {
|
|
6305
|
+
throw new Error(
|
|
6306
|
+
"Cannot update a clientSessionToken on a client created without a clientSessionToken"
|
|
6307
|
+
);
|
|
6308
|
+
}
|
|
6309
|
+
}
|
|
6310
|
+
this.client.defaults.headers = { ...headers, ...authHeaders };
|
|
6311
|
+
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
6312
|
+
await clientSessions.get();
|
|
6313
|
+
}
|
|
6314
|
+
encode(parameters, options = {}) {
|
|
6315
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6316
|
+
throw new Error(
|
|
6317
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6318
|
+
);
|
|
6319
|
+
}
|
|
6320
|
+
return new SeamHttpRequest(this, {
|
|
6321
|
+
pathname: "/seam/customer/v1/access_methods/encode",
|
|
6322
|
+
method: "POST",
|
|
6323
|
+
body: parameters,
|
|
6324
|
+
responseKey: "action_attempt",
|
|
6325
|
+
options
|
|
6326
|
+
});
|
|
6327
|
+
}
|
|
6099
6328
|
};
|
|
6100
6329
|
|
|
6101
6330
|
// src/lib/seam/connect/routes/seam/customer/v1/automation-runs/automation-runs.ts
|
|
@@ -6342,8 +6571,8 @@ var SeamHttpSeamCustomerV1Automations = class _SeamHttpSeamCustomerV1Automations
|
|
|
6342
6571
|
}
|
|
6343
6572
|
};
|
|
6344
6573
|
|
|
6345
|
-
// src/lib/seam/connect/routes/seam/customer/v1/
|
|
6346
|
-
var
|
|
6574
|
+
// src/lib/seam/connect/routes/seam/customer/v1/connector-customers/connector-customers.ts
|
|
6575
|
+
var SeamHttpSeamCustomerV1ConnectorCustomers = class _SeamHttpSeamCustomerV1ConnectorCustomers {
|
|
6347
6576
|
client;
|
|
6348
6577
|
defaults;
|
|
6349
6578
|
ltsVersion = seamApiLtsVersion;
|
|
@@ -6363,28 +6592,28 @@ var SeamHttpSeamCustomerV1Connectors = class _SeamHttpSeamCustomerV1Connectors {
|
|
|
6363
6592
|
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
6364
6593
|
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
6365
6594
|
}
|
|
6366
|
-
return new
|
|
6595
|
+
return new _SeamHttpSeamCustomerV1ConnectorCustomers(constructorOptions);
|
|
6367
6596
|
}
|
|
6368
6597
|
static fromApiKey(apiKey, options = {}) {
|
|
6369
6598
|
const constructorOptions = { ...options, apiKey };
|
|
6370
6599
|
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
6371
6600
|
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
6372
6601
|
}
|
|
6373
|
-
return new
|
|
6602
|
+
return new _SeamHttpSeamCustomerV1ConnectorCustomers(constructorOptions);
|
|
6374
6603
|
}
|
|
6375
6604
|
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
6376
6605
|
const constructorOptions = { ...options, clientSessionToken };
|
|
6377
6606
|
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
6378
6607
|
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
6379
6608
|
}
|
|
6380
|
-
return new
|
|
6609
|
+
return new _SeamHttpSeamCustomerV1ConnectorCustomers(constructorOptions);
|
|
6381
6610
|
}
|
|
6382
6611
|
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
6383
6612
|
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
6384
6613
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
6385
6614
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
6386
6615
|
throw new SeamHttpInvalidOptionsError(
|
|
6387
|
-
"The client option cannot be used with
|
|
6616
|
+
"The client option cannot be used with SeamHttpSeamCustomerV1ConnectorCustomers.fromPublishableKey"
|
|
6388
6617
|
);
|
|
6389
6618
|
}
|
|
6390
6619
|
const client = createClient(clientOptions);
|
|
@@ -6392,7 +6621,7 @@ var SeamHttpSeamCustomerV1Connectors = class _SeamHttpSeamCustomerV1Connectors {
|
|
|
6392
6621
|
const { token } = await clientSessions.getOrCreate({
|
|
6393
6622
|
user_identifier_key: userIdentifierKey
|
|
6394
6623
|
});
|
|
6395
|
-
return
|
|
6624
|
+
return _SeamHttpSeamCustomerV1ConnectorCustomers.fromClientSessionToken(
|
|
6396
6625
|
token,
|
|
6397
6626
|
options
|
|
6398
6627
|
);
|
|
@@ -6404,7 +6633,7 @@ var SeamHttpSeamCustomerV1Connectors = class _SeamHttpSeamCustomerV1Connectors {
|
|
|
6404
6633
|
"Missing consoleSessionToken or workspaceId"
|
|
6405
6634
|
);
|
|
6406
6635
|
}
|
|
6407
|
-
return new
|
|
6636
|
+
return new _SeamHttpSeamCustomerV1ConnectorCustomers(constructorOptions);
|
|
6408
6637
|
}
|
|
6409
6638
|
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
6410
6639
|
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
@@ -6413,7 +6642,7 @@ var SeamHttpSeamCustomerV1Connectors = class _SeamHttpSeamCustomerV1Connectors {
|
|
|
6413
6642
|
"Missing personalAccessToken or workspaceId"
|
|
6414
6643
|
);
|
|
6415
6644
|
}
|
|
6416
|
-
return new
|
|
6645
|
+
return new _SeamHttpSeamCustomerV1ConnectorCustomers(constructorOptions);
|
|
6417
6646
|
}
|
|
6418
6647
|
createPaginator(request) {
|
|
6419
6648
|
return new SeamPaginator(this, request);
|
|
@@ -6434,47 +6663,155 @@ var SeamHttpSeamCustomerV1Connectors = class _SeamHttpSeamCustomerV1Connectors {
|
|
|
6434
6663
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
6435
6664
|
await clientSessions.get();
|
|
6436
6665
|
}
|
|
6437
|
-
|
|
6666
|
+
list(parameters, options = {}) {
|
|
6438
6667
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6439
6668
|
throw new Error(
|
|
6440
6669
|
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6441
6670
|
);
|
|
6442
6671
|
}
|
|
6443
6672
|
return new SeamHttpRequest(this, {
|
|
6444
|
-
pathname: "/seam/customer/v1/
|
|
6673
|
+
pathname: "/seam/customer/v1/connector_customers/list",
|
|
6445
6674
|
method: "POST",
|
|
6446
6675
|
body: parameters,
|
|
6447
|
-
responseKey: "
|
|
6676
|
+
responseKey: "connector_customers",
|
|
6448
6677
|
options
|
|
6449
6678
|
});
|
|
6450
6679
|
}
|
|
6451
|
-
|
|
6452
|
-
|
|
6680
|
+
};
|
|
6681
|
+
|
|
6682
|
+
// src/lib/seam/connect/routes/seam/customer/v1/connectors/connectors.ts
|
|
6683
|
+
var SeamHttpSeamCustomerV1Connectors = class _SeamHttpSeamCustomerV1Connectors {
|
|
6684
|
+
client;
|
|
6685
|
+
defaults;
|
|
6686
|
+
ltsVersion = seamApiLtsVersion;
|
|
6687
|
+
static ltsVersion = seamApiLtsVersion;
|
|
6688
|
+
constructor(apiKeyOrOptions = {}) {
|
|
6689
|
+
const options = parseOptions(apiKeyOrOptions);
|
|
6690
|
+
if (!options.isUndocumentedApiEnabled) {
|
|
6453
6691
|
throw new Error(
|
|
6454
6692
|
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6455
6693
|
);
|
|
6456
6694
|
}
|
|
6457
|
-
|
|
6458
|
-
|
|
6459
|
-
method: "GET",
|
|
6460
|
-
params: parameters,
|
|
6461
|
-
responseKey: "connector_types",
|
|
6462
|
-
options
|
|
6463
|
-
});
|
|
6695
|
+
this.client = "client" in options ? options.client : createClient(options);
|
|
6696
|
+
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
6464
6697
|
}
|
|
6465
|
-
|
|
6466
|
-
|
|
6467
|
-
|
|
6468
|
-
|
|
6469
|
-
);
|
|
6698
|
+
static fromClient(client, options = {}) {
|
|
6699
|
+
const constructorOptions = { ...options, client };
|
|
6700
|
+
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
6701
|
+
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
6470
6702
|
}
|
|
6471
|
-
return new
|
|
6472
|
-
|
|
6473
|
-
|
|
6474
|
-
|
|
6475
|
-
|
|
6476
|
-
|
|
6477
|
-
}
|
|
6703
|
+
return new _SeamHttpSeamCustomerV1Connectors(constructorOptions);
|
|
6704
|
+
}
|
|
6705
|
+
static fromApiKey(apiKey, options = {}) {
|
|
6706
|
+
const constructorOptions = { ...options, apiKey };
|
|
6707
|
+
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
6708
|
+
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
6709
|
+
}
|
|
6710
|
+
return new _SeamHttpSeamCustomerV1Connectors(constructorOptions);
|
|
6711
|
+
}
|
|
6712
|
+
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
6713
|
+
const constructorOptions = { ...options, clientSessionToken };
|
|
6714
|
+
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
6715
|
+
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
6716
|
+
}
|
|
6717
|
+
return new _SeamHttpSeamCustomerV1Connectors(constructorOptions);
|
|
6718
|
+
}
|
|
6719
|
+
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
6720
|
+
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
6721
|
+
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
6722
|
+
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
6723
|
+
throw new SeamHttpInvalidOptionsError(
|
|
6724
|
+
"The client option cannot be used with SeamHttpSeamCustomerV1Connectors.fromPublishableKey"
|
|
6725
|
+
);
|
|
6726
|
+
}
|
|
6727
|
+
const client = createClient(clientOptions);
|
|
6728
|
+
const clientSessions = SeamHttpClientSessions.fromClient(client);
|
|
6729
|
+
const { token } = await clientSessions.getOrCreate({
|
|
6730
|
+
user_identifier_key: userIdentifierKey
|
|
6731
|
+
});
|
|
6732
|
+
return _SeamHttpSeamCustomerV1Connectors.fromClientSessionToken(
|
|
6733
|
+
token,
|
|
6734
|
+
options
|
|
6735
|
+
);
|
|
6736
|
+
}
|
|
6737
|
+
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
6738
|
+
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
6739
|
+
if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
|
|
6740
|
+
throw new SeamHttpInvalidOptionsError(
|
|
6741
|
+
"Missing consoleSessionToken or workspaceId"
|
|
6742
|
+
);
|
|
6743
|
+
}
|
|
6744
|
+
return new _SeamHttpSeamCustomerV1Connectors(constructorOptions);
|
|
6745
|
+
}
|
|
6746
|
+
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
6747
|
+
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
6748
|
+
if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
|
|
6749
|
+
throw new SeamHttpInvalidOptionsError(
|
|
6750
|
+
"Missing personalAccessToken or workspaceId"
|
|
6751
|
+
);
|
|
6752
|
+
}
|
|
6753
|
+
return new _SeamHttpSeamCustomerV1Connectors(constructorOptions);
|
|
6754
|
+
}
|
|
6755
|
+
createPaginator(request) {
|
|
6756
|
+
return new SeamPaginator(this, request);
|
|
6757
|
+
}
|
|
6758
|
+
async updateClientSessionToken(clientSessionToken) {
|
|
6759
|
+
const { headers } = this.client.defaults;
|
|
6760
|
+
const authHeaders = getAuthHeadersForClientSessionToken({
|
|
6761
|
+
clientSessionToken
|
|
6762
|
+
});
|
|
6763
|
+
for (const key of Object.keys(authHeaders)) {
|
|
6764
|
+
if (headers[key] == null) {
|
|
6765
|
+
throw new Error(
|
|
6766
|
+
"Cannot update a clientSessionToken on a client created without a clientSessionToken"
|
|
6767
|
+
);
|
|
6768
|
+
}
|
|
6769
|
+
}
|
|
6770
|
+
this.client.defaults.headers = { ...headers, ...authHeaders };
|
|
6771
|
+
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
6772
|
+
await clientSessions.get();
|
|
6773
|
+
}
|
|
6774
|
+
authorize(parameters, options = {}) {
|
|
6775
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6776
|
+
throw new Error(
|
|
6777
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6778
|
+
);
|
|
6779
|
+
}
|
|
6780
|
+
return new SeamHttpRequest(this, {
|
|
6781
|
+
pathname: "/seam/customer/v1/connectors/authorize",
|
|
6782
|
+
method: "POST",
|
|
6783
|
+
body: parameters,
|
|
6784
|
+
responseKey: "connector_authorize",
|
|
6785
|
+
options
|
|
6786
|
+
});
|
|
6787
|
+
}
|
|
6788
|
+
connectorTypes(parameters, options = {}) {
|
|
6789
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6790
|
+
throw new Error(
|
|
6791
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6792
|
+
);
|
|
6793
|
+
}
|
|
6794
|
+
return new SeamHttpRequest(this, {
|
|
6795
|
+
pathname: "/seam/customer/v1/connectors/connector_types",
|
|
6796
|
+
method: "GET",
|
|
6797
|
+
params: parameters,
|
|
6798
|
+
responseKey: "connector_types",
|
|
6799
|
+
options
|
|
6800
|
+
});
|
|
6801
|
+
}
|
|
6802
|
+
create(parameters, options = {}) {
|
|
6803
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6804
|
+
throw new Error(
|
|
6805
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6806
|
+
);
|
|
6807
|
+
}
|
|
6808
|
+
return new SeamHttpRequest(this, {
|
|
6809
|
+
pathname: "/seam/customer/v1/connectors/create",
|
|
6810
|
+
method: "POST",
|
|
6811
|
+
body: parameters,
|
|
6812
|
+
responseKey: "connector",
|
|
6813
|
+
options
|
|
6814
|
+
});
|
|
6478
6815
|
}
|
|
6479
6816
|
delete(parameters, options = {}) {
|
|
6480
6817
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
@@ -6542,11 +6879,6 @@ var SeamHttpSeamCustomerV1Customers = class _SeamHttpSeamCustomerV1Customers {
|
|
|
6542
6879
|
static ltsVersion = seamApiLtsVersion;
|
|
6543
6880
|
constructor(apiKeyOrOptions = {}) {
|
|
6544
6881
|
const options = parseOptions(apiKeyOrOptions);
|
|
6545
|
-
if (!options.isUndocumentedApiEnabled) {
|
|
6546
|
-
throw new Error(
|
|
6547
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6548
|
-
);
|
|
6549
|
-
}
|
|
6550
6882
|
this.client = "client" in options ? options.client : createClient(options);
|
|
6551
6883
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
6552
6884
|
}
|
|
@@ -6640,6 +6972,15 @@ var SeamHttpSeamCustomerV1Customers = class _SeamHttpSeamCustomerV1Customers {
|
|
|
6640
6972
|
options
|
|
6641
6973
|
});
|
|
6642
6974
|
}
|
|
6975
|
+
me(parameters, options = {}) {
|
|
6976
|
+
return new SeamHttpRequest(this, {
|
|
6977
|
+
pathname: "/seam/customer/v1/customers/me",
|
|
6978
|
+
method: "GET",
|
|
6979
|
+
params: parameters,
|
|
6980
|
+
responseKey: void 0,
|
|
6981
|
+
options
|
|
6982
|
+
});
|
|
6983
|
+
}
|
|
6643
6984
|
openPortal(parameters, options = {}) {
|
|
6644
6985
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6645
6986
|
throw new Error(
|
|
@@ -6656,8 +6997,8 @@ var SeamHttpSeamCustomerV1Customers = class _SeamHttpSeamCustomerV1Customers {
|
|
|
6656
6997
|
}
|
|
6657
6998
|
};
|
|
6658
6999
|
|
|
6659
|
-
// src/lib/seam/connect/routes/seam/customer/v1/
|
|
6660
|
-
var
|
|
7000
|
+
// src/lib/seam/connect/routes/seam/customer/v1/encoders/encoders.ts
|
|
7001
|
+
var SeamHttpSeamCustomerV1Encoders = class _SeamHttpSeamCustomerV1Encoders {
|
|
6661
7002
|
client;
|
|
6662
7003
|
defaults;
|
|
6663
7004
|
ltsVersion = seamApiLtsVersion;
|
|
@@ -6677,28 +7018,28 @@ var SeamHttpSeamCustomerV1Events = class _SeamHttpSeamCustomerV1Events {
|
|
|
6677
7018
|
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
6678
7019
|
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
6679
7020
|
}
|
|
6680
|
-
return new
|
|
7021
|
+
return new _SeamHttpSeamCustomerV1Encoders(constructorOptions);
|
|
6681
7022
|
}
|
|
6682
7023
|
static fromApiKey(apiKey, options = {}) {
|
|
6683
7024
|
const constructorOptions = { ...options, apiKey };
|
|
6684
7025
|
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
6685
7026
|
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
6686
7027
|
}
|
|
6687
|
-
return new
|
|
7028
|
+
return new _SeamHttpSeamCustomerV1Encoders(constructorOptions);
|
|
6688
7029
|
}
|
|
6689
7030
|
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
6690
7031
|
const constructorOptions = { ...options, clientSessionToken };
|
|
6691
7032
|
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
6692
7033
|
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
6693
7034
|
}
|
|
6694
|
-
return new
|
|
7035
|
+
return new _SeamHttpSeamCustomerV1Encoders(constructorOptions);
|
|
6695
7036
|
}
|
|
6696
7037
|
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
6697
7038
|
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
6698
7039
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
6699
7040
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
6700
7041
|
throw new SeamHttpInvalidOptionsError(
|
|
6701
|
-
"The client option cannot be used with
|
|
7042
|
+
"The client option cannot be used with SeamHttpSeamCustomerV1Encoders.fromPublishableKey"
|
|
6702
7043
|
);
|
|
6703
7044
|
}
|
|
6704
7045
|
const client = createClient(clientOptions);
|
|
@@ -6706,7 +7047,7 @@ var SeamHttpSeamCustomerV1Events = class _SeamHttpSeamCustomerV1Events {
|
|
|
6706
7047
|
const { token } = await clientSessions.getOrCreate({
|
|
6707
7048
|
user_identifier_key: userIdentifierKey
|
|
6708
7049
|
});
|
|
6709
|
-
return
|
|
7050
|
+
return _SeamHttpSeamCustomerV1Encoders.fromClientSessionToken(token, options);
|
|
6710
7051
|
}
|
|
6711
7052
|
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
6712
7053
|
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
@@ -6715,7 +7056,7 @@ var SeamHttpSeamCustomerV1Events = class _SeamHttpSeamCustomerV1Events {
|
|
|
6715
7056
|
"Missing consoleSessionToken or workspaceId"
|
|
6716
7057
|
);
|
|
6717
7058
|
}
|
|
6718
|
-
return new
|
|
7059
|
+
return new _SeamHttpSeamCustomerV1Encoders(constructorOptions);
|
|
6719
7060
|
}
|
|
6720
7061
|
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
6721
7062
|
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
@@ -6724,7 +7065,7 @@ var SeamHttpSeamCustomerV1Events = class _SeamHttpSeamCustomerV1Events {
|
|
|
6724
7065
|
"Missing personalAccessToken or workspaceId"
|
|
6725
7066
|
);
|
|
6726
7067
|
}
|
|
6727
|
-
return new
|
|
7068
|
+
return new _SeamHttpSeamCustomerV1Encoders(constructorOptions);
|
|
6728
7069
|
}
|
|
6729
7070
|
createPaginator(request) {
|
|
6730
7071
|
return new SeamPaginator(this, request);
|
|
@@ -6752,17 +7093,17 @@ var SeamHttpSeamCustomerV1Events = class _SeamHttpSeamCustomerV1Events {
|
|
|
6752
7093
|
);
|
|
6753
7094
|
}
|
|
6754
7095
|
return new SeamHttpRequest(this, {
|
|
6755
|
-
pathname: "/seam/customer/v1/
|
|
7096
|
+
pathname: "/seam/customer/v1/encoders/list",
|
|
6756
7097
|
method: "POST",
|
|
6757
7098
|
body: parameters,
|
|
6758
|
-
responseKey: "
|
|
7099
|
+
responseKey: "encoders",
|
|
6759
7100
|
options
|
|
6760
7101
|
});
|
|
6761
7102
|
}
|
|
6762
7103
|
};
|
|
6763
7104
|
|
|
6764
|
-
// src/lib/seam/connect/routes/seam/customer/v1/
|
|
6765
|
-
var
|
|
7105
|
+
// src/lib/seam/connect/routes/seam/customer/v1/events/events.ts
|
|
7106
|
+
var SeamHttpSeamCustomerV1Events = class _SeamHttpSeamCustomerV1Events {
|
|
6766
7107
|
client;
|
|
6767
7108
|
defaults;
|
|
6768
7109
|
ltsVersion = seamApiLtsVersion;
|
|
@@ -6782,28 +7123,28 @@ var SeamHttpSeamCustomerV1Portals = class _SeamHttpSeamCustomerV1Portals {
|
|
|
6782
7123
|
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
6783
7124
|
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
6784
7125
|
}
|
|
6785
|
-
return new
|
|
7126
|
+
return new _SeamHttpSeamCustomerV1Events(constructorOptions);
|
|
6786
7127
|
}
|
|
6787
7128
|
static fromApiKey(apiKey, options = {}) {
|
|
6788
7129
|
const constructorOptions = { ...options, apiKey };
|
|
6789
7130
|
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
6790
7131
|
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
6791
7132
|
}
|
|
6792
|
-
return new
|
|
7133
|
+
return new _SeamHttpSeamCustomerV1Events(constructorOptions);
|
|
6793
7134
|
}
|
|
6794
7135
|
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
6795
7136
|
const constructorOptions = { ...options, clientSessionToken };
|
|
6796
7137
|
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
6797
7138
|
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
6798
7139
|
}
|
|
6799
|
-
return new
|
|
7140
|
+
return new _SeamHttpSeamCustomerV1Events(constructorOptions);
|
|
6800
7141
|
}
|
|
6801
7142
|
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
6802
7143
|
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
6803
7144
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
6804
7145
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
6805
7146
|
throw new SeamHttpInvalidOptionsError(
|
|
6806
|
-
"The client option cannot be used with
|
|
7147
|
+
"The client option cannot be used with SeamHttpSeamCustomerV1Events.fromPublishableKey"
|
|
6807
7148
|
);
|
|
6808
7149
|
}
|
|
6809
7150
|
const client = createClient(clientOptions);
|
|
@@ -6811,7 +7152,7 @@ var SeamHttpSeamCustomerV1Portals = class _SeamHttpSeamCustomerV1Portals {
|
|
|
6811
7152
|
const { token } = await clientSessions.getOrCreate({
|
|
6812
7153
|
user_identifier_key: userIdentifierKey
|
|
6813
7154
|
});
|
|
6814
|
-
return
|
|
7155
|
+
return _SeamHttpSeamCustomerV1Events.fromClientSessionToken(token, options);
|
|
6815
7156
|
}
|
|
6816
7157
|
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
6817
7158
|
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
@@ -6820,7 +7161,7 @@ var SeamHttpSeamCustomerV1Portals = class _SeamHttpSeamCustomerV1Portals {
|
|
|
6820
7161
|
"Missing consoleSessionToken or workspaceId"
|
|
6821
7162
|
);
|
|
6822
7163
|
}
|
|
6823
|
-
return new
|
|
7164
|
+
return new _SeamHttpSeamCustomerV1Events(constructorOptions);
|
|
6824
7165
|
}
|
|
6825
7166
|
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
6826
7167
|
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
@@ -6829,7 +7170,7 @@ var SeamHttpSeamCustomerV1Portals = class _SeamHttpSeamCustomerV1Portals {
|
|
|
6829
7170
|
"Missing personalAccessToken or workspaceId"
|
|
6830
7171
|
);
|
|
6831
7172
|
}
|
|
6832
|
-
return new
|
|
7173
|
+
return new _SeamHttpSeamCustomerV1Events(constructorOptions);
|
|
6833
7174
|
}
|
|
6834
7175
|
createPaginator(request) {
|
|
6835
7176
|
return new SeamPaginator(this, request);
|
|
@@ -6850,24 +7191,24 @@ var SeamHttpSeamCustomerV1Portals = class _SeamHttpSeamCustomerV1Portals {
|
|
|
6850
7191
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
6851
7192
|
await clientSessions.get();
|
|
6852
7193
|
}
|
|
6853
|
-
|
|
7194
|
+
list(parameters, options = {}) {
|
|
6854
7195
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6855
7196
|
throw new Error(
|
|
6856
7197
|
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6857
7198
|
);
|
|
6858
7199
|
}
|
|
6859
7200
|
return new SeamHttpRequest(this, {
|
|
6860
|
-
pathname: "/seam/customer/v1/
|
|
7201
|
+
pathname: "/seam/customer/v1/events/list",
|
|
6861
7202
|
method: "POST",
|
|
6862
7203
|
body: parameters,
|
|
6863
|
-
responseKey: "
|
|
7204
|
+
responseKey: "events",
|
|
6864
7205
|
options
|
|
6865
7206
|
});
|
|
6866
7207
|
}
|
|
6867
7208
|
};
|
|
6868
7209
|
|
|
6869
|
-
// src/lib/seam/connect/routes/seam/customer/v1/
|
|
6870
|
-
var
|
|
7210
|
+
// src/lib/seam/connect/routes/seam/customer/v1/portals/portals.ts
|
|
7211
|
+
var SeamHttpSeamCustomerV1Portals = class _SeamHttpSeamCustomerV1Portals {
|
|
6871
7212
|
client;
|
|
6872
7213
|
defaults;
|
|
6873
7214
|
ltsVersion = seamApiLtsVersion;
|
|
@@ -6887,28 +7228,28 @@ var SeamHttpSeamCustomerV1Reservations = class _SeamHttpSeamCustomerV1Reservatio
|
|
|
6887
7228
|
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
6888
7229
|
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
6889
7230
|
}
|
|
6890
|
-
return new
|
|
7231
|
+
return new _SeamHttpSeamCustomerV1Portals(constructorOptions);
|
|
6891
7232
|
}
|
|
6892
7233
|
static fromApiKey(apiKey, options = {}) {
|
|
6893
7234
|
const constructorOptions = { ...options, apiKey };
|
|
6894
7235
|
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
6895
7236
|
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
6896
7237
|
}
|
|
6897
|
-
return new
|
|
7238
|
+
return new _SeamHttpSeamCustomerV1Portals(constructorOptions);
|
|
6898
7239
|
}
|
|
6899
7240
|
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
6900
7241
|
const constructorOptions = { ...options, clientSessionToken };
|
|
6901
7242
|
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
6902
7243
|
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
6903
7244
|
}
|
|
6904
|
-
return new
|
|
7245
|
+
return new _SeamHttpSeamCustomerV1Portals(constructorOptions);
|
|
6905
7246
|
}
|
|
6906
7247
|
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
6907
7248
|
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
6908
7249
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
6909
7250
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
6910
7251
|
throw new SeamHttpInvalidOptionsError(
|
|
6911
|
-
"The client option cannot be used with
|
|
7252
|
+
"The client option cannot be used with SeamHttpSeamCustomerV1Portals.fromPublishableKey"
|
|
6912
7253
|
);
|
|
6913
7254
|
}
|
|
6914
7255
|
const client = createClient(clientOptions);
|
|
@@ -6916,10 +7257,7 @@ var SeamHttpSeamCustomerV1Reservations = class _SeamHttpSeamCustomerV1Reservatio
|
|
|
6916
7257
|
const { token } = await clientSessions.getOrCreate({
|
|
6917
7258
|
user_identifier_key: userIdentifierKey
|
|
6918
7259
|
});
|
|
6919
|
-
return
|
|
6920
|
-
token,
|
|
6921
|
-
options
|
|
6922
|
-
);
|
|
7260
|
+
return _SeamHttpSeamCustomerV1Portals.fromClientSessionToken(token, options);
|
|
6923
7261
|
}
|
|
6924
7262
|
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
6925
7263
|
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
@@ -6928,7 +7266,7 @@ var SeamHttpSeamCustomerV1Reservations = class _SeamHttpSeamCustomerV1Reservatio
|
|
|
6928
7266
|
"Missing consoleSessionToken or workspaceId"
|
|
6929
7267
|
);
|
|
6930
7268
|
}
|
|
6931
|
-
return new
|
|
7269
|
+
return new _SeamHttpSeamCustomerV1Portals(constructorOptions);
|
|
6932
7270
|
}
|
|
6933
7271
|
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
6934
7272
|
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
@@ -6937,7 +7275,7 @@ var SeamHttpSeamCustomerV1Reservations = class _SeamHttpSeamCustomerV1Reservatio
|
|
|
6937
7275
|
"Missing personalAccessToken or workspaceId"
|
|
6938
7276
|
);
|
|
6939
7277
|
}
|
|
6940
|
-
return new
|
|
7278
|
+
return new _SeamHttpSeamCustomerV1Portals(constructorOptions);
|
|
6941
7279
|
}
|
|
6942
7280
|
createPaginator(request) {
|
|
6943
7281
|
return new SeamPaginator(this, request);
|
|
@@ -6965,31 +7303,17 @@ var SeamHttpSeamCustomerV1Reservations = class _SeamHttpSeamCustomerV1Reservatio
|
|
|
6965
7303
|
);
|
|
6966
7304
|
}
|
|
6967
7305
|
return new SeamHttpRequest(this, {
|
|
6968
|
-
pathname: "/seam/customer/v1/
|
|
6969
|
-
method: "POST",
|
|
6970
|
-
body: parameters,
|
|
6971
|
-
responseKey: "reservation",
|
|
6972
|
-
options
|
|
6973
|
-
});
|
|
6974
|
-
}
|
|
6975
|
-
list(parameters, options = {}) {
|
|
6976
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6977
|
-
throw new Error(
|
|
6978
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6979
|
-
);
|
|
6980
|
-
}
|
|
6981
|
-
return new SeamHttpRequest(this, {
|
|
6982
|
-
pathname: "/seam/customer/v1/reservations/list",
|
|
7306
|
+
pathname: "/seam/customer/v1/portals/get",
|
|
6983
7307
|
method: "POST",
|
|
6984
7308
|
body: parameters,
|
|
6985
|
-
responseKey: "
|
|
7309
|
+
responseKey: "customer_portal",
|
|
6986
7310
|
options
|
|
6987
7311
|
});
|
|
6988
7312
|
}
|
|
6989
7313
|
};
|
|
6990
7314
|
|
|
6991
|
-
// src/lib/seam/connect/routes/seam/customer/v1/
|
|
6992
|
-
var
|
|
7315
|
+
// src/lib/seam/connect/routes/seam/customer/v1/reservations/reservations.ts
|
|
7316
|
+
var SeamHttpSeamCustomerV1Reservations = class _SeamHttpSeamCustomerV1Reservations {
|
|
6993
7317
|
client;
|
|
6994
7318
|
defaults;
|
|
6995
7319
|
ltsVersion = seamApiLtsVersion;
|
|
@@ -7009,28 +7333,28 @@ var SeamHttpSeamCustomerV1Settings = class _SeamHttpSeamCustomerV1Settings {
|
|
|
7009
7333
|
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
7010
7334
|
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
7011
7335
|
}
|
|
7012
|
-
return new
|
|
7336
|
+
return new _SeamHttpSeamCustomerV1Reservations(constructorOptions);
|
|
7013
7337
|
}
|
|
7014
7338
|
static fromApiKey(apiKey, options = {}) {
|
|
7015
7339
|
const constructorOptions = { ...options, apiKey };
|
|
7016
7340
|
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
7017
7341
|
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
7018
7342
|
}
|
|
7019
|
-
return new
|
|
7343
|
+
return new _SeamHttpSeamCustomerV1Reservations(constructorOptions);
|
|
7020
7344
|
}
|
|
7021
7345
|
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
7022
7346
|
const constructorOptions = { ...options, clientSessionToken };
|
|
7023
7347
|
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
7024
7348
|
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
7025
7349
|
}
|
|
7026
|
-
return new
|
|
7350
|
+
return new _SeamHttpSeamCustomerV1Reservations(constructorOptions);
|
|
7027
7351
|
}
|
|
7028
7352
|
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
7029
7353
|
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
7030
7354
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
7031
7355
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
7032
7356
|
throw new SeamHttpInvalidOptionsError(
|
|
7033
|
-
"The client option cannot be used with
|
|
7357
|
+
"The client option cannot be used with SeamHttpSeamCustomerV1Reservations.fromPublishableKey"
|
|
7034
7358
|
);
|
|
7035
7359
|
}
|
|
7036
7360
|
const client = createClient(clientOptions);
|
|
@@ -7038,7 +7362,10 @@ var SeamHttpSeamCustomerV1Settings = class _SeamHttpSeamCustomerV1Settings {
|
|
|
7038
7362
|
const { token } = await clientSessions.getOrCreate({
|
|
7039
7363
|
user_identifier_key: userIdentifierKey
|
|
7040
7364
|
});
|
|
7041
|
-
return
|
|
7365
|
+
return _SeamHttpSeamCustomerV1Reservations.fromClientSessionToken(
|
|
7366
|
+
token,
|
|
7367
|
+
options
|
|
7368
|
+
);
|
|
7042
7369
|
}
|
|
7043
7370
|
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
7044
7371
|
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
@@ -7047,7 +7374,7 @@ var SeamHttpSeamCustomerV1Settings = class _SeamHttpSeamCustomerV1Settings {
|
|
|
7047
7374
|
"Missing consoleSessionToken or workspaceId"
|
|
7048
7375
|
);
|
|
7049
7376
|
}
|
|
7050
|
-
return new
|
|
7377
|
+
return new _SeamHttpSeamCustomerV1Reservations(constructorOptions);
|
|
7051
7378
|
}
|
|
7052
7379
|
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
7053
7380
|
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
@@ -7056,7 +7383,7 @@ var SeamHttpSeamCustomerV1Settings = class _SeamHttpSeamCustomerV1Settings {
|
|
|
7056
7383
|
"Missing personalAccessToken or workspaceId"
|
|
7057
7384
|
);
|
|
7058
7385
|
}
|
|
7059
|
-
return new
|
|
7386
|
+
return new _SeamHttpSeamCustomerV1Reservations(constructorOptions);
|
|
7060
7387
|
}
|
|
7061
7388
|
createPaginator(request) {
|
|
7062
7389
|
return new SeamPaginator(this, request);
|
|
@@ -7084,31 +7411,31 @@ var SeamHttpSeamCustomerV1Settings = class _SeamHttpSeamCustomerV1Settings {
|
|
|
7084
7411
|
);
|
|
7085
7412
|
}
|
|
7086
7413
|
return new SeamHttpRequest(this, {
|
|
7087
|
-
pathname: "/seam/customer/v1/
|
|
7088
|
-
method: "
|
|
7089
|
-
|
|
7090
|
-
responseKey: "
|
|
7414
|
+
pathname: "/seam/customer/v1/reservations/get",
|
|
7415
|
+
method: "POST",
|
|
7416
|
+
body: parameters,
|
|
7417
|
+
responseKey: "reservation",
|
|
7091
7418
|
options
|
|
7092
7419
|
});
|
|
7093
7420
|
}
|
|
7094
|
-
|
|
7421
|
+
list(parameters, options = {}) {
|
|
7095
7422
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7096
7423
|
throw new Error(
|
|
7097
7424
|
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7098
7425
|
);
|
|
7099
7426
|
}
|
|
7100
7427
|
return new SeamHttpRequest(this, {
|
|
7101
|
-
pathname: "/seam/customer/v1/
|
|
7102
|
-
method: "
|
|
7428
|
+
pathname: "/seam/customer/v1/reservations/list",
|
|
7429
|
+
method: "POST",
|
|
7103
7430
|
body: parameters,
|
|
7104
|
-
responseKey:
|
|
7431
|
+
responseKey: "reservations",
|
|
7105
7432
|
options
|
|
7106
7433
|
});
|
|
7107
7434
|
}
|
|
7108
7435
|
};
|
|
7109
7436
|
|
|
7110
|
-
// src/lib/seam/connect/routes/seam/customer/v1/
|
|
7111
|
-
var
|
|
7437
|
+
// src/lib/seam/connect/routes/seam/customer/v1/settings/vertical-resource-aliases/vertical-resource-aliases.ts
|
|
7438
|
+
var SeamHttpSeamCustomerV1SettingsVerticalResourceAliases = class _SeamHttpSeamCustomerV1SettingsVerticalResourceAliases {
|
|
7112
7439
|
client;
|
|
7113
7440
|
defaults;
|
|
7114
7441
|
ltsVersion = seamApiLtsVersion;
|
|
@@ -7128,28 +7455,34 @@ var SeamHttpSeamCustomerV1Spaces = class _SeamHttpSeamCustomerV1Spaces {
|
|
|
7128
7455
|
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
7129
7456
|
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
7130
7457
|
}
|
|
7131
|
-
return new
|
|
7458
|
+
return new _SeamHttpSeamCustomerV1SettingsVerticalResourceAliases(
|
|
7459
|
+
constructorOptions
|
|
7460
|
+
);
|
|
7132
7461
|
}
|
|
7133
7462
|
static fromApiKey(apiKey, options = {}) {
|
|
7134
7463
|
const constructorOptions = { ...options, apiKey };
|
|
7135
7464
|
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
7136
7465
|
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
7137
7466
|
}
|
|
7138
|
-
return new
|
|
7467
|
+
return new _SeamHttpSeamCustomerV1SettingsVerticalResourceAliases(
|
|
7468
|
+
constructorOptions
|
|
7469
|
+
);
|
|
7139
7470
|
}
|
|
7140
7471
|
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
7141
7472
|
const constructorOptions = { ...options, clientSessionToken };
|
|
7142
7473
|
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
7143
7474
|
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
7144
7475
|
}
|
|
7145
|
-
return new
|
|
7476
|
+
return new _SeamHttpSeamCustomerV1SettingsVerticalResourceAliases(
|
|
7477
|
+
constructorOptions
|
|
7478
|
+
);
|
|
7146
7479
|
}
|
|
7147
7480
|
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
7148
7481
|
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
7149
7482
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
7150
7483
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
7151
7484
|
throw new SeamHttpInvalidOptionsError(
|
|
7152
|
-
"The client option cannot be used with
|
|
7485
|
+
"The client option cannot be used with SeamHttpSeamCustomerV1SettingsVerticalResourceAliases.fromPublishableKey"
|
|
7153
7486
|
);
|
|
7154
7487
|
}
|
|
7155
7488
|
const client = createClient(clientOptions);
|
|
@@ -7157,7 +7490,10 @@ var SeamHttpSeamCustomerV1Spaces = class _SeamHttpSeamCustomerV1Spaces {
|
|
|
7157
7490
|
const { token } = await clientSessions.getOrCreate({
|
|
7158
7491
|
user_identifier_key: userIdentifierKey
|
|
7159
7492
|
});
|
|
7160
|
-
return
|
|
7493
|
+
return _SeamHttpSeamCustomerV1SettingsVerticalResourceAliases.fromClientSessionToken(
|
|
7494
|
+
token,
|
|
7495
|
+
options
|
|
7496
|
+
);
|
|
7161
7497
|
}
|
|
7162
7498
|
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
7163
7499
|
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
@@ -7166,7 +7502,9 @@ var SeamHttpSeamCustomerV1Spaces = class _SeamHttpSeamCustomerV1Spaces {
|
|
|
7166
7502
|
"Missing consoleSessionToken or workspaceId"
|
|
7167
7503
|
);
|
|
7168
7504
|
}
|
|
7169
|
-
return new
|
|
7505
|
+
return new _SeamHttpSeamCustomerV1SettingsVerticalResourceAliases(
|
|
7506
|
+
constructorOptions
|
|
7507
|
+
);
|
|
7170
7508
|
}
|
|
7171
7509
|
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
7172
7510
|
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
@@ -7175,7 +7513,9 @@ var SeamHttpSeamCustomerV1Spaces = class _SeamHttpSeamCustomerV1Spaces {
|
|
|
7175
7513
|
"Missing personalAccessToken or workspaceId"
|
|
7176
7514
|
);
|
|
7177
7515
|
}
|
|
7178
|
-
return new
|
|
7516
|
+
return new _SeamHttpSeamCustomerV1SettingsVerticalResourceAliases(
|
|
7517
|
+
constructorOptions
|
|
7518
|
+
);
|
|
7179
7519
|
}
|
|
7180
7520
|
createPaginator(request) {
|
|
7181
7521
|
return new SeamPaginator(this, request);
|
|
@@ -7196,52 +7536,24 @@ var SeamHttpSeamCustomerV1Spaces = class _SeamHttpSeamCustomerV1Spaces {
|
|
|
7196
7536
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
7197
7537
|
await clientSessions.get();
|
|
7198
7538
|
}
|
|
7199
|
-
|
|
7200
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7201
|
-
throw new Error(
|
|
7202
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7203
|
-
);
|
|
7204
|
-
}
|
|
7205
|
-
return new SeamHttpRequest(this, {
|
|
7206
|
-
pathname: "/seam/customer/v1/spaces/create",
|
|
7207
|
-
method: "POST",
|
|
7208
|
-
body: parameters,
|
|
7209
|
-
responseKey: "space",
|
|
7210
|
-
options
|
|
7211
|
-
});
|
|
7212
|
-
}
|
|
7213
|
-
list(parameters, options = {}) {
|
|
7214
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7215
|
-
throw new Error(
|
|
7216
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7217
|
-
);
|
|
7218
|
-
}
|
|
7219
|
-
return new SeamHttpRequest(this, {
|
|
7220
|
-
pathname: "/seam/customer/v1/spaces/list",
|
|
7221
|
-
method: "POST",
|
|
7222
|
-
body: parameters,
|
|
7223
|
-
responseKey: "spaces",
|
|
7224
|
-
options
|
|
7225
|
-
});
|
|
7226
|
-
}
|
|
7227
|
-
listReservations(parameters, options = {}) {
|
|
7539
|
+
get(parameters, options = {}) {
|
|
7228
7540
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7229
7541
|
throw new Error(
|
|
7230
7542
|
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7231
7543
|
);
|
|
7232
7544
|
}
|
|
7233
7545
|
return new SeamHttpRequest(this, {
|
|
7234
|
-
pathname: "/seam/customer/v1/
|
|
7546
|
+
pathname: "/seam/customer/v1/settings/vertical_resource_aliases/get",
|
|
7235
7547
|
method: "POST",
|
|
7236
7548
|
body: parameters,
|
|
7237
|
-
responseKey: "
|
|
7549
|
+
responseKey: "vertical_resource_aliases",
|
|
7238
7550
|
options
|
|
7239
7551
|
});
|
|
7240
7552
|
}
|
|
7241
7553
|
};
|
|
7242
7554
|
|
|
7243
|
-
// src/lib/seam/connect/routes/seam/customer/v1/
|
|
7244
|
-
var
|
|
7555
|
+
// src/lib/seam/connect/routes/seam/customer/v1/settings/settings.ts
|
|
7556
|
+
var SeamHttpSeamCustomerV1Settings = class _SeamHttpSeamCustomerV1Settings {
|
|
7245
7557
|
client;
|
|
7246
7558
|
defaults;
|
|
7247
7559
|
ltsVersion = seamApiLtsVersion;
|
|
@@ -7261,28 +7573,28 @@ var SeamHttpSeamCustomerV1StaffMembers = class _SeamHttpSeamCustomerV1StaffMembe
|
|
|
7261
7573
|
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
7262
7574
|
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
7263
7575
|
}
|
|
7264
|
-
return new
|
|
7576
|
+
return new _SeamHttpSeamCustomerV1Settings(constructorOptions);
|
|
7265
7577
|
}
|
|
7266
7578
|
static fromApiKey(apiKey, options = {}) {
|
|
7267
7579
|
const constructorOptions = { ...options, apiKey };
|
|
7268
7580
|
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
7269
7581
|
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
7270
7582
|
}
|
|
7271
|
-
return new
|
|
7583
|
+
return new _SeamHttpSeamCustomerV1Settings(constructorOptions);
|
|
7272
7584
|
}
|
|
7273
7585
|
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
7274
7586
|
const constructorOptions = { ...options, clientSessionToken };
|
|
7275
7587
|
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
7276
7588
|
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
7277
7589
|
}
|
|
7278
|
-
return new
|
|
7590
|
+
return new _SeamHttpSeamCustomerV1Settings(constructorOptions);
|
|
7279
7591
|
}
|
|
7280
7592
|
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
7281
7593
|
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
7282
7594
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
7283
7595
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
7284
7596
|
throw new SeamHttpInvalidOptionsError(
|
|
7285
|
-
"The client option cannot be used with
|
|
7597
|
+
"The client option cannot be used with SeamHttpSeamCustomerV1Settings.fromPublishableKey"
|
|
7286
7598
|
);
|
|
7287
7599
|
}
|
|
7288
7600
|
const client = createClient(clientOptions);
|
|
@@ -7290,10 +7602,7 @@ var SeamHttpSeamCustomerV1StaffMembers = class _SeamHttpSeamCustomerV1StaffMembe
|
|
|
7290
7602
|
const { token } = await clientSessions.getOrCreate({
|
|
7291
7603
|
user_identifier_key: userIdentifierKey
|
|
7292
7604
|
});
|
|
7293
|
-
return
|
|
7294
|
-
token,
|
|
7295
|
-
options
|
|
7296
|
-
);
|
|
7605
|
+
return _SeamHttpSeamCustomerV1Settings.fromClientSessionToken(token, options);
|
|
7297
7606
|
}
|
|
7298
7607
|
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
7299
7608
|
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
@@ -7302,7 +7611,7 @@ var SeamHttpSeamCustomerV1StaffMembers = class _SeamHttpSeamCustomerV1StaffMembe
|
|
|
7302
7611
|
"Missing consoleSessionToken or workspaceId"
|
|
7303
7612
|
);
|
|
7304
7613
|
}
|
|
7305
|
-
return new
|
|
7614
|
+
return new _SeamHttpSeamCustomerV1Settings(constructorOptions);
|
|
7306
7615
|
}
|
|
7307
7616
|
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
7308
7617
|
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
@@ -7311,7 +7620,7 @@ var SeamHttpSeamCustomerV1StaffMembers = class _SeamHttpSeamCustomerV1StaffMembe
|
|
|
7311
7620
|
"Missing personalAccessToken or workspaceId"
|
|
7312
7621
|
);
|
|
7313
7622
|
}
|
|
7314
|
-
return new
|
|
7623
|
+
return new _SeamHttpSeamCustomerV1Settings(constructorOptions);
|
|
7315
7624
|
}
|
|
7316
7625
|
createPaginator(request) {
|
|
7317
7626
|
return new SeamPaginator(this, request);
|
|
@@ -7332,6 +7641,12 @@ var SeamHttpSeamCustomerV1StaffMembers = class _SeamHttpSeamCustomerV1StaffMembe
|
|
|
7332
7641
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
7333
7642
|
await clientSessions.get();
|
|
7334
7643
|
}
|
|
7644
|
+
get verticalResourceAliases() {
|
|
7645
|
+
return SeamHttpSeamCustomerV1SettingsVerticalResourceAliases.fromClient(
|
|
7646
|
+
this.client,
|
|
7647
|
+
this.defaults
|
|
7648
|
+
);
|
|
7649
|
+
}
|
|
7335
7650
|
get(parameters, options = {}) {
|
|
7336
7651
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7337
7652
|
throw new Error(
|
|
@@ -7339,42 +7654,37 @@ var SeamHttpSeamCustomerV1StaffMembers = class _SeamHttpSeamCustomerV1StaffMembe
|
|
|
7339
7654
|
);
|
|
7340
7655
|
}
|
|
7341
7656
|
return new SeamHttpRequest(this, {
|
|
7342
|
-
pathname: "/seam/customer/v1/
|
|
7343
|
-
method: "
|
|
7344
|
-
|
|
7345
|
-
responseKey: "
|
|
7657
|
+
pathname: "/seam/customer/v1/settings/get",
|
|
7658
|
+
method: "GET",
|
|
7659
|
+
params: parameters,
|
|
7660
|
+
responseKey: "business_vertical",
|
|
7346
7661
|
options
|
|
7347
7662
|
});
|
|
7348
7663
|
}
|
|
7349
|
-
|
|
7664
|
+
update(parameters, options = {}) {
|
|
7350
7665
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7351
7666
|
throw new Error(
|
|
7352
7667
|
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7353
7668
|
);
|
|
7354
7669
|
}
|
|
7355
7670
|
return new SeamHttpRequest(this, {
|
|
7356
|
-
pathname: "/seam/customer/v1/
|
|
7357
|
-
method: "
|
|
7671
|
+
pathname: "/seam/customer/v1/settings/update",
|
|
7672
|
+
method: "PATCH",
|
|
7358
7673
|
body: parameters,
|
|
7359
|
-
responseKey:
|
|
7674
|
+
responseKey: void 0,
|
|
7360
7675
|
options
|
|
7361
7676
|
});
|
|
7362
7677
|
}
|
|
7363
7678
|
};
|
|
7364
7679
|
|
|
7365
|
-
// src/lib/seam/connect/routes/seam/customer/v1/
|
|
7366
|
-
var
|
|
7680
|
+
// src/lib/seam/connect/routes/seam/customer/v1/spaces/spaces.ts
|
|
7681
|
+
var SeamHttpSeamCustomerV1Spaces = class _SeamHttpSeamCustomerV1Spaces {
|
|
7367
7682
|
client;
|
|
7368
7683
|
defaults;
|
|
7369
7684
|
ltsVersion = seamApiLtsVersion;
|
|
7370
7685
|
static ltsVersion = seamApiLtsVersion;
|
|
7371
7686
|
constructor(apiKeyOrOptions = {}) {
|
|
7372
7687
|
const options = parseOptions(apiKeyOrOptions);
|
|
7373
|
-
if (!options.isUndocumentedApiEnabled) {
|
|
7374
|
-
throw new Error(
|
|
7375
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7376
|
-
);
|
|
7377
|
-
}
|
|
7378
7688
|
this.client = "client" in options ? options.client : createClient(options);
|
|
7379
7689
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
7380
7690
|
}
|
|
@@ -7383,28 +7693,28 @@ var SeamHttpSeamCustomerV1 = class _SeamHttpSeamCustomerV1 {
|
|
|
7383
7693
|
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
7384
7694
|
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
7385
7695
|
}
|
|
7386
|
-
return new
|
|
7696
|
+
return new _SeamHttpSeamCustomerV1Spaces(constructorOptions);
|
|
7387
7697
|
}
|
|
7388
7698
|
static fromApiKey(apiKey, options = {}) {
|
|
7389
7699
|
const constructorOptions = { ...options, apiKey };
|
|
7390
7700
|
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
7391
7701
|
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
7392
7702
|
}
|
|
7393
|
-
return new
|
|
7703
|
+
return new _SeamHttpSeamCustomerV1Spaces(constructorOptions);
|
|
7394
7704
|
}
|
|
7395
7705
|
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
7396
7706
|
const constructorOptions = { ...options, clientSessionToken };
|
|
7397
7707
|
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
7398
7708
|
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
7399
7709
|
}
|
|
7400
|
-
return new
|
|
7710
|
+
return new _SeamHttpSeamCustomerV1Spaces(constructorOptions);
|
|
7401
7711
|
}
|
|
7402
7712
|
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
7403
7713
|
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
7404
7714
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
7405
7715
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
7406
7716
|
throw new SeamHttpInvalidOptionsError(
|
|
7407
|
-
"The client option cannot be used with
|
|
7717
|
+
"The client option cannot be used with SeamHttpSeamCustomerV1Spaces.fromPublishableKey"
|
|
7408
7718
|
);
|
|
7409
7719
|
}
|
|
7410
7720
|
const client = createClient(clientOptions);
|
|
@@ -7412,7 +7722,7 @@ var SeamHttpSeamCustomerV1 = class _SeamHttpSeamCustomerV1 {
|
|
|
7412
7722
|
const { token } = await clientSessions.getOrCreate({
|
|
7413
7723
|
user_identifier_key: userIdentifierKey
|
|
7414
7724
|
});
|
|
7415
|
-
return
|
|
7725
|
+
return _SeamHttpSeamCustomerV1Spaces.fromClientSessionToken(token, options);
|
|
7416
7726
|
}
|
|
7417
7727
|
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
7418
7728
|
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
@@ -7421,7 +7731,7 @@ var SeamHttpSeamCustomerV1 = class _SeamHttpSeamCustomerV1 {
|
|
|
7421
7731
|
"Missing consoleSessionToken or workspaceId"
|
|
7422
7732
|
);
|
|
7423
7733
|
}
|
|
7424
|
-
return new
|
|
7734
|
+
return new _SeamHttpSeamCustomerV1Spaces(constructorOptions);
|
|
7425
7735
|
}
|
|
7426
7736
|
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
7427
7737
|
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
@@ -7430,7 +7740,7 @@ var SeamHttpSeamCustomerV1 = class _SeamHttpSeamCustomerV1 {
|
|
|
7430
7740
|
"Missing personalAccessToken or workspaceId"
|
|
7431
7741
|
);
|
|
7432
7742
|
}
|
|
7433
|
-
return new
|
|
7743
|
+
return new _SeamHttpSeamCustomerV1Spaces(constructorOptions);
|
|
7434
7744
|
}
|
|
7435
7745
|
createPaginator(request) {
|
|
7436
7746
|
return new SeamPaginator(this, request);
|
|
@@ -7451,64 +7761,61 @@ var SeamHttpSeamCustomerV1 = class _SeamHttpSeamCustomerV1 {
|
|
|
7451
7761
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
7452
7762
|
await clientSessions.get();
|
|
7453
7763
|
}
|
|
7454
|
-
|
|
7455
|
-
|
|
7456
|
-
|
|
7457
|
-
|
|
7458
|
-
|
|
7459
|
-
|
|
7460
|
-
|
|
7461
|
-
|
|
7462
|
-
|
|
7463
|
-
|
|
7464
|
-
|
|
7465
|
-
|
|
7466
|
-
|
|
7467
|
-
return SeamHttpSeamCustomerV1Automations.fromClient(
|
|
7468
|
-
this.client,
|
|
7469
|
-
this.defaults
|
|
7470
|
-
);
|
|
7471
|
-
}
|
|
7472
|
-
get connectors() {
|
|
7473
|
-
return SeamHttpSeamCustomerV1Connectors.fromClient(
|
|
7474
|
-
this.client,
|
|
7475
|
-
this.defaults
|
|
7476
|
-
);
|
|
7477
|
-
}
|
|
7478
|
-
get customers() {
|
|
7479
|
-
return SeamHttpSeamCustomerV1Customers.fromClient(
|
|
7480
|
-
this.client,
|
|
7481
|
-
this.defaults
|
|
7482
|
-
);
|
|
7483
|
-
}
|
|
7484
|
-
get events() {
|
|
7485
|
-
return SeamHttpSeamCustomerV1Events.fromClient(this.client, this.defaults);
|
|
7486
|
-
}
|
|
7487
|
-
get portals() {
|
|
7488
|
-
return SeamHttpSeamCustomerV1Portals.fromClient(this.client, this.defaults);
|
|
7489
|
-
}
|
|
7490
|
-
get reservations() {
|
|
7491
|
-
return SeamHttpSeamCustomerV1Reservations.fromClient(
|
|
7492
|
-
this.client,
|
|
7493
|
-
this.defaults
|
|
7494
|
-
);
|
|
7764
|
+
create(parameters, options = {}) {
|
|
7765
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7766
|
+
throw new Error(
|
|
7767
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7768
|
+
);
|
|
7769
|
+
}
|
|
7770
|
+
return new SeamHttpRequest(this, {
|
|
7771
|
+
pathname: "/seam/customer/v1/spaces/create",
|
|
7772
|
+
method: "POST",
|
|
7773
|
+
body: parameters,
|
|
7774
|
+
responseKey: "space",
|
|
7775
|
+
options
|
|
7776
|
+
});
|
|
7495
7777
|
}
|
|
7496
|
-
|
|
7497
|
-
|
|
7778
|
+
list(parameters, options = {}) {
|
|
7779
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7780
|
+
throw new Error(
|
|
7781
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7782
|
+
);
|
|
7783
|
+
}
|
|
7784
|
+
return new SeamHttpRequest(this, {
|
|
7785
|
+
pathname: "/seam/customer/v1/spaces/list",
|
|
7786
|
+
method: "POST",
|
|
7787
|
+
body: parameters,
|
|
7788
|
+
responseKey: "spaces",
|
|
7789
|
+
options
|
|
7790
|
+
});
|
|
7498
7791
|
}
|
|
7499
|
-
|
|
7500
|
-
|
|
7792
|
+
listReservations(parameters, options = {}) {
|
|
7793
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7794
|
+
throw new Error(
|
|
7795
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7796
|
+
);
|
|
7797
|
+
}
|
|
7798
|
+
return new SeamHttpRequest(this, {
|
|
7799
|
+
pathname: "/seam/customer/v1/spaces/list_reservations",
|
|
7800
|
+
method: "POST",
|
|
7801
|
+
body: parameters,
|
|
7802
|
+
responseKey: "reservations",
|
|
7803
|
+
options
|
|
7804
|
+
});
|
|
7501
7805
|
}
|
|
7502
|
-
|
|
7503
|
-
return
|
|
7504
|
-
|
|
7505
|
-
|
|
7506
|
-
|
|
7806
|
+
pushCommonAreas(parameters, options = {}) {
|
|
7807
|
+
return new SeamHttpRequest(this, {
|
|
7808
|
+
pathname: "/seam/customer/v1/spaces/push_common_areas",
|
|
7809
|
+
method: "POST",
|
|
7810
|
+
body: parameters,
|
|
7811
|
+
responseKey: void 0,
|
|
7812
|
+
options
|
|
7813
|
+
});
|
|
7507
7814
|
}
|
|
7508
7815
|
};
|
|
7509
7816
|
|
|
7510
|
-
// src/lib/seam/connect/routes/seam/
|
|
7511
|
-
var
|
|
7817
|
+
// src/lib/seam/connect/routes/seam/customer/v1/staff-members/staff-members.ts
|
|
7818
|
+
var SeamHttpSeamCustomerV1StaffMembers = class _SeamHttpSeamCustomerV1StaffMembers {
|
|
7512
7819
|
client;
|
|
7513
7820
|
defaults;
|
|
7514
7821
|
ltsVersion = seamApiLtsVersion;
|
|
@@ -7528,28 +7835,28 @@ var SeamHttpSeamPartnerV1BuildingBlocksSpaces = class _SeamHttpSeamPartnerV1Buil
|
|
|
7528
7835
|
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
7529
7836
|
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
7530
7837
|
}
|
|
7531
|
-
return new
|
|
7838
|
+
return new _SeamHttpSeamCustomerV1StaffMembers(constructorOptions);
|
|
7532
7839
|
}
|
|
7533
7840
|
static fromApiKey(apiKey, options = {}) {
|
|
7534
7841
|
const constructorOptions = { ...options, apiKey };
|
|
7535
7842
|
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
7536
7843
|
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
7537
7844
|
}
|
|
7538
|
-
return new
|
|
7845
|
+
return new _SeamHttpSeamCustomerV1StaffMembers(constructorOptions);
|
|
7539
7846
|
}
|
|
7540
7847
|
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
7541
7848
|
const constructorOptions = { ...options, clientSessionToken };
|
|
7542
7849
|
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
7543
7850
|
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
7544
7851
|
}
|
|
7545
|
-
return new
|
|
7852
|
+
return new _SeamHttpSeamCustomerV1StaffMembers(constructorOptions);
|
|
7546
7853
|
}
|
|
7547
7854
|
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
7548
7855
|
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
7549
7856
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
7550
7857
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
7551
7858
|
throw new SeamHttpInvalidOptionsError(
|
|
7552
|
-
"The client option cannot be used with
|
|
7859
|
+
"The client option cannot be used with SeamHttpSeamCustomerV1StaffMembers.fromPublishableKey"
|
|
7553
7860
|
);
|
|
7554
7861
|
}
|
|
7555
7862
|
const client = createClient(clientOptions);
|
|
@@ -7557,7 +7864,7 @@ var SeamHttpSeamPartnerV1BuildingBlocksSpaces = class _SeamHttpSeamPartnerV1Buil
|
|
|
7557
7864
|
const { token } = await clientSessions.getOrCreate({
|
|
7558
7865
|
user_identifier_key: userIdentifierKey
|
|
7559
7866
|
});
|
|
7560
|
-
return
|
|
7867
|
+
return _SeamHttpSeamCustomerV1StaffMembers.fromClientSessionToken(
|
|
7561
7868
|
token,
|
|
7562
7869
|
options
|
|
7563
7870
|
);
|
|
@@ -7569,7 +7876,7 @@ var SeamHttpSeamPartnerV1BuildingBlocksSpaces = class _SeamHttpSeamPartnerV1Buil
|
|
|
7569
7876
|
"Missing consoleSessionToken or workspaceId"
|
|
7570
7877
|
);
|
|
7571
7878
|
}
|
|
7572
|
-
return new
|
|
7879
|
+
return new _SeamHttpSeamCustomerV1StaffMembers(constructorOptions);
|
|
7573
7880
|
}
|
|
7574
7881
|
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
7575
7882
|
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
@@ -7578,7 +7885,7 @@ var SeamHttpSeamPartnerV1BuildingBlocksSpaces = class _SeamHttpSeamPartnerV1Buil
|
|
|
7578
7885
|
"Missing personalAccessToken or workspaceId"
|
|
7579
7886
|
);
|
|
7580
7887
|
}
|
|
7581
|
-
return new
|
|
7888
|
+
return new _SeamHttpSeamCustomerV1StaffMembers(constructorOptions);
|
|
7582
7889
|
}
|
|
7583
7890
|
createPaginator(request) {
|
|
7584
7891
|
return new SeamPaginator(this, request);
|
|
@@ -7599,35 +7906,44 @@ var SeamHttpSeamPartnerV1BuildingBlocksSpaces = class _SeamHttpSeamPartnerV1Buil
|
|
|
7599
7906
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
7600
7907
|
await clientSessions.get();
|
|
7601
7908
|
}
|
|
7602
|
-
|
|
7909
|
+
get(parameters, options = {}) {
|
|
7603
7910
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7604
7911
|
throw new Error(
|
|
7605
7912
|
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7606
7913
|
);
|
|
7607
7914
|
}
|
|
7608
7915
|
return new SeamHttpRequest(this, {
|
|
7609
|
-
pathname: "/seam/
|
|
7916
|
+
pathname: "/seam/customer/v1/staff_members/get",
|
|
7610
7917
|
method: "POST",
|
|
7611
7918
|
body: parameters,
|
|
7612
|
-
responseKey: "
|
|
7919
|
+
responseKey: "staff_member",
|
|
7920
|
+
options
|
|
7921
|
+
});
|
|
7922
|
+
}
|
|
7923
|
+
list(parameters, options = {}) {
|
|
7924
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7925
|
+
throw new Error(
|
|
7926
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7927
|
+
);
|
|
7928
|
+
}
|
|
7929
|
+
return new SeamHttpRequest(this, {
|
|
7930
|
+
pathname: "/seam/customer/v1/staff_members/list",
|
|
7931
|
+
method: "POST",
|
|
7932
|
+
body: parameters,
|
|
7933
|
+
responseKey: "staff_members",
|
|
7613
7934
|
options
|
|
7614
7935
|
});
|
|
7615
7936
|
}
|
|
7616
7937
|
};
|
|
7617
7938
|
|
|
7618
|
-
// src/lib/seam/connect/routes/seam/
|
|
7619
|
-
var
|
|
7939
|
+
// src/lib/seam/connect/routes/seam/customer/v1/v1.ts
|
|
7940
|
+
var SeamHttpSeamCustomerV1 = class _SeamHttpSeamCustomerV1 {
|
|
7620
7941
|
client;
|
|
7621
7942
|
defaults;
|
|
7622
7943
|
ltsVersion = seamApiLtsVersion;
|
|
7623
7944
|
static ltsVersion = seamApiLtsVersion;
|
|
7624
7945
|
constructor(apiKeyOrOptions = {}) {
|
|
7625
7946
|
const options = parseOptions(apiKeyOrOptions);
|
|
7626
|
-
if (!options.isUndocumentedApiEnabled) {
|
|
7627
|
-
throw new Error(
|
|
7628
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7629
|
-
);
|
|
7630
|
-
}
|
|
7631
7947
|
this.client = "client" in options ? options.client : createClient(options);
|
|
7632
7948
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
7633
7949
|
}
|
|
@@ -7636,28 +7952,28 @@ var SeamHttpSeamPartnerV1BuildingBlocks = class _SeamHttpSeamPartnerV1BuildingBl
|
|
|
7636
7952
|
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
7637
7953
|
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
7638
7954
|
}
|
|
7639
|
-
return new
|
|
7955
|
+
return new _SeamHttpSeamCustomerV1(constructorOptions);
|
|
7640
7956
|
}
|
|
7641
7957
|
static fromApiKey(apiKey, options = {}) {
|
|
7642
7958
|
const constructorOptions = { ...options, apiKey };
|
|
7643
7959
|
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
7644
7960
|
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
7645
7961
|
}
|
|
7646
|
-
return new
|
|
7962
|
+
return new _SeamHttpSeamCustomerV1(constructorOptions);
|
|
7647
7963
|
}
|
|
7648
7964
|
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
7649
7965
|
const constructorOptions = { ...options, clientSessionToken };
|
|
7650
7966
|
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
7651
7967
|
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
7652
7968
|
}
|
|
7653
|
-
return new
|
|
7969
|
+
return new _SeamHttpSeamCustomerV1(constructorOptions);
|
|
7654
7970
|
}
|
|
7655
7971
|
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
7656
7972
|
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
7657
7973
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
7658
7974
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
7659
7975
|
throw new SeamHttpInvalidOptionsError(
|
|
7660
|
-
"The client option cannot be used with
|
|
7976
|
+
"The client option cannot be used with SeamHttpSeamCustomerV1.fromPublishableKey"
|
|
7661
7977
|
);
|
|
7662
7978
|
}
|
|
7663
7979
|
const client = createClient(clientOptions);
|
|
@@ -7665,10 +7981,7 @@ var SeamHttpSeamPartnerV1BuildingBlocks = class _SeamHttpSeamPartnerV1BuildingBl
|
|
|
7665
7981
|
const { token } = await clientSessions.getOrCreate({
|
|
7666
7982
|
user_identifier_key: userIdentifierKey
|
|
7667
7983
|
});
|
|
7668
|
-
return
|
|
7669
|
-
token,
|
|
7670
|
-
options
|
|
7671
|
-
);
|
|
7984
|
+
return _SeamHttpSeamCustomerV1.fromClientSessionToken(token, options);
|
|
7672
7985
|
}
|
|
7673
7986
|
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
7674
7987
|
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
@@ -7677,7 +7990,7 @@ var SeamHttpSeamPartnerV1BuildingBlocks = class _SeamHttpSeamPartnerV1BuildingBl
|
|
|
7677
7990
|
"Missing consoleSessionToken or workspaceId"
|
|
7678
7991
|
);
|
|
7679
7992
|
}
|
|
7680
|
-
return new
|
|
7993
|
+
return new _SeamHttpSeamCustomerV1(constructorOptions);
|
|
7681
7994
|
}
|
|
7682
7995
|
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
7683
7996
|
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
@@ -7686,7 +7999,7 @@ var SeamHttpSeamPartnerV1BuildingBlocks = class _SeamHttpSeamPartnerV1BuildingBl
|
|
|
7686
7999
|
"Missing personalAccessToken or workspaceId"
|
|
7687
8000
|
);
|
|
7688
8001
|
}
|
|
7689
|
-
return new
|
|
8002
|
+
return new _SeamHttpSeamCustomerV1(constructorOptions);
|
|
7690
8003
|
}
|
|
7691
8004
|
createPaginator(request) {
|
|
7692
8005
|
return new SeamPaginator(this, request);
|
|
@@ -7707,22 +8020,90 @@ var SeamHttpSeamPartnerV1BuildingBlocks = class _SeamHttpSeamPartnerV1BuildingBl
|
|
|
7707
8020
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
7708
8021
|
await clientSessions.get();
|
|
7709
8022
|
}
|
|
8023
|
+
get accessGrants() {
|
|
8024
|
+
return SeamHttpSeamCustomerV1AccessGrants.fromClient(
|
|
8025
|
+
this.client,
|
|
8026
|
+
this.defaults
|
|
8027
|
+
);
|
|
8028
|
+
}
|
|
8029
|
+
get accessMethods() {
|
|
8030
|
+
return SeamHttpSeamCustomerV1AccessMethods.fromClient(
|
|
8031
|
+
this.client,
|
|
8032
|
+
this.defaults
|
|
8033
|
+
);
|
|
8034
|
+
}
|
|
8035
|
+
get automationRuns() {
|
|
8036
|
+
return SeamHttpSeamCustomerV1AutomationRuns.fromClient(
|
|
8037
|
+
this.client,
|
|
8038
|
+
this.defaults
|
|
8039
|
+
);
|
|
8040
|
+
}
|
|
8041
|
+
get automations() {
|
|
8042
|
+
return SeamHttpSeamCustomerV1Automations.fromClient(
|
|
8043
|
+
this.client,
|
|
8044
|
+
this.defaults
|
|
8045
|
+
);
|
|
8046
|
+
}
|
|
8047
|
+
get connectorCustomers() {
|
|
8048
|
+
return SeamHttpSeamCustomerV1ConnectorCustomers.fromClient(
|
|
8049
|
+
this.client,
|
|
8050
|
+
this.defaults
|
|
8051
|
+
);
|
|
8052
|
+
}
|
|
8053
|
+
get connectors() {
|
|
8054
|
+
return SeamHttpSeamCustomerV1Connectors.fromClient(
|
|
8055
|
+
this.client,
|
|
8056
|
+
this.defaults
|
|
8057
|
+
);
|
|
8058
|
+
}
|
|
8059
|
+
get customers() {
|
|
8060
|
+
return SeamHttpSeamCustomerV1Customers.fromClient(
|
|
8061
|
+
this.client,
|
|
8062
|
+
this.defaults
|
|
8063
|
+
);
|
|
8064
|
+
}
|
|
8065
|
+
get encoders() {
|
|
8066
|
+
return SeamHttpSeamCustomerV1Encoders.fromClient(this.client, this.defaults);
|
|
8067
|
+
}
|
|
8068
|
+
get events() {
|
|
8069
|
+
return SeamHttpSeamCustomerV1Events.fromClient(this.client, this.defaults);
|
|
8070
|
+
}
|
|
8071
|
+
get portals() {
|
|
8072
|
+
return SeamHttpSeamCustomerV1Portals.fromClient(this.client, this.defaults);
|
|
8073
|
+
}
|
|
8074
|
+
get reservations() {
|
|
8075
|
+
return SeamHttpSeamCustomerV1Reservations.fromClient(
|
|
8076
|
+
this.client,
|
|
8077
|
+
this.defaults
|
|
8078
|
+
);
|
|
8079
|
+
}
|
|
8080
|
+
get settings() {
|
|
8081
|
+
return SeamHttpSeamCustomerV1Settings.fromClient(this.client, this.defaults);
|
|
8082
|
+
}
|
|
7710
8083
|
get spaces() {
|
|
7711
|
-
return
|
|
8084
|
+
return SeamHttpSeamCustomerV1Spaces.fromClient(this.client, this.defaults);
|
|
8085
|
+
}
|
|
8086
|
+
get staffMembers() {
|
|
8087
|
+
return SeamHttpSeamCustomerV1StaffMembers.fromClient(
|
|
7712
8088
|
this.client,
|
|
7713
8089
|
this.defaults
|
|
7714
8090
|
);
|
|
7715
8091
|
}
|
|
7716
8092
|
};
|
|
7717
8093
|
|
|
7718
|
-
// src/lib/seam/connect/routes/seam/v1/
|
|
7719
|
-
var
|
|
8094
|
+
// src/lib/seam/connect/routes/seam/partner/v1/building-blocks/spaces/spaces.ts
|
|
8095
|
+
var SeamHttpSeamPartnerV1BuildingBlocksSpaces = class _SeamHttpSeamPartnerV1BuildingBlocksSpaces {
|
|
7720
8096
|
client;
|
|
7721
8097
|
defaults;
|
|
7722
8098
|
ltsVersion = seamApiLtsVersion;
|
|
7723
8099
|
static ltsVersion = seamApiLtsVersion;
|
|
7724
8100
|
constructor(apiKeyOrOptions = {}) {
|
|
7725
8101
|
const options = parseOptions(apiKeyOrOptions);
|
|
8102
|
+
if (!options.isUndocumentedApiEnabled) {
|
|
8103
|
+
throw new Error(
|
|
8104
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
8105
|
+
);
|
|
8106
|
+
}
|
|
7726
8107
|
this.client = "client" in options ? options.client : createClient(options);
|
|
7727
8108
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
7728
8109
|
}
|
|
@@ -7731,28 +8112,28 @@ var SeamHttpSeamV1Customers = class _SeamHttpSeamV1Customers {
|
|
|
7731
8112
|
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
7732
8113
|
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
7733
8114
|
}
|
|
7734
|
-
return new
|
|
8115
|
+
return new _SeamHttpSeamPartnerV1BuildingBlocksSpaces(constructorOptions);
|
|
7735
8116
|
}
|
|
7736
8117
|
static fromApiKey(apiKey, options = {}) {
|
|
7737
8118
|
const constructorOptions = { ...options, apiKey };
|
|
7738
8119
|
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
7739
8120
|
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
7740
8121
|
}
|
|
7741
|
-
return new
|
|
8122
|
+
return new _SeamHttpSeamPartnerV1BuildingBlocksSpaces(constructorOptions);
|
|
7742
8123
|
}
|
|
7743
8124
|
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
7744
8125
|
const constructorOptions = { ...options, clientSessionToken };
|
|
7745
8126
|
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
7746
8127
|
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
7747
8128
|
}
|
|
7748
|
-
return new
|
|
8129
|
+
return new _SeamHttpSeamPartnerV1BuildingBlocksSpaces(constructorOptions);
|
|
7749
8130
|
}
|
|
7750
8131
|
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
7751
8132
|
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
7752
8133
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
7753
8134
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
7754
8135
|
throw new SeamHttpInvalidOptionsError(
|
|
7755
|
-
"The client option cannot be used with
|
|
8136
|
+
"The client option cannot be used with SeamHttpSeamPartnerV1BuildingBlocksSpaces.fromPublishableKey"
|
|
7756
8137
|
);
|
|
7757
8138
|
}
|
|
7758
8139
|
const client = createClient(clientOptions);
|
|
@@ -7760,7 +8141,10 @@ var SeamHttpSeamV1Customers = class _SeamHttpSeamV1Customers {
|
|
|
7760
8141
|
const { token } = await clientSessions.getOrCreate({
|
|
7761
8142
|
user_identifier_key: userIdentifierKey
|
|
7762
8143
|
});
|
|
7763
|
-
return
|
|
8144
|
+
return _SeamHttpSeamPartnerV1BuildingBlocksSpaces.fromClientSessionToken(
|
|
8145
|
+
token,
|
|
8146
|
+
options
|
|
8147
|
+
);
|
|
7764
8148
|
}
|
|
7765
8149
|
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
7766
8150
|
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
@@ -7769,7 +8153,7 @@ var SeamHttpSeamV1Customers = class _SeamHttpSeamV1Customers {
|
|
|
7769
8153
|
"Missing consoleSessionToken or workspaceId"
|
|
7770
8154
|
);
|
|
7771
8155
|
}
|
|
7772
|
-
return new
|
|
8156
|
+
return new _SeamHttpSeamPartnerV1BuildingBlocksSpaces(constructorOptions);
|
|
7773
8157
|
}
|
|
7774
8158
|
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
7775
8159
|
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
@@ -7778,7 +8162,7 @@ var SeamHttpSeamV1Customers = class _SeamHttpSeamV1Customers {
|
|
|
7778
8162
|
"Missing personalAccessToken or workspaceId"
|
|
7779
8163
|
);
|
|
7780
8164
|
}
|
|
7781
|
-
return new
|
|
8165
|
+
return new _SeamHttpSeamPartnerV1BuildingBlocksSpaces(constructorOptions);
|
|
7782
8166
|
}
|
|
7783
8167
|
createPaginator(request) {
|
|
7784
8168
|
return new SeamPaginator(this, request);
|
|
@@ -7799,25 +8183,35 @@ var SeamHttpSeamV1Customers = class _SeamHttpSeamV1Customers {
|
|
|
7799
8183
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
7800
8184
|
await clientSessions.get();
|
|
7801
8185
|
}
|
|
7802
|
-
|
|
8186
|
+
autoMap(parameters, options = {}) {
|
|
8187
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
8188
|
+
throw new Error(
|
|
8189
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
8190
|
+
);
|
|
8191
|
+
}
|
|
7803
8192
|
return new SeamHttpRequest(this, {
|
|
7804
|
-
pathname: "/seam/v1/
|
|
8193
|
+
pathname: "/seam/partner/v1/building_blocks/spaces/auto_map",
|
|
7805
8194
|
method: "POST",
|
|
7806
8195
|
body: parameters,
|
|
7807
|
-
responseKey:
|
|
8196
|
+
responseKey: "spaces",
|
|
7808
8197
|
options
|
|
7809
8198
|
});
|
|
7810
8199
|
}
|
|
7811
8200
|
};
|
|
7812
8201
|
|
|
7813
|
-
// src/lib/seam/connect/routes/seam/v1/
|
|
7814
|
-
var
|
|
8202
|
+
// src/lib/seam/connect/routes/seam/partner/v1/building-blocks/building-blocks.ts
|
|
8203
|
+
var SeamHttpSeamPartnerV1BuildingBlocks = class _SeamHttpSeamPartnerV1BuildingBlocks {
|
|
7815
8204
|
client;
|
|
7816
8205
|
defaults;
|
|
7817
8206
|
ltsVersion = seamApiLtsVersion;
|
|
7818
8207
|
static ltsVersion = seamApiLtsVersion;
|
|
7819
8208
|
constructor(apiKeyOrOptions = {}) {
|
|
7820
8209
|
const options = parseOptions(apiKeyOrOptions);
|
|
8210
|
+
if (!options.isUndocumentedApiEnabled) {
|
|
8211
|
+
throw new Error(
|
|
8212
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
8213
|
+
);
|
|
8214
|
+
}
|
|
7821
8215
|
this.client = "client" in options ? options.client : createClient(options);
|
|
7822
8216
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
7823
8217
|
}
|
|
@@ -7826,28 +8220,28 @@ var SeamHttpSeamV1 = class _SeamHttpSeamV1 {
|
|
|
7826
8220
|
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
7827
8221
|
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
7828
8222
|
}
|
|
7829
|
-
return new
|
|
8223
|
+
return new _SeamHttpSeamPartnerV1BuildingBlocks(constructorOptions);
|
|
7830
8224
|
}
|
|
7831
8225
|
static fromApiKey(apiKey, options = {}) {
|
|
7832
8226
|
const constructorOptions = { ...options, apiKey };
|
|
7833
8227
|
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
7834
8228
|
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
7835
8229
|
}
|
|
7836
|
-
return new
|
|
8230
|
+
return new _SeamHttpSeamPartnerV1BuildingBlocks(constructorOptions);
|
|
7837
8231
|
}
|
|
7838
8232
|
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
7839
8233
|
const constructorOptions = { ...options, clientSessionToken };
|
|
7840
8234
|
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
7841
8235
|
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
7842
8236
|
}
|
|
7843
|
-
return new
|
|
8237
|
+
return new _SeamHttpSeamPartnerV1BuildingBlocks(constructorOptions);
|
|
7844
8238
|
}
|
|
7845
8239
|
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
7846
8240
|
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
7847
8241
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
7848
8242
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
7849
8243
|
throw new SeamHttpInvalidOptionsError(
|
|
7850
|
-
"The client option cannot be used with
|
|
8244
|
+
"The client option cannot be used with SeamHttpSeamPartnerV1BuildingBlocks.fromPublishableKey"
|
|
7851
8245
|
);
|
|
7852
8246
|
}
|
|
7853
8247
|
const client = createClient(clientOptions);
|
|
@@ -7855,7 +8249,10 @@ var SeamHttpSeamV1 = class _SeamHttpSeamV1 {
|
|
|
7855
8249
|
const { token } = await clientSessions.getOrCreate({
|
|
7856
8250
|
user_identifier_key: userIdentifierKey
|
|
7857
8251
|
});
|
|
7858
|
-
return
|
|
8252
|
+
return _SeamHttpSeamPartnerV1BuildingBlocks.fromClientSessionToken(
|
|
8253
|
+
token,
|
|
8254
|
+
options
|
|
8255
|
+
);
|
|
7859
8256
|
}
|
|
7860
8257
|
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
7861
8258
|
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
@@ -7864,7 +8261,7 @@ var SeamHttpSeamV1 = class _SeamHttpSeamV1 {
|
|
|
7864
8261
|
"Missing consoleSessionToken or workspaceId"
|
|
7865
8262
|
);
|
|
7866
8263
|
}
|
|
7867
|
-
return new
|
|
8264
|
+
return new _SeamHttpSeamPartnerV1BuildingBlocks(constructorOptions);
|
|
7868
8265
|
}
|
|
7869
8266
|
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
7870
8267
|
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
@@ -7873,7 +8270,7 @@ var SeamHttpSeamV1 = class _SeamHttpSeamV1 {
|
|
|
7873
8270
|
"Missing personalAccessToken or workspaceId"
|
|
7874
8271
|
);
|
|
7875
8272
|
}
|
|
7876
|
-
return new
|
|
8273
|
+
return new _SeamHttpSeamPartnerV1BuildingBlocks(constructorOptions);
|
|
7877
8274
|
}
|
|
7878
8275
|
createPaginator(request) {
|
|
7879
8276
|
return new SeamPaginator(this, request);
|
|
@@ -7894,8 +8291,11 @@ var SeamHttpSeamV1 = class _SeamHttpSeamV1 {
|
|
|
7894
8291
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
7895
8292
|
await clientSessions.get();
|
|
7896
8293
|
}
|
|
7897
|
-
get
|
|
7898
|
-
return
|
|
8294
|
+
get spaces() {
|
|
8295
|
+
return SeamHttpSeamPartnerV1BuildingBlocksSpaces.fromClient(
|
|
8296
|
+
this.client,
|
|
8297
|
+
this.defaults
|
|
8298
|
+
);
|
|
7899
8299
|
}
|
|
7900
8300
|
};
|
|
7901
8301
|
|
|
@@ -10109,6 +10509,13 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10109
10509
|
return seam.get(...args);
|
|
10110
10510
|
};
|
|
10111
10511
|
}
|
|
10512
|
+
get "/access_codes/get_timeline"() {
|
|
10513
|
+
const { client, defaults } = this;
|
|
10514
|
+
return function accessCodesGetTimeline(...args) {
|
|
10515
|
+
const seam = SeamHttpAccessCodes.fromClient(client, defaults);
|
|
10516
|
+
return seam.getTimeline(...args);
|
|
10517
|
+
};
|
|
10518
|
+
}
|
|
10112
10519
|
get "/access_codes/list"() {
|
|
10113
10520
|
const { client, defaults } = this;
|
|
10114
10521
|
return function accessCodesList(...args) {
|
|
@@ -10891,6 +11298,13 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10891
11298
|
return seam.pushData(...args);
|
|
10892
11299
|
};
|
|
10893
11300
|
}
|
|
11301
|
+
get "/customers/reservations/create_deep_link"() {
|
|
11302
|
+
const { client, defaults } = this;
|
|
11303
|
+
return function customersReservationsCreateDeepLink(...args) {
|
|
11304
|
+
const seam = SeamHttpCustomersReservations.fromClient(client, defaults);
|
|
11305
|
+
return seam.createDeepLink(...args);
|
|
11306
|
+
};
|
|
11307
|
+
}
|
|
10894
11308
|
get "/devices/delete"() {
|
|
10895
11309
|
const { client, defaults } = this;
|
|
10896
11310
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
@@ -11209,6 +11623,36 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
11209
11623
|
return seam.list(...args);
|
|
11210
11624
|
};
|
|
11211
11625
|
}
|
|
11626
|
+
get "/seam/customer/v1/access_grants/update"() {
|
|
11627
|
+
const { client, defaults } = this;
|
|
11628
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
11629
|
+
throw new Error(
|
|
11630
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
11631
|
+
);
|
|
11632
|
+
}
|
|
11633
|
+
return function seamCustomerV1AccessGrantsUpdate(...args) {
|
|
11634
|
+
const seam = SeamHttpSeamCustomerV1AccessGrants.fromClient(
|
|
11635
|
+
client,
|
|
11636
|
+
defaults
|
|
11637
|
+
);
|
|
11638
|
+
return seam.update(...args);
|
|
11639
|
+
};
|
|
11640
|
+
}
|
|
11641
|
+
get "/seam/customer/v1/access_methods/encode"() {
|
|
11642
|
+
const { client, defaults } = this;
|
|
11643
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
11644
|
+
throw new Error(
|
|
11645
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
11646
|
+
);
|
|
11647
|
+
}
|
|
11648
|
+
return function seamCustomerV1AccessMethodsEncode(...args) {
|
|
11649
|
+
const seam = SeamHttpSeamCustomerV1AccessMethods.fromClient(
|
|
11650
|
+
client,
|
|
11651
|
+
defaults
|
|
11652
|
+
);
|
|
11653
|
+
return seam.encode(...args);
|
|
11654
|
+
};
|
|
11655
|
+
}
|
|
11212
11656
|
get "/seam/customer/v1/automation_runs/list"() {
|
|
11213
11657
|
const { client, defaults } = this;
|
|
11214
11658
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
@@ -11269,6 +11713,21 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
11269
11713
|
return seam.update(...args);
|
|
11270
11714
|
};
|
|
11271
11715
|
}
|
|
11716
|
+
get "/seam/customer/v1/connector_customers/list"() {
|
|
11717
|
+
const { client, defaults } = this;
|
|
11718
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
11719
|
+
throw new Error(
|
|
11720
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
11721
|
+
);
|
|
11722
|
+
}
|
|
11723
|
+
return function seamCustomerV1ConnectorCustomersList(...args) {
|
|
11724
|
+
const seam = SeamHttpSeamCustomerV1ConnectorCustomers.fromClient(
|
|
11725
|
+
client,
|
|
11726
|
+
defaults
|
|
11727
|
+
);
|
|
11728
|
+
return seam.list(...args);
|
|
11729
|
+
};
|
|
11730
|
+
}
|
|
11272
11731
|
get "/seam/customer/v1/connectors/authorize"() {
|
|
11273
11732
|
const { client, defaults } = this;
|
|
11274
11733
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
@@ -11365,6 +11824,13 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
11365
11824
|
return seam.list(...args);
|
|
11366
11825
|
};
|
|
11367
11826
|
}
|
|
11827
|
+
get "/seam/customer/v1/customers/me"() {
|
|
11828
|
+
const { client, defaults } = this;
|
|
11829
|
+
return function seamCustomerV1CustomersMe(...args) {
|
|
11830
|
+
const seam = SeamHttpSeamCustomerV1Customers.fromClient(client, defaults);
|
|
11831
|
+
return seam.me(...args);
|
|
11832
|
+
};
|
|
11833
|
+
}
|
|
11368
11834
|
get "/seam/customer/v1/customers/open_portal"() {
|
|
11369
11835
|
const { client, defaults } = this;
|
|
11370
11836
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
@@ -11377,6 +11843,18 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
11377
11843
|
return seam.openPortal(...args);
|
|
11378
11844
|
};
|
|
11379
11845
|
}
|
|
11846
|
+
get "/seam/customer/v1/encoders/list"() {
|
|
11847
|
+
const { client, defaults } = this;
|
|
11848
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
11849
|
+
throw new Error(
|
|
11850
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
11851
|
+
);
|
|
11852
|
+
}
|
|
11853
|
+
return function seamCustomerV1EncodersList(...args) {
|
|
11854
|
+
const seam = SeamHttpSeamCustomerV1Encoders.fromClient(client, defaults);
|
|
11855
|
+
return seam.list(...args);
|
|
11856
|
+
};
|
|
11857
|
+
}
|
|
11380
11858
|
get "/seam/customer/v1/events/list"() {
|
|
11381
11859
|
const { client, defaults } = this;
|
|
11382
11860
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
@@ -11455,6 +11933,21 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
11455
11933
|
return seam.update(...args);
|
|
11456
11934
|
};
|
|
11457
11935
|
}
|
|
11936
|
+
get "/seam/customer/v1/settings/vertical_resource_aliases/get"() {
|
|
11937
|
+
const { client, defaults } = this;
|
|
11938
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
11939
|
+
throw new Error(
|
|
11940
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
11941
|
+
);
|
|
11942
|
+
}
|
|
11943
|
+
return function seamCustomerV1SettingsVerticalResourceAliasesGet(...args) {
|
|
11944
|
+
const seam = SeamHttpSeamCustomerV1SettingsVerticalResourceAliases.fromClient(
|
|
11945
|
+
client,
|
|
11946
|
+
defaults
|
|
11947
|
+
);
|
|
11948
|
+
return seam.get(...args);
|
|
11949
|
+
};
|
|
11950
|
+
}
|
|
11458
11951
|
get "/seam/customer/v1/spaces/create"() {
|
|
11459
11952
|
const { client, defaults } = this;
|
|
11460
11953
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
@@ -11491,6 +11984,13 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
11491
11984
|
return seam.listReservations(...args);
|
|
11492
11985
|
};
|
|
11493
11986
|
}
|
|
11987
|
+
get "/seam/customer/v1/spaces/push_common_areas"() {
|
|
11988
|
+
const { client, defaults } = this;
|
|
11989
|
+
return function seamCustomerV1SpacesPushCommonAreas(...args) {
|
|
11990
|
+
const seam = SeamHttpSeamCustomerV1Spaces.fromClient(client, defaults);
|
|
11991
|
+
return seam.pushCommonAreas(...args);
|
|
11992
|
+
};
|
|
11993
|
+
}
|
|
11494
11994
|
get "/seam/customer/v1/staff_members/get"() {
|
|
11495
11995
|
const { client, defaults } = this;
|
|
11496
11996
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
@@ -11536,13 +12036,6 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
11536
12036
|
return seam.autoMap(...args);
|
|
11537
12037
|
};
|
|
11538
12038
|
}
|
|
11539
|
-
get "/seam/v1/customers/push_data"() {
|
|
11540
|
-
const { client, defaults } = this;
|
|
11541
|
-
return function seamV1CustomersPushData(...args) {
|
|
11542
|
-
const seam = SeamHttpSeamV1Customers.fromClient(client, defaults);
|
|
11543
|
-
return seam.pushData(...args);
|
|
11544
|
-
};
|
|
11545
|
-
}
|
|
11546
12039
|
get "/spaces/add_acs_entrances"() {
|
|
11547
12040
|
const { client, defaults } = this;
|
|
11548
12041
|
return function spacesAddAcsEntrances(...args) {
|
|
@@ -12330,6 +12823,7 @@ exports.SeamHttpConnectWebviews = SeamHttpConnectWebviews;
|
|
|
12330
12823
|
exports.SeamHttpConnectedAccounts = SeamHttpConnectedAccounts;
|
|
12331
12824
|
exports.SeamHttpConnectedAccountsSimulate = SeamHttpConnectedAccountsSimulate;
|
|
12332
12825
|
exports.SeamHttpCustomers = SeamHttpCustomers;
|
|
12826
|
+
exports.SeamHttpCustomersReservations = SeamHttpCustomersReservations;
|
|
12333
12827
|
exports.SeamHttpDevices = SeamHttpDevices;
|
|
12334
12828
|
exports.SeamHttpDevicesSimulate = SeamHttpDevicesSimulate;
|
|
12335
12829
|
exports.SeamHttpDevicesUnmanaged = SeamHttpDevicesUnmanaged;
|
|
@@ -12354,20 +12848,22 @@ exports.SeamHttpSeamConsoleV1 = SeamHttpSeamConsoleV1;
|
|
|
12354
12848
|
exports.SeamHttpSeamConsoleV1Timelines = SeamHttpSeamConsoleV1Timelines;
|
|
12355
12849
|
exports.SeamHttpSeamCustomerV1 = SeamHttpSeamCustomerV1;
|
|
12356
12850
|
exports.SeamHttpSeamCustomerV1AccessGrants = SeamHttpSeamCustomerV1AccessGrants;
|
|
12851
|
+
exports.SeamHttpSeamCustomerV1AccessMethods = SeamHttpSeamCustomerV1AccessMethods;
|
|
12357
12852
|
exports.SeamHttpSeamCustomerV1AutomationRuns = SeamHttpSeamCustomerV1AutomationRuns;
|
|
12358
12853
|
exports.SeamHttpSeamCustomerV1Automations = SeamHttpSeamCustomerV1Automations;
|
|
12854
|
+
exports.SeamHttpSeamCustomerV1ConnectorCustomers = SeamHttpSeamCustomerV1ConnectorCustomers;
|
|
12359
12855
|
exports.SeamHttpSeamCustomerV1Connectors = SeamHttpSeamCustomerV1Connectors;
|
|
12360
12856
|
exports.SeamHttpSeamCustomerV1Customers = SeamHttpSeamCustomerV1Customers;
|
|
12857
|
+
exports.SeamHttpSeamCustomerV1Encoders = SeamHttpSeamCustomerV1Encoders;
|
|
12361
12858
|
exports.SeamHttpSeamCustomerV1Events = SeamHttpSeamCustomerV1Events;
|
|
12362
12859
|
exports.SeamHttpSeamCustomerV1Portals = SeamHttpSeamCustomerV1Portals;
|
|
12363
12860
|
exports.SeamHttpSeamCustomerV1Reservations = SeamHttpSeamCustomerV1Reservations;
|
|
12364
12861
|
exports.SeamHttpSeamCustomerV1Settings = SeamHttpSeamCustomerV1Settings;
|
|
12862
|
+
exports.SeamHttpSeamCustomerV1SettingsVerticalResourceAliases = SeamHttpSeamCustomerV1SettingsVerticalResourceAliases;
|
|
12365
12863
|
exports.SeamHttpSeamCustomerV1Spaces = SeamHttpSeamCustomerV1Spaces;
|
|
12366
12864
|
exports.SeamHttpSeamCustomerV1StaffMembers = SeamHttpSeamCustomerV1StaffMembers;
|
|
12367
12865
|
exports.SeamHttpSeamPartnerV1BuildingBlocks = SeamHttpSeamPartnerV1BuildingBlocks;
|
|
12368
12866
|
exports.SeamHttpSeamPartnerV1BuildingBlocksSpaces = SeamHttpSeamPartnerV1BuildingBlocksSpaces;
|
|
12369
|
-
exports.SeamHttpSeamV1 = SeamHttpSeamV1;
|
|
12370
|
-
exports.SeamHttpSeamV1Customers = SeamHttpSeamV1Customers;
|
|
12371
12867
|
exports.SeamHttpSpaces = SeamHttpSpaces;
|
|
12372
12868
|
exports.SeamHttpThermostats = SeamHttpThermostats;
|
|
12373
12869
|
exports.SeamHttpThermostatsDailyPrograms = SeamHttpThermostatsDailyPrograms;
|