ch-chat-api-typescript-axios 1.2.10 → 1.3.0
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 +386 -16
- package/dist/api/chat-api.js +430 -0
- package/dist/api/chat-api.js.map +1 -1
- package/dist/models/action-parameters.d.ts +54 -0
- package/dist/models/action-parameters.js +16 -0
- package/dist/models/action-parameters.js.map +1 -0
- package/dist/models/chat-message.d.ts +7 -0
- package/dist/models/chat-send-flow-message-command.d.ts +25 -0
- package/dist/models/chat-send-flow-message-command.js +16 -0
- package/dist/models/chat-send-flow-message-command.js.map +1 -0
- package/dist/models/{chat-session.d.ts → chat-session-model.d.ts} +31 -17
- package/dist/models/chat-session-model.js +16 -0
- package/dist/models/chat-session-model.js.map +1 -0
- package/dist/models/chat-sessions-model.d.ts +3 -3
- package/dist/models/create-chat-session-command.d.ts +7 -0
- package/dist/models/index.d.ts +14 -1
- package/dist/models/index.js +14 -1
- package/dist/models/index.js.map +1 -1
- package/dist/models/intake-form-item.d.ts +42 -0
- package/dist/models/intake-form-item.js +16 -0
- package/dist/models/intake-form-item.js.map +1 -0
- package/dist/models/intake-form.d.ts +79 -0
- package/dist/models/{chat-session.js → intake-form.js} +1 -1
- package/dist/models/intake-form.js.map +1 -0
- package/dist/models/intake-forms-model.d.ts +32 -0
- package/dist/models/intake-forms-model.js +16 -0
- package/dist/models/intake-forms-model.js.map +1 -0
- package/dist/models/interactive-flow-message-model.d.ts +53 -0
- package/dist/models/interactive-flow-message-model.js +16 -0
- package/dist/models/interactive-flow-message-model.js.map +1 -0
- package/dist/models/interactive-message-type.d.ts +25 -0
- package/dist/models/interactive-message-type.js +30 -0
- package/dist/models/interactive-message-type.js.map +1 -0
- package/dist/models/message-action.d.ts +31 -0
- package/dist/models/message-action.js +16 -0
- package/dist/models/message-action.js.map +1 -0
- package/dist/models/message-body.d.ts +24 -0
- package/dist/models/message-body.js +16 -0
- package/dist/models/message-body.js.map +1 -0
- package/dist/models/message-footer.d.ts +24 -0
- package/dist/models/message-footer.js +16 -0
- package/dist/models/message-footer.js.map +1 -0
- package/dist/models/message-header.d.ts +30 -0
- package/dist/models/message-header.js +16 -0
- package/dist/models/message-header.js.map +1 -0
- package/dist/models/message-types.d.ts +3 -0
- package/dist/models/message-types.js +4 -1
- package/dist/models/message-types.js.map +1 -1
- package/dist/models/patch-intake-form-command.d.ts +25 -0
- package/dist/models/patch-intake-form-command.js +16 -0
- package/dist/models/patch-intake-form-command.js.map +1 -0
- package/dist/models/request-create-intake-form-item-model.d.ts +36 -0
- package/dist/models/request-create-intake-form-item-model.js +16 -0
- package/dist/models/request-create-intake-form-item-model.js.map +1 -0
- package/package.json +1 -1
- package/dist/models/chat-session.js.map +0 -1
package/dist/api/chat-api.js
CHANGED
|
@@ -247,6 +247,195 @@ const ChatApiAxiosParamCreator = function (configuration) {
|
|
|
247
247
|
options: localVarRequestOptions,
|
|
248
248
|
};
|
|
249
249
|
}),
|
|
250
|
+
/**
|
|
251
|
+
*
|
|
252
|
+
* @summary Get intake forms by session id.
|
|
253
|
+
* @param {string} tenantId
|
|
254
|
+
* @param {string} sessionId
|
|
255
|
+
* @param {string} [id]
|
|
256
|
+
* @param {string} [tenantId2]
|
|
257
|
+
* @param {string} [userId]
|
|
258
|
+
* @param {string} [phoneNumber]
|
|
259
|
+
* @param {number} [page]
|
|
260
|
+
* @param {number} [limit]
|
|
261
|
+
* @param {Date} [lastRetrieved]
|
|
262
|
+
* @param {*} [options] Override http request option.
|
|
263
|
+
* @throws {RequiredError}
|
|
264
|
+
*/
|
|
265
|
+
apiV1ChatTenantIdSessionsSessionIdIntakeformsGet: (tenantId_1, sessionId_1, id_1, tenantId2_1, userId_1, phoneNumber_1, page_1, limit_1, lastRetrieved_1, ...args_1) => __awaiter(this, [tenantId_1, sessionId_1, id_1, tenantId2_1, userId_1, phoneNumber_1, page_1, limit_1, lastRetrieved_1, ...args_1], void 0, function* (tenantId, sessionId, id, tenantId2, userId, phoneNumber, page, limit, lastRetrieved, options = {}) {
|
|
266
|
+
// verify required parameter 'tenantId' is not null or undefined
|
|
267
|
+
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdIntakeformsGet', 'tenantId', tenantId);
|
|
268
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
269
|
+
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdIntakeformsGet', 'sessionId', sessionId);
|
|
270
|
+
const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}/intakeforms`
|
|
271
|
+
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)))
|
|
272
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
273
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
274
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
275
|
+
let baseOptions;
|
|
276
|
+
if (configuration) {
|
|
277
|
+
baseOptions = configuration.baseOptions;
|
|
278
|
+
}
|
|
279
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
280
|
+
const localVarHeaderParameter = {};
|
|
281
|
+
const localVarQueryParameter = {};
|
|
282
|
+
// authentication oauth2 required
|
|
283
|
+
// oauth required
|
|
284
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
285
|
+
if (id !== undefined) {
|
|
286
|
+
localVarQueryParameter['Id'] = id;
|
|
287
|
+
}
|
|
288
|
+
if (tenantId2 !== undefined) {
|
|
289
|
+
localVarQueryParameter['TenantId'] = tenantId2;
|
|
290
|
+
}
|
|
291
|
+
if (userId !== undefined) {
|
|
292
|
+
localVarQueryParameter['UserId'] = userId;
|
|
293
|
+
}
|
|
294
|
+
if (phoneNumber !== undefined) {
|
|
295
|
+
localVarQueryParameter['PhoneNumber'] = phoneNumber;
|
|
296
|
+
}
|
|
297
|
+
if (page !== undefined) {
|
|
298
|
+
localVarQueryParameter['page'] = page;
|
|
299
|
+
}
|
|
300
|
+
if (limit !== undefined) {
|
|
301
|
+
localVarQueryParameter['limit'] = limit;
|
|
302
|
+
}
|
|
303
|
+
if (lastRetrieved !== undefined) {
|
|
304
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
305
|
+
lastRetrieved.toISOString() :
|
|
306
|
+
lastRetrieved;
|
|
307
|
+
}
|
|
308
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
309
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
310
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
311
|
+
return {
|
|
312
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
313
|
+
options: localVarRequestOptions,
|
|
314
|
+
};
|
|
315
|
+
}),
|
|
316
|
+
/**
|
|
317
|
+
*
|
|
318
|
+
* @summary Delete intake form by id.
|
|
319
|
+
* @param {string} tenantId
|
|
320
|
+
* @param {string} sessionId
|
|
321
|
+
* @param {string} intakeFormId
|
|
322
|
+
* @param {*} [options] Override http request option.
|
|
323
|
+
* @throws {RequiredError}
|
|
324
|
+
*/
|
|
325
|
+
apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDelete: (tenantId_1, sessionId_1, intakeFormId_1, ...args_1) => __awaiter(this, [tenantId_1, sessionId_1, intakeFormId_1, ...args_1], void 0, function* (tenantId, sessionId, intakeFormId, options = {}) {
|
|
326
|
+
// verify required parameter 'tenantId' is not null or undefined
|
|
327
|
+
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDelete', 'tenantId', tenantId);
|
|
328
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
329
|
+
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDelete', 'sessionId', sessionId);
|
|
330
|
+
// verify required parameter 'intakeFormId' is not null or undefined
|
|
331
|
+
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDelete', 'intakeFormId', intakeFormId);
|
|
332
|
+
const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}/intakeforms/{intakeFormId}`
|
|
333
|
+
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)))
|
|
334
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)))
|
|
335
|
+
.replace(`{${"intakeFormId"}}`, encodeURIComponent(String(intakeFormId)));
|
|
336
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
337
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
338
|
+
let baseOptions;
|
|
339
|
+
if (configuration) {
|
|
340
|
+
baseOptions = configuration.baseOptions;
|
|
341
|
+
}
|
|
342
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
343
|
+
const localVarHeaderParameter = {};
|
|
344
|
+
const localVarQueryParameter = {};
|
|
345
|
+
// authentication oauth2 required
|
|
346
|
+
// oauth required
|
|
347
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
348
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
349
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
350
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
351
|
+
return {
|
|
352
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
353
|
+
options: localVarRequestOptions,
|
|
354
|
+
};
|
|
355
|
+
}),
|
|
356
|
+
/**
|
|
357
|
+
*
|
|
358
|
+
* @summary Get intake form by id.
|
|
359
|
+
* @param {string} tenantId
|
|
360
|
+
* @param {string} sessionId
|
|
361
|
+
* @param {string} intakeFormId
|
|
362
|
+
* @param {*} [options] Override http request option.
|
|
363
|
+
* @throws {RequiredError}
|
|
364
|
+
*/
|
|
365
|
+
apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGet: (tenantId_1, sessionId_1, intakeFormId_1, ...args_1) => __awaiter(this, [tenantId_1, sessionId_1, intakeFormId_1, ...args_1], void 0, function* (tenantId, sessionId, intakeFormId, options = {}) {
|
|
366
|
+
// verify required parameter 'tenantId' is not null or undefined
|
|
367
|
+
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGet', 'tenantId', tenantId);
|
|
368
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
369
|
+
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGet', 'sessionId', sessionId);
|
|
370
|
+
// verify required parameter 'intakeFormId' is not null or undefined
|
|
371
|
+
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGet', 'intakeFormId', intakeFormId);
|
|
372
|
+
const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}/intakeforms/{intakeFormId}`
|
|
373
|
+
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)))
|
|
374
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)))
|
|
375
|
+
.replace(`{${"intakeFormId"}}`, encodeURIComponent(String(intakeFormId)));
|
|
376
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
377
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
378
|
+
let baseOptions;
|
|
379
|
+
if (configuration) {
|
|
380
|
+
baseOptions = configuration.baseOptions;
|
|
381
|
+
}
|
|
382
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
383
|
+
const localVarHeaderParameter = {};
|
|
384
|
+
const localVarQueryParameter = {};
|
|
385
|
+
// authentication oauth2 required
|
|
386
|
+
// oauth required
|
|
387
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
388
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
389
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
390
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
391
|
+
return {
|
|
392
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
393
|
+
options: localVarRequestOptions,
|
|
394
|
+
};
|
|
395
|
+
}),
|
|
396
|
+
/**
|
|
397
|
+
*
|
|
398
|
+
* @summary Update intake form by id.
|
|
399
|
+
* @param {string} tenantId
|
|
400
|
+
* @param {string} sessionId
|
|
401
|
+
* @param {string} intakeFormId
|
|
402
|
+
* @param {PatchIntakeFormCommand} [patchIntakeFormCommand]
|
|
403
|
+
* @param {*} [options] Override http request option.
|
|
404
|
+
* @throws {RequiredError}
|
|
405
|
+
*/
|
|
406
|
+
apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatch: (tenantId_1, sessionId_1, intakeFormId_1, patchIntakeFormCommand_1, ...args_1) => __awaiter(this, [tenantId_1, sessionId_1, intakeFormId_1, patchIntakeFormCommand_1, ...args_1], void 0, function* (tenantId, sessionId, intakeFormId, patchIntakeFormCommand, options = {}) {
|
|
407
|
+
// verify required parameter 'tenantId' is not null or undefined
|
|
408
|
+
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatch', 'tenantId', tenantId);
|
|
409
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
410
|
+
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatch', 'sessionId', sessionId);
|
|
411
|
+
// verify required parameter 'intakeFormId' is not null or undefined
|
|
412
|
+
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatch', 'intakeFormId', intakeFormId);
|
|
413
|
+
const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}/intakeforms/{intakeFormId}/items`
|
|
414
|
+
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)))
|
|
415
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)))
|
|
416
|
+
.replace(`{${"intakeFormId"}}`, encodeURIComponent(String(intakeFormId)));
|
|
417
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
418
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
419
|
+
let baseOptions;
|
|
420
|
+
if (configuration) {
|
|
421
|
+
baseOptions = configuration.baseOptions;
|
|
422
|
+
}
|
|
423
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
424
|
+
const localVarHeaderParameter = {};
|
|
425
|
+
const localVarQueryParameter = {};
|
|
426
|
+
// authentication oauth2 required
|
|
427
|
+
// oauth required
|
|
428
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
429
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
430
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
431
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
432
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
433
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchIntakeFormCommand, localVarRequestOptions, configuration);
|
|
434
|
+
return {
|
|
435
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
436
|
+
options: localVarRequestOptions,
|
|
437
|
+
};
|
|
438
|
+
}),
|
|
250
439
|
/**
|
|
251
440
|
*
|
|
252
441
|
* @summary Join a chat session.
|
|
@@ -557,6 +746,45 @@ const ChatApiAxiosParamCreator = function (configuration) {
|
|
|
557
746
|
options: localVarRequestOptions,
|
|
558
747
|
};
|
|
559
748
|
}),
|
|
749
|
+
/**
|
|
750
|
+
*
|
|
751
|
+
* @summary Send whatsapp flow message
|
|
752
|
+
* @param {string} tenantId
|
|
753
|
+
* @param {string} sessionId
|
|
754
|
+
* @param {ChatSendFlowMessageCommand} [chatSendFlowMessageCommand]
|
|
755
|
+
* @param {*} [options] Override http request option.
|
|
756
|
+
* @throws {RequiredError}
|
|
757
|
+
*/
|
|
758
|
+
apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessagesPost: (tenantId_1, sessionId_1, chatSendFlowMessageCommand_1, ...args_1) => __awaiter(this, [tenantId_1, sessionId_1, chatSendFlowMessageCommand_1, ...args_1], void 0, function* (tenantId, sessionId, chatSendFlowMessageCommand, options = {}) {
|
|
759
|
+
// verify required parameter 'tenantId' is not null or undefined
|
|
760
|
+
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessagesPost', 'tenantId', tenantId);
|
|
761
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
762
|
+
(0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessagesPost', 'sessionId', sessionId);
|
|
763
|
+
const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}/whatsapp/flow/messages`
|
|
764
|
+
.replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)))
|
|
765
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
766
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
767
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
768
|
+
let baseOptions;
|
|
769
|
+
if (configuration) {
|
|
770
|
+
baseOptions = configuration.baseOptions;
|
|
771
|
+
}
|
|
772
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
773
|
+
const localVarHeaderParameter = {};
|
|
774
|
+
const localVarQueryParameter = {};
|
|
775
|
+
// authentication oauth2 required
|
|
776
|
+
// oauth required
|
|
777
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
|
|
778
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
779
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
780
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
781
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
782
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(chatSendFlowMessageCommand, localVarRequestOptions, configuration);
|
|
783
|
+
return {
|
|
784
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
785
|
+
options: localVarRequestOptions,
|
|
786
|
+
};
|
|
787
|
+
}),
|
|
560
788
|
};
|
|
561
789
|
};
|
|
562
790
|
exports.ChatApiAxiosParamCreator = ChatApiAxiosParamCreator;
|
|
@@ -659,6 +887,85 @@ const ChatApiFp = function (configuration) {
|
|
|
659
887
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
660
888
|
});
|
|
661
889
|
},
|
|
890
|
+
/**
|
|
891
|
+
*
|
|
892
|
+
* @summary Get intake forms by session id.
|
|
893
|
+
* @param {string} tenantId
|
|
894
|
+
* @param {string} sessionId
|
|
895
|
+
* @param {string} [id]
|
|
896
|
+
* @param {string} [tenantId2]
|
|
897
|
+
* @param {string} [userId]
|
|
898
|
+
* @param {string} [phoneNumber]
|
|
899
|
+
* @param {number} [page]
|
|
900
|
+
* @param {number} [limit]
|
|
901
|
+
* @param {Date} [lastRetrieved]
|
|
902
|
+
* @param {*} [options] Override http request option.
|
|
903
|
+
* @throws {RequiredError}
|
|
904
|
+
*/
|
|
905
|
+
apiV1ChatTenantIdSessionsSessionIdIntakeformsGet(tenantId, sessionId, id, tenantId2, userId, phoneNumber, page, limit, lastRetrieved, options) {
|
|
906
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
907
|
+
var _a, _b, _c;
|
|
908
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdIntakeformsGet(tenantId, sessionId, id, tenantId2, userId, phoneNumber, page, limit, lastRetrieved, options);
|
|
909
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
910
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChatApi.apiV1ChatTenantIdSessionsSessionIdIntakeformsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
911
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
912
|
+
});
|
|
913
|
+
},
|
|
914
|
+
/**
|
|
915
|
+
*
|
|
916
|
+
* @summary Delete intake form by id.
|
|
917
|
+
* @param {string} tenantId
|
|
918
|
+
* @param {string} sessionId
|
|
919
|
+
* @param {string} intakeFormId
|
|
920
|
+
* @param {*} [options] Override http request option.
|
|
921
|
+
* @throws {RequiredError}
|
|
922
|
+
*/
|
|
923
|
+
apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDelete(tenantId, sessionId, intakeFormId, options) {
|
|
924
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
925
|
+
var _a, _b, _c;
|
|
926
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDelete(tenantId, sessionId, intakeFormId, options);
|
|
927
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
928
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChatApi.apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
929
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
930
|
+
});
|
|
931
|
+
},
|
|
932
|
+
/**
|
|
933
|
+
*
|
|
934
|
+
* @summary Get intake form by id.
|
|
935
|
+
* @param {string} tenantId
|
|
936
|
+
* @param {string} sessionId
|
|
937
|
+
* @param {string} intakeFormId
|
|
938
|
+
* @param {*} [options] Override http request option.
|
|
939
|
+
* @throws {RequiredError}
|
|
940
|
+
*/
|
|
941
|
+
apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGet(tenantId, sessionId, intakeFormId, options) {
|
|
942
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
943
|
+
var _a, _b, _c;
|
|
944
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGet(tenantId, sessionId, intakeFormId, options);
|
|
945
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
946
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChatApi.apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
947
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
948
|
+
});
|
|
949
|
+
},
|
|
950
|
+
/**
|
|
951
|
+
*
|
|
952
|
+
* @summary Update intake form by id.
|
|
953
|
+
* @param {string} tenantId
|
|
954
|
+
* @param {string} sessionId
|
|
955
|
+
* @param {string} intakeFormId
|
|
956
|
+
* @param {PatchIntakeFormCommand} [patchIntakeFormCommand]
|
|
957
|
+
* @param {*} [options] Override http request option.
|
|
958
|
+
* @throws {RequiredError}
|
|
959
|
+
*/
|
|
960
|
+
apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatch(tenantId, sessionId, intakeFormId, patchIntakeFormCommand, options) {
|
|
961
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
962
|
+
var _a, _b, _c;
|
|
963
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatch(tenantId, sessionId, intakeFormId, patchIntakeFormCommand, options);
|
|
964
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
965
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChatApi.apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
966
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
967
|
+
});
|
|
968
|
+
},
|
|
662
969
|
/**
|
|
663
970
|
*
|
|
664
971
|
* @summary Join a chat session.
|
|
@@ -792,6 +1099,24 @@ const ChatApiFp = function (configuration) {
|
|
|
792
1099
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
793
1100
|
});
|
|
794
1101
|
},
|
|
1102
|
+
/**
|
|
1103
|
+
*
|
|
1104
|
+
* @summary Send whatsapp flow message
|
|
1105
|
+
* @param {string} tenantId
|
|
1106
|
+
* @param {string} sessionId
|
|
1107
|
+
* @param {ChatSendFlowMessageCommand} [chatSendFlowMessageCommand]
|
|
1108
|
+
* @param {*} [options] Override http request option.
|
|
1109
|
+
* @throws {RequiredError}
|
|
1110
|
+
*/
|
|
1111
|
+
apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessagesPost(tenantId, sessionId, chatSendFlowMessageCommand, options) {
|
|
1112
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1113
|
+
var _a, _b, _c;
|
|
1114
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessagesPost(tenantId, sessionId, chatSendFlowMessageCommand, options);
|
|
1115
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1116
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChatApi.apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessagesPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1117
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1118
|
+
});
|
|
1119
|
+
},
|
|
795
1120
|
};
|
|
796
1121
|
};
|
|
797
1122
|
exports.ChatApiFp = ChatApiFp;
|
|
@@ -852,6 +1177,46 @@ const ChatApiFactory = function (configuration, basePath, axios) {
|
|
|
852
1177
|
apiV1ChatTenantIdSessionsSessionIdGet(requestParameters, options) {
|
|
853
1178
|
return localVarFp.apiV1ChatTenantIdSessionsSessionIdGet(requestParameters.tenantId, requestParameters.sessionId, options).then((request) => request(axios, basePath));
|
|
854
1179
|
},
|
|
1180
|
+
/**
|
|
1181
|
+
*
|
|
1182
|
+
* @summary Get intake forms by session id.
|
|
1183
|
+
* @param {ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsGetRequest} requestParameters Request parameters.
|
|
1184
|
+
* @param {*} [options] Override http request option.
|
|
1185
|
+
* @throws {RequiredError}
|
|
1186
|
+
*/
|
|
1187
|
+
apiV1ChatTenantIdSessionsSessionIdIntakeformsGet(requestParameters, options) {
|
|
1188
|
+
return localVarFp.apiV1ChatTenantIdSessionsSessionIdIntakeformsGet(requestParameters.tenantId, requestParameters.sessionId, requestParameters.id, requestParameters.tenantId2, requestParameters.userId, requestParameters.phoneNumber, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(axios, basePath));
|
|
1189
|
+
},
|
|
1190
|
+
/**
|
|
1191
|
+
*
|
|
1192
|
+
* @summary Delete intake form by id.
|
|
1193
|
+
* @param {ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDeleteRequest} requestParameters Request parameters.
|
|
1194
|
+
* @param {*} [options] Override http request option.
|
|
1195
|
+
* @throws {RequiredError}
|
|
1196
|
+
*/
|
|
1197
|
+
apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDelete(requestParameters, options) {
|
|
1198
|
+
return localVarFp.apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDelete(requestParameters.tenantId, requestParameters.sessionId, requestParameters.intakeFormId, options).then((request) => request(axios, basePath));
|
|
1199
|
+
},
|
|
1200
|
+
/**
|
|
1201
|
+
*
|
|
1202
|
+
* @summary Get intake form by id.
|
|
1203
|
+
* @param {ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGetRequest} requestParameters Request parameters.
|
|
1204
|
+
* @param {*} [options] Override http request option.
|
|
1205
|
+
* @throws {RequiredError}
|
|
1206
|
+
*/
|
|
1207
|
+
apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGet(requestParameters, options) {
|
|
1208
|
+
return localVarFp.apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGet(requestParameters.tenantId, requestParameters.sessionId, requestParameters.intakeFormId, options).then((request) => request(axios, basePath));
|
|
1209
|
+
},
|
|
1210
|
+
/**
|
|
1211
|
+
*
|
|
1212
|
+
* @summary Update intake form by id.
|
|
1213
|
+
* @param {ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatchRequest} requestParameters Request parameters.
|
|
1214
|
+
* @param {*} [options] Override http request option.
|
|
1215
|
+
* @throws {RequiredError}
|
|
1216
|
+
*/
|
|
1217
|
+
apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatch(requestParameters, options) {
|
|
1218
|
+
return localVarFp.apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatch(requestParameters.tenantId, requestParameters.sessionId, requestParameters.intakeFormId, requestParameters.patchIntakeFormCommand, options).then((request) => request(axios, basePath));
|
|
1219
|
+
},
|
|
855
1220
|
/**
|
|
856
1221
|
*
|
|
857
1222
|
* @summary Join a chat session.
|
|
@@ -922,6 +1287,16 @@ const ChatApiFactory = function (configuration, basePath, axios) {
|
|
|
922
1287
|
apiV1ChatTenantIdSessionsSessionIdTransferPut(requestParameters, options) {
|
|
923
1288
|
return localVarFp.apiV1ChatTenantIdSessionsSessionIdTransferPut(requestParameters.tenantId, requestParameters.sessionId, requestParameters.transferManagerCommand, options).then((request) => request(axios, basePath));
|
|
924
1289
|
},
|
|
1290
|
+
/**
|
|
1291
|
+
*
|
|
1292
|
+
* @summary Send whatsapp flow message
|
|
1293
|
+
* @param {ChatApiApiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessagesPostRequest} requestParameters Request parameters.
|
|
1294
|
+
* @param {*} [options] Override http request option.
|
|
1295
|
+
* @throws {RequiredError}
|
|
1296
|
+
*/
|
|
1297
|
+
apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessagesPost(requestParameters, options) {
|
|
1298
|
+
return localVarFp.apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessagesPost(requestParameters.tenantId, requestParameters.sessionId, requestParameters.chatSendFlowMessageCommand, options).then((request) => request(axios, basePath));
|
|
1299
|
+
},
|
|
925
1300
|
};
|
|
926
1301
|
};
|
|
927
1302
|
exports.ChatApiFactory = ChatApiFactory;
|
|
@@ -987,6 +1362,50 @@ class ChatApi extends base_1.BaseAPI {
|
|
|
987
1362
|
apiV1ChatTenantIdSessionsSessionIdGet(requestParameters, options) {
|
|
988
1363
|
return (0, exports.ChatApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdGet(requestParameters.tenantId, requestParameters.sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
989
1364
|
}
|
|
1365
|
+
/**
|
|
1366
|
+
*
|
|
1367
|
+
* @summary Get intake forms by session id.
|
|
1368
|
+
* @param {ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsGetRequest} requestParameters Request parameters.
|
|
1369
|
+
* @param {*} [options] Override http request option.
|
|
1370
|
+
* @throws {RequiredError}
|
|
1371
|
+
* @memberof ChatApi
|
|
1372
|
+
*/
|
|
1373
|
+
apiV1ChatTenantIdSessionsSessionIdIntakeformsGet(requestParameters, options) {
|
|
1374
|
+
return (0, exports.ChatApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdIntakeformsGet(requestParameters.tenantId, requestParameters.sessionId, requestParameters.id, requestParameters.tenantId2, requestParameters.userId, requestParameters.phoneNumber, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
1375
|
+
}
|
|
1376
|
+
/**
|
|
1377
|
+
*
|
|
1378
|
+
* @summary Delete intake form by id.
|
|
1379
|
+
* @param {ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDeleteRequest} requestParameters Request parameters.
|
|
1380
|
+
* @param {*} [options] Override http request option.
|
|
1381
|
+
* @throws {RequiredError}
|
|
1382
|
+
* @memberof ChatApi
|
|
1383
|
+
*/
|
|
1384
|
+
apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDelete(requestParameters, options) {
|
|
1385
|
+
return (0, exports.ChatApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDelete(requestParameters.tenantId, requestParameters.sessionId, requestParameters.intakeFormId, options).then((request) => request(this.axios, this.basePath));
|
|
1386
|
+
}
|
|
1387
|
+
/**
|
|
1388
|
+
*
|
|
1389
|
+
* @summary Get intake form by id.
|
|
1390
|
+
* @param {ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGetRequest} requestParameters Request parameters.
|
|
1391
|
+
* @param {*} [options] Override http request option.
|
|
1392
|
+
* @throws {RequiredError}
|
|
1393
|
+
* @memberof ChatApi
|
|
1394
|
+
*/
|
|
1395
|
+
apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGet(requestParameters, options) {
|
|
1396
|
+
return (0, exports.ChatApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGet(requestParameters.tenantId, requestParameters.sessionId, requestParameters.intakeFormId, options).then((request) => request(this.axios, this.basePath));
|
|
1397
|
+
}
|
|
1398
|
+
/**
|
|
1399
|
+
*
|
|
1400
|
+
* @summary Update intake form by id.
|
|
1401
|
+
* @param {ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatchRequest} requestParameters Request parameters.
|
|
1402
|
+
* @param {*} [options] Override http request option.
|
|
1403
|
+
* @throws {RequiredError}
|
|
1404
|
+
* @memberof ChatApi
|
|
1405
|
+
*/
|
|
1406
|
+
apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatch(requestParameters, options) {
|
|
1407
|
+
return (0, exports.ChatApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatch(requestParameters.tenantId, requestParameters.sessionId, requestParameters.intakeFormId, requestParameters.patchIntakeFormCommand, options).then((request) => request(this.axios, this.basePath));
|
|
1408
|
+
}
|
|
990
1409
|
/**
|
|
991
1410
|
*
|
|
992
1411
|
* @summary Join a chat session.
|
|
@@ -1064,6 +1483,17 @@ class ChatApi extends base_1.BaseAPI {
|
|
|
1064
1483
|
apiV1ChatTenantIdSessionsSessionIdTransferPut(requestParameters, options) {
|
|
1065
1484
|
return (0, exports.ChatApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdTransferPut(requestParameters.tenantId, requestParameters.sessionId, requestParameters.transferManagerCommand, options).then((request) => request(this.axios, this.basePath));
|
|
1066
1485
|
}
|
|
1486
|
+
/**
|
|
1487
|
+
*
|
|
1488
|
+
* @summary Send whatsapp flow message
|
|
1489
|
+
* @param {ChatApiApiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessagesPostRequest} requestParameters Request parameters.
|
|
1490
|
+
* @param {*} [options] Override http request option.
|
|
1491
|
+
* @throws {RequiredError}
|
|
1492
|
+
* @memberof ChatApi
|
|
1493
|
+
*/
|
|
1494
|
+
apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessagesPost(requestParameters, options) {
|
|
1495
|
+
return (0, exports.ChatApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessagesPost(requestParameters.tenantId, requestParameters.sessionId, requestParameters.chatSendFlowMessageCommand, options).then((request) => request(this.axios, this.basePath));
|
|
1496
|
+
}
|
|
1067
1497
|
}
|
|
1068
1498
|
exports.ChatApi = ChatApi;
|
|
1069
1499
|
//# sourceMappingURL=chat-api.js.map
|