@scout9/app 1.0.0-alpha.0.3.1 → 1.0.0-alpha.0.3.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/{dev-73437873.cjs → dev-f7215614.cjs} +121 -1025
- package/dist/{index-78f40e9a.cjs → index-c6c0a761.cjs} +26 -10
- package/dist/index.cjs +4 -4
- package/dist/{macros-44f1f872.cjs → macros-5be965e9.cjs} +1 -1
- package/dist/{multipart-parser-12c1b026.cjs → multipart-parser-734db7f7.cjs} +4 -4
- package/dist/schemas.cjs +1 -1
- package/dist/{spirits-76855e30.cjs → spirits-bf93b875.cjs} +13 -3
- package/dist/spirits.cjs +1 -1
- package/dist/testing-tools.cjs +3 -3
- package/package.json +1 -1
- package/src/core/templates/app.js +11 -4
- package/src/platform.js +18 -3
- package/src/public.d.ts +17 -5
- package/src/runtime/macros/event.js +2 -1
- package/src/runtime/schemas/conversation.js +11 -1
- package/src/testing-tools/dev.js +20 -6
- package/src/testing-tools/spirits.js +15 -4
- package/types/index.d.ts +626 -602
- package/types/index.d.ts.map +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var spirits = require("./spirits-
|
|
3
|
+
var spirits = require("./spirits-bf93b875.cjs");
|
|
4
4
|
var require$$0$4 = require('util');
|
|
5
5
|
var require$$0$3 = require('stream');
|
|
6
6
|
var require$$1 = require('path');
|
|
@@ -23,7 +23,7 @@ var Stream = require('node:stream');
|
|
|
23
23
|
var node_string_decoder = require('node:string_decoder');
|
|
24
24
|
var readline = require('node:readline');
|
|
25
25
|
var process$2 = require('node:process');
|
|
26
|
-
var macros = require("./macros-
|
|
26
|
+
var macros = require("./macros-5be965e9.cjs");
|
|
27
27
|
var node_os = require('node:os');
|
|
28
28
|
var promises = require('fs/promises');
|
|
29
29
|
|
|
@@ -25627,7 +25627,7 @@ common.createRequestFunction = createRequestFunction;
|
|
|
25627
25627
|
Object.defineProperty(exports, "__esModule", {
|
|
25628
25628
|
value: true
|
|
25629
25629
|
});
|
|
25630
|
-
exports.Scout9Api = exports.Scout9ApiGenerated = exports.Scout9ApiFactory = exports.Scout9ApiFp = exports.Scout9ApiAxiosParamCreator = exports.
|
|
25630
|
+
exports.Scout9Api = exports.Scout9ApiGenerated = exports.Scout9ApiFactory = exports.Scout9ApiFp = exports.Scout9ApiAxiosParamCreator = exports.WorkflowResponseSlotForwardOneOfModeEnum = exports.PurposeEnum = exports.PmtConfigModelEnum = exports.PmtConfigEngineEnum = exports.MessageGetResponseInnerRoleEnum = exports.MessageCreateRequestRoleEnum = exports.MessageBaseRoleEnum = exports.MessageRoleEnum = exports.MacroResultTypeEnum = exports.MacroDidResultTypeEnum = exports.MacroContextResultTypeEnum = exports.LlmConfigOneOf2EngineEnum = exports.LlmConfigOneOf1EngineEnum = exports.LlmConfigOneOfModelEnum = exports.LlmConfigOneOfEngineEnum = exports.ListApiOperationsResponseInnerMethodEnum = exports.GetApiOperationResponseMethodEnum = exports.ForwardRequestLatestMessageRoleEnum = exports.ForwardRequestForwardOneOfModeEnum = exports.ExistenceOperator = exports.EqualityOperator = exports.ConversationEnvironment = exports.ConversationContextFieldConditionOperatorEnum = exports.ApiOperationMethodEnum = void 0;
|
|
25631
25631
|
const axios_1$1 = __importDefault(axios_1);
|
|
25632
25632
|
// Some imports not used depending on template conditions
|
|
25633
25633
|
// @ts-ignore
|
|
@@ -25803,114 +25803,6 @@ common.createRequestFunction = createRequestFunction;
|
|
|
25803
25803
|
AfterReply: 'after-reply',
|
|
25804
25804
|
Immediately: 'immediately'
|
|
25805
25805
|
};
|
|
25806
|
-
/**
|
|
25807
|
-
* CustomContextApi - axios parameter creator
|
|
25808
|
-
* @export
|
|
25809
|
-
*/
|
|
25810
|
-
const CustomContextApiAxiosParamCreator = function (configuration) {
|
|
25811
|
-
return {
|
|
25812
|
-
/**
|
|
25813
|
-
*
|
|
25814
|
-
* @summary Test a custom context before training
|
|
25815
|
-
* @param {ContextTestRequest} contextTestRequest
|
|
25816
|
-
* @param {*} [options] Override http request option.
|
|
25817
|
-
* @throws {RequiredError}
|
|
25818
|
-
*/
|
|
25819
|
-
contextTest: async (contextTestRequest, options = {}) => {
|
|
25820
|
-
// verify required parameter 'contextTestRequest' is not null or undefined
|
|
25821
|
-
(0, common_1.assertParamExists)('contextTest', 'contextTestRequest', contextTestRequest);
|
|
25822
|
-
const localVarPath = `/v1-contextTest`;
|
|
25823
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25824
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
25825
|
-
let baseOptions;
|
|
25826
|
-
if (configuration) {
|
|
25827
|
-
baseOptions = configuration.baseOptions;
|
|
25828
|
-
}
|
|
25829
|
-
const localVarRequestOptions = {
|
|
25830
|
-
method: 'POST',
|
|
25831
|
-
...baseOptions,
|
|
25832
|
-
...options
|
|
25833
|
-
};
|
|
25834
|
-
const localVarHeaderParameter = {};
|
|
25835
|
-
const localVarQueryParameter = {};
|
|
25836
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
25837
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
25838
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
25839
|
-
localVarRequestOptions.headers = {
|
|
25840
|
-
...localVarHeaderParameter,
|
|
25841
|
-
...headersFromBaseOptions,
|
|
25842
|
-
...options.headers
|
|
25843
|
-
};
|
|
25844
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(contextTestRequest, localVarRequestOptions, configuration);
|
|
25845
|
-
return {
|
|
25846
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
25847
|
-
options: localVarRequestOptions
|
|
25848
|
-
};
|
|
25849
|
-
}
|
|
25850
|
-
};
|
|
25851
|
-
};
|
|
25852
|
-
exports.CustomContextApiAxiosParamCreator = CustomContextApiAxiosParamCreator;
|
|
25853
|
-
/**
|
|
25854
|
-
* CustomContextApi - functional programming interface
|
|
25855
|
-
* @export
|
|
25856
|
-
*/
|
|
25857
|
-
const CustomContextApiFp = function (configuration) {
|
|
25858
|
-
const localVarAxiosParamCreator = (0, exports.CustomContextApiAxiosParamCreator)(configuration);
|
|
25859
|
-
return {
|
|
25860
|
-
/**
|
|
25861
|
-
*
|
|
25862
|
-
* @summary Test a custom context before training
|
|
25863
|
-
* @param {ContextTestRequest} contextTestRequest
|
|
25864
|
-
* @param {*} [options] Override http request option.
|
|
25865
|
-
* @throws {RequiredError}
|
|
25866
|
-
*/
|
|
25867
|
-
async contextTest(contextTestRequest, options) {
|
|
25868
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.contextTest(contextTestRequest, options);
|
|
25869
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1$1.default, base_1.BASE_PATH, configuration);
|
|
25870
|
-
}
|
|
25871
|
-
};
|
|
25872
|
-
};
|
|
25873
|
-
exports.CustomContextApiFp = CustomContextApiFp;
|
|
25874
|
-
/**
|
|
25875
|
-
* CustomContextApi - factory interface
|
|
25876
|
-
* @export
|
|
25877
|
-
*/
|
|
25878
|
-
const CustomContextApiFactory = function (configuration, basePath, axios) {
|
|
25879
|
-
const localVarFp = (0, exports.CustomContextApiFp)(configuration);
|
|
25880
|
-
return {
|
|
25881
|
-
/**
|
|
25882
|
-
*
|
|
25883
|
-
* @summary Test a custom context before training
|
|
25884
|
-
* @param {ContextTestRequest} contextTestRequest
|
|
25885
|
-
* @param {*} [options] Override http request option.
|
|
25886
|
-
* @throws {RequiredError}
|
|
25887
|
-
*/
|
|
25888
|
-
contextTest(contextTestRequest, options) {
|
|
25889
|
-
return localVarFp.contextTest(contextTestRequest, options).then(request => request(axios, basePath));
|
|
25890
|
-
}
|
|
25891
|
-
};
|
|
25892
|
-
};
|
|
25893
|
-
exports.CustomContextApiFactory = CustomContextApiFactory;
|
|
25894
|
-
/**
|
|
25895
|
-
* CustomContextApi - object-oriented interface
|
|
25896
|
-
* @export
|
|
25897
|
-
* @class CustomContextApi
|
|
25898
|
-
* @extends {BaseAPI}
|
|
25899
|
-
*/
|
|
25900
|
-
class CustomContextApi extends base_1.BaseAPI {
|
|
25901
|
-
/**
|
|
25902
|
-
*
|
|
25903
|
-
* @summary Test a custom context before training
|
|
25904
|
-
* @param {ContextTestRequest} contextTestRequest
|
|
25905
|
-
* @param {*} [options] Override http request option.
|
|
25906
|
-
* @throws {RequiredError}
|
|
25907
|
-
* @memberof CustomContextApi
|
|
25908
|
-
*/
|
|
25909
|
-
contextTest(contextTestRequest, options) {
|
|
25910
|
-
return (0, exports.CustomContextApiFp)(this.configuration).contextTest(contextTestRequest, options).then(request => request(this.axios, this.basePath));
|
|
25911
|
-
}
|
|
25912
|
-
}
|
|
25913
|
-
exports.CustomContextApi = CustomContextApi;
|
|
25914
25806
|
/**
|
|
25915
25807
|
* Scout9Api - axios parameter creator
|
|
25916
25808
|
* @export
|
|
@@ -26342,16 +26234,15 @@ common.createRequestFunction = createRequestFunction;
|
|
|
26342
26234
|
},
|
|
26343
26235
|
/**
|
|
26344
26236
|
*
|
|
26345
|
-
* @summary Gets a
|
|
26237
|
+
* @summary Gets a conversation
|
|
26346
26238
|
* @param {string} id id of entity to query
|
|
26347
26239
|
* @param {*} [options] Override http request option.
|
|
26348
|
-
* @deprecated
|
|
26349
26240
|
* @throws {RequiredError}
|
|
26350
26241
|
*/
|
|
26351
|
-
|
|
26242
|
+
conversation: async (id, options = {}) => {
|
|
26352
26243
|
// verify required parameter 'id' is not null or undefined
|
|
26353
|
-
(0, common_1.assertParamExists)('
|
|
26354
|
-
const localVarPath = `/v1-
|
|
26244
|
+
(0, common_1.assertParamExists)('conversation', 'id', id);
|
|
26245
|
+
const localVarPath = `/v1-conversation`;
|
|
26355
26246
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26356
26247
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
26357
26248
|
let baseOptions;
|
|
@@ -26382,54 +26273,15 @@ common.createRequestFunction = createRequestFunction;
|
|
|
26382
26273
|
},
|
|
26383
26274
|
/**
|
|
26384
26275
|
*
|
|
26385
|
-
* @summary
|
|
26386
|
-
* @param {CreateContextRequest} createContextRequest
|
|
26387
|
-
* @param {*} [options] Override http request option.
|
|
26388
|
-
* @deprecated
|
|
26389
|
-
* @throws {RequiredError}
|
|
26390
|
-
*/
|
|
26391
|
-
contextCreate: async (createContextRequest, options = {}) => {
|
|
26392
|
-
// verify required parameter 'createContextRequest' is not null or undefined
|
|
26393
|
-
(0, common_1.assertParamExists)('contextCreate', 'createContextRequest', createContextRequest);
|
|
26394
|
-
const localVarPath = `/v1-context`;
|
|
26395
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26396
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
26397
|
-
let baseOptions;
|
|
26398
|
-
if (configuration) {
|
|
26399
|
-
baseOptions = configuration.baseOptions;
|
|
26400
|
-
}
|
|
26401
|
-
const localVarRequestOptions = {
|
|
26402
|
-
method: 'POST',
|
|
26403
|
-
...baseOptions,
|
|
26404
|
-
...options
|
|
26405
|
-
};
|
|
26406
|
-
const localVarHeaderParameter = {};
|
|
26407
|
-
const localVarQueryParameter = {};
|
|
26408
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
26409
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
26410
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26411
|
-
localVarRequestOptions.headers = {
|
|
26412
|
-
...localVarHeaderParameter,
|
|
26413
|
-
...headersFromBaseOptions,
|
|
26414
|
-
...options.headers
|
|
26415
|
-
};
|
|
26416
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createContextRequest, localVarRequestOptions, configuration);
|
|
26417
|
-
return {
|
|
26418
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
26419
|
-
options: localVarRequestOptions
|
|
26420
|
-
};
|
|
26421
|
-
},
|
|
26422
|
-
/**
|
|
26423
|
-
*
|
|
26424
|
-
* @summary Gets context data
|
|
26276
|
+
* @summary Gets a conversation
|
|
26425
26277
|
* @param {string} id id of entity to query
|
|
26426
26278
|
* @param {*} [options] Override http request option.
|
|
26427
26279
|
* @throws {RequiredError}
|
|
26428
26280
|
*/
|
|
26429
|
-
|
|
26281
|
+
conversationContext: async (id, options = {}) => {
|
|
26430
26282
|
// verify required parameter 'id' is not null or undefined
|
|
26431
|
-
(0, common_1.assertParamExists)('
|
|
26432
|
-
const localVarPath = `/v1-
|
|
26283
|
+
(0, common_1.assertParamExists)('conversationContext', 'id', id);
|
|
26284
|
+
const localVarPath = `/v1-conversationContext`;
|
|
26433
26285
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26434
26286
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
26435
26287
|
let baseOptions;
|
|
@@ -26460,15 +26312,15 @@ common.createRequestFunction = createRequestFunction;
|
|
|
26460
26312
|
},
|
|
26461
26313
|
/**
|
|
26462
26314
|
*
|
|
26463
|
-
* @summary
|
|
26464
|
-
* @param {
|
|
26315
|
+
* @summary Update a conversation
|
|
26316
|
+
* @param {ConversationContextUpdateRequest} conversationContextUpdateRequest
|
|
26465
26317
|
* @param {*} [options] Override http request option.
|
|
26466
26318
|
* @throws {RequiredError}
|
|
26467
26319
|
*/
|
|
26468
|
-
|
|
26469
|
-
// verify required parameter '
|
|
26470
|
-
(0, common_1.assertParamExists)('
|
|
26471
|
-
const localVarPath = `/v1-
|
|
26320
|
+
conversationContextUpdate: async (conversationContextUpdateRequest, options = {}) => {
|
|
26321
|
+
// verify required parameter 'conversationContextUpdateRequest' is not null or undefined
|
|
26322
|
+
(0, common_1.assertParamExists)('conversationContextUpdate', 'conversationContextUpdateRequest', conversationContextUpdateRequest);
|
|
26323
|
+
const localVarPath = `/v1-conversationContext`;
|
|
26472
26324
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26473
26325
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
26474
26326
|
let baseOptions;
|
|
@@ -26476,7 +26328,7 @@ common.createRequestFunction = createRequestFunction;
|
|
|
26476
26328
|
baseOptions = configuration.baseOptions;
|
|
26477
26329
|
}
|
|
26478
26330
|
const localVarRequestOptions = {
|
|
26479
|
-
method: '
|
|
26331
|
+
method: 'PUT',
|
|
26480
26332
|
...baseOptions,
|
|
26481
26333
|
...options
|
|
26482
26334
|
};
|
|
@@ -26490,46 +26342,7 @@ common.createRequestFunction = createRequestFunction;
|
|
|
26490
26342
|
...headersFromBaseOptions,
|
|
26491
26343
|
...options.headers
|
|
26492
26344
|
};
|
|
26493
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
26494
|
-
return {
|
|
26495
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
26496
|
-
options: localVarRequestOptions
|
|
26497
|
-
};
|
|
26498
|
-
},
|
|
26499
|
-
/**
|
|
26500
|
-
*
|
|
26501
|
-
* @summary Deletes a schedule
|
|
26502
|
-
* @param {string} id id of entity to query
|
|
26503
|
-
* @param {*} [options] Override http request option.
|
|
26504
|
-
* @throws {RequiredError}
|
|
26505
|
-
*/
|
|
26506
|
-
contextDataDelete: async (id, options = {}) => {
|
|
26507
|
-
// verify required parameter 'id' is not null or undefined
|
|
26508
|
-
(0, common_1.assertParamExists)('contextDataDelete', 'id', id);
|
|
26509
|
-
const localVarPath = `/v1-contextDatas`;
|
|
26510
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26511
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
26512
|
-
let baseOptions;
|
|
26513
|
-
if (configuration) {
|
|
26514
|
-
baseOptions = configuration.baseOptions;
|
|
26515
|
-
}
|
|
26516
|
-
const localVarRequestOptions = {
|
|
26517
|
-
method: 'DELETE',
|
|
26518
|
-
...baseOptions,
|
|
26519
|
-
...options
|
|
26520
|
-
};
|
|
26521
|
-
const localVarHeaderParameter = {};
|
|
26522
|
-
const localVarQueryParameter = {};
|
|
26523
|
-
if (id !== undefined) {
|
|
26524
|
-
localVarQueryParameter['id'] = id;
|
|
26525
|
-
}
|
|
26526
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
26527
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26528
|
-
localVarRequestOptions.headers = {
|
|
26529
|
-
...localVarHeaderParameter,
|
|
26530
|
-
...headersFromBaseOptions,
|
|
26531
|
-
...options.headers
|
|
26532
|
-
};
|
|
26345
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(conversationContextUpdateRequest, localVarRequestOptions, configuration);
|
|
26533
26346
|
return {
|
|
26534
26347
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
26535
26348
|
options: localVarRequestOptions
|
|
@@ -26537,15 +26350,15 @@ common.createRequestFunction = createRequestFunction;
|
|
|
26537
26350
|
},
|
|
26538
26351
|
/**
|
|
26539
26352
|
*
|
|
26540
|
-
* @summary
|
|
26541
|
-
* @param {
|
|
26353
|
+
* @summary Create a new conversation
|
|
26354
|
+
* @param {ConversationCreateRequest} conversationCreateRequest
|
|
26542
26355
|
* @param {*} [options] Override http request option.
|
|
26543
26356
|
* @throws {RequiredError}
|
|
26544
26357
|
*/
|
|
26545
|
-
|
|
26546
|
-
// verify required parameter '
|
|
26547
|
-
(0, common_1.assertParamExists)('
|
|
26548
|
-
const localVarPath = `/v1-
|
|
26358
|
+
conversationCreate: async (conversationCreateRequest, options = {}) => {
|
|
26359
|
+
// verify required parameter 'conversationCreateRequest' is not null or undefined
|
|
26360
|
+
(0, common_1.assertParamExists)('conversationCreate', 'conversationCreateRequest', conversationCreateRequest);
|
|
26361
|
+
const localVarPath = `/v1-conversation`;
|
|
26549
26362
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26550
26363
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
26551
26364
|
let baseOptions;
|
|
@@ -26553,7 +26366,7 @@ common.createRequestFunction = createRequestFunction;
|
|
|
26553
26366
|
baseOptions = configuration.baseOptions;
|
|
26554
26367
|
}
|
|
26555
26368
|
const localVarRequestOptions = {
|
|
26556
|
-
method: '
|
|
26369
|
+
method: 'POST',
|
|
26557
26370
|
...baseOptions,
|
|
26558
26371
|
...options
|
|
26559
26372
|
};
|
|
@@ -26567,7 +26380,7 @@ common.createRequestFunction = createRequestFunction;
|
|
|
26567
26380
|
...headersFromBaseOptions,
|
|
26568
26381
|
...options.headers
|
|
26569
26382
|
};
|
|
26570
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
26383
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(conversationCreateRequest, localVarRequestOptions, configuration);
|
|
26571
26384
|
return {
|
|
26572
26385
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
26573
26386
|
options: localVarRequestOptions
|
|
@@ -26575,16 +26388,15 @@ common.createRequestFunction = createRequestFunction;
|
|
|
26575
26388
|
},
|
|
26576
26389
|
/**
|
|
26577
26390
|
*
|
|
26578
|
-
* @summary Deletes a
|
|
26391
|
+
* @summary Deletes a schedule
|
|
26579
26392
|
* @param {string} id id of entity to query
|
|
26580
26393
|
* @param {*} [options] Override http request option.
|
|
26581
|
-
* @deprecated
|
|
26582
26394
|
* @throws {RequiredError}
|
|
26583
26395
|
*/
|
|
26584
|
-
|
|
26396
|
+
conversationDelete: async (id, options = {}) => {
|
|
26585
26397
|
// verify required parameter 'id' is not null or undefined
|
|
26586
|
-
(0, common_1.assertParamExists)('
|
|
26587
|
-
const localVarPath = `/v1-
|
|
26398
|
+
(0, common_1.assertParamExists)('conversationDelete', 'id', id);
|
|
26399
|
+
const localVarPath = `/v1-conversation`;
|
|
26588
26400
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26589
26401
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
26590
26402
|
let baseOptions;
|
|
@@ -26615,54 +26427,15 @@ common.createRequestFunction = createRequestFunction;
|
|
|
26615
26427
|
},
|
|
26616
26428
|
/**
|
|
26617
26429
|
*
|
|
26618
|
-
* @summary
|
|
26619
|
-
* @param {
|
|
26620
|
-
* @param {*} [options] Override http request option.
|
|
26621
|
-
* @throws {RequiredError}
|
|
26622
|
-
*/
|
|
26623
|
-
contextTest: async (contextTestRequest, options = {}) => {
|
|
26624
|
-
// verify required parameter 'contextTestRequest' is not null or undefined
|
|
26625
|
-
(0, common_1.assertParamExists)('contextTest', 'contextTestRequest', contextTestRequest);
|
|
26626
|
-
const localVarPath = `/v1-contextTest`;
|
|
26627
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26628
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
26629
|
-
let baseOptions;
|
|
26630
|
-
if (configuration) {
|
|
26631
|
-
baseOptions = configuration.baseOptions;
|
|
26632
|
-
}
|
|
26633
|
-
const localVarRequestOptions = {
|
|
26634
|
-
method: 'POST',
|
|
26635
|
-
...baseOptions,
|
|
26636
|
-
...options
|
|
26637
|
-
};
|
|
26638
|
-
const localVarHeaderParameter = {};
|
|
26639
|
-
const localVarQueryParameter = {};
|
|
26640
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
26641
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
26642
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26643
|
-
localVarRequestOptions.headers = {
|
|
26644
|
-
...localVarHeaderParameter,
|
|
26645
|
-
...headersFromBaseOptions,
|
|
26646
|
-
...options.headers
|
|
26647
|
-
};
|
|
26648
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(contextTestRequest, localVarRequestOptions, configuration);
|
|
26649
|
-
return {
|
|
26650
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
26651
|
-
options: localVarRequestOptions
|
|
26652
|
-
};
|
|
26653
|
-
},
|
|
26654
|
-
/**
|
|
26655
|
-
* Update a context. . Don\'t use, create your context entities within your Scout9 application.
|
|
26656
|
-
* @summary Update a context
|
|
26657
|
-
* @param {UpdateContextRequest} updateContextRequest
|
|
26430
|
+
* @summary Update a conversation
|
|
26431
|
+
* @param {ConversationUpdateRequest} conversationUpdateRequest
|
|
26658
26432
|
* @param {*} [options] Override http request option.
|
|
26659
|
-
* @deprecated
|
|
26660
26433
|
* @throws {RequiredError}
|
|
26661
26434
|
*/
|
|
26662
|
-
|
|
26663
|
-
// verify required parameter '
|
|
26664
|
-
(0, common_1.assertParamExists)('
|
|
26665
|
-
const localVarPath = `/v1-
|
|
26435
|
+
conversationUpdate: async (conversationUpdateRequest, options = {}) => {
|
|
26436
|
+
// verify required parameter 'conversationUpdateRequest' is not null or undefined
|
|
26437
|
+
(0, common_1.assertParamExists)('conversationUpdate', 'conversationUpdateRequest', conversationUpdateRequest);
|
|
26438
|
+
const localVarPath = `/v1-conversation`;
|
|
26666
26439
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26667
26440
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
26668
26441
|
let baseOptions;
|
|
@@ -26684,7 +26457,7 @@ common.createRequestFunction = createRequestFunction;
|
|
|
26684
26457
|
...headersFromBaseOptions,
|
|
26685
26458
|
...options.headers
|
|
26686
26459
|
};
|
|
26687
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
26460
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(conversationUpdateRequest, localVarRequestOptions, configuration);
|
|
26688
26461
|
return {
|
|
26689
26462
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
26690
26463
|
options: localVarRequestOptions
|
|
@@ -26692,15 +26465,14 @@ common.createRequestFunction = createRequestFunction;
|
|
|
26692
26465
|
},
|
|
26693
26466
|
/**
|
|
26694
26467
|
*
|
|
26695
|
-
* @summary Gets all or specific set of
|
|
26468
|
+
* @summary Gets all or specific set of conversations
|
|
26696
26469
|
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
26697
26470
|
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
26698
26471
|
* @param {*} [options] Override http request option.
|
|
26699
|
-
* @deprecated
|
|
26700
26472
|
* @throws {RequiredError}
|
|
26701
26473
|
*/
|
|
26702
|
-
|
|
26703
|
-
const localVarPath = `/v1-
|
|
26474
|
+
conversations: async (q, id, options = {}) => {
|
|
26475
|
+
const localVarPath = `/v1-conversations`;
|
|
26704
26476
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26705
26477
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
26706
26478
|
let baseOptions;
|
|
@@ -26734,53 +26506,15 @@ common.createRequestFunction = createRequestFunction;
|
|
|
26734
26506
|
},
|
|
26735
26507
|
/**
|
|
26736
26508
|
*
|
|
26737
|
-
* @summary
|
|
26738
|
-
* @param {
|
|
26739
|
-
* @param {*} [options] Override http request option.
|
|
26740
|
-
* @deprecated
|
|
26741
|
-
* @throws {RequiredError}
|
|
26742
|
-
*/
|
|
26743
|
-
contextsCreate: async (createContextsRequest, options = {}) => {
|
|
26744
|
-
// verify required parameter 'createContextsRequest' is not null or undefined
|
|
26745
|
-
(0, common_1.assertParamExists)('contextsCreate', 'createContextsRequest', createContextsRequest);
|
|
26746
|
-
const localVarPath = `/v1-contexts`;
|
|
26747
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26748
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
26749
|
-
let baseOptions;
|
|
26750
|
-
if (configuration) {
|
|
26751
|
-
baseOptions = configuration.baseOptions;
|
|
26752
|
-
}
|
|
26753
|
-
const localVarRequestOptions = {
|
|
26754
|
-
method: 'POST',
|
|
26755
|
-
...baseOptions,
|
|
26756
|
-
...options
|
|
26757
|
-
};
|
|
26758
|
-
const localVarHeaderParameter = {};
|
|
26759
|
-
const localVarQueryParameter = {};
|
|
26760
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
26761
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
26762
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26763
|
-
localVarRequestOptions.headers = {
|
|
26764
|
-
...localVarHeaderParameter,
|
|
26765
|
-
...headersFromBaseOptions,
|
|
26766
|
-
...options.headers
|
|
26767
|
-
};
|
|
26768
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createContextsRequest, localVarRequestOptions, configuration);
|
|
26769
|
-
return {
|
|
26770
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
26771
|
-
options: localVarRequestOptions
|
|
26772
|
-
};
|
|
26773
|
-
},
|
|
26774
|
-
/**
|
|
26775
|
-
*
|
|
26776
|
-
* @summary Deletes multiple contexts. Don\'t use, create your context entities within your Scout9 application.
|
|
26777
|
-
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
26509
|
+
* @summary Gets a customer
|
|
26510
|
+
* @param {string} idOrEmailOrPhone Either customers id, phone number or email
|
|
26778
26511
|
* @param {*} [options] Override http request option.
|
|
26779
|
-
* @deprecated
|
|
26780
26512
|
* @throws {RequiredError}
|
|
26781
26513
|
*/
|
|
26782
|
-
|
|
26783
|
-
|
|
26514
|
+
customer: async (idOrEmailOrPhone, options = {}) => {
|
|
26515
|
+
// verify required parameter 'idOrEmailOrPhone' is not null or undefined
|
|
26516
|
+
(0, common_1.assertParamExists)('customer', 'idOrEmailOrPhone', idOrEmailOrPhone);
|
|
26517
|
+
const localVarPath = `/v1-customer`;
|
|
26784
26518
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26785
26519
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
26786
26520
|
let baseOptions;
|
|
@@ -26788,14 +26522,14 @@ common.createRequestFunction = createRequestFunction;
|
|
|
26788
26522
|
baseOptions = configuration.baseOptions;
|
|
26789
26523
|
}
|
|
26790
26524
|
const localVarRequestOptions = {
|
|
26791
|
-
method: '
|
|
26525
|
+
method: 'GET',
|
|
26792
26526
|
...baseOptions,
|
|
26793
26527
|
...options
|
|
26794
26528
|
};
|
|
26795
26529
|
const localVarHeaderParameter = {};
|
|
26796
26530
|
const localVarQueryParameter = {};
|
|
26797
|
-
if (
|
|
26798
|
-
localVarQueryParameter['
|
|
26531
|
+
if (idOrEmailOrPhone !== undefined) {
|
|
26532
|
+
localVarQueryParameter['idOrEmailOrPhone'] = idOrEmailOrPhone;
|
|
26799
26533
|
}
|
|
26800
26534
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
26801
26535
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -26811,16 +26545,15 @@ common.createRequestFunction = createRequestFunction;
|
|
|
26811
26545
|
},
|
|
26812
26546
|
/**
|
|
26813
26547
|
*
|
|
26814
|
-
* @summary
|
|
26815
|
-
* @param {
|
|
26548
|
+
* @summary Creates a new customer
|
|
26549
|
+
* @param {Customer} body
|
|
26816
26550
|
* @param {*} [options] Override http request option.
|
|
26817
|
-
* @deprecated
|
|
26818
26551
|
* @throws {RequiredError}
|
|
26819
26552
|
*/
|
|
26820
|
-
|
|
26821
|
-
// verify required parameter '
|
|
26822
|
-
(0, common_1.assertParamExists)('
|
|
26823
|
-
const localVarPath = `/v1-
|
|
26553
|
+
customerCreate: async (body, options = {}) => {
|
|
26554
|
+
// verify required parameter 'body' is not null or undefined
|
|
26555
|
+
(0, common_1.assertParamExists)('customerCreate', 'body', body);
|
|
26556
|
+
const localVarPath = `/v1-customer`;
|
|
26824
26557
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26825
26558
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
26826
26559
|
let baseOptions;
|
|
@@ -26828,7 +26561,7 @@ common.createRequestFunction = createRequestFunction;
|
|
|
26828
26561
|
baseOptions = configuration.baseOptions;
|
|
26829
26562
|
}
|
|
26830
26563
|
const localVarRequestOptions = {
|
|
26831
|
-
method: '
|
|
26564
|
+
method: 'POST',
|
|
26832
26565
|
...baseOptions,
|
|
26833
26566
|
...options
|
|
26834
26567
|
};
|
|
@@ -26842,7 +26575,7 @@ common.createRequestFunction = createRequestFunction;
|
|
|
26842
26575
|
...headersFromBaseOptions,
|
|
26843
26576
|
...options.headers
|
|
26844
26577
|
};
|
|
26845
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
26578
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
26846
26579
|
return {
|
|
26847
26580
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
26848
26581
|
options: localVarRequestOptions
|
|
@@ -26850,15 +26583,15 @@ common.createRequestFunction = createRequestFunction;
|
|
|
26850
26583
|
},
|
|
26851
26584
|
/**
|
|
26852
26585
|
*
|
|
26853
|
-
* @summary
|
|
26586
|
+
* @summary Deletes a customer
|
|
26854
26587
|
* @param {string} id id of entity to query
|
|
26855
26588
|
* @param {*} [options] Override http request option.
|
|
26856
26589
|
* @throws {RequiredError}
|
|
26857
26590
|
*/
|
|
26858
|
-
|
|
26591
|
+
customerDelete: async (id, options = {}) => {
|
|
26859
26592
|
// verify required parameter 'id' is not null or undefined
|
|
26860
|
-
(0, common_1.assertParamExists)('
|
|
26861
|
-
const localVarPath = `/v1-
|
|
26593
|
+
(0, common_1.assertParamExists)('customerDelete', 'id', id);
|
|
26594
|
+
const localVarPath = `/v1-customer`;
|
|
26862
26595
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26863
26596
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
26864
26597
|
let baseOptions;
|
|
@@ -26866,279 +26599,7 @@ common.createRequestFunction = createRequestFunction;
|
|
|
26866
26599
|
baseOptions = configuration.baseOptions;
|
|
26867
26600
|
}
|
|
26868
26601
|
const localVarRequestOptions = {
|
|
26869
|
-
method: '
|
|
26870
|
-
...baseOptions,
|
|
26871
|
-
...options
|
|
26872
|
-
};
|
|
26873
|
-
const localVarHeaderParameter = {};
|
|
26874
|
-
const localVarQueryParameter = {};
|
|
26875
|
-
if (id !== undefined) {
|
|
26876
|
-
localVarQueryParameter['id'] = id;
|
|
26877
|
-
}
|
|
26878
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
26879
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26880
|
-
localVarRequestOptions.headers = {
|
|
26881
|
-
...localVarHeaderParameter,
|
|
26882
|
-
...headersFromBaseOptions,
|
|
26883
|
-
...options.headers
|
|
26884
|
-
};
|
|
26885
|
-
return {
|
|
26886
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
26887
|
-
options: localVarRequestOptions
|
|
26888
|
-
};
|
|
26889
|
-
},
|
|
26890
|
-
/**
|
|
26891
|
-
*
|
|
26892
|
-
* @summary Create a new conversation
|
|
26893
|
-
* @param {ConversationCreateRequest} conversationCreateRequest
|
|
26894
|
-
* @param {*} [options] Override http request option.
|
|
26895
|
-
* @throws {RequiredError}
|
|
26896
|
-
*/
|
|
26897
|
-
conversationCreate: async (conversationCreateRequest, options = {}) => {
|
|
26898
|
-
// verify required parameter 'conversationCreateRequest' is not null or undefined
|
|
26899
|
-
(0, common_1.assertParamExists)('conversationCreate', 'conversationCreateRequest', conversationCreateRequest);
|
|
26900
|
-
const localVarPath = `/v1-conversation`;
|
|
26901
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26902
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
26903
|
-
let baseOptions;
|
|
26904
|
-
if (configuration) {
|
|
26905
|
-
baseOptions = configuration.baseOptions;
|
|
26906
|
-
}
|
|
26907
|
-
const localVarRequestOptions = {
|
|
26908
|
-
method: 'POST',
|
|
26909
|
-
...baseOptions,
|
|
26910
|
-
...options
|
|
26911
|
-
};
|
|
26912
|
-
const localVarHeaderParameter = {};
|
|
26913
|
-
const localVarQueryParameter = {};
|
|
26914
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
26915
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
26916
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26917
|
-
localVarRequestOptions.headers = {
|
|
26918
|
-
...localVarHeaderParameter,
|
|
26919
|
-
...headersFromBaseOptions,
|
|
26920
|
-
...options.headers
|
|
26921
|
-
};
|
|
26922
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(conversationCreateRequest, localVarRequestOptions, configuration);
|
|
26923
|
-
return {
|
|
26924
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
26925
|
-
options: localVarRequestOptions
|
|
26926
|
-
};
|
|
26927
|
-
},
|
|
26928
|
-
/**
|
|
26929
|
-
*
|
|
26930
|
-
* @summary Deletes a schedule
|
|
26931
|
-
* @param {string} id id of entity to query
|
|
26932
|
-
* @param {*} [options] Override http request option.
|
|
26933
|
-
* @throws {RequiredError}
|
|
26934
|
-
*/
|
|
26935
|
-
conversationDelete: async (id, options = {}) => {
|
|
26936
|
-
// verify required parameter 'id' is not null or undefined
|
|
26937
|
-
(0, common_1.assertParamExists)('conversationDelete', 'id', id);
|
|
26938
|
-
const localVarPath = `/v1-conversation`;
|
|
26939
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26940
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
26941
|
-
let baseOptions;
|
|
26942
|
-
if (configuration) {
|
|
26943
|
-
baseOptions = configuration.baseOptions;
|
|
26944
|
-
}
|
|
26945
|
-
const localVarRequestOptions = {
|
|
26946
|
-
method: 'DELETE',
|
|
26947
|
-
...baseOptions,
|
|
26948
|
-
...options
|
|
26949
|
-
};
|
|
26950
|
-
const localVarHeaderParameter = {};
|
|
26951
|
-
const localVarQueryParameter = {};
|
|
26952
|
-
if (id !== undefined) {
|
|
26953
|
-
localVarQueryParameter['id'] = id;
|
|
26954
|
-
}
|
|
26955
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
26956
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26957
|
-
localVarRequestOptions.headers = {
|
|
26958
|
-
...localVarHeaderParameter,
|
|
26959
|
-
...headersFromBaseOptions,
|
|
26960
|
-
...options.headers
|
|
26961
|
-
};
|
|
26962
|
-
return {
|
|
26963
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
26964
|
-
options: localVarRequestOptions
|
|
26965
|
-
};
|
|
26966
|
-
},
|
|
26967
|
-
/**
|
|
26968
|
-
*
|
|
26969
|
-
* @summary Update a conversation
|
|
26970
|
-
* @param {ConversationUpdateRequest} conversationUpdateRequest
|
|
26971
|
-
* @param {*} [options] Override http request option.
|
|
26972
|
-
* @throws {RequiredError}
|
|
26973
|
-
*/
|
|
26974
|
-
conversationUpdate: async (conversationUpdateRequest, options = {}) => {
|
|
26975
|
-
// verify required parameter 'conversationUpdateRequest' is not null or undefined
|
|
26976
|
-
(0, common_1.assertParamExists)('conversationUpdate', 'conversationUpdateRequest', conversationUpdateRequest);
|
|
26977
|
-
const localVarPath = `/v1-conversation`;
|
|
26978
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26979
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
26980
|
-
let baseOptions;
|
|
26981
|
-
if (configuration) {
|
|
26982
|
-
baseOptions = configuration.baseOptions;
|
|
26983
|
-
}
|
|
26984
|
-
const localVarRequestOptions = {
|
|
26985
|
-
method: 'PUT',
|
|
26986
|
-
...baseOptions,
|
|
26987
|
-
...options
|
|
26988
|
-
};
|
|
26989
|
-
const localVarHeaderParameter = {};
|
|
26990
|
-
const localVarQueryParameter = {};
|
|
26991
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
26992
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
26993
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26994
|
-
localVarRequestOptions.headers = {
|
|
26995
|
-
...localVarHeaderParameter,
|
|
26996
|
-
...headersFromBaseOptions,
|
|
26997
|
-
...options.headers
|
|
26998
|
-
};
|
|
26999
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(conversationUpdateRequest, localVarRequestOptions, configuration);
|
|
27000
|
-
return {
|
|
27001
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
27002
|
-
options: localVarRequestOptions
|
|
27003
|
-
};
|
|
27004
|
-
},
|
|
27005
|
-
/**
|
|
27006
|
-
*
|
|
27007
|
-
* @summary Gets all or specific set of conversations
|
|
27008
|
-
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
27009
|
-
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
27010
|
-
* @param {*} [options] Override http request option.
|
|
27011
|
-
* @throws {RequiredError}
|
|
27012
|
-
*/
|
|
27013
|
-
conversations: async (q, id, options = {}) => {
|
|
27014
|
-
const localVarPath = `/v1-conversations`;
|
|
27015
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
27016
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
27017
|
-
let baseOptions;
|
|
27018
|
-
if (configuration) {
|
|
27019
|
-
baseOptions = configuration.baseOptions;
|
|
27020
|
-
}
|
|
27021
|
-
const localVarRequestOptions = {
|
|
27022
|
-
method: 'GET',
|
|
27023
|
-
...baseOptions,
|
|
27024
|
-
...options
|
|
27025
|
-
};
|
|
27026
|
-
const localVarHeaderParameter = {};
|
|
27027
|
-
const localVarQueryParameter = {};
|
|
27028
|
-
if (q !== undefined) {
|
|
27029
|
-
localVarQueryParameter['q'] = q;
|
|
27030
|
-
}
|
|
27031
|
-
if (id) {
|
|
27032
|
-
localVarQueryParameter['id'] = id;
|
|
27033
|
-
}
|
|
27034
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
27035
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
27036
|
-
localVarRequestOptions.headers = {
|
|
27037
|
-
...localVarHeaderParameter,
|
|
27038
|
-
...headersFromBaseOptions,
|
|
27039
|
-
...options.headers
|
|
27040
|
-
};
|
|
27041
|
-
return {
|
|
27042
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
27043
|
-
options: localVarRequestOptions
|
|
27044
|
-
};
|
|
27045
|
-
},
|
|
27046
|
-
/**
|
|
27047
|
-
*
|
|
27048
|
-
* @summary Gets a customer
|
|
27049
|
-
* @param {string} id id of entity to query
|
|
27050
|
-
* @param {*} [options] Override http request option.
|
|
27051
|
-
* @throws {RequiredError}
|
|
27052
|
-
*/
|
|
27053
|
-
customer: async (id, options = {}) => {
|
|
27054
|
-
// verify required parameter 'id' is not null or undefined
|
|
27055
|
-
(0, common_1.assertParamExists)('customer', 'id', id);
|
|
27056
|
-
const localVarPath = `/v1-customer`;
|
|
27057
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
27058
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
27059
|
-
let baseOptions;
|
|
27060
|
-
if (configuration) {
|
|
27061
|
-
baseOptions = configuration.baseOptions;
|
|
27062
|
-
}
|
|
27063
|
-
const localVarRequestOptions = {
|
|
27064
|
-
method: 'GET',
|
|
27065
|
-
...baseOptions,
|
|
27066
|
-
...options
|
|
27067
|
-
};
|
|
27068
|
-
const localVarHeaderParameter = {};
|
|
27069
|
-
const localVarQueryParameter = {};
|
|
27070
|
-
if (id !== undefined) {
|
|
27071
|
-
localVarQueryParameter['id'] = id;
|
|
27072
|
-
}
|
|
27073
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
27074
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
27075
|
-
localVarRequestOptions.headers = {
|
|
27076
|
-
...localVarHeaderParameter,
|
|
27077
|
-
...headersFromBaseOptions,
|
|
27078
|
-
...options.headers
|
|
27079
|
-
};
|
|
27080
|
-
return {
|
|
27081
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
27082
|
-
options: localVarRequestOptions
|
|
27083
|
-
};
|
|
27084
|
-
},
|
|
27085
|
-
/**
|
|
27086
|
-
*
|
|
27087
|
-
* @summary Creates a new customer
|
|
27088
|
-
* @param {Customer} body
|
|
27089
|
-
* @param {*} [options] Override http request option.
|
|
27090
|
-
* @throws {RequiredError}
|
|
27091
|
-
*/
|
|
27092
|
-
customerCreate: async (body, options = {}) => {
|
|
27093
|
-
// verify required parameter 'body' is not null or undefined
|
|
27094
|
-
(0, common_1.assertParamExists)('customerCreate', 'body', body);
|
|
27095
|
-
const localVarPath = `/v1-customer`;
|
|
27096
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
27097
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
27098
|
-
let baseOptions;
|
|
27099
|
-
if (configuration) {
|
|
27100
|
-
baseOptions = configuration.baseOptions;
|
|
27101
|
-
}
|
|
27102
|
-
const localVarRequestOptions = {
|
|
27103
|
-
method: 'POST',
|
|
27104
|
-
...baseOptions,
|
|
27105
|
-
...options
|
|
27106
|
-
};
|
|
27107
|
-
const localVarHeaderParameter = {};
|
|
27108
|
-
const localVarQueryParameter = {};
|
|
27109
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
27110
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
27111
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
27112
|
-
localVarRequestOptions.headers = {
|
|
27113
|
-
...localVarHeaderParameter,
|
|
27114
|
-
...headersFromBaseOptions,
|
|
27115
|
-
...options.headers
|
|
27116
|
-
};
|
|
27117
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
27118
|
-
return {
|
|
27119
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
27120
|
-
options: localVarRequestOptions
|
|
27121
|
-
};
|
|
27122
|
-
},
|
|
27123
|
-
/**
|
|
27124
|
-
*
|
|
27125
|
-
* @summary Deletes a customer
|
|
27126
|
-
* @param {string} id id of entity to query
|
|
27127
|
-
* @param {*} [options] Override http request option.
|
|
27128
|
-
* @throws {RequiredError}
|
|
27129
|
-
*/
|
|
27130
|
-
customerDelete: async (id, options = {}) => {
|
|
27131
|
-
// verify required parameter 'id' is not null or undefined
|
|
27132
|
-
(0, common_1.assertParamExists)('customerDelete', 'id', id);
|
|
27133
|
-
const localVarPath = `/v1-customer`;
|
|
27134
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
27135
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
27136
|
-
let baseOptions;
|
|
27137
|
-
if (configuration) {
|
|
27138
|
-
baseOptions = configuration.baseOptions;
|
|
27139
|
-
}
|
|
27140
|
-
const localVarRequestOptions = {
|
|
27141
|
-
method: 'DELETE',
|
|
26602
|
+
method: 'DELETE',
|
|
27142
26603
|
...baseOptions,
|
|
27143
26604
|
...options
|
|
27144
26605
|
};
|
|
@@ -28658,165 +28119,35 @@ common.createRequestFunction = createRequestFunction;
|
|
|
28658
28119
|
},
|
|
28659
28120
|
/**
|
|
28660
28121
|
*
|
|
28661
|
-
* @summary Gets a
|
|
28662
|
-
* @param {string} id id of entity to query
|
|
28663
|
-
* @param {*} [options] Override http request option.
|
|
28664
|
-
* @deprecated
|
|
28665
|
-
* @throws {RequiredError}
|
|
28666
|
-
*/
|
|
28667
|
-
async context(id, options) {
|
|
28668
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.context(id, options);
|
|
28669
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1$1.default, base_1.BASE_PATH, configuration);
|
|
28670
|
-
},
|
|
28671
|
-
/**
|
|
28672
|
-
*
|
|
28673
|
-
* @summary Create a new context. Don\'t use, create your context entities within your Scout9 application.
|
|
28674
|
-
* @param {CreateContextRequest} createContextRequest
|
|
28675
|
-
* @param {*} [options] Override http request option.
|
|
28676
|
-
* @deprecated
|
|
28677
|
-
* @throws {RequiredError}
|
|
28678
|
-
*/
|
|
28679
|
-
async contextCreate(createContextRequest, options) {
|
|
28680
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.contextCreate(createContextRequest, options);
|
|
28681
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1$1.default, base_1.BASE_PATH, configuration);
|
|
28682
|
-
},
|
|
28683
|
-
/**
|
|
28684
|
-
*
|
|
28685
|
-
* @summary Gets context data
|
|
28686
|
-
* @param {string} id id of entity to query
|
|
28687
|
-
* @param {*} [options] Override http request option.
|
|
28688
|
-
* @throws {RequiredError}
|
|
28689
|
-
*/
|
|
28690
|
-
async contextData(id, options) {
|
|
28691
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.contextData(id, options);
|
|
28692
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1$1.default, base_1.BASE_PATH, configuration);
|
|
28693
|
-
},
|
|
28694
|
-
/**
|
|
28695
|
-
*
|
|
28696
|
-
* @summary Create a new context data
|
|
28697
|
-
* @param {CreateContextDataRequest} createContextDataRequest
|
|
28698
|
-
* @param {*} [options] Override http request option.
|
|
28699
|
-
* @throws {RequiredError}
|
|
28700
|
-
*/
|
|
28701
|
-
async contextDataCreate(createContextDataRequest, options) {
|
|
28702
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.contextDataCreate(createContextDataRequest, options);
|
|
28703
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1$1.default, base_1.BASE_PATH, configuration);
|
|
28704
|
-
},
|
|
28705
|
-
/**
|
|
28706
|
-
*
|
|
28707
|
-
* @summary Deletes a schedule
|
|
28122
|
+
* @summary Gets a conversation
|
|
28708
28123
|
* @param {string} id id of entity to query
|
|
28709
28124
|
* @param {*} [options] Override http request option.
|
|
28710
28125
|
* @throws {RequiredError}
|
|
28711
28126
|
*/
|
|
28712
|
-
async
|
|
28713
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
28714
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1$1.default, base_1.BASE_PATH, configuration);
|
|
28715
|
-
},
|
|
28716
|
-
/**
|
|
28717
|
-
*
|
|
28718
|
-
* @summary Update a context data
|
|
28719
|
-
* @param {UpdateContextDataRequest} updateContextDataRequest
|
|
28720
|
-
* @param {*} [options] Override http request option.
|
|
28721
|
-
* @throws {RequiredError}
|
|
28722
|
-
*/
|
|
28723
|
-
async contextDataUpdate(updateContextDataRequest, options) {
|
|
28724
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.contextDataUpdate(updateContextDataRequest, options);
|
|
28127
|
+
async conversation(id, options) {
|
|
28128
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversation(id, options);
|
|
28725
28129
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1$1.default, base_1.BASE_PATH, configuration);
|
|
28726
28130
|
},
|
|
28727
28131
|
/**
|
|
28728
28132
|
*
|
|
28729
|
-
* @summary
|
|
28133
|
+
* @summary Gets a conversation
|
|
28730
28134
|
* @param {string} id id of entity to query
|
|
28731
28135
|
* @param {*} [options] Override http request option.
|
|
28732
|
-
* @deprecated
|
|
28733
|
-
* @throws {RequiredError}
|
|
28734
|
-
*/
|
|
28735
|
-
async contextDelete(id, options) {
|
|
28736
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.contextDelete(id, options);
|
|
28737
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1$1.default, base_1.BASE_PATH, configuration);
|
|
28738
|
-
},
|
|
28739
|
-
/**
|
|
28740
|
-
*
|
|
28741
|
-
* @summary Test a custom context before training
|
|
28742
|
-
* @param {ContextTestRequest} contextTestRequest
|
|
28743
|
-
* @param {*} [options] Override http request option.
|
|
28744
|
-
* @throws {RequiredError}
|
|
28745
|
-
*/
|
|
28746
|
-
async contextTest(contextTestRequest, options) {
|
|
28747
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.contextTest(contextTestRequest, options);
|
|
28748
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1$1.default, base_1.BASE_PATH, configuration);
|
|
28749
|
-
},
|
|
28750
|
-
/**
|
|
28751
|
-
* Update a context. . Don\'t use, create your context entities within your Scout9 application.
|
|
28752
|
-
* @summary Update a context
|
|
28753
|
-
* @param {UpdateContextRequest} updateContextRequest
|
|
28754
|
-
* @param {*} [options] Override http request option.
|
|
28755
|
-
* @deprecated
|
|
28756
|
-
* @throws {RequiredError}
|
|
28757
|
-
*/
|
|
28758
|
-
async contextUpdate(updateContextRequest, options) {
|
|
28759
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.contextUpdate(updateContextRequest, options);
|
|
28760
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1$1.default, base_1.BASE_PATH, configuration);
|
|
28761
|
-
},
|
|
28762
|
-
/**
|
|
28763
|
-
*
|
|
28764
|
-
* @summary Gets all or specific set of contexts. Don\'t use, create your context entities within your Scout9 application.
|
|
28765
|
-
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
28766
|
-
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
28767
|
-
* @param {*} [options] Override http request option.
|
|
28768
|
-
* @deprecated
|
|
28769
|
-
* @throws {RequiredError}
|
|
28770
|
-
*/
|
|
28771
|
-
async contexts(q, id, options) {
|
|
28772
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.contexts(q, id, options);
|
|
28773
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1$1.default, base_1.BASE_PATH, configuration);
|
|
28774
|
-
},
|
|
28775
|
-
/**
|
|
28776
|
-
*
|
|
28777
|
-
* @summary Creates new contexts. Don\'t use, create your context entities within your Scout9 application.
|
|
28778
|
-
* @param {CreateContextsRequest} createContextsRequest
|
|
28779
|
-
* @param {*} [options] Override http request option.
|
|
28780
|
-
* @deprecated
|
|
28781
28136
|
* @throws {RequiredError}
|
|
28782
28137
|
*/
|
|
28783
|
-
async
|
|
28784
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
28138
|
+
async conversationContext(id, options) {
|
|
28139
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationContext(id, options);
|
|
28785
28140
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1$1.default, base_1.BASE_PATH, configuration);
|
|
28786
28141
|
},
|
|
28787
28142
|
/**
|
|
28788
28143
|
*
|
|
28789
|
-
* @summary
|
|
28790
|
-
* @param {
|
|
28791
|
-
* @param {*} [options] Override http request option.
|
|
28792
|
-
* @deprecated
|
|
28793
|
-
* @throws {RequiredError}
|
|
28794
|
-
*/
|
|
28795
|
-
async contextsDelete(id, options) {
|
|
28796
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.contextsDelete(id, options);
|
|
28797
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1$1.default, base_1.BASE_PATH, configuration);
|
|
28798
|
-
},
|
|
28799
|
-
/**
|
|
28800
|
-
*
|
|
28801
|
-
* @summary Updates multiple contexts. Don\'t use, create your context entities within your Scout9 application.
|
|
28802
|
-
* @param {UpdateContextRequest} updateContextRequest
|
|
28144
|
+
* @summary Update a conversation
|
|
28145
|
+
* @param {ConversationContextUpdateRequest} conversationContextUpdateRequest
|
|
28803
28146
|
* @param {*} [options] Override http request option.
|
|
28804
|
-
* @deprecated
|
|
28805
28147
|
* @throws {RequiredError}
|
|
28806
28148
|
*/
|
|
28807
|
-
async
|
|
28808
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
28809
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1$1.default, base_1.BASE_PATH, configuration);
|
|
28810
|
-
},
|
|
28811
|
-
/**
|
|
28812
|
-
*
|
|
28813
|
-
* @summary Gets a conversation
|
|
28814
|
-
* @param {string} id id of entity to query
|
|
28815
|
-
* @param {*} [options] Override http request option.
|
|
28816
|
-
* @throws {RequiredError}
|
|
28817
|
-
*/
|
|
28818
|
-
async conversation(id, options) {
|
|
28819
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.conversation(id, options);
|
|
28149
|
+
async conversationContextUpdate(conversationContextUpdateRequest, options) {
|
|
28150
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationContextUpdate(conversationContextUpdateRequest, options);
|
|
28820
28151
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1$1.default, base_1.BASE_PATH, configuration);
|
|
28821
28152
|
},
|
|
28822
28153
|
/**
|
|
@@ -28867,12 +28198,12 @@ common.createRequestFunction = createRequestFunction;
|
|
|
28867
28198
|
/**
|
|
28868
28199
|
*
|
|
28869
28200
|
* @summary Gets a customer
|
|
28870
|
-
* @param {string}
|
|
28201
|
+
* @param {string} idOrEmailOrPhone Either customers id, phone number or email
|
|
28871
28202
|
* @param {*} [options] Override http request option.
|
|
28872
28203
|
* @throws {RequiredError}
|
|
28873
28204
|
*/
|
|
28874
|
-
async customer(
|
|
28875
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.customer(
|
|
28205
|
+
async customer(idOrEmailOrPhone, options) {
|
|
28206
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.customer(idOrEmailOrPhone, options);
|
|
28876
28207
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1$1.default, base_1.BASE_PATH, configuration);
|
|
28877
28208
|
},
|
|
28878
28209
|
/**
|
|
@@ -29414,152 +28745,33 @@ common.createRequestFunction = createRequestFunction;
|
|
|
29414
28745
|
},
|
|
29415
28746
|
/**
|
|
29416
28747
|
*
|
|
29417
|
-
* @summary Gets a
|
|
29418
|
-
* @param {string} id id of entity to query
|
|
29419
|
-
* @param {*} [options] Override http request option.
|
|
29420
|
-
* @deprecated
|
|
29421
|
-
* @throws {RequiredError}
|
|
29422
|
-
*/
|
|
29423
|
-
context(id, options) {
|
|
29424
|
-
return localVarFp.context(id, options).then(request => request(axios, basePath));
|
|
29425
|
-
},
|
|
29426
|
-
/**
|
|
29427
|
-
*
|
|
29428
|
-
* @summary Create a new context. Don\'t use, create your context entities within your Scout9 application.
|
|
29429
|
-
* @param {CreateContextRequest} createContextRequest
|
|
29430
|
-
* @param {*} [options] Override http request option.
|
|
29431
|
-
* @deprecated
|
|
29432
|
-
* @throws {RequiredError}
|
|
29433
|
-
*/
|
|
29434
|
-
contextCreate(createContextRequest, options) {
|
|
29435
|
-
return localVarFp.contextCreate(createContextRequest, options).then(request => request(axios, basePath));
|
|
29436
|
-
},
|
|
29437
|
-
/**
|
|
29438
|
-
*
|
|
29439
|
-
* @summary Gets context data
|
|
29440
|
-
* @param {string} id id of entity to query
|
|
29441
|
-
* @param {*} [options] Override http request option.
|
|
29442
|
-
* @throws {RequiredError}
|
|
29443
|
-
*/
|
|
29444
|
-
contextData(id, options) {
|
|
29445
|
-
return localVarFp.contextData(id, options).then(request => request(axios, basePath));
|
|
29446
|
-
},
|
|
29447
|
-
/**
|
|
29448
|
-
*
|
|
29449
|
-
* @summary Create a new context data
|
|
29450
|
-
* @param {CreateContextDataRequest} createContextDataRequest
|
|
29451
|
-
* @param {*} [options] Override http request option.
|
|
29452
|
-
* @throws {RequiredError}
|
|
29453
|
-
*/
|
|
29454
|
-
contextDataCreate(createContextDataRequest, options) {
|
|
29455
|
-
return localVarFp.contextDataCreate(createContextDataRequest, options).then(request => request(axios, basePath));
|
|
29456
|
-
},
|
|
29457
|
-
/**
|
|
29458
|
-
*
|
|
29459
|
-
* @summary Deletes a schedule
|
|
28748
|
+
* @summary Gets a conversation
|
|
29460
28749
|
* @param {string} id id of entity to query
|
|
29461
28750
|
* @param {*} [options] Override http request option.
|
|
29462
28751
|
* @throws {RequiredError}
|
|
29463
28752
|
*/
|
|
29464
|
-
|
|
29465
|
-
return localVarFp.
|
|
29466
|
-
},
|
|
29467
|
-
/**
|
|
29468
|
-
*
|
|
29469
|
-
* @summary Update a context data
|
|
29470
|
-
* @param {UpdateContextDataRequest} updateContextDataRequest
|
|
29471
|
-
* @param {*} [options] Override http request option.
|
|
29472
|
-
* @throws {RequiredError}
|
|
29473
|
-
*/
|
|
29474
|
-
contextDataUpdate(updateContextDataRequest, options) {
|
|
29475
|
-
return localVarFp.contextDataUpdate(updateContextDataRequest, options).then(request => request(axios, basePath));
|
|
28753
|
+
conversation(id, options) {
|
|
28754
|
+
return localVarFp.conversation(id, options).then(request => request(axios, basePath));
|
|
29476
28755
|
},
|
|
29477
28756
|
/**
|
|
29478
28757
|
*
|
|
29479
|
-
* @summary
|
|
28758
|
+
* @summary Gets a conversation
|
|
29480
28759
|
* @param {string} id id of entity to query
|
|
29481
28760
|
* @param {*} [options] Override http request option.
|
|
29482
|
-
* @deprecated
|
|
29483
28761
|
* @throws {RequiredError}
|
|
29484
28762
|
*/
|
|
29485
|
-
|
|
29486
|
-
return localVarFp.
|
|
28763
|
+
conversationContext(id, options) {
|
|
28764
|
+
return localVarFp.conversationContext(id, options).then(request => request(axios, basePath));
|
|
29487
28765
|
},
|
|
29488
28766
|
/**
|
|
29489
28767
|
*
|
|
29490
|
-
* @summary
|
|
29491
|
-
* @param {
|
|
29492
|
-
* @param {*} [options] Override http request option.
|
|
29493
|
-
* @throws {RequiredError}
|
|
29494
|
-
*/
|
|
29495
|
-
contextTest(contextTestRequest, options) {
|
|
29496
|
-
return localVarFp.contextTest(contextTestRequest, options).then(request => request(axios, basePath));
|
|
29497
|
-
},
|
|
29498
|
-
/**
|
|
29499
|
-
* Update a context. . Don\'t use, create your context entities within your Scout9 application.
|
|
29500
|
-
* @summary Update a context
|
|
29501
|
-
* @param {UpdateContextRequest} updateContextRequest
|
|
29502
|
-
* @param {*} [options] Override http request option.
|
|
29503
|
-
* @deprecated
|
|
29504
|
-
* @throws {RequiredError}
|
|
29505
|
-
*/
|
|
29506
|
-
contextUpdate(updateContextRequest, options) {
|
|
29507
|
-
return localVarFp.contextUpdate(updateContextRequest, options).then(request => request(axios, basePath));
|
|
29508
|
-
},
|
|
29509
|
-
/**
|
|
29510
|
-
*
|
|
29511
|
-
* @summary Gets all or specific set of contexts. Don\'t use, create your context entities within your Scout9 application.
|
|
29512
|
-
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
29513
|
-
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
29514
|
-
* @param {*} [options] Override http request option.
|
|
29515
|
-
* @deprecated
|
|
29516
|
-
* @throws {RequiredError}
|
|
29517
|
-
*/
|
|
29518
|
-
contexts(q, id, options) {
|
|
29519
|
-
return localVarFp.contexts(q, id, options).then(request => request(axios, basePath));
|
|
29520
|
-
},
|
|
29521
|
-
/**
|
|
29522
|
-
*
|
|
29523
|
-
* @summary Creates new contexts. Don\'t use, create your context entities within your Scout9 application.
|
|
29524
|
-
* @param {CreateContextsRequest} createContextsRequest
|
|
29525
|
-
* @param {*} [options] Override http request option.
|
|
29526
|
-
* @deprecated
|
|
29527
|
-
* @throws {RequiredError}
|
|
29528
|
-
*/
|
|
29529
|
-
contextsCreate(createContextsRequest, options) {
|
|
29530
|
-
return localVarFp.contextsCreate(createContextsRequest, options).then(request => request(axios, basePath));
|
|
29531
|
-
},
|
|
29532
|
-
/**
|
|
29533
|
-
*
|
|
29534
|
-
* @summary Deletes multiple contexts. Don\'t use, create your context entities within your Scout9 application.
|
|
29535
|
-
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
29536
|
-
* @param {*} [options] Override http request option.
|
|
29537
|
-
* @deprecated
|
|
29538
|
-
* @throws {RequiredError}
|
|
29539
|
-
*/
|
|
29540
|
-
contextsDelete(id, options) {
|
|
29541
|
-
return localVarFp.contextsDelete(id, options).then(request => request(axios, basePath));
|
|
29542
|
-
},
|
|
29543
|
-
/**
|
|
29544
|
-
*
|
|
29545
|
-
* @summary Updates multiple contexts. Don\'t use, create your context entities within your Scout9 application.
|
|
29546
|
-
* @param {UpdateContextRequest} updateContextRequest
|
|
29547
|
-
* @param {*} [options] Override http request option.
|
|
29548
|
-
* @deprecated
|
|
29549
|
-
* @throws {RequiredError}
|
|
29550
|
-
*/
|
|
29551
|
-
contextsUpdate(updateContextRequest, options) {
|
|
29552
|
-
return localVarFp.contextsUpdate(updateContextRequest, options).then(request => request(axios, basePath));
|
|
29553
|
-
},
|
|
29554
|
-
/**
|
|
29555
|
-
*
|
|
29556
|
-
* @summary Gets a conversation
|
|
29557
|
-
* @param {string} id id of entity to query
|
|
28768
|
+
* @summary Update a conversation
|
|
28769
|
+
* @param {ConversationContextUpdateRequest} conversationContextUpdateRequest
|
|
29558
28770
|
* @param {*} [options] Override http request option.
|
|
29559
28771
|
* @throws {RequiredError}
|
|
29560
28772
|
*/
|
|
29561
|
-
|
|
29562
|
-
return localVarFp.
|
|
28773
|
+
conversationContextUpdate(conversationContextUpdateRequest, options) {
|
|
28774
|
+
return localVarFp.conversationContextUpdate(conversationContextUpdateRequest, options).then(request => request(axios, basePath));
|
|
29563
28775
|
},
|
|
29564
28776
|
/**
|
|
29565
28777
|
*
|
|
@@ -29605,12 +28817,12 @@ common.createRequestFunction = createRequestFunction;
|
|
|
29605
28817
|
/**
|
|
29606
28818
|
*
|
|
29607
28819
|
* @summary Gets a customer
|
|
29608
|
-
* @param {string}
|
|
28820
|
+
* @param {string} idOrEmailOrPhone Either customers id, phone number or email
|
|
29609
28821
|
* @param {*} [options] Override http request option.
|
|
29610
28822
|
* @throws {RequiredError}
|
|
29611
28823
|
*/
|
|
29612
|
-
customer(
|
|
29613
|
-
return localVarFp.customer(
|
|
28824
|
+
customer(idOrEmailOrPhone, options) {
|
|
28825
|
+
return localVarFp.customer(idOrEmailOrPhone, options).then(request => request(axios, basePath));
|
|
29614
28826
|
},
|
|
29615
28827
|
/**
|
|
29616
28828
|
*
|
|
@@ -30126,166 +29338,36 @@ common.createRequestFunction = createRequestFunction;
|
|
|
30126
29338
|
}
|
|
30127
29339
|
/**
|
|
30128
29340
|
*
|
|
30129
|
-
* @summary Gets a
|
|
30130
|
-
* @param {string} id id of entity to query
|
|
30131
|
-
* @param {*} [options] Override http request option.
|
|
30132
|
-
* @deprecated
|
|
30133
|
-
* @throws {RequiredError}
|
|
30134
|
-
* @memberof Scout9Api
|
|
30135
|
-
*/
|
|
30136
|
-
context(id, options) {
|
|
30137
|
-
return (0, exports.Scout9ApiFp)(this.configuration).context(id, options).then(request => request(this.axios, this.basePath));
|
|
30138
|
-
}
|
|
30139
|
-
/**
|
|
30140
|
-
*
|
|
30141
|
-
* @summary Create a new context. Don\'t use, create your context entities within your Scout9 application.
|
|
30142
|
-
* @param {CreateContextRequest} createContextRequest
|
|
30143
|
-
* @param {*} [options] Override http request option.
|
|
30144
|
-
* @deprecated
|
|
30145
|
-
* @throws {RequiredError}
|
|
30146
|
-
* @memberof Scout9Api
|
|
30147
|
-
*/
|
|
30148
|
-
contextCreate(createContextRequest, options) {
|
|
30149
|
-
return (0, exports.Scout9ApiFp)(this.configuration).contextCreate(createContextRequest, options).then(request => request(this.axios, this.basePath));
|
|
30150
|
-
}
|
|
30151
|
-
/**
|
|
30152
|
-
*
|
|
30153
|
-
* @summary Gets context data
|
|
30154
|
-
* @param {string} id id of entity to query
|
|
30155
|
-
* @param {*} [options] Override http request option.
|
|
30156
|
-
* @throws {RequiredError}
|
|
30157
|
-
* @memberof Scout9Api
|
|
30158
|
-
*/
|
|
30159
|
-
contextData(id, options) {
|
|
30160
|
-
return (0, exports.Scout9ApiFp)(this.configuration).contextData(id, options).then(request => request(this.axios, this.basePath));
|
|
30161
|
-
}
|
|
30162
|
-
/**
|
|
30163
|
-
*
|
|
30164
|
-
* @summary Create a new context data
|
|
30165
|
-
* @param {CreateContextDataRequest} createContextDataRequest
|
|
30166
|
-
* @param {*} [options] Override http request option.
|
|
30167
|
-
* @throws {RequiredError}
|
|
30168
|
-
* @memberof Scout9Api
|
|
30169
|
-
*/
|
|
30170
|
-
contextDataCreate(createContextDataRequest, options) {
|
|
30171
|
-
return (0, exports.Scout9ApiFp)(this.configuration).contextDataCreate(createContextDataRequest, options).then(request => request(this.axios, this.basePath));
|
|
30172
|
-
}
|
|
30173
|
-
/**
|
|
30174
|
-
*
|
|
30175
|
-
* @summary Deletes a schedule
|
|
29341
|
+
* @summary Gets a conversation
|
|
30176
29342
|
* @param {string} id id of entity to query
|
|
30177
29343
|
* @param {*} [options] Override http request option.
|
|
30178
29344
|
* @throws {RequiredError}
|
|
30179
29345
|
* @memberof Scout9Api
|
|
30180
29346
|
*/
|
|
30181
|
-
|
|
30182
|
-
return (0, exports.Scout9ApiFp)(this.configuration).
|
|
30183
|
-
}
|
|
30184
|
-
/**
|
|
30185
|
-
*
|
|
30186
|
-
* @summary Update a context data
|
|
30187
|
-
* @param {UpdateContextDataRequest} updateContextDataRequest
|
|
30188
|
-
* @param {*} [options] Override http request option.
|
|
30189
|
-
* @throws {RequiredError}
|
|
30190
|
-
* @memberof Scout9Api
|
|
30191
|
-
*/
|
|
30192
|
-
contextDataUpdate(updateContextDataRequest, options) {
|
|
30193
|
-
return (0, exports.Scout9ApiFp)(this.configuration).contextDataUpdate(updateContextDataRequest, options).then(request => request(this.axios, this.basePath));
|
|
29347
|
+
conversation(id, options) {
|
|
29348
|
+
return (0, exports.Scout9ApiFp)(this.configuration).conversation(id, options).then(request => request(this.axios, this.basePath));
|
|
30194
29349
|
}
|
|
30195
29350
|
/**
|
|
30196
29351
|
*
|
|
30197
|
-
* @summary
|
|
29352
|
+
* @summary Gets a conversation
|
|
30198
29353
|
* @param {string} id id of entity to query
|
|
30199
29354
|
* @param {*} [options] Override http request option.
|
|
30200
|
-
* @deprecated
|
|
30201
|
-
* @throws {RequiredError}
|
|
30202
|
-
* @memberof Scout9Api
|
|
30203
|
-
*/
|
|
30204
|
-
contextDelete(id, options) {
|
|
30205
|
-
return (0, exports.Scout9ApiFp)(this.configuration).contextDelete(id, options).then(request => request(this.axios, this.basePath));
|
|
30206
|
-
}
|
|
30207
|
-
/**
|
|
30208
|
-
*
|
|
30209
|
-
* @summary Test a custom context before training
|
|
30210
|
-
* @param {ContextTestRequest} contextTestRequest
|
|
30211
|
-
* @param {*} [options] Override http request option.
|
|
30212
|
-
* @throws {RequiredError}
|
|
30213
|
-
* @memberof Scout9Api
|
|
30214
|
-
*/
|
|
30215
|
-
contextTest(contextTestRequest, options) {
|
|
30216
|
-
return (0, exports.Scout9ApiFp)(this.configuration).contextTest(contextTestRequest, options).then(request => request(this.axios, this.basePath));
|
|
30217
|
-
}
|
|
30218
|
-
/**
|
|
30219
|
-
* Update a context. . Don\'t use, create your context entities within your Scout9 application.
|
|
30220
|
-
* @summary Update a context
|
|
30221
|
-
* @param {UpdateContextRequest} updateContextRequest
|
|
30222
|
-
* @param {*} [options] Override http request option.
|
|
30223
|
-
* @deprecated
|
|
30224
|
-
* @throws {RequiredError}
|
|
30225
|
-
* @memberof Scout9Api
|
|
30226
|
-
*/
|
|
30227
|
-
contextUpdate(updateContextRequest, options) {
|
|
30228
|
-
return (0, exports.Scout9ApiFp)(this.configuration).contextUpdate(updateContextRequest, options).then(request => request(this.axios, this.basePath));
|
|
30229
|
-
}
|
|
30230
|
-
/**
|
|
30231
|
-
*
|
|
30232
|
-
* @summary Gets all or specific set of contexts. Don\'t use, create your context entities within your Scout9 application.
|
|
30233
|
-
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
30234
|
-
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
30235
|
-
* @param {*} [options] Override http request option.
|
|
30236
|
-
* @deprecated
|
|
30237
|
-
* @throws {RequiredError}
|
|
30238
|
-
* @memberof Scout9Api
|
|
30239
|
-
*/
|
|
30240
|
-
contexts(q, id, options) {
|
|
30241
|
-
return (0, exports.Scout9ApiFp)(this.configuration).contexts(q, id, options).then(request => request(this.axios, this.basePath));
|
|
30242
|
-
}
|
|
30243
|
-
/**
|
|
30244
|
-
*
|
|
30245
|
-
* @summary Creates new contexts. Don\'t use, create your context entities within your Scout9 application.
|
|
30246
|
-
* @param {CreateContextsRequest} createContextsRequest
|
|
30247
|
-
* @param {*} [options] Override http request option.
|
|
30248
|
-
* @deprecated
|
|
30249
|
-
* @throws {RequiredError}
|
|
30250
|
-
* @memberof Scout9Api
|
|
30251
|
-
*/
|
|
30252
|
-
contextsCreate(createContextsRequest, options) {
|
|
30253
|
-
return (0, exports.Scout9ApiFp)(this.configuration).contextsCreate(createContextsRequest, options).then(request => request(this.axios, this.basePath));
|
|
30254
|
-
}
|
|
30255
|
-
/**
|
|
30256
|
-
*
|
|
30257
|
-
* @summary Deletes multiple contexts. Don\'t use, create your context entities within your Scout9 application.
|
|
30258
|
-
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
30259
|
-
* @param {*} [options] Override http request option.
|
|
30260
|
-
* @deprecated
|
|
30261
29355
|
* @throws {RequiredError}
|
|
30262
29356
|
* @memberof Scout9Api
|
|
30263
29357
|
*/
|
|
30264
|
-
|
|
30265
|
-
return (0, exports.Scout9ApiFp)(this.configuration).
|
|
29358
|
+
conversationContext(id, options) {
|
|
29359
|
+
return (0, exports.Scout9ApiFp)(this.configuration).conversationContext(id, options).then(request => request(this.axios, this.basePath));
|
|
30266
29360
|
}
|
|
30267
29361
|
/**
|
|
30268
29362
|
*
|
|
30269
|
-
* @summary
|
|
30270
|
-
* @param {
|
|
30271
|
-
* @param {*} [options] Override http request option.
|
|
30272
|
-
* @deprecated
|
|
30273
|
-
* @throws {RequiredError}
|
|
30274
|
-
* @memberof Scout9Api
|
|
30275
|
-
*/
|
|
30276
|
-
contextsUpdate(updateContextRequest, options) {
|
|
30277
|
-
return (0, exports.Scout9ApiFp)(this.configuration).contextsUpdate(updateContextRequest, options).then(request => request(this.axios, this.basePath));
|
|
30278
|
-
}
|
|
30279
|
-
/**
|
|
30280
|
-
*
|
|
30281
|
-
* @summary Gets a conversation
|
|
30282
|
-
* @param {string} id id of entity to query
|
|
29363
|
+
* @summary Update a conversation
|
|
29364
|
+
* @param {ConversationContextUpdateRequest} conversationContextUpdateRequest
|
|
30283
29365
|
* @param {*} [options] Override http request option.
|
|
30284
29366
|
* @throws {RequiredError}
|
|
30285
29367
|
* @memberof Scout9Api
|
|
30286
29368
|
*/
|
|
30287
|
-
|
|
30288
|
-
return (0, exports.Scout9ApiFp)(this.configuration).
|
|
29369
|
+
conversationContextUpdate(conversationContextUpdateRequest, options) {
|
|
29370
|
+
return (0, exports.Scout9ApiFp)(this.configuration).conversationContextUpdate(conversationContextUpdateRequest, options).then(request => request(this.axios, this.basePath));
|
|
30289
29371
|
}
|
|
30290
29372
|
/**
|
|
30291
29373
|
*
|
|
@@ -30335,13 +29417,13 @@ common.createRequestFunction = createRequestFunction;
|
|
|
30335
29417
|
/**
|
|
30336
29418
|
*
|
|
30337
29419
|
* @summary Gets a customer
|
|
30338
|
-
* @param {string}
|
|
29420
|
+
* @param {string} idOrEmailOrPhone Either customers id, phone number or email
|
|
30339
29421
|
* @param {*} [options] Override http request option.
|
|
30340
29422
|
* @throws {RequiredError}
|
|
30341
29423
|
* @memberof Scout9Api
|
|
30342
29424
|
*/
|
|
30343
|
-
customer(
|
|
30344
|
-
return (0, exports.Scout9ApiFp)(this.configuration).customer(
|
|
29425
|
+
customer(idOrEmailOrPhone, options) {
|
|
29426
|
+
return (0, exports.Scout9ApiFp)(this.configuration).customer(idOrEmailOrPhone, options).then(request => request(this.axios, this.basePath));
|
|
30345
29427
|
}
|
|
30346
29428
|
/**
|
|
30347
29429
|
*
|
|
@@ -30911,7 +29993,7 @@ common.createRequestFunction = createRequestFunction;
|
|
|
30911
29993
|
var configuration = {};
|
|
30912
29994
|
|
|
30913
29995
|
var name$1 = "@scout9/admin";
|
|
30914
|
-
var version$2 = "1.0.0-alpha.0.0.
|
|
29996
|
+
var version$2 = "1.0.0-alpha.0.0.49";
|
|
30915
29997
|
var description$1 = "";
|
|
30916
29998
|
var main$2 = "./build/index.js";
|
|
30917
29999
|
var types$1 = "./build/index.d.ts";
|
|
@@ -35937,7 +35019,7 @@ function _loadUserPackageJson() {
|
|
|
35937
35019
|
targetPkgUrl = isTest ? packageTestJsonUrl : packageJsonUrl;
|
|
35938
35020
|
_context2.t0 = JSON;
|
|
35939
35021
|
_context2.next = 10;
|
|
35940
|
-
return fs__default["default"].readFile(new URL(targetPkgUrl, (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('dev-
|
|
35022
|
+
return fs__default["default"].readFile(new URL(targetPkgUrl, (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('dev-f7215614.js', document.baseURI).href))), 'utf-8');
|
|
35941
35023
|
case 10:
|
|
35942
35024
|
_context2.t1 = _context2.sent;
|
|
35943
35025
|
pkg = _context2.t0.parse.call(_context2.t0, _context2.t1);
|
|
@@ -36945,6 +36027,7 @@ function EventMacrosFactory() {
|
|
|
36945
36027
|
},
|
|
36946
36028
|
/**
|
|
36947
36029
|
* Returns event payload
|
|
36030
|
+
* @param {boolean} flush - if true, will reset the data payload
|
|
36948
36031
|
* @return {Array<WorkflowResponseSlot>}
|
|
36949
36032
|
*/
|
|
36950
36033
|
toJSON: function toJSON() {
|
|
@@ -43138,7 +42221,7 @@ var Scout9Test = /*#__PURE__*/function () {
|
|
|
43138
42221
|
*/
|
|
43139
42222
|
spirits._defineProperty(this, "messages", void 0);
|
|
43140
42223
|
/**
|
|
43141
|
-
* @type {
|
|
42224
|
+
* @type {import('@scout9/app').ConversationContext}
|
|
43142
42225
|
*/
|
|
43143
42226
|
spirits._defineProperty(this, "context", void 0);
|
|
43144
42227
|
/**
|
|
@@ -43343,6 +42426,10 @@ var Scout9Test = /*#__PURE__*/function () {
|
|
|
43343
42426
|
progressInput = function progressInput() {}; // use no-op
|
|
43344
42427
|
}
|
|
43345
42428
|
}
|
|
42429
|
+
|
|
42430
|
+
/**
|
|
42431
|
+
* @type {import('@scout9/app').Message}
|
|
42432
|
+
*/
|
|
43346
42433
|
_message = {
|
|
43347
42434
|
id: 'user_mock_' + Math.random().toString(36).slice(2, 11),
|
|
43348
42435
|
role: 'customer',
|
|
@@ -43431,7 +42518,7 @@ var Scout9Test = /*#__PURE__*/function () {
|
|
|
43431
42518
|
console.error("Invalid forward result", result.conversation.forward);
|
|
43432
42519
|
this.conversation.forwardedTo = 'Invalid Forward';
|
|
43433
42520
|
}
|
|
43434
|
-
this.conversation.forwarded = new Date().
|
|
42521
|
+
this.conversation.forwarded = new Date().toISOString();
|
|
43435
42522
|
this.conversation.forwardNote = result.conversation.forwardNote || '';
|
|
43436
42523
|
this.conversation.locked = true;
|
|
43437
42524
|
this.conversation.lockedReason = (_result$conversation$2 = result.conversation.forwardNote) !== null && _result$conversation$2 !== void 0 ? _result$conversation$2 : 'Forwarded to ' + this.conversation.forwardedTo;
|
|
@@ -43600,9 +42687,18 @@ var Scout9Test = /*#__PURE__*/function () {
|
|
|
43600
42687
|
return generate;
|
|
43601
42688
|
}()
|
|
43602
42689
|
/**
|
|
43603
|
-
* @
|
|
42690
|
+
* @param {Partial<import('@scout9/app').ConversationContext>} ctx
|
|
43604
42691
|
*/
|
|
43605
42692
|
)
|
|
42693
|
+
}, {
|
|
42694
|
+
key: "context",
|
|
42695
|
+
set: function set(ctx) {
|
|
42696
|
+
this.context = spirits._objectSpread2(spirits._objectSpread2({}, this.context), ctx);
|
|
42697
|
+
}
|
|
42698
|
+
|
|
42699
|
+
/**
|
|
42700
|
+
* @private
|
|
42701
|
+
*/
|
|
43606
42702
|
}, {
|
|
43607
42703
|
key: "_loadApp",
|
|
43608
42704
|
value: (function () {
|