@envive-ai/react-widgets-v3 0.3.44 → 0.3.46
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/debug/chatEmbed.cjs +1 -1
- package/dist/debug/chatEmbed.js +1 -1
- package/dist/debug/reportIssue.cjs +1 -1
- package/dist/debug/reportIssue.js +1 -1
- package/dist/hocs/withBaseWidget/withBaseWidget.d.cts +2 -2
- package/dist/hocs/withBaseWidget/withBaseWidget.d.ts +2 -2
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/apis/CustomerServiceApi.cjs +20 -65
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/apis/DefaultApi.cjs +87 -168
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/apis/InferenceApi.cjs +20 -65
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/apis/ProductsApi.cjs +4 -13
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/apis/SearchApi.cjs +14 -50
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/AISuggestionsServedMethodAttribution.cjs +78 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/ExperimentNamespace.cjs +61 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/FormResponseAttributesFormCategory.cjs +0 -2
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/OrderItemInfo.cjs +3 -3
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/Organization.cjs +2 -2
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/OrganizationConfigResults.cjs +10 -2
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/PLPAttributesAttributes.cjs +0 -2
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/StatsigExperimentConfigResolutionMetadata.cjs +73 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/StatsigExperimentLayerAssignment.cjs +64 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/UrlResolvingResponseSpecificDetails.cjs +0 -2
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/UserEventAttributes.cjs +0 -2
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/WidgetTextResponse.cjs +6 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/index.cjs +8 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/runtime.cjs +1 -3
- package/dist/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.cjs +6 -6
- package/dist/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.d.cts +3 -3
- package/dist/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.d.ts +3 -3
- package/dist/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.js +6 -6
- package/dist/widgets/ChatPreviewLoadingWidget/ChatPreviewLoadingWidget.d.cts +3 -3
- package/dist/widgets/ChatPreviewLoadingWidget/ChatPreviewLoadingWidget.d.ts +3 -3
- package/dist/widgets/ChatPreviewWidget/ChatPreviewWidget.cjs +4 -4
- package/dist/widgets/ChatPreviewWidget/ChatPreviewWidget.d.cts +3 -3
- package/dist/widgets/ChatPreviewWidget/ChatPreviewWidget.d.ts +3 -3
- package/dist/widgets/ChatPreviewWidget/ChatPreviewWidget.js +4 -4
- package/dist/widgets/FloatingChatWidget/FloatingChatOverlay.cjs +1 -0
- package/dist/widgets/FloatingChatWidget/FloatingChatOverlay.js +1 -0
- package/dist/widgets/FloatingChatWidget/FloatingChatWidget.cjs +3 -3
- package/dist/widgets/FloatingChatWidget/FloatingChatWidget.d.cts +2 -2
- package/dist/widgets/FloatingChatWidget/FloatingChatWidget.d.ts +2 -2
- package/dist/widgets/FloatingChatWidget/FloatingChatWidget.js +3 -3
- package/dist/widgets/FloatingChatWidget/hooks/useAutoPopup.cjs +1 -1
- package/dist/widgets/FloatingChatWidget/hooks/useAutoPopup.js +1 -1
- package/dist/widgets/FullPageSalesAgentWidget/FullPageSalesAgentWidget.cjs +2 -0
- package/dist/widgets/FullPageSalesAgentWidget/FullPageSalesAgentWidget.d.cts +2 -2
- package/dist/widgets/FullPageSalesAgentWidget/FullPageSalesAgentWidget.d.ts +2 -2
- package/dist/widgets/FullPageSalesAgentWidget/FullPageSalesAgentWidget.js +2 -0
- package/dist/widgets/ProductCardWidget/ProductCardWidget.cjs +3 -3
- package/dist/widgets/ProductCardWidget/ProductCardWidget.d.cts +2 -2
- package/dist/widgets/ProductCardWidget/ProductCardWidget.d.ts +2 -2
- package/dist/widgets/ProductCardWidget/ProductCardWidget.js +3 -3
- package/dist/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.cjs +4 -4
- package/dist/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.d.cts +3 -3
- package/dist/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.d.ts +3 -3
- package/dist/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.js +4 -4
- package/dist/widgets/PromptCarouselWidget/PromptCarouselWidget.cjs +3 -3
- package/dist/widgets/PromptCarouselWidget/PromptCarouselWidget.d.cts +2 -2
- package/dist/widgets/PromptCarouselWidget/PromptCarouselWidget.d.ts +2 -2
- package/dist/widgets/PromptCarouselWidget/PromptCarouselWidget.js +3 -3
- package/dist/widgets/SocialProofFlowWidget/SocialProofFlowWidget.cjs +1 -1
- package/dist/widgets/SocialProofFlowWidget/SocialProofFlowWidget.d.cts +2 -2
- package/dist/widgets/SocialProofFlowWidget/SocialProofFlowWidget.d.ts +2 -2
- package/dist/widgets/SocialProofFlowWidget/SocialProofFlowWidget.js +1 -1
- package/dist/widgets/SocialProofWidget/SocialProofWidget.cjs +6 -6
- package/dist/widgets/SocialProofWidget/SocialProofWidget.d.cts +3 -3
- package/dist/widgets/SocialProofWidget/SocialProofWidget.d.ts +3 -3
- package/dist/widgets/SocialProofWidget/SocialProofWidget.js +6 -6
- package/dist/widgets/TitledPromptCarouselWidget/TitledPromptCarouselWidget.cjs +2 -2
- package/dist/widgets/TitledPromptCarouselWidget/TitledPromptCarouselWidget.d.cts +2 -2
- package/dist/widgets/TitledPromptCarouselWidget/TitledPromptCarouselWidget.d.ts +2 -2
- package/dist/widgets/TitledPromptCarouselWidget/TitledPromptCarouselWidget.js +2 -2
- package/dist/widgets/TypingAnimationFlowWidget/TypingAnimationFlowWidget.cjs +1 -1
- package/dist/widgets/TypingAnimationFlowWidget/TypingAnimationFlowWidget.d.cts +2 -2
- package/dist/widgets/TypingAnimationFlowWidget/TypingAnimationFlowWidget.d.ts +2 -2
- package/dist/widgets/TypingAnimationFlowWidget/TypingAnimationFlowWidget.js +1 -1
- package/dist/widgets/TypingAnimationWidget/TypingAnimationWidget.cjs +3 -3
- package/dist/widgets/TypingAnimationWidget/TypingAnimationWidget.d.cts +3 -3
- package/dist/widgets/TypingAnimationWidget/TypingAnimationWidget.d.ts +3 -3
- package/dist/widgets/TypingAnimationWidget/TypingAnimationWidget.js +3 -3
- package/dist/widgets/hooks/useGetWidgetStatus.cjs +1 -1
- package/dist/widgets/hooks/useGetWidgetStatus.js +1 -1
- package/dist/widgets/utils/functions.cjs +1 -1
- package/dist/widgets/utils/functions.js +1 -1
- package/package.json +1 -1
- package/src/widgets/FloatingChatWidget/FloatingChatOverlay.tsx +1 -0
- package/src/widgets/FullPageSalesAgentWidget/FullPageSalesAgentWidget.tsx +3 -0
package/dist/debug/chatEmbed.cjs
CHANGED
|
@@ -3,10 +3,10 @@ const require_MessageContent = require('./MessageContent.cjs');
|
|
|
3
3
|
let react = require("react");
|
|
4
4
|
react = require_rolldown_runtime.__toESM(react);
|
|
5
5
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
|
-
let __envive_ai_react_hooks_atoms_chat = require("@envive-ai/react-hooks/atoms/chat");
|
|
7
6
|
let jotai = require("jotai");
|
|
8
7
|
let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
|
|
9
8
|
let __envive_ai_react_toolkit_v3_PromptCarousel = require("@envive-ai/react-toolkit-v3/PromptCarousel");
|
|
9
|
+
let __envive_ai_react_hooks_atoms_chat = require("@envive-ai/react-hooks/atoms/chat");
|
|
10
10
|
let classnames = require("classnames");
|
|
11
11
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
12
12
|
|
package/dist/debug/chatEmbed.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { MessageContent } from "./MessageContent.js";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
-
import { chatAtom } from "@envive-ai/react-hooks/atoms/chat";
|
|
5
4
|
import { useAtomValue } from "jotai";
|
|
6
5
|
import { MessageType } from "@envive-ai/react-hooks/application/models";
|
|
7
6
|
import { PromptCarousel, PromptCarouselRows } from "@envive-ai/react-toolkit-v3/PromptCarousel";
|
|
7
|
+
import { chatAtom } from "@envive-ai/react-hooks/atoms/chat";
|
|
8
8
|
import classNames from "classnames";
|
|
9
9
|
|
|
10
10
|
//#region src/debug/chatEmbed.tsx
|
|
@@ -5,9 +5,9 @@ const require_GenericSelect = require('./GenericSelect.cjs');
|
|
|
5
5
|
const require_chatEmbed = require('./chatEmbed.cjs');
|
|
6
6
|
let react = require("react");
|
|
7
7
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
|
-
let __envive_ai_react_hooks_atoms_chat = require("@envive-ai/react-hooks/atoms/chat");
|
|
9
8
|
let jotai = require("jotai");
|
|
10
9
|
let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
|
|
10
|
+
let __envive_ai_react_hooks_atoms_chat = require("@envive-ai/react-hooks/atoms/chat");
|
|
11
11
|
let __envive_ai_react_hooks_atoms_app = require("@envive-ai/react-hooks/atoms/app");
|
|
12
12
|
let classnames = require("classnames");
|
|
13
13
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
@@ -3,9 +3,9 @@ import { GenericSelect } from "./GenericSelect.js";
|
|
|
3
3
|
import chatEmbed_default from "./chatEmbed.js";
|
|
4
4
|
import { useCallback, useEffect, useState } from "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
import { chatAtom, lastAssistantMessageAtom } from "@envive-ai/react-hooks/atoms/chat";
|
|
7
6
|
import { useAtomValue } from "jotai";
|
|
8
7
|
import { MessageType } from "@envive-ai/react-hooks/application/models";
|
|
8
|
+
import { chatAtom, lastAssistantMessageAtom } from "@envive-ai/react-hooks/atoms/chat";
|
|
9
9
|
import { userIdAtom } from "@envive-ai/react-hooks/atoms/app";
|
|
10
10
|
import { ReportSessionRequestReportPriorityEnum, ReportSessionRequestReportTypeEnum } from "@spiffy-ai/commerce-api-client";
|
|
11
11
|
import classNames from "classnames";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BaseWidgetProps, WithBaseWidgetOptions } from "./types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime10 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/hocs/withBaseWidget/withBaseWidget.d.ts
|
|
5
5
|
declare function withBaseWidget<P extends BaseWidgetProps>(Widget: React.ComponentType<P>, options?: WithBaseWidgetOptions): {
|
|
6
|
-
(props: P):
|
|
6
|
+
(props: P): react_jsx_runtime10.JSX.Element;
|
|
7
7
|
displayName: string;
|
|
8
8
|
};
|
|
9
9
|
//#endregion
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BaseWidgetProps, WithBaseWidgetOptions } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime15 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/hocs/withBaseWidget/withBaseWidget.d.ts
|
|
5
5
|
declare function withBaseWidget<P extends BaseWidgetProps>(Widget: React.ComponentType<P>, options?: WithBaseWidgetOptions): {
|
|
6
|
-
(props: P):
|
|
6
|
+
(props: P): react_jsx_runtime15.JSX.Element;
|
|
7
7
|
displayName: string;
|
|
8
8
|
};
|
|
9
9
|
//#endregion
|
|
@@ -53,9 +53,9 @@ var require_CustomerServiceApi = /* @__PURE__ */ require_rolldown_runtime.__comm
|
|
|
53
53
|
*/
|
|
54
54
|
var CustomerServiceApi = class extends runtime.BaseAPI {
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
56
|
+
* Add a note to the latest conversation for a customer
|
|
57
57
|
*/
|
|
58
|
-
|
|
58
|
+
v1CustserviceAddNoteToLatestConversationPostRaw(requestParameters, initOverrides) {
|
|
59
59
|
return __awaiter(this, void 0, void 0, function* () {
|
|
60
60
|
const queryParameters = {};
|
|
61
61
|
const headerParameters = {};
|
|
@@ -65,22 +65,13 @@ var require_CustomerServiceApi = /* @__PURE__ */ require_rolldown_runtime.__comm
|
|
|
65
65
|
const tokenString = yield token("bearer", []);
|
|
66
66
|
if (tokenString) headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
67
67
|
}
|
|
68
|
-
|
|
68
|
+
const response = yield this.request({
|
|
69
69
|
path: `/v1/custservice/add_note_to_latest_conversation`,
|
|
70
70
|
method: "POST",
|
|
71
71
|
headers: headerParameters,
|
|
72
72
|
query: queryParameters,
|
|
73
73
|
body: (0, index_1.AddNoteToLatestConversationRequestToJSON)(requestParameters["AddNoteToLatestConversationRequest"])
|
|
74
|
-
};
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Add a note to the latest conversation for a customer
|
|
79
|
-
*/
|
|
80
|
-
v1CustserviceAddNoteToLatestConversationPostRaw(requestParameters, initOverrides) {
|
|
81
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
82
|
-
const requestOptions = yield this.v1CustserviceAddNoteToLatestConversationPostRequestOpts(requestParameters);
|
|
83
|
-
const response = yield this.request(requestOptions, initOverrides);
|
|
74
|
+
}, initOverrides);
|
|
84
75
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AddNoteToLatestConversationResponseFromJSON)(jsonValue));
|
|
85
76
|
});
|
|
86
77
|
}
|
|
@@ -93,9 +84,9 @@ var require_CustomerServiceApi = /* @__PURE__ */ require_rolldown_runtime.__comm
|
|
|
93
84
|
});
|
|
94
85
|
}
|
|
95
86
|
/**
|
|
96
|
-
*
|
|
87
|
+
* Create a new conversation for a customer
|
|
97
88
|
*/
|
|
98
|
-
|
|
89
|
+
v1CustserviceCreateConversationPostRaw(requestParameters, initOverrides) {
|
|
99
90
|
return __awaiter(this, void 0, void 0, function* () {
|
|
100
91
|
const queryParameters = {};
|
|
101
92
|
const headerParameters = {};
|
|
@@ -105,22 +96,13 @@ var require_CustomerServiceApi = /* @__PURE__ */ require_rolldown_runtime.__comm
|
|
|
105
96
|
const tokenString = yield token("bearer", []);
|
|
106
97
|
if (tokenString) headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
107
98
|
}
|
|
108
|
-
|
|
99
|
+
const response = yield this.request({
|
|
109
100
|
path: `/v1/custservice/create_conversation`,
|
|
110
101
|
method: "POST",
|
|
111
102
|
headers: headerParameters,
|
|
112
103
|
query: queryParameters,
|
|
113
104
|
body: (0, index_1.CreateConversationRequestToJSON)(requestParameters["CreateConversationRequest"])
|
|
114
|
-
};
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* Create a new conversation for a customer
|
|
119
|
-
*/
|
|
120
|
-
v1CustserviceCreateConversationPostRaw(requestParameters, initOverrides) {
|
|
121
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
122
|
-
const requestOptions = yield this.v1CustserviceCreateConversationPostRequestOpts(requestParameters);
|
|
123
|
-
const response = yield this.request(requestOptions, initOverrides);
|
|
105
|
+
}, initOverrides);
|
|
124
106
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreateConversationResponseFromJSON)(jsonValue));
|
|
125
107
|
});
|
|
126
108
|
}
|
|
@@ -133,9 +115,9 @@ var require_CustomerServiceApi = /* @__PURE__ */ require_rolldown_runtime.__comm
|
|
|
133
115
|
});
|
|
134
116
|
}
|
|
135
117
|
/**
|
|
136
|
-
*
|
|
118
|
+
* Get messages from a conversation
|
|
137
119
|
*/
|
|
138
|
-
|
|
120
|
+
v1CustserviceGetConversationMessagesPostRaw(requestParameters, initOverrides) {
|
|
139
121
|
return __awaiter(this, void 0, void 0, function* () {
|
|
140
122
|
const queryParameters = {};
|
|
141
123
|
const headerParameters = {};
|
|
@@ -145,22 +127,13 @@ var require_CustomerServiceApi = /* @__PURE__ */ require_rolldown_runtime.__comm
|
|
|
145
127
|
const tokenString = yield token("bearer", []);
|
|
146
128
|
if (tokenString) headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
147
129
|
}
|
|
148
|
-
|
|
130
|
+
const response = yield this.request({
|
|
149
131
|
path: `/v1/custservice/get_conversation_messages`,
|
|
150
132
|
method: "POST",
|
|
151
133
|
headers: headerParameters,
|
|
152
134
|
query: queryParameters,
|
|
153
135
|
body: (0, index_1.GetConversationMessagesRequestToJSON)(requestParameters["GetConversationMessagesRequest"])
|
|
154
|
-
};
|
|
155
|
-
});
|
|
156
|
-
}
|
|
157
|
-
/**
|
|
158
|
-
* Get messages from a conversation
|
|
159
|
-
*/
|
|
160
|
-
v1CustserviceGetConversationMessagesPostRaw(requestParameters, initOverrides) {
|
|
161
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
162
|
-
const requestOptions = yield this.v1CustserviceGetConversationMessagesPostRequestOpts(requestParameters);
|
|
163
|
-
const response = yield this.request(requestOptions, initOverrides);
|
|
136
|
+
}, initOverrides);
|
|
164
137
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CustServiceConversationMessagesFromJSON)(jsonValue));
|
|
165
138
|
});
|
|
166
139
|
}
|
|
@@ -173,9 +146,9 @@ var require_CustomerServiceApi = /* @__PURE__ */ require_rolldown_runtime.__comm
|
|
|
173
146
|
});
|
|
174
147
|
}
|
|
175
148
|
/**
|
|
176
|
-
*
|
|
149
|
+
* Check if it is currently business hours
|
|
177
150
|
*/
|
|
178
|
-
|
|
151
|
+
v1CustserviceIsBusinessHoursPostRaw(requestParameters, initOverrides) {
|
|
179
152
|
return __awaiter(this, void 0, void 0, function* () {
|
|
180
153
|
const queryParameters = {};
|
|
181
154
|
const headerParameters = {};
|
|
@@ -185,22 +158,13 @@ var require_CustomerServiceApi = /* @__PURE__ */ require_rolldown_runtime.__comm
|
|
|
185
158
|
const tokenString = yield token("bearer", []);
|
|
186
159
|
if (tokenString) headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
187
160
|
}
|
|
188
|
-
|
|
161
|
+
const response = yield this.request({
|
|
189
162
|
path: `/v1/custservice/is_business_hours`,
|
|
190
163
|
method: "POST",
|
|
191
164
|
headers: headerParameters,
|
|
192
165
|
query: queryParameters,
|
|
193
166
|
body: (0, index_1.IsBusinessHoursRequestToJSON)(requestParameters["IsBusinessHoursRequest"])
|
|
194
|
-
};
|
|
195
|
-
});
|
|
196
|
-
}
|
|
197
|
-
/**
|
|
198
|
-
* Check if it is currently business hours
|
|
199
|
-
*/
|
|
200
|
-
v1CustserviceIsBusinessHoursPostRaw(requestParameters, initOverrides) {
|
|
201
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
202
|
-
const requestOptions = yield this.v1CustserviceIsBusinessHoursPostRequestOpts(requestParameters);
|
|
203
|
-
const response = yield this.request(requestOptions, initOverrides);
|
|
167
|
+
}, initOverrides);
|
|
204
168
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.IsBusinessHoursResponseFromJSON)(jsonValue));
|
|
205
169
|
});
|
|
206
170
|
}
|
|
@@ -213,9 +177,9 @@ var require_CustomerServiceApi = /* @__PURE__ */ require_rolldown_runtime.__comm
|
|
|
213
177
|
});
|
|
214
178
|
}
|
|
215
179
|
/**
|
|
216
|
-
*
|
|
180
|
+
* Send a message in an existing conversation
|
|
217
181
|
*/
|
|
218
|
-
|
|
182
|
+
v1CustserviceSendMessagePostRaw(requestParameters, initOverrides) {
|
|
219
183
|
return __awaiter(this, void 0, void 0, function* () {
|
|
220
184
|
const queryParameters = {};
|
|
221
185
|
const headerParameters = {};
|
|
@@ -225,22 +189,13 @@ var require_CustomerServiceApi = /* @__PURE__ */ require_rolldown_runtime.__comm
|
|
|
225
189
|
const tokenString = yield token("bearer", []);
|
|
226
190
|
if (tokenString) headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
227
191
|
}
|
|
228
|
-
|
|
192
|
+
const response = yield this.request({
|
|
229
193
|
path: `/v1/custservice/send_message`,
|
|
230
194
|
method: "POST",
|
|
231
195
|
headers: headerParameters,
|
|
232
196
|
query: queryParameters,
|
|
233
197
|
body: (0, index_1.SendMessageRequestToJSON)(requestParameters["SendMessageRequest"])
|
|
234
|
-
};
|
|
235
|
-
});
|
|
236
|
-
}
|
|
237
|
-
/**
|
|
238
|
-
* Send a message in an existing conversation
|
|
239
|
-
*/
|
|
240
|
-
v1CustserviceSendMessagePostRaw(requestParameters, initOverrides) {
|
|
241
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
242
|
-
const requestOptions = yield this.v1CustserviceSendMessagePostRequestOpts(requestParameters);
|
|
243
|
-
const response = yield this.request(requestOptions, initOverrides);
|
|
198
|
+
}, initOverrides);
|
|
244
199
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SendMessageResponseFromJSON)(jsonValue));
|
|
245
200
|
});
|
|
246
201
|
}
|