ch-api-client-typescript2 5.3.6 → 5.3.8
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/lib/api/call-histories-api.d.ts +10 -10
- package/lib/api/call-histories-api.d.ts.map +1 -1
- package/lib/api/call-histories-api.js +63 -43
- package/lib/models/call-status.d.ts +1 -0
- package/lib/models/call-status.d.ts.map +1 -1
- package/lib/models/call-status.js +2 -1
- package/lib/models/create-call-history-command.d.ts +0 -48
- package/lib/models/create-call-history-command.d.ts.map +1 -1
- package/lib/models/update-call-history-command.d.ts +2 -26
- package/lib/models/update-call-history-command.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/api/call-histories-api.ts +23 -15
- package/src/models/call-status.ts +2 -1
- package/src/models/create-call-history-command.ts +0 -48
- package/src/models/update-call-history-command.ts +2 -26
|
@@ -27,7 +27,7 @@ export declare const CallHistoriesApiAxiosParamCreator: (configuration?: Configu
|
|
|
27
27
|
* @param {*} [options] Override http request option.
|
|
28
28
|
* @throws {RequiredError}
|
|
29
29
|
*/
|
|
30
|
-
|
|
30
|
+
apiV2CallhistoriesCallIdPut: (callId: string, updateCallHistoryCommand?: UpdateCallHistoryCommand, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
33
|
* @summary Create Call History
|
|
@@ -50,7 +50,7 @@ export declare const CallHistoriesApiFp: (configuration?: Configuration) => {
|
|
|
50
50
|
* @param {*} [options] Override http request option.
|
|
51
51
|
* @throws {RequiredError}
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
apiV2CallhistoriesCallIdPut(callId: string, updateCallHistoryCommand?: UpdateCallHistoryCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
56
|
* @summary Create Call History
|
|
@@ -73,7 +73,7 @@ export declare const CallHistoriesApiFactory: (configuration?: Configuration, ba
|
|
|
73
73
|
* @param {*} [options] Override http request option.
|
|
74
74
|
* @throws {RequiredError}
|
|
75
75
|
*/
|
|
76
|
-
|
|
76
|
+
apiV2CallhistoriesCallIdPut(callId: string, updateCallHistoryCommand?: UpdateCallHistoryCommand, options?: any): AxiosPromise<string>;
|
|
77
77
|
/**
|
|
78
78
|
*
|
|
79
79
|
* @summary Create Call History
|
|
@@ -84,21 +84,21 @@ export declare const CallHistoriesApiFactory: (configuration?: Configuration, ba
|
|
|
84
84
|
apiV2CallhistoriesPost(createCallHistoryCommand?: CreateCallHistoryCommand, options?: any): AxiosPromise<string>;
|
|
85
85
|
};
|
|
86
86
|
/**
|
|
87
|
-
* Request parameters for
|
|
87
|
+
* Request parameters for apiV2CallhistoriesCallIdPut operation in CallHistoriesApi.
|
|
88
88
|
* @export
|
|
89
|
-
* @interface
|
|
89
|
+
* @interface CallHistoriesApiApiV2CallhistoriesCallIdPutRequest
|
|
90
90
|
*/
|
|
91
|
-
export interface
|
|
91
|
+
export interface CallHistoriesApiApiV2CallhistoriesCallIdPutRequest {
|
|
92
92
|
/**
|
|
93
93
|
*
|
|
94
94
|
* @type {string}
|
|
95
|
-
* @memberof
|
|
95
|
+
* @memberof CallHistoriesApiApiV2CallhistoriesCallIdPut
|
|
96
96
|
*/
|
|
97
97
|
readonly callId: string;
|
|
98
98
|
/**
|
|
99
99
|
*
|
|
100
100
|
* @type {UpdateCallHistoryCommand}
|
|
101
|
-
* @memberof
|
|
101
|
+
* @memberof CallHistoriesApiApiV2CallhistoriesCallIdPut
|
|
102
102
|
*/
|
|
103
103
|
readonly updateCallHistoryCommand?: UpdateCallHistoryCommand;
|
|
104
104
|
}
|
|
@@ -125,12 +125,12 @@ export declare class CallHistoriesApi extends BaseAPI {
|
|
|
125
125
|
/**
|
|
126
126
|
*
|
|
127
127
|
* @summary Update Call History
|
|
128
|
-
* @param {
|
|
128
|
+
* @param {CallHistoriesApiApiV2CallhistoriesCallIdPutRequest} requestParameters Request parameters.
|
|
129
129
|
* @param {*} [options] Override http request option.
|
|
130
130
|
* @throws {RequiredError}
|
|
131
131
|
* @memberof CallHistoriesApi
|
|
132
132
|
*/
|
|
133
|
-
|
|
133
|
+
apiV2CallhistoriesCallIdPut(requestParameters: CallHistoriesApiApiV2CallhistoriesCallIdPutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any>>;
|
|
134
134
|
/**
|
|
135
135
|
*
|
|
136
136
|
* @summary Create Call History
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"call-histories-api.d.ts","sourceRoot":"","sources":["../../src/api/call-histories-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAoB,EAAE,YAAY,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AACrF,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAKjD,OAAO,EAAiC,WAAW,EAAE,OAAO,EAAiB,MAAM,SAAS,CAAC;AAE7F,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AAErD,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AACrD;;;GAGG;AACH,eAAO,MAAM,iCAAiC,mBAA6B,aAAa;IAEhF;;;;;;;OAOG;
|
|
1
|
+
{"version":3,"file":"call-histories-api.d.ts","sourceRoot":"","sources":["../../src/api/call-histories-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAoB,EAAE,YAAY,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AACrF,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAKjD,OAAO,EAAiC,WAAW,EAAE,OAAO,EAAiB,MAAM,SAAS,CAAC;AAE7F,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AAErD,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AACrD;;;GAGG;AACH,eAAO,MAAM,iCAAiC,mBAA6B,aAAa;IAEhF;;;;;;;OAOG;0CACyC,MAAM,6BAA6B,wBAAwB,YAAW,kBAAkB,KAAQ,QAAQ,WAAW,CAAC;IAkChK;;;;;;OAMG;wDACuD,wBAAwB,YAAW,kBAAkB,KAAQ,QAAQ,WAAW,CAAC;CAgClJ,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,mBAA4B,aAAa;IAGhE;;;;;;;OAOG;wCACuC,MAAM,6BAA6B,wBAAwB,YAAY,kBAAkB,oBAAoB,aAAa,aAAa,MAAM,KAAK,aAAa,MAAM,CAAC;IAIhN;;;;;;OAMG;sDACqD,wBAAwB,YAAY,kBAAkB,oBAAoB,aAAa,aAAa,MAAM,KAAK,aAAa,MAAM,CAAC;CAKlM,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,mBAA6B,aAAa,aAAa,MAAM,UAAU,aAAa;IAGhH;;;;;;;OAOG;wCACiC,MAAM,6BAA6B,wBAAwB,YAAY,GAAG,GAAG,aAAa,MAAM,CAAC;IAGrI;;;;;;OAMG;sDAC+C,wBAAwB,YAAY,GAAG,GAAG,aAAa,MAAM,CAAC;CAIvH,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,kDAAkD;IAC/D;;;;OAIG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IAEvB;;;;OAIG;IACH,QAAQ,CAAC,wBAAwB,CAAC,EAAE,wBAAwB,CAAA;CAC/D;AAED;;;;GAIG;AACH,MAAM,WAAW,6CAA6C;IAC1D;;;;OAIG;IACH,QAAQ,CAAC,wBAAwB,CAAC,EAAE,wBAAwB,CAAA;CAC/D;AAED;;;;;GAKG;AACH,qBAAa,gBAAiB,SAAQ,OAAO;IACzC;;;;;;;OAOG;IACI,2BAA2B,CAAC,iBAAiB,EAAE,kDAAkD,EAAE,OAAO,CAAC,EAAE,kBAAkB;IAItI;;;;;;;OAOG;IACI,sBAAsB,CAAC,iBAAiB,GAAE,6CAAkD,EAAE,OAAO,CAAC,EAAE,kBAAkB;CAGpI"}
|
|
@@ -100,31 +100,41 @@ var CallHistoriesApiAxiosParamCreator = function (configuration) {
|
|
|
100
100
|
* @param {*} [options] Override http request option.
|
|
101
101
|
* @throws {RequiredError}
|
|
102
102
|
*/
|
|
103
|
-
|
|
103
|
+
apiV2CallhistoriesCallIdPut: function (callId, updateCallHistoryCommand, options) {
|
|
104
104
|
if (options === void 0) { options = {}; }
|
|
105
105
|
return __awaiter(_this, void 0, void 0, function () {
|
|
106
106
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
107
|
return __generator(this, function (_a) {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
108
|
+
switch (_a.label) {
|
|
109
|
+
case 0:
|
|
110
|
+
// verify required parameter 'callId' is not null or undefined
|
|
111
|
+
(0, common_1.assertParamExists)('apiV2CallhistoriesCallIdPut', 'callId', callId);
|
|
112
|
+
localVarPath = "/api/v2/callhistories/{callId}"
|
|
113
|
+
.replace("{".concat("callId", "}"), encodeURIComponent(String(callId)));
|
|
114
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
115
|
+
if (configuration) {
|
|
116
|
+
baseOptions = configuration.baseOptions;
|
|
117
|
+
}
|
|
118
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
119
|
+
localVarHeaderParameter = {};
|
|
120
|
+
localVarQueryParameter = {};
|
|
121
|
+
// authentication oauth2 required
|
|
122
|
+
// oauth required
|
|
123
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
|
|
124
|
+
case 1:
|
|
125
|
+
// authentication oauth2 required
|
|
126
|
+
// oauth required
|
|
127
|
+
_a.sent();
|
|
128
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
129
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
130
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
131
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
132
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateCallHistoryCommand, localVarRequestOptions, configuration);
|
|
133
|
+
return [2 /*return*/, {
|
|
134
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
135
|
+
options: localVarRequestOptions,
|
|
136
|
+
}];
|
|
115
137
|
}
|
|
116
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
117
|
-
localVarHeaderParameter = {};
|
|
118
|
-
localVarQueryParameter = {};
|
|
119
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
120
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
121
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
122
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
123
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateCallHistoryCommand, localVarRequestOptions, configuration);
|
|
124
|
-
return [2 /*return*/, {
|
|
125
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
126
|
-
options: localVarRequestOptions,
|
|
127
|
-
}];
|
|
128
138
|
});
|
|
129
139
|
});
|
|
130
140
|
},
|
|
@@ -140,23 +150,33 @@ var CallHistoriesApiAxiosParamCreator = function (configuration) {
|
|
|
140
150
|
return __awaiter(_this, void 0, void 0, function () {
|
|
141
151
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
142
152
|
return __generator(this, function (_a) {
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
153
|
+
switch (_a.label) {
|
|
154
|
+
case 0:
|
|
155
|
+
localVarPath = "/api/v2/callhistories";
|
|
156
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
157
|
+
if (configuration) {
|
|
158
|
+
baseOptions = configuration.baseOptions;
|
|
159
|
+
}
|
|
160
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
161
|
+
localVarHeaderParameter = {};
|
|
162
|
+
localVarQueryParameter = {};
|
|
163
|
+
// authentication oauth2 required
|
|
164
|
+
// oauth required
|
|
165
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
|
|
166
|
+
case 1:
|
|
167
|
+
// authentication oauth2 required
|
|
168
|
+
// oauth required
|
|
169
|
+
_a.sent();
|
|
170
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
171
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
172
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
173
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
174
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createCallHistoryCommand, localVarRequestOptions, configuration);
|
|
175
|
+
return [2 /*return*/, {
|
|
176
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
177
|
+
options: localVarRequestOptions,
|
|
178
|
+
}];
|
|
147
179
|
}
|
|
148
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
149
|
-
localVarHeaderParameter = {};
|
|
150
|
-
localVarQueryParameter = {};
|
|
151
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
152
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
153
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
154
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
155
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createCallHistoryCommand, localVarRequestOptions, configuration);
|
|
156
|
-
return [2 /*return*/, {
|
|
157
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
158
|
-
options: localVarRequestOptions,
|
|
159
|
-
}];
|
|
160
180
|
});
|
|
161
181
|
});
|
|
162
182
|
},
|
|
@@ -178,12 +198,12 @@ var CallHistoriesApiFp = function (configuration) {
|
|
|
178
198
|
* @param {*} [options] Override http request option.
|
|
179
199
|
* @throws {RequiredError}
|
|
180
200
|
*/
|
|
181
|
-
|
|
201
|
+
apiV2CallhistoriesCallIdPut: function (callId, updateCallHistoryCommand, options) {
|
|
182
202
|
return __awaiter(this, void 0, void 0, function () {
|
|
183
203
|
var localVarAxiosArgs;
|
|
184
204
|
return __generator(this, function (_a) {
|
|
185
205
|
switch (_a.label) {
|
|
186
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
206
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2CallhistoriesCallIdPut(callId, updateCallHistoryCommand, options)];
|
|
187
207
|
case 1:
|
|
188
208
|
localVarAxiosArgs = _a.sent();
|
|
189
209
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -229,8 +249,8 @@ var CallHistoriesApiFactory = function (configuration, basePath, axios) {
|
|
|
229
249
|
* @param {*} [options] Override http request option.
|
|
230
250
|
* @throws {RequiredError}
|
|
231
251
|
*/
|
|
232
|
-
|
|
233
|
-
return localVarFp.
|
|
252
|
+
apiV2CallhistoriesCallIdPut: function (callId, updateCallHistoryCommand, options) {
|
|
253
|
+
return localVarFp.apiV2CallhistoriesCallIdPut(callId, updateCallHistoryCommand, options).then(function (request) { return request(axios, basePath); });
|
|
234
254
|
},
|
|
235
255
|
/**
|
|
236
256
|
*
|
|
@@ -259,14 +279,14 @@ var CallHistoriesApi = /** @class */ (function (_super) {
|
|
|
259
279
|
/**
|
|
260
280
|
*
|
|
261
281
|
* @summary Update Call History
|
|
262
|
-
* @param {
|
|
282
|
+
* @param {CallHistoriesApiApiV2CallhistoriesCallIdPutRequest} requestParameters Request parameters.
|
|
263
283
|
* @param {*} [options] Override http request option.
|
|
264
284
|
* @throws {RequiredError}
|
|
265
285
|
* @memberof CallHistoriesApi
|
|
266
286
|
*/
|
|
267
|
-
CallHistoriesApi.prototype.
|
|
287
|
+
CallHistoriesApi.prototype.apiV2CallhistoriesCallIdPut = function (requestParameters, options) {
|
|
268
288
|
var _this = this;
|
|
269
|
-
return (0, exports.CallHistoriesApiFp)(this.configuration).
|
|
289
|
+
return (0, exports.CallHistoriesApiFp)(this.configuration).apiV2CallhistoriesCallIdPut(requestParameters.callId, requestParameters.updateCallHistoryCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
270
290
|
};
|
|
271
291
|
/**
|
|
272
292
|
*
|
|
@@ -24,6 +24,7 @@ export declare const CallStatus: {
|
|
|
24
24
|
readonly Disconnected: "Disconnected";
|
|
25
25
|
readonly Rejected: "Rejected";
|
|
26
26
|
readonly Failed: "Failed";
|
|
27
|
+
readonly Completed: "Completed";
|
|
27
28
|
};
|
|
28
29
|
export type CallStatus = typeof CallStatus[keyof typeof CallStatus];
|
|
29
30
|
//# sourceMappingURL=call-status.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"call-status.d.ts","sourceRoot":"","sources":["../../src/models/call-status.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AAEH,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"call-status.d.ts","sourceRoot":"","sources":["../../src/models/call-status.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;CAWb,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC"}
|
|
@@ -34,54 +34,6 @@ export interface CreateCallHistoryCommand {
|
|
|
34
34
|
* @memberof CreateCallHistoryCommand
|
|
35
35
|
*/
|
|
36
36
|
'hospitalId'?: string;
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof CreateCallHistoryCommand
|
|
41
|
-
*/
|
|
42
|
-
'virtualNumber'?: string | null;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {string}
|
|
46
|
-
* @memberof CreateCallHistoryCommand
|
|
47
|
-
*/
|
|
48
|
-
'targetNumber'?: string | null;
|
|
49
|
-
/**
|
|
50
|
-
*
|
|
51
|
-
* @type {Date}
|
|
52
|
-
* @memberof CreateCallHistoryCommand
|
|
53
|
-
*/
|
|
54
|
-
'startTime'?: Date;
|
|
55
|
-
/**
|
|
56
|
-
*
|
|
57
|
-
* @type {Date}
|
|
58
|
-
* @memberof CreateCallHistoryCommand
|
|
59
|
-
*/
|
|
60
|
-
'endTime'?: Date;
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @type {number}
|
|
64
|
-
* @memberof CreateCallHistoryCommand
|
|
65
|
-
*/
|
|
66
|
-
'duration'?: number;
|
|
67
|
-
/**
|
|
68
|
-
*
|
|
69
|
-
* @type {number}
|
|
70
|
-
* @memberof CreateCallHistoryCommand
|
|
71
|
-
*/
|
|
72
|
-
'rate'?: number;
|
|
73
|
-
/**
|
|
74
|
-
*
|
|
75
|
-
* @type {number}
|
|
76
|
-
* @memberof CreateCallHistoryCommand
|
|
77
|
-
*/
|
|
78
|
-
'price'?: number;
|
|
79
|
-
/**
|
|
80
|
-
*
|
|
81
|
-
* @type {string}
|
|
82
|
-
* @memberof CreateCallHistoryCommand
|
|
83
|
-
*/
|
|
84
|
-
'customData'?: string | null;
|
|
85
37
|
/**
|
|
86
38
|
*
|
|
87
39
|
* @type {boolean}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-call-history-command.d.ts","sourceRoot":"","sources":["../../src/models/create-call-history-command.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACrC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,
|
|
1
|
+
{"version":3,"file":"create-call-history-command.d.ts","sourceRoot":"","sources":["../../src/models/create-call-history-command.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACrC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,UAAU,CAAC;IACtB;;;;OAIG;IACH,WAAW,CAAC,EAAE,IAAI,CAAC;CACtB"}
|
|
@@ -16,18 +16,6 @@ import { CallStatus } from './call-status';
|
|
|
16
16
|
* @interface UpdateCallHistoryCommand
|
|
17
17
|
*/
|
|
18
18
|
export interface UpdateCallHistoryCommand {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof UpdateCallHistoryCommand
|
|
23
|
-
*/
|
|
24
|
-
'patientId'?: string;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof UpdateCallHistoryCommand
|
|
29
|
-
*/
|
|
30
|
-
'hospitalId'?: string;
|
|
31
19
|
/**
|
|
32
20
|
*
|
|
33
21
|
* @type {string}
|
|
@@ -45,13 +33,13 @@ export interface UpdateCallHistoryCommand {
|
|
|
45
33
|
* @type {Date}
|
|
46
34
|
* @memberof UpdateCallHistoryCommand
|
|
47
35
|
*/
|
|
48
|
-
'startTime'?: Date;
|
|
36
|
+
'startTime'?: Date | null;
|
|
49
37
|
/**
|
|
50
38
|
*
|
|
51
39
|
* @type {Date}
|
|
52
40
|
* @memberof UpdateCallHistoryCommand
|
|
53
41
|
*/
|
|
54
|
-
'endTime'?: Date;
|
|
42
|
+
'endTime'?: Date | null;
|
|
55
43
|
/**
|
|
56
44
|
*
|
|
57
45
|
* @type {number}
|
|
@@ -70,18 +58,6 @@ export interface UpdateCallHistoryCommand {
|
|
|
70
58
|
* @memberof UpdateCallHistoryCommand
|
|
71
59
|
*/
|
|
72
60
|
'price'?: number;
|
|
73
|
-
/**
|
|
74
|
-
*
|
|
75
|
-
* @type {string}
|
|
76
|
-
* @memberof UpdateCallHistoryCommand
|
|
77
|
-
*/
|
|
78
|
-
'customData'?: string | null;
|
|
79
|
-
/**
|
|
80
|
-
*
|
|
81
|
-
* @type {boolean}
|
|
82
|
-
* @memberof UpdateCallHistoryCommand
|
|
83
|
-
*/
|
|
84
|
-
'isExternal'?: boolean;
|
|
85
61
|
/**
|
|
86
62
|
*
|
|
87
63
|
* @type {CallStatus}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-call-history-command.d.ts","sourceRoot":"","sources":["../../src/models/update-call-history-command.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACrC;;;;OAIG;IACH,
|
|
1
|
+
{"version":3,"file":"update-call-history-command.d.ts","sourceRoot":"","sources":["../../src/models/update-call-history-command.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACrC;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B;;;;OAIG;IACH,WAAW,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAC1B;;;;OAIG;IACH,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,UAAU,CAAC;IACtB;;;;OAIG;IACH,WAAW,CAAC,EAAE,IAAI,CAAC;CACtB"}
|
package/package.json
CHANGED
|
@@ -38,9 +38,9 @@ export const CallHistoriesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
38
38
|
* @param {*} [options] Override http request option.
|
|
39
39
|
* @throws {RequiredError}
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
apiV2CallhistoriesCallIdPut: async (callId: string, updateCallHistoryCommand?: UpdateCallHistoryCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
42
42
|
// verify required parameter 'callId' is not null or undefined
|
|
43
|
-
assertParamExists('
|
|
43
|
+
assertParamExists('apiV2CallhistoriesCallIdPut', 'callId', callId)
|
|
44
44
|
const localVarPath = `/api/v2/callhistories/{callId}`
|
|
45
45
|
.replace(`{${"callId"}}`, encodeURIComponent(String(callId)));
|
|
46
46
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -50,10 +50,14 @@ export const CallHistoriesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
50
50
|
baseOptions = configuration.baseOptions;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
const localVarRequestOptions = { method: '
|
|
53
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
54
54
|
const localVarHeaderParameter = {} as any;
|
|
55
55
|
const localVarQueryParameter = {} as any;
|
|
56
56
|
|
|
57
|
+
// authentication oauth2 required
|
|
58
|
+
// oauth required
|
|
59
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
60
|
+
|
|
57
61
|
|
|
58
62
|
|
|
59
63
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -88,6 +92,10 @@ export const CallHistoriesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
88
92
|
const localVarHeaderParameter = {} as any;
|
|
89
93
|
const localVarQueryParameter = {} as any;
|
|
90
94
|
|
|
95
|
+
// authentication oauth2 required
|
|
96
|
+
// oauth required
|
|
97
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
98
|
+
|
|
91
99
|
|
|
92
100
|
|
|
93
101
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -120,8 +128,8 @@ export const CallHistoriesApiFp = function(configuration?: Configuration) {
|
|
|
120
128
|
* @param {*} [options] Override http request option.
|
|
121
129
|
* @throws {RequiredError}
|
|
122
130
|
*/
|
|
123
|
-
async
|
|
124
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
131
|
+
async apiV2CallhistoriesCallIdPut(callId: string, updateCallHistoryCommand?: UpdateCallHistoryCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
132
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2CallhistoriesCallIdPut(callId, updateCallHistoryCommand, options);
|
|
125
133
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
126
134
|
},
|
|
127
135
|
/**
|
|
@@ -153,8 +161,8 @@ export const CallHistoriesApiFactory = function (configuration?: Configuration,
|
|
|
153
161
|
* @param {*} [options] Override http request option.
|
|
154
162
|
* @throws {RequiredError}
|
|
155
163
|
*/
|
|
156
|
-
|
|
157
|
-
return localVarFp.
|
|
164
|
+
apiV2CallhistoriesCallIdPut(callId: string, updateCallHistoryCommand?: UpdateCallHistoryCommand, options?: any): AxiosPromise<string> {
|
|
165
|
+
return localVarFp.apiV2CallhistoriesCallIdPut(callId, updateCallHistoryCommand, options).then((request) => request(axios, basePath));
|
|
158
166
|
},
|
|
159
167
|
/**
|
|
160
168
|
*
|
|
@@ -170,22 +178,22 @@ export const CallHistoriesApiFactory = function (configuration?: Configuration,
|
|
|
170
178
|
};
|
|
171
179
|
|
|
172
180
|
/**
|
|
173
|
-
* Request parameters for
|
|
181
|
+
* Request parameters for apiV2CallhistoriesCallIdPut operation in CallHistoriesApi.
|
|
174
182
|
* @export
|
|
175
|
-
* @interface
|
|
183
|
+
* @interface CallHistoriesApiApiV2CallhistoriesCallIdPutRequest
|
|
176
184
|
*/
|
|
177
|
-
export interface
|
|
185
|
+
export interface CallHistoriesApiApiV2CallhistoriesCallIdPutRequest {
|
|
178
186
|
/**
|
|
179
187
|
*
|
|
180
188
|
* @type {string}
|
|
181
|
-
* @memberof
|
|
189
|
+
* @memberof CallHistoriesApiApiV2CallhistoriesCallIdPut
|
|
182
190
|
*/
|
|
183
191
|
readonly callId: string
|
|
184
192
|
|
|
185
193
|
/**
|
|
186
194
|
*
|
|
187
195
|
* @type {UpdateCallHistoryCommand}
|
|
188
|
-
* @memberof
|
|
196
|
+
* @memberof CallHistoriesApiApiV2CallhistoriesCallIdPut
|
|
189
197
|
*/
|
|
190
198
|
readonly updateCallHistoryCommand?: UpdateCallHistoryCommand
|
|
191
199
|
}
|
|
@@ -214,13 +222,13 @@ export class CallHistoriesApi extends BaseAPI {
|
|
|
214
222
|
/**
|
|
215
223
|
*
|
|
216
224
|
* @summary Update Call History
|
|
217
|
-
* @param {
|
|
225
|
+
* @param {CallHistoriesApiApiV2CallhistoriesCallIdPutRequest} requestParameters Request parameters.
|
|
218
226
|
* @param {*} [options] Override http request option.
|
|
219
227
|
* @throws {RequiredError}
|
|
220
228
|
* @memberof CallHistoriesApi
|
|
221
229
|
*/
|
|
222
|
-
public
|
|
223
|
-
return CallHistoriesApiFp(this.configuration).
|
|
230
|
+
public apiV2CallhistoriesCallIdPut(requestParameters: CallHistoriesApiApiV2CallhistoriesCallIdPutRequest, options?: AxiosRequestConfig) {
|
|
231
|
+
return CallHistoriesApiFp(this.configuration).apiV2CallhistoriesCallIdPut(requestParameters.callId, requestParameters.updateCallHistoryCommand, options).then((request) => request(this.axios, this.basePath));
|
|
224
232
|
}
|
|
225
233
|
|
|
226
234
|
/**
|
|
@@ -29,7 +29,8 @@ export const CallStatus = {
|
|
|
29
29
|
Unanswered: 'Unanswered',
|
|
30
30
|
Disconnected: 'Disconnected',
|
|
31
31
|
Rejected: 'Rejected',
|
|
32
|
-
Failed: 'Failed'
|
|
32
|
+
Failed: 'Failed',
|
|
33
|
+
Completed: 'Completed'
|
|
33
34
|
} as const;
|
|
34
35
|
|
|
35
36
|
export type CallStatus = typeof CallStatus[keyof typeof CallStatus];
|
|
@@ -41,54 +41,6 @@ export interface CreateCallHistoryCommand {
|
|
|
41
41
|
* @memberof CreateCallHistoryCommand
|
|
42
42
|
*/
|
|
43
43
|
'hospitalId'?: string;
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {string}
|
|
47
|
-
* @memberof CreateCallHistoryCommand
|
|
48
|
-
*/
|
|
49
|
-
'virtualNumber'?: string | null;
|
|
50
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
* @type {string}
|
|
53
|
-
* @memberof CreateCallHistoryCommand
|
|
54
|
-
*/
|
|
55
|
-
'targetNumber'?: string | null;
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @type {Date}
|
|
59
|
-
* @memberof CreateCallHistoryCommand
|
|
60
|
-
*/
|
|
61
|
-
'startTime'?: Date;
|
|
62
|
-
/**
|
|
63
|
-
*
|
|
64
|
-
* @type {Date}
|
|
65
|
-
* @memberof CreateCallHistoryCommand
|
|
66
|
-
*/
|
|
67
|
-
'endTime'?: Date;
|
|
68
|
-
/**
|
|
69
|
-
*
|
|
70
|
-
* @type {number}
|
|
71
|
-
* @memberof CreateCallHistoryCommand
|
|
72
|
-
*/
|
|
73
|
-
'duration'?: number;
|
|
74
|
-
/**
|
|
75
|
-
*
|
|
76
|
-
* @type {number}
|
|
77
|
-
* @memberof CreateCallHistoryCommand
|
|
78
|
-
*/
|
|
79
|
-
'rate'?: number;
|
|
80
|
-
/**
|
|
81
|
-
*
|
|
82
|
-
* @type {number}
|
|
83
|
-
* @memberof CreateCallHistoryCommand
|
|
84
|
-
*/
|
|
85
|
-
'price'?: number;
|
|
86
|
-
/**
|
|
87
|
-
*
|
|
88
|
-
* @type {string}
|
|
89
|
-
* @memberof CreateCallHistoryCommand
|
|
90
|
-
*/
|
|
91
|
-
'customData'?: string | null;
|
|
92
44
|
/**
|
|
93
45
|
*
|
|
94
46
|
* @type {boolean}
|
|
@@ -23,18 +23,6 @@ import { CallStatus } from './call-status';
|
|
|
23
23
|
* @interface UpdateCallHistoryCommand
|
|
24
24
|
*/
|
|
25
25
|
export interface UpdateCallHistoryCommand {
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @type {string}
|
|
29
|
-
* @memberof UpdateCallHistoryCommand
|
|
30
|
-
*/
|
|
31
|
-
'patientId'?: string;
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @type {string}
|
|
35
|
-
* @memberof UpdateCallHistoryCommand
|
|
36
|
-
*/
|
|
37
|
-
'hospitalId'?: string;
|
|
38
26
|
/**
|
|
39
27
|
*
|
|
40
28
|
* @type {string}
|
|
@@ -52,13 +40,13 @@ export interface UpdateCallHistoryCommand {
|
|
|
52
40
|
* @type {Date}
|
|
53
41
|
* @memberof UpdateCallHistoryCommand
|
|
54
42
|
*/
|
|
55
|
-
'startTime'?: Date;
|
|
43
|
+
'startTime'?: Date | null;
|
|
56
44
|
/**
|
|
57
45
|
*
|
|
58
46
|
* @type {Date}
|
|
59
47
|
* @memberof UpdateCallHistoryCommand
|
|
60
48
|
*/
|
|
61
|
-
'endTime'?: Date;
|
|
49
|
+
'endTime'?: Date | null;
|
|
62
50
|
/**
|
|
63
51
|
*
|
|
64
52
|
* @type {number}
|
|
@@ -77,18 +65,6 @@ export interface UpdateCallHistoryCommand {
|
|
|
77
65
|
* @memberof UpdateCallHistoryCommand
|
|
78
66
|
*/
|
|
79
67
|
'price'?: number;
|
|
80
|
-
/**
|
|
81
|
-
*
|
|
82
|
-
* @type {string}
|
|
83
|
-
* @memberof UpdateCallHistoryCommand
|
|
84
|
-
*/
|
|
85
|
-
'customData'?: string | null;
|
|
86
|
-
/**
|
|
87
|
-
*
|
|
88
|
-
* @type {boolean}
|
|
89
|
-
* @memberof UpdateCallHistoryCommand
|
|
90
|
-
*/
|
|
91
|
-
'isExternal'?: boolean;
|
|
92
68
|
/**
|
|
93
69
|
*
|
|
94
70
|
* @type {CallStatus}
|