lr-chatbot 0.48.52 → 0.48.54
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/index.js +16 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -20153,6 +20153,12 @@ var jh = class {
|
|
|
20153
20153
|
static isValidationProblemDetails = (e) => Z.isAxiosError(e) && Q(e, 422);
|
|
20154
20154
|
static isProblemDetails = (e) => Z.isAxiosError(e) && Q(e, 500);
|
|
20155
20155
|
};
|
|
20156
|
+
static ContentSendmailPost = class {
|
|
20157
|
+
static isBadRequestProblemDetail = (e) => Z.isAxiosError(e) && Q(e, 400);
|
|
20158
|
+
static isUnauthorizeProblemDetail = (e) => Z.isAxiosError(e) && Q(e, 401);
|
|
20159
|
+
static isValidationProblemDetails = (e) => Z.isAxiosError(e) && Q(e, 422);
|
|
20160
|
+
static isProblemDetails = (e) => Z.isAxiosError(e) && Q(e, 500);
|
|
20161
|
+
};
|
|
20156
20162
|
static ContentTicketPost = class {
|
|
20157
20163
|
static isBadRequestProblemDetail = (e) => Z.isAxiosError(e) && Q(e, 400);
|
|
20158
20164
|
static isUnauthorizeProblemDetail = (e) => Z.isAxiosError(e) && Q(e, 401);
|
|
@@ -20163,6 +20169,7 @@ var jh = class {
|
|
|
20163
20169
|
static Endpoints = {
|
|
20164
20170
|
contentTranslationGet: "/api/content/translation",
|
|
20165
20171
|
contentReportPost: "/api/content/report",
|
|
20172
|
+
contentSendmailPost: "/api/content/sendmail",
|
|
20166
20173
|
contentTicketPost: "/api/content/ticket"
|
|
20167
20174
|
};
|
|
20168
20175
|
static Errors = Yh;
|
|
@@ -20179,11 +20186,19 @@ var jh = class {
|
|
|
20179
20186
|
type: "multipart/form-data",
|
|
20180
20187
|
...n
|
|
20181
20188
|
});
|
|
20189
|
+
contentSendmailPost = (t, n = {}) => this.request({
|
|
20190
|
+
path: e.Endpoints.contentSendmailPost,
|
|
20191
|
+
method: "POST",
|
|
20192
|
+
body: t,
|
|
20193
|
+
type: "application/json",
|
|
20194
|
+
...n
|
|
20195
|
+
});
|
|
20182
20196
|
contentTicketPost = (t, n = {}) => this.request({
|
|
20183
20197
|
path: e.Endpoints.contentTicketPost,
|
|
20184
20198
|
method: "POST",
|
|
20185
20199
|
body: t,
|
|
20186
20200
|
type: "application/json",
|
|
20201
|
+
format: "json",
|
|
20187
20202
|
...n
|
|
20188
20203
|
});
|
|
20189
20204
|
};
|
|
@@ -24076,7 +24091,7 @@ var Dx = "lr.chatbot.broadcast_channel." + document.location.hostname, Ox = "lr.
|
|
|
24076
24091
|
}), this.#e = "/bff", this.#t = !1, this.#n = !1, this.#r = !1, this.#i = !1, this._closeClickCount = 0, this._isConversationDone = !1, this._shouldEndConversation = !1, this._broadcastController = new ty(this, Dx), this._conversationHistoryTask = this.createConversationHistoryTask(), this.registerBroadcastMessages();
|
|
24077
24092
|
}
|
|
24078
24093
|
getVersion() {
|
|
24079
|
-
return "LR Chatbot - v.0.48.
|
|
24094
|
+
return "LR Chatbot - v.0.48.54";
|
|
24080
24095
|
}
|
|
24081
24096
|
async connectedCallback() {
|
|
24082
24097
|
super.connectedCallback(), this._conversationHistoryTask.run();
|