ch-chat-api-typescript-axios 1.1.1 → 1.1.3
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/api/chat-api.d.ts +125 -77
- package/dist/api/chat-api.js +106 -59
- package/dist/api/chat-api.js.map +1 -1
- package/dist/api/guest-api.d.ts +160 -0
- package/dist/api/guest-api.js +224 -0
- package/dist/api/guest-api.js.map +1 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/api.js.map +1 -1
- package/dist/models/api-v1-chat-tenant-id-sessions-get401-response-errors.d.ts +24 -0
- package/dist/models/api-v1-chat-tenant-id-sessions-get401-response-errors.js +16 -0
- package/dist/models/api-v1-chat-tenant-id-sessions-get401-response-errors.js.map +1 -0
- package/dist/models/api-v1-chat-tenant-id-sessions-get401-response.d.ts +49 -0
- package/dist/models/api-v1-chat-tenant-id-sessions-get401-response.js +16 -0
- package/dist/models/api-v1-chat-tenant-id-sessions-get401-response.js.map +1 -0
- package/dist/models/chat-session-model.d.ts +13 -1
- package/dist/models/create-chat-session-command.d.ts +6 -0
- package/dist/models/guest-chat-send-message-command.d.ts +37 -0
- package/dist/models/{problem-details.js → guest-chat-send-message-command.js} +1 -1
- package/dist/models/guest-chat-send-message-command.js.map +1 -0
- package/dist/models/{problem-details.d.ts → guest-create-chat-session-command.d.ts} +12 -18
- package/dist/models/guest-create-chat-session-command.js +16 -0
- package/dist/models/guest-create-chat-session-command.js.map +1 -0
- package/dist/models/index.d.ts +4 -1
- package/dist/models/index.js +4 -1
- package/dist/models/index.js.map +1 -1
- package/dist/models/join-chat-session-command.d.ts +0 -6
- package/package.json +1 -1
- package/dist/models/problem-details.js.map +0 -1
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cloudhospital.ChatApi
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from '../configuration';
|
|
13
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
+
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import type { ChatMessageModel } from '../models';
|
|
16
|
+
import type { ChatSessionModel } from '../models';
|
|
17
|
+
import type { GuestChatSendMessageCommand } from '../models';
|
|
18
|
+
import type { GuestCreateChatSessionCommand } from '../models';
|
|
19
|
+
/**
|
|
20
|
+
* GuestApi - axios parameter creator
|
|
21
|
+
* @export
|
|
22
|
+
*/
|
|
23
|
+
export declare const GuestApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @summary Creates a new chat session for a guest.
|
|
27
|
+
* @param {string} tenantId The tenant identifier.
|
|
28
|
+
* @param {GuestCreateChatSessionCommand} [guestCreateChatSessionCommand] The command containing session details.
|
|
29
|
+
* @param {*} [options] Override http request option.
|
|
30
|
+
* @throws {RequiredError}
|
|
31
|
+
*/
|
|
32
|
+
apiV1GuestChatTenantIdSessionsPost: (tenantId: string, guestCreateChatSessionCommand?: GuestCreateChatSessionCommand, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @summary Sends a message in an existing chat session.
|
|
36
|
+
* @param {string} tenantId The tenant identifier.
|
|
37
|
+
* @param {string} sessionId The session identifier.
|
|
38
|
+
* @param {GuestChatSendMessageCommand} [guestChatSendMessageCommand] The command containing message details.
|
|
39
|
+
* @param {*} [options] Override http request option.
|
|
40
|
+
* @throws {RequiredError}
|
|
41
|
+
*/
|
|
42
|
+
apiV1GuestChatTenantIdSessionsSessionIdMessagesPost: (tenantId: string, sessionId: string, guestChatSendMessageCommand?: GuestChatSendMessageCommand, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* GuestApi - functional programming interface
|
|
46
|
+
* @export
|
|
47
|
+
*/
|
|
48
|
+
export declare const GuestApiFp: (configuration?: Configuration) => {
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @summary Creates a new chat session for a guest.
|
|
52
|
+
* @param {string} tenantId The tenant identifier.
|
|
53
|
+
* @param {GuestCreateChatSessionCommand} [guestCreateChatSessionCommand] The command containing session details.
|
|
54
|
+
* @param {*} [options] Override http request option.
|
|
55
|
+
* @throws {RequiredError}
|
|
56
|
+
*/
|
|
57
|
+
apiV1GuestChatTenantIdSessionsPost(tenantId: string, guestCreateChatSessionCommand?: GuestCreateChatSessionCommand, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatSessionModel>>;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @summary Sends a message in an existing chat session.
|
|
61
|
+
* @param {string} tenantId The tenant identifier.
|
|
62
|
+
* @param {string} sessionId The session identifier.
|
|
63
|
+
* @param {GuestChatSendMessageCommand} [guestChatSendMessageCommand] The command containing message details.
|
|
64
|
+
* @param {*} [options] Override http request option.
|
|
65
|
+
* @throws {RequiredError}
|
|
66
|
+
*/
|
|
67
|
+
apiV1GuestChatTenantIdSessionsSessionIdMessagesPost(tenantId: string, sessionId: string, guestChatSendMessageCommand?: GuestChatSendMessageCommand, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatMessageModel>>;
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* GuestApi - factory interface
|
|
71
|
+
* @export
|
|
72
|
+
*/
|
|
73
|
+
export declare const GuestApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @summary Creates a new chat session for a guest.
|
|
77
|
+
* @param {GuestApiApiV1GuestChatTenantIdSessionsPostRequest} requestParameters Request parameters.
|
|
78
|
+
* @param {*} [options] Override http request option.
|
|
79
|
+
* @throws {RequiredError}
|
|
80
|
+
*/
|
|
81
|
+
apiV1GuestChatTenantIdSessionsPost(requestParameters: GuestApiApiV1GuestChatTenantIdSessionsPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<ChatSessionModel>;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @summary Sends a message in an existing chat session.
|
|
85
|
+
* @param {GuestApiApiV1GuestChatTenantIdSessionsSessionIdMessagesPostRequest} requestParameters Request parameters.
|
|
86
|
+
* @param {*} [options] Override http request option.
|
|
87
|
+
* @throws {RequiredError}
|
|
88
|
+
*/
|
|
89
|
+
apiV1GuestChatTenantIdSessionsSessionIdMessagesPost(requestParameters: GuestApiApiV1GuestChatTenantIdSessionsSessionIdMessagesPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<ChatMessageModel>;
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* Request parameters for apiV1GuestChatTenantIdSessionsPost operation in GuestApi.
|
|
93
|
+
* @export
|
|
94
|
+
* @interface GuestApiApiV1GuestChatTenantIdSessionsPostRequest
|
|
95
|
+
*/
|
|
96
|
+
export interface GuestApiApiV1GuestChatTenantIdSessionsPostRequest {
|
|
97
|
+
/**
|
|
98
|
+
* The tenant identifier.
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @memberof GuestApiApiV1GuestChatTenantIdSessionsPost
|
|
101
|
+
*/
|
|
102
|
+
readonly tenantId: string;
|
|
103
|
+
/**
|
|
104
|
+
* The command containing session details.
|
|
105
|
+
* @type {GuestCreateChatSessionCommand}
|
|
106
|
+
* @memberof GuestApiApiV1GuestChatTenantIdSessionsPost
|
|
107
|
+
*/
|
|
108
|
+
readonly guestCreateChatSessionCommand?: GuestCreateChatSessionCommand;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Request parameters for apiV1GuestChatTenantIdSessionsSessionIdMessagesPost operation in GuestApi.
|
|
112
|
+
* @export
|
|
113
|
+
* @interface GuestApiApiV1GuestChatTenantIdSessionsSessionIdMessagesPostRequest
|
|
114
|
+
*/
|
|
115
|
+
export interface GuestApiApiV1GuestChatTenantIdSessionsSessionIdMessagesPostRequest {
|
|
116
|
+
/**
|
|
117
|
+
* The tenant identifier.
|
|
118
|
+
* @type {string}
|
|
119
|
+
* @memberof GuestApiApiV1GuestChatTenantIdSessionsSessionIdMessagesPost
|
|
120
|
+
*/
|
|
121
|
+
readonly tenantId: string;
|
|
122
|
+
/**
|
|
123
|
+
* The session identifier.
|
|
124
|
+
* @type {string}
|
|
125
|
+
* @memberof GuestApiApiV1GuestChatTenantIdSessionsSessionIdMessagesPost
|
|
126
|
+
*/
|
|
127
|
+
readonly sessionId: string;
|
|
128
|
+
/**
|
|
129
|
+
* The command containing message details.
|
|
130
|
+
* @type {GuestChatSendMessageCommand}
|
|
131
|
+
* @memberof GuestApiApiV1GuestChatTenantIdSessionsSessionIdMessagesPost
|
|
132
|
+
*/
|
|
133
|
+
readonly guestChatSendMessageCommand?: GuestChatSendMessageCommand;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* GuestApi - object-oriented interface
|
|
137
|
+
* @export
|
|
138
|
+
* @class GuestApi
|
|
139
|
+
* @extends {BaseAPI}
|
|
140
|
+
*/
|
|
141
|
+
export declare class GuestApi extends BaseAPI {
|
|
142
|
+
/**
|
|
143
|
+
*
|
|
144
|
+
* @summary Creates a new chat session for a guest.
|
|
145
|
+
* @param {GuestApiApiV1GuestChatTenantIdSessionsPostRequest} requestParameters Request parameters.
|
|
146
|
+
* @param {*} [options] Override http request option.
|
|
147
|
+
* @throws {RequiredError}
|
|
148
|
+
* @memberof GuestApi
|
|
149
|
+
*/
|
|
150
|
+
apiV1GuestChatTenantIdSessionsPost(requestParameters: GuestApiApiV1GuestChatTenantIdSessionsPostRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatSessionModel, any>>;
|
|
151
|
+
/**
|
|
152
|
+
*
|
|
153
|
+
* @summary Sends a message in an existing chat session.
|
|
154
|
+
* @param {GuestApiApiV1GuestChatTenantIdSessionsSessionIdMessagesPostRequest} requestParameters Request parameters.
|
|
155
|
+
* @param {*} [options] Override http request option.
|
|
156
|
+
* @throws {RequiredError}
|
|
157
|
+
* @memberof GuestApi
|
|
158
|
+
*/
|
|
159
|
+
apiV1GuestChatTenantIdSessionsSessionIdMessagesPost(requestParameters: GuestApiApiV1GuestChatTenantIdSessionsSessionIdMessagesPostRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessageModel, any>>;
|
|
160
|
+
}
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Cloudhospital.ChatApi
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.GuestApi = exports.GuestApiFactory = exports.GuestApiFp = exports.GuestApiAxiosParamCreator = void 0;
|
|
29
|
+
const axios_1 = __importDefault(require("axios"));
|
|
30
|
+
// Some imports not used depending on template conditions
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
const common_1 = require("../common");
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
const base_1 = require("../base");
|
|
35
|
+
/**
|
|
36
|
+
* GuestApi - axios parameter creator
|
|
37
|
+
* @export
|
|
38
|
+
*/
|
|
39
|
+
const GuestApiAxiosParamCreator = function (configuration) {
|
|
40
|
+
return {
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @summary Creates a new chat session for a guest.
|
|
44
|
+
* @param {string} tenantId The tenant identifier.
|
|
45
|
+
* @param {GuestCreateChatSessionCommand} [guestCreateChatSessionCommand] The command containing session details.
|
|
46
|
+
* @param {*} [options] Override http request option.
|
|
47
|
+
* @throws {RequiredError}
|
|
48
|
+
*/
|
|
49
|
+
apiV1GuestChatTenantIdSessionsPost: (tenantId_1, guestCreateChatSessionCommand_1, ...args_1) => __awaiter(this, [tenantId_1, guestCreateChatSessionCommand_1, ...args_1], void 0, function* (tenantId, guestCreateChatSessionCommand, options = {}) {
|
|
50
|
+
// verify required parameter 'tenantId' is not null or undefined
|
|
51
|
+
(0, common_1.assertParamExists)('apiV1GuestChatTenantIdSessionsPost', 'tenantId', tenantId);
|
|
52
|
+
const localVarPath = `/api/v1/guest/chat/{tenantId}/sessions`
|
|
53
|
+
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)));
|
|
54
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
55
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
56
|
+
let baseOptions;
|
|
57
|
+
if (configuration) {
|
|
58
|
+
baseOptions = configuration.baseOptions;
|
|
59
|
+
}
|
|
60
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
61
|
+
const localVarHeaderParameter = {};
|
|
62
|
+
const localVarQueryParameter = {};
|
|
63
|
+
// authentication oauth2 required
|
|
64
|
+
// oauth required
|
|
65
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
66
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
67
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
68
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
69
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
70
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(guestCreateChatSessionCommand, localVarRequestOptions, configuration);
|
|
71
|
+
return {
|
|
72
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
73
|
+
options: localVarRequestOptions,
|
|
74
|
+
};
|
|
75
|
+
}),
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @summary Sends a message in an existing chat session.
|
|
79
|
+
* @param {string} tenantId The tenant identifier.
|
|
80
|
+
* @param {string} sessionId The session identifier.
|
|
81
|
+
* @param {GuestChatSendMessageCommand} [guestChatSendMessageCommand] The command containing message details.
|
|
82
|
+
* @param {*} [options] Override http request option.
|
|
83
|
+
* @throws {RequiredError}
|
|
84
|
+
*/
|
|
85
|
+
apiV1GuestChatTenantIdSessionsSessionIdMessagesPost: (tenantId_1, sessionId_1, guestChatSendMessageCommand_1, ...args_1) => __awaiter(this, [tenantId_1, sessionId_1, guestChatSendMessageCommand_1, ...args_1], void 0, function* (tenantId, sessionId, guestChatSendMessageCommand, options = {}) {
|
|
86
|
+
// verify required parameter 'tenantId' is not null or undefined
|
|
87
|
+
(0, common_1.assertParamExists)('apiV1GuestChatTenantIdSessionsSessionIdMessagesPost', 'tenantId', tenantId);
|
|
88
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
89
|
+
(0, common_1.assertParamExists)('apiV1GuestChatTenantIdSessionsSessionIdMessagesPost', 'sessionId', sessionId);
|
|
90
|
+
const localVarPath = `/api/v1/guest/chat/{tenantId}/sessions/{sessionId}/messages`
|
|
91
|
+
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)))
|
|
92
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
93
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
94
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
95
|
+
let baseOptions;
|
|
96
|
+
if (configuration) {
|
|
97
|
+
baseOptions = configuration.baseOptions;
|
|
98
|
+
}
|
|
99
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
100
|
+
const localVarHeaderParameter = {};
|
|
101
|
+
const localVarQueryParameter = {};
|
|
102
|
+
// authentication oauth2 required
|
|
103
|
+
// oauth required
|
|
104
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
105
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
106
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
107
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
108
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
109
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(guestChatSendMessageCommand, localVarRequestOptions, configuration);
|
|
110
|
+
return {
|
|
111
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
112
|
+
options: localVarRequestOptions,
|
|
113
|
+
};
|
|
114
|
+
}),
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
exports.GuestApiAxiosParamCreator = GuestApiAxiosParamCreator;
|
|
118
|
+
/**
|
|
119
|
+
* GuestApi - functional programming interface
|
|
120
|
+
* @export
|
|
121
|
+
*/
|
|
122
|
+
const GuestApiFp = function (configuration) {
|
|
123
|
+
const localVarAxiosParamCreator = (0, exports.GuestApiAxiosParamCreator)(configuration);
|
|
124
|
+
return {
|
|
125
|
+
/**
|
|
126
|
+
*
|
|
127
|
+
* @summary Creates a new chat session for a guest.
|
|
128
|
+
* @param {string} tenantId The tenant identifier.
|
|
129
|
+
* @param {GuestCreateChatSessionCommand} [guestCreateChatSessionCommand] The command containing session details.
|
|
130
|
+
* @param {*} [options] Override http request option.
|
|
131
|
+
* @throws {RequiredError}
|
|
132
|
+
*/
|
|
133
|
+
apiV1GuestChatTenantIdSessionsPost(tenantId, guestCreateChatSessionCommand, options) {
|
|
134
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
135
|
+
var _a, _b, _c;
|
|
136
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1GuestChatTenantIdSessionsPost(tenantId, guestCreateChatSessionCommand, options);
|
|
137
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
138
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['GuestApi.apiV1GuestChatTenantIdSessionsPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
139
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
140
|
+
});
|
|
141
|
+
},
|
|
142
|
+
/**
|
|
143
|
+
*
|
|
144
|
+
* @summary Sends a message in an existing chat session.
|
|
145
|
+
* @param {string} tenantId The tenant identifier.
|
|
146
|
+
* @param {string} sessionId The session identifier.
|
|
147
|
+
* @param {GuestChatSendMessageCommand} [guestChatSendMessageCommand] The command containing message details.
|
|
148
|
+
* @param {*} [options] Override http request option.
|
|
149
|
+
* @throws {RequiredError}
|
|
150
|
+
*/
|
|
151
|
+
apiV1GuestChatTenantIdSessionsSessionIdMessagesPost(tenantId, sessionId, guestChatSendMessageCommand, options) {
|
|
152
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
153
|
+
var _a, _b, _c;
|
|
154
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1GuestChatTenantIdSessionsSessionIdMessagesPost(tenantId, sessionId, guestChatSendMessageCommand, options);
|
|
155
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
156
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['GuestApi.apiV1GuestChatTenantIdSessionsSessionIdMessagesPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
157
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
158
|
+
});
|
|
159
|
+
},
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
exports.GuestApiFp = GuestApiFp;
|
|
163
|
+
/**
|
|
164
|
+
* GuestApi - factory interface
|
|
165
|
+
* @export
|
|
166
|
+
*/
|
|
167
|
+
const GuestApiFactory = function (configuration, basePath, axios) {
|
|
168
|
+
const localVarFp = (0, exports.GuestApiFp)(configuration);
|
|
169
|
+
return {
|
|
170
|
+
/**
|
|
171
|
+
*
|
|
172
|
+
* @summary Creates a new chat session for a guest.
|
|
173
|
+
* @param {GuestApiApiV1GuestChatTenantIdSessionsPostRequest} requestParameters Request parameters.
|
|
174
|
+
* @param {*} [options] Override http request option.
|
|
175
|
+
* @throws {RequiredError}
|
|
176
|
+
*/
|
|
177
|
+
apiV1GuestChatTenantIdSessionsPost(requestParameters, options) {
|
|
178
|
+
return localVarFp.apiV1GuestChatTenantIdSessionsPost(requestParameters.tenantId, requestParameters.guestCreateChatSessionCommand, options).then((request) => request(axios, basePath));
|
|
179
|
+
},
|
|
180
|
+
/**
|
|
181
|
+
*
|
|
182
|
+
* @summary Sends a message in an existing chat session.
|
|
183
|
+
* @param {GuestApiApiV1GuestChatTenantIdSessionsSessionIdMessagesPostRequest} requestParameters Request parameters.
|
|
184
|
+
* @param {*} [options] Override http request option.
|
|
185
|
+
* @throws {RequiredError}
|
|
186
|
+
*/
|
|
187
|
+
apiV1GuestChatTenantIdSessionsSessionIdMessagesPost(requestParameters, options) {
|
|
188
|
+
return localVarFp.apiV1GuestChatTenantIdSessionsSessionIdMessagesPost(requestParameters.tenantId, requestParameters.sessionId, requestParameters.guestChatSendMessageCommand, options).then((request) => request(axios, basePath));
|
|
189
|
+
},
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
exports.GuestApiFactory = GuestApiFactory;
|
|
193
|
+
/**
|
|
194
|
+
* GuestApi - object-oriented interface
|
|
195
|
+
* @export
|
|
196
|
+
* @class GuestApi
|
|
197
|
+
* @extends {BaseAPI}
|
|
198
|
+
*/
|
|
199
|
+
class GuestApi extends base_1.BaseAPI {
|
|
200
|
+
/**
|
|
201
|
+
*
|
|
202
|
+
* @summary Creates a new chat session for a guest.
|
|
203
|
+
* @param {GuestApiApiV1GuestChatTenantIdSessionsPostRequest} requestParameters Request parameters.
|
|
204
|
+
* @param {*} [options] Override http request option.
|
|
205
|
+
* @throws {RequiredError}
|
|
206
|
+
* @memberof GuestApi
|
|
207
|
+
*/
|
|
208
|
+
apiV1GuestChatTenantIdSessionsPost(requestParameters, options) {
|
|
209
|
+
return (0, exports.GuestApiFp)(this.configuration).apiV1GuestChatTenantIdSessionsPost(requestParameters.tenantId, requestParameters.guestCreateChatSessionCommand, options).then((request) => request(this.axios, this.basePath));
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
*
|
|
213
|
+
* @summary Sends a message in an existing chat session.
|
|
214
|
+
* @param {GuestApiApiV1GuestChatTenantIdSessionsSessionIdMessagesPostRequest} requestParameters Request parameters.
|
|
215
|
+
* @param {*} [options] Override http request option.
|
|
216
|
+
* @throws {RequiredError}
|
|
217
|
+
* @memberof GuestApi
|
|
218
|
+
*/
|
|
219
|
+
apiV1GuestChatTenantIdSessionsSessionIdMessagesPost(requestParameters, options) {
|
|
220
|
+
return (0, exports.GuestApiFp)(this.configuration).apiV1GuestChatTenantIdSessionsSessionIdMessagesPost(requestParameters.tenantId, requestParameters.sessionId, requestParameters.guestChatSendMessageCommand, options).then((request) => request(this.axios, this.basePath));
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
exports.GuestApi = GuestApi;
|
|
224
|
+
//# sourceMappingURL=guest-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"guest-api.js","sourceRoot":"","sources":["../../src/api/guest-api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;;;;;;;;;;;;AAKH,kDAAgC;AAChC,yDAAyD;AACzD,aAAa;AACb,sCAA6N;AAC7N,aAAa;AACb,kCAAsH;AAWtH;;;GAGG;AACI,MAAM,yBAAyB,GAAG,UAAU,aAA6B;IAC5E,OAAO;QACH;;;;;;;WAOG;QACH,kCAAkC,EAAE,yDAAmJ,EAAE,8FAA9I,QAAgB,EAAE,6BAA6D,EAAE,UAAiC,EAAE;YAC3J,gEAAgE;YAChE,IAAA,0BAAiB,EAAC,oCAAoC,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAA;YAC7E,MAAM,YAAY,GAAG,wCAAwC;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A,eAAe,mBAwB1B;AAmDF;;;;;GAKG;AACH,MAAa,QAAS,SAAQ,cAAO;IACjC;;;;;;;OAOG;IACI,kCAAkC,CAAC,iBAAoE,EAAE,OAA+B;QAC3I,OAAO,IAAA,kBAAU,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC,kCAAkC,CAAC,iBAAiB,CAAC,QAAQ,EAAE,iBAAiB,CAAC,6BAA6B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACzN,CAAC;IAED;;;;;;;OAOG;IACI,mDAAmD,CAAC,iBAAqF,EAAE,OAA+B;QAC7K,OAAO,IAAA,kBAAU,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC,mDAAmD,CAAC,iBAAiB,CAAC,QAAQ,EAAE,iBAAiB,CAAC,SAAS,EAAE,iBAAiB,CAAC,2BAA2B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACrQ,CAAC;CACJ;AAxBD,4BAwBC"}
|
package/dist/api.d.ts
CHANGED
package/dist/api.js
CHANGED
|
@@ -28,4 +28,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
30
|
__exportStar(require("./api/chat-api"), exports);
|
|
31
|
+
__exportStar(require("./api/guest-api"), exports);
|
|
31
32
|
//# sourceMappingURL=api.js.map
|
package/dist/api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.js","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;;;;;;;;;;;;;AAIH,iDAA+B"}
|
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;;;;;;;;;;;;;AAIH,iDAA+B;AAC/B,kDAAgC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cloudhospital.ChatApi
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ApiV1ChatTenantIdSessionsGet401ResponseErrors
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiV1ChatTenantIdSessionsGet401ResponseErrors {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof ApiV1ChatTenantIdSessionsGet401ResponseErrors
|
|
22
|
+
*/
|
|
23
|
+
'message'?: Array<string>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Cloudhospital.ChatApi
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
//# sourceMappingURL=api-v1-chat-tenant-id-sessions-get401-response-errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-v1-chat-tenant-id-sessions-get401-response-errors.js","sourceRoot":"","sources":["../../src/models/api-v1-chat-tenant-id-sessions-get401-response-errors.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cloudhospital.ChatApi
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ApiV1ChatTenantIdSessionsGet401ResponseErrors } from './api-v1-chat-tenant-id-sessions-get401-response-errors';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiV1ChatTenantIdSessionsGet401Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiV1ChatTenantIdSessionsGet401Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ApiV1ChatTenantIdSessionsGet401Response
|
|
23
|
+
*/
|
|
24
|
+
'title'?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof ApiV1ChatTenantIdSessionsGet401Response
|
|
29
|
+
*/
|
|
30
|
+
'status'?: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof ApiV1ChatTenantIdSessionsGet401Response
|
|
35
|
+
*/
|
|
36
|
+
'instance'?: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ApiV1ChatTenantIdSessionsGet401Response
|
|
41
|
+
*/
|
|
42
|
+
'traceId'?: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {ApiV1ChatTenantIdSessionsGet401ResponseErrors}
|
|
46
|
+
* @memberof ApiV1ChatTenantIdSessionsGet401Response
|
|
47
|
+
*/
|
|
48
|
+
'errors'?: ApiV1ChatTenantIdSessionsGet401ResponseErrors;
|
|
49
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Cloudhospital.ChatApi
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
//# sourceMappingURL=api-v1-chat-tenant-id-sessions-get401-response.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-v1-chat-tenant-id-sessions-get401-response.js","sourceRoot":"","sources":["../../src/models/api-v1-chat-tenant-id-sessions-get401-response.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"}
|
|
@@ -51,6 +51,12 @@ export interface ChatSessionModel {
|
|
|
51
51
|
* @memberof ChatSessionModel
|
|
52
52
|
*/
|
|
53
53
|
'userEmail'?: string | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof ChatSessionModel
|
|
58
|
+
*/
|
|
59
|
+
'phoneNumber'?: string | null;
|
|
54
60
|
/**
|
|
55
61
|
*
|
|
56
62
|
* @type {boolean}
|
|
@@ -74,7 +80,7 @@ export interface ChatSessionModel {
|
|
|
74
80
|
* @type {string}
|
|
75
81
|
* @memberof ChatSessionModel
|
|
76
82
|
*/
|
|
77
|
-
'createdBy'?: string;
|
|
83
|
+
'createdBy'?: string | null;
|
|
78
84
|
/**
|
|
79
85
|
*
|
|
80
86
|
* @type {Date}
|
|
@@ -87,4 +93,10 @@ export interface ChatSessionModel {
|
|
|
87
93
|
* @memberof ChatSessionModel
|
|
88
94
|
*/
|
|
89
95
|
'updatedBy'?: string | null;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {boolean}
|
|
99
|
+
* @memberof ChatSessionModel
|
|
100
|
+
*/
|
|
101
|
+
'isGuest'?: boolean;
|
|
90
102
|
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cloudhospital.ChatApi
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { MessageTypes } from './message-types';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GuestChatSendMessageCommand
|
|
17
|
+
*/
|
|
18
|
+
export interface GuestChatSendMessageCommand {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {MessageTypes}
|
|
22
|
+
* @memberof GuestChatSendMessageCommand
|
|
23
|
+
*/
|
|
24
|
+
'messageType'?: MessageTypes;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof GuestChatSendMessageCommand
|
|
29
|
+
*/
|
|
30
|
+
'contents'?: string | null;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof GuestChatSendMessageCommand
|
|
35
|
+
*/
|
|
36
|
+
'fromPhoneNumber'?: string | null;
|
|
37
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"guest-chat-send-message-command.js","sourceRoot":"","sources":["../../src/models/guest-chat-send-message-command.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"}
|