@seamapi/http 1.84.0 → 1.85.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/connect.cjs CHANGED
@@ -6200,6 +6200,11 @@ var SeamHttpSeamCustomerV1Connectors = class _SeamHttpSeamCustomerV1Connectors {
6200
6200
  await clientSessions.get();
6201
6201
  }
6202
6202
  create(parameters, options = {}) {
6203
+ if (!this.defaults.isUndocumentedApiEnabled) {
6204
+ throw new Error(
6205
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
6206
+ );
6207
+ }
6203
6208
  return new SeamHttpRequest(this, {
6204
6209
  pathname: "/seam/customer/v1/connectors/create",
6205
6210
  method: "POST",
@@ -6208,6 +6213,20 @@ var SeamHttpSeamCustomerV1Connectors = class _SeamHttpSeamCustomerV1Connectors {
6208
6213
  options
6209
6214
  });
6210
6215
  }
6216
+ list(parameters, options = {}) {
6217
+ if (!this.defaults.isUndocumentedApiEnabled) {
6218
+ throw new Error(
6219
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
6220
+ );
6221
+ }
6222
+ return new SeamHttpRequest(this, {
6223
+ pathname: "/seam/customer/v1/connectors/list",
6224
+ method: "GET",
6225
+ params: parameters,
6226
+ responseKey: "connectors",
6227
+ options
6228
+ });
6229
+ }
6211
6230
  sync(parameters, options = {}) {
6212
6231
  return new SeamHttpRequest(this, {
6213
6232
  pathname: "/seam/customer/v1/connectors/sync",
@@ -10551,11 +10570,28 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
10551
10570
  }
10552
10571
  get "/seam/customer/v1/connectors/create"() {
10553
10572
  const { client, defaults } = this;
10573
+ if (!this.defaults.isUndocumentedApiEnabled) {
10574
+ throw new Error(
10575
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
10576
+ );
10577
+ }
10554
10578
  return function seamCustomerV1ConnectorsCreate(...args) {
10555
10579
  const seam = SeamHttpSeamCustomerV1Connectors.fromClient(client, defaults);
10556
10580
  return seam.create(...args);
10557
10581
  };
10558
10582
  }
10583
+ get "/seam/customer/v1/connectors/list"() {
10584
+ const { client, defaults } = this;
10585
+ if (!this.defaults.isUndocumentedApiEnabled) {
10586
+ throw new Error(
10587
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
10588
+ );
10589
+ }
10590
+ return function seamCustomerV1ConnectorsList(...args) {
10591
+ const seam = SeamHttpSeamCustomerV1Connectors.fromClient(client, defaults);
10592
+ return seam.list(...args);
10593
+ };
10594
+ }
10559
10595
  get "/seam/customer/v1/connectors/sync"() {
10560
10596
  const { client, defaults } = this;
10561
10597
  return function seamCustomerV1ConnectorsSync(...args) {