@seamapi/http 1.92.0 → 1.94.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 +64 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +32 -3
- package/dist/index.cjs +64 -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 +13 -0
- package/lib/seam/connect/routes/seam/customer/v1/connectors/connectors.js +12 -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.d.ts +13 -0
- package/lib/seam/connect/routes/seam/customer/v1/spaces/spaces.js +12 -0
- package/lib/seam/connect/routes/seam/customer/v1/spaces/spaces.js.map +1 -1
- package/lib/seam/connect/routes/seam-http-endpoints-without-workspace.d.ts +3 -1
- package/lib/seam/connect/routes/seam-http-endpoints-without-workspace.js +11 -0
- package/lib/seam/connect/routes/seam-http-endpoints-without-workspace.js.map +1 -1
- package/lib/seam/connect/routes/seam-http-endpoints.d.ts +5 -3
- package/lib/seam/connect/routes/seam-http-endpoints.js +20 -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 +4 -4
- package/src/lib/seam/connect/routes/seam/customer/v1/connectors/connectors.ts +41 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/spaces/spaces.ts +41 -0
- package/src/lib/seam/connect/routes/seam-http-endpoints-without-workspace.ts +27 -1
- package/src/lib/seam/connect/routes/seam-http-endpoints.ts +44 -0
- package/src/lib/version.ts +1 -1
package/dist/connect.cjs
CHANGED
|
@@ -6416,6 +6416,20 @@ var SeamHttpSeamCustomerV1Connectors = class _SeamHttpSeamCustomerV1Connectors {
|
|
|
6416
6416
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
6417
6417
|
await clientSessions.get();
|
|
6418
6418
|
}
|
|
6419
|
+
authorize(parameters, options = {}) {
|
|
6420
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6421
|
+
throw new Error(
|
|
6422
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6423
|
+
);
|
|
6424
|
+
}
|
|
6425
|
+
return new SeamHttpRequest(this, {
|
|
6426
|
+
pathname: "/seam/customer/v1/connectors/authorize",
|
|
6427
|
+
method: "POST",
|
|
6428
|
+
body: parameters,
|
|
6429
|
+
responseKey: "connector_authorize",
|
|
6430
|
+
options
|
|
6431
|
+
});
|
|
6432
|
+
}
|
|
6419
6433
|
connectorTypes(parameters, options = {}) {
|
|
6420
6434
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6421
6435
|
throw new Error(
|
|
@@ -7070,6 +7084,20 @@ var SeamHttpSeamCustomerV1Spaces = class _SeamHttpSeamCustomerV1Spaces {
|
|
|
7070
7084
|
options
|
|
7071
7085
|
});
|
|
7072
7086
|
}
|
|
7087
|
+
listReservations(parameters, options = {}) {
|
|
7088
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7089
|
+
throw new Error(
|
|
7090
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7091
|
+
);
|
|
7092
|
+
}
|
|
7093
|
+
return new SeamHttpRequest(this, {
|
|
7094
|
+
pathname: "/seam/customer/v1/spaces/list_reservations",
|
|
7095
|
+
method: "POST",
|
|
7096
|
+
body: parameters,
|
|
7097
|
+
responseKey: "reservations",
|
|
7098
|
+
options
|
|
7099
|
+
});
|
|
7100
|
+
}
|
|
7073
7101
|
};
|
|
7074
7102
|
|
|
7075
7103
|
// src/lib/seam/connect/routes/seam/customer/v1/staff-members/staff-members.ts
|
|
@@ -10897,6 +10925,18 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10897
10925
|
return seam.update(...args);
|
|
10898
10926
|
};
|
|
10899
10927
|
}
|
|
10928
|
+
get "/seam/customer/v1/connectors/authorize"() {
|
|
10929
|
+
const { client, defaults } = this;
|
|
10930
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10931
|
+
throw new Error(
|
|
10932
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10933
|
+
);
|
|
10934
|
+
}
|
|
10935
|
+
return function seamCustomerV1ConnectorsAuthorize(...args) {
|
|
10936
|
+
const seam = SeamHttpSeamCustomerV1Connectors.fromClient(client, defaults);
|
|
10937
|
+
return seam.authorize(...args);
|
|
10938
|
+
};
|
|
10939
|
+
}
|
|
10900
10940
|
get "/seam/customer/v1/connectors/connector_types"() {
|
|
10901
10941
|
const { client, defaults } = this;
|
|
10902
10942
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
@@ -11071,6 +11111,18 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
11071
11111
|
return seam.list(...args);
|
|
11072
11112
|
};
|
|
11073
11113
|
}
|
|
11114
|
+
get "/seam/customer/v1/spaces/list_reservations"() {
|
|
11115
|
+
const { client, defaults } = this;
|
|
11116
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
11117
|
+
throw new Error(
|
|
11118
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
11119
|
+
);
|
|
11120
|
+
}
|
|
11121
|
+
return function seamCustomerV1SpacesListReservations(...args) {
|
|
11122
|
+
const seam = SeamHttpSeamCustomerV1Spaces.fromClient(client, defaults);
|
|
11123
|
+
return seam.listReservations(...args);
|
|
11124
|
+
};
|
|
11125
|
+
}
|
|
11074
11126
|
get "/seam/customer/v1/staff_members/get"() {
|
|
11075
11127
|
const { client, defaults } = this;
|
|
11076
11128
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
@@ -11797,6 +11849,18 @@ var SeamHttpEndpointsWithoutWorkspace = class _SeamHttpEndpointsWithoutWorkspace
|
|
|
11797
11849
|
}
|
|
11798
11850
|
return new _SeamHttpEndpointsWithoutWorkspace(constructorOptions);
|
|
11799
11851
|
}
|
|
11852
|
+
get "/seam/customer/v1/connectors/authorize"() {
|
|
11853
|
+
const { client, defaults } = this;
|
|
11854
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
11855
|
+
throw new Error(
|
|
11856
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
11857
|
+
);
|
|
11858
|
+
}
|
|
11859
|
+
return function seamCustomerV1ConnectorsAuthorize(...args) {
|
|
11860
|
+
const seam = SeamHttpSeamCustomerV1Connectors.fromClient(client, defaults);
|
|
11861
|
+
return seam.authorize(...args);
|
|
11862
|
+
};
|
|
11863
|
+
}
|
|
11800
11864
|
get "/workspaces/create"() {
|
|
11801
11865
|
const { client, defaults } = this;
|
|
11802
11866
|
return function workspacesCreate(...args) {
|