@seamapi/http 1.82.0 → 1.84.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 +90 -79
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +35 -34
- package/dist/index.cjs +92 -81
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/index.d.ts +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/index.js +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/index.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/staff-members/index.d.ts +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/{webhooks/connectors/workspace-id → staff-members}/index.js +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/{webhooks → staff-members}/index.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/{webhooks/connectors/workspace-id/workspace-id.d.ts → staff-members/staff-members.d.ts} +20 -20
- package/lib/seam/connect/routes/seam/customer/v1/{webhooks/connectors/workspace-id/workspace-id.js → staff-members/staff-members.js} +26 -20
- package/lib/seam/connect/routes/seam/customer/v1/staff-members/staff-members.js.map +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/v1.d.ts +2 -0
- package/lib/seam/connect/routes/seam/customer/v1/v1.js +4 -0
- package/lib/seam/connect/routes/seam/customer/v1/v1.js.map +1 -1
- package/lib/seam/connect/routes/seam-http-endpoints.d.ts +5 -5
- package/lib/seam/connect/routes/seam-http-endpoints.js +8 -5
- 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/index.ts +1 -1
- package/src/lib/seam/connect/routes/seam/customer/v1/{webhooks/connectors/workspace-id → staff-members}/index.ts +1 -1
- package/src/lib/seam/connect/routes/seam/customer/v1/{webhooks/connectors/workspace-id/workspace-id.ts → staff-members/staff-members.ts} +44 -46
- package/src/lib/seam/connect/routes/seam/customer/v1/v1.ts +8 -0
- package/src/lib/seam/connect/routes/seam-http-endpoints.ts +24 -23
- package/src/lib/version.ts +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/webhooks/connectors/index.d.ts +0 -1
- package/lib/seam/connect/routes/seam/customer/v1/webhooks/connectors/index.js +0 -6
- package/lib/seam/connect/routes/seam/customer/v1/webhooks/connectors/index.js.map +0 -1
- package/lib/seam/connect/routes/seam/customer/v1/webhooks/connectors/workspace-id/index.d.ts +0 -1
- package/lib/seam/connect/routes/seam/customer/v1/webhooks/connectors/workspace-id/index.js.map +0 -1
- package/lib/seam/connect/routes/seam/customer/v1/webhooks/connectors/workspace-id/workspace-id.js.map +0 -1
- package/lib/seam/connect/routes/seam/customer/v1/webhooks/index.d.ts +0 -1
- package/lib/seam/connect/routes/seam/customer/v1/webhooks/index.js +0 -6
- package/src/lib/seam/connect/routes/seam/customer/v1/webhooks/connectors/index.ts +0 -6
- package/src/lib/seam/connect/routes/seam/customer/v1/webhooks/index.ts +0 -6
package/dist/connect.cjs
CHANGED
|
@@ -6774,14 +6774,19 @@ var SeamHttpSeamCustomerV1Spaces = class _SeamHttpSeamCustomerV1Spaces {
|
|
|
6774
6774
|
}
|
|
6775
6775
|
};
|
|
6776
6776
|
|
|
6777
|
-
// src/lib/seam/connect/routes/seam/customer/v1/
|
|
6778
|
-
var
|
|
6777
|
+
// src/lib/seam/connect/routes/seam/customer/v1/staff-members/staff-members.ts
|
|
6778
|
+
var SeamHttpSeamCustomerV1StaffMembers = class _SeamHttpSeamCustomerV1StaffMembers {
|
|
6779
6779
|
client;
|
|
6780
6780
|
defaults;
|
|
6781
6781
|
ltsVersion = seamApiLtsVersion;
|
|
6782
6782
|
static ltsVersion = seamApiLtsVersion;
|
|
6783
6783
|
constructor(apiKeyOrOptions = {}) {
|
|
6784
6784
|
const options = parseOptions(apiKeyOrOptions);
|
|
6785
|
+
if (!options.isUndocumentedApiEnabled) {
|
|
6786
|
+
throw new Error(
|
|
6787
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6788
|
+
);
|
|
6789
|
+
}
|
|
6785
6790
|
this.client = "client" in options ? options.client : createClient(options);
|
|
6786
6791
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
6787
6792
|
}
|
|
@@ -6790,28 +6795,28 @@ var SeamHttpSeamCustomerV1 = class _SeamHttpSeamCustomerV1 {
|
|
|
6790
6795
|
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
6791
6796
|
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
6792
6797
|
}
|
|
6793
|
-
return new
|
|
6798
|
+
return new _SeamHttpSeamCustomerV1StaffMembers(constructorOptions);
|
|
6794
6799
|
}
|
|
6795
6800
|
static fromApiKey(apiKey, options = {}) {
|
|
6796
6801
|
const constructorOptions = { ...options, apiKey };
|
|
6797
6802
|
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
6798
6803
|
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
6799
6804
|
}
|
|
6800
|
-
return new
|
|
6805
|
+
return new _SeamHttpSeamCustomerV1StaffMembers(constructorOptions);
|
|
6801
6806
|
}
|
|
6802
6807
|
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
6803
6808
|
const constructorOptions = { ...options, clientSessionToken };
|
|
6804
6809
|
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
6805
6810
|
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
6806
6811
|
}
|
|
6807
|
-
return new
|
|
6812
|
+
return new _SeamHttpSeamCustomerV1StaffMembers(constructorOptions);
|
|
6808
6813
|
}
|
|
6809
6814
|
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
6810
6815
|
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
6811
6816
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
6812
6817
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
6813
6818
|
throw new SeamHttpInvalidOptionsError(
|
|
6814
|
-
"The client option cannot be used with
|
|
6819
|
+
"The client option cannot be used with SeamHttpSeamCustomerV1StaffMembers.fromPublishableKey"
|
|
6815
6820
|
);
|
|
6816
6821
|
}
|
|
6817
6822
|
const client = createClient(clientOptions);
|
|
@@ -6819,7 +6824,10 @@ var SeamHttpSeamCustomerV1 = class _SeamHttpSeamCustomerV1 {
|
|
|
6819
6824
|
const { token } = await clientSessions.getOrCreate({
|
|
6820
6825
|
user_identifier_key: userIdentifierKey
|
|
6821
6826
|
});
|
|
6822
|
-
return
|
|
6827
|
+
return _SeamHttpSeamCustomerV1StaffMembers.fromClientSessionToken(
|
|
6828
|
+
token,
|
|
6829
|
+
options
|
|
6830
|
+
);
|
|
6823
6831
|
}
|
|
6824
6832
|
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
6825
6833
|
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
@@ -6828,7 +6836,7 @@ var SeamHttpSeamCustomerV1 = class _SeamHttpSeamCustomerV1 {
|
|
|
6828
6836
|
"Missing consoleSessionToken or workspaceId"
|
|
6829
6837
|
);
|
|
6830
6838
|
}
|
|
6831
|
-
return new
|
|
6839
|
+
return new _SeamHttpSeamCustomerV1StaffMembers(constructorOptions);
|
|
6832
6840
|
}
|
|
6833
6841
|
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
6834
6842
|
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
@@ -6837,7 +6845,7 @@ var SeamHttpSeamCustomerV1 = class _SeamHttpSeamCustomerV1 {
|
|
|
6837
6845
|
"Missing personalAccessToken or workspaceId"
|
|
6838
6846
|
);
|
|
6839
6847
|
}
|
|
6840
|
-
return new
|
|
6848
|
+
return new _SeamHttpSeamCustomerV1StaffMembers(constructorOptions);
|
|
6841
6849
|
}
|
|
6842
6850
|
createPaginator(request) {
|
|
6843
6851
|
return new SeamPaginator(this, request);
|
|
@@ -6858,46 +6866,24 @@ var SeamHttpSeamCustomerV1 = class _SeamHttpSeamCustomerV1 {
|
|
|
6858
6866
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
6859
6867
|
await clientSessions.get();
|
|
6860
6868
|
}
|
|
6861
|
-
|
|
6862
|
-
|
|
6863
|
-
|
|
6864
|
-
|
|
6865
|
-
|
|
6866
|
-
|
|
6867
|
-
|
|
6868
|
-
|
|
6869
|
-
|
|
6870
|
-
|
|
6871
|
-
|
|
6872
|
-
|
|
6873
|
-
|
|
6874
|
-
return SeamHttpSeamCustomerV1Connectors.fromClient(
|
|
6875
|
-
this.client,
|
|
6876
|
-
this.defaults
|
|
6877
|
-
);
|
|
6878
|
-
}
|
|
6879
|
-
get events() {
|
|
6880
|
-
return SeamHttpSeamCustomerV1Events.fromClient(this.client, this.defaults);
|
|
6881
|
-
}
|
|
6882
|
-
get portals() {
|
|
6883
|
-
return SeamHttpSeamCustomerV1Portals.fromClient(this.client, this.defaults);
|
|
6884
|
-
}
|
|
6885
|
-
get reservations() {
|
|
6886
|
-
return SeamHttpSeamCustomerV1Reservations.fromClient(
|
|
6887
|
-
this.client,
|
|
6888
|
-
this.defaults
|
|
6889
|
-
);
|
|
6890
|
-
}
|
|
6891
|
-
get settings() {
|
|
6892
|
-
return SeamHttpSeamCustomerV1Settings.fromClient(this.client, this.defaults);
|
|
6893
|
-
}
|
|
6894
|
-
get spaces() {
|
|
6895
|
-
return SeamHttpSeamCustomerV1Spaces.fromClient(this.client, this.defaults);
|
|
6869
|
+
list(parameters, options = {}) {
|
|
6870
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6871
|
+
throw new Error(
|
|
6872
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6873
|
+
);
|
|
6874
|
+
}
|
|
6875
|
+
return new SeamHttpRequest(this, {
|
|
6876
|
+
pathname: "/seam/customer/v1/staff_members/list",
|
|
6877
|
+
method: "POST",
|
|
6878
|
+
body: parameters,
|
|
6879
|
+
responseKey: "staff_members",
|
|
6880
|
+
options
|
|
6881
|
+
});
|
|
6896
6882
|
}
|
|
6897
6883
|
};
|
|
6898
6884
|
|
|
6899
|
-
// src/lib/seam/connect/routes/seam/customer/v1/
|
|
6900
|
-
var
|
|
6885
|
+
// src/lib/seam/connect/routes/seam/customer/v1/v1.ts
|
|
6886
|
+
var SeamHttpSeamCustomerV1 = class _SeamHttpSeamCustomerV1 {
|
|
6901
6887
|
client;
|
|
6902
6888
|
defaults;
|
|
6903
6889
|
ltsVersion = seamApiLtsVersion;
|
|
@@ -6912,34 +6898,28 @@ var SeamHttpSeamCustomerV1WebhooksConnectorsWorkspaceId = class _SeamHttpSeamCus
|
|
|
6912
6898
|
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
6913
6899
|
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
6914
6900
|
}
|
|
6915
|
-
return new
|
|
6916
|
-
constructorOptions
|
|
6917
|
-
);
|
|
6901
|
+
return new _SeamHttpSeamCustomerV1(constructorOptions);
|
|
6918
6902
|
}
|
|
6919
6903
|
static fromApiKey(apiKey, options = {}) {
|
|
6920
6904
|
const constructorOptions = { ...options, apiKey };
|
|
6921
6905
|
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
6922
6906
|
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
6923
6907
|
}
|
|
6924
|
-
return new
|
|
6925
|
-
constructorOptions
|
|
6926
|
-
);
|
|
6908
|
+
return new _SeamHttpSeamCustomerV1(constructorOptions);
|
|
6927
6909
|
}
|
|
6928
6910
|
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
6929
6911
|
const constructorOptions = { ...options, clientSessionToken };
|
|
6930
6912
|
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
6931
6913
|
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
6932
6914
|
}
|
|
6933
|
-
return new
|
|
6934
|
-
constructorOptions
|
|
6935
|
-
);
|
|
6915
|
+
return new _SeamHttpSeamCustomerV1(constructorOptions);
|
|
6936
6916
|
}
|
|
6937
6917
|
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
6938
6918
|
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
6939
6919
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
6940
6920
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
6941
6921
|
throw new SeamHttpInvalidOptionsError(
|
|
6942
|
-
"The client option cannot be used with
|
|
6922
|
+
"The client option cannot be used with SeamHttpSeamCustomerV1.fromPublishableKey"
|
|
6943
6923
|
);
|
|
6944
6924
|
}
|
|
6945
6925
|
const client = createClient(clientOptions);
|
|
@@ -6947,10 +6927,7 @@ var SeamHttpSeamCustomerV1WebhooksConnectorsWorkspaceId = class _SeamHttpSeamCus
|
|
|
6947
6927
|
const { token } = await clientSessions.getOrCreate({
|
|
6948
6928
|
user_identifier_key: userIdentifierKey
|
|
6949
6929
|
});
|
|
6950
|
-
return
|
|
6951
|
-
token,
|
|
6952
|
-
options
|
|
6953
|
-
);
|
|
6930
|
+
return _SeamHttpSeamCustomerV1.fromClientSessionToken(token, options);
|
|
6954
6931
|
}
|
|
6955
6932
|
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
6956
6933
|
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
@@ -6959,9 +6936,7 @@ var SeamHttpSeamCustomerV1WebhooksConnectorsWorkspaceId = class _SeamHttpSeamCus
|
|
|
6959
6936
|
"Missing consoleSessionToken or workspaceId"
|
|
6960
6937
|
);
|
|
6961
6938
|
}
|
|
6962
|
-
return new
|
|
6963
|
-
constructorOptions
|
|
6964
|
-
);
|
|
6939
|
+
return new _SeamHttpSeamCustomerV1(constructorOptions);
|
|
6965
6940
|
}
|
|
6966
6941
|
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
6967
6942
|
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
@@ -6970,9 +6945,7 @@ var SeamHttpSeamCustomerV1WebhooksConnectorsWorkspaceId = class _SeamHttpSeamCus
|
|
|
6970
6945
|
"Missing personalAccessToken or workspaceId"
|
|
6971
6946
|
);
|
|
6972
6947
|
}
|
|
6973
|
-
return new
|
|
6974
|
-
constructorOptions
|
|
6975
|
-
);
|
|
6948
|
+
return new _SeamHttpSeamCustomerV1(constructorOptions);
|
|
6976
6949
|
}
|
|
6977
6950
|
createPaginator(request) {
|
|
6978
6951
|
return new SeamPaginator(this, request);
|
|
@@ -6993,14 +6966,47 @@ var SeamHttpSeamCustomerV1WebhooksConnectorsWorkspaceId = class _SeamHttpSeamCus
|
|
|
6993
6966
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
6994
6967
|
await clientSessions.get();
|
|
6995
6968
|
}
|
|
6996
|
-
|
|
6997
|
-
return
|
|
6998
|
-
|
|
6999
|
-
|
|
7000
|
-
|
|
7001
|
-
|
|
7002
|
-
|
|
7003
|
-
|
|
6969
|
+
get automationRuns() {
|
|
6970
|
+
return SeamHttpSeamCustomerV1AutomationRuns.fromClient(
|
|
6971
|
+
this.client,
|
|
6972
|
+
this.defaults
|
|
6973
|
+
);
|
|
6974
|
+
}
|
|
6975
|
+
get automations() {
|
|
6976
|
+
return SeamHttpSeamCustomerV1Automations.fromClient(
|
|
6977
|
+
this.client,
|
|
6978
|
+
this.defaults
|
|
6979
|
+
);
|
|
6980
|
+
}
|
|
6981
|
+
get connectors() {
|
|
6982
|
+
return SeamHttpSeamCustomerV1Connectors.fromClient(
|
|
6983
|
+
this.client,
|
|
6984
|
+
this.defaults
|
|
6985
|
+
);
|
|
6986
|
+
}
|
|
6987
|
+
get events() {
|
|
6988
|
+
return SeamHttpSeamCustomerV1Events.fromClient(this.client, this.defaults);
|
|
6989
|
+
}
|
|
6990
|
+
get portals() {
|
|
6991
|
+
return SeamHttpSeamCustomerV1Portals.fromClient(this.client, this.defaults);
|
|
6992
|
+
}
|
|
6993
|
+
get reservations() {
|
|
6994
|
+
return SeamHttpSeamCustomerV1Reservations.fromClient(
|
|
6995
|
+
this.client,
|
|
6996
|
+
this.defaults
|
|
6997
|
+
);
|
|
6998
|
+
}
|
|
6999
|
+
get settings() {
|
|
7000
|
+
return SeamHttpSeamCustomerV1Settings.fromClient(this.client, this.defaults);
|
|
7001
|
+
}
|
|
7002
|
+
get spaces() {
|
|
7003
|
+
return SeamHttpSeamCustomerV1Spaces.fromClient(this.client, this.defaults);
|
|
7004
|
+
}
|
|
7005
|
+
get staffMembers() {
|
|
7006
|
+
return SeamHttpSeamCustomerV1StaffMembers.fromClient(
|
|
7007
|
+
this.client,
|
|
7008
|
+
this.defaults
|
|
7009
|
+
);
|
|
7004
7010
|
}
|
|
7005
7011
|
};
|
|
7006
7012
|
|
|
@@ -10649,14 +10655,19 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10649
10655
|
return seam.list(...args);
|
|
10650
10656
|
};
|
|
10651
10657
|
}
|
|
10652
|
-
get "/seam/customer/v1/
|
|
10658
|
+
get "/seam/customer/v1/staff_members/list"() {
|
|
10653
10659
|
const { client, defaults } = this;
|
|
10654
|
-
|
|
10655
|
-
|
|
10660
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10661
|
+
throw new Error(
|
|
10662
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10663
|
+
);
|
|
10664
|
+
}
|
|
10665
|
+
return function seamCustomerV1StaffMembersList(...args) {
|
|
10666
|
+
const seam = SeamHttpSeamCustomerV1StaffMembers.fromClient(
|
|
10656
10667
|
client,
|
|
10657
10668
|
defaults
|
|
10658
10669
|
);
|
|
10659
|
-
return seam.
|
|
10670
|
+
return seam.list(...args);
|
|
10660
10671
|
};
|
|
10661
10672
|
}
|
|
10662
10673
|
get "/seam/partner/v1/building_blocks/spaces/auto_map"() {
|
|
@@ -11479,7 +11490,7 @@ exports.SeamHttpSeamCustomerV1Portals = SeamHttpSeamCustomerV1Portals;
|
|
|
11479
11490
|
exports.SeamHttpSeamCustomerV1Reservations = SeamHttpSeamCustomerV1Reservations;
|
|
11480
11491
|
exports.SeamHttpSeamCustomerV1Settings = SeamHttpSeamCustomerV1Settings;
|
|
11481
11492
|
exports.SeamHttpSeamCustomerV1Spaces = SeamHttpSeamCustomerV1Spaces;
|
|
11482
|
-
exports.
|
|
11493
|
+
exports.SeamHttpSeamCustomerV1StaffMembers = SeamHttpSeamCustomerV1StaffMembers;
|
|
11483
11494
|
exports.SeamHttpSeamPartnerV1BuildingBlocks = SeamHttpSeamPartnerV1BuildingBlocks;
|
|
11484
11495
|
exports.SeamHttpSeamPartnerV1BuildingBlocksSpaces = SeamHttpSeamPartnerV1BuildingBlocksSpaces;
|
|
11485
11496
|
exports.SeamHttpSpaces = SeamHttpSpaces;
|