@seamapi/http 1.84.0 → 1.86.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",
@@ -6866,6 +6885,20 @@ var SeamHttpSeamCustomerV1StaffMembers = class _SeamHttpSeamCustomerV1StaffMembe
6866
6885
  const clientSessions = SeamHttpClientSessions.fromClient(this.client);
6867
6886
  await clientSessions.get();
6868
6887
  }
6888
+ get(parameters, options = {}) {
6889
+ if (!this.defaults.isUndocumentedApiEnabled) {
6890
+ throw new Error(
6891
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
6892
+ );
6893
+ }
6894
+ return new SeamHttpRequest(this, {
6895
+ pathname: "/seam/customer/v1/staff_members/get",
6896
+ method: "POST",
6897
+ body: parameters,
6898
+ responseKey: "staff_member",
6899
+ options
6900
+ });
6901
+ }
6869
6902
  list(parameters, options = {}) {
6870
6903
  if (!this.defaults.isUndocumentedApiEnabled) {
6871
6904
  throw new Error(
@@ -10551,11 +10584,28 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
10551
10584
  }
10552
10585
  get "/seam/customer/v1/connectors/create"() {
10553
10586
  const { client, defaults } = this;
10587
+ if (!this.defaults.isUndocumentedApiEnabled) {
10588
+ throw new Error(
10589
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
10590
+ );
10591
+ }
10554
10592
  return function seamCustomerV1ConnectorsCreate(...args) {
10555
10593
  const seam = SeamHttpSeamCustomerV1Connectors.fromClient(client, defaults);
10556
10594
  return seam.create(...args);
10557
10595
  };
10558
10596
  }
10597
+ get "/seam/customer/v1/connectors/list"() {
10598
+ const { client, defaults } = this;
10599
+ if (!this.defaults.isUndocumentedApiEnabled) {
10600
+ throw new Error(
10601
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
10602
+ );
10603
+ }
10604
+ return function seamCustomerV1ConnectorsList(...args) {
10605
+ const seam = SeamHttpSeamCustomerV1Connectors.fromClient(client, defaults);
10606
+ return seam.list(...args);
10607
+ };
10608
+ }
10559
10609
  get "/seam/customer/v1/connectors/sync"() {
10560
10610
  const { client, defaults } = this;
10561
10611
  return function seamCustomerV1ConnectorsSync(...args) {
@@ -10655,6 +10705,21 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
10655
10705
  return seam.list(...args);
10656
10706
  };
10657
10707
  }
10708
+ get "/seam/customer/v1/staff_members/get"() {
10709
+ const { client, defaults } = this;
10710
+ if (!this.defaults.isUndocumentedApiEnabled) {
10711
+ throw new Error(
10712
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
10713
+ );
10714
+ }
10715
+ return function seamCustomerV1StaffMembersGet(...args) {
10716
+ const seam = SeamHttpSeamCustomerV1StaffMembers.fromClient(
10717
+ client,
10718
+ defaults
10719
+ );
10720
+ return seam.get(...args);
10721
+ };
10722
+ }
10658
10723
  get "/seam/customer/v1/staff_members/list"() {
10659
10724
  const { client, defaults } = this;
10660
10725
  if (!this.defaults.isUndocumentedApiEnabled) {