@seamapi/http 1.86.0 → 1.88.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 +97 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +30 -2
- package/dist/index.cjs +97 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/connectors/connectors.d.ts +26 -0
- package/lib/seam/connect/routes/seam/customer/v1/connectors/connectors.js +30 -0
- package/lib/seam/connect/routes/seam/customer/v1/connectors/connectors.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/spaces/spaces.js +9 -0
- package/lib/seam/connect/routes/seam/customer/v1/spaces/spaces.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/v1.js +3 -0
- package/lib/seam/connect/routes/seam/customer/v1/v1.js.map +1 -1
- package/lib/seam/connect/routes/seam-http-endpoints.d.ts +4 -2
- package/lib/seam/connect/routes/seam-http-endpoints.js +29 -0
- package/lib/seam/connect/routes/seam-http-endpoints.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +3 -3
- package/src/lib/seam/connect/routes/seam/customer/v1/connectors/connectors.ts +92 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/spaces/spaces.ts +15 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/v1.ts +5 -0
- package/src/lib/seam/connect/routes/seam-http-endpoints.ts +59 -0
- package/src/lib/version.ts +1 -1
package/dist/connect.cjs
CHANGED
|
@@ -6120,6 +6120,11 @@ var SeamHttpSeamCustomerV1Connectors = class _SeamHttpSeamCustomerV1Connectors {
|
|
|
6120
6120
|
static ltsVersion = seamApiLtsVersion;
|
|
6121
6121
|
constructor(apiKeyOrOptions = {}) {
|
|
6122
6122
|
const options = parseOptions(apiKeyOrOptions);
|
|
6123
|
+
if (!options.isUndocumentedApiEnabled) {
|
|
6124
|
+
throw new Error(
|
|
6125
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6126
|
+
);
|
|
6127
|
+
}
|
|
6123
6128
|
this.client = "client" in options ? options.client : createClient(options);
|
|
6124
6129
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
6125
6130
|
}
|
|
@@ -6213,6 +6218,20 @@ var SeamHttpSeamCustomerV1Connectors = class _SeamHttpSeamCustomerV1Connectors {
|
|
|
6213
6218
|
options
|
|
6214
6219
|
});
|
|
6215
6220
|
}
|
|
6221
|
+
delete(parameters, options = {}) {
|
|
6222
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6223
|
+
throw new Error(
|
|
6224
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6225
|
+
);
|
|
6226
|
+
}
|
|
6227
|
+
return new SeamHttpRequest(this, {
|
|
6228
|
+
pathname: "/seam/customer/v1/connectors/delete",
|
|
6229
|
+
method: "POST",
|
|
6230
|
+
body: parameters,
|
|
6231
|
+
responseKey: "connector",
|
|
6232
|
+
options
|
|
6233
|
+
});
|
|
6234
|
+
}
|
|
6216
6235
|
list(parameters, options = {}) {
|
|
6217
6236
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6218
6237
|
throw new Error(
|
|
@@ -6228,6 +6247,11 @@ var SeamHttpSeamCustomerV1Connectors = class _SeamHttpSeamCustomerV1Connectors {
|
|
|
6228
6247
|
});
|
|
6229
6248
|
}
|
|
6230
6249
|
sync(parameters, options = {}) {
|
|
6250
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6251
|
+
throw new Error(
|
|
6252
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6253
|
+
);
|
|
6254
|
+
}
|
|
6231
6255
|
return new SeamHttpRequest(this, {
|
|
6232
6256
|
pathname: "/seam/customer/v1/connectors/sync",
|
|
6233
6257
|
method: "POST",
|
|
@@ -6236,6 +6260,20 @@ var SeamHttpSeamCustomerV1Connectors = class _SeamHttpSeamCustomerV1Connectors {
|
|
|
6236
6260
|
options
|
|
6237
6261
|
});
|
|
6238
6262
|
}
|
|
6263
|
+
update(parameters, options = {}) {
|
|
6264
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6265
|
+
throw new Error(
|
|
6266
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6267
|
+
);
|
|
6268
|
+
}
|
|
6269
|
+
return new SeamHttpRequest(this, {
|
|
6270
|
+
pathname: "/seam/customer/v1/connectors/update",
|
|
6271
|
+
method: "POST",
|
|
6272
|
+
body: parameters,
|
|
6273
|
+
responseKey: "connector",
|
|
6274
|
+
options
|
|
6275
|
+
});
|
|
6276
|
+
}
|
|
6239
6277
|
};
|
|
6240
6278
|
|
|
6241
6279
|
// src/lib/seam/connect/routes/seam/customer/v1/events/events.ts
|
|
@@ -6697,6 +6735,11 @@ var SeamHttpSeamCustomerV1Spaces = class _SeamHttpSeamCustomerV1Spaces {
|
|
|
6697
6735
|
static ltsVersion = seamApiLtsVersion;
|
|
6698
6736
|
constructor(apiKeyOrOptions = {}) {
|
|
6699
6737
|
const options = parseOptions(apiKeyOrOptions);
|
|
6738
|
+
if (!options.isUndocumentedApiEnabled) {
|
|
6739
|
+
throw new Error(
|
|
6740
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6741
|
+
);
|
|
6742
|
+
}
|
|
6700
6743
|
this.client = "client" in options ? options.client : createClient(options);
|
|
6701
6744
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
6702
6745
|
}
|
|
@@ -6774,6 +6817,11 @@ var SeamHttpSeamCustomerV1Spaces = class _SeamHttpSeamCustomerV1Spaces {
|
|
|
6774
6817
|
await clientSessions.get();
|
|
6775
6818
|
}
|
|
6776
6819
|
create(parameters, options = {}) {
|
|
6820
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6821
|
+
throw new Error(
|
|
6822
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6823
|
+
);
|
|
6824
|
+
}
|
|
6777
6825
|
return new SeamHttpRequest(this, {
|
|
6778
6826
|
pathname: "/seam/customer/v1/spaces/create",
|
|
6779
6827
|
method: "POST",
|
|
@@ -6783,6 +6831,11 @@ var SeamHttpSeamCustomerV1Spaces = class _SeamHttpSeamCustomerV1Spaces {
|
|
|
6783
6831
|
});
|
|
6784
6832
|
}
|
|
6785
6833
|
list(parameters, options = {}) {
|
|
6834
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6835
|
+
throw new Error(
|
|
6836
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6837
|
+
);
|
|
6838
|
+
}
|
|
6786
6839
|
return new SeamHttpRequest(this, {
|
|
6787
6840
|
pathname: "/seam/customer/v1/spaces/list",
|
|
6788
6841
|
method: "POST",
|
|
@@ -6923,6 +6976,11 @@ var SeamHttpSeamCustomerV1 = class _SeamHttpSeamCustomerV1 {
|
|
|
6923
6976
|
static ltsVersion = seamApiLtsVersion;
|
|
6924
6977
|
constructor(apiKeyOrOptions = {}) {
|
|
6925
6978
|
const options = parseOptions(apiKeyOrOptions);
|
|
6979
|
+
if (!options.isUndocumentedApiEnabled) {
|
|
6980
|
+
throw new Error(
|
|
6981
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6982
|
+
);
|
|
6983
|
+
}
|
|
6926
6984
|
this.client = "client" in options ? options.client : createClient(options);
|
|
6927
6985
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
6928
6986
|
}
|
|
@@ -10594,6 +10652,18 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10594
10652
|
return seam.create(...args);
|
|
10595
10653
|
};
|
|
10596
10654
|
}
|
|
10655
|
+
get "/seam/customer/v1/connectors/delete"() {
|
|
10656
|
+
const { client, defaults } = this;
|
|
10657
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10658
|
+
throw new Error(
|
|
10659
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10660
|
+
);
|
|
10661
|
+
}
|
|
10662
|
+
return function seamCustomerV1ConnectorsDelete(...args) {
|
|
10663
|
+
const seam = SeamHttpSeamCustomerV1Connectors.fromClient(client, defaults);
|
|
10664
|
+
return seam.delete(...args);
|
|
10665
|
+
};
|
|
10666
|
+
}
|
|
10597
10667
|
get "/seam/customer/v1/connectors/list"() {
|
|
10598
10668
|
const { client, defaults } = this;
|
|
10599
10669
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
@@ -10608,11 +10678,28 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10608
10678
|
}
|
|
10609
10679
|
get "/seam/customer/v1/connectors/sync"() {
|
|
10610
10680
|
const { client, defaults } = this;
|
|
10681
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10682
|
+
throw new Error(
|
|
10683
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10684
|
+
);
|
|
10685
|
+
}
|
|
10611
10686
|
return function seamCustomerV1ConnectorsSync(...args) {
|
|
10612
10687
|
const seam = SeamHttpSeamCustomerV1Connectors.fromClient(client, defaults);
|
|
10613
10688
|
return seam.sync(...args);
|
|
10614
10689
|
};
|
|
10615
10690
|
}
|
|
10691
|
+
get "/seam/customer/v1/connectors/update"() {
|
|
10692
|
+
const { client, defaults } = this;
|
|
10693
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10694
|
+
throw new Error(
|
|
10695
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10696
|
+
);
|
|
10697
|
+
}
|
|
10698
|
+
return function seamCustomerV1ConnectorsUpdate(...args) {
|
|
10699
|
+
const seam = SeamHttpSeamCustomerV1Connectors.fromClient(client, defaults);
|
|
10700
|
+
return seam.update(...args);
|
|
10701
|
+
};
|
|
10702
|
+
}
|
|
10616
10703
|
get "/seam/customer/v1/events/list"() {
|
|
10617
10704
|
const { client, defaults } = this;
|
|
10618
10705
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
@@ -10693,6 +10780,11 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10693
10780
|
}
|
|
10694
10781
|
get "/seam/customer/v1/spaces/create"() {
|
|
10695
10782
|
const { client, defaults } = this;
|
|
10783
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10784
|
+
throw new Error(
|
|
10785
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10786
|
+
);
|
|
10787
|
+
}
|
|
10696
10788
|
return function seamCustomerV1SpacesCreate(...args) {
|
|
10697
10789
|
const seam = SeamHttpSeamCustomerV1Spaces.fromClient(client, defaults);
|
|
10698
10790
|
return seam.create(...args);
|
|
@@ -10700,6 +10792,11 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10700
10792
|
}
|
|
10701
10793
|
get "/seam/customer/v1/spaces/list"() {
|
|
10702
10794
|
const { client, defaults } = this;
|
|
10795
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10796
|
+
throw new Error(
|
|
10797
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10798
|
+
);
|
|
10799
|
+
}
|
|
10703
10800
|
return function seamCustomerV1SpacesList(...args) {
|
|
10704
10801
|
const seam = SeamHttpSeamCustomerV1Spaces.fromClient(client, defaults);
|
|
10705
10802
|
return seam.list(...args);
|