@seamapi/http 1.53.0 → 1.55.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 +236 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +47 -2
- package/dist/index.cjs +238 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/events/events.d.ts +34 -0
- package/lib/seam/connect/routes/seam/customer/v1/events/events.js +102 -0
- package/lib/seam/connect/routes/seam/customer/v1/events/events.js.map +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/events/index.d.ts +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/events/index.js +6 -0
- package/lib/seam/connect/routes/seam/customer/v1/events/index.js.map +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/index.d.ts +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/index.js +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/index.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/settings/settings.d.ts +14 -1
- package/lib/seam/connect/routes/seam/customer/v1/settings/settings.js +12 -0
- package/lib/seam/connect/routes/seam/customer/v1/settings/settings.js.map +1 -1
- 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 -2
- package/lib/seam/connect/routes/seam-http-endpoints.js +45 -0
- package/lib/seam/connect/routes/seam-http-endpoints.js.map +1 -1
- package/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.js +12 -0
- package/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.js.map +1 -1
- package/lib/seam/connect/routes/thermostats/thermostats.js +3 -0
- package/lib/seam/connect/routes/thermostats/thermostats.js.map +1 -1
- package/lib/seam/connect/routes/user-identities/enrollment-automations/enrollment-automations.js +15 -0
- package/lib/seam/connect/routes/user-identities/enrollment-automations/enrollment-automations.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/events/events.ts +211 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/events/index.ts +6 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/index.ts +1 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/settings/settings.ts +47 -1
- package/src/lib/seam/connect/routes/seam/customer/v1/v1.ts +5 -0
- package/src/lib/seam/connect/routes/seam-http-endpoints.ts +87 -0
- package/src/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.ts +20 -0
- package/src/lib/seam/connect/routes/thermostats/thermostats.ts +5 -0
- package/src/lib/seam/connect/routes/user-identities/enrollment-automations/enrollment-automations.ts +25 -0
- package/src/lib/version.ts +1 -1
package/dist/connect.cjs
CHANGED
|
@@ -5716,6 +5716,110 @@ var _SeamHttpSeamCustomerV1Automations = class _SeamHttpSeamCustomerV1Automation
|
|
|
5716
5716
|
_SeamHttpSeamCustomerV1Automations.ltsVersion = seamApiLtsVersion;
|
|
5717
5717
|
var SeamHttpSeamCustomerV1Automations = _SeamHttpSeamCustomerV1Automations;
|
|
5718
5718
|
|
|
5719
|
+
// src/lib/seam/connect/routes/seam/customer/v1/events/events.ts
|
|
5720
|
+
var _SeamHttpSeamCustomerV1Events = class _SeamHttpSeamCustomerV1Events {
|
|
5721
|
+
constructor(apiKeyOrOptions = {}) {
|
|
5722
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
5723
|
+
const options = parseOptions(apiKeyOrOptions);
|
|
5724
|
+
if (!options.isUndocumentedApiEnabled) {
|
|
5725
|
+
throw new Error(
|
|
5726
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
5727
|
+
);
|
|
5728
|
+
}
|
|
5729
|
+
this.client = "client" in options ? options.client : createClient(options);
|
|
5730
|
+
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
5731
|
+
}
|
|
5732
|
+
static fromClient(client, options = {}) {
|
|
5733
|
+
const constructorOptions = { ...options, client };
|
|
5734
|
+
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
5735
|
+
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
5736
|
+
}
|
|
5737
|
+
return new _SeamHttpSeamCustomerV1Events(constructorOptions);
|
|
5738
|
+
}
|
|
5739
|
+
static fromApiKey(apiKey, options = {}) {
|
|
5740
|
+
const constructorOptions = { ...options, apiKey };
|
|
5741
|
+
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
5742
|
+
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
5743
|
+
}
|
|
5744
|
+
return new _SeamHttpSeamCustomerV1Events(constructorOptions);
|
|
5745
|
+
}
|
|
5746
|
+
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
5747
|
+
const constructorOptions = { ...options, clientSessionToken };
|
|
5748
|
+
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
5749
|
+
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
5750
|
+
}
|
|
5751
|
+
return new _SeamHttpSeamCustomerV1Events(constructorOptions);
|
|
5752
|
+
}
|
|
5753
|
+
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
5754
|
+
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
5755
|
+
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
5756
|
+
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
5757
|
+
throw new SeamHttpInvalidOptionsError(
|
|
5758
|
+
"The client option cannot be used with SeamHttpSeamCustomerV1Events.fromPublishableKey"
|
|
5759
|
+
);
|
|
5760
|
+
}
|
|
5761
|
+
const client = createClient(clientOptions);
|
|
5762
|
+
const clientSessions = SeamHttpClientSessions.fromClient(client);
|
|
5763
|
+
const { token } = await clientSessions.getOrCreate({
|
|
5764
|
+
user_identifier_key: userIdentifierKey
|
|
5765
|
+
});
|
|
5766
|
+
return _SeamHttpSeamCustomerV1Events.fromClientSessionToken(token, options);
|
|
5767
|
+
}
|
|
5768
|
+
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
5769
|
+
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
5770
|
+
if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
|
|
5771
|
+
throw new SeamHttpInvalidOptionsError(
|
|
5772
|
+
"Missing consoleSessionToken or workspaceId"
|
|
5773
|
+
);
|
|
5774
|
+
}
|
|
5775
|
+
return new _SeamHttpSeamCustomerV1Events(constructorOptions);
|
|
5776
|
+
}
|
|
5777
|
+
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
5778
|
+
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
5779
|
+
if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
|
|
5780
|
+
throw new SeamHttpInvalidOptionsError(
|
|
5781
|
+
"Missing personalAccessToken or workspaceId"
|
|
5782
|
+
);
|
|
5783
|
+
}
|
|
5784
|
+
return new _SeamHttpSeamCustomerV1Events(constructorOptions);
|
|
5785
|
+
}
|
|
5786
|
+
createPaginator(request) {
|
|
5787
|
+
return new SeamPaginator(this, request);
|
|
5788
|
+
}
|
|
5789
|
+
async updateClientSessionToken(clientSessionToken) {
|
|
5790
|
+
const { headers } = this.client.defaults;
|
|
5791
|
+
const authHeaders = getAuthHeadersForClientSessionToken({
|
|
5792
|
+
clientSessionToken
|
|
5793
|
+
});
|
|
5794
|
+
for (const key of Object.keys(authHeaders)) {
|
|
5795
|
+
if (headers[key] == null) {
|
|
5796
|
+
throw new Error(
|
|
5797
|
+
"Cannot update a clientSessionToken on a client created without a clientSessionToken"
|
|
5798
|
+
);
|
|
5799
|
+
}
|
|
5800
|
+
}
|
|
5801
|
+
this.client.defaults.headers = { ...headers, ...authHeaders };
|
|
5802
|
+
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
5803
|
+
await clientSessions.get();
|
|
5804
|
+
}
|
|
5805
|
+
list(parameters, options = {}) {
|
|
5806
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
5807
|
+
throw new Error(
|
|
5808
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
5809
|
+
);
|
|
5810
|
+
}
|
|
5811
|
+
return new SeamHttpRequest(this, {
|
|
5812
|
+
pathname: "/seam/customer/v1/events/list",
|
|
5813
|
+
method: "POST",
|
|
5814
|
+
body: parameters,
|
|
5815
|
+
responseKey: "events",
|
|
5816
|
+
options
|
|
5817
|
+
});
|
|
5818
|
+
}
|
|
5819
|
+
};
|
|
5820
|
+
_SeamHttpSeamCustomerV1Events.ltsVersion = seamApiLtsVersion;
|
|
5821
|
+
var SeamHttpSeamCustomerV1Events = _SeamHttpSeamCustomerV1Events;
|
|
5822
|
+
|
|
5719
5823
|
// src/lib/seam/connect/routes/seam/customer/v1/portals/portals.ts
|
|
5720
5824
|
var _SeamHttpSeamCustomerV1Portals = class _SeamHttpSeamCustomerV1Portals {
|
|
5721
5825
|
constructor(apiKeyOrOptions = {}) {
|
|
@@ -5906,6 +6010,20 @@ var _SeamHttpSeamCustomerV1Settings = class _SeamHttpSeamCustomerV1Settings {
|
|
|
5906
6010
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
5907
6011
|
await clientSessions.get();
|
|
5908
6012
|
}
|
|
6013
|
+
get(parameters, options = {}) {
|
|
6014
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6015
|
+
throw new Error(
|
|
6016
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6017
|
+
);
|
|
6018
|
+
}
|
|
6019
|
+
return new SeamHttpRequest(this, {
|
|
6020
|
+
pathname: "/seam/customer/v1/settings/get",
|
|
6021
|
+
method: "GET",
|
|
6022
|
+
params: parameters,
|
|
6023
|
+
responseKey: "business_vertical",
|
|
6024
|
+
options
|
|
6025
|
+
});
|
|
6026
|
+
}
|
|
5909
6027
|
update(parameters, options = {}) {
|
|
5910
6028
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
5911
6029
|
throw new Error(
|
|
@@ -6022,6 +6140,9 @@ var _SeamHttpSeamCustomerV1 = class _SeamHttpSeamCustomerV1 {
|
|
|
6022
6140
|
this.defaults
|
|
6023
6141
|
);
|
|
6024
6142
|
}
|
|
6143
|
+
get events() {
|
|
6144
|
+
return SeamHttpSeamCustomerV1Events.fromClient(this.client, this.defaults);
|
|
6145
|
+
}
|
|
6025
6146
|
get portals() {
|
|
6026
6147
|
return SeamHttpSeamCustomerV1Portals.fromClient(this.client, this.defaults);
|
|
6027
6148
|
}
|
|
@@ -6418,6 +6539,11 @@ var _SeamHttpThermostatsDailyPrograms = class _SeamHttpThermostatsDailyPrograms
|
|
|
6418
6539
|
constructor(apiKeyOrOptions = {}) {
|
|
6419
6540
|
this.ltsVersion = seamApiLtsVersion;
|
|
6420
6541
|
const options = parseOptions(apiKeyOrOptions);
|
|
6542
|
+
if (!options.isUndocumentedApiEnabled) {
|
|
6543
|
+
throw new Error(
|
|
6544
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6545
|
+
);
|
|
6546
|
+
}
|
|
6421
6547
|
this.client = "client" in options ? options.client : createClient(options);
|
|
6422
6548
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
6423
6549
|
}
|
|
@@ -6498,6 +6624,11 @@ var _SeamHttpThermostatsDailyPrograms = class _SeamHttpThermostatsDailyPrograms
|
|
|
6498
6624
|
await clientSessions.get();
|
|
6499
6625
|
}
|
|
6500
6626
|
create(parameters, options = {}) {
|
|
6627
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6628
|
+
throw new Error(
|
|
6629
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6630
|
+
);
|
|
6631
|
+
}
|
|
6501
6632
|
return new SeamHttpRequest(this, {
|
|
6502
6633
|
pathname: "/thermostats/daily_programs/create",
|
|
6503
6634
|
method: "POST",
|
|
@@ -6507,6 +6638,11 @@ var _SeamHttpThermostatsDailyPrograms = class _SeamHttpThermostatsDailyPrograms
|
|
|
6507
6638
|
});
|
|
6508
6639
|
}
|
|
6509
6640
|
delete(parameters, options = {}) {
|
|
6641
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6642
|
+
throw new Error(
|
|
6643
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6644
|
+
);
|
|
6645
|
+
}
|
|
6510
6646
|
return new SeamHttpRequest(this, {
|
|
6511
6647
|
pathname: "/thermostats/daily_programs/delete",
|
|
6512
6648
|
method: "POST",
|
|
@@ -6516,6 +6652,11 @@ var _SeamHttpThermostatsDailyPrograms = class _SeamHttpThermostatsDailyPrograms
|
|
|
6516
6652
|
});
|
|
6517
6653
|
}
|
|
6518
6654
|
update(parameters, options = {}) {
|
|
6655
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6656
|
+
throw new Error(
|
|
6657
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6658
|
+
);
|
|
6659
|
+
}
|
|
6519
6660
|
return new SeamHttpRequest(this, {
|
|
6520
6661
|
pathname: "/thermostats/daily_programs/update",
|
|
6521
6662
|
method: "PATCH",
|
|
@@ -6986,6 +7127,11 @@ var _SeamHttpThermostats = class _SeamHttpThermostats {
|
|
|
6986
7127
|
});
|
|
6987
7128
|
}
|
|
6988
7129
|
updateWeeklyProgram(parameters, options = {}) {
|
|
7130
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7131
|
+
throw new Error(
|
|
7132
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7133
|
+
);
|
|
7134
|
+
}
|
|
6989
7135
|
return new SeamHttpRequest(this, {
|
|
6990
7136
|
pathname: "/thermostats/update_weekly_program",
|
|
6991
7137
|
method: "POST",
|
|
@@ -7742,6 +7888,11 @@ var _SeamHttpUserIdentitiesEnrollmentAutomations = class _SeamHttpUserIdentities
|
|
|
7742
7888
|
constructor(apiKeyOrOptions = {}) {
|
|
7743
7889
|
this.ltsVersion = seamApiLtsVersion;
|
|
7744
7890
|
const options = parseOptions(apiKeyOrOptions);
|
|
7891
|
+
if (!options.isUndocumentedApiEnabled) {
|
|
7892
|
+
throw new Error(
|
|
7893
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7894
|
+
);
|
|
7895
|
+
}
|
|
7745
7896
|
this.client = "client" in options ? options.client : createClient(options);
|
|
7746
7897
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
7747
7898
|
}
|
|
@@ -7822,6 +7973,11 @@ var _SeamHttpUserIdentitiesEnrollmentAutomations = class _SeamHttpUserIdentities
|
|
|
7822
7973
|
await clientSessions.get();
|
|
7823
7974
|
}
|
|
7824
7975
|
delete(parameters, options = {}) {
|
|
7976
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7977
|
+
throw new Error(
|
|
7978
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7979
|
+
);
|
|
7980
|
+
}
|
|
7825
7981
|
return new SeamHttpRequest(this, {
|
|
7826
7982
|
pathname: "/user_identities/enrollment_automations/delete",
|
|
7827
7983
|
method: "POST",
|
|
@@ -7831,6 +7987,11 @@ var _SeamHttpUserIdentitiesEnrollmentAutomations = class _SeamHttpUserIdentities
|
|
|
7831
7987
|
});
|
|
7832
7988
|
}
|
|
7833
7989
|
get(parameters, options = {}) {
|
|
7990
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7991
|
+
throw new Error(
|
|
7992
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7993
|
+
);
|
|
7994
|
+
}
|
|
7834
7995
|
return new SeamHttpRequest(this, {
|
|
7835
7996
|
pathname: "/user_identities/enrollment_automations/get",
|
|
7836
7997
|
method: "POST",
|
|
@@ -7840,6 +8001,11 @@ var _SeamHttpUserIdentitiesEnrollmentAutomations = class _SeamHttpUserIdentities
|
|
|
7840
8001
|
});
|
|
7841
8002
|
}
|
|
7842
8003
|
launch(parameters, options = {}) {
|
|
8004
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
8005
|
+
throw new Error(
|
|
8006
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
8007
|
+
);
|
|
8008
|
+
}
|
|
7843
8009
|
return new SeamHttpRequest(this, {
|
|
7844
8010
|
pathname: "/user_identities/enrollment_automations/launch",
|
|
7845
8011
|
method: "POST",
|
|
@@ -7849,6 +8015,11 @@ var _SeamHttpUserIdentitiesEnrollmentAutomations = class _SeamHttpUserIdentities
|
|
|
7849
8015
|
});
|
|
7850
8016
|
}
|
|
7851
8017
|
list(parameters, options = {}) {
|
|
8018
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
8019
|
+
throw new Error(
|
|
8020
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
8021
|
+
);
|
|
8022
|
+
}
|
|
7852
8023
|
return new SeamHttpRequest(this, {
|
|
7853
8024
|
pathname: "/user_identities/enrollment_automations/list",
|
|
7854
8025
|
method: "POST",
|
|
@@ -9665,6 +9836,18 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
9665
9836
|
return seam.update(...args);
|
|
9666
9837
|
};
|
|
9667
9838
|
}
|
|
9839
|
+
get ["/seam/customer/v1/events/list"]() {
|
|
9840
|
+
const { client, defaults } = this;
|
|
9841
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
9842
|
+
throw new Error(
|
|
9843
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
9844
|
+
);
|
|
9845
|
+
}
|
|
9846
|
+
return function seamCustomerV1EventsList(...args) {
|
|
9847
|
+
const seam = SeamHttpSeamCustomerV1Events.fromClient(client, defaults);
|
|
9848
|
+
return seam.list(...args);
|
|
9849
|
+
};
|
|
9850
|
+
}
|
|
9668
9851
|
get ["/seam/customer/v1/portals/get"]() {
|
|
9669
9852
|
const { client, defaults } = this;
|
|
9670
9853
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
@@ -9677,6 +9860,18 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
9677
9860
|
return seam.get(...args);
|
|
9678
9861
|
};
|
|
9679
9862
|
}
|
|
9863
|
+
get ["/seam/customer/v1/settings/get"]() {
|
|
9864
|
+
const { client, defaults } = this;
|
|
9865
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
9866
|
+
throw new Error(
|
|
9867
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
9868
|
+
);
|
|
9869
|
+
}
|
|
9870
|
+
return function seamCustomerV1SettingsGet(...args) {
|
|
9871
|
+
const seam = SeamHttpSeamCustomerV1Settings.fromClient(client, defaults);
|
|
9872
|
+
return seam.get(...args);
|
|
9873
|
+
};
|
|
9874
|
+
}
|
|
9680
9875
|
get ["/seam/customer/v1/settings/update"]() {
|
|
9681
9876
|
const { client, defaults } = this;
|
|
9682
9877
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
@@ -9879,6 +10074,11 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
9879
10074
|
}
|
|
9880
10075
|
get ["/thermostats/update_weekly_program"]() {
|
|
9881
10076
|
const { client, defaults } = this;
|
|
10077
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10078
|
+
throw new Error(
|
|
10079
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10080
|
+
);
|
|
10081
|
+
}
|
|
9882
10082
|
return function thermostatsUpdateWeeklyProgram(...args) {
|
|
9883
10083
|
const seam = SeamHttpThermostats.fromClient(client, defaults);
|
|
9884
10084
|
return seam.updateWeeklyProgram(...args);
|
|
@@ -9886,6 +10086,11 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
9886
10086
|
}
|
|
9887
10087
|
get ["/thermostats/daily_programs/create"]() {
|
|
9888
10088
|
const { client, defaults } = this;
|
|
10089
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10090
|
+
throw new Error(
|
|
10091
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10092
|
+
);
|
|
10093
|
+
}
|
|
9889
10094
|
return function thermostatsDailyProgramsCreate(...args) {
|
|
9890
10095
|
const seam = SeamHttpThermostatsDailyPrograms.fromClient(client, defaults);
|
|
9891
10096
|
return seam.create(...args);
|
|
@@ -9893,6 +10098,11 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
9893
10098
|
}
|
|
9894
10099
|
get ["/thermostats/daily_programs/delete"]() {
|
|
9895
10100
|
const { client, defaults } = this;
|
|
10101
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10102
|
+
throw new Error(
|
|
10103
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10104
|
+
);
|
|
10105
|
+
}
|
|
9896
10106
|
return function thermostatsDailyProgramsDelete(...args) {
|
|
9897
10107
|
const seam = SeamHttpThermostatsDailyPrograms.fromClient(client, defaults);
|
|
9898
10108
|
return seam.delete(...args);
|
|
@@ -9900,6 +10110,11 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
9900
10110
|
}
|
|
9901
10111
|
get ["/thermostats/daily_programs/update"]() {
|
|
9902
10112
|
const { client, defaults } = this;
|
|
10113
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10114
|
+
throw new Error(
|
|
10115
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10116
|
+
);
|
|
10117
|
+
}
|
|
9903
10118
|
return function thermostatsDailyProgramsUpdate(...args) {
|
|
9904
10119
|
const seam = SeamHttpThermostatsDailyPrograms.fromClient(client, defaults);
|
|
9905
10120
|
return seam.update(...args);
|
|
@@ -10299,6 +10514,11 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10299
10514
|
}
|
|
10300
10515
|
get ["/user_identities/enrollment_automations/delete"]() {
|
|
10301
10516
|
const { client, defaults } = this;
|
|
10517
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10518
|
+
throw new Error(
|
|
10519
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10520
|
+
);
|
|
10521
|
+
}
|
|
10302
10522
|
return function userIdentitiesEnrollmentAutomationsDelete(...args) {
|
|
10303
10523
|
const seam = SeamHttpUserIdentitiesEnrollmentAutomations.fromClient(
|
|
10304
10524
|
client,
|
|
@@ -10309,6 +10529,11 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10309
10529
|
}
|
|
10310
10530
|
get ["/user_identities/enrollment_automations/get"]() {
|
|
10311
10531
|
const { client, defaults } = this;
|
|
10532
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10533
|
+
throw new Error(
|
|
10534
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10535
|
+
);
|
|
10536
|
+
}
|
|
10312
10537
|
return function userIdentitiesEnrollmentAutomationsGet(...args) {
|
|
10313
10538
|
const seam = SeamHttpUserIdentitiesEnrollmentAutomations.fromClient(
|
|
10314
10539
|
client,
|
|
@@ -10319,6 +10544,11 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10319
10544
|
}
|
|
10320
10545
|
get ["/user_identities/enrollment_automations/launch"]() {
|
|
10321
10546
|
const { client, defaults } = this;
|
|
10547
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10548
|
+
throw new Error(
|
|
10549
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10550
|
+
);
|
|
10551
|
+
}
|
|
10322
10552
|
return function userIdentitiesEnrollmentAutomationsLaunch(...args) {
|
|
10323
10553
|
const seam = SeamHttpUserIdentitiesEnrollmentAutomations.fromClient(
|
|
10324
10554
|
client,
|
|
@@ -10329,6 +10559,11 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10329
10559
|
}
|
|
10330
10560
|
get ["/user_identities/enrollment_automations/list"]() {
|
|
10331
10561
|
const { client, defaults } = this;
|
|
10562
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10563
|
+
throw new Error(
|
|
10564
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10565
|
+
);
|
|
10566
|
+
}
|
|
10332
10567
|
return function userIdentitiesEnrollmentAutomationsList(...args) {
|
|
10333
10568
|
const seam = SeamHttpUserIdentitiesEnrollmentAutomations.fromClient(
|
|
10334
10569
|
client,
|
|
@@ -10576,6 +10811,7 @@ exports.SeamHttpSeamConsoleV1 = SeamHttpSeamConsoleV1;
|
|
|
10576
10811
|
exports.SeamHttpSeamCustomerV1 = SeamHttpSeamCustomerV1;
|
|
10577
10812
|
exports.SeamHttpSeamCustomerV1AutomationRuns = SeamHttpSeamCustomerV1AutomationRuns;
|
|
10578
10813
|
exports.SeamHttpSeamCustomerV1Automations = SeamHttpSeamCustomerV1Automations;
|
|
10814
|
+
exports.SeamHttpSeamCustomerV1Events = SeamHttpSeamCustomerV1Events;
|
|
10579
10815
|
exports.SeamHttpSeamCustomerV1Portals = SeamHttpSeamCustomerV1Portals;
|
|
10580
10816
|
exports.SeamHttpSeamCustomerV1Settings = SeamHttpSeamCustomerV1Settings;
|
|
10581
10817
|
exports.SeamHttpSeamPartnerV1BuildingBlocks = SeamHttpSeamPartnerV1BuildingBlocks;
|