ch-chat-api-typescript-axios 5.87.10 → 5.87.12
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/index.cjs +2262 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +5086 -3
- package/dist/index.d.ts.map +1 -0
- package/dist/index.mjs +2209 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +16 -4
- package/dist/api/dashboard-api.d.ts +0 -351
- package/dist/api/dashboard-api.js +0 -432
- package/dist/api/dashboard-api.js.map +0 -1
- package/dist/api/migrations-api.d.ts +0 -65
- package/dist/api/migrations-api.js +0 -131
- package/dist/api/migrations-api.js.map +0 -1
- package/dist/api/notifications-api.d.ts +0 -204
- package/dist/api/notifications-api.js +0 -296
- package/dist/api/notifications-api.js.map +0 -1
- package/dist/api/sessions-api.d.ts +0 -1523
- package/dist/api/sessions-api.js +0 -1832
- package/dist/api/sessions-api.js.map +0 -1
- package/dist/api/whats-apps-api.d.ts +0 -87
- package/dist/api/whats-apps-api.js +0 -141
- package/dist/api/whats-apps-api.js.map +0 -1
- package/dist/api.d.ts +0 -16
- package/dist/api.js +0 -35
- package/dist/api.js.map +0 -1
- package/dist/base.d.ts +0 -66
- package/dist/base.js +0 -69
- package/dist/base.js.map +0 -1
- package/dist/common.d.ts +0 -65
- package/dist/common.js +0 -162
- package/dist/common.js.map +0 -1
- package/dist/configuration.d.ts +0 -91
- package/dist/configuration.js +0 -44
- package/dist/configuration.js.map +0 -1
- package/dist/index.js +0 -33
- package/dist/index.js.map +0 -1
- package/dist/models/api-v1-chat-dashboard-sessions-counts-get401-response-errors.d.ts +0 -24
- package/dist/models/api-v1-chat-dashboard-sessions-counts-get401-response-errors.js +0 -16
- package/dist/models/api-v1-chat-dashboard-sessions-counts-get401-response-errors.js.map +0 -1
- package/dist/models/api-v1-chat-dashboard-sessions-counts-get401-response.d.ts +0 -49
- package/dist/models/api-v1-chat-dashboard-sessions-counts-get401-response.js +0 -16
- package/dist/models/api-v1-chat-dashboard-sessions-counts-get401-response.js.map +0 -1
- package/dist/models/assignee-model.d.ts +0 -30
- package/dist/models/assignee-model.js +0 -16
- package/dist/models/assignee-model.js.map +0 -1
- package/dist/models/author-roles.d.ts +0 -23
- package/dist/models/author-roles.js +0 -28
- package/dist/models/author-roles.js.map +0 -1
- package/dist/models/chat-consult-status-result-model.d.ts +0 -30
- package/dist/models/chat-consult-status-result-model.js +0 -16
- package/dist/models/chat-consult-status-result-model.js.map +0 -1
- package/dist/models/chat-message.d.ts +0 -107
- package/dist/models/chat-message.js +0 -16
- package/dist/models/chat-message.js.map +0 -1
- package/dist/models/chat-messages-model.d.ts +0 -32
- package/dist/models/chat-messages-model.js +0 -16
- package/dist/models/chat-messages-model.js.map +0 -1
- package/dist/models/chat-notification.d.ts +0 -99
- package/dist/models/chat-notification.js +0 -16
- package/dist/models/chat-notification.js.map +0 -1
- package/dist/models/chat-notifications.d.ts +0 -38
- package/dist/models/chat-notifications.js +0 -16
- package/dist/models/chat-notifications.js.map +0 -1
- package/dist/models/chat-participant.d.ts +0 -74
- package/dist/models/chat-participant.js +0 -16
- package/dist/models/chat-participant.js.map +0 -1
- package/dist/models/chat-send-flow-message-command.d.ts +0 -77
- package/dist/models/chat-send-flow-message-command.js +0 -16
- package/dist/models/chat-send-flow-message-command.js.map +0 -1
- package/dist/models/chat-send-marketing-template-message-command.d.ts +0 -67
- package/dist/models/chat-send-marketing-template-message-command.js +0 -16
- package/dist/models/chat-send-marketing-template-message-command.js.map +0 -1
- package/dist/models/chat-send-template-message-command.d.ts +0 -44
- package/dist/models/chat-send-template-message-command.js +0 -16
- package/dist/models/chat-send-template-message-command.js.map +0 -1
- package/dist/models/chat-session-consult-status-command.d.ts +0 -25
- package/dist/models/chat-session-consult-status-command.js +0 -16
- package/dist/models/chat-session-consult-status-command.js.map +0 -1
- package/dist/models/chat-session-model.d.ts +0 -186
- package/dist/models/chat-session-model.js +0 -16
- package/dist/models/chat-session-model.js.map +0 -1
- package/dist/models/chat-session-status.d.ts +0 -23
- package/dist/models/chat-session-status.js +0 -28
- package/dist/models/chat-session-status.js.map +0 -1
- package/dist/models/chat-sessions-model.d.ts +0 -32
- package/dist/models/chat-sessions-model.js +0 -16
- package/dist/models/chat-sessions-model.js.map +0 -1
- package/dist/models/check-chat-notifications-command.d.ts +0 -30
- package/dist/models/check-chat-notifications-command.js +0 -16
- package/dist/models/check-chat-notifications-command.js.map +0 -1
- package/dist/models/consult-status.d.ts +0 -21
- package/dist/models/consult-status.js +0 -26
- package/dist/models/consult-status.js.map +0 -1
- package/dist/models/create-chat-session-command.d.ts +0 -63
- package/dist/models/create-chat-session-command.js +0 -16
- package/dist/models/create-chat-session-command.js.map +0 -1
- package/dist/models/create-intake-form-command.d.ts +0 -25
- package/dist/models/create-intake-form-command.js +0 -16
- package/dist/models/create-intake-form-command.js.map +0 -1
- package/dist/models/dashboard-recent-sessions-model.d.ts +0 -32
- package/dist/models/dashboard-recent-sessions-model.js +0 -16
- package/dist/models/dashboard-recent-sessions-model.js.map +0 -1
- package/dist/models/dashboard-session-countries-detail-statistics-model.d.ts +0 -42
- package/dist/models/dashboard-session-countries-detail-statistics-model.js +0 -16
- package/dist/models/dashboard-session-countries-detail-statistics-model.js.map +0 -1
- package/dist/models/dashboard-session-countries-statistics-model.d.ts +0 -44
- package/dist/models/dashboard-session-countries-statistics-model.js +0 -16
- package/dist/models/dashboard-session-countries-statistics-model.js.map +0 -1
- package/dist/models/dashboard-session-hospitals-detail-statistics-model.d.ts +0 -36
- package/dist/models/dashboard-session-hospitals-detail-statistics-model.js +0 -16
- package/dist/models/dashboard-session-hospitals-detail-statistics-model.js.map +0 -1
- package/dist/models/dashboard-session-hospitals-statistics-model.d.ts +0 -32
- package/dist/models/dashboard-session-hospitals-statistics-model.js +0 -16
- package/dist/models/dashboard-session-hospitals-statistics-model.js.map +0 -1
- package/dist/models/dashboard-session-trends-duration-statistics-model.d.ts +0 -30
- package/dist/models/dashboard-session-trends-duration-statistics-model.js +0 -16
- package/dist/models/dashboard-session-trends-duration-statistics-model.js.map +0 -1
- package/dist/models/dashboard-session-trends-statistics-model.d.ts +0 -49
- package/dist/models/dashboard-session-trends-statistics-model.js +0 -16
- package/dist/models/dashboard-session-trends-statistics-model.js.map +0 -1
- package/dist/models/dynamic-template-message.d.ts +0 -31
- package/dist/models/dynamic-template-message.js +0 -16
- package/dist/models/dynamic-template-message.js.map +0 -1
- package/dist/models/index.d.ts +0 -65
- package/dist/models/index.js +0 -82
- package/dist/models/index.js.map +0 -1
- package/dist/models/intake-form-item.d.ts +0 -42
- package/dist/models/intake-form-item.js +0 -16
- package/dist/models/intake-form-item.js.map +0 -1
- package/dist/models/intake-form.d.ts +0 -79
- package/dist/models/intake-form.js +0 -16
- package/dist/models/intake-form.js.map +0 -1
- package/dist/models/intake-forms-model.d.ts +0 -32
- package/dist/models/intake-forms-model.js +0 -16
- package/dist/models/intake-forms-model.js.map +0 -1
- package/dist/models/interactive-body.d.ts +0 -24
- package/dist/models/interactive-body.js +0 -16
- package/dist/models/interactive-body.js.map +0 -1
- package/dist/models/interactive-footer.d.ts +0 -24
- package/dist/models/interactive-footer.js +0 -16
- package/dist/models/interactive-footer.js.map +0 -1
- package/dist/models/interactive-header.d.ts +0 -30
- package/dist/models/interactive-header.js +0 -16
- package/dist/models/interactive-header.js.map +0 -1
- package/dist/models/interactive-list-message-request.d.ts +0 -70
- package/dist/models/interactive-list-message-request.js +0 -16
- package/dist/models/interactive-list-message-request.js.map +0 -1
- package/dist/models/interactive-list-row.d.ts +0 -36
- package/dist/models/interactive-list-row.js +0 -16
- package/dist/models/interactive-list-row.js.map +0 -1
- package/dist/models/interactive-list-section.d.ts +0 -31
- package/dist/models/interactive-list-section.js +0 -16
- package/dist/models/interactive-list-section.js.map +0 -1
- package/dist/models/join-chat-session-command.d.ts +0 -31
- package/dist/models/join-chat-session-command.js +0 -16
- package/dist/models/join-chat-session-command.js.map +0 -1
- package/dist/models/media-model.d.ts +0 -60
- package/dist/models/media-model.js +0 -16
- package/dist/models/media-model.js.map +0 -1
- package/dist/models/message-template-button.d.ts +0 -54
- package/dist/models/message-template-button.js +0 -16
- package/dist/models/message-template-button.js.map +0 -1
- package/dist/models/message-type.d.ts +0 -30
- package/dist/models/message-type.js +0 -35
- package/dist/models/message-type.js.map +0 -1
- package/dist/models/notification-code.d.ts +0 -70
- package/dist/models/notification-code.js +0 -75
- package/dist/models/notification-code.js.map +0 -1
- package/dist/models/paged-list-meta-data.d.ts +0 -78
- package/dist/models/paged-list-meta-data.js +0 -16
- package/dist/models/paged-list-meta-data.js.map +0 -1
- package/dist/models/patch-intake-form-command.d.ts +0 -25
- package/dist/models/patch-intake-form-command.js +0 -16
- package/dist/models/patch-intake-form-command.js.map +0 -1
- package/dist/models/platform-metadata.d.ts +0 -25
- package/dist/models/platform-metadata.js +0 -16
- package/dist/models/platform-metadata.js.map +0 -1
- package/dist/models/platform-types.d.ts +0 -21
- package/dist/models/platform-types.js +0 -26
- package/dist/models/platform-types.js.map +0 -1
- package/dist/models/put-chat-session-command.d.ts +0 -30
- package/dist/models/put-chat-session-command.js +0 -16
- package/dist/models/put-chat-session-command.js.map +0 -1
- package/dist/models/recent-session-detail-model.d.ts +0 -80
- package/dist/models/recent-session-detail-model.js +0 -16
- package/dist/models/recent-session-detail-model.js.map +0 -1
- package/dist/models/request-create-intake-form-item-model.d.ts +0 -30
- package/dist/models/request-create-intake-form-item-model.js +0 -16
- package/dist/models/request-create-intake-form-item-model.js.map +0 -1
- package/dist/models/request-patch-inake-form-item-model.d.ts +0 -36
- package/dist/models/request-patch-inake-form-item-model.js +0 -16
- package/dist/models/request-patch-inake-form-item-model.js.map +0 -1
- package/dist/models/sort-by.d.ts +0 -21
- package/dist/models/sort-by.js +0 -26
- package/dist/models/sort-by.js.map +0 -1
- package/dist/models/template-action-parameter.d.ts +0 -24
- package/dist/models/template-action-parameter.js +0 -16
- package/dist/models/template-action-parameter.js.map +0 -1
- package/dist/models/template-component-parameter.d.ts +0 -76
- package/dist/models/template-component-parameter.js +0 -16
- package/dist/models/template-component-parameter.js.map +0 -1
- package/dist/models/template-component.d.ts +0 -43
- package/dist/models/template-component.js +0 -16
- package/dist/models/template-component.js.map +0 -1
- package/dist/models/template-currency-parameter.d.ts +0 -36
- package/dist/models/template-currency-parameter.js +0 -16
- package/dist/models/template-currency-parameter.js.map +0 -1
- package/dist/models/template-date-time-parameter.d.ts +0 -66
- package/dist/models/template-date-time-parameter.js +0 -16
- package/dist/models/template-date-time-parameter.js.map +0 -1
- package/dist/models/template-media-parameter.d.ts +0 -30
- package/dist/models/template-media-parameter.js +0 -16
- package/dist/models/template-media-parameter.js.map +0 -1
- package/dist/models/template-message-model.d.ts +0 -44
- package/dist/models/template-message-model.js +0 -16
- package/dist/models/template-message-model.js.map +0 -1
- package/dist/models/template-message-request.d.ts +0 -55
- package/dist/models/template-message-request.js +0 -16
- package/dist/models/template-message-request.js.map +0 -1
- package/dist/models/timeframe-duration.d.ts +0 -25
- package/dist/models/timeframe-duration.js +0 -30
- package/dist/models/timeframe-duration.js.map +0 -1
- package/dist/models/transfer-manager-command.d.ts +0 -36
- package/dist/models/transfer-manager-command.js +0 -16
- package/dist/models/transfer-manager-command.js.map +0 -1
- package/dist/models/whats-app-component.d.ts +0 -50
- package/dist/models/whats-app-component.js +0 -16
- package/dist/models/whats-app-component.js.map +0 -1
- package/dist/models/whats-app-language-code.d.ts +0 -130
- package/dist/models/whats-app-language-code.js +0 -135
- package/dist/models/whats-app-language-code.js.map +0 -1
- package/dist/models/whats-app-metadata.d.ts +0 -42
- package/dist/models/whats-app-metadata.js +0 -16
- package/dist/models/whats-app-metadata.js.map +0 -1
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,2209 @@
|
|
|
1
|
+
import globalAxios from "axios";
|
|
2
|
+
|
|
3
|
+
//#region src/base.ts
|
|
4
|
+
const BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
* @export
|
|
8
|
+
* @class BaseAPI
|
|
9
|
+
*/
|
|
10
|
+
var BaseAPI = class {
|
|
11
|
+
constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
|
|
12
|
+
this.basePath = basePath;
|
|
13
|
+
this.axios = axios;
|
|
14
|
+
this.configuration = void 0;
|
|
15
|
+
if (configuration) {
|
|
16
|
+
var _configuration$basePa;
|
|
17
|
+
this.configuration = configuration;
|
|
18
|
+
this.basePath = (_configuration$basePa = configuration.basePath) !== null && _configuration$basePa !== void 0 ? _configuration$basePa : basePath;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
* @class RequiredError
|
|
26
|
+
* @extends {Error}
|
|
27
|
+
*/
|
|
28
|
+
var RequiredError = class extends Error {
|
|
29
|
+
constructor(field, msg) {
|
|
30
|
+
super(msg);
|
|
31
|
+
this.field = field;
|
|
32
|
+
this.name = "RequiredError";
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @export
|
|
38
|
+
*/
|
|
39
|
+
const operationServerMap = {};
|
|
40
|
+
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region src/common.ts
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @export
|
|
46
|
+
*/
|
|
47
|
+
const DUMMY_BASE_URL = "https://example.com";
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @throws {RequiredError}
|
|
51
|
+
* @export
|
|
52
|
+
*/
|
|
53
|
+
const assertParamExists = function(functionName, paramName, paramValue) {
|
|
54
|
+
if (paramValue === null || paramValue === void 0) throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @export
|
|
59
|
+
*/
|
|
60
|
+
const setOAuthToObject = async function(object, name, scopes, configuration) {
|
|
61
|
+
if (configuration && configuration.accessToken) {
|
|
62
|
+
const localVarAccessTokenValue = typeof configuration.accessToken === "function" ? await configuration.accessToken(name, scopes) : await configuration.accessToken;
|
|
63
|
+
object["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
67
|
+
if (parameter == null) return;
|
|
68
|
+
if (typeof parameter === "object") if (Array.isArray(parameter)) parameter.forEach((item) => setFlattenedQueryParams(urlSearchParams, item, key));
|
|
69
|
+
else Object.keys(parameter).forEach((currentKey) => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== "" ? "." : ""}${currentKey}`));
|
|
70
|
+
else if (urlSearchParams.has(key)) urlSearchParams.append(key, parameter);
|
|
71
|
+
else urlSearchParams.set(key, parameter);
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @export
|
|
76
|
+
*/
|
|
77
|
+
const setSearchParams = function(url, ...objects) {
|
|
78
|
+
const searchParams = new URLSearchParams(url.search);
|
|
79
|
+
setFlattenedQueryParams(searchParams, objects);
|
|
80
|
+
url.search = searchParams.toString();
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @export
|
|
85
|
+
*/
|
|
86
|
+
const serializeDataIfNeeded = function(value, requestOptions, configuration) {
|
|
87
|
+
const nonString = typeof value !== "string";
|
|
88
|
+
const needsSerialization = nonString && configuration && configuration.isJsonMime ? configuration.isJsonMime(requestOptions.headers["Content-Type"]) : nonString;
|
|
89
|
+
return needsSerialization ? JSON.stringify(value !== void 0 ? value : {}) : value || "";
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @export
|
|
94
|
+
*/
|
|
95
|
+
const toPathString = function(url) {
|
|
96
|
+
return url.pathname + url.search + url.hash;
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @export
|
|
101
|
+
*/
|
|
102
|
+
const createRequestFunction = function(axiosArgs, globalAxios$1, BASE_PATH$1, configuration) {
|
|
103
|
+
return (axios = globalAxios$1, basePath = BASE_PATH$1) => {
|
|
104
|
+
var _configuration$basePa;
|
|
105
|
+
const axiosRequestArgs = {
|
|
106
|
+
...axiosArgs.options,
|
|
107
|
+
url: (axios.defaults.baseURL ? "" : (_configuration$basePa = configuration === null || configuration === void 0 ? void 0 : configuration.basePath) !== null && _configuration$basePa !== void 0 ? _configuration$basePa : basePath) + axiosArgs.url
|
|
108
|
+
};
|
|
109
|
+
return axios.request(axiosRequestArgs);
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
//#endregion
|
|
114
|
+
//#region src/api/dashboard-api.ts
|
|
115
|
+
/**
|
|
116
|
+
* DashboardApi - axios parameter creator
|
|
117
|
+
* @export
|
|
118
|
+
*/
|
|
119
|
+
const DashboardApiAxiosParamCreator = function(configuration) {
|
|
120
|
+
return {
|
|
121
|
+
apiV1ChatDashboardSessionsCountriesGet: async (tenantId, sortBy, page, limit, lastRetrieved, options = {}) => {
|
|
122
|
+
const localVarPath = `/api/v1/chat/dashboard/sessions/countries`;
|
|
123
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
124
|
+
let baseOptions;
|
|
125
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
126
|
+
const localVarRequestOptions = {
|
|
127
|
+
method: "GET",
|
|
128
|
+
...baseOptions,
|
|
129
|
+
...options
|
|
130
|
+
};
|
|
131
|
+
const localVarHeaderParameter = {};
|
|
132
|
+
const localVarQueryParameter = {};
|
|
133
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
134
|
+
if (tenantId !== void 0) localVarQueryParameter["TenantId"] = tenantId;
|
|
135
|
+
if (sortBy !== void 0) localVarQueryParameter["SortBy"] = sortBy;
|
|
136
|
+
if (page !== void 0) localVarQueryParameter["page"] = page;
|
|
137
|
+
if (limit !== void 0) localVarQueryParameter["limit"] = limit;
|
|
138
|
+
if (lastRetrieved !== void 0) localVarQueryParameter["lastRetrieved"] = lastRetrieved instanceof Date ? lastRetrieved.toISOString() : lastRetrieved;
|
|
139
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
140
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
141
|
+
localVarRequestOptions.headers = {
|
|
142
|
+
...localVarHeaderParameter,
|
|
143
|
+
...headersFromBaseOptions,
|
|
144
|
+
...options.headers
|
|
145
|
+
};
|
|
146
|
+
return {
|
|
147
|
+
url: toPathString(localVarUrlObj),
|
|
148
|
+
options: localVarRequestOptions
|
|
149
|
+
};
|
|
150
|
+
},
|
|
151
|
+
apiV1ChatDashboardSessionsCountsGet: async (duration, tenantId, options = {}) => {
|
|
152
|
+
assertParamExists("apiV1ChatDashboardSessionsCountsGet", "duration", duration);
|
|
153
|
+
const localVarPath = `/api/v1/chat/dashboard/sessions/counts`;
|
|
154
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
155
|
+
let baseOptions;
|
|
156
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
157
|
+
const localVarRequestOptions = {
|
|
158
|
+
method: "GET",
|
|
159
|
+
...baseOptions,
|
|
160
|
+
...options
|
|
161
|
+
};
|
|
162
|
+
const localVarHeaderParameter = {};
|
|
163
|
+
const localVarQueryParameter = {};
|
|
164
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
165
|
+
if (duration !== void 0) localVarQueryParameter["Duration"] = duration;
|
|
166
|
+
if (tenantId !== void 0) localVarQueryParameter["TenantId"] = tenantId;
|
|
167
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
168
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
169
|
+
localVarRequestOptions.headers = {
|
|
170
|
+
...localVarHeaderParameter,
|
|
171
|
+
...headersFromBaseOptions,
|
|
172
|
+
...options.headers
|
|
173
|
+
};
|
|
174
|
+
return {
|
|
175
|
+
url: toPathString(localVarUrlObj),
|
|
176
|
+
options: localVarRequestOptions
|
|
177
|
+
};
|
|
178
|
+
},
|
|
179
|
+
apiV1ChatDashboardSessionsHospitalsAggregateGet: async (tenantId, hospitalName, sortBy, page, limit, lastRetrieved, options = {}) => {
|
|
180
|
+
const localVarPath = `/api/v1/chat/dashboard/sessions/hospitals/aggregate`;
|
|
181
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
182
|
+
let baseOptions;
|
|
183
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
184
|
+
const localVarRequestOptions = {
|
|
185
|
+
method: "GET",
|
|
186
|
+
...baseOptions,
|
|
187
|
+
...options
|
|
188
|
+
};
|
|
189
|
+
const localVarHeaderParameter = {};
|
|
190
|
+
const localVarQueryParameter = {};
|
|
191
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
192
|
+
if (tenantId !== void 0) localVarQueryParameter["TenantId"] = tenantId;
|
|
193
|
+
if (hospitalName !== void 0) localVarQueryParameter["HospitalName"] = hospitalName;
|
|
194
|
+
if (sortBy !== void 0) localVarQueryParameter["SortBy"] = sortBy;
|
|
195
|
+
if (page !== void 0) localVarQueryParameter["page"] = page;
|
|
196
|
+
if (limit !== void 0) localVarQueryParameter["limit"] = limit;
|
|
197
|
+
if (lastRetrieved !== void 0) localVarQueryParameter["lastRetrieved"] = lastRetrieved instanceof Date ? lastRetrieved.toISOString() : lastRetrieved;
|
|
198
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
199
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
200
|
+
localVarRequestOptions.headers = {
|
|
201
|
+
...localVarHeaderParameter,
|
|
202
|
+
...headersFromBaseOptions,
|
|
203
|
+
...options.headers
|
|
204
|
+
};
|
|
205
|
+
return {
|
|
206
|
+
url: toPathString(localVarUrlObj),
|
|
207
|
+
options: localVarRequestOptions
|
|
208
|
+
};
|
|
209
|
+
},
|
|
210
|
+
apiV1ChatDashboardSessionsRecentGet: async (tenantId, assigneeId, platformType, page, limit, lastRetrieved, options = {}) => {
|
|
211
|
+
const localVarPath = `/api/v1/chat/dashboard/sessions/recent`;
|
|
212
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
213
|
+
let baseOptions;
|
|
214
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
215
|
+
const localVarRequestOptions = {
|
|
216
|
+
method: "GET",
|
|
217
|
+
...baseOptions,
|
|
218
|
+
...options
|
|
219
|
+
};
|
|
220
|
+
const localVarHeaderParameter = {};
|
|
221
|
+
const localVarQueryParameter = {};
|
|
222
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
223
|
+
if (tenantId !== void 0) localVarQueryParameter["TenantId"] = tenantId;
|
|
224
|
+
if (assigneeId !== void 0) localVarQueryParameter["AssigneeId"] = assigneeId;
|
|
225
|
+
if (platformType !== void 0) localVarQueryParameter["PlatformType"] = platformType;
|
|
226
|
+
if (page !== void 0) localVarQueryParameter["page"] = page;
|
|
227
|
+
if (limit !== void 0) localVarQueryParameter["limit"] = limit;
|
|
228
|
+
if (lastRetrieved !== void 0) localVarQueryParameter["lastRetrieved"] = lastRetrieved instanceof Date ? lastRetrieved.toISOString() : lastRetrieved;
|
|
229
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
230
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
231
|
+
localVarRequestOptions.headers = {
|
|
232
|
+
...localVarHeaderParameter,
|
|
233
|
+
...headersFromBaseOptions,
|
|
234
|
+
...options.headers
|
|
235
|
+
};
|
|
236
|
+
return {
|
|
237
|
+
url: toPathString(localVarUrlObj),
|
|
238
|
+
options: localVarRequestOptions
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
/**
|
|
244
|
+
* DashboardApi - functional programming interface
|
|
245
|
+
* @export
|
|
246
|
+
*/
|
|
247
|
+
const DashboardApiFp = function(configuration) {
|
|
248
|
+
const localVarAxiosParamCreator = DashboardApiAxiosParamCreator(configuration);
|
|
249
|
+
return {
|
|
250
|
+
async apiV1ChatDashboardSessionsCountriesGet(tenantId, sortBy, page, limit, lastRetrieved, options) {
|
|
251
|
+
var _configuration$server, _operationServerMap$D;
|
|
252
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatDashboardSessionsCountriesGet(tenantId, sortBy, page, limit, lastRetrieved, options);
|
|
253
|
+
const localVarOperationServerIndex = (_configuration$server = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _configuration$server !== void 0 ? _configuration$server : 0;
|
|
254
|
+
const localVarOperationServerBasePath = (_operationServerMap$D = operationServerMap["DashboardApi.apiV1ChatDashboardSessionsCountriesGet"]) === null || _operationServerMap$D === void 0 || (_operationServerMap$D = _operationServerMap$D[localVarOperationServerIndex]) === null || _operationServerMap$D === void 0 ? void 0 : _operationServerMap$D.url;
|
|
255
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
256
|
+
},
|
|
257
|
+
async apiV1ChatDashboardSessionsCountsGet(duration, tenantId, options) {
|
|
258
|
+
var _configuration$server2, _operationServerMap$D2;
|
|
259
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatDashboardSessionsCountsGet(duration, tenantId, options);
|
|
260
|
+
const localVarOperationServerIndex = (_configuration$server2 = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _configuration$server2 !== void 0 ? _configuration$server2 : 0;
|
|
261
|
+
const localVarOperationServerBasePath = (_operationServerMap$D2 = operationServerMap["DashboardApi.apiV1ChatDashboardSessionsCountsGet"]) === null || _operationServerMap$D2 === void 0 || (_operationServerMap$D2 = _operationServerMap$D2[localVarOperationServerIndex]) === null || _operationServerMap$D2 === void 0 ? void 0 : _operationServerMap$D2.url;
|
|
262
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
263
|
+
},
|
|
264
|
+
async apiV1ChatDashboardSessionsHospitalsAggregateGet(tenantId, hospitalName, sortBy, page, limit, lastRetrieved, options) {
|
|
265
|
+
var _configuration$server3, _operationServerMap$D3;
|
|
266
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatDashboardSessionsHospitalsAggregateGet(tenantId, hospitalName, sortBy, page, limit, lastRetrieved, options);
|
|
267
|
+
const localVarOperationServerIndex = (_configuration$server3 = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _configuration$server3 !== void 0 ? _configuration$server3 : 0;
|
|
268
|
+
const localVarOperationServerBasePath = (_operationServerMap$D3 = operationServerMap["DashboardApi.apiV1ChatDashboardSessionsHospitalsAggregateGet"]) === null || _operationServerMap$D3 === void 0 || (_operationServerMap$D3 = _operationServerMap$D3[localVarOperationServerIndex]) === null || _operationServerMap$D3 === void 0 ? void 0 : _operationServerMap$D3.url;
|
|
269
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
270
|
+
},
|
|
271
|
+
async apiV1ChatDashboardSessionsRecentGet(tenantId, assigneeId, platformType, page, limit, lastRetrieved, options) {
|
|
272
|
+
var _configuration$server4, _operationServerMap$D4;
|
|
273
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatDashboardSessionsRecentGet(tenantId, assigneeId, platformType, page, limit, lastRetrieved, options);
|
|
274
|
+
const localVarOperationServerIndex = (_configuration$server4 = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _configuration$server4 !== void 0 ? _configuration$server4 : 0;
|
|
275
|
+
const localVarOperationServerBasePath = (_operationServerMap$D4 = operationServerMap["DashboardApi.apiV1ChatDashboardSessionsRecentGet"]) === null || _operationServerMap$D4 === void 0 || (_operationServerMap$D4 = _operationServerMap$D4[localVarOperationServerIndex]) === null || _operationServerMap$D4 === void 0 ? void 0 : _operationServerMap$D4.url;
|
|
276
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
277
|
+
}
|
|
278
|
+
};
|
|
279
|
+
};
|
|
280
|
+
/**
|
|
281
|
+
* DashboardApi - factory interface
|
|
282
|
+
* @export
|
|
283
|
+
*/
|
|
284
|
+
const DashboardApiFactory = function(configuration, basePath, axios) {
|
|
285
|
+
const localVarFp = DashboardApiFp(configuration);
|
|
286
|
+
return {
|
|
287
|
+
apiV1ChatDashboardSessionsCountriesGet(requestParameters = {}, options) {
|
|
288
|
+
return localVarFp.apiV1ChatDashboardSessionsCountriesGet(requestParameters.tenantId, requestParameters.sortBy, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(axios, basePath));
|
|
289
|
+
},
|
|
290
|
+
apiV1ChatDashboardSessionsCountsGet(requestParameters, options) {
|
|
291
|
+
return localVarFp.apiV1ChatDashboardSessionsCountsGet(requestParameters.duration, requestParameters.tenantId, options).then((request) => request(axios, basePath));
|
|
292
|
+
},
|
|
293
|
+
apiV1ChatDashboardSessionsHospitalsAggregateGet(requestParameters = {}, options) {
|
|
294
|
+
return localVarFp.apiV1ChatDashboardSessionsHospitalsAggregateGet(requestParameters.tenantId, requestParameters.hospitalName, requestParameters.sortBy, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(axios, basePath));
|
|
295
|
+
},
|
|
296
|
+
apiV1ChatDashboardSessionsRecentGet(requestParameters = {}, options) {
|
|
297
|
+
return localVarFp.apiV1ChatDashboardSessionsRecentGet(requestParameters.tenantId, requestParameters.assigneeId, requestParameters.platformType, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(axios, basePath));
|
|
298
|
+
}
|
|
299
|
+
};
|
|
300
|
+
};
|
|
301
|
+
/**
|
|
302
|
+
* DashboardApi - object-oriented interface
|
|
303
|
+
* @export
|
|
304
|
+
* @class DashboardApi
|
|
305
|
+
* @extends {BaseAPI}
|
|
306
|
+
*/
|
|
307
|
+
var DashboardApi = class extends BaseAPI {
|
|
308
|
+
/**
|
|
309
|
+
*
|
|
310
|
+
* @summary Shows the count of created chat sessions aggregated by the country code of the phone number.
|
|
311
|
+
* @param {DashboardApiApiV1ChatDashboardSessionsCountriesGetRequest} requestParameters Request parameters.
|
|
312
|
+
* @param {*} [options] Override http request option.
|
|
313
|
+
* @throws {RequiredError}
|
|
314
|
+
* @memberof DashboardApi
|
|
315
|
+
*/
|
|
316
|
+
apiV1ChatDashboardSessionsCountriesGet(requestParameters = {}, options) {
|
|
317
|
+
return DashboardApiFp(this.configuration).apiV1ChatDashboardSessionsCountriesGet(requestParameters.tenantId, requestParameters.sortBy, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
*
|
|
321
|
+
* @summary Retrieves the number of chat sessions created during a specified period
|
|
322
|
+
* @param {DashboardApiApiV1ChatDashboardSessionsCountsGetRequest} requestParameters Request parameters.
|
|
323
|
+
* @param {*} [options] Override http request option.
|
|
324
|
+
* @throws {RequiredError}
|
|
325
|
+
* @memberof DashboardApi
|
|
326
|
+
*/
|
|
327
|
+
apiV1ChatDashboardSessionsCountsGet(requestParameters, options) {
|
|
328
|
+
return DashboardApiFp(this.configuration).apiV1ChatDashboardSessionsCountsGet(requestParameters.duration, requestParameters.tenantId, options).then((request) => request(this.axios, this.basePath));
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
*
|
|
332
|
+
* @summary Gets the number of chat sessions created per hospital.
|
|
333
|
+
* @param {DashboardApiApiV1ChatDashboardSessionsHospitalsAggregateGetRequest} requestParameters Request parameters.
|
|
334
|
+
* @param {*} [options] Override http request option.
|
|
335
|
+
* @throws {RequiredError}
|
|
336
|
+
* @memberof DashboardApi
|
|
337
|
+
*/
|
|
338
|
+
apiV1ChatDashboardSessionsHospitalsAggregateGet(requestParameters = {}, options) {
|
|
339
|
+
return DashboardApiFp(this.configuration).apiV1ChatDashboardSessionsHospitalsAggregateGet(requestParameters.tenantId, requestParameters.hospitalName, requestParameters.sortBy, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
340
|
+
}
|
|
341
|
+
/**
|
|
342
|
+
*
|
|
343
|
+
* @summary Get recent chat session data from the past 48 hours.
|
|
344
|
+
* @param {DashboardApiApiV1ChatDashboardSessionsRecentGetRequest} requestParameters Request parameters.
|
|
345
|
+
* @param {*} [options] Override http request option.
|
|
346
|
+
* @throws {RequiredError}
|
|
347
|
+
* @memberof DashboardApi
|
|
348
|
+
*/
|
|
349
|
+
apiV1ChatDashboardSessionsRecentGet(requestParameters = {}, options) {
|
|
350
|
+
return DashboardApiFp(this.configuration).apiV1ChatDashboardSessionsRecentGet(requestParameters.tenantId, requestParameters.assigneeId, requestParameters.platformType, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
351
|
+
}
|
|
352
|
+
};
|
|
353
|
+
|
|
354
|
+
//#endregion
|
|
355
|
+
//#region src/api/migrations-api.ts
|
|
356
|
+
/**
|
|
357
|
+
* MigrationsApi - axios parameter creator
|
|
358
|
+
* @export
|
|
359
|
+
*/
|
|
360
|
+
const MigrationsApiAxiosParamCreator = function(configuration) {
|
|
361
|
+
return { apiV1ChatMigrationsPost: async (options = {}) => {
|
|
362
|
+
const localVarPath = `/api/v1/chat/migrations`;
|
|
363
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
364
|
+
let baseOptions;
|
|
365
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
366
|
+
const localVarRequestOptions = {
|
|
367
|
+
method: "POST",
|
|
368
|
+
...baseOptions,
|
|
369
|
+
...options
|
|
370
|
+
};
|
|
371
|
+
const localVarHeaderParameter = {};
|
|
372
|
+
const localVarQueryParameter = {};
|
|
373
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
374
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
375
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
376
|
+
localVarRequestOptions.headers = {
|
|
377
|
+
...localVarHeaderParameter,
|
|
378
|
+
...headersFromBaseOptions,
|
|
379
|
+
...options.headers
|
|
380
|
+
};
|
|
381
|
+
return {
|
|
382
|
+
url: toPathString(localVarUrlObj),
|
|
383
|
+
options: localVarRequestOptions
|
|
384
|
+
};
|
|
385
|
+
} };
|
|
386
|
+
};
|
|
387
|
+
/**
|
|
388
|
+
* MigrationsApi - functional programming interface
|
|
389
|
+
* @export
|
|
390
|
+
*/
|
|
391
|
+
const MigrationsApiFp = function(configuration) {
|
|
392
|
+
const localVarAxiosParamCreator = MigrationsApiAxiosParamCreator(configuration);
|
|
393
|
+
return { async apiV1ChatMigrationsPost(options) {
|
|
394
|
+
var _configuration$server, _operationServerMap$M;
|
|
395
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatMigrationsPost(options);
|
|
396
|
+
const localVarOperationServerIndex = (_configuration$server = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _configuration$server !== void 0 ? _configuration$server : 0;
|
|
397
|
+
const localVarOperationServerBasePath = (_operationServerMap$M = operationServerMap["MigrationsApi.apiV1ChatMigrationsPost"]) === null || _operationServerMap$M === void 0 || (_operationServerMap$M = _operationServerMap$M[localVarOperationServerIndex]) === null || _operationServerMap$M === void 0 ? void 0 : _operationServerMap$M.url;
|
|
398
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
399
|
+
} };
|
|
400
|
+
};
|
|
401
|
+
/**
|
|
402
|
+
* MigrationsApi - factory interface
|
|
403
|
+
* @export
|
|
404
|
+
*/
|
|
405
|
+
const MigrationsApiFactory = function(configuration, basePath, axios) {
|
|
406
|
+
const localVarFp = MigrationsApiFp(configuration);
|
|
407
|
+
return { apiV1ChatMigrationsPost(options) {
|
|
408
|
+
return localVarFp.apiV1ChatMigrationsPost(options).then((request) => request(axios, basePath));
|
|
409
|
+
} };
|
|
410
|
+
};
|
|
411
|
+
/**
|
|
412
|
+
* MigrationsApi - object-oriented interface
|
|
413
|
+
* @export
|
|
414
|
+
* @class MigrationsApi
|
|
415
|
+
* @extends {BaseAPI}
|
|
416
|
+
*/
|
|
417
|
+
var MigrationsApi = class extends BaseAPI {
|
|
418
|
+
/**
|
|
419
|
+
*
|
|
420
|
+
* @param {*} [options] Override http request option.
|
|
421
|
+
* @throws {RequiredError}
|
|
422
|
+
* @memberof MigrationsApi
|
|
423
|
+
*/
|
|
424
|
+
apiV1ChatMigrationsPost(options) {
|
|
425
|
+
return MigrationsApiFp(this.configuration).apiV1ChatMigrationsPost(options).then((request) => request(this.axios, this.basePath));
|
|
426
|
+
}
|
|
427
|
+
};
|
|
428
|
+
|
|
429
|
+
//#endregion
|
|
430
|
+
//#region src/api/notifications-api.ts
|
|
431
|
+
/**
|
|
432
|
+
* NotificationsApi - axios parameter creator
|
|
433
|
+
* @export
|
|
434
|
+
*/
|
|
435
|
+
const NotificationsApiAxiosParamCreator = function(configuration) {
|
|
436
|
+
return {
|
|
437
|
+
apiV1ChatNotificationsCheckPost: async (checkChatNotificationsCommand, options = {}) => {
|
|
438
|
+
const localVarPath = `/api/v1/chat/notifications/check`;
|
|
439
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
440
|
+
let baseOptions;
|
|
441
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
442
|
+
const localVarRequestOptions = {
|
|
443
|
+
method: "POST",
|
|
444
|
+
...baseOptions,
|
|
445
|
+
...options
|
|
446
|
+
};
|
|
447
|
+
const localVarHeaderParameter = {};
|
|
448
|
+
const localVarQueryParameter = {};
|
|
449
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
450
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
451
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
452
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
453
|
+
localVarRequestOptions.headers = {
|
|
454
|
+
...localVarHeaderParameter,
|
|
455
|
+
...headersFromBaseOptions,
|
|
456
|
+
...options.headers
|
|
457
|
+
};
|
|
458
|
+
localVarRequestOptions.data = serializeDataIfNeeded(checkChatNotificationsCommand, localVarRequestOptions, configuration);
|
|
459
|
+
return {
|
|
460
|
+
url: toPathString(localVarUrlObj),
|
|
461
|
+
options: localVarRequestOptions
|
|
462
|
+
};
|
|
463
|
+
},
|
|
464
|
+
apiV1ChatNotificationsGet: async (isRead, page, limit, lastRetrieved, options = {}) => {
|
|
465
|
+
const localVarPath = `/api/v1/chat/notifications`;
|
|
466
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
467
|
+
let baseOptions;
|
|
468
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
469
|
+
const localVarRequestOptions = {
|
|
470
|
+
method: "GET",
|
|
471
|
+
...baseOptions,
|
|
472
|
+
...options
|
|
473
|
+
};
|
|
474
|
+
const localVarHeaderParameter = {};
|
|
475
|
+
const localVarQueryParameter = {};
|
|
476
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
477
|
+
if (isRead !== void 0) localVarQueryParameter["IsRead"] = isRead;
|
|
478
|
+
if (page !== void 0) localVarQueryParameter["page"] = page;
|
|
479
|
+
if (limit !== void 0) localVarQueryParameter["limit"] = limit;
|
|
480
|
+
if (lastRetrieved !== void 0) localVarQueryParameter["lastRetrieved"] = lastRetrieved instanceof Date ? lastRetrieved.toISOString() : lastRetrieved;
|
|
481
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
482
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
483
|
+
localVarRequestOptions.headers = {
|
|
484
|
+
...localVarHeaderParameter,
|
|
485
|
+
...headersFromBaseOptions,
|
|
486
|
+
...options.headers
|
|
487
|
+
};
|
|
488
|
+
return {
|
|
489
|
+
url: toPathString(localVarUrlObj),
|
|
490
|
+
options: localVarRequestOptions
|
|
491
|
+
};
|
|
492
|
+
},
|
|
493
|
+
apiV1ChatNotificationsIdCheckPost: async (id, options = {}) => {
|
|
494
|
+
assertParamExists("apiV1ChatNotificationsIdCheckPost", "id", id);
|
|
495
|
+
const localVarPath = `/api/v1/chat/notifications/{id}/check`.replace(`{id}`, encodeURIComponent(String(id)));
|
|
496
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
497
|
+
let baseOptions;
|
|
498
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
499
|
+
const localVarRequestOptions = {
|
|
500
|
+
method: "POST",
|
|
501
|
+
...baseOptions,
|
|
502
|
+
...options
|
|
503
|
+
};
|
|
504
|
+
const localVarHeaderParameter = {};
|
|
505
|
+
const localVarQueryParameter = {};
|
|
506
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
507
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
508
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
509
|
+
localVarRequestOptions.headers = {
|
|
510
|
+
...localVarHeaderParameter,
|
|
511
|
+
...headersFromBaseOptions,
|
|
512
|
+
...options.headers
|
|
513
|
+
};
|
|
514
|
+
return {
|
|
515
|
+
url: toPathString(localVarUrlObj),
|
|
516
|
+
options: localVarRequestOptions
|
|
517
|
+
};
|
|
518
|
+
}
|
|
519
|
+
};
|
|
520
|
+
};
|
|
521
|
+
/**
|
|
522
|
+
* NotificationsApi - functional programming interface
|
|
523
|
+
* @export
|
|
524
|
+
*/
|
|
525
|
+
const NotificationsApiFp = function(configuration) {
|
|
526
|
+
const localVarAxiosParamCreator = NotificationsApiAxiosParamCreator(configuration);
|
|
527
|
+
return {
|
|
528
|
+
async apiV1ChatNotificationsCheckPost(checkChatNotificationsCommand, options) {
|
|
529
|
+
var _configuration$server, _operationServerMap$N;
|
|
530
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatNotificationsCheckPost(checkChatNotificationsCommand, options);
|
|
531
|
+
const localVarOperationServerIndex = (_configuration$server = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _configuration$server !== void 0 ? _configuration$server : 0;
|
|
532
|
+
const localVarOperationServerBasePath = (_operationServerMap$N = operationServerMap["NotificationsApi.apiV1ChatNotificationsCheckPost"]) === null || _operationServerMap$N === void 0 || (_operationServerMap$N = _operationServerMap$N[localVarOperationServerIndex]) === null || _operationServerMap$N === void 0 ? void 0 : _operationServerMap$N.url;
|
|
533
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
534
|
+
},
|
|
535
|
+
async apiV1ChatNotificationsGet(isRead, page, limit, lastRetrieved, options) {
|
|
536
|
+
var _configuration$server2, _operationServerMap$N2;
|
|
537
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatNotificationsGet(isRead, page, limit, lastRetrieved, options);
|
|
538
|
+
const localVarOperationServerIndex = (_configuration$server2 = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _configuration$server2 !== void 0 ? _configuration$server2 : 0;
|
|
539
|
+
const localVarOperationServerBasePath = (_operationServerMap$N2 = operationServerMap["NotificationsApi.apiV1ChatNotificationsGet"]) === null || _operationServerMap$N2 === void 0 || (_operationServerMap$N2 = _operationServerMap$N2[localVarOperationServerIndex]) === null || _operationServerMap$N2 === void 0 ? void 0 : _operationServerMap$N2.url;
|
|
540
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
541
|
+
},
|
|
542
|
+
async apiV1ChatNotificationsIdCheckPost(id, options) {
|
|
543
|
+
var _configuration$server3, _operationServerMap$N3;
|
|
544
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatNotificationsIdCheckPost(id, options);
|
|
545
|
+
const localVarOperationServerIndex = (_configuration$server3 = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _configuration$server3 !== void 0 ? _configuration$server3 : 0;
|
|
546
|
+
const localVarOperationServerBasePath = (_operationServerMap$N3 = operationServerMap["NotificationsApi.apiV1ChatNotificationsIdCheckPost"]) === null || _operationServerMap$N3 === void 0 || (_operationServerMap$N3 = _operationServerMap$N3[localVarOperationServerIndex]) === null || _operationServerMap$N3 === void 0 ? void 0 : _operationServerMap$N3.url;
|
|
547
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
548
|
+
}
|
|
549
|
+
};
|
|
550
|
+
};
|
|
551
|
+
/**
|
|
552
|
+
* NotificationsApi - factory interface
|
|
553
|
+
* @export
|
|
554
|
+
*/
|
|
555
|
+
const NotificationsApiFactory = function(configuration, basePath, axios) {
|
|
556
|
+
const localVarFp = NotificationsApiFp(configuration);
|
|
557
|
+
return {
|
|
558
|
+
apiV1ChatNotificationsCheckPost(requestParameters = {}, options) {
|
|
559
|
+
return localVarFp.apiV1ChatNotificationsCheckPost(requestParameters.checkChatNotificationsCommand, options).then((request) => request(axios, basePath));
|
|
560
|
+
},
|
|
561
|
+
apiV1ChatNotificationsGet(requestParameters = {}, options) {
|
|
562
|
+
return localVarFp.apiV1ChatNotificationsGet(requestParameters.isRead, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(axios, basePath));
|
|
563
|
+
},
|
|
564
|
+
apiV1ChatNotificationsIdCheckPost(requestParameters, options) {
|
|
565
|
+
return localVarFp.apiV1ChatNotificationsIdCheckPost(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
566
|
+
}
|
|
567
|
+
};
|
|
568
|
+
};
|
|
569
|
+
/**
|
|
570
|
+
* NotificationsApi - object-oriented interface
|
|
571
|
+
* @export
|
|
572
|
+
* @class NotificationsApi
|
|
573
|
+
* @extends {BaseAPI}
|
|
574
|
+
*/
|
|
575
|
+
var NotificationsApi = class extends BaseAPI {
|
|
576
|
+
/**
|
|
577
|
+
*
|
|
578
|
+
* @summary Multiple mark all notifications as read for the current user.
|
|
579
|
+
* @param {NotificationsApiApiV1ChatNotificationsCheckPostRequest} requestParameters Request parameters.
|
|
580
|
+
* @param {*} [options] Override http request option.
|
|
581
|
+
* @throws {RequiredError}
|
|
582
|
+
* @memberof NotificationsApi
|
|
583
|
+
*/
|
|
584
|
+
apiV1ChatNotificationsCheckPost(requestParameters = {}, options) {
|
|
585
|
+
return NotificationsApiFp(this.configuration).apiV1ChatNotificationsCheckPost(requestParameters.checkChatNotificationsCommand, options).then((request) => request(this.axios, this.basePath));
|
|
586
|
+
}
|
|
587
|
+
/**
|
|
588
|
+
*
|
|
589
|
+
* @summary Get the notifications for the current user.
|
|
590
|
+
* @param {NotificationsApiApiV1ChatNotificationsGetRequest} requestParameters Request parameters.
|
|
591
|
+
* @param {*} [options] Override http request option.
|
|
592
|
+
* @throws {RequiredError}
|
|
593
|
+
* @memberof NotificationsApi
|
|
594
|
+
*/
|
|
595
|
+
apiV1ChatNotificationsGet(requestParameters = {}, options) {
|
|
596
|
+
return NotificationsApiFp(this.configuration).apiV1ChatNotificationsGet(requestParameters.isRead, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
597
|
+
}
|
|
598
|
+
/**
|
|
599
|
+
*
|
|
600
|
+
* @summary Marks the notification as read for the current user.
|
|
601
|
+
* @param {NotificationsApiApiV1ChatNotificationsIdCheckPostRequest} requestParameters Request parameters.
|
|
602
|
+
* @param {*} [options] Override http request option.
|
|
603
|
+
* @throws {RequiredError}
|
|
604
|
+
* @memberof NotificationsApi
|
|
605
|
+
*/
|
|
606
|
+
apiV1ChatNotificationsIdCheckPost(requestParameters, options) {
|
|
607
|
+
return NotificationsApiFp(this.configuration).apiV1ChatNotificationsIdCheckPost(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
608
|
+
}
|
|
609
|
+
};
|
|
610
|
+
|
|
611
|
+
//#endregion
|
|
612
|
+
//#region src/api/sessions-api.ts
|
|
613
|
+
/**
|
|
614
|
+
* SessionsApi - axios parameter creator
|
|
615
|
+
* @export
|
|
616
|
+
*/
|
|
617
|
+
const SessionsApiAxiosParamCreator = function(configuration) {
|
|
618
|
+
return {
|
|
619
|
+
apiV1ChatTenantIdSessionsGet: async (tenantId, id, targetHospitalId, targetHospitalName, assigneeIds, chatSessionStatus, title, userName, sortBy, isRead, platformType, page, limit, lastRetrieved, options = {}) => {
|
|
620
|
+
assertParamExists("apiV1ChatTenantIdSessionsGet", "tenantId", tenantId);
|
|
621
|
+
const localVarPath = `/api/v1/chat/{tenantId}/sessions`.replace(`{tenantId}`, encodeURIComponent(String(tenantId)));
|
|
622
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
623
|
+
let baseOptions;
|
|
624
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
625
|
+
const localVarRequestOptions = {
|
|
626
|
+
method: "GET",
|
|
627
|
+
...baseOptions,
|
|
628
|
+
...options
|
|
629
|
+
};
|
|
630
|
+
const localVarHeaderParameter = {};
|
|
631
|
+
const localVarQueryParameter = {};
|
|
632
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
633
|
+
if (id !== void 0) localVarQueryParameter["Id"] = id;
|
|
634
|
+
if (targetHospitalId !== void 0) localVarQueryParameter["TargetHospitalId"] = targetHospitalId;
|
|
635
|
+
if (targetHospitalName !== void 0) localVarQueryParameter["TargetHospitalName"] = targetHospitalName;
|
|
636
|
+
if (assigneeIds) localVarQueryParameter["AssigneeIds"] = assigneeIds;
|
|
637
|
+
if (chatSessionStatus) localVarQueryParameter["ChatSessionStatus"] = chatSessionStatus;
|
|
638
|
+
if (title !== void 0) localVarQueryParameter["Title"] = title;
|
|
639
|
+
if (userName !== void 0) localVarQueryParameter["UserName"] = userName;
|
|
640
|
+
if (sortBy !== void 0) localVarQueryParameter["SortBy"] = sortBy;
|
|
641
|
+
if (isRead !== void 0) localVarQueryParameter["IsRead"] = isRead;
|
|
642
|
+
if (platformType !== void 0) localVarQueryParameter["PlatformType"] = platformType;
|
|
643
|
+
if (page !== void 0) localVarQueryParameter["page"] = page;
|
|
644
|
+
if (limit !== void 0) localVarQueryParameter["limit"] = limit;
|
|
645
|
+
if (lastRetrieved !== void 0) localVarQueryParameter["lastRetrieved"] = lastRetrieved instanceof Date ? lastRetrieved.toISOString() : lastRetrieved;
|
|
646
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
647
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
648
|
+
localVarRequestOptions.headers = {
|
|
649
|
+
...localVarHeaderParameter,
|
|
650
|
+
...headersFromBaseOptions,
|
|
651
|
+
...options.headers
|
|
652
|
+
};
|
|
653
|
+
return {
|
|
654
|
+
url: toPathString(localVarUrlObj),
|
|
655
|
+
options: localVarRequestOptions
|
|
656
|
+
};
|
|
657
|
+
},
|
|
658
|
+
apiV1ChatTenantIdSessionsPost: async (tenantId, createChatSessionCommand, options = {}) => {
|
|
659
|
+
assertParamExists("apiV1ChatTenantIdSessionsPost", "tenantId", tenantId);
|
|
660
|
+
const localVarPath = `/api/v1/chat/{tenantId}/sessions`.replace(`{tenantId}`, encodeURIComponent(String(tenantId)));
|
|
661
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
662
|
+
let baseOptions;
|
|
663
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
664
|
+
const localVarRequestOptions = {
|
|
665
|
+
method: "POST",
|
|
666
|
+
...baseOptions,
|
|
667
|
+
...options
|
|
668
|
+
};
|
|
669
|
+
const localVarHeaderParameter = {};
|
|
670
|
+
const localVarQueryParameter = {};
|
|
671
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
672
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
673
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
674
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
675
|
+
localVarRequestOptions.headers = {
|
|
676
|
+
...localVarHeaderParameter,
|
|
677
|
+
...headersFromBaseOptions,
|
|
678
|
+
...options.headers
|
|
679
|
+
};
|
|
680
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createChatSessionCommand, localVarRequestOptions, configuration);
|
|
681
|
+
return {
|
|
682
|
+
url: toPathString(localVarUrlObj),
|
|
683
|
+
options: localVarRequestOptions
|
|
684
|
+
};
|
|
685
|
+
},
|
|
686
|
+
apiV1ChatTenantIdSessionsSessionIdCheckPost: async (tenantId, sessionId, options = {}) => {
|
|
687
|
+
assertParamExists("apiV1ChatTenantIdSessionsSessionIdCheckPost", "tenantId", tenantId);
|
|
688
|
+
assertParamExists("apiV1ChatTenantIdSessionsSessionIdCheckPost", "sessionId", sessionId);
|
|
689
|
+
const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}/check`.replace(`{tenantId}`, encodeURIComponent(String(tenantId))).replace(`{sessionId}`, encodeURIComponent(String(sessionId)));
|
|
690
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
691
|
+
let baseOptions;
|
|
692
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
693
|
+
const localVarRequestOptions = {
|
|
694
|
+
method: "POST",
|
|
695
|
+
...baseOptions,
|
|
696
|
+
...options
|
|
697
|
+
};
|
|
698
|
+
const localVarHeaderParameter = {};
|
|
699
|
+
const localVarQueryParameter = {};
|
|
700
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
701
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
702
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
703
|
+
localVarRequestOptions.headers = {
|
|
704
|
+
...localVarHeaderParameter,
|
|
705
|
+
...headersFromBaseOptions,
|
|
706
|
+
...options.headers
|
|
707
|
+
};
|
|
708
|
+
return {
|
|
709
|
+
url: toPathString(localVarUrlObj),
|
|
710
|
+
options: localVarRequestOptions
|
|
711
|
+
};
|
|
712
|
+
},
|
|
713
|
+
apiV1ChatTenantIdSessionsSessionIdConsultStatusPatch: async (tenantId, sessionId, chatSessionConsultStatusCommand, options = {}) => {
|
|
714
|
+
assertParamExists("apiV1ChatTenantIdSessionsSessionIdConsultStatusPatch", "tenantId", tenantId);
|
|
715
|
+
assertParamExists("apiV1ChatTenantIdSessionsSessionIdConsultStatusPatch", "sessionId", sessionId);
|
|
716
|
+
const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}/consult/status`.replace(`{tenantId}`, encodeURIComponent(String(tenantId))).replace(`{sessionId}`, encodeURIComponent(String(sessionId)));
|
|
717
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
718
|
+
let baseOptions;
|
|
719
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
720
|
+
const localVarRequestOptions = {
|
|
721
|
+
method: "PATCH",
|
|
722
|
+
...baseOptions,
|
|
723
|
+
...options
|
|
724
|
+
};
|
|
725
|
+
const localVarHeaderParameter = {};
|
|
726
|
+
const localVarQueryParameter = {};
|
|
727
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
728
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
729
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
730
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
731
|
+
localVarRequestOptions.headers = {
|
|
732
|
+
...localVarHeaderParameter,
|
|
733
|
+
...headersFromBaseOptions,
|
|
734
|
+
...options.headers
|
|
735
|
+
};
|
|
736
|
+
localVarRequestOptions.data = serializeDataIfNeeded(chatSessionConsultStatusCommand, localVarRequestOptions, configuration);
|
|
737
|
+
return {
|
|
738
|
+
url: toPathString(localVarUrlObj),
|
|
739
|
+
options: localVarRequestOptions
|
|
740
|
+
};
|
|
741
|
+
},
|
|
742
|
+
apiV1ChatTenantIdSessionsSessionIdConvertsigninuserPost: async (tenantId, sessionId, options = {}) => {
|
|
743
|
+
assertParamExists("apiV1ChatTenantIdSessionsSessionIdConvertsigninuserPost", "tenantId", tenantId);
|
|
744
|
+
assertParamExists("apiV1ChatTenantIdSessionsSessionIdConvertsigninuserPost", "sessionId", sessionId);
|
|
745
|
+
const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}/convertsigninuser`.replace(`{tenantId}`, encodeURIComponent(String(tenantId))).replace(`{sessionId}`, encodeURIComponent(String(sessionId)));
|
|
746
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
747
|
+
let baseOptions;
|
|
748
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
749
|
+
const localVarRequestOptions = {
|
|
750
|
+
method: "POST",
|
|
751
|
+
...baseOptions,
|
|
752
|
+
...options
|
|
753
|
+
};
|
|
754
|
+
const localVarHeaderParameter = {};
|
|
755
|
+
const localVarQueryParameter = {};
|
|
756
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
757
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
758
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
759
|
+
localVarRequestOptions.headers = {
|
|
760
|
+
...localVarHeaderParameter,
|
|
761
|
+
...headersFromBaseOptions,
|
|
762
|
+
...options.headers
|
|
763
|
+
};
|
|
764
|
+
return {
|
|
765
|
+
url: toPathString(localVarUrlObj),
|
|
766
|
+
options: localVarRequestOptions
|
|
767
|
+
};
|
|
768
|
+
},
|
|
769
|
+
apiV1ChatTenantIdSessionsSessionIdDelete: async (tenantId, sessionId, options = {}) => {
|
|
770
|
+
assertParamExists("apiV1ChatTenantIdSessionsSessionIdDelete", "tenantId", tenantId);
|
|
771
|
+
assertParamExists("apiV1ChatTenantIdSessionsSessionIdDelete", "sessionId", sessionId);
|
|
772
|
+
const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}`.replace(`{tenantId}`, encodeURIComponent(String(tenantId))).replace(`{sessionId}`, encodeURIComponent(String(sessionId)));
|
|
773
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
774
|
+
let baseOptions;
|
|
775
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
776
|
+
const localVarRequestOptions = {
|
|
777
|
+
method: "DELETE",
|
|
778
|
+
...baseOptions,
|
|
779
|
+
...options
|
|
780
|
+
};
|
|
781
|
+
const localVarHeaderParameter = {};
|
|
782
|
+
const localVarQueryParameter = {};
|
|
783
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
784
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
785
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
786
|
+
localVarRequestOptions.headers = {
|
|
787
|
+
...localVarHeaderParameter,
|
|
788
|
+
...headersFromBaseOptions,
|
|
789
|
+
...options.headers
|
|
790
|
+
};
|
|
791
|
+
return {
|
|
792
|
+
url: toPathString(localVarUrlObj),
|
|
793
|
+
options: localVarRequestOptions
|
|
794
|
+
};
|
|
795
|
+
},
|
|
796
|
+
apiV1ChatTenantIdSessionsSessionIdGet: async (tenantId, sessionId, options = {}) => {
|
|
797
|
+
assertParamExists("apiV1ChatTenantIdSessionsSessionIdGet", "tenantId", tenantId);
|
|
798
|
+
assertParamExists("apiV1ChatTenantIdSessionsSessionIdGet", "sessionId", sessionId);
|
|
799
|
+
const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}`.replace(`{tenantId}`, encodeURIComponent(String(tenantId))).replace(`{sessionId}`, encodeURIComponent(String(sessionId)));
|
|
800
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
801
|
+
let baseOptions;
|
|
802
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
803
|
+
const localVarRequestOptions = {
|
|
804
|
+
method: "GET",
|
|
805
|
+
...baseOptions,
|
|
806
|
+
...options
|
|
807
|
+
};
|
|
808
|
+
const localVarHeaderParameter = {};
|
|
809
|
+
const localVarQueryParameter = {};
|
|
810
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
811
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
812
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
813
|
+
localVarRequestOptions.headers = {
|
|
814
|
+
...localVarHeaderParameter,
|
|
815
|
+
...headersFromBaseOptions,
|
|
816
|
+
...options.headers
|
|
817
|
+
};
|
|
818
|
+
return {
|
|
819
|
+
url: toPathString(localVarUrlObj),
|
|
820
|
+
options: localVarRequestOptions
|
|
821
|
+
};
|
|
822
|
+
},
|
|
823
|
+
apiV1ChatTenantIdSessionsSessionIdIntakeformsGet: async (tenantId, sessionId, id, userId, phoneNumber, page, limit, lastRetrieved, options = {}) => {
|
|
824
|
+
assertParamExists("apiV1ChatTenantIdSessionsSessionIdIntakeformsGet", "tenantId", tenantId);
|
|
825
|
+
assertParamExists("apiV1ChatTenantIdSessionsSessionIdIntakeformsGet", "sessionId", sessionId);
|
|
826
|
+
const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}/intakeforms`.replace(`{tenantId}`, encodeURIComponent(String(tenantId))).replace(`{sessionId}`, encodeURIComponent(String(sessionId)));
|
|
827
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
828
|
+
let baseOptions;
|
|
829
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
830
|
+
const localVarRequestOptions = {
|
|
831
|
+
method: "GET",
|
|
832
|
+
...baseOptions,
|
|
833
|
+
...options
|
|
834
|
+
};
|
|
835
|
+
const localVarHeaderParameter = {};
|
|
836
|
+
const localVarQueryParameter = {};
|
|
837
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
838
|
+
if (id !== void 0) localVarQueryParameter["Id"] = id;
|
|
839
|
+
if (userId !== void 0) localVarQueryParameter["UserId"] = userId;
|
|
840
|
+
if (phoneNumber !== void 0) localVarQueryParameter["PhoneNumber"] = phoneNumber;
|
|
841
|
+
if (page !== void 0) localVarQueryParameter["page"] = page;
|
|
842
|
+
if (limit !== void 0) localVarQueryParameter["limit"] = limit;
|
|
843
|
+
if (lastRetrieved !== void 0) localVarQueryParameter["lastRetrieved"] = lastRetrieved instanceof Date ? lastRetrieved.toISOString() : lastRetrieved;
|
|
844
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
845
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
846
|
+
localVarRequestOptions.headers = {
|
|
847
|
+
...localVarHeaderParameter,
|
|
848
|
+
...headersFromBaseOptions,
|
|
849
|
+
...options.headers
|
|
850
|
+
};
|
|
851
|
+
return {
|
|
852
|
+
url: toPathString(localVarUrlObj),
|
|
853
|
+
options: localVarRequestOptions
|
|
854
|
+
};
|
|
855
|
+
},
|
|
856
|
+
apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDelete: async (tenantId, sessionId, intakeFormId, options = {}) => {
|
|
857
|
+
assertParamExists("apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDelete", "tenantId", tenantId);
|
|
858
|
+
assertParamExists("apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDelete", "sessionId", sessionId);
|
|
859
|
+
assertParamExists("apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDelete", "intakeFormId", intakeFormId);
|
|
860
|
+
const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}/intakeforms/{intakeFormId}`.replace(`{tenantId}`, encodeURIComponent(String(tenantId))).replace(`{sessionId}`, encodeURIComponent(String(sessionId))).replace(`{intakeFormId}`, encodeURIComponent(String(intakeFormId)));
|
|
861
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
862
|
+
let baseOptions;
|
|
863
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
864
|
+
const localVarRequestOptions = {
|
|
865
|
+
method: "DELETE",
|
|
866
|
+
...baseOptions,
|
|
867
|
+
...options
|
|
868
|
+
};
|
|
869
|
+
const localVarHeaderParameter = {};
|
|
870
|
+
const localVarQueryParameter = {};
|
|
871
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
872
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
873
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
874
|
+
localVarRequestOptions.headers = {
|
|
875
|
+
...localVarHeaderParameter,
|
|
876
|
+
...headersFromBaseOptions,
|
|
877
|
+
...options.headers
|
|
878
|
+
};
|
|
879
|
+
return {
|
|
880
|
+
url: toPathString(localVarUrlObj),
|
|
881
|
+
options: localVarRequestOptions
|
|
882
|
+
};
|
|
883
|
+
},
|
|
884
|
+
apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGet: async (tenantId, sessionId, intakeFormId, options = {}) => {
|
|
885
|
+
assertParamExists("apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGet", "tenantId", tenantId);
|
|
886
|
+
assertParamExists("apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGet", "sessionId", sessionId);
|
|
887
|
+
assertParamExists("apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGet", "intakeFormId", intakeFormId);
|
|
888
|
+
const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}/intakeforms/{intakeFormId}`.replace(`{tenantId}`, encodeURIComponent(String(tenantId))).replace(`{sessionId}`, encodeURIComponent(String(sessionId))).replace(`{intakeFormId}`, encodeURIComponent(String(intakeFormId)));
|
|
889
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
890
|
+
let baseOptions;
|
|
891
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
892
|
+
const localVarRequestOptions = {
|
|
893
|
+
method: "GET",
|
|
894
|
+
...baseOptions,
|
|
895
|
+
...options
|
|
896
|
+
};
|
|
897
|
+
const localVarHeaderParameter = {};
|
|
898
|
+
const localVarQueryParameter = {};
|
|
899
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
900
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
901
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
902
|
+
localVarRequestOptions.headers = {
|
|
903
|
+
...localVarHeaderParameter,
|
|
904
|
+
...headersFromBaseOptions,
|
|
905
|
+
...options.headers
|
|
906
|
+
};
|
|
907
|
+
return {
|
|
908
|
+
url: toPathString(localVarUrlObj),
|
|
909
|
+
options: localVarRequestOptions
|
|
910
|
+
};
|
|
911
|
+
},
|
|
912
|
+
apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatch: async (tenantId, sessionId, intakeFormId, patchIntakeFormCommand, options = {}) => {
|
|
913
|
+
assertParamExists("apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatch", "tenantId", tenantId);
|
|
914
|
+
assertParamExists("apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatch", "sessionId", sessionId);
|
|
915
|
+
assertParamExists("apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatch", "intakeFormId", intakeFormId);
|
|
916
|
+
const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}/intakeforms/{intakeFormId}/items`.replace(`{tenantId}`, encodeURIComponent(String(tenantId))).replace(`{sessionId}`, encodeURIComponent(String(sessionId))).replace(`{intakeFormId}`, encodeURIComponent(String(intakeFormId)));
|
|
917
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
918
|
+
let baseOptions;
|
|
919
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
920
|
+
const localVarRequestOptions = {
|
|
921
|
+
method: "PATCH",
|
|
922
|
+
...baseOptions,
|
|
923
|
+
...options
|
|
924
|
+
};
|
|
925
|
+
const localVarHeaderParameter = {};
|
|
926
|
+
const localVarQueryParameter = {};
|
|
927
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
928
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
929
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
930
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
931
|
+
localVarRequestOptions.headers = {
|
|
932
|
+
...localVarHeaderParameter,
|
|
933
|
+
...headersFromBaseOptions,
|
|
934
|
+
...options.headers
|
|
935
|
+
};
|
|
936
|
+
localVarRequestOptions.data = serializeDataIfNeeded(patchIntakeFormCommand, localVarRequestOptions, configuration);
|
|
937
|
+
return {
|
|
938
|
+
url: toPathString(localVarUrlObj),
|
|
939
|
+
options: localVarRequestOptions
|
|
940
|
+
};
|
|
941
|
+
},
|
|
942
|
+
apiV1ChatTenantIdSessionsSessionIdIntakeformsPost: async (tenantId, sessionId, createIntakeFormCommand, options = {}) => {
|
|
943
|
+
assertParamExists("apiV1ChatTenantIdSessionsSessionIdIntakeformsPost", "tenantId", tenantId);
|
|
944
|
+
assertParamExists("apiV1ChatTenantIdSessionsSessionIdIntakeformsPost", "sessionId", sessionId);
|
|
945
|
+
const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}/intakeforms`.replace(`{tenantId}`, encodeURIComponent(String(tenantId))).replace(`{sessionId}`, encodeURIComponent(String(sessionId)));
|
|
946
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
947
|
+
let baseOptions;
|
|
948
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
949
|
+
const localVarRequestOptions = {
|
|
950
|
+
method: "POST",
|
|
951
|
+
...baseOptions,
|
|
952
|
+
...options
|
|
953
|
+
};
|
|
954
|
+
const localVarHeaderParameter = {};
|
|
955
|
+
const localVarQueryParameter = {};
|
|
956
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
957
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
958
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
959
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
960
|
+
localVarRequestOptions.headers = {
|
|
961
|
+
...localVarHeaderParameter,
|
|
962
|
+
...headersFromBaseOptions,
|
|
963
|
+
...options.headers
|
|
964
|
+
};
|
|
965
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createIntakeFormCommand, localVarRequestOptions, configuration);
|
|
966
|
+
return {
|
|
967
|
+
url: toPathString(localVarUrlObj),
|
|
968
|
+
options: localVarRequestOptions
|
|
969
|
+
};
|
|
970
|
+
},
|
|
971
|
+
apiV1ChatTenantIdSessionsSessionIdJoinPost: async (tenantId, sessionId, joinChatSessionCommand, options = {}) => {
|
|
972
|
+
assertParamExists("apiV1ChatTenantIdSessionsSessionIdJoinPost", "tenantId", tenantId);
|
|
973
|
+
assertParamExists("apiV1ChatTenantIdSessionsSessionIdJoinPost", "sessionId", sessionId);
|
|
974
|
+
const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}/join`.replace(`{tenantId}`, encodeURIComponent(String(tenantId))).replace(`{sessionId}`, encodeURIComponent(String(sessionId)));
|
|
975
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
976
|
+
let baseOptions;
|
|
977
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
978
|
+
const localVarRequestOptions = {
|
|
979
|
+
method: "POST",
|
|
980
|
+
...baseOptions,
|
|
981
|
+
...options
|
|
982
|
+
};
|
|
983
|
+
const localVarHeaderParameter = {};
|
|
984
|
+
const localVarQueryParameter = {};
|
|
985
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
986
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
987
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
988
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
989
|
+
localVarRequestOptions.headers = {
|
|
990
|
+
...localVarHeaderParameter,
|
|
991
|
+
...headersFromBaseOptions,
|
|
992
|
+
...options.headers
|
|
993
|
+
};
|
|
994
|
+
localVarRequestOptions.data = serializeDataIfNeeded(joinChatSessionCommand, localVarRequestOptions, configuration);
|
|
995
|
+
return {
|
|
996
|
+
url: toPathString(localVarUrlObj),
|
|
997
|
+
options: localVarRequestOptions
|
|
998
|
+
};
|
|
999
|
+
},
|
|
1000
|
+
apiV1ChatTenantIdSessionsSessionIdLeaveDelete: async (tenantId, sessionId, options = {}) => {
|
|
1001
|
+
assertParamExists("apiV1ChatTenantIdSessionsSessionIdLeaveDelete", "tenantId", tenantId);
|
|
1002
|
+
assertParamExists("apiV1ChatTenantIdSessionsSessionIdLeaveDelete", "sessionId", sessionId);
|
|
1003
|
+
const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}/leave`.replace(`{tenantId}`, encodeURIComponent(String(tenantId))).replace(`{sessionId}`, encodeURIComponent(String(sessionId)));
|
|
1004
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1005
|
+
let baseOptions;
|
|
1006
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
1007
|
+
const localVarRequestOptions = {
|
|
1008
|
+
method: "DELETE",
|
|
1009
|
+
...baseOptions,
|
|
1010
|
+
...options
|
|
1011
|
+
};
|
|
1012
|
+
const localVarHeaderParameter = {};
|
|
1013
|
+
const localVarQueryParameter = {};
|
|
1014
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
1015
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1016
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1017
|
+
localVarRequestOptions.headers = {
|
|
1018
|
+
...localVarHeaderParameter,
|
|
1019
|
+
...headersFromBaseOptions,
|
|
1020
|
+
...options.headers
|
|
1021
|
+
};
|
|
1022
|
+
return {
|
|
1023
|
+
url: toPathString(localVarUrlObj),
|
|
1024
|
+
options: localVarRequestOptions
|
|
1025
|
+
};
|
|
1026
|
+
},
|
|
1027
|
+
apiV1ChatTenantIdSessionsSessionIdMessageSendPost: async (tenantId, sessionId, file, text, mediaId, platformMessageId, caption, link, messageType, phoneNumber, options = {}) => {
|
|
1028
|
+
assertParamExists("apiV1ChatTenantIdSessionsSessionIdMessageSendPost", "tenantId", tenantId);
|
|
1029
|
+
assertParamExists("apiV1ChatTenantIdSessionsSessionIdMessageSendPost", "sessionId", sessionId);
|
|
1030
|
+
const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}/message/send`.replace(`{tenantId}`, encodeURIComponent(String(tenantId))).replace(`{sessionId}`, encodeURIComponent(String(sessionId)));
|
|
1031
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1032
|
+
let baseOptions;
|
|
1033
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
1034
|
+
const localVarRequestOptions = {
|
|
1035
|
+
method: "POST",
|
|
1036
|
+
...baseOptions,
|
|
1037
|
+
...options
|
|
1038
|
+
};
|
|
1039
|
+
const localVarHeaderParameter = {};
|
|
1040
|
+
const localVarQueryParameter = {};
|
|
1041
|
+
const localVarFormParams = new (configuration && configuration.formDataCtor || FormData)();
|
|
1042
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
1043
|
+
if (file !== void 0) localVarFormParams.append("File", file);
|
|
1044
|
+
if (text !== void 0) localVarFormParams.append("Text", text);
|
|
1045
|
+
if (mediaId !== void 0) localVarFormParams.append("MediaId", mediaId);
|
|
1046
|
+
if (platformMessageId !== void 0) localVarFormParams.append("PlatformMessageId", platformMessageId);
|
|
1047
|
+
if (caption !== void 0) localVarFormParams.append("Caption", caption);
|
|
1048
|
+
if (link !== void 0) localVarFormParams.append("Link", link);
|
|
1049
|
+
if (messageType !== void 0) localVarFormParams.append("MessageType", messageType);
|
|
1050
|
+
if (phoneNumber !== void 0) localVarFormParams.append("PhoneNumber", phoneNumber);
|
|
1051
|
+
localVarHeaderParameter["Content-Type"] = "multipart/form-data";
|
|
1052
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1053
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1054
|
+
localVarRequestOptions.headers = {
|
|
1055
|
+
...localVarHeaderParameter,
|
|
1056
|
+
...headersFromBaseOptions,
|
|
1057
|
+
...options.headers
|
|
1058
|
+
};
|
|
1059
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
1060
|
+
return {
|
|
1061
|
+
url: toPathString(localVarUrlObj),
|
|
1062
|
+
options: localVarRequestOptions
|
|
1063
|
+
};
|
|
1064
|
+
},
|
|
1065
|
+
apiV1ChatTenantIdSessionsSessionIdMessagesGet: async (tenantId, sessionId, page, limit, lastRetrieved, options = {}) => {
|
|
1066
|
+
assertParamExists("apiV1ChatTenantIdSessionsSessionIdMessagesGet", "tenantId", tenantId);
|
|
1067
|
+
assertParamExists("apiV1ChatTenantIdSessionsSessionIdMessagesGet", "sessionId", sessionId);
|
|
1068
|
+
const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}/messages`.replace(`{tenantId}`, encodeURIComponent(String(tenantId))).replace(`{sessionId}`, encodeURIComponent(String(sessionId)));
|
|
1069
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1070
|
+
let baseOptions;
|
|
1071
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
1072
|
+
const localVarRequestOptions = {
|
|
1073
|
+
method: "GET",
|
|
1074
|
+
...baseOptions,
|
|
1075
|
+
...options
|
|
1076
|
+
};
|
|
1077
|
+
const localVarHeaderParameter = {};
|
|
1078
|
+
const localVarQueryParameter = {};
|
|
1079
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
1080
|
+
if (page !== void 0) localVarQueryParameter["page"] = page;
|
|
1081
|
+
if (limit !== void 0) localVarQueryParameter["limit"] = limit;
|
|
1082
|
+
if (lastRetrieved !== void 0) localVarQueryParameter["lastRetrieved"] = lastRetrieved instanceof Date ? lastRetrieved.toISOString() : lastRetrieved;
|
|
1083
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1084
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1085
|
+
localVarRequestOptions.headers = {
|
|
1086
|
+
...localVarHeaderParameter,
|
|
1087
|
+
...headersFromBaseOptions,
|
|
1088
|
+
...options.headers
|
|
1089
|
+
};
|
|
1090
|
+
return {
|
|
1091
|
+
url: toPathString(localVarUrlObj),
|
|
1092
|
+
options: localVarRequestOptions
|
|
1093
|
+
};
|
|
1094
|
+
},
|
|
1095
|
+
apiV1ChatTenantIdSessionsSessionIdMessagesMessageIdMediaReactivatePut: async (tenantId, sessionId, messageId, options = {}) => {
|
|
1096
|
+
assertParamExists("apiV1ChatTenantIdSessionsSessionIdMessagesMessageIdMediaReactivatePut", "tenantId", tenantId);
|
|
1097
|
+
assertParamExists("apiV1ChatTenantIdSessionsSessionIdMessagesMessageIdMediaReactivatePut", "sessionId", sessionId);
|
|
1098
|
+
assertParamExists("apiV1ChatTenantIdSessionsSessionIdMessagesMessageIdMediaReactivatePut", "messageId", messageId);
|
|
1099
|
+
const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}/messages/{messageId}/media/reactivate`.replace(`{tenantId}`, encodeURIComponent(String(tenantId))).replace(`{sessionId}`, encodeURIComponent(String(sessionId))).replace(`{messageId}`, encodeURIComponent(String(messageId)));
|
|
1100
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1101
|
+
let baseOptions;
|
|
1102
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
1103
|
+
const localVarRequestOptions = {
|
|
1104
|
+
method: "PUT",
|
|
1105
|
+
...baseOptions,
|
|
1106
|
+
...options
|
|
1107
|
+
};
|
|
1108
|
+
const localVarHeaderParameter = {};
|
|
1109
|
+
const localVarQueryParameter = {};
|
|
1110
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
1111
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1112
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1113
|
+
localVarRequestOptions.headers = {
|
|
1114
|
+
...localVarHeaderParameter,
|
|
1115
|
+
...headersFromBaseOptions,
|
|
1116
|
+
...options.headers
|
|
1117
|
+
};
|
|
1118
|
+
return {
|
|
1119
|
+
url: toPathString(localVarUrlObj),
|
|
1120
|
+
options: localVarRequestOptions
|
|
1121
|
+
};
|
|
1122
|
+
},
|
|
1123
|
+
apiV1ChatTenantIdSessionsSessionIdPatch: async (tenantId, sessionId, putChatSessionCommand, options = {}) => {
|
|
1124
|
+
assertParamExists("apiV1ChatTenantIdSessionsSessionIdPatch", "tenantId", tenantId);
|
|
1125
|
+
assertParamExists("apiV1ChatTenantIdSessionsSessionIdPatch", "sessionId", sessionId);
|
|
1126
|
+
const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}`.replace(`{tenantId}`, encodeURIComponent(String(tenantId))).replace(`{sessionId}`, encodeURIComponent(String(sessionId)));
|
|
1127
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1128
|
+
let baseOptions;
|
|
1129
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
1130
|
+
const localVarRequestOptions = {
|
|
1131
|
+
method: "PATCH",
|
|
1132
|
+
...baseOptions,
|
|
1133
|
+
...options
|
|
1134
|
+
};
|
|
1135
|
+
const localVarHeaderParameter = {};
|
|
1136
|
+
const localVarQueryParameter = {};
|
|
1137
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
1138
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1139
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1140
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1141
|
+
localVarRequestOptions.headers = {
|
|
1142
|
+
...localVarHeaderParameter,
|
|
1143
|
+
...headersFromBaseOptions,
|
|
1144
|
+
...options.headers
|
|
1145
|
+
};
|
|
1146
|
+
localVarRequestOptions.data = serializeDataIfNeeded(putChatSessionCommand, localVarRequestOptions, configuration);
|
|
1147
|
+
return {
|
|
1148
|
+
url: toPathString(localVarUrlObj),
|
|
1149
|
+
options: localVarRequestOptions
|
|
1150
|
+
};
|
|
1151
|
+
},
|
|
1152
|
+
apiV1ChatTenantIdSessionsSessionIdTransferPut: async (tenantId, sessionId, transferManagerCommand, options = {}) => {
|
|
1153
|
+
assertParamExists("apiV1ChatTenantIdSessionsSessionIdTransferPut", "tenantId", tenantId);
|
|
1154
|
+
assertParamExists("apiV1ChatTenantIdSessionsSessionIdTransferPut", "sessionId", sessionId);
|
|
1155
|
+
const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}/transfer`.replace(`{tenantId}`, encodeURIComponent(String(tenantId))).replace(`{sessionId}`, encodeURIComponent(String(sessionId)));
|
|
1156
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1157
|
+
let baseOptions;
|
|
1158
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
1159
|
+
const localVarRequestOptions = {
|
|
1160
|
+
method: "PUT",
|
|
1161
|
+
...baseOptions,
|
|
1162
|
+
...options
|
|
1163
|
+
};
|
|
1164
|
+
const localVarHeaderParameter = {};
|
|
1165
|
+
const localVarQueryParameter = {};
|
|
1166
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
1167
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1168
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1169
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1170
|
+
localVarRequestOptions.headers = {
|
|
1171
|
+
...localVarHeaderParameter,
|
|
1172
|
+
...headersFromBaseOptions,
|
|
1173
|
+
...options.headers
|
|
1174
|
+
};
|
|
1175
|
+
localVarRequestOptions.data = serializeDataIfNeeded(transferManagerCommand, localVarRequestOptions, configuration);
|
|
1176
|
+
return {
|
|
1177
|
+
url: toPathString(localVarUrlObj),
|
|
1178
|
+
options: localVarRequestOptions
|
|
1179
|
+
};
|
|
1180
|
+
},
|
|
1181
|
+
apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessageSendPost: async (tenantId, sessionId, chatSendFlowMessageCommand, options = {}) => {
|
|
1182
|
+
assertParamExists("apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessageSendPost", "tenantId", tenantId);
|
|
1183
|
+
assertParamExists("apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessageSendPost", "sessionId", sessionId);
|
|
1184
|
+
const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}/whatsapp/flow/message/send`.replace(`{tenantId}`, encodeURIComponent(String(tenantId))).replace(`{sessionId}`, encodeURIComponent(String(sessionId)));
|
|
1185
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1186
|
+
let baseOptions;
|
|
1187
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
1188
|
+
const localVarRequestOptions = {
|
|
1189
|
+
method: "POST",
|
|
1190
|
+
...baseOptions,
|
|
1191
|
+
...options
|
|
1192
|
+
};
|
|
1193
|
+
const localVarHeaderParameter = {};
|
|
1194
|
+
const localVarQueryParameter = {};
|
|
1195
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
1196
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1197
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1198
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1199
|
+
localVarRequestOptions.headers = {
|
|
1200
|
+
...localVarHeaderParameter,
|
|
1201
|
+
...headersFromBaseOptions,
|
|
1202
|
+
...options.headers
|
|
1203
|
+
};
|
|
1204
|
+
localVarRequestOptions.data = serializeDataIfNeeded(chatSendFlowMessageCommand, localVarRequestOptions, configuration);
|
|
1205
|
+
return {
|
|
1206
|
+
url: toPathString(localVarUrlObj),
|
|
1207
|
+
options: localVarRequestOptions
|
|
1208
|
+
};
|
|
1209
|
+
},
|
|
1210
|
+
apiV1ChatTenantIdSessionsSessionIdWhatsappTemplateMessageSendPost: async (tenantId, sessionId, chatSendTemplateMessageCommand, options = {}) => {
|
|
1211
|
+
assertParamExists("apiV1ChatTenantIdSessionsSessionIdWhatsappTemplateMessageSendPost", "tenantId", tenantId);
|
|
1212
|
+
assertParamExists("apiV1ChatTenantIdSessionsSessionIdWhatsappTemplateMessageSendPost", "sessionId", sessionId);
|
|
1213
|
+
const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}/whatsapp/template/message/send`.replace(`{tenantId}`, encodeURIComponent(String(tenantId))).replace(`{sessionId}`, encodeURIComponent(String(sessionId)));
|
|
1214
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1215
|
+
let baseOptions;
|
|
1216
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
1217
|
+
const localVarRequestOptions = {
|
|
1218
|
+
method: "POST",
|
|
1219
|
+
...baseOptions,
|
|
1220
|
+
...options
|
|
1221
|
+
};
|
|
1222
|
+
const localVarHeaderParameter = {};
|
|
1223
|
+
const localVarQueryParameter = {};
|
|
1224
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
1225
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1226
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1227
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1228
|
+
localVarRequestOptions.headers = {
|
|
1229
|
+
...localVarHeaderParameter,
|
|
1230
|
+
...headersFromBaseOptions,
|
|
1231
|
+
...options.headers
|
|
1232
|
+
};
|
|
1233
|
+
localVarRequestOptions.data = serializeDataIfNeeded(chatSendTemplateMessageCommand, localVarRequestOptions, configuration);
|
|
1234
|
+
return {
|
|
1235
|
+
url: toPathString(localVarUrlObj),
|
|
1236
|
+
options: localVarRequestOptions
|
|
1237
|
+
};
|
|
1238
|
+
}
|
|
1239
|
+
};
|
|
1240
|
+
};
|
|
1241
|
+
/**
|
|
1242
|
+
* SessionsApi - functional programming interface
|
|
1243
|
+
* @export
|
|
1244
|
+
*/
|
|
1245
|
+
const SessionsApiFp = function(configuration) {
|
|
1246
|
+
const localVarAxiosParamCreator = SessionsApiAxiosParamCreator(configuration);
|
|
1247
|
+
return {
|
|
1248
|
+
async apiV1ChatTenantIdSessionsGet(tenantId, id, targetHospitalId, targetHospitalName, assigneeIds, chatSessionStatus, title, userName, sortBy, isRead, platformType, page, limit, lastRetrieved, options) {
|
|
1249
|
+
var _configuration$server, _operationServerMap$S;
|
|
1250
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatTenantIdSessionsGet(tenantId, id, targetHospitalId, targetHospitalName, assigneeIds, chatSessionStatus, title, userName, sortBy, isRead, platformType, page, limit, lastRetrieved, options);
|
|
1251
|
+
const localVarOperationServerIndex = (_configuration$server = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _configuration$server !== void 0 ? _configuration$server : 0;
|
|
1252
|
+
const localVarOperationServerBasePath = (_operationServerMap$S = operationServerMap["SessionsApi.apiV1ChatTenantIdSessionsGet"]) === null || _operationServerMap$S === void 0 || (_operationServerMap$S = _operationServerMap$S[localVarOperationServerIndex]) === null || _operationServerMap$S === void 0 ? void 0 : _operationServerMap$S.url;
|
|
1253
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1254
|
+
},
|
|
1255
|
+
async apiV1ChatTenantIdSessionsPost(tenantId, createChatSessionCommand, options) {
|
|
1256
|
+
var _configuration$server2, _operationServerMap$S2;
|
|
1257
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatTenantIdSessionsPost(tenantId, createChatSessionCommand, options);
|
|
1258
|
+
const localVarOperationServerIndex = (_configuration$server2 = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _configuration$server2 !== void 0 ? _configuration$server2 : 0;
|
|
1259
|
+
const localVarOperationServerBasePath = (_operationServerMap$S2 = operationServerMap["SessionsApi.apiV1ChatTenantIdSessionsPost"]) === null || _operationServerMap$S2 === void 0 || (_operationServerMap$S2 = _operationServerMap$S2[localVarOperationServerIndex]) === null || _operationServerMap$S2 === void 0 ? void 0 : _operationServerMap$S2.url;
|
|
1260
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1261
|
+
},
|
|
1262
|
+
async apiV1ChatTenantIdSessionsSessionIdCheckPost(tenantId, sessionId, options) {
|
|
1263
|
+
var _configuration$server3, _operationServerMap$S3;
|
|
1264
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdCheckPost(tenantId, sessionId, options);
|
|
1265
|
+
const localVarOperationServerIndex = (_configuration$server3 = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _configuration$server3 !== void 0 ? _configuration$server3 : 0;
|
|
1266
|
+
const localVarOperationServerBasePath = (_operationServerMap$S3 = operationServerMap["SessionsApi.apiV1ChatTenantIdSessionsSessionIdCheckPost"]) === null || _operationServerMap$S3 === void 0 || (_operationServerMap$S3 = _operationServerMap$S3[localVarOperationServerIndex]) === null || _operationServerMap$S3 === void 0 ? void 0 : _operationServerMap$S3.url;
|
|
1267
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1268
|
+
},
|
|
1269
|
+
async apiV1ChatTenantIdSessionsSessionIdConsultStatusPatch(tenantId, sessionId, chatSessionConsultStatusCommand, options) {
|
|
1270
|
+
var _configuration$server4, _operationServerMap$S4;
|
|
1271
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdConsultStatusPatch(tenantId, sessionId, chatSessionConsultStatusCommand, options);
|
|
1272
|
+
const localVarOperationServerIndex = (_configuration$server4 = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _configuration$server4 !== void 0 ? _configuration$server4 : 0;
|
|
1273
|
+
const localVarOperationServerBasePath = (_operationServerMap$S4 = operationServerMap["SessionsApi.apiV1ChatTenantIdSessionsSessionIdConsultStatusPatch"]) === null || _operationServerMap$S4 === void 0 || (_operationServerMap$S4 = _operationServerMap$S4[localVarOperationServerIndex]) === null || _operationServerMap$S4 === void 0 ? void 0 : _operationServerMap$S4.url;
|
|
1274
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1275
|
+
},
|
|
1276
|
+
async apiV1ChatTenantIdSessionsSessionIdConvertsigninuserPost(tenantId, sessionId, options) {
|
|
1277
|
+
var _configuration$server5, _operationServerMap$S5;
|
|
1278
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdConvertsigninuserPost(tenantId, sessionId, options);
|
|
1279
|
+
const localVarOperationServerIndex = (_configuration$server5 = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _configuration$server5 !== void 0 ? _configuration$server5 : 0;
|
|
1280
|
+
const localVarOperationServerBasePath = (_operationServerMap$S5 = operationServerMap["SessionsApi.apiV1ChatTenantIdSessionsSessionIdConvertsigninuserPost"]) === null || _operationServerMap$S5 === void 0 || (_operationServerMap$S5 = _operationServerMap$S5[localVarOperationServerIndex]) === null || _operationServerMap$S5 === void 0 ? void 0 : _operationServerMap$S5.url;
|
|
1281
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1282
|
+
},
|
|
1283
|
+
async apiV1ChatTenantIdSessionsSessionIdDelete(tenantId, sessionId, options) {
|
|
1284
|
+
var _configuration$server6, _operationServerMap$S6;
|
|
1285
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdDelete(tenantId, sessionId, options);
|
|
1286
|
+
const localVarOperationServerIndex = (_configuration$server6 = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _configuration$server6 !== void 0 ? _configuration$server6 : 0;
|
|
1287
|
+
const localVarOperationServerBasePath = (_operationServerMap$S6 = operationServerMap["SessionsApi.apiV1ChatTenantIdSessionsSessionIdDelete"]) === null || _operationServerMap$S6 === void 0 || (_operationServerMap$S6 = _operationServerMap$S6[localVarOperationServerIndex]) === null || _operationServerMap$S6 === void 0 ? void 0 : _operationServerMap$S6.url;
|
|
1288
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1289
|
+
},
|
|
1290
|
+
async apiV1ChatTenantIdSessionsSessionIdGet(tenantId, sessionId, options) {
|
|
1291
|
+
var _configuration$server7, _operationServerMap$S7;
|
|
1292
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdGet(tenantId, sessionId, options);
|
|
1293
|
+
const localVarOperationServerIndex = (_configuration$server7 = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _configuration$server7 !== void 0 ? _configuration$server7 : 0;
|
|
1294
|
+
const localVarOperationServerBasePath = (_operationServerMap$S7 = operationServerMap["SessionsApi.apiV1ChatTenantIdSessionsSessionIdGet"]) === null || _operationServerMap$S7 === void 0 || (_operationServerMap$S7 = _operationServerMap$S7[localVarOperationServerIndex]) === null || _operationServerMap$S7 === void 0 ? void 0 : _operationServerMap$S7.url;
|
|
1295
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1296
|
+
},
|
|
1297
|
+
async apiV1ChatTenantIdSessionsSessionIdIntakeformsGet(tenantId, sessionId, id, userId, phoneNumber, page, limit, lastRetrieved, options) {
|
|
1298
|
+
var _configuration$server8, _operationServerMap$S8;
|
|
1299
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdIntakeformsGet(tenantId, sessionId, id, userId, phoneNumber, page, limit, lastRetrieved, options);
|
|
1300
|
+
const localVarOperationServerIndex = (_configuration$server8 = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _configuration$server8 !== void 0 ? _configuration$server8 : 0;
|
|
1301
|
+
const localVarOperationServerBasePath = (_operationServerMap$S8 = operationServerMap["SessionsApi.apiV1ChatTenantIdSessionsSessionIdIntakeformsGet"]) === null || _operationServerMap$S8 === void 0 || (_operationServerMap$S8 = _operationServerMap$S8[localVarOperationServerIndex]) === null || _operationServerMap$S8 === void 0 ? void 0 : _operationServerMap$S8.url;
|
|
1302
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1303
|
+
},
|
|
1304
|
+
async apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDelete(tenantId, sessionId, intakeFormId, options) {
|
|
1305
|
+
var _configuration$server9, _operationServerMap$S9;
|
|
1306
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDelete(tenantId, sessionId, intakeFormId, options);
|
|
1307
|
+
const localVarOperationServerIndex = (_configuration$server9 = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _configuration$server9 !== void 0 ? _configuration$server9 : 0;
|
|
1308
|
+
const localVarOperationServerBasePath = (_operationServerMap$S9 = operationServerMap["SessionsApi.apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDelete"]) === null || _operationServerMap$S9 === void 0 || (_operationServerMap$S9 = _operationServerMap$S9[localVarOperationServerIndex]) === null || _operationServerMap$S9 === void 0 ? void 0 : _operationServerMap$S9.url;
|
|
1309
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1310
|
+
},
|
|
1311
|
+
async apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGet(tenantId, sessionId, intakeFormId, options) {
|
|
1312
|
+
var _configuration$server10, _operationServerMap$S10;
|
|
1313
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGet(tenantId, sessionId, intakeFormId, options);
|
|
1314
|
+
const localVarOperationServerIndex = (_configuration$server10 = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _configuration$server10 !== void 0 ? _configuration$server10 : 0;
|
|
1315
|
+
const localVarOperationServerBasePath = (_operationServerMap$S10 = operationServerMap["SessionsApi.apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGet"]) === null || _operationServerMap$S10 === void 0 || (_operationServerMap$S10 = _operationServerMap$S10[localVarOperationServerIndex]) === null || _operationServerMap$S10 === void 0 ? void 0 : _operationServerMap$S10.url;
|
|
1316
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1317
|
+
},
|
|
1318
|
+
async apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatch(tenantId, sessionId, intakeFormId, patchIntakeFormCommand, options) {
|
|
1319
|
+
var _configuration$server11, _operationServerMap$S11;
|
|
1320
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatch(tenantId, sessionId, intakeFormId, patchIntakeFormCommand, options);
|
|
1321
|
+
const localVarOperationServerIndex = (_configuration$server11 = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _configuration$server11 !== void 0 ? _configuration$server11 : 0;
|
|
1322
|
+
const localVarOperationServerBasePath = (_operationServerMap$S11 = operationServerMap["SessionsApi.apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatch"]) === null || _operationServerMap$S11 === void 0 || (_operationServerMap$S11 = _operationServerMap$S11[localVarOperationServerIndex]) === null || _operationServerMap$S11 === void 0 ? void 0 : _operationServerMap$S11.url;
|
|
1323
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1324
|
+
},
|
|
1325
|
+
async apiV1ChatTenantIdSessionsSessionIdIntakeformsPost(tenantId, sessionId, createIntakeFormCommand, options) {
|
|
1326
|
+
var _configuration$server12, _operationServerMap$S12;
|
|
1327
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdIntakeformsPost(tenantId, sessionId, createIntakeFormCommand, options);
|
|
1328
|
+
const localVarOperationServerIndex = (_configuration$server12 = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _configuration$server12 !== void 0 ? _configuration$server12 : 0;
|
|
1329
|
+
const localVarOperationServerBasePath = (_operationServerMap$S12 = operationServerMap["SessionsApi.apiV1ChatTenantIdSessionsSessionIdIntakeformsPost"]) === null || _operationServerMap$S12 === void 0 || (_operationServerMap$S12 = _operationServerMap$S12[localVarOperationServerIndex]) === null || _operationServerMap$S12 === void 0 ? void 0 : _operationServerMap$S12.url;
|
|
1330
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1331
|
+
},
|
|
1332
|
+
async apiV1ChatTenantIdSessionsSessionIdJoinPost(tenantId, sessionId, joinChatSessionCommand, options) {
|
|
1333
|
+
var _configuration$server13, _operationServerMap$S13;
|
|
1334
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdJoinPost(tenantId, sessionId, joinChatSessionCommand, options);
|
|
1335
|
+
const localVarOperationServerIndex = (_configuration$server13 = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _configuration$server13 !== void 0 ? _configuration$server13 : 0;
|
|
1336
|
+
const localVarOperationServerBasePath = (_operationServerMap$S13 = operationServerMap["SessionsApi.apiV1ChatTenantIdSessionsSessionIdJoinPost"]) === null || _operationServerMap$S13 === void 0 || (_operationServerMap$S13 = _operationServerMap$S13[localVarOperationServerIndex]) === null || _operationServerMap$S13 === void 0 ? void 0 : _operationServerMap$S13.url;
|
|
1337
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1338
|
+
},
|
|
1339
|
+
async apiV1ChatTenantIdSessionsSessionIdLeaveDelete(tenantId, sessionId, options) {
|
|
1340
|
+
var _configuration$server14, _operationServerMap$S14;
|
|
1341
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdLeaveDelete(tenantId, sessionId, options);
|
|
1342
|
+
const localVarOperationServerIndex = (_configuration$server14 = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _configuration$server14 !== void 0 ? _configuration$server14 : 0;
|
|
1343
|
+
const localVarOperationServerBasePath = (_operationServerMap$S14 = operationServerMap["SessionsApi.apiV1ChatTenantIdSessionsSessionIdLeaveDelete"]) === null || _operationServerMap$S14 === void 0 || (_operationServerMap$S14 = _operationServerMap$S14[localVarOperationServerIndex]) === null || _operationServerMap$S14 === void 0 ? void 0 : _operationServerMap$S14.url;
|
|
1344
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1345
|
+
},
|
|
1346
|
+
async apiV1ChatTenantIdSessionsSessionIdMessageSendPost(tenantId, sessionId, file, text, mediaId, platformMessageId, caption, link, messageType, phoneNumber, options) {
|
|
1347
|
+
var _configuration$server15, _operationServerMap$S15;
|
|
1348
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdMessageSendPost(tenantId, sessionId, file, text, mediaId, platformMessageId, caption, link, messageType, phoneNumber, options);
|
|
1349
|
+
const localVarOperationServerIndex = (_configuration$server15 = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _configuration$server15 !== void 0 ? _configuration$server15 : 0;
|
|
1350
|
+
const localVarOperationServerBasePath = (_operationServerMap$S15 = operationServerMap["SessionsApi.apiV1ChatTenantIdSessionsSessionIdMessageSendPost"]) === null || _operationServerMap$S15 === void 0 || (_operationServerMap$S15 = _operationServerMap$S15[localVarOperationServerIndex]) === null || _operationServerMap$S15 === void 0 ? void 0 : _operationServerMap$S15.url;
|
|
1351
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1352
|
+
},
|
|
1353
|
+
async apiV1ChatTenantIdSessionsSessionIdMessagesGet(tenantId, sessionId, page, limit, lastRetrieved, options) {
|
|
1354
|
+
var _configuration$server16, _operationServerMap$S16;
|
|
1355
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdMessagesGet(tenantId, sessionId, page, limit, lastRetrieved, options);
|
|
1356
|
+
const localVarOperationServerIndex = (_configuration$server16 = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _configuration$server16 !== void 0 ? _configuration$server16 : 0;
|
|
1357
|
+
const localVarOperationServerBasePath = (_operationServerMap$S16 = operationServerMap["SessionsApi.apiV1ChatTenantIdSessionsSessionIdMessagesGet"]) === null || _operationServerMap$S16 === void 0 || (_operationServerMap$S16 = _operationServerMap$S16[localVarOperationServerIndex]) === null || _operationServerMap$S16 === void 0 ? void 0 : _operationServerMap$S16.url;
|
|
1358
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1359
|
+
},
|
|
1360
|
+
async apiV1ChatTenantIdSessionsSessionIdMessagesMessageIdMediaReactivatePut(tenantId, sessionId, messageId, options) {
|
|
1361
|
+
var _configuration$server17, _operationServerMap$S17;
|
|
1362
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdMessagesMessageIdMediaReactivatePut(tenantId, sessionId, messageId, options);
|
|
1363
|
+
const localVarOperationServerIndex = (_configuration$server17 = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _configuration$server17 !== void 0 ? _configuration$server17 : 0;
|
|
1364
|
+
const localVarOperationServerBasePath = (_operationServerMap$S17 = operationServerMap["SessionsApi.apiV1ChatTenantIdSessionsSessionIdMessagesMessageIdMediaReactivatePut"]) === null || _operationServerMap$S17 === void 0 || (_operationServerMap$S17 = _operationServerMap$S17[localVarOperationServerIndex]) === null || _operationServerMap$S17 === void 0 ? void 0 : _operationServerMap$S17.url;
|
|
1365
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1366
|
+
},
|
|
1367
|
+
async apiV1ChatTenantIdSessionsSessionIdPatch(tenantId, sessionId, putChatSessionCommand, options) {
|
|
1368
|
+
var _configuration$server18, _operationServerMap$S18;
|
|
1369
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdPatch(tenantId, sessionId, putChatSessionCommand, options);
|
|
1370
|
+
const localVarOperationServerIndex = (_configuration$server18 = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _configuration$server18 !== void 0 ? _configuration$server18 : 0;
|
|
1371
|
+
const localVarOperationServerBasePath = (_operationServerMap$S18 = operationServerMap["SessionsApi.apiV1ChatTenantIdSessionsSessionIdPatch"]) === null || _operationServerMap$S18 === void 0 || (_operationServerMap$S18 = _operationServerMap$S18[localVarOperationServerIndex]) === null || _operationServerMap$S18 === void 0 ? void 0 : _operationServerMap$S18.url;
|
|
1372
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1373
|
+
},
|
|
1374
|
+
async apiV1ChatTenantIdSessionsSessionIdTransferPut(tenantId, sessionId, transferManagerCommand, options) {
|
|
1375
|
+
var _configuration$server19, _operationServerMap$S19;
|
|
1376
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdTransferPut(tenantId, sessionId, transferManagerCommand, options);
|
|
1377
|
+
const localVarOperationServerIndex = (_configuration$server19 = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _configuration$server19 !== void 0 ? _configuration$server19 : 0;
|
|
1378
|
+
const localVarOperationServerBasePath = (_operationServerMap$S19 = operationServerMap["SessionsApi.apiV1ChatTenantIdSessionsSessionIdTransferPut"]) === null || _operationServerMap$S19 === void 0 || (_operationServerMap$S19 = _operationServerMap$S19[localVarOperationServerIndex]) === null || _operationServerMap$S19 === void 0 ? void 0 : _operationServerMap$S19.url;
|
|
1379
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1380
|
+
},
|
|
1381
|
+
async apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessageSendPost(tenantId, sessionId, chatSendFlowMessageCommand, options) {
|
|
1382
|
+
var _configuration$server20, _operationServerMap$S20;
|
|
1383
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessageSendPost(tenantId, sessionId, chatSendFlowMessageCommand, options);
|
|
1384
|
+
const localVarOperationServerIndex = (_configuration$server20 = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _configuration$server20 !== void 0 ? _configuration$server20 : 0;
|
|
1385
|
+
const localVarOperationServerBasePath = (_operationServerMap$S20 = operationServerMap["SessionsApi.apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessageSendPost"]) === null || _operationServerMap$S20 === void 0 || (_operationServerMap$S20 = _operationServerMap$S20[localVarOperationServerIndex]) === null || _operationServerMap$S20 === void 0 ? void 0 : _operationServerMap$S20.url;
|
|
1386
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1387
|
+
},
|
|
1388
|
+
async apiV1ChatTenantIdSessionsSessionIdWhatsappTemplateMessageSendPost(tenantId, sessionId, chatSendTemplateMessageCommand, options) {
|
|
1389
|
+
var _configuration$server21, _operationServerMap$S21;
|
|
1390
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdWhatsappTemplateMessageSendPost(tenantId, sessionId, chatSendTemplateMessageCommand, options);
|
|
1391
|
+
const localVarOperationServerIndex = (_configuration$server21 = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _configuration$server21 !== void 0 ? _configuration$server21 : 0;
|
|
1392
|
+
const localVarOperationServerBasePath = (_operationServerMap$S21 = operationServerMap["SessionsApi.apiV1ChatTenantIdSessionsSessionIdWhatsappTemplateMessageSendPost"]) === null || _operationServerMap$S21 === void 0 || (_operationServerMap$S21 = _operationServerMap$S21[localVarOperationServerIndex]) === null || _operationServerMap$S21 === void 0 ? void 0 : _operationServerMap$S21.url;
|
|
1393
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1394
|
+
}
|
|
1395
|
+
};
|
|
1396
|
+
};
|
|
1397
|
+
/**
|
|
1398
|
+
* SessionsApi - factory interface
|
|
1399
|
+
* @export
|
|
1400
|
+
*/
|
|
1401
|
+
const SessionsApiFactory = function(configuration, basePath, axios) {
|
|
1402
|
+
const localVarFp = SessionsApiFp(configuration);
|
|
1403
|
+
return {
|
|
1404
|
+
apiV1ChatTenantIdSessionsGet(requestParameters, options) {
|
|
1405
|
+
return localVarFp.apiV1ChatTenantIdSessionsGet(requestParameters.tenantId, requestParameters.id, requestParameters.targetHospitalId, requestParameters.targetHospitalName, requestParameters.assigneeIds, requestParameters.chatSessionStatus, requestParameters.title, requestParameters.userName, requestParameters.sortBy, requestParameters.isRead, requestParameters.platformType, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(axios, basePath));
|
|
1406
|
+
},
|
|
1407
|
+
apiV1ChatTenantIdSessionsPost(requestParameters, options) {
|
|
1408
|
+
return localVarFp.apiV1ChatTenantIdSessionsPost(requestParameters.tenantId, requestParameters.createChatSessionCommand, options).then((request) => request(axios, basePath));
|
|
1409
|
+
},
|
|
1410
|
+
apiV1ChatTenantIdSessionsSessionIdCheckPost(requestParameters, options) {
|
|
1411
|
+
return localVarFp.apiV1ChatTenantIdSessionsSessionIdCheckPost(requestParameters.tenantId, requestParameters.sessionId, options).then((request) => request(axios, basePath));
|
|
1412
|
+
},
|
|
1413
|
+
apiV1ChatTenantIdSessionsSessionIdConsultStatusPatch(requestParameters, options) {
|
|
1414
|
+
return localVarFp.apiV1ChatTenantIdSessionsSessionIdConsultStatusPatch(requestParameters.tenantId, requestParameters.sessionId, requestParameters.chatSessionConsultStatusCommand, options).then((request) => request(axios, basePath));
|
|
1415
|
+
},
|
|
1416
|
+
apiV1ChatTenantIdSessionsSessionIdConvertsigninuserPost(requestParameters, options) {
|
|
1417
|
+
return localVarFp.apiV1ChatTenantIdSessionsSessionIdConvertsigninuserPost(requestParameters.tenantId, requestParameters.sessionId, options).then((request) => request(axios, basePath));
|
|
1418
|
+
},
|
|
1419
|
+
apiV1ChatTenantIdSessionsSessionIdDelete(requestParameters, options) {
|
|
1420
|
+
return localVarFp.apiV1ChatTenantIdSessionsSessionIdDelete(requestParameters.tenantId, requestParameters.sessionId, options).then((request) => request(axios, basePath));
|
|
1421
|
+
},
|
|
1422
|
+
apiV1ChatTenantIdSessionsSessionIdGet(requestParameters, options) {
|
|
1423
|
+
return localVarFp.apiV1ChatTenantIdSessionsSessionIdGet(requestParameters.tenantId, requestParameters.sessionId, options).then((request) => request(axios, basePath));
|
|
1424
|
+
},
|
|
1425
|
+
apiV1ChatTenantIdSessionsSessionIdIntakeformsGet(requestParameters, options) {
|
|
1426
|
+
return localVarFp.apiV1ChatTenantIdSessionsSessionIdIntakeformsGet(requestParameters.tenantId, requestParameters.sessionId, requestParameters.id, requestParameters.userId, requestParameters.phoneNumber, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(axios, basePath));
|
|
1427
|
+
},
|
|
1428
|
+
apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDelete(requestParameters, options) {
|
|
1429
|
+
return localVarFp.apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDelete(requestParameters.tenantId, requestParameters.sessionId, requestParameters.intakeFormId, options).then((request) => request(axios, basePath));
|
|
1430
|
+
},
|
|
1431
|
+
apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGet(requestParameters, options) {
|
|
1432
|
+
return localVarFp.apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGet(requestParameters.tenantId, requestParameters.sessionId, requestParameters.intakeFormId, options).then((request) => request(axios, basePath));
|
|
1433
|
+
},
|
|
1434
|
+
apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatch(requestParameters, options) {
|
|
1435
|
+
return localVarFp.apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatch(requestParameters.tenantId, requestParameters.sessionId, requestParameters.intakeFormId, requestParameters.patchIntakeFormCommand, options).then((request) => request(axios, basePath));
|
|
1436
|
+
},
|
|
1437
|
+
apiV1ChatTenantIdSessionsSessionIdIntakeformsPost(requestParameters, options) {
|
|
1438
|
+
return localVarFp.apiV1ChatTenantIdSessionsSessionIdIntakeformsPost(requestParameters.tenantId, requestParameters.sessionId, requestParameters.createIntakeFormCommand, options).then((request) => request(axios, basePath));
|
|
1439
|
+
},
|
|
1440
|
+
apiV1ChatTenantIdSessionsSessionIdJoinPost(requestParameters, options) {
|
|
1441
|
+
return localVarFp.apiV1ChatTenantIdSessionsSessionIdJoinPost(requestParameters.tenantId, requestParameters.sessionId, requestParameters.joinChatSessionCommand, options).then((request) => request(axios, basePath));
|
|
1442
|
+
},
|
|
1443
|
+
apiV1ChatTenantIdSessionsSessionIdLeaveDelete(requestParameters, options) {
|
|
1444
|
+
return localVarFp.apiV1ChatTenantIdSessionsSessionIdLeaveDelete(requestParameters.tenantId, requestParameters.sessionId, options).then((request) => request(axios, basePath));
|
|
1445
|
+
},
|
|
1446
|
+
apiV1ChatTenantIdSessionsSessionIdMessageSendPost(requestParameters, options) {
|
|
1447
|
+
return localVarFp.apiV1ChatTenantIdSessionsSessionIdMessageSendPost(requestParameters.tenantId, requestParameters.sessionId, requestParameters.file, requestParameters.text, requestParameters.mediaId, requestParameters.platformMessageId, requestParameters.caption, requestParameters.link, requestParameters.messageType, requestParameters.phoneNumber, options).then((request) => request(axios, basePath));
|
|
1448
|
+
},
|
|
1449
|
+
apiV1ChatTenantIdSessionsSessionIdMessagesGet(requestParameters, options) {
|
|
1450
|
+
return localVarFp.apiV1ChatTenantIdSessionsSessionIdMessagesGet(requestParameters.tenantId, requestParameters.sessionId, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(axios, basePath));
|
|
1451
|
+
},
|
|
1452
|
+
apiV1ChatTenantIdSessionsSessionIdMessagesMessageIdMediaReactivatePut(requestParameters, options) {
|
|
1453
|
+
return localVarFp.apiV1ChatTenantIdSessionsSessionIdMessagesMessageIdMediaReactivatePut(requestParameters.tenantId, requestParameters.sessionId, requestParameters.messageId, options).then((request) => request(axios, basePath));
|
|
1454
|
+
},
|
|
1455
|
+
apiV1ChatTenantIdSessionsSessionIdPatch(requestParameters, options) {
|
|
1456
|
+
return localVarFp.apiV1ChatTenantIdSessionsSessionIdPatch(requestParameters.tenantId, requestParameters.sessionId, requestParameters.putChatSessionCommand, options).then((request) => request(axios, basePath));
|
|
1457
|
+
},
|
|
1458
|
+
apiV1ChatTenantIdSessionsSessionIdTransferPut(requestParameters, options) {
|
|
1459
|
+
return localVarFp.apiV1ChatTenantIdSessionsSessionIdTransferPut(requestParameters.tenantId, requestParameters.sessionId, requestParameters.transferManagerCommand, options).then((request) => request(axios, basePath));
|
|
1460
|
+
},
|
|
1461
|
+
apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessageSendPost(requestParameters, options) {
|
|
1462
|
+
return localVarFp.apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessageSendPost(requestParameters.tenantId, requestParameters.sessionId, requestParameters.chatSendFlowMessageCommand, options).then((request) => request(axios, basePath));
|
|
1463
|
+
},
|
|
1464
|
+
apiV1ChatTenantIdSessionsSessionIdWhatsappTemplateMessageSendPost(requestParameters, options) {
|
|
1465
|
+
return localVarFp.apiV1ChatTenantIdSessionsSessionIdWhatsappTemplateMessageSendPost(requestParameters.tenantId, requestParameters.sessionId, requestParameters.chatSendTemplateMessageCommand, options).then((request) => request(axios, basePath));
|
|
1466
|
+
}
|
|
1467
|
+
};
|
|
1468
|
+
};
|
|
1469
|
+
/**
|
|
1470
|
+
* SessionsApi - object-oriented interface
|
|
1471
|
+
* @export
|
|
1472
|
+
* @class SessionsApi
|
|
1473
|
+
* @extends {BaseAPI}
|
|
1474
|
+
*/
|
|
1475
|
+
var SessionsApi = class extends BaseAPI {
|
|
1476
|
+
/**
|
|
1477
|
+
*
|
|
1478
|
+
* @summary Get all chat sessions.
|
|
1479
|
+
* @param {SessionsApiApiV1ChatTenantIdSessionsGetRequest} requestParameters Request parameters.
|
|
1480
|
+
* @param {*} [options] Override http request option.
|
|
1481
|
+
* @throws {RequiredError}
|
|
1482
|
+
* @memberof SessionsApi
|
|
1483
|
+
*/
|
|
1484
|
+
apiV1ChatTenantIdSessionsGet(requestParameters, options) {
|
|
1485
|
+
return SessionsApiFp(this.configuration).apiV1ChatTenantIdSessionsGet(requestParameters.tenantId, requestParameters.id, requestParameters.targetHospitalId, requestParameters.targetHospitalName, requestParameters.assigneeIds, requestParameters.chatSessionStatus, requestParameters.title, requestParameters.userName, requestParameters.sortBy, requestParameters.isRead, requestParameters.platformType, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
1486
|
+
}
|
|
1487
|
+
/**
|
|
1488
|
+
*
|
|
1489
|
+
* @summary Create a chat session.
|
|
1490
|
+
* @param {SessionsApiApiV1ChatTenantIdSessionsPostRequest} requestParameters Request parameters.
|
|
1491
|
+
* @param {*} [options] Override http request option.
|
|
1492
|
+
* @throws {RequiredError}
|
|
1493
|
+
* @memberof SessionsApi
|
|
1494
|
+
*/
|
|
1495
|
+
apiV1ChatTenantIdSessionsPost(requestParameters, options) {
|
|
1496
|
+
return SessionsApiFp(this.configuration).apiV1ChatTenantIdSessionsPost(requestParameters.tenantId, requestParameters.createChatSessionCommand, options).then((request) => request(this.axios, this.basePath));
|
|
1497
|
+
}
|
|
1498
|
+
/**
|
|
1499
|
+
*
|
|
1500
|
+
* @summary Check if a chat session read message
|
|
1501
|
+
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdCheckPostRequest} requestParameters Request parameters.
|
|
1502
|
+
* @param {*} [options] Override http request option.
|
|
1503
|
+
* @throws {RequiredError}
|
|
1504
|
+
* @memberof SessionsApi
|
|
1505
|
+
*/
|
|
1506
|
+
apiV1ChatTenantIdSessionsSessionIdCheckPost(requestParameters, options) {
|
|
1507
|
+
return SessionsApiFp(this.configuration).apiV1ChatTenantIdSessionsSessionIdCheckPost(requestParameters.tenantId, requestParameters.sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
1508
|
+
}
|
|
1509
|
+
/**
|
|
1510
|
+
*
|
|
1511
|
+
* @summary Check if a chat session read message
|
|
1512
|
+
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdConsultStatusPatchRequest} requestParameters Request parameters.
|
|
1513
|
+
* @param {*} [options] Override http request option.
|
|
1514
|
+
* @throws {RequiredError}
|
|
1515
|
+
* @memberof SessionsApi
|
|
1516
|
+
*/
|
|
1517
|
+
apiV1ChatTenantIdSessionsSessionIdConsultStatusPatch(requestParameters, options) {
|
|
1518
|
+
return SessionsApiFp(this.configuration).apiV1ChatTenantIdSessionsSessionIdConsultStatusPatch(requestParameters.tenantId, requestParameters.sessionId, requestParameters.chatSessionConsultStatusCommand, options).then((request) => request(this.axios, this.basePath));
|
|
1519
|
+
}
|
|
1520
|
+
/**
|
|
1521
|
+
*
|
|
1522
|
+
* @summary Convert a guest to a signed-in user.
|
|
1523
|
+
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdConvertsigninuserPostRequest} requestParameters Request parameters.
|
|
1524
|
+
* @param {*} [options] Override http request option.
|
|
1525
|
+
* @throws {RequiredError}
|
|
1526
|
+
* @memberof SessionsApi
|
|
1527
|
+
*/
|
|
1528
|
+
apiV1ChatTenantIdSessionsSessionIdConvertsigninuserPost(requestParameters, options) {
|
|
1529
|
+
return SessionsApiFp(this.configuration).apiV1ChatTenantIdSessionsSessionIdConvertsigninuserPost(requestParameters.tenantId, requestParameters.sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
1530
|
+
}
|
|
1531
|
+
/**
|
|
1532
|
+
*
|
|
1533
|
+
* @summary Delete a chat session.
|
|
1534
|
+
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdDeleteRequest} requestParameters Request parameters.
|
|
1535
|
+
* @param {*} [options] Override http request option.
|
|
1536
|
+
* @throws {RequiredError}
|
|
1537
|
+
* @memberof SessionsApi
|
|
1538
|
+
*/
|
|
1539
|
+
apiV1ChatTenantIdSessionsSessionIdDelete(requestParameters, options) {
|
|
1540
|
+
return SessionsApiFp(this.configuration).apiV1ChatTenantIdSessionsSessionIdDelete(requestParameters.tenantId, requestParameters.sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
1541
|
+
}
|
|
1542
|
+
/**
|
|
1543
|
+
*
|
|
1544
|
+
* @summary Get chat session by session Id.
|
|
1545
|
+
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdGetRequest} requestParameters Request parameters.
|
|
1546
|
+
* @param {*} [options] Override http request option.
|
|
1547
|
+
* @throws {RequiredError}
|
|
1548
|
+
* @memberof SessionsApi
|
|
1549
|
+
*/
|
|
1550
|
+
apiV1ChatTenantIdSessionsSessionIdGet(requestParameters, options) {
|
|
1551
|
+
return SessionsApiFp(this.configuration).apiV1ChatTenantIdSessionsSessionIdGet(requestParameters.tenantId, requestParameters.sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
1552
|
+
}
|
|
1553
|
+
/**
|
|
1554
|
+
*
|
|
1555
|
+
* @summary Get intake forms by session id.
|
|
1556
|
+
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdIntakeformsGetRequest} requestParameters Request parameters.
|
|
1557
|
+
* @param {*} [options] Override http request option.
|
|
1558
|
+
* @throws {RequiredError}
|
|
1559
|
+
* @memberof SessionsApi
|
|
1560
|
+
*/
|
|
1561
|
+
apiV1ChatTenantIdSessionsSessionIdIntakeformsGet(requestParameters, options) {
|
|
1562
|
+
return SessionsApiFp(this.configuration).apiV1ChatTenantIdSessionsSessionIdIntakeformsGet(requestParameters.tenantId, requestParameters.sessionId, requestParameters.id, requestParameters.userId, requestParameters.phoneNumber, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
1563
|
+
}
|
|
1564
|
+
/**
|
|
1565
|
+
*
|
|
1566
|
+
* @summary Delete intake form by id.
|
|
1567
|
+
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDeleteRequest} requestParameters Request parameters.
|
|
1568
|
+
* @param {*} [options] Override http request option.
|
|
1569
|
+
* @throws {RequiredError}
|
|
1570
|
+
* @memberof SessionsApi
|
|
1571
|
+
*/
|
|
1572
|
+
apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDelete(requestParameters, options) {
|
|
1573
|
+
return SessionsApiFp(this.configuration).apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDelete(requestParameters.tenantId, requestParameters.sessionId, requestParameters.intakeFormId, options).then((request) => request(this.axios, this.basePath));
|
|
1574
|
+
}
|
|
1575
|
+
/**
|
|
1576
|
+
*
|
|
1577
|
+
* @summary Get intake form by id.
|
|
1578
|
+
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGetRequest} requestParameters Request parameters.
|
|
1579
|
+
* @param {*} [options] Override http request option.
|
|
1580
|
+
* @throws {RequiredError}
|
|
1581
|
+
* @memberof SessionsApi
|
|
1582
|
+
*/
|
|
1583
|
+
apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGet(requestParameters, options) {
|
|
1584
|
+
return SessionsApiFp(this.configuration).apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGet(requestParameters.tenantId, requestParameters.sessionId, requestParameters.intakeFormId, options).then((request) => request(this.axios, this.basePath));
|
|
1585
|
+
}
|
|
1586
|
+
/**
|
|
1587
|
+
*
|
|
1588
|
+
* @summary Update intake form by id.
|
|
1589
|
+
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatchRequest} requestParameters Request parameters.
|
|
1590
|
+
* @param {*} [options] Override http request option.
|
|
1591
|
+
* @throws {RequiredError}
|
|
1592
|
+
* @memberof SessionsApi
|
|
1593
|
+
*/
|
|
1594
|
+
apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatch(requestParameters, options) {
|
|
1595
|
+
return SessionsApiFp(this.configuration).apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatch(requestParameters.tenantId, requestParameters.sessionId, requestParameters.intakeFormId, requestParameters.patchIntakeFormCommand, options).then((request) => request(this.axios, this.basePath));
|
|
1596
|
+
}
|
|
1597
|
+
/**
|
|
1598
|
+
*
|
|
1599
|
+
* @summary Create a new intake form.
|
|
1600
|
+
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdIntakeformsPostRequest} requestParameters Request parameters.
|
|
1601
|
+
* @param {*} [options] Override http request option.
|
|
1602
|
+
* @throws {RequiredError}
|
|
1603
|
+
* @memberof SessionsApi
|
|
1604
|
+
*/
|
|
1605
|
+
apiV1ChatTenantIdSessionsSessionIdIntakeformsPost(requestParameters, options) {
|
|
1606
|
+
return SessionsApiFp(this.configuration).apiV1ChatTenantIdSessionsSessionIdIntakeformsPost(requestParameters.tenantId, requestParameters.sessionId, requestParameters.createIntakeFormCommand, options).then((request) => request(this.axios, this.basePath));
|
|
1607
|
+
}
|
|
1608
|
+
/**
|
|
1609
|
+
*
|
|
1610
|
+
* @summary Join a chat session.
|
|
1611
|
+
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdJoinPostRequest} requestParameters Request parameters.
|
|
1612
|
+
* @param {*} [options] Override http request option.
|
|
1613
|
+
* @throws {RequiredError}
|
|
1614
|
+
* @memberof SessionsApi
|
|
1615
|
+
*/
|
|
1616
|
+
apiV1ChatTenantIdSessionsSessionIdJoinPost(requestParameters, options) {
|
|
1617
|
+
return SessionsApiFp(this.configuration).apiV1ChatTenantIdSessionsSessionIdJoinPost(requestParameters.tenantId, requestParameters.sessionId, requestParameters.joinChatSessionCommand, options).then((request) => request(this.axios, this.basePath));
|
|
1618
|
+
}
|
|
1619
|
+
/**
|
|
1620
|
+
*
|
|
1621
|
+
* @summary Leave a chat session.
|
|
1622
|
+
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdLeaveDeleteRequest} requestParameters Request parameters.
|
|
1623
|
+
* @param {*} [options] Override http request option.
|
|
1624
|
+
* @throws {RequiredError}
|
|
1625
|
+
* @memberof SessionsApi
|
|
1626
|
+
*/
|
|
1627
|
+
apiV1ChatTenantIdSessionsSessionIdLeaveDelete(requestParameters, options) {
|
|
1628
|
+
return SessionsApiFp(this.configuration).apiV1ChatTenantIdSessionsSessionIdLeaveDelete(requestParameters.tenantId, requestParameters.sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
1629
|
+
}
|
|
1630
|
+
/**
|
|
1631
|
+
*
|
|
1632
|
+
* @summary Send a message in a chat session.
|
|
1633
|
+
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdMessageSendPostRequest} requestParameters Request parameters.
|
|
1634
|
+
* @param {*} [options] Override http request option.
|
|
1635
|
+
* @throws {RequiredError}
|
|
1636
|
+
* @memberof SessionsApi
|
|
1637
|
+
*/
|
|
1638
|
+
apiV1ChatTenantIdSessionsSessionIdMessageSendPost(requestParameters, options) {
|
|
1639
|
+
return SessionsApiFp(this.configuration).apiV1ChatTenantIdSessionsSessionIdMessageSendPost(requestParameters.tenantId, requestParameters.sessionId, requestParameters.file, requestParameters.text, requestParameters.mediaId, requestParameters.platformMessageId, requestParameters.caption, requestParameters.link, requestParameters.messageType, requestParameters.phoneNumber, options).then((request) => request(this.axios, this.basePath));
|
|
1640
|
+
}
|
|
1641
|
+
/**
|
|
1642
|
+
*
|
|
1643
|
+
* @summary Get messages from a chat session.
|
|
1644
|
+
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdMessagesGetRequest} requestParameters Request parameters.
|
|
1645
|
+
* @param {*} [options] Override http request option.
|
|
1646
|
+
* @throws {RequiredError}
|
|
1647
|
+
* @memberof SessionsApi
|
|
1648
|
+
*/
|
|
1649
|
+
apiV1ChatTenantIdSessionsSessionIdMessagesGet(requestParameters, options) {
|
|
1650
|
+
return SessionsApiFp(this.configuration).apiV1ChatTenantIdSessionsSessionIdMessagesGet(requestParameters.tenantId, requestParameters.sessionId, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
1651
|
+
}
|
|
1652
|
+
/**
|
|
1653
|
+
*
|
|
1654
|
+
* @summary Reactivate expired media in a chat message.
|
|
1655
|
+
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdMessagesMessageIdMediaReactivatePutRequest} requestParameters Request parameters.
|
|
1656
|
+
* @param {*} [options] Override http request option.
|
|
1657
|
+
* @throws {RequiredError}
|
|
1658
|
+
* @memberof SessionsApi
|
|
1659
|
+
*/
|
|
1660
|
+
apiV1ChatTenantIdSessionsSessionIdMessagesMessageIdMediaReactivatePut(requestParameters, options) {
|
|
1661
|
+
return SessionsApiFp(this.configuration).apiV1ChatTenantIdSessionsSessionIdMessagesMessageIdMediaReactivatePut(requestParameters.tenantId, requestParameters.sessionId, requestParameters.messageId, options).then((request) => request(this.axios, this.basePath));
|
|
1662
|
+
}
|
|
1663
|
+
/**
|
|
1664
|
+
*
|
|
1665
|
+
* @summary Update a chat session.
|
|
1666
|
+
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdPatchRequest} requestParameters Request parameters.
|
|
1667
|
+
* @param {*} [options] Override http request option.
|
|
1668
|
+
* @throws {RequiredError}
|
|
1669
|
+
* @memberof SessionsApi
|
|
1670
|
+
*/
|
|
1671
|
+
apiV1ChatTenantIdSessionsSessionIdPatch(requestParameters, options) {
|
|
1672
|
+
return SessionsApiFp(this.configuration).apiV1ChatTenantIdSessionsSessionIdPatch(requestParameters.tenantId, requestParameters.sessionId, requestParameters.putChatSessionCommand, options).then((request) => request(this.axios, this.basePath));
|
|
1673
|
+
}
|
|
1674
|
+
/**
|
|
1675
|
+
*
|
|
1676
|
+
* @summary Transfer a chat session agent.
|
|
1677
|
+
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdTransferPutRequest} requestParameters Request parameters.
|
|
1678
|
+
* @param {*} [options] Override http request option.
|
|
1679
|
+
* @throws {RequiredError}
|
|
1680
|
+
* @memberof SessionsApi
|
|
1681
|
+
*/
|
|
1682
|
+
apiV1ChatTenantIdSessionsSessionIdTransferPut(requestParameters, options) {
|
|
1683
|
+
return SessionsApiFp(this.configuration).apiV1ChatTenantIdSessionsSessionIdTransferPut(requestParameters.tenantId, requestParameters.sessionId, requestParameters.transferManagerCommand, options).then((request) => request(this.axios, this.basePath));
|
|
1684
|
+
}
|
|
1685
|
+
/**
|
|
1686
|
+
*
|
|
1687
|
+
* @summary Send whatsapp flow message
|
|
1688
|
+
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessageSendPostRequest} requestParameters Request parameters.
|
|
1689
|
+
* @param {*} [options] Override http request option.
|
|
1690
|
+
* @throws {RequiredError}
|
|
1691
|
+
* @memberof SessionsApi
|
|
1692
|
+
*/
|
|
1693
|
+
apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessageSendPost(requestParameters, options) {
|
|
1694
|
+
return SessionsApiFp(this.configuration).apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessageSendPost(requestParameters.tenantId, requestParameters.sessionId, requestParameters.chatSendFlowMessageCommand, options).then((request) => request(this.axios, this.basePath));
|
|
1695
|
+
}
|
|
1696
|
+
/**
|
|
1697
|
+
*
|
|
1698
|
+
* @summary Send whatsapp template message
|
|
1699
|
+
* @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdWhatsappTemplateMessageSendPostRequest} requestParameters Request parameters.
|
|
1700
|
+
* @param {*} [options] Override http request option.
|
|
1701
|
+
* @throws {RequiredError}
|
|
1702
|
+
* @memberof SessionsApi
|
|
1703
|
+
*/
|
|
1704
|
+
apiV1ChatTenantIdSessionsSessionIdWhatsappTemplateMessageSendPost(requestParameters, options) {
|
|
1705
|
+
return SessionsApiFp(this.configuration).apiV1ChatTenantIdSessionsSessionIdWhatsappTemplateMessageSendPost(requestParameters.tenantId, requestParameters.sessionId, requestParameters.chatSendTemplateMessageCommand, options).then((request) => request(this.axios, this.basePath));
|
|
1706
|
+
}
|
|
1707
|
+
};
|
|
1708
|
+
|
|
1709
|
+
//#endregion
|
|
1710
|
+
//#region src/api/whats-apps-api.ts
|
|
1711
|
+
/**
|
|
1712
|
+
* WhatsAppsApi - axios parameter creator
|
|
1713
|
+
* @export
|
|
1714
|
+
*/
|
|
1715
|
+
const WhatsAppsApiAxiosParamCreator = function(configuration) {
|
|
1716
|
+
return { apiV1ChatWhatsappsMarketingTemplateMessagesSendPost: async (chatSendMarketingTemplateMessageCommand, options = {}) => {
|
|
1717
|
+
const localVarPath = `/api/v1/chat/whatsapps/marketing/template/messages/send`;
|
|
1718
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1719
|
+
let baseOptions;
|
|
1720
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
1721
|
+
const localVarRequestOptions = {
|
|
1722
|
+
method: "POST",
|
|
1723
|
+
...baseOptions,
|
|
1724
|
+
...options
|
|
1725
|
+
};
|
|
1726
|
+
const localVarHeaderParameter = {};
|
|
1727
|
+
const localVarQueryParameter = {};
|
|
1728
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
1729
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1730
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1731
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1732
|
+
localVarRequestOptions.headers = {
|
|
1733
|
+
...localVarHeaderParameter,
|
|
1734
|
+
...headersFromBaseOptions,
|
|
1735
|
+
...options.headers
|
|
1736
|
+
};
|
|
1737
|
+
localVarRequestOptions.data = serializeDataIfNeeded(chatSendMarketingTemplateMessageCommand, localVarRequestOptions, configuration);
|
|
1738
|
+
return {
|
|
1739
|
+
url: toPathString(localVarUrlObj),
|
|
1740
|
+
options: localVarRequestOptions
|
|
1741
|
+
};
|
|
1742
|
+
} };
|
|
1743
|
+
};
|
|
1744
|
+
/**
|
|
1745
|
+
* WhatsAppsApi - functional programming interface
|
|
1746
|
+
* @export
|
|
1747
|
+
*/
|
|
1748
|
+
const WhatsAppsApiFp = function(configuration) {
|
|
1749
|
+
const localVarAxiosParamCreator = WhatsAppsApiAxiosParamCreator(configuration);
|
|
1750
|
+
return { async apiV1ChatWhatsappsMarketingTemplateMessagesSendPost(chatSendMarketingTemplateMessageCommand, options) {
|
|
1751
|
+
var _configuration$server, _operationServerMap$W;
|
|
1752
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatWhatsappsMarketingTemplateMessagesSendPost(chatSendMarketingTemplateMessageCommand, options);
|
|
1753
|
+
const localVarOperationServerIndex = (_configuration$server = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _configuration$server !== void 0 ? _configuration$server : 0;
|
|
1754
|
+
const localVarOperationServerBasePath = (_operationServerMap$W = operationServerMap["WhatsAppsApi.apiV1ChatWhatsappsMarketingTemplateMessagesSendPost"]) === null || _operationServerMap$W === void 0 || (_operationServerMap$W = _operationServerMap$W[localVarOperationServerIndex]) === null || _operationServerMap$W === void 0 ? void 0 : _operationServerMap$W.url;
|
|
1755
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1756
|
+
} };
|
|
1757
|
+
};
|
|
1758
|
+
/**
|
|
1759
|
+
* WhatsAppsApi - factory interface
|
|
1760
|
+
* @export
|
|
1761
|
+
*/
|
|
1762
|
+
const WhatsAppsApiFactory = function(configuration, basePath, axios) {
|
|
1763
|
+
const localVarFp = WhatsAppsApiFp(configuration);
|
|
1764
|
+
return { apiV1ChatWhatsappsMarketingTemplateMessagesSendPost(requestParameters = {}, options) {
|
|
1765
|
+
return localVarFp.apiV1ChatWhatsappsMarketingTemplateMessagesSendPost(requestParameters.chatSendMarketingTemplateMessageCommand, options).then((request) => request(axios, basePath));
|
|
1766
|
+
} };
|
|
1767
|
+
};
|
|
1768
|
+
/**
|
|
1769
|
+
* WhatsAppsApi - object-oriented interface
|
|
1770
|
+
* @export
|
|
1771
|
+
* @class WhatsAppsApi
|
|
1772
|
+
* @extends {BaseAPI}
|
|
1773
|
+
*/
|
|
1774
|
+
var WhatsAppsApi = class extends BaseAPI {
|
|
1775
|
+
/**
|
|
1776
|
+
*
|
|
1777
|
+
* @summary Send WhatsApp Marketing template Message
|
|
1778
|
+
* @param {WhatsAppsApiApiV1ChatWhatsappsMarketingTemplateMessagesSendPostRequest} requestParameters Request parameters.
|
|
1779
|
+
* @param {*} [options] Override http request option.
|
|
1780
|
+
* @throws {RequiredError}
|
|
1781
|
+
* @memberof WhatsAppsApi
|
|
1782
|
+
*/
|
|
1783
|
+
apiV1ChatWhatsappsMarketingTemplateMessagesSendPost(requestParameters = {}, options) {
|
|
1784
|
+
return WhatsAppsApiFp(this.configuration).apiV1ChatWhatsappsMarketingTemplateMessagesSendPost(requestParameters.chatSendMarketingTemplateMessageCommand, options).then((request) => request(this.axios, this.basePath));
|
|
1785
|
+
}
|
|
1786
|
+
};
|
|
1787
|
+
|
|
1788
|
+
//#endregion
|
|
1789
|
+
//#region src/configuration.ts
|
|
1790
|
+
var Configuration = class {
|
|
1791
|
+
constructor(param = {}) {
|
|
1792
|
+
this.apiKey = void 0;
|
|
1793
|
+
this.username = void 0;
|
|
1794
|
+
this.password = void 0;
|
|
1795
|
+
this.accessToken = void 0;
|
|
1796
|
+
this.basePath = void 0;
|
|
1797
|
+
this.serverIndex = void 0;
|
|
1798
|
+
this.baseOptions = void 0;
|
|
1799
|
+
this.formDataCtor = void 0;
|
|
1800
|
+
this.apiKey = param.apiKey;
|
|
1801
|
+
this.username = param.username;
|
|
1802
|
+
this.password = param.password;
|
|
1803
|
+
this.accessToken = param.accessToken;
|
|
1804
|
+
this.basePath = param.basePath;
|
|
1805
|
+
this.serverIndex = param.serverIndex;
|
|
1806
|
+
this.baseOptions = param.baseOptions;
|
|
1807
|
+
this.formDataCtor = param.formDataCtor;
|
|
1808
|
+
}
|
|
1809
|
+
/**
|
|
1810
|
+
* Check if the given MIME is a JSON MIME.
|
|
1811
|
+
* JSON MIME examples:
|
|
1812
|
+
* application/json
|
|
1813
|
+
* application/json; charset=UTF8
|
|
1814
|
+
* APPLICATION/JSON
|
|
1815
|
+
* application/vnd.company+json
|
|
1816
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
1817
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
1818
|
+
*/
|
|
1819
|
+
isJsonMime(mime) {
|
|
1820
|
+
const jsonMime = new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$", "i");
|
|
1821
|
+
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === "application/json-patch+json");
|
|
1822
|
+
}
|
|
1823
|
+
};
|
|
1824
|
+
|
|
1825
|
+
//#endregion
|
|
1826
|
+
//#region src/models/author-roles.ts
|
|
1827
|
+
/**
|
|
1828
|
+
* CloudHospital.ChatApi
|
|
1829
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
1830
|
+
*
|
|
1831
|
+
* The version of the OpenAPI document: 1.0
|
|
1832
|
+
*
|
|
1833
|
+
*
|
|
1834
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1835
|
+
* https://openapi-generator.tech
|
|
1836
|
+
* Do not edit the class manually.
|
|
1837
|
+
*/
|
|
1838
|
+
/**
|
|
1839
|
+
*
|
|
1840
|
+
* @export
|
|
1841
|
+
* @enum {string}
|
|
1842
|
+
*/
|
|
1843
|
+
const AuthorRoles = {
|
|
1844
|
+
User: "user",
|
|
1845
|
+
Agent: "agent",
|
|
1846
|
+
Guest: "guest",
|
|
1847
|
+
System: "system"
|
|
1848
|
+
};
|
|
1849
|
+
|
|
1850
|
+
//#endregion
|
|
1851
|
+
//#region src/models/chat-session-status.ts
|
|
1852
|
+
/**
|
|
1853
|
+
* CloudHospital.ChatApi
|
|
1854
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
1855
|
+
*
|
|
1856
|
+
* The version of the OpenAPI document: 1.0
|
|
1857
|
+
*
|
|
1858
|
+
*
|
|
1859
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1860
|
+
* https://openapi-generator.tech
|
|
1861
|
+
* Do not edit the class manually.
|
|
1862
|
+
*/
|
|
1863
|
+
/**
|
|
1864
|
+
*
|
|
1865
|
+
* @export
|
|
1866
|
+
* @enum {string}
|
|
1867
|
+
*/
|
|
1868
|
+
const ChatSessionStatus = {
|
|
1869
|
+
Deactivated: "deactivated",
|
|
1870
|
+
Activated: "activated",
|
|
1871
|
+
Expired: "expired",
|
|
1872
|
+
RequireAgentResponse: "requireAgentResponse"
|
|
1873
|
+
};
|
|
1874
|
+
|
|
1875
|
+
//#endregion
|
|
1876
|
+
//#region src/models/consult-status.ts
|
|
1877
|
+
/**
|
|
1878
|
+
* CloudHospital.ChatApi
|
|
1879
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
1880
|
+
*
|
|
1881
|
+
* The version of the OpenAPI document: 1.0
|
|
1882
|
+
*
|
|
1883
|
+
*
|
|
1884
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1885
|
+
* https://openapi-generator.tech
|
|
1886
|
+
* Do not edit the class manually.
|
|
1887
|
+
*/
|
|
1888
|
+
/**
|
|
1889
|
+
*
|
|
1890
|
+
* @export
|
|
1891
|
+
* @enum {string}
|
|
1892
|
+
*/
|
|
1893
|
+
const ConsultStatus = {
|
|
1894
|
+
Working: "working",
|
|
1895
|
+
Resovled: "resovled"
|
|
1896
|
+
};
|
|
1897
|
+
|
|
1898
|
+
//#endregion
|
|
1899
|
+
//#region src/models/message-type.ts
|
|
1900
|
+
/**
|
|
1901
|
+
* CloudHospital.ChatApi
|
|
1902
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
1903
|
+
*
|
|
1904
|
+
* The version of the OpenAPI document: 1.0
|
|
1905
|
+
*
|
|
1906
|
+
*
|
|
1907
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1908
|
+
* https://openapi-generator.tech
|
|
1909
|
+
* Do not edit the class manually.
|
|
1910
|
+
*/
|
|
1911
|
+
/**
|
|
1912
|
+
*
|
|
1913
|
+
* @export
|
|
1914
|
+
* @enum {string}
|
|
1915
|
+
*/
|
|
1916
|
+
const MessageType = {
|
|
1917
|
+
Text: "text",
|
|
1918
|
+
Document: "document",
|
|
1919
|
+
Image: "image",
|
|
1920
|
+
Audio: "audio",
|
|
1921
|
+
Video: "video",
|
|
1922
|
+
Location: "location",
|
|
1923
|
+
Contact: "contact",
|
|
1924
|
+
Template: "template",
|
|
1925
|
+
Interactive: "interactive",
|
|
1926
|
+
Emoji: "emoji",
|
|
1927
|
+
Button: "button"
|
|
1928
|
+
};
|
|
1929
|
+
|
|
1930
|
+
//#endregion
|
|
1931
|
+
//#region src/models/notification-code.ts
|
|
1932
|
+
/**
|
|
1933
|
+
* CloudHospital.ChatApi
|
|
1934
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
1935
|
+
*
|
|
1936
|
+
* The version of the OpenAPI document: 1.0
|
|
1937
|
+
*
|
|
1938
|
+
*
|
|
1939
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1940
|
+
* https://openapi-generator.tech
|
|
1941
|
+
* Do not edit the class manually.
|
|
1942
|
+
*/
|
|
1943
|
+
/**
|
|
1944
|
+
*
|
|
1945
|
+
* @export
|
|
1946
|
+
* @enum {string}
|
|
1947
|
+
*/
|
|
1948
|
+
const NotificationCode = {
|
|
1949
|
+
WelcomeEmail: "WelcomeEmail",
|
|
1950
|
+
DirectMessageSent: "DirectMessageSent",
|
|
1951
|
+
BookingNew: "BookingNew",
|
|
1952
|
+
BookingUpdated: "BookingUpdated",
|
|
1953
|
+
BookingRejected: "BookingRejected",
|
|
1954
|
+
BookingApproved: "BookingApproved",
|
|
1955
|
+
BookingPaid: "BookingPaid",
|
|
1956
|
+
BookingCanceled: "BookingCanceled",
|
|
1957
|
+
BookingRefundRequested: "BookingRefundRequested",
|
|
1958
|
+
BookingRefunded: "BookingRefunded",
|
|
1959
|
+
ConsultationNew: "ConsultationNew",
|
|
1960
|
+
ConsultationUpdated: "ConsultationUpdated",
|
|
1961
|
+
ConsultationRejected: "ConsultationRejected",
|
|
1962
|
+
ConsultationApproved: "ConsultationApproved",
|
|
1963
|
+
ConsultationPaid: "ConsultationPaid",
|
|
1964
|
+
ConsultationCanceled: "ConsultationCanceled",
|
|
1965
|
+
ConsultationRefundRequested: "ConsultationRefundRequested",
|
|
1966
|
+
ConsultationRefunded: "ConsultationRefunded",
|
|
1967
|
+
ConsultationReady: "ConsultationReady",
|
|
1968
|
+
CallCompleted: "CallCompleted",
|
|
1969
|
+
FormSubmitted: "FormSubmitted",
|
|
1970
|
+
AppointmentNew: "AppointmentNew",
|
|
1971
|
+
AppointmentUpdated: "AppointmentUpdated",
|
|
1972
|
+
AppointmentRejected: "AppointmentRejected",
|
|
1973
|
+
AppointmentApproved: "AppointmentApproved",
|
|
1974
|
+
AppointmentPaid: "AppointmentPaid",
|
|
1975
|
+
AppointmentCanceled: "AppointmentCanceled",
|
|
1976
|
+
AppointmentCanceledByPatient: "AppointmentCanceledByPatient",
|
|
1977
|
+
AppointmentCanceledByManager: "AppointmentCanceledByManager",
|
|
1978
|
+
AppointmentRefundRequested: "AppointmentRefundRequested",
|
|
1979
|
+
AppointmentRefunded: "AppointmentRefunded",
|
|
1980
|
+
AppointmentRescheduleRequested: "AppointmentRescheduleRequested",
|
|
1981
|
+
AppointmentRescheduleRequestApproved: "AppointmentRescheduleRequestApproved",
|
|
1982
|
+
AppointmentReady: "AppointmentReady",
|
|
1983
|
+
HandoffRequested: "HandoffRequested",
|
|
1984
|
+
SessionDeleted: "SessionDeleted",
|
|
1985
|
+
TransferAgent: "TransferAgent",
|
|
1986
|
+
LeaveAgent: "LeaveAgent",
|
|
1987
|
+
JoinAgent: "JoinAgent",
|
|
1988
|
+
UpdateSession: "UpdateSession",
|
|
1989
|
+
ConvertToSignInUser: "ConvertToSignInUser",
|
|
1990
|
+
PatchIntakeForm: "PatchIntakeForm",
|
|
1991
|
+
UpdateChatSessionStatus: "UpdateChatSessionStatus",
|
|
1992
|
+
CreateIntakeForm: "CreateIntakeForm",
|
|
1993
|
+
CheckedChatSession: "CheckedChatSession",
|
|
1994
|
+
RecreateChatSession: "RecreateChatSession",
|
|
1995
|
+
UnassignedNotification: "UnassignedNotification",
|
|
1996
|
+
AssignedNotification: "AssignedNotification",
|
|
1997
|
+
AutoAgentRemoval: "AutoAgentRemoval",
|
|
1998
|
+
ChangedConsultStatus: "ChangedConsultStatus",
|
|
1999
|
+
ForceSignOut: "ForceSignOut"
|
|
2000
|
+
};
|
|
2001
|
+
|
|
2002
|
+
//#endregion
|
|
2003
|
+
//#region src/models/platform-types.ts
|
|
2004
|
+
/**
|
|
2005
|
+
* CloudHospital.ChatApi
|
|
2006
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
2007
|
+
*
|
|
2008
|
+
* The version of the OpenAPI document: 1.0
|
|
2009
|
+
*
|
|
2010
|
+
*
|
|
2011
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2012
|
+
* https://openapi-generator.tech
|
|
2013
|
+
* Do not edit the class manually.
|
|
2014
|
+
*/
|
|
2015
|
+
/**
|
|
2016
|
+
*
|
|
2017
|
+
* @export
|
|
2018
|
+
* @enum {string}
|
|
2019
|
+
*/
|
|
2020
|
+
const PlatformTypes = {
|
|
2021
|
+
Admin: "admin",
|
|
2022
|
+
WhatsApp: "whatsApp"
|
|
2023
|
+
};
|
|
2024
|
+
|
|
2025
|
+
//#endregion
|
|
2026
|
+
//#region src/models/sort-by.ts
|
|
2027
|
+
/**
|
|
2028
|
+
* CloudHospital.ChatApi
|
|
2029
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
2030
|
+
*
|
|
2031
|
+
* The version of the OpenAPI document: 1.0
|
|
2032
|
+
*
|
|
2033
|
+
*
|
|
2034
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2035
|
+
* https://openapi-generator.tech
|
|
2036
|
+
* Do not edit the class manually.
|
|
2037
|
+
*/
|
|
2038
|
+
/**
|
|
2039
|
+
*
|
|
2040
|
+
* @export
|
|
2041
|
+
* @enum {string}
|
|
2042
|
+
*/
|
|
2043
|
+
const SortBy = {
|
|
2044
|
+
Ascending: "ascending",
|
|
2045
|
+
Descending: "descending"
|
|
2046
|
+
};
|
|
2047
|
+
|
|
2048
|
+
//#endregion
|
|
2049
|
+
//#region src/models/timeframe-duration.ts
|
|
2050
|
+
/**
|
|
2051
|
+
* CloudHospital.ChatApi
|
|
2052
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
2053
|
+
*
|
|
2054
|
+
* The version of the OpenAPI document: 1.0
|
|
2055
|
+
*
|
|
2056
|
+
*
|
|
2057
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2058
|
+
* https://openapi-generator.tech
|
|
2059
|
+
* Do not edit the class manually.
|
|
2060
|
+
*/
|
|
2061
|
+
/**
|
|
2062
|
+
*
|
|
2063
|
+
* @export
|
|
2064
|
+
* @enum {string}
|
|
2065
|
+
*/
|
|
2066
|
+
const TimeframeDuration = {
|
|
2067
|
+
Daily: "Daily",
|
|
2068
|
+
Last1Week: "Last_1_Week",
|
|
2069
|
+
Last4Week: "Last_4_Week",
|
|
2070
|
+
Last3Month: "Last_3_Month",
|
|
2071
|
+
Last6Month: "Last_6_Month",
|
|
2072
|
+
Last12Month: "Last_12_Month"
|
|
2073
|
+
};
|
|
2074
|
+
|
|
2075
|
+
//#endregion
|
|
2076
|
+
//#region src/models/whats-app-language-code.ts
|
|
2077
|
+
/**
|
|
2078
|
+
* CloudHospital.ChatApi
|
|
2079
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
2080
|
+
*
|
|
2081
|
+
* The version of the OpenAPI document: 1.0
|
|
2082
|
+
*
|
|
2083
|
+
*
|
|
2084
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2085
|
+
* https://openapi-generator.tech
|
|
2086
|
+
* Do not edit the class manually.
|
|
2087
|
+
*/
|
|
2088
|
+
/**
|
|
2089
|
+
*
|
|
2090
|
+
* @export
|
|
2091
|
+
* @enum {string}
|
|
2092
|
+
*/
|
|
2093
|
+
const WhatsAppLanguageCode = {
|
|
2094
|
+
Af: "af",
|
|
2095
|
+
Sq: "sq",
|
|
2096
|
+
Ar: "ar",
|
|
2097
|
+
ArEg: "ar_EG",
|
|
2098
|
+
ArAe: "ar_AE",
|
|
2099
|
+
ArLb: "ar_LB",
|
|
2100
|
+
ArMa: "ar_MA",
|
|
2101
|
+
ArQa: "ar_QA",
|
|
2102
|
+
Az: "az",
|
|
2103
|
+
BeBy: "be_BY",
|
|
2104
|
+
Bn: "bn",
|
|
2105
|
+
BnIn: "bn_IN",
|
|
2106
|
+
Bg: "bg",
|
|
2107
|
+
Ca: "ca",
|
|
2108
|
+
ZhCn: "zh_CN",
|
|
2109
|
+
ZhHk: "zh_HK",
|
|
2110
|
+
ZhTw: "zh_TW",
|
|
2111
|
+
Hr: "hr",
|
|
2112
|
+
Cs: "cs",
|
|
2113
|
+
Da: "da",
|
|
2114
|
+
PrsAf: "prs_AF",
|
|
2115
|
+
Nl: "nl",
|
|
2116
|
+
NlBe: "nl_BE",
|
|
2117
|
+
En: "en",
|
|
2118
|
+
EnGb: "en_GB",
|
|
2119
|
+
EnUs: "en_US",
|
|
2120
|
+
EnAe: "en_AE",
|
|
2121
|
+
EnAu: "en_AU",
|
|
2122
|
+
EnCa: "en_CA",
|
|
2123
|
+
EnGh: "en_GH",
|
|
2124
|
+
EnIe: "en_IE",
|
|
2125
|
+
EnIn: "en_IN",
|
|
2126
|
+
EnJm: "en_JM",
|
|
2127
|
+
EnMy: "en_MY",
|
|
2128
|
+
EnNz: "en_NZ",
|
|
2129
|
+
EnQa: "en_QA",
|
|
2130
|
+
EnSg: "en_SG",
|
|
2131
|
+
EnUg: "en_UG",
|
|
2132
|
+
EnZa: "en_ZA",
|
|
2133
|
+
Et: "et",
|
|
2134
|
+
Fil: "fil",
|
|
2135
|
+
Fi: "fi",
|
|
2136
|
+
Fr: "fr",
|
|
2137
|
+
FrBe: "fr_BE",
|
|
2138
|
+
FrCa: "fr_CA",
|
|
2139
|
+
FrCh: "fr_CH",
|
|
2140
|
+
FrCi: "fr_CI",
|
|
2141
|
+
FrMa: "fr_MA",
|
|
2142
|
+
Ka: "ka",
|
|
2143
|
+
De: "de",
|
|
2144
|
+
DeAt: "de_AT",
|
|
2145
|
+
DeCh: "de_CH",
|
|
2146
|
+
El: "el",
|
|
2147
|
+
Gu: "gu",
|
|
2148
|
+
Ha: "ha",
|
|
2149
|
+
He: "he",
|
|
2150
|
+
Hi: "hi",
|
|
2151
|
+
Hu: "hu",
|
|
2152
|
+
Id: "id",
|
|
2153
|
+
Ga: "ga",
|
|
2154
|
+
It: "it",
|
|
2155
|
+
Ja: "ja",
|
|
2156
|
+
Kn: "kn",
|
|
2157
|
+
Kk: "kk",
|
|
2158
|
+
RwRw: "rw_RW",
|
|
2159
|
+
Ko: "ko",
|
|
2160
|
+
KyKg: "ky_KG",
|
|
2161
|
+
Lo: "lo",
|
|
2162
|
+
Lv: "lv",
|
|
2163
|
+
Lt: "lt",
|
|
2164
|
+
Mk: "mk",
|
|
2165
|
+
Ms: "ms",
|
|
2166
|
+
Ml: "ml",
|
|
2167
|
+
Mr: "mr",
|
|
2168
|
+
Nb: "nb",
|
|
2169
|
+
PsAf: "ps_AF",
|
|
2170
|
+
Fa: "fa",
|
|
2171
|
+
Pl: "pl",
|
|
2172
|
+
PtBr: "pt_BR",
|
|
2173
|
+
PtPt: "pt_PT",
|
|
2174
|
+
Pa: "pa",
|
|
2175
|
+
Ro: "ro",
|
|
2176
|
+
Ru: "ru",
|
|
2177
|
+
Sr: "sr",
|
|
2178
|
+
SiLk: "si_LK",
|
|
2179
|
+
Sk: "sk",
|
|
2180
|
+
Sl: "sl",
|
|
2181
|
+
Es: "es",
|
|
2182
|
+
EsAr: "es_AR",
|
|
2183
|
+
EsCl: "es_CL",
|
|
2184
|
+
EsCo: "es_CO",
|
|
2185
|
+
EsCr: "es_CR",
|
|
2186
|
+
EsDo: "es_DO",
|
|
2187
|
+
EsEc: "es_EC",
|
|
2188
|
+
EsHn: "es_HN",
|
|
2189
|
+
EsMx: "es_MX",
|
|
2190
|
+
EsPa: "es_PA",
|
|
2191
|
+
EsPe: "es_PE",
|
|
2192
|
+
EsEs: "es_ES",
|
|
2193
|
+
EsUy: "es_UY",
|
|
2194
|
+
Sw: "sw",
|
|
2195
|
+
Sv: "sv",
|
|
2196
|
+
Ta: "ta",
|
|
2197
|
+
Te: "te",
|
|
2198
|
+
Th: "th",
|
|
2199
|
+
Tr: "tr",
|
|
2200
|
+
Uk: "uk",
|
|
2201
|
+
Ur: "ur",
|
|
2202
|
+
Uz: "uz",
|
|
2203
|
+
Vi: "vi",
|
|
2204
|
+
Zu: "zu"
|
|
2205
|
+
};
|
|
2206
|
+
|
|
2207
|
+
//#endregion
|
|
2208
|
+
export { AuthorRoles, ChatSessionStatus, Configuration, ConsultStatus, DashboardApi, DashboardApiAxiosParamCreator, DashboardApiFactory, DashboardApiFp, MessageType, MigrationsApi, MigrationsApiAxiosParamCreator, MigrationsApiFactory, MigrationsApiFp, NotificationCode, NotificationsApi, NotificationsApiAxiosParamCreator, NotificationsApiFactory, NotificationsApiFp, PlatformTypes, SessionsApi, SessionsApiAxiosParamCreator, SessionsApiFactory, SessionsApiFp, SortBy, TimeframeDuration, WhatsAppLanguageCode, WhatsAppsApi, WhatsAppsApiAxiosParamCreator, WhatsAppsApiFactory, WhatsAppsApiFp };
|
|
2209
|
+
//# sourceMappingURL=index.mjs.map
|