@scout9/admin 1.0.7 → 1.0.9
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/build/api.d.ts +1735 -466
- package/build/api.js +1317 -438
- package/package.json +1 -1
- package/src/api.ts +2419 -665
- package/tsconfig.tsbuildinfo +1 -1
package/build/api.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
|
-
* Scout9 Pocket Scout API
|
|
5
|
+
* Scout9\'s Pocket Scout API
|
|
6
6
|
* Pocket Scout APIs for managing Scout9 users and conversations with your Pocket Scout agents
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0.0
|
|
@@ -16,13 +16,18 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.
|
|
19
|
+
exports.PocketScoutApi = exports.PocketScoutApiFactory = exports.PocketScoutApiFp = exports.PocketScoutApiAxiosParamCreator = exports.UpdateAgentsRequestAgentsInnerModelEnum = exports.UpdateAgentRequestModelEnum = exports.Operator = exports.MessageGetResponseInnerRoleEnum = exports.MessageCreateRequestRoleEnum = exports.MessageBaseRoleEnum = exports.MessageRoleEnum = exports.ListApiOperationsResponseInnerMethodEnum = exports.ListAgentsResponseInnerModelEnum = exports.GetApiOperationResponseMethodEnum = exports.GetAgentResponseModelEnum = exports.GenerateResponseRoleEnum = exports.CreateAgentsRequestAgentsInnerModelEnum = exports.CreateAgentRequestModelEnum = exports.ConversationEnvironment = exports.ConversationContextFieldConditionOperatorEnum = exports.ApiOperationMethodEnum = exports.AgentModelEnum = void 0;
|
|
20
20
|
const axios_1 = __importDefault(require("axios"));
|
|
21
21
|
// Some imports not used depending on template conditions
|
|
22
22
|
// @ts-ignore
|
|
23
23
|
const common_1 = require("./common");
|
|
24
24
|
// @ts-ignore
|
|
25
25
|
const base_1 = require("./base");
|
|
26
|
+
exports.AgentModelEnum = {
|
|
27
|
+
PocketScout: 'Pocket Scout',
|
|
28
|
+
Bard: 'bard',
|
|
29
|
+
Null: 'null'
|
|
30
|
+
};
|
|
26
31
|
exports.ApiOperationMethodEnum = {
|
|
27
32
|
Get: 'get',
|
|
28
33
|
Post: 'post',
|
|
@@ -30,6 +35,30 @@ exports.ApiOperationMethodEnum = {
|
|
|
30
35
|
Delete: 'delete',
|
|
31
36
|
Patch: 'patch'
|
|
32
37
|
};
|
|
38
|
+
exports.ConversationContextFieldConditionOperatorEnum = {
|
|
39
|
+
Eq: 'eq',
|
|
40
|
+
Equal: 'equal',
|
|
41
|
+
Ne: 'ne',
|
|
42
|
+
NotEquals: 'not-equals',
|
|
43
|
+
Gt: 'gt',
|
|
44
|
+
GreaterThan: 'greater-than',
|
|
45
|
+
Gte: 'gte',
|
|
46
|
+
GreaterThanEquals: 'greater-than-equals',
|
|
47
|
+
Lt: 'lt',
|
|
48
|
+
LessThan: 'less-than',
|
|
49
|
+
Lte: 'lte',
|
|
50
|
+
LessThanEquals: 'less-than-equals',
|
|
51
|
+
ArrayContains: 'array-contains',
|
|
52
|
+
In: 'in',
|
|
53
|
+
ArrayContainsAny: 'array-contains-any',
|
|
54
|
+
NotIn: 'not-in',
|
|
55
|
+
Exists: 'exists',
|
|
56
|
+
NotExists: 'notExists',
|
|
57
|
+
Contains: 'contains',
|
|
58
|
+
NotContains: 'notContains',
|
|
59
|
+
StartsWith: 'startsWith',
|
|
60
|
+
EndsWith: 'endsWith'
|
|
61
|
+
};
|
|
33
62
|
/**
|
|
34
63
|
* Environment this conversation is in (phone, web, or email) - this determines which device to send messages to
|
|
35
64
|
* @export
|
|
@@ -40,10 +69,25 @@ exports.ConversationEnvironment = {
|
|
|
40
69
|
Web: 'web',
|
|
41
70
|
Email: 'email'
|
|
42
71
|
};
|
|
72
|
+
exports.CreateAgentRequestModelEnum = {
|
|
73
|
+
PocketScout: 'Pocket Scout',
|
|
74
|
+
Bard: 'bard',
|
|
75
|
+
Null: 'null'
|
|
76
|
+
};
|
|
77
|
+
exports.CreateAgentsRequestAgentsInnerModelEnum = {
|
|
78
|
+
PocketScout: 'Pocket Scout',
|
|
79
|
+
Bard: 'bard',
|
|
80
|
+
Null: 'null'
|
|
81
|
+
};
|
|
43
82
|
exports.GenerateResponseRoleEnum = {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
83
|
+
Customer: 'customer',
|
|
84
|
+
Agent: 'agent',
|
|
85
|
+
Context: 'context'
|
|
86
|
+
};
|
|
87
|
+
exports.GetAgentResponseModelEnum = {
|
|
88
|
+
PocketScout: 'Pocket Scout',
|
|
89
|
+
Bard: 'bard',
|
|
90
|
+
Null: 'null'
|
|
47
91
|
};
|
|
48
92
|
exports.GetApiOperationResponseMethodEnum = {
|
|
49
93
|
Get: 'get',
|
|
@@ -52,6 +96,11 @@ exports.GetApiOperationResponseMethodEnum = {
|
|
|
52
96
|
Delete: 'delete',
|
|
53
97
|
Patch: 'patch'
|
|
54
98
|
};
|
|
99
|
+
exports.ListAgentsResponseInnerModelEnum = {
|
|
100
|
+
PocketScout: 'Pocket Scout',
|
|
101
|
+
Bard: 'bard',
|
|
102
|
+
Null: 'null'
|
|
103
|
+
};
|
|
55
104
|
exports.ListApiOperationsResponseInnerMethodEnum = {
|
|
56
105
|
Get: 'get',
|
|
57
106
|
Post: 'post',
|
|
@@ -60,9 +109,14 @@ exports.ListApiOperationsResponseInnerMethodEnum = {
|
|
|
60
109
|
Patch: 'patch'
|
|
61
110
|
};
|
|
62
111
|
exports.MessageRoleEnum = {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
112
|
+
Customer: 'customer',
|
|
113
|
+
Agent: 'agent',
|
|
114
|
+
Context: 'context'
|
|
115
|
+
};
|
|
116
|
+
exports.MessageBaseRoleEnum = {
|
|
117
|
+
Customer: 'customer',
|
|
118
|
+
Agent: 'agent',
|
|
119
|
+
Context: 'context'
|
|
66
120
|
};
|
|
67
121
|
exports.MessageCreateRequestRoleEnum = {
|
|
68
122
|
Agent: 'agent',
|
|
@@ -70,9 +124,9 @@ exports.MessageCreateRequestRoleEnum = {
|
|
|
70
124
|
Context: 'context'
|
|
71
125
|
};
|
|
72
126
|
exports.MessageGetResponseInnerRoleEnum = {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
127
|
+
Customer: 'customer',
|
|
128
|
+
Agent: 'agent',
|
|
129
|
+
Context: 'context'
|
|
76
130
|
};
|
|
77
131
|
/**
|
|
78
132
|
* The operator of the condition or query
|
|
@@ -97,16 +151,26 @@ exports.Operator = {
|
|
|
97
151
|
ArrayContainsAny: 'array-contains-any',
|
|
98
152
|
NotIn: 'not-in'
|
|
99
153
|
};
|
|
154
|
+
exports.UpdateAgentRequestModelEnum = {
|
|
155
|
+
PocketScout: 'Pocket Scout',
|
|
156
|
+
Bard: 'bard',
|
|
157
|
+
Null: 'null'
|
|
158
|
+
};
|
|
159
|
+
exports.UpdateAgentsRequestAgentsInnerModelEnum = {
|
|
160
|
+
PocketScout: 'Pocket Scout',
|
|
161
|
+
Bard: 'bard',
|
|
162
|
+
Null: 'null'
|
|
163
|
+
};
|
|
100
164
|
/**
|
|
101
|
-
*
|
|
165
|
+
* PocketScoutApi - axios parameter creator
|
|
102
166
|
* @export
|
|
103
167
|
*/
|
|
104
|
-
const
|
|
168
|
+
const PocketScoutApiAxiosParamCreator = function (configuration) {
|
|
105
169
|
return {
|
|
106
170
|
/**
|
|
107
171
|
*
|
|
108
172
|
* @summary Gets a agent
|
|
109
|
-
* @param {string} id
|
|
173
|
+
* @param {string} id id of entity to query
|
|
110
174
|
* @param {*} [options] Override http request option.
|
|
111
175
|
* @throws {RequiredError}
|
|
112
176
|
*/
|
|
@@ -136,14 +200,14 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
136
200
|
},
|
|
137
201
|
/**
|
|
138
202
|
*
|
|
139
|
-
* @summary
|
|
140
|
-
* @param {
|
|
203
|
+
* @summary Deletes a agent
|
|
204
|
+
* @param {string} id id of entity to query
|
|
141
205
|
* @param {*} [options] Override http request option.
|
|
142
206
|
* @throws {RequiredError}
|
|
143
207
|
*/
|
|
144
|
-
|
|
145
|
-
// verify required parameter '
|
|
146
|
-
(0, common_1.assertParamExists)('
|
|
208
|
+
agentDelete: async (id, options = {}) => {
|
|
209
|
+
// verify required parameter 'id' is not null or undefined
|
|
210
|
+
(0, common_1.assertParamExists)('agentDelete', 'id', id);
|
|
147
211
|
const localVarPath = `/v1-agent`;
|
|
148
212
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
149
213
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -151,14 +215,15 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
151
215
|
if (configuration) {
|
|
152
216
|
baseOptions = configuration.baseOptions;
|
|
153
217
|
}
|
|
154
|
-
const localVarRequestOptions = { method: '
|
|
218
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
155
219
|
const localVarHeaderParameter = {};
|
|
156
220
|
const localVarQueryParameter = {};
|
|
157
|
-
|
|
221
|
+
if (id !== undefined) {
|
|
222
|
+
localVarQueryParameter['id'] = id;
|
|
223
|
+
}
|
|
158
224
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
159
225
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
160
226
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
161
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createAgentRequest, localVarRequestOptions, configuration);
|
|
162
227
|
return {
|
|
163
228
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
164
229
|
options: localVarRequestOptions,
|
|
@@ -166,14 +231,14 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
166
231
|
},
|
|
167
232
|
/**
|
|
168
233
|
*
|
|
169
|
-
* @summary
|
|
170
|
-
* @param {
|
|
234
|
+
* @summary Registers a new agent
|
|
235
|
+
* @param {CreateAgentRequest} createAgentRequest
|
|
171
236
|
* @param {*} [options] Override http request option.
|
|
172
237
|
* @throws {RequiredError}
|
|
173
238
|
*/
|
|
174
|
-
|
|
175
|
-
// verify required parameter '
|
|
176
|
-
(0, common_1.assertParamExists)('
|
|
239
|
+
agentRegister: async (createAgentRequest, options = {}) => {
|
|
240
|
+
// verify required parameter 'createAgentRequest' is not null or undefined
|
|
241
|
+
(0, common_1.assertParamExists)('agentRegister', 'createAgentRequest', createAgentRequest);
|
|
177
242
|
const localVarPath = `/v1-agent`;
|
|
178
243
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
179
244
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -181,15 +246,14 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
181
246
|
if (configuration) {
|
|
182
247
|
baseOptions = configuration.baseOptions;
|
|
183
248
|
}
|
|
184
|
-
const localVarRequestOptions = { method: '
|
|
249
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
185
250
|
const localVarHeaderParameter = {};
|
|
186
251
|
const localVarQueryParameter = {};
|
|
187
|
-
|
|
188
|
-
localVarQueryParameter['id'] = id;
|
|
189
|
-
}
|
|
252
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
190
253
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
191
254
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
192
255
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
256
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createAgentRequest, localVarRequestOptions, configuration);
|
|
193
257
|
return {
|
|
194
258
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
195
259
|
options: localVarRequestOptions,
|
|
@@ -229,7 +293,7 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
229
293
|
*
|
|
230
294
|
* @summary Gets all or specific set of agents
|
|
231
295
|
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
232
|
-
* @param {Array<string>} [id]
|
|
296
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
233
297
|
* @param {*} [options] Override http request option.
|
|
234
298
|
* @throws {RequiredError}
|
|
235
299
|
*/
|
|
@@ -291,7 +355,7 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
291
355
|
/**
|
|
292
356
|
*
|
|
293
357
|
* @summary Deletes multiple agents
|
|
294
|
-
* @param {Array<string>} [id]
|
|
358
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
295
359
|
* @param {*} [options] Override http request option.
|
|
296
360
|
* @throws {RequiredError}
|
|
297
361
|
*/
|
|
@@ -350,7 +414,7 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
350
414
|
/**
|
|
351
415
|
*
|
|
352
416
|
* @summary Gets a context
|
|
353
|
-
* @param {string} id
|
|
417
|
+
* @param {string} id id of entity to query
|
|
354
418
|
* @param {*} [options] Override http request option.
|
|
355
419
|
* @throws {RequiredError}
|
|
356
420
|
*/
|
|
@@ -411,7 +475,7 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
411
475
|
/**
|
|
412
476
|
*
|
|
413
477
|
* @summary Deletes a schedule
|
|
414
|
-
* @param {string} id
|
|
478
|
+
* @param {string} id id of entity to query
|
|
415
479
|
* @param {*} [options] Override http request option.
|
|
416
480
|
* @throws {RequiredError}
|
|
417
481
|
*/
|
|
@@ -473,7 +537,7 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
473
537
|
*
|
|
474
538
|
* @summary Gets all or specific set of contexts
|
|
475
539
|
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
476
|
-
* @param {Array<string>} [id]
|
|
540
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
477
541
|
* @param {*} [options] Override http request option.
|
|
478
542
|
* @throws {RequiredError}
|
|
479
543
|
*/
|
|
@@ -535,7 +599,7 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
535
599
|
/**
|
|
536
600
|
*
|
|
537
601
|
* @summary Deletes multiple contexts
|
|
538
|
-
* @param {Array<string>} [id]
|
|
602
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
539
603
|
* @param {*} [options] Override http request option.
|
|
540
604
|
* @throws {RequiredError}
|
|
541
605
|
*/
|
|
@@ -594,7 +658,7 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
594
658
|
/**
|
|
595
659
|
*
|
|
596
660
|
* @summary Gets a conversation
|
|
597
|
-
* @param {string} id
|
|
661
|
+
* @param {string} id id of entity to query
|
|
598
662
|
* @param {*} [options] Override http request option.
|
|
599
663
|
* @throws {RequiredError}
|
|
600
664
|
*/
|
|
@@ -655,7 +719,7 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
655
719
|
/**
|
|
656
720
|
*
|
|
657
721
|
* @summary Deletes a schedule
|
|
658
|
-
* @param {string} id
|
|
722
|
+
* @param {string} id id of entity to query
|
|
659
723
|
* @param {*} [options] Override http request option.
|
|
660
724
|
* @throws {RequiredError}
|
|
661
725
|
*/
|
|
@@ -716,7 +780,7 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
716
780
|
/**
|
|
717
781
|
*
|
|
718
782
|
* @summary Gets a customer
|
|
719
|
-
* @param {string} id
|
|
783
|
+
* @param {string} id id of entity to query
|
|
720
784
|
* @param {*} [options] Override http request option.
|
|
721
785
|
* @throws {RequiredError}
|
|
722
786
|
*/
|
|
@@ -777,7 +841,7 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
777
841
|
/**
|
|
778
842
|
*
|
|
779
843
|
* @summary Deletes a customer
|
|
780
|
-
* @param {string} id
|
|
844
|
+
* @param {string} id id of entity to query
|
|
781
845
|
* @param {*} [options] Override http request option.
|
|
782
846
|
* @throws {RequiredError}
|
|
783
847
|
*/
|
|
@@ -807,29 +871,30 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
807
871
|
},
|
|
808
872
|
/**
|
|
809
873
|
*
|
|
810
|
-
* @summary
|
|
811
|
-
* @param {
|
|
874
|
+
* @summary Gets a customer group
|
|
875
|
+
* @param {string} id id of entity to query
|
|
812
876
|
* @param {*} [options] Override http request option.
|
|
813
877
|
* @throws {RequiredError}
|
|
814
878
|
*/
|
|
815
|
-
|
|
816
|
-
// verify required parameter '
|
|
817
|
-
(0, common_1.assertParamExists)('
|
|
818
|
-
const localVarPath = `/v1-
|
|
879
|
+
customerGroup: async (id, options = {}) => {
|
|
880
|
+
// verify required parameter 'id' is not null or undefined
|
|
881
|
+
(0, common_1.assertParamExists)('customerGroup', 'id', id);
|
|
882
|
+
const localVarPath = `/v1-customerGroup`;
|
|
819
883
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
820
884
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
821
885
|
let baseOptions;
|
|
822
886
|
if (configuration) {
|
|
823
887
|
baseOptions = configuration.baseOptions;
|
|
824
888
|
}
|
|
825
|
-
const localVarRequestOptions = { method: '
|
|
889
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
826
890
|
const localVarHeaderParameter = {};
|
|
827
891
|
const localVarQueryParameter = {};
|
|
828
|
-
|
|
892
|
+
if (id !== undefined) {
|
|
893
|
+
localVarQueryParameter['id'] = id;
|
|
894
|
+
}
|
|
829
895
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
830
896
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
831
897
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
832
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateCustomerRequest, localVarRequestOptions, configuration);
|
|
833
898
|
return {
|
|
834
899
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
835
900
|
options: localVarRequestOptions,
|
|
@@ -837,32 +902,29 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
837
902
|
},
|
|
838
903
|
/**
|
|
839
904
|
*
|
|
840
|
-
* @summary
|
|
841
|
-
* @param {
|
|
842
|
-
* @param {Array<string>} [id]
|
|
905
|
+
* @summary Creates a new customer group
|
|
906
|
+
* @param {CreateCustomerGroupRequest} createCustomerGroupRequest
|
|
843
907
|
* @param {*} [options] Override http request option.
|
|
844
908
|
* @throws {RequiredError}
|
|
845
909
|
*/
|
|
846
|
-
|
|
847
|
-
|
|
910
|
+
customerGroupCreate: async (createCustomerGroupRequest, options = {}) => {
|
|
911
|
+
// verify required parameter 'createCustomerGroupRequest' is not null or undefined
|
|
912
|
+
(0, common_1.assertParamExists)('customerGroupCreate', 'createCustomerGroupRequest', createCustomerGroupRequest);
|
|
913
|
+
const localVarPath = `/v1-customerGroup`;
|
|
848
914
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
849
915
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
850
916
|
let baseOptions;
|
|
851
917
|
if (configuration) {
|
|
852
918
|
baseOptions = configuration.baseOptions;
|
|
853
919
|
}
|
|
854
|
-
const localVarRequestOptions = { method: '
|
|
920
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
855
921
|
const localVarHeaderParameter = {};
|
|
856
922
|
const localVarQueryParameter = {};
|
|
857
|
-
|
|
858
|
-
localVarQueryParameter['q'] = q;
|
|
859
|
-
}
|
|
860
|
-
if (id) {
|
|
861
|
-
localVarQueryParameter['id'] = id;
|
|
862
|
-
}
|
|
923
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
863
924
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
864
925
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
865
926
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
927
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createCustomerGroupRequest, localVarRequestOptions, configuration);
|
|
866
928
|
return {
|
|
867
929
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
868
930
|
options: localVarRequestOptions,
|
|
@@ -870,29 +932,30 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
870
932
|
},
|
|
871
933
|
/**
|
|
872
934
|
*
|
|
873
|
-
* @summary
|
|
874
|
-
* @param {
|
|
935
|
+
* @summary Deletes a customer group
|
|
936
|
+
* @param {string} id id of entity to query
|
|
875
937
|
* @param {*} [options] Override http request option.
|
|
876
938
|
* @throws {RequiredError}
|
|
877
939
|
*/
|
|
878
|
-
|
|
879
|
-
// verify required parameter '
|
|
880
|
-
(0, common_1.assertParamExists)('
|
|
881
|
-
const localVarPath = `/v1-
|
|
940
|
+
customerGroupDelete: async (id, options = {}) => {
|
|
941
|
+
// verify required parameter 'id' is not null or undefined
|
|
942
|
+
(0, common_1.assertParamExists)('customerGroupDelete', 'id', id);
|
|
943
|
+
const localVarPath = `/v1-customerGroup`;
|
|
882
944
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
883
945
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
884
946
|
let baseOptions;
|
|
885
947
|
if (configuration) {
|
|
886
948
|
baseOptions = configuration.baseOptions;
|
|
887
949
|
}
|
|
888
|
-
const localVarRequestOptions = { method: '
|
|
950
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
889
951
|
const localVarHeaderParameter = {};
|
|
890
952
|
const localVarQueryParameter = {};
|
|
891
|
-
|
|
953
|
+
if (id !== undefined) {
|
|
954
|
+
localVarQueryParameter['id'] = id;
|
|
955
|
+
}
|
|
892
956
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
893
957
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
894
958
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
895
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createCustomersRequest, localVarRequestOptions, configuration);
|
|
896
959
|
return {
|
|
897
960
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
898
961
|
options: localVarRequestOptions,
|
|
@@ -900,28 +963,29 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
900
963
|
},
|
|
901
964
|
/**
|
|
902
965
|
*
|
|
903
|
-
* @summary
|
|
904
|
-
* @param {
|
|
966
|
+
* @summary Updates a customer group
|
|
967
|
+
* @param {UpdateCustomerGroupRequest} updateCustomerGroupRequest
|
|
905
968
|
* @param {*} [options] Override http request option.
|
|
906
969
|
* @throws {RequiredError}
|
|
907
970
|
*/
|
|
908
|
-
|
|
909
|
-
|
|
971
|
+
customerGroupUpdate: async (updateCustomerGroupRequest, options = {}) => {
|
|
972
|
+
// verify required parameter 'updateCustomerGroupRequest' is not null or undefined
|
|
973
|
+
(0, common_1.assertParamExists)('customerGroupUpdate', 'updateCustomerGroupRequest', updateCustomerGroupRequest);
|
|
974
|
+
const localVarPath = `/v1-customerGroup`;
|
|
910
975
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
911
976
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
912
977
|
let baseOptions;
|
|
913
978
|
if (configuration) {
|
|
914
979
|
baseOptions = configuration.baseOptions;
|
|
915
980
|
}
|
|
916
|
-
const localVarRequestOptions = { method: '
|
|
981
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
917
982
|
const localVarHeaderParameter = {};
|
|
918
983
|
const localVarQueryParameter = {};
|
|
919
|
-
|
|
920
|
-
localVarQueryParameter['id'] = id;
|
|
921
|
-
}
|
|
984
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
922
985
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
923
986
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
924
987
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
988
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateCustomerGroupRequest, localVarRequestOptions, configuration);
|
|
925
989
|
return {
|
|
926
990
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
927
991
|
options: localVarRequestOptions,
|
|
@@ -929,45 +993,48 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
929
993
|
},
|
|
930
994
|
/**
|
|
931
995
|
*
|
|
932
|
-
* @summary
|
|
933
|
-
* @param {
|
|
996
|
+
* @summary Gets all or specific set of customer groups
|
|
997
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
998
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
934
999
|
* @param {*} [options] Override http request option.
|
|
935
1000
|
* @throws {RequiredError}
|
|
936
1001
|
*/
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
(0, common_1.assertParamExists)('customersUpdate', 'updateCustomerRequest', updateCustomerRequest);
|
|
940
|
-
const localVarPath = `/v1-customers`;
|
|
1002
|
+
customerGroups: async (q, id, options = {}) => {
|
|
1003
|
+
const localVarPath = `/v1-customerGroups`;
|
|
941
1004
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
942
1005
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
943
1006
|
let baseOptions;
|
|
944
1007
|
if (configuration) {
|
|
945
1008
|
baseOptions = configuration.baseOptions;
|
|
946
1009
|
}
|
|
947
|
-
const localVarRequestOptions = { method: '
|
|
1010
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
948
1011
|
const localVarHeaderParameter = {};
|
|
949
1012
|
const localVarQueryParameter = {};
|
|
950
|
-
|
|
1013
|
+
if (q !== undefined) {
|
|
1014
|
+
localVarQueryParameter['q'] = q;
|
|
1015
|
+
}
|
|
1016
|
+
if (id) {
|
|
1017
|
+
localVarQueryParameter['id'] = id;
|
|
1018
|
+
}
|
|
951
1019
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
952
1020
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
953
1021
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
954
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateCustomerRequest, localVarRequestOptions, configuration);
|
|
955
1022
|
return {
|
|
956
1023
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
957
1024
|
options: localVarRequestOptions,
|
|
958
1025
|
};
|
|
959
1026
|
},
|
|
960
1027
|
/**
|
|
961
|
-
*
|
|
962
|
-
* @summary
|
|
963
|
-
* @param {
|
|
1028
|
+
*
|
|
1029
|
+
* @summary Creates new customer groups
|
|
1030
|
+
* @param {CreateCustomerGroupsRequest} createCustomerGroupsRequest
|
|
964
1031
|
* @param {*} [options] Override http request option.
|
|
965
1032
|
* @throws {RequiredError}
|
|
966
1033
|
*/
|
|
967
|
-
|
|
968
|
-
// verify required parameter '
|
|
969
|
-
(0, common_1.assertParamExists)('
|
|
970
|
-
const localVarPath = `/v1-
|
|
1034
|
+
customerGroupsCreate: async (createCustomerGroupsRequest, options = {}) => {
|
|
1035
|
+
// verify required parameter 'createCustomerGroupsRequest' is not null or undefined
|
|
1036
|
+
(0, common_1.assertParamExists)('customerGroupsCreate', 'createCustomerGroupsRequest', createCustomerGroupsRequest);
|
|
1037
|
+
const localVarPath = `/v1-customerGroups`;
|
|
971
1038
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
972
1039
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
973
1040
|
let baseOptions;
|
|
@@ -981,37 +1048,36 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
981
1048
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
982
1049
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
983
1050
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
984
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
1051
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createCustomerGroupsRequest, localVarRequestOptions, configuration);
|
|
985
1052
|
return {
|
|
986
1053
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
987
1054
|
options: localVarRequestOptions,
|
|
988
1055
|
};
|
|
989
1056
|
},
|
|
990
1057
|
/**
|
|
991
|
-
*
|
|
992
|
-
* @summary
|
|
993
|
-
* @param {
|
|
1058
|
+
*
|
|
1059
|
+
* @summary Deletes multiple customer groups
|
|
1060
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
994
1061
|
* @param {*} [options] Override http request option.
|
|
995
1062
|
* @throws {RequiredError}
|
|
996
1063
|
*/
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
(0, common_1.assertParamExists)('message', 'messageCreateRequest', messageCreateRequest);
|
|
1000
|
-
const localVarPath = `/v1-messages`;
|
|
1064
|
+
customerGroupsDelete: async (id, options = {}) => {
|
|
1065
|
+
const localVarPath = `/v1-customerGroups`;
|
|
1001
1066
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1002
1067
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1003
1068
|
let baseOptions;
|
|
1004
1069
|
if (configuration) {
|
|
1005
1070
|
baseOptions = configuration.baseOptions;
|
|
1006
1071
|
}
|
|
1007
|
-
const localVarRequestOptions = { method: '
|
|
1072
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
1008
1073
|
const localVarHeaderParameter = {};
|
|
1009
1074
|
const localVarQueryParameter = {};
|
|
1010
|
-
|
|
1075
|
+
if (id) {
|
|
1076
|
+
localVarQueryParameter['id'] = id;
|
|
1077
|
+
}
|
|
1011
1078
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1012
1079
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1013
1080
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1014
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(messageCreateRequest, localVarRequestOptions, configuration);
|
|
1015
1081
|
return {
|
|
1016
1082
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1017
1083
|
options: localVarRequestOptions,
|
|
@@ -1019,32 +1085,29 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
1019
1085
|
},
|
|
1020
1086
|
/**
|
|
1021
1087
|
*
|
|
1022
|
-
* @summary
|
|
1023
|
-
* @param {
|
|
1024
|
-
* @param {Array<string>} [id]
|
|
1088
|
+
* @summary Updates multiple customer groups
|
|
1089
|
+
* @param {UpdateCustomerGroupsRequest} updateCustomerGroupsRequest
|
|
1025
1090
|
* @param {*} [options] Override http request option.
|
|
1026
1091
|
* @throws {RequiredError}
|
|
1027
1092
|
*/
|
|
1028
|
-
|
|
1029
|
-
|
|
1093
|
+
customerGroupsUpdate: async (updateCustomerGroupsRequest, options = {}) => {
|
|
1094
|
+
// verify required parameter 'updateCustomerGroupsRequest' is not null or undefined
|
|
1095
|
+
(0, common_1.assertParamExists)('customerGroupsUpdate', 'updateCustomerGroupsRequest', updateCustomerGroupsRequest);
|
|
1096
|
+
const localVarPath = `/v1-customerGroups`;
|
|
1030
1097
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1031
1098
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1032
1099
|
let baseOptions;
|
|
1033
1100
|
if (configuration) {
|
|
1034
1101
|
baseOptions = configuration.baseOptions;
|
|
1035
1102
|
}
|
|
1036
|
-
const localVarRequestOptions = { method: '
|
|
1103
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
1037
1104
|
const localVarHeaderParameter = {};
|
|
1038
1105
|
const localVarQueryParameter = {};
|
|
1039
|
-
|
|
1040
|
-
localVarQueryParameter['q'] = q;
|
|
1041
|
-
}
|
|
1042
|
-
if (id) {
|
|
1043
|
-
localVarQueryParameter['id'] = id;
|
|
1044
|
-
}
|
|
1106
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1045
1107
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1046
1108
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1047
1109
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1110
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateCustomerGroupsRequest, localVarRequestOptions, configuration);
|
|
1048
1111
|
return {
|
|
1049
1112
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1050
1113
|
options: localVarRequestOptions,
|
|
@@ -1052,30 +1115,29 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
1052
1115
|
},
|
|
1053
1116
|
/**
|
|
1054
1117
|
*
|
|
1055
|
-
* @summary
|
|
1056
|
-
* @param {
|
|
1118
|
+
* @summary Updates a customer
|
|
1119
|
+
* @param {UpdateCustomerRequest} updateCustomerRequest
|
|
1057
1120
|
* @param {*} [options] Override http request option.
|
|
1058
1121
|
* @throws {RequiredError}
|
|
1059
1122
|
*/
|
|
1060
|
-
|
|
1061
|
-
// verify required parameter '
|
|
1062
|
-
(0, common_1.assertParamExists)('
|
|
1063
|
-
const localVarPath = `/v1-
|
|
1123
|
+
customerUpdate: async (updateCustomerRequest, options = {}) => {
|
|
1124
|
+
// verify required parameter 'updateCustomerRequest' is not null or undefined
|
|
1125
|
+
(0, common_1.assertParamExists)('customerUpdate', 'updateCustomerRequest', updateCustomerRequest);
|
|
1126
|
+
const localVarPath = `/v1-customer`;
|
|
1064
1127
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1065
1128
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1066
1129
|
let baseOptions;
|
|
1067
1130
|
if (configuration) {
|
|
1068
1131
|
baseOptions = configuration.baseOptions;
|
|
1069
1132
|
}
|
|
1070
|
-
const localVarRequestOptions = { method: '
|
|
1133
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
1071
1134
|
const localVarHeaderParameter = {};
|
|
1072
1135
|
const localVarQueryParameter = {};
|
|
1073
|
-
|
|
1074
|
-
localVarQueryParameter['id'] = id;
|
|
1075
|
-
}
|
|
1136
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1076
1137
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1077
1138
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1078
1139
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1140
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateCustomerRequest, localVarRequestOptions, configuration);
|
|
1079
1141
|
return {
|
|
1080
1142
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1081
1143
|
options: localVarRequestOptions,
|
|
@@ -1083,14 +1145,14 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
1083
1145
|
},
|
|
1084
1146
|
/**
|
|
1085
1147
|
*
|
|
1086
|
-
* @summary Gets all or specific set of
|
|
1148
|
+
* @summary Gets all or specific set of customers
|
|
1087
1149
|
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
1088
|
-
* @param {Array<string>} [id]
|
|
1150
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
1089
1151
|
* @param {*} [options] Override http request option.
|
|
1090
1152
|
* @throws {RequiredError}
|
|
1091
1153
|
*/
|
|
1092
|
-
|
|
1093
|
-
const localVarPath = `/v1-
|
|
1154
|
+
customers: async (q, id, options = {}) => {
|
|
1155
|
+
const localVarPath = `/v1-customers`;
|
|
1094
1156
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1095
1157
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1096
1158
|
let baseOptions;
|
|
@@ -1116,15 +1178,15 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
1116
1178
|
},
|
|
1117
1179
|
/**
|
|
1118
1180
|
*
|
|
1119
|
-
* @summary Creates
|
|
1120
|
-
* @param {
|
|
1181
|
+
* @summary Creates new customers
|
|
1182
|
+
* @param {CreateCustomersRequest} createCustomersRequest
|
|
1121
1183
|
* @param {*} [options] Override http request option.
|
|
1122
1184
|
* @throws {RequiredError}
|
|
1123
1185
|
*/
|
|
1124
|
-
|
|
1125
|
-
// verify required parameter '
|
|
1126
|
-
(0, common_1.assertParamExists)('
|
|
1127
|
-
const localVarPath = `/v1-
|
|
1186
|
+
customersCreate: async (createCustomersRequest, options = {}) => {
|
|
1187
|
+
// verify required parameter 'createCustomersRequest' is not null or undefined
|
|
1188
|
+
(0, common_1.assertParamExists)('customersCreate', 'createCustomersRequest', createCustomersRequest);
|
|
1189
|
+
const localVarPath = `/v1-customers`;
|
|
1128
1190
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1129
1191
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1130
1192
|
let baseOptions;
|
|
@@ -1138,7 +1200,7 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
1138
1200
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1139
1201
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1140
1202
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1141
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
1203
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createCustomersRequest, localVarRequestOptions, configuration);
|
|
1142
1204
|
return {
|
|
1143
1205
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1144
1206
|
options: localVarRequestOptions,
|
|
@@ -1146,15 +1208,13 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
1146
1208
|
},
|
|
1147
1209
|
/**
|
|
1148
1210
|
*
|
|
1149
|
-
* @summary Deletes
|
|
1150
|
-
* @param {string} id
|
|
1211
|
+
* @summary Deletes multiple customers
|
|
1212
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
1151
1213
|
* @param {*} [options] Override http request option.
|
|
1152
1214
|
* @throws {RequiredError}
|
|
1153
1215
|
*/
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
(0, common_1.assertParamExists)('scheduleDelete', 'id', id);
|
|
1157
|
-
const localVarPath = `/v1-schedule`;
|
|
1216
|
+
customersDelete: async (id, options = {}) => {
|
|
1217
|
+
const localVarPath = `/v1-customers`;
|
|
1158
1218
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1159
1219
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1160
1220
|
let baseOptions;
|
|
@@ -1164,7 +1224,7 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
1164
1224
|
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
1165
1225
|
const localVarHeaderParameter = {};
|
|
1166
1226
|
const localVarQueryParameter = {};
|
|
1167
|
-
if (id
|
|
1227
|
+
if (id) {
|
|
1168
1228
|
localVarQueryParameter['id'] = id;
|
|
1169
1229
|
}
|
|
1170
1230
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -1177,29 +1237,29 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
1177
1237
|
},
|
|
1178
1238
|
/**
|
|
1179
1239
|
*
|
|
1180
|
-
* @summary
|
|
1181
|
-
* @param {
|
|
1240
|
+
* @summary Updates multiple customers
|
|
1241
|
+
* @param {UpdateCustomerRequest} updateCustomerRequest
|
|
1182
1242
|
* @param {*} [options] Override http request option.
|
|
1183
1243
|
* @throws {RequiredError}
|
|
1184
1244
|
*/
|
|
1185
|
-
|
|
1186
|
-
// verify required parameter '
|
|
1187
|
-
(0, common_1.assertParamExists)('
|
|
1188
|
-
const localVarPath = `/v1-
|
|
1245
|
+
customersUpdate: async (updateCustomerRequest, options = {}) => {
|
|
1246
|
+
// verify required parameter 'updateCustomerRequest' is not null or undefined
|
|
1247
|
+
(0, common_1.assertParamExists)('customersUpdate', 'updateCustomerRequest', updateCustomerRequest);
|
|
1248
|
+
const localVarPath = `/v1-customers`;
|
|
1189
1249
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1190
1250
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1191
1251
|
let baseOptions;
|
|
1192
1252
|
if (configuration) {
|
|
1193
1253
|
baseOptions = configuration.baseOptions;
|
|
1194
1254
|
}
|
|
1195
|
-
const localVarRequestOptions = { method: '
|
|
1255
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
1196
1256
|
const localVarHeaderParameter = {};
|
|
1197
1257
|
const localVarQueryParameter = {};
|
|
1198
1258
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1199
1259
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1200
1260
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1201
1261
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1202
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
1262
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateCustomerRequest, localVarRequestOptions, configuration);
|
|
1203
1263
|
return {
|
|
1204
1264
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1205
1265
|
options: localVarRequestOptions,
|
|
@@ -1207,27 +1267,25 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
1207
1267
|
},
|
|
1208
1268
|
/**
|
|
1209
1269
|
*
|
|
1210
|
-
* @summary
|
|
1211
|
-
* @param {string}
|
|
1270
|
+
* @summary Returns information about a specific file.
|
|
1271
|
+
* @param {string} fileId The ID of the file to use for this request
|
|
1212
1272
|
* @param {*} [options] Override http request option.
|
|
1213
1273
|
* @throws {RequiredError}
|
|
1214
1274
|
*/
|
|
1215
|
-
|
|
1216
|
-
// verify required parameter '
|
|
1217
|
-
(0, common_1.assertParamExists)('
|
|
1218
|
-
const localVarPath = `/
|
|
1275
|
+
file: async (fileId, options = {}) => {
|
|
1276
|
+
// verify required parameter 'fileId' is not null or undefined
|
|
1277
|
+
(0, common_1.assertParamExists)('file', 'fileId', fileId);
|
|
1278
|
+
const localVarPath = `/files/{file_id}`
|
|
1279
|
+
.replace(`{${"file_id"}}`, encodeURIComponent(String(fileId)));
|
|
1219
1280
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1220
1281
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1221
1282
|
let baseOptions;
|
|
1222
1283
|
if (configuration) {
|
|
1223
1284
|
baseOptions = configuration.baseOptions;
|
|
1224
1285
|
}
|
|
1225
|
-
const localVarRequestOptions = { method: '
|
|
1286
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1226
1287
|
const localVarHeaderParameter = {};
|
|
1227
1288
|
const localVarQueryParameter = {};
|
|
1228
|
-
if (id !== undefined) {
|
|
1229
|
-
localVarQueryParameter['id'] = id;
|
|
1230
|
-
}
|
|
1231
1289
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1232
1290
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1233
1291
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1238,30 +1296,37 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
1238
1296
|
},
|
|
1239
1297
|
/**
|
|
1240
1298
|
*
|
|
1241
|
-
* @summary
|
|
1242
|
-
* @param {
|
|
1299
|
+
* @summary Upload a file that contains document(s) to be used across various endpoints/features. Currently, the size of all the files uploaded by one organization can be up to 1 GB. Please contact us if you need to increase the storage limit.
|
|
1300
|
+
* @param {File} file
|
|
1301
|
+
* @param {string} [purpose] The intended purpose of the uploaded documents. This allows us to validate the format of the uploaded file.
|
|
1243
1302
|
* @param {*} [options] Override http request option.
|
|
1244
1303
|
* @throws {RequiredError}
|
|
1245
1304
|
*/
|
|
1246
|
-
|
|
1247
|
-
// verify required parameter '
|
|
1248
|
-
(0, common_1.assertParamExists)('
|
|
1249
|
-
const localVarPath = `/v1-
|
|
1305
|
+
fileCreate: async (file, purpose, options = {}) => {
|
|
1306
|
+
// verify required parameter 'file' is not null or undefined
|
|
1307
|
+
(0, common_1.assertParamExists)('fileCreate', 'file', file);
|
|
1308
|
+
const localVarPath = `/v1-utils-files`;
|
|
1250
1309
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1251
1310
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1252
1311
|
let baseOptions;
|
|
1253
1312
|
if (configuration) {
|
|
1254
1313
|
baseOptions = configuration.baseOptions;
|
|
1255
1314
|
}
|
|
1256
|
-
const localVarRequestOptions = { method: '
|
|
1315
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1257
1316
|
const localVarHeaderParameter = {};
|
|
1258
1317
|
const localVarQueryParameter = {};
|
|
1259
|
-
|
|
1260
|
-
|
|
1318
|
+
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
1319
|
+
if (file !== undefined) {
|
|
1320
|
+
localVarFormParams.append('file', file);
|
|
1261
1321
|
}
|
|
1322
|
+
if (purpose !== undefined) {
|
|
1323
|
+
localVarFormParams.append('purpose', purpose);
|
|
1324
|
+
}
|
|
1325
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
1262
1326
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1263
1327
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1264
1328
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1329
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
1265
1330
|
return {
|
|
1266
1331
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1267
1332
|
options: localVarRequestOptions,
|
|
@@ -1269,25 +1334,420 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
1269
1334
|
},
|
|
1270
1335
|
/**
|
|
1271
1336
|
*
|
|
1272
|
-
* @summary
|
|
1273
|
-
* @param {
|
|
1337
|
+
* @summary Delete a file.
|
|
1338
|
+
* @param {string} fileId The ID of the file to use for this request
|
|
1274
1339
|
* @param {*} [options] Override http request option.
|
|
1275
1340
|
* @throws {RequiredError}
|
|
1276
1341
|
*/
|
|
1277
|
-
|
|
1278
|
-
// verify required parameter '
|
|
1279
|
-
(0, common_1.assertParamExists)('
|
|
1280
|
-
const localVarPath = `/
|
|
1342
|
+
fileDelete: async (fileId, options = {}) => {
|
|
1343
|
+
// verify required parameter 'fileId' is not null or undefined
|
|
1344
|
+
(0, common_1.assertParamExists)('fileDelete', 'fileId', fileId);
|
|
1345
|
+
const localVarPath = `/files/{file_id}`
|
|
1346
|
+
.replace(`{${"file_id"}}`, encodeURIComponent(String(fileId)));
|
|
1281
1347
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1282
1348
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1283
1349
|
let baseOptions;
|
|
1284
1350
|
if (configuration) {
|
|
1285
1351
|
baseOptions = configuration.baseOptions;
|
|
1286
1352
|
}
|
|
1287
|
-
const localVarRequestOptions = { method: '
|
|
1353
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
1288
1354
|
const localVarHeaderParameter = {};
|
|
1289
1355
|
const localVarQueryParameter = {};
|
|
1290
|
-
|
|
1356
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1357
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1358
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1359
|
+
return {
|
|
1360
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1361
|
+
options: localVarRequestOptions,
|
|
1362
|
+
};
|
|
1363
|
+
},
|
|
1364
|
+
/**
|
|
1365
|
+
*
|
|
1366
|
+
* @summary Returns the contents of the specified file
|
|
1367
|
+
* @param {string} fileId The ID of the file to use for this request
|
|
1368
|
+
* @param {*} [options] Override http request option.
|
|
1369
|
+
* @throws {RequiredError}
|
|
1370
|
+
*/
|
|
1371
|
+
fileDownload: async (fileId, options = {}) => {
|
|
1372
|
+
// verify required parameter 'fileId' is not null or undefined
|
|
1373
|
+
(0, common_1.assertParamExists)('fileDownload', 'fileId', fileId);
|
|
1374
|
+
const localVarPath = `/files/{file_id}/content`
|
|
1375
|
+
.replace(`{${"file_id"}}`, encodeURIComponent(String(fileId)));
|
|
1376
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1377
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1378
|
+
let baseOptions;
|
|
1379
|
+
if (configuration) {
|
|
1380
|
+
baseOptions = configuration.baseOptions;
|
|
1381
|
+
}
|
|
1382
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1383
|
+
const localVarHeaderParameter = {};
|
|
1384
|
+
const localVarQueryParameter = {};
|
|
1385
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1386
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1387
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1388
|
+
return {
|
|
1389
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1390
|
+
options: localVarRequestOptions,
|
|
1391
|
+
};
|
|
1392
|
+
},
|
|
1393
|
+
/**
|
|
1394
|
+
*
|
|
1395
|
+
* @summary Returns a list of files that belong to the user\'s organization.
|
|
1396
|
+
* @param {*} [options] Override http request option.
|
|
1397
|
+
* @throws {RequiredError}
|
|
1398
|
+
*/
|
|
1399
|
+
files: async (options = {}) => {
|
|
1400
|
+
const localVarPath = `/v1-utils-files`;
|
|
1401
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1402
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1403
|
+
let baseOptions;
|
|
1404
|
+
if (configuration) {
|
|
1405
|
+
baseOptions = configuration.baseOptions;
|
|
1406
|
+
}
|
|
1407
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1408
|
+
const localVarHeaderParameter = {};
|
|
1409
|
+
const localVarQueryParameter = {};
|
|
1410
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1411
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1412
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1413
|
+
return {
|
|
1414
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1415
|
+
options: localVarRequestOptions,
|
|
1416
|
+
};
|
|
1417
|
+
},
|
|
1418
|
+
/**
|
|
1419
|
+
* Generates a message in the agent\'s voice based on the state of the given conversation. This is useful for testing and debugging. The message will not be sent to the conversation, you must run .message() with the body of the generated message to send it to the conversation.
|
|
1420
|
+
* @summary Generate a message from conversation
|
|
1421
|
+
* @param {GenerateRequest} generateRequest
|
|
1422
|
+
* @param {*} [options] Override http request option.
|
|
1423
|
+
* @throws {RequiredError}
|
|
1424
|
+
*/
|
|
1425
|
+
generate: async (generateRequest, options = {}) => {
|
|
1426
|
+
// verify required parameter 'generateRequest' is not null or undefined
|
|
1427
|
+
(0, common_1.assertParamExists)('generate', 'generateRequest', generateRequest);
|
|
1428
|
+
const localVarPath = `/v1-generate`;
|
|
1429
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1430
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1431
|
+
let baseOptions;
|
|
1432
|
+
if (configuration) {
|
|
1433
|
+
baseOptions = configuration.baseOptions;
|
|
1434
|
+
}
|
|
1435
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1436
|
+
const localVarHeaderParameter = {};
|
|
1437
|
+
const localVarQueryParameter = {};
|
|
1438
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1439
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1440
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1441
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1442
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(generateRequest, localVarRequestOptions, configuration);
|
|
1443
|
+
return {
|
|
1444
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1445
|
+
options: localVarRequestOptions,
|
|
1446
|
+
};
|
|
1447
|
+
},
|
|
1448
|
+
/**
|
|
1449
|
+
* Creates a new message and sends it to the conversation. If the conversation is scheduled, the message will be scheduled as well. @TODO does not support the ability to mute or delay send
|
|
1450
|
+
* @summary Create and send message
|
|
1451
|
+
* @param {MessageCreateRequest} messageCreateRequest
|
|
1452
|
+
* @param {*} [options] Override http request option.
|
|
1453
|
+
* @throws {RequiredError}
|
|
1454
|
+
*/
|
|
1455
|
+
message: async (messageCreateRequest, options = {}) => {
|
|
1456
|
+
// verify required parameter 'messageCreateRequest' is not null or undefined
|
|
1457
|
+
(0, common_1.assertParamExists)('message', 'messageCreateRequest', messageCreateRequest);
|
|
1458
|
+
const localVarPath = `/v1-messages`;
|
|
1459
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1460
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1461
|
+
let baseOptions;
|
|
1462
|
+
if (configuration) {
|
|
1463
|
+
baseOptions = configuration.baseOptions;
|
|
1464
|
+
}
|
|
1465
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1466
|
+
const localVarHeaderParameter = {};
|
|
1467
|
+
const localVarQueryParameter = {};
|
|
1468
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1469
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1470
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1471
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1472
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(messageCreateRequest, localVarRequestOptions, configuration);
|
|
1473
|
+
return {
|
|
1474
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1475
|
+
options: localVarRequestOptions,
|
|
1476
|
+
};
|
|
1477
|
+
},
|
|
1478
|
+
/**
|
|
1479
|
+
*
|
|
1480
|
+
* @summary Get all messages from a conversation
|
|
1481
|
+
* @param {string} id id of entity to query
|
|
1482
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
1483
|
+
* @param {*} [options] Override http request option.
|
|
1484
|
+
* @throws {RequiredError}
|
|
1485
|
+
*/
|
|
1486
|
+
messages: async (id, q, options = {}) => {
|
|
1487
|
+
// verify required parameter 'id' is not null or undefined
|
|
1488
|
+
(0, common_1.assertParamExists)('messages', 'id', id);
|
|
1489
|
+
const localVarPath = `/v1-messages`;
|
|
1490
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1491
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1492
|
+
let baseOptions;
|
|
1493
|
+
if (configuration) {
|
|
1494
|
+
baseOptions = configuration.baseOptions;
|
|
1495
|
+
}
|
|
1496
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1497
|
+
const localVarHeaderParameter = {};
|
|
1498
|
+
const localVarQueryParameter = {};
|
|
1499
|
+
if (id !== undefined) {
|
|
1500
|
+
localVarQueryParameter['id'] = id;
|
|
1501
|
+
}
|
|
1502
|
+
if (q !== undefined) {
|
|
1503
|
+
localVarQueryParameter['q'] = q;
|
|
1504
|
+
}
|
|
1505
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1506
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1507
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1508
|
+
return {
|
|
1509
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1510
|
+
options: localVarRequestOptions,
|
|
1511
|
+
};
|
|
1512
|
+
},
|
|
1513
|
+
/**
|
|
1514
|
+
*
|
|
1515
|
+
* @summary Get the results of a bulk API operation
|
|
1516
|
+
* @param {string} id id of entity to query
|
|
1517
|
+
* @param {*} [options] Override http request option.
|
|
1518
|
+
* @throws {RequiredError}
|
|
1519
|
+
*/
|
|
1520
|
+
operation: async (id, options = {}) => {
|
|
1521
|
+
// verify required parameter 'id' is not null or undefined
|
|
1522
|
+
(0, common_1.assertParamExists)('operation', 'id', id);
|
|
1523
|
+
const localVarPath = `/v1-utils-operation`;
|
|
1524
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1525
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1526
|
+
let baseOptions;
|
|
1527
|
+
if (configuration) {
|
|
1528
|
+
baseOptions = configuration.baseOptions;
|
|
1529
|
+
}
|
|
1530
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1531
|
+
const localVarHeaderParameter = {};
|
|
1532
|
+
const localVarQueryParameter = {};
|
|
1533
|
+
if (id !== undefined) {
|
|
1534
|
+
localVarQueryParameter['id'] = id;
|
|
1535
|
+
}
|
|
1536
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1537
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1538
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1539
|
+
return {
|
|
1540
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1541
|
+
options: localVarRequestOptions,
|
|
1542
|
+
};
|
|
1543
|
+
},
|
|
1544
|
+
/**
|
|
1545
|
+
*
|
|
1546
|
+
* @summary Gets all or specific set of bulk API operations
|
|
1547
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
1548
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
1549
|
+
* @param {*} [options] Override http request option.
|
|
1550
|
+
* @throws {RequiredError}
|
|
1551
|
+
*/
|
|
1552
|
+
operations: async (q, id, options = {}) => {
|
|
1553
|
+
const localVarPath = `/v1-utils-operations`;
|
|
1554
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1555
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1556
|
+
let baseOptions;
|
|
1557
|
+
if (configuration) {
|
|
1558
|
+
baseOptions = configuration.baseOptions;
|
|
1559
|
+
}
|
|
1560
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1561
|
+
const localVarHeaderParameter = {};
|
|
1562
|
+
const localVarQueryParameter = {};
|
|
1563
|
+
if (q !== undefined) {
|
|
1564
|
+
localVarQueryParameter['q'] = q;
|
|
1565
|
+
}
|
|
1566
|
+
if (id) {
|
|
1567
|
+
localVarQueryParameter['id'] = id;
|
|
1568
|
+
}
|
|
1569
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1570
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1571
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1572
|
+
return {
|
|
1573
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1574
|
+
options: localVarRequestOptions,
|
|
1575
|
+
};
|
|
1576
|
+
},
|
|
1577
|
+
/**
|
|
1578
|
+
*
|
|
1579
|
+
* @summary Creates a new scheduled conversation
|
|
1580
|
+
* @param {ScheduleCreateRequest} scheduleCreateRequest
|
|
1581
|
+
* @param {*} [options] Override http request option.
|
|
1582
|
+
* @throws {RequiredError}
|
|
1583
|
+
*/
|
|
1584
|
+
scheduleConversation: async (scheduleCreateRequest, options = {}) => {
|
|
1585
|
+
// verify required parameter 'scheduleCreateRequest' is not null or undefined
|
|
1586
|
+
(0, common_1.assertParamExists)('scheduleConversation', 'scheduleCreateRequest', scheduleCreateRequest);
|
|
1587
|
+
const localVarPath = `/v1-schedule`;
|
|
1588
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1589
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1590
|
+
let baseOptions;
|
|
1591
|
+
if (configuration) {
|
|
1592
|
+
baseOptions = configuration.baseOptions;
|
|
1593
|
+
}
|
|
1594
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1595
|
+
const localVarHeaderParameter = {};
|
|
1596
|
+
const localVarQueryParameter = {};
|
|
1597
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1598
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1599
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1600
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1601
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(scheduleCreateRequest, localVarRequestOptions, configuration);
|
|
1602
|
+
return {
|
|
1603
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1604
|
+
options: localVarRequestOptions,
|
|
1605
|
+
};
|
|
1606
|
+
},
|
|
1607
|
+
/**
|
|
1608
|
+
*
|
|
1609
|
+
* @summary Deletes a schedule
|
|
1610
|
+
* @param {string} id id of entity to query
|
|
1611
|
+
* @param {*} [options] Override http request option.
|
|
1612
|
+
* @throws {RequiredError}
|
|
1613
|
+
*/
|
|
1614
|
+
scheduleDelete: async (id, options = {}) => {
|
|
1615
|
+
// verify required parameter 'id' is not null or undefined
|
|
1616
|
+
(0, common_1.assertParamExists)('scheduleDelete', 'id', id);
|
|
1617
|
+
const localVarPath = `/v1-schedule`;
|
|
1618
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1619
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1620
|
+
let baseOptions;
|
|
1621
|
+
if (configuration) {
|
|
1622
|
+
baseOptions = configuration.baseOptions;
|
|
1623
|
+
}
|
|
1624
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
1625
|
+
const localVarHeaderParameter = {};
|
|
1626
|
+
const localVarQueryParameter = {};
|
|
1627
|
+
if (id !== undefined) {
|
|
1628
|
+
localVarQueryParameter['id'] = id;
|
|
1629
|
+
}
|
|
1630
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1631
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1632
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1633
|
+
return {
|
|
1634
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1635
|
+
options: localVarRequestOptions,
|
|
1636
|
+
};
|
|
1637
|
+
},
|
|
1638
|
+
/**
|
|
1639
|
+
*
|
|
1640
|
+
* @summary Creates a new schedule group
|
|
1641
|
+
* @param {ScheduleGroupCreateRequest} scheduleGroupCreateRequest
|
|
1642
|
+
* @param {*} [options] Override http request option.
|
|
1643
|
+
* @throws {RequiredError}
|
|
1644
|
+
*/
|
|
1645
|
+
scheduleGroupCreate: async (scheduleGroupCreateRequest, options = {}) => {
|
|
1646
|
+
// verify required parameter 'scheduleGroupCreateRequest' is not null or undefined
|
|
1647
|
+
(0, common_1.assertParamExists)('scheduleGroupCreate', 'scheduleGroupCreateRequest', scheduleGroupCreateRequest);
|
|
1648
|
+
const localVarPath = `/v1-scheduleGroup`;
|
|
1649
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1650
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1651
|
+
let baseOptions;
|
|
1652
|
+
if (configuration) {
|
|
1653
|
+
baseOptions = configuration.baseOptions;
|
|
1654
|
+
}
|
|
1655
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1656
|
+
const localVarHeaderParameter = {};
|
|
1657
|
+
const localVarQueryParameter = {};
|
|
1658
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1659
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1660
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1661
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1662
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(scheduleGroupCreateRequest, localVarRequestOptions, configuration);
|
|
1663
|
+
return {
|
|
1664
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1665
|
+
options: localVarRequestOptions,
|
|
1666
|
+
};
|
|
1667
|
+
},
|
|
1668
|
+
/**
|
|
1669
|
+
*
|
|
1670
|
+
* @summary Deletes and cancels a schedule group
|
|
1671
|
+
* @param {string} id id of entity to query
|
|
1672
|
+
* @param {*} [options] Override http request option.
|
|
1673
|
+
* @throws {RequiredError}
|
|
1674
|
+
*/
|
|
1675
|
+
scheduleGroupDelete: async (id, options = {}) => {
|
|
1676
|
+
// verify required parameter 'id' is not null or undefined
|
|
1677
|
+
(0, common_1.assertParamExists)('scheduleGroupDelete', 'id', id);
|
|
1678
|
+
const localVarPath = `/v1-scheduleGroup`;
|
|
1679
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1680
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1681
|
+
let baseOptions;
|
|
1682
|
+
if (configuration) {
|
|
1683
|
+
baseOptions = configuration.baseOptions;
|
|
1684
|
+
}
|
|
1685
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
1686
|
+
const localVarHeaderParameter = {};
|
|
1687
|
+
const localVarQueryParameter = {};
|
|
1688
|
+
if (id !== undefined) {
|
|
1689
|
+
localVarQueryParameter['id'] = id;
|
|
1690
|
+
}
|
|
1691
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1692
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1693
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1694
|
+
return {
|
|
1695
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1696
|
+
options: localVarRequestOptions,
|
|
1697
|
+
};
|
|
1698
|
+
},
|
|
1699
|
+
/**
|
|
1700
|
+
*
|
|
1701
|
+
* @summary Gets a schedule group
|
|
1702
|
+
* @param {string} id id of entity to query
|
|
1703
|
+
* @param {*} [options] Override http request option.
|
|
1704
|
+
* @throws {RequiredError}
|
|
1705
|
+
*/
|
|
1706
|
+
scheduleGroupRetrieve: async (id, options = {}) => {
|
|
1707
|
+
// verify required parameter 'id' is not null or undefined
|
|
1708
|
+
(0, common_1.assertParamExists)('scheduleGroupRetrieve', 'id', id);
|
|
1709
|
+
const localVarPath = `/v1-scheduleGroup`;
|
|
1710
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1711
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1712
|
+
let baseOptions;
|
|
1713
|
+
if (configuration) {
|
|
1714
|
+
baseOptions = configuration.baseOptions;
|
|
1715
|
+
}
|
|
1716
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1717
|
+
const localVarHeaderParameter = {};
|
|
1718
|
+
const localVarQueryParameter = {};
|
|
1719
|
+
if (id !== undefined) {
|
|
1720
|
+
localVarQueryParameter['id'] = id;
|
|
1721
|
+
}
|
|
1722
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1723
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1724
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1725
|
+
return {
|
|
1726
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1727
|
+
options: localVarRequestOptions,
|
|
1728
|
+
};
|
|
1729
|
+
},
|
|
1730
|
+
/**
|
|
1731
|
+
*
|
|
1732
|
+
* @summary Updates a schedule group
|
|
1733
|
+
* @param {ScheduleGroupUpdateRequest} scheduleGroupUpdateRequest
|
|
1734
|
+
* @param {*} [options] Override http request option.
|
|
1735
|
+
* @throws {RequiredError}
|
|
1736
|
+
*/
|
|
1737
|
+
scheduleGroupUpdate: async (scheduleGroupUpdateRequest, options = {}) => {
|
|
1738
|
+
// verify required parameter 'scheduleGroupUpdateRequest' is not null or undefined
|
|
1739
|
+
(0, common_1.assertParamExists)('scheduleGroupUpdate', 'scheduleGroupUpdateRequest', scheduleGroupUpdateRequest);
|
|
1740
|
+
const localVarPath = `/v1-scheduleGroup`;
|
|
1741
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1742
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1743
|
+
let baseOptions;
|
|
1744
|
+
if (configuration) {
|
|
1745
|
+
baseOptions = configuration.baseOptions;
|
|
1746
|
+
}
|
|
1747
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
1748
|
+
const localVarHeaderParameter = {};
|
|
1749
|
+
const localVarQueryParameter = {};
|
|
1750
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1291
1751
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1292
1752
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1293
1753
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1300,7 +1760,7 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
1300
1760
|
/**
|
|
1301
1761
|
*
|
|
1302
1762
|
* @summary Gets a schedule
|
|
1303
|
-
* @param {string} id
|
|
1763
|
+
* @param {string} id id of entity to query
|
|
1304
1764
|
* @param {*} [options] Override http request option.
|
|
1305
1765
|
* @throws {RequiredError}
|
|
1306
1766
|
*/
|
|
@@ -1361,7 +1821,7 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
1361
1821
|
/**
|
|
1362
1822
|
*
|
|
1363
1823
|
* @summary Gets a workflow
|
|
1364
|
-
* @param {string} id
|
|
1824
|
+
* @param {string} id id of entity to query
|
|
1365
1825
|
* @param {*} [options] Override http request option.
|
|
1366
1826
|
* @throws {RequiredError}
|
|
1367
1827
|
*/
|
|
@@ -1422,7 +1882,7 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
1422
1882
|
/**
|
|
1423
1883
|
*
|
|
1424
1884
|
* @summary Deletes a workflow
|
|
1425
|
-
* @param {string} id
|
|
1885
|
+
* @param {string} id id of entity to query
|
|
1426
1886
|
* @param {*} [options] Override http request option.
|
|
1427
1887
|
* @throws {RequiredError}
|
|
1428
1888
|
*/
|
|
@@ -1484,7 +1944,7 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
1484
1944
|
*
|
|
1485
1945
|
* @summary Gets all or specific set of workflows
|
|
1486
1946
|
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
1487
|
-
* @param {Array<string>} [id]
|
|
1947
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
1488
1948
|
* @param {*} [options] Override http request option.
|
|
1489
1949
|
* @throws {RequiredError}
|
|
1490
1950
|
*/
|
|
@@ -1546,7 +2006,7 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
1546
2006
|
/**
|
|
1547
2007
|
*
|
|
1548
2008
|
* @summary Deletes multiple workflows
|
|
1549
|
-
* @param {Array<string>} [id]
|
|
2009
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
1550
2010
|
* @param {*} [options] Override http request option.
|
|
1551
2011
|
* @throws {RequiredError}
|
|
1552
2012
|
*/
|
|
@@ -1604,18 +2064,18 @@ const Scout9ApiAxiosParamCreator = function (configuration) {
|
|
|
1604
2064
|
},
|
|
1605
2065
|
};
|
|
1606
2066
|
};
|
|
1607
|
-
exports.
|
|
2067
|
+
exports.PocketScoutApiAxiosParamCreator = PocketScoutApiAxiosParamCreator;
|
|
1608
2068
|
/**
|
|
1609
|
-
*
|
|
2069
|
+
* PocketScoutApi - functional programming interface
|
|
1610
2070
|
* @export
|
|
1611
2071
|
*/
|
|
1612
|
-
const
|
|
1613
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
2072
|
+
const PocketScoutApiFp = function (configuration) {
|
|
2073
|
+
const localVarAxiosParamCreator = (0, exports.PocketScoutApiAxiosParamCreator)(configuration);
|
|
1614
2074
|
return {
|
|
1615
2075
|
/**
|
|
1616
2076
|
*
|
|
1617
2077
|
* @summary Gets a agent
|
|
1618
|
-
* @param {string} id
|
|
2078
|
+
* @param {string} id id of entity to query
|
|
1619
2079
|
* @param {*} [options] Override http request option.
|
|
1620
2080
|
* @throws {RequiredError}
|
|
1621
2081
|
*/
|
|
@@ -1625,24 +2085,24 @@ const Scout9ApiFp = function (configuration) {
|
|
|
1625
2085
|
},
|
|
1626
2086
|
/**
|
|
1627
2087
|
*
|
|
1628
|
-
* @summary
|
|
1629
|
-
* @param {
|
|
2088
|
+
* @summary Deletes a agent
|
|
2089
|
+
* @param {string} id id of entity to query
|
|
1630
2090
|
* @param {*} [options] Override http request option.
|
|
1631
2091
|
* @throws {RequiredError}
|
|
1632
2092
|
*/
|
|
1633
|
-
async
|
|
1634
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2093
|
+
async agentDelete(id, options) {
|
|
2094
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.agentDelete(id, options);
|
|
1635
2095
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1636
2096
|
},
|
|
1637
2097
|
/**
|
|
1638
2098
|
*
|
|
1639
|
-
* @summary
|
|
1640
|
-
* @param {
|
|
2099
|
+
* @summary Registers a new agent
|
|
2100
|
+
* @param {CreateAgentRequest} createAgentRequest
|
|
1641
2101
|
* @param {*} [options] Override http request option.
|
|
1642
2102
|
* @throws {RequiredError}
|
|
1643
2103
|
*/
|
|
1644
|
-
async
|
|
1645
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2104
|
+
async agentRegister(createAgentRequest, options) {
|
|
2105
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.agentRegister(createAgentRequest, options);
|
|
1646
2106
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1647
2107
|
},
|
|
1648
2108
|
/**
|
|
@@ -1660,7 +2120,7 @@ const Scout9ApiFp = function (configuration) {
|
|
|
1660
2120
|
*
|
|
1661
2121
|
* @summary Gets all or specific set of agents
|
|
1662
2122
|
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
1663
|
-
* @param {Array<string>} [id]
|
|
2123
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
1664
2124
|
* @param {*} [options] Override http request option.
|
|
1665
2125
|
* @throws {RequiredError}
|
|
1666
2126
|
*/
|
|
@@ -1682,7 +2142,7 @@ const Scout9ApiFp = function (configuration) {
|
|
|
1682
2142
|
/**
|
|
1683
2143
|
*
|
|
1684
2144
|
* @summary Deletes multiple agents
|
|
1685
|
-
* @param {Array<string>} [id]
|
|
2145
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
1686
2146
|
* @param {*} [options] Override http request option.
|
|
1687
2147
|
* @throws {RequiredError}
|
|
1688
2148
|
*/
|
|
@@ -1704,7 +2164,7 @@ const Scout9ApiFp = function (configuration) {
|
|
|
1704
2164
|
/**
|
|
1705
2165
|
*
|
|
1706
2166
|
* @summary Gets a context
|
|
1707
|
-
* @param {string} id
|
|
2167
|
+
* @param {string} id id of entity to query
|
|
1708
2168
|
* @param {*} [options] Override http request option.
|
|
1709
2169
|
* @throws {RequiredError}
|
|
1710
2170
|
*/
|
|
@@ -1726,7 +2186,7 @@ const Scout9ApiFp = function (configuration) {
|
|
|
1726
2186
|
/**
|
|
1727
2187
|
*
|
|
1728
2188
|
* @summary Deletes a schedule
|
|
1729
|
-
* @param {string} id
|
|
2189
|
+
* @param {string} id id of entity to query
|
|
1730
2190
|
* @param {*} [options] Override http request option.
|
|
1731
2191
|
* @throws {RequiredError}
|
|
1732
2192
|
*/
|
|
@@ -1749,122 +2209,211 @@ const Scout9ApiFp = function (configuration) {
|
|
|
1749
2209
|
*
|
|
1750
2210
|
* @summary Gets all or specific set of contexts
|
|
1751
2211
|
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
1752
|
-
* @param {Array<string>} [id]
|
|
2212
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
2213
|
+
* @param {*} [options] Override http request option.
|
|
2214
|
+
* @throws {RequiredError}
|
|
2215
|
+
*/
|
|
2216
|
+
async contexts(q, id, options) {
|
|
2217
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.contexts(q, id, options);
|
|
2218
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2219
|
+
},
|
|
2220
|
+
/**
|
|
2221
|
+
*
|
|
2222
|
+
* @summary Creates new contexts
|
|
2223
|
+
* @param {CreateContextsRequest} createContextsRequest
|
|
2224
|
+
* @param {*} [options] Override http request option.
|
|
2225
|
+
* @throws {RequiredError}
|
|
2226
|
+
*/
|
|
2227
|
+
async contextsCreate(createContextsRequest, options) {
|
|
2228
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.contextsCreate(createContextsRequest, options);
|
|
2229
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2230
|
+
},
|
|
2231
|
+
/**
|
|
2232
|
+
*
|
|
2233
|
+
* @summary Deletes multiple contexts
|
|
2234
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
2235
|
+
* @param {*} [options] Override http request option.
|
|
2236
|
+
* @throws {RequiredError}
|
|
2237
|
+
*/
|
|
2238
|
+
async contextsDelete(id, options) {
|
|
2239
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.contextsDelete(id, options);
|
|
2240
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2241
|
+
},
|
|
2242
|
+
/**
|
|
2243
|
+
*
|
|
2244
|
+
* @summary Updates multiple contexts
|
|
2245
|
+
* @param {UpdateContextRequest} updateContextRequest
|
|
2246
|
+
* @param {*} [options] Override http request option.
|
|
2247
|
+
* @throws {RequiredError}
|
|
2248
|
+
*/
|
|
2249
|
+
async contextsUpdate(updateContextRequest, options) {
|
|
2250
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.contextsUpdate(updateContextRequest, options);
|
|
2251
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2252
|
+
},
|
|
2253
|
+
/**
|
|
2254
|
+
*
|
|
2255
|
+
* @summary Gets a conversation
|
|
2256
|
+
* @param {string} id id of entity to query
|
|
2257
|
+
* @param {*} [options] Override http request option.
|
|
2258
|
+
* @throws {RequiredError}
|
|
2259
|
+
*/
|
|
2260
|
+
async conversation(id, options) {
|
|
2261
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversation(id, options);
|
|
2262
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2263
|
+
},
|
|
2264
|
+
/**
|
|
2265
|
+
*
|
|
2266
|
+
* @summary Create a new conversation
|
|
2267
|
+
* @param {ConversationCreateRequest} conversationCreateRequest
|
|
2268
|
+
* @param {*} [options] Override http request option.
|
|
2269
|
+
* @throws {RequiredError}
|
|
2270
|
+
*/
|
|
2271
|
+
async conversationCreate(conversationCreateRequest, options) {
|
|
2272
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationCreate(conversationCreateRequest, options);
|
|
2273
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2274
|
+
},
|
|
2275
|
+
/**
|
|
2276
|
+
*
|
|
2277
|
+
* @summary Deletes a schedule
|
|
2278
|
+
* @param {string} id id of entity to query
|
|
2279
|
+
* @param {*} [options] Override http request option.
|
|
2280
|
+
* @throws {RequiredError}
|
|
2281
|
+
*/
|
|
2282
|
+
async conversationDelete(id, options) {
|
|
2283
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationDelete(id, options);
|
|
2284
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2285
|
+
},
|
|
2286
|
+
/**
|
|
2287
|
+
*
|
|
2288
|
+
* @summary Update a conversation
|
|
2289
|
+
* @param {ConversationUpdateRequest} conversationUpdateRequest
|
|
2290
|
+
* @param {*} [options] Override http request option.
|
|
2291
|
+
* @throws {RequiredError}
|
|
2292
|
+
*/
|
|
2293
|
+
async conversationUpdate(conversationUpdateRequest, options) {
|
|
2294
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationUpdate(conversationUpdateRequest, options);
|
|
2295
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2296
|
+
},
|
|
2297
|
+
/**
|
|
2298
|
+
*
|
|
2299
|
+
* @summary Gets a customer
|
|
2300
|
+
* @param {string} id id of entity to query
|
|
1753
2301
|
* @param {*} [options] Override http request option.
|
|
1754
2302
|
* @throws {RequiredError}
|
|
1755
2303
|
*/
|
|
1756
|
-
async
|
|
1757
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2304
|
+
async customer(id, options) {
|
|
2305
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.customer(id, options);
|
|
1758
2306
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1759
2307
|
},
|
|
1760
2308
|
/**
|
|
1761
2309
|
*
|
|
1762
|
-
* @summary Creates new
|
|
1763
|
-
* @param {
|
|
2310
|
+
* @summary Creates a new customer
|
|
2311
|
+
* @param {CreateCustomerRequest} createCustomerRequest
|
|
1764
2312
|
* @param {*} [options] Override http request option.
|
|
1765
2313
|
* @throws {RequiredError}
|
|
1766
2314
|
*/
|
|
1767
|
-
async
|
|
1768
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2315
|
+
async customerCreate(createCustomerRequest, options) {
|
|
2316
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.customerCreate(createCustomerRequest, options);
|
|
1769
2317
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1770
2318
|
},
|
|
1771
2319
|
/**
|
|
1772
2320
|
*
|
|
1773
|
-
* @summary Deletes
|
|
1774
|
-
* @param {
|
|
2321
|
+
* @summary Deletes a customer
|
|
2322
|
+
* @param {string} id id of entity to query
|
|
1775
2323
|
* @param {*} [options] Override http request option.
|
|
1776
2324
|
* @throws {RequiredError}
|
|
1777
2325
|
*/
|
|
1778
|
-
async
|
|
1779
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2326
|
+
async customerDelete(id, options) {
|
|
2327
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.customerDelete(id, options);
|
|
1780
2328
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1781
2329
|
},
|
|
1782
2330
|
/**
|
|
1783
2331
|
*
|
|
1784
|
-
* @summary
|
|
1785
|
-
* @param {
|
|
2332
|
+
* @summary Gets a customer group
|
|
2333
|
+
* @param {string} id id of entity to query
|
|
1786
2334
|
* @param {*} [options] Override http request option.
|
|
1787
2335
|
* @throws {RequiredError}
|
|
1788
2336
|
*/
|
|
1789
|
-
async
|
|
1790
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2337
|
+
async customerGroup(id, options) {
|
|
2338
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.customerGroup(id, options);
|
|
1791
2339
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1792
2340
|
},
|
|
1793
2341
|
/**
|
|
1794
2342
|
*
|
|
1795
|
-
* @summary
|
|
1796
|
-
* @param {
|
|
2343
|
+
* @summary Creates a new customer group
|
|
2344
|
+
* @param {CreateCustomerGroupRequest} createCustomerGroupRequest
|
|
1797
2345
|
* @param {*} [options] Override http request option.
|
|
1798
2346
|
* @throws {RequiredError}
|
|
1799
2347
|
*/
|
|
1800
|
-
async
|
|
1801
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2348
|
+
async customerGroupCreate(createCustomerGroupRequest, options) {
|
|
2349
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.customerGroupCreate(createCustomerGroupRequest, options);
|
|
1802
2350
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1803
2351
|
},
|
|
1804
2352
|
/**
|
|
1805
2353
|
*
|
|
1806
|
-
* @summary
|
|
1807
|
-
* @param {
|
|
2354
|
+
* @summary Deletes a customer group
|
|
2355
|
+
* @param {string} id id of entity to query
|
|
1808
2356
|
* @param {*} [options] Override http request option.
|
|
1809
2357
|
* @throws {RequiredError}
|
|
1810
2358
|
*/
|
|
1811
|
-
async
|
|
1812
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2359
|
+
async customerGroupDelete(id, options) {
|
|
2360
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.customerGroupDelete(id, options);
|
|
1813
2361
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1814
2362
|
},
|
|
1815
2363
|
/**
|
|
1816
2364
|
*
|
|
1817
|
-
* @summary
|
|
1818
|
-
* @param {
|
|
2365
|
+
* @summary Updates a customer group
|
|
2366
|
+
* @param {UpdateCustomerGroupRequest} updateCustomerGroupRequest
|
|
1819
2367
|
* @param {*} [options] Override http request option.
|
|
1820
2368
|
* @throws {RequiredError}
|
|
1821
2369
|
*/
|
|
1822
|
-
async
|
|
1823
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2370
|
+
async customerGroupUpdate(updateCustomerGroupRequest, options) {
|
|
2371
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.customerGroupUpdate(updateCustomerGroupRequest, options);
|
|
1824
2372
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1825
2373
|
},
|
|
1826
2374
|
/**
|
|
1827
2375
|
*
|
|
1828
|
-
* @summary
|
|
1829
|
-
* @param {
|
|
2376
|
+
* @summary Gets all or specific set of customer groups
|
|
2377
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
2378
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
1830
2379
|
* @param {*} [options] Override http request option.
|
|
1831
2380
|
* @throws {RequiredError}
|
|
1832
2381
|
*/
|
|
1833
|
-
async
|
|
1834
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2382
|
+
async customerGroups(q, id, options) {
|
|
2383
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.customerGroups(q, id, options);
|
|
1835
2384
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1836
2385
|
},
|
|
1837
2386
|
/**
|
|
1838
2387
|
*
|
|
1839
|
-
* @summary
|
|
1840
|
-
* @param {
|
|
2388
|
+
* @summary Creates new customer groups
|
|
2389
|
+
* @param {CreateCustomerGroupsRequest} createCustomerGroupsRequest
|
|
1841
2390
|
* @param {*} [options] Override http request option.
|
|
1842
2391
|
* @throws {RequiredError}
|
|
1843
2392
|
*/
|
|
1844
|
-
async
|
|
1845
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2393
|
+
async customerGroupsCreate(createCustomerGroupsRequest, options) {
|
|
2394
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.customerGroupsCreate(createCustomerGroupsRequest, options);
|
|
1846
2395
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1847
2396
|
},
|
|
1848
2397
|
/**
|
|
1849
2398
|
*
|
|
1850
|
-
* @summary
|
|
1851
|
-
* @param {
|
|
2399
|
+
* @summary Deletes multiple customer groups
|
|
2400
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
1852
2401
|
* @param {*} [options] Override http request option.
|
|
1853
2402
|
* @throws {RequiredError}
|
|
1854
2403
|
*/
|
|
1855
|
-
async
|
|
1856
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2404
|
+
async customerGroupsDelete(id, options) {
|
|
2405
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.customerGroupsDelete(id, options);
|
|
1857
2406
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1858
2407
|
},
|
|
1859
2408
|
/**
|
|
1860
2409
|
*
|
|
1861
|
-
* @summary
|
|
1862
|
-
* @param {
|
|
2410
|
+
* @summary Updates multiple customer groups
|
|
2411
|
+
* @param {UpdateCustomerGroupsRequest} updateCustomerGroupsRequest
|
|
1863
2412
|
* @param {*} [options] Override http request option.
|
|
1864
2413
|
* @throws {RequiredError}
|
|
1865
2414
|
*/
|
|
1866
|
-
async
|
|
1867
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2415
|
+
async customerGroupsUpdate(updateCustomerGroupsRequest, options) {
|
|
2416
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.customerGroupsUpdate(updateCustomerGroupsRequest, options);
|
|
1868
2417
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1869
2418
|
},
|
|
1870
2419
|
/**
|
|
@@ -1882,7 +2431,7 @@ const Scout9ApiFp = function (configuration) {
|
|
|
1882
2431
|
*
|
|
1883
2432
|
* @summary Gets all or specific set of customers
|
|
1884
2433
|
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
1885
|
-
* @param {Array<string>} [id]
|
|
2434
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
1886
2435
|
* @param {*} [options] Override http request option.
|
|
1887
2436
|
* @throws {RequiredError}
|
|
1888
2437
|
*/
|
|
@@ -1904,7 +2453,7 @@ const Scout9ApiFp = function (configuration) {
|
|
|
1904
2453
|
/**
|
|
1905
2454
|
*
|
|
1906
2455
|
* @summary Deletes multiple customers
|
|
1907
|
-
* @param {Array<string>} [id]
|
|
2456
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
1908
2457
|
* @param {*} [options] Override http request option.
|
|
1909
2458
|
* @throws {RequiredError}
|
|
1910
2459
|
*/
|
|
@@ -1923,6 +2472,61 @@ const Scout9ApiFp = function (configuration) {
|
|
|
1923
2472
|
const localVarAxiosArgs = await localVarAxiosParamCreator.customersUpdate(updateCustomerRequest, options);
|
|
1924
2473
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1925
2474
|
},
|
|
2475
|
+
/**
|
|
2476
|
+
*
|
|
2477
|
+
* @summary Returns information about a specific file.
|
|
2478
|
+
* @param {string} fileId The ID of the file to use for this request
|
|
2479
|
+
* @param {*} [options] Override http request option.
|
|
2480
|
+
* @throws {RequiredError}
|
|
2481
|
+
*/
|
|
2482
|
+
async file(fileId, options) {
|
|
2483
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.file(fileId, options);
|
|
2484
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2485
|
+
},
|
|
2486
|
+
/**
|
|
2487
|
+
*
|
|
2488
|
+
* @summary Upload a file that contains document(s) to be used across various endpoints/features. Currently, the size of all the files uploaded by one organization can be up to 1 GB. Please contact us if you need to increase the storage limit.
|
|
2489
|
+
* @param {File} file
|
|
2490
|
+
* @param {string} [purpose] The intended purpose of the uploaded documents. This allows us to validate the format of the uploaded file.
|
|
2491
|
+
* @param {*} [options] Override http request option.
|
|
2492
|
+
* @throws {RequiredError}
|
|
2493
|
+
*/
|
|
2494
|
+
async fileCreate(file, purpose, options) {
|
|
2495
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.fileCreate(file, purpose, options);
|
|
2496
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2497
|
+
},
|
|
2498
|
+
/**
|
|
2499
|
+
*
|
|
2500
|
+
* @summary Delete a file.
|
|
2501
|
+
* @param {string} fileId The ID of the file to use for this request
|
|
2502
|
+
* @param {*} [options] Override http request option.
|
|
2503
|
+
* @throws {RequiredError}
|
|
2504
|
+
*/
|
|
2505
|
+
async fileDelete(fileId, options) {
|
|
2506
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.fileDelete(fileId, options);
|
|
2507
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2508
|
+
},
|
|
2509
|
+
/**
|
|
2510
|
+
*
|
|
2511
|
+
* @summary Returns the contents of the specified file
|
|
2512
|
+
* @param {string} fileId The ID of the file to use for this request
|
|
2513
|
+
* @param {*} [options] Override http request option.
|
|
2514
|
+
* @throws {RequiredError}
|
|
2515
|
+
*/
|
|
2516
|
+
async fileDownload(fileId, options) {
|
|
2517
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.fileDownload(fileId, options);
|
|
2518
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2519
|
+
},
|
|
2520
|
+
/**
|
|
2521
|
+
*
|
|
2522
|
+
* @summary Returns a list of files that belong to the user\'s organization.
|
|
2523
|
+
* @param {*} [options] Override http request option.
|
|
2524
|
+
* @throws {RequiredError}
|
|
2525
|
+
*/
|
|
2526
|
+
async files(options) {
|
|
2527
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.files(options);
|
|
2528
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2529
|
+
},
|
|
1926
2530
|
/**
|
|
1927
2531
|
* Generates a message in the agent\'s voice based on the state of the given conversation. This is useful for testing and debugging. The message will not be sent to the conversation, you must run .message() with the body of the generated message to send it to the conversation.
|
|
1928
2532
|
* @summary Generate a message from conversation
|
|
@@ -1948,19 +2552,19 @@ const Scout9ApiFp = function (configuration) {
|
|
|
1948
2552
|
/**
|
|
1949
2553
|
*
|
|
1950
2554
|
* @summary Get all messages from a conversation
|
|
2555
|
+
* @param {string} id id of entity to query
|
|
1951
2556
|
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
1952
|
-
* @param {Array<string>} [id]
|
|
1953
2557
|
* @param {*} [options] Override http request option.
|
|
1954
2558
|
* @throws {RequiredError}
|
|
1955
2559
|
*/
|
|
1956
|
-
async messages(
|
|
1957
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.messages(
|
|
2560
|
+
async messages(id, q, options) {
|
|
2561
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.messages(id, q, options);
|
|
1958
2562
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1959
2563
|
},
|
|
1960
2564
|
/**
|
|
1961
2565
|
*
|
|
1962
2566
|
* @summary Get the results of a bulk API operation
|
|
1963
|
-
* @param {string} id
|
|
2567
|
+
* @param {string} id id of entity to query
|
|
1964
2568
|
* @param {*} [options] Override http request option.
|
|
1965
2569
|
* @throws {RequiredError}
|
|
1966
2570
|
*/
|
|
@@ -1972,7 +2576,7 @@ const Scout9ApiFp = function (configuration) {
|
|
|
1972
2576
|
*
|
|
1973
2577
|
* @summary Gets all or specific set of bulk API operations
|
|
1974
2578
|
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
1975
|
-
* @param {Array<string>} [id]
|
|
2579
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
1976
2580
|
* @param {*} [options] Override http request option.
|
|
1977
2581
|
* @throws {RequiredError}
|
|
1978
2582
|
*/
|
|
@@ -1987,14 +2591,14 @@ const Scout9ApiFp = function (configuration) {
|
|
|
1987
2591
|
* @param {*} [options] Override http request option.
|
|
1988
2592
|
* @throws {RequiredError}
|
|
1989
2593
|
*/
|
|
1990
|
-
async
|
|
1991
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2594
|
+
async scheduleConversation(scheduleCreateRequest, options) {
|
|
2595
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.scheduleConversation(scheduleCreateRequest, options);
|
|
1992
2596
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1993
2597
|
},
|
|
1994
2598
|
/**
|
|
1995
2599
|
*
|
|
1996
2600
|
* @summary Deletes a schedule
|
|
1997
|
-
* @param {string} id
|
|
2601
|
+
* @param {string} id id of entity to query
|
|
1998
2602
|
* @param {*} [options] Override http request option.
|
|
1999
2603
|
* @throws {RequiredError}
|
|
2000
2604
|
*/
|
|
@@ -2016,7 +2620,7 @@ const Scout9ApiFp = function (configuration) {
|
|
|
2016
2620
|
/**
|
|
2017
2621
|
*
|
|
2018
2622
|
* @summary Deletes and cancels a schedule group
|
|
2019
|
-
* @param {string} id
|
|
2623
|
+
* @param {string} id id of entity to query
|
|
2020
2624
|
* @param {*} [options] Override http request option.
|
|
2021
2625
|
* @throws {RequiredError}
|
|
2022
2626
|
*/
|
|
@@ -2027,7 +2631,7 @@ const Scout9ApiFp = function (configuration) {
|
|
|
2027
2631
|
/**
|
|
2028
2632
|
*
|
|
2029
2633
|
* @summary Gets a schedule group
|
|
2030
|
-
* @param {string} id
|
|
2634
|
+
* @param {string} id id of entity to query
|
|
2031
2635
|
* @param {*} [options] Override http request option.
|
|
2032
2636
|
* @throws {RequiredError}
|
|
2033
2637
|
*/
|
|
@@ -2049,7 +2653,7 @@ const Scout9ApiFp = function (configuration) {
|
|
|
2049
2653
|
/**
|
|
2050
2654
|
*
|
|
2051
2655
|
* @summary Gets a schedule
|
|
2052
|
-
* @param {string} id
|
|
2656
|
+
* @param {string} id id of entity to query
|
|
2053
2657
|
* @param {*} [options] Override http request option.
|
|
2054
2658
|
* @throws {RequiredError}
|
|
2055
2659
|
*/
|
|
@@ -2071,7 +2675,7 @@ const Scout9ApiFp = function (configuration) {
|
|
|
2071
2675
|
/**
|
|
2072
2676
|
*
|
|
2073
2677
|
* @summary Gets a workflow
|
|
2074
|
-
* @param {string} id
|
|
2678
|
+
* @param {string} id id of entity to query
|
|
2075
2679
|
* @param {*} [options] Override http request option.
|
|
2076
2680
|
* @throws {RequiredError}
|
|
2077
2681
|
*/
|
|
@@ -2093,7 +2697,7 @@ const Scout9ApiFp = function (configuration) {
|
|
|
2093
2697
|
/**
|
|
2094
2698
|
*
|
|
2095
2699
|
* @summary Deletes a workflow
|
|
2096
|
-
* @param {string} id
|
|
2700
|
+
* @param {string} id id of entity to query
|
|
2097
2701
|
* @param {*} [options] Override http request option.
|
|
2098
2702
|
* @throws {RequiredError}
|
|
2099
2703
|
*/
|
|
@@ -2116,7 +2720,7 @@ const Scout9ApiFp = function (configuration) {
|
|
|
2116
2720
|
*
|
|
2117
2721
|
* @summary Gets all or specific set of workflows
|
|
2118
2722
|
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
2119
|
-
* @param {Array<string>} [id]
|
|
2723
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
2120
2724
|
* @param {*} [options] Override http request option.
|
|
2121
2725
|
* @throws {RequiredError}
|
|
2122
2726
|
*/
|
|
@@ -2138,7 +2742,7 @@ const Scout9ApiFp = function (configuration) {
|
|
|
2138
2742
|
/**
|
|
2139
2743
|
*
|
|
2140
2744
|
* @summary Deletes multiple workflows
|
|
2141
|
-
* @param {Array<string>} [id]
|
|
2745
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
2142
2746
|
* @param {*} [options] Override http request option.
|
|
2143
2747
|
* @throws {RequiredError}
|
|
2144
2748
|
*/
|
|
@@ -2159,18 +2763,18 @@ const Scout9ApiFp = function (configuration) {
|
|
|
2159
2763
|
},
|
|
2160
2764
|
};
|
|
2161
2765
|
};
|
|
2162
|
-
exports.
|
|
2766
|
+
exports.PocketScoutApiFp = PocketScoutApiFp;
|
|
2163
2767
|
/**
|
|
2164
|
-
*
|
|
2768
|
+
* PocketScoutApi - factory interface
|
|
2165
2769
|
* @export
|
|
2166
2770
|
*/
|
|
2167
|
-
const
|
|
2168
|
-
const localVarFp = (0, exports.
|
|
2771
|
+
const PocketScoutApiFactory = function (configuration, basePath, axios) {
|
|
2772
|
+
const localVarFp = (0, exports.PocketScoutApiFp)(configuration);
|
|
2169
2773
|
return {
|
|
2170
2774
|
/**
|
|
2171
2775
|
*
|
|
2172
2776
|
* @summary Gets a agent
|
|
2173
|
-
* @param {string} id
|
|
2777
|
+
* @param {string} id id of entity to query
|
|
2174
2778
|
* @param {*} [options] Override http request option.
|
|
2175
2779
|
* @throws {RequiredError}
|
|
2176
2780
|
*/
|
|
@@ -2179,23 +2783,23 @@ const Scout9ApiFactory = function (configuration, basePath, axios) {
|
|
|
2179
2783
|
},
|
|
2180
2784
|
/**
|
|
2181
2785
|
*
|
|
2182
|
-
* @summary
|
|
2183
|
-
* @param {
|
|
2786
|
+
* @summary Deletes a agent
|
|
2787
|
+
* @param {string} id id of entity to query
|
|
2184
2788
|
* @param {*} [options] Override http request option.
|
|
2185
2789
|
* @throws {RequiredError}
|
|
2186
2790
|
*/
|
|
2187
|
-
|
|
2188
|
-
return localVarFp.
|
|
2791
|
+
agentDelete(id, options) {
|
|
2792
|
+
return localVarFp.agentDelete(id, options).then((request) => request(axios, basePath));
|
|
2189
2793
|
},
|
|
2190
2794
|
/**
|
|
2191
2795
|
*
|
|
2192
|
-
* @summary
|
|
2193
|
-
* @param {
|
|
2796
|
+
* @summary Registers a new agent
|
|
2797
|
+
* @param {CreateAgentRequest} createAgentRequest
|
|
2194
2798
|
* @param {*} [options] Override http request option.
|
|
2195
2799
|
* @throws {RequiredError}
|
|
2196
2800
|
*/
|
|
2197
|
-
|
|
2198
|
-
return localVarFp.
|
|
2801
|
+
agentRegister(createAgentRequest, options) {
|
|
2802
|
+
return localVarFp.agentRegister(createAgentRequest, options).then((request) => request(axios, basePath));
|
|
2199
2803
|
},
|
|
2200
2804
|
/**
|
|
2201
2805
|
*
|
|
@@ -2211,7 +2815,7 @@ const Scout9ApiFactory = function (configuration, basePath, axios) {
|
|
|
2211
2815
|
*
|
|
2212
2816
|
* @summary Gets all or specific set of agents
|
|
2213
2817
|
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
2214
|
-
* @param {Array<string>} [id]
|
|
2818
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
2215
2819
|
* @param {*} [options] Override http request option.
|
|
2216
2820
|
* @throws {RequiredError}
|
|
2217
2821
|
*/
|
|
@@ -2231,7 +2835,7 @@ const Scout9ApiFactory = function (configuration, basePath, axios) {
|
|
|
2231
2835
|
/**
|
|
2232
2836
|
*
|
|
2233
2837
|
* @summary Deletes multiple agents
|
|
2234
|
-
* @param {Array<string>} [id]
|
|
2838
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
2235
2839
|
* @param {*} [options] Override http request option.
|
|
2236
2840
|
* @throws {RequiredError}
|
|
2237
2841
|
*/
|
|
@@ -2251,7 +2855,7 @@ const Scout9ApiFactory = function (configuration, basePath, axios) {
|
|
|
2251
2855
|
/**
|
|
2252
2856
|
*
|
|
2253
2857
|
* @summary Gets a context
|
|
2254
|
-
* @param {string} id
|
|
2858
|
+
* @param {string} id id of entity to query
|
|
2255
2859
|
* @param {*} [options] Override http request option.
|
|
2256
2860
|
* @throws {RequiredError}
|
|
2257
2861
|
*/
|
|
@@ -2271,7 +2875,7 @@ const Scout9ApiFactory = function (configuration, basePath, axios) {
|
|
|
2271
2875
|
/**
|
|
2272
2876
|
*
|
|
2273
2877
|
* @summary Deletes a schedule
|
|
2274
|
-
* @param {string} id
|
|
2878
|
+
* @param {string} id id of entity to query
|
|
2275
2879
|
* @param {*} [options] Override http request option.
|
|
2276
2880
|
* @throws {RequiredError}
|
|
2277
2881
|
*/
|
|
@@ -2292,7 +2896,7 @@ const Scout9ApiFactory = function (configuration, basePath, axios) {
|
|
|
2292
2896
|
*
|
|
2293
2897
|
* @summary Gets all or specific set of contexts
|
|
2294
2898
|
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
2295
|
-
* @param {Array<string>} [id]
|
|
2899
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
2296
2900
|
* @param {*} [options] Override http request option.
|
|
2297
2901
|
* @throws {RequiredError}
|
|
2298
2902
|
*/
|
|
@@ -2312,7 +2916,7 @@ const Scout9ApiFactory = function (configuration, basePath, axios) {
|
|
|
2312
2916
|
/**
|
|
2313
2917
|
*
|
|
2314
2918
|
* @summary Deletes multiple contexts
|
|
2315
|
-
* @param {Array<string>} [id]
|
|
2919
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
2316
2920
|
* @param {*} [options] Override http request option.
|
|
2317
2921
|
* @throws {RequiredError}
|
|
2318
2922
|
*/
|
|
@@ -2332,7 +2936,7 @@ const Scout9ApiFactory = function (configuration, basePath, axios) {
|
|
|
2332
2936
|
/**
|
|
2333
2937
|
*
|
|
2334
2938
|
* @summary Gets a conversation
|
|
2335
|
-
* @param {string} id
|
|
2939
|
+
* @param {string} id id of entity to query
|
|
2336
2940
|
* @param {*} [options] Override http request option.
|
|
2337
2941
|
* @throws {RequiredError}
|
|
2338
2942
|
*/
|
|
@@ -2352,7 +2956,7 @@ const Scout9ApiFactory = function (configuration, basePath, axios) {
|
|
|
2352
2956
|
/**
|
|
2353
2957
|
*
|
|
2354
2958
|
* @summary Deletes a schedule
|
|
2355
|
-
* @param {string} id
|
|
2959
|
+
* @param {string} id id of entity to query
|
|
2356
2960
|
* @param {*} [options] Override http request option.
|
|
2357
2961
|
* @throws {RequiredError}
|
|
2358
2962
|
*/
|
|
@@ -2372,7 +2976,7 @@ const Scout9ApiFactory = function (configuration, basePath, axios) {
|
|
|
2372
2976
|
/**
|
|
2373
2977
|
*
|
|
2374
2978
|
* @summary Gets a customer
|
|
2375
|
-
* @param {string} id
|
|
2979
|
+
* @param {string} id id of entity to query
|
|
2376
2980
|
* @param {*} [options] Override http request option.
|
|
2377
2981
|
* @throws {RequiredError}
|
|
2378
2982
|
*/
|
|
@@ -2392,13 +2996,94 @@ const Scout9ApiFactory = function (configuration, basePath, axios) {
|
|
|
2392
2996
|
/**
|
|
2393
2997
|
*
|
|
2394
2998
|
* @summary Deletes a customer
|
|
2395
|
-
* @param {string} id
|
|
2999
|
+
* @param {string} id id of entity to query
|
|
2396
3000
|
* @param {*} [options] Override http request option.
|
|
2397
3001
|
* @throws {RequiredError}
|
|
2398
3002
|
*/
|
|
2399
3003
|
customerDelete(id, options) {
|
|
2400
3004
|
return localVarFp.customerDelete(id, options).then((request) => request(axios, basePath));
|
|
2401
3005
|
},
|
|
3006
|
+
/**
|
|
3007
|
+
*
|
|
3008
|
+
* @summary Gets a customer group
|
|
3009
|
+
* @param {string} id id of entity to query
|
|
3010
|
+
* @param {*} [options] Override http request option.
|
|
3011
|
+
* @throws {RequiredError}
|
|
3012
|
+
*/
|
|
3013
|
+
customerGroup(id, options) {
|
|
3014
|
+
return localVarFp.customerGroup(id, options).then((request) => request(axios, basePath));
|
|
3015
|
+
},
|
|
3016
|
+
/**
|
|
3017
|
+
*
|
|
3018
|
+
* @summary Creates a new customer group
|
|
3019
|
+
* @param {CreateCustomerGroupRequest} createCustomerGroupRequest
|
|
3020
|
+
* @param {*} [options] Override http request option.
|
|
3021
|
+
* @throws {RequiredError}
|
|
3022
|
+
*/
|
|
3023
|
+
customerGroupCreate(createCustomerGroupRequest, options) {
|
|
3024
|
+
return localVarFp.customerGroupCreate(createCustomerGroupRequest, options).then((request) => request(axios, basePath));
|
|
3025
|
+
},
|
|
3026
|
+
/**
|
|
3027
|
+
*
|
|
3028
|
+
* @summary Deletes a customer group
|
|
3029
|
+
* @param {string} id id of entity to query
|
|
3030
|
+
* @param {*} [options] Override http request option.
|
|
3031
|
+
* @throws {RequiredError}
|
|
3032
|
+
*/
|
|
3033
|
+
customerGroupDelete(id, options) {
|
|
3034
|
+
return localVarFp.customerGroupDelete(id, options).then((request) => request(axios, basePath));
|
|
3035
|
+
},
|
|
3036
|
+
/**
|
|
3037
|
+
*
|
|
3038
|
+
* @summary Updates a customer group
|
|
3039
|
+
* @param {UpdateCustomerGroupRequest} updateCustomerGroupRequest
|
|
3040
|
+
* @param {*} [options] Override http request option.
|
|
3041
|
+
* @throws {RequiredError}
|
|
3042
|
+
*/
|
|
3043
|
+
customerGroupUpdate(updateCustomerGroupRequest, options) {
|
|
3044
|
+
return localVarFp.customerGroupUpdate(updateCustomerGroupRequest, options).then((request) => request(axios, basePath));
|
|
3045
|
+
},
|
|
3046
|
+
/**
|
|
3047
|
+
*
|
|
3048
|
+
* @summary Gets all or specific set of customer groups
|
|
3049
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
3050
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
3051
|
+
* @param {*} [options] Override http request option.
|
|
3052
|
+
* @throws {RequiredError}
|
|
3053
|
+
*/
|
|
3054
|
+
customerGroups(q, id, options) {
|
|
3055
|
+
return localVarFp.customerGroups(q, id, options).then((request) => request(axios, basePath));
|
|
3056
|
+
},
|
|
3057
|
+
/**
|
|
3058
|
+
*
|
|
3059
|
+
* @summary Creates new customer groups
|
|
3060
|
+
* @param {CreateCustomerGroupsRequest} createCustomerGroupsRequest
|
|
3061
|
+
* @param {*} [options] Override http request option.
|
|
3062
|
+
* @throws {RequiredError}
|
|
3063
|
+
*/
|
|
3064
|
+
customerGroupsCreate(createCustomerGroupsRequest, options) {
|
|
3065
|
+
return localVarFp.customerGroupsCreate(createCustomerGroupsRequest, options).then((request) => request(axios, basePath));
|
|
3066
|
+
},
|
|
3067
|
+
/**
|
|
3068
|
+
*
|
|
3069
|
+
* @summary Deletes multiple customer groups
|
|
3070
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
3071
|
+
* @param {*} [options] Override http request option.
|
|
3072
|
+
* @throws {RequiredError}
|
|
3073
|
+
*/
|
|
3074
|
+
customerGroupsDelete(id, options) {
|
|
3075
|
+
return localVarFp.customerGroupsDelete(id, options).then((request) => request(axios, basePath));
|
|
3076
|
+
},
|
|
3077
|
+
/**
|
|
3078
|
+
*
|
|
3079
|
+
* @summary Updates multiple customer groups
|
|
3080
|
+
* @param {UpdateCustomerGroupsRequest} updateCustomerGroupsRequest
|
|
3081
|
+
* @param {*} [options] Override http request option.
|
|
3082
|
+
* @throws {RequiredError}
|
|
3083
|
+
*/
|
|
3084
|
+
customerGroupsUpdate(updateCustomerGroupsRequest, options) {
|
|
3085
|
+
return localVarFp.customerGroupsUpdate(updateCustomerGroupsRequest, options).then((request) => request(axios, basePath));
|
|
3086
|
+
},
|
|
2402
3087
|
/**
|
|
2403
3088
|
*
|
|
2404
3089
|
* @summary Updates a customer
|
|
@@ -2413,7 +3098,7 @@ const Scout9ApiFactory = function (configuration, basePath, axios) {
|
|
|
2413
3098
|
*
|
|
2414
3099
|
* @summary Gets all or specific set of customers
|
|
2415
3100
|
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
2416
|
-
* @param {Array<string>} [id]
|
|
3101
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
2417
3102
|
* @param {*} [options] Override http request option.
|
|
2418
3103
|
* @throws {RequiredError}
|
|
2419
3104
|
*/
|
|
@@ -2433,7 +3118,7 @@ const Scout9ApiFactory = function (configuration, basePath, axios) {
|
|
|
2433
3118
|
/**
|
|
2434
3119
|
*
|
|
2435
3120
|
* @summary Deletes multiple customers
|
|
2436
|
-
* @param {Array<string>} [id]
|
|
3121
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
2437
3122
|
* @param {*} [options] Override http request option.
|
|
2438
3123
|
* @throws {RequiredError}
|
|
2439
3124
|
*/
|
|
@@ -2450,6 +3135,56 @@ const Scout9ApiFactory = function (configuration, basePath, axios) {
|
|
|
2450
3135
|
customersUpdate(updateCustomerRequest, options) {
|
|
2451
3136
|
return localVarFp.customersUpdate(updateCustomerRequest, options).then((request) => request(axios, basePath));
|
|
2452
3137
|
},
|
|
3138
|
+
/**
|
|
3139
|
+
*
|
|
3140
|
+
* @summary Returns information about a specific file.
|
|
3141
|
+
* @param {string} fileId The ID of the file to use for this request
|
|
3142
|
+
* @param {*} [options] Override http request option.
|
|
3143
|
+
* @throws {RequiredError}
|
|
3144
|
+
*/
|
|
3145
|
+
file(fileId, options) {
|
|
3146
|
+
return localVarFp.file(fileId, options).then((request) => request(axios, basePath));
|
|
3147
|
+
},
|
|
3148
|
+
/**
|
|
3149
|
+
*
|
|
3150
|
+
* @summary Upload a file that contains document(s) to be used across various endpoints/features. Currently, the size of all the files uploaded by one organization can be up to 1 GB. Please contact us if you need to increase the storage limit.
|
|
3151
|
+
* @param {File} file
|
|
3152
|
+
* @param {string} [purpose] The intended purpose of the uploaded documents. This allows us to validate the format of the uploaded file.
|
|
3153
|
+
* @param {*} [options] Override http request option.
|
|
3154
|
+
* @throws {RequiredError}
|
|
3155
|
+
*/
|
|
3156
|
+
fileCreate(file, purpose, options) {
|
|
3157
|
+
return localVarFp.fileCreate(file, purpose, options).then((request) => request(axios, basePath));
|
|
3158
|
+
},
|
|
3159
|
+
/**
|
|
3160
|
+
*
|
|
3161
|
+
* @summary Delete a file.
|
|
3162
|
+
* @param {string} fileId The ID of the file to use for this request
|
|
3163
|
+
* @param {*} [options] Override http request option.
|
|
3164
|
+
* @throws {RequiredError}
|
|
3165
|
+
*/
|
|
3166
|
+
fileDelete(fileId, options) {
|
|
3167
|
+
return localVarFp.fileDelete(fileId, options).then((request) => request(axios, basePath));
|
|
3168
|
+
},
|
|
3169
|
+
/**
|
|
3170
|
+
*
|
|
3171
|
+
* @summary Returns the contents of the specified file
|
|
3172
|
+
* @param {string} fileId The ID of the file to use for this request
|
|
3173
|
+
* @param {*} [options] Override http request option.
|
|
3174
|
+
* @throws {RequiredError}
|
|
3175
|
+
*/
|
|
3176
|
+
fileDownload(fileId, options) {
|
|
3177
|
+
return localVarFp.fileDownload(fileId, options).then((request) => request(axios, basePath));
|
|
3178
|
+
},
|
|
3179
|
+
/**
|
|
3180
|
+
*
|
|
3181
|
+
* @summary Returns a list of files that belong to the user\'s organization.
|
|
3182
|
+
* @param {*} [options] Override http request option.
|
|
3183
|
+
* @throws {RequiredError}
|
|
3184
|
+
*/
|
|
3185
|
+
files(options) {
|
|
3186
|
+
return localVarFp.files(options).then((request) => request(axios, basePath));
|
|
3187
|
+
},
|
|
2453
3188
|
/**
|
|
2454
3189
|
* Generates a message in the agent\'s voice based on the state of the given conversation. This is useful for testing and debugging. The message will not be sent to the conversation, you must run .message() with the body of the generated message to send it to the conversation.
|
|
2455
3190
|
* @summary Generate a message from conversation
|
|
@@ -2473,18 +3208,18 @@ const Scout9ApiFactory = function (configuration, basePath, axios) {
|
|
|
2473
3208
|
/**
|
|
2474
3209
|
*
|
|
2475
3210
|
* @summary Get all messages from a conversation
|
|
3211
|
+
* @param {string} id id of entity to query
|
|
2476
3212
|
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
2477
|
-
* @param {Array<string>} [id]
|
|
2478
3213
|
* @param {*} [options] Override http request option.
|
|
2479
3214
|
* @throws {RequiredError}
|
|
2480
3215
|
*/
|
|
2481
|
-
messages(
|
|
2482
|
-
return localVarFp.messages(
|
|
3216
|
+
messages(id, q, options) {
|
|
3217
|
+
return localVarFp.messages(id, q, options).then((request) => request(axios, basePath));
|
|
2483
3218
|
},
|
|
2484
3219
|
/**
|
|
2485
3220
|
*
|
|
2486
3221
|
* @summary Get the results of a bulk API operation
|
|
2487
|
-
* @param {string} id
|
|
3222
|
+
* @param {string} id id of entity to query
|
|
2488
3223
|
* @param {*} [options] Override http request option.
|
|
2489
3224
|
* @throws {RequiredError}
|
|
2490
3225
|
*/
|
|
@@ -2495,7 +3230,7 @@ const Scout9ApiFactory = function (configuration, basePath, axios) {
|
|
|
2495
3230
|
*
|
|
2496
3231
|
* @summary Gets all or specific set of bulk API operations
|
|
2497
3232
|
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
2498
|
-
* @param {Array<string>} [id]
|
|
3233
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
2499
3234
|
* @param {*} [options] Override http request option.
|
|
2500
3235
|
* @throws {RequiredError}
|
|
2501
3236
|
*/
|
|
@@ -2509,13 +3244,13 @@ const Scout9ApiFactory = function (configuration, basePath, axios) {
|
|
|
2509
3244
|
* @param {*} [options] Override http request option.
|
|
2510
3245
|
* @throws {RequiredError}
|
|
2511
3246
|
*/
|
|
2512
|
-
|
|
2513
|
-
return localVarFp.
|
|
3247
|
+
scheduleConversation(scheduleCreateRequest, options) {
|
|
3248
|
+
return localVarFp.scheduleConversation(scheduleCreateRequest, options).then((request) => request(axios, basePath));
|
|
2514
3249
|
},
|
|
2515
3250
|
/**
|
|
2516
3251
|
*
|
|
2517
3252
|
* @summary Deletes a schedule
|
|
2518
|
-
* @param {string} id
|
|
3253
|
+
* @param {string} id id of entity to query
|
|
2519
3254
|
* @param {*} [options] Override http request option.
|
|
2520
3255
|
* @throws {RequiredError}
|
|
2521
3256
|
*/
|
|
@@ -2535,7 +3270,7 @@ const Scout9ApiFactory = function (configuration, basePath, axios) {
|
|
|
2535
3270
|
/**
|
|
2536
3271
|
*
|
|
2537
3272
|
* @summary Deletes and cancels a schedule group
|
|
2538
|
-
* @param {string} id
|
|
3273
|
+
* @param {string} id id of entity to query
|
|
2539
3274
|
* @param {*} [options] Override http request option.
|
|
2540
3275
|
* @throws {RequiredError}
|
|
2541
3276
|
*/
|
|
@@ -2545,7 +3280,7 @@ const Scout9ApiFactory = function (configuration, basePath, axios) {
|
|
|
2545
3280
|
/**
|
|
2546
3281
|
*
|
|
2547
3282
|
* @summary Gets a schedule group
|
|
2548
|
-
* @param {string} id
|
|
3283
|
+
* @param {string} id id of entity to query
|
|
2549
3284
|
* @param {*} [options] Override http request option.
|
|
2550
3285
|
* @throws {RequiredError}
|
|
2551
3286
|
*/
|
|
@@ -2565,7 +3300,7 @@ const Scout9ApiFactory = function (configuration, basePath, axios) {
|
|
|
2565
3300
|
/**
|
|
2566
3301
|
*
|
|
2567
3302
|
* @summary Gets a schedule
|
|
2568
|
-
* @param {string} id
|
|
3303
|
+
* @param {string} id id of entity to query
|
|
2569
3304
|
* @param {*} [options] Override http request option.
|
|
2570
3305
|
* @throws {RequiredError}
|
|
2571
3306
|
*/
|
|
@@ -2585,7 +3320,7 @@ const Scout9ApiFactory = function (configuration, basePath, axios) {
|
|
|
2585
3320
|
/**
|
|
2586
3321
|
*
|
|
2587
3322
|
* @summary Gets a workflow
|
|
2588
|
-
* @param {string} id
|
|
3323
|
+
* @param {string} id id of entity to query
|
|
2589
3324
|
* @param {*} [options] Override http request option.
|
|
2590
3325
|
* @throws {RequiredError}
|
|
2591
3326
|
*/
|
|
@@ -2605,7 +3340,7 @@ const Scout9ApiFactory = function (configuration, basePath, axios) {
|
|
|
2605
3340
|
/**
|
|
2606
3341
|
*
|
|
2607
3342
|
* @summary Deletes a workflow
|
|
2608
|
-
* @param {string} id
|
|
3343
|
+
* @param {string} id id of entity to query
|
|
2609
3344
|
* @param {*} [options] Override http request option.
|
|
2610
3345
|
* @throws {RequiredError}
|
|
2611
3346
|
*/
|
|
@@ -2626,7 +3361,7 @@ const Scout9ApiFactory = function (configuration, basePath, axios) {
|
|
|
2626
3361
|
*
|
|
2627
3362
|
* @summary Gets all or specific set of workflows
|
|
2628
3363
|
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
2629
|
-
* @param {Array<string>} [id]
|
|
3364
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
2630
3365
|
* @param {*} [options] Override http request option.
|
|
2631
3366
|
* @throws {RequiredError}
|
|
2632
3367
|
*/
|
|
@@ -2646,7 +3381,7 @@ const Scout9ApiFactory = function (configuration, basePath, axios) {
|
|
|
2646
3381
|
/**
|
|
2647
3382
|
*
|
|
2648
3383
|
* @summary Deletes multiple workflows
|
|
2649
|
-
* @param {Array<string>} [id]
|
|
3384
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
2650
3385
|
* @param {*} [options] Override http request option.
|
|
2651
3386
|
* @throws {RequiredError}
|
|
2652
3387
|
*/
|
|
@@ -2665,46 +3400,46 @@ const Scout9ApiFactory = function (configuration, basePath, axios) {
|
|
|
2665
3400
|
},
|
|
2666
3401
|
};
|
|
2667
3402
|
};
|
|
2668
|
-
exports.
|
|
3403
|
+
exports.PocketScoutApiFactory = PocketScoutApiFactory;
|
|
2669
3404
|
/**
|
|
2670
|
-
*
|
|
3405
|
+
* PocketScoutApi - object-oriented interface
|
|
2671
3406
|
* @export
|
|
2672
|
-
* @class
|
|
3407
|
+
* @class PocketScoutApi
|
|
2673
3408
|
* @extends {BaseAPI}
|
|
2674
3409
|
*/
|
|
2675
|
-
class
|
|
3410
|
+
class PocketScoutApi extends base_1.BaseAPI {
|
|
2676
3411
|
/**
|
|
2677
3412
|
*
|
|
2678
3413
|
* @summary Gets a agent
|
|
2679
|
-
* @param {string} id
|
|
3414
|
+
* @param {string} id id of entity to query
|
|
2680
3415
|
* @param {*} [options] Override http request option.
|
|
2681
3416
|
* @throws {RequiredError}
|
|
2682
|
-
* @memberof
|
|
3417
|
+
* @memberof PocketScoutApi
|
|
2683
3418
|
*/
|
|
2684
3419
|
agent(id, options) {
|
|
2685
|
-
return (0, exports.
|
|
3420
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).agent(id, options).then((request) => request(this.axios, this.basePath));
|
|
2686
3421
|
}
|
|
2687
3422
|
/**
|
|
2688
3423
|
*
|
|
2689
|
-
* @summary
|
|
2690
|
-
* @param {
|
|
3424
|
+
* @summary Deletes a agent
|
|
3425
|
+
* @param {string} id id of entity to query
|
|
2691
3426
|
* @param {*} [options] Override http request option.
|
|
2692
3427
|
* @throws {RequiredError}
|
|
2693
|
-
* @memberof
|
|
3428
|
+
* @memberof PocketScoutApi
|
|
2694
3429
|
*/
|
|
2695
|
-
|
|
2696
|
-
return (0, exports.
|
|
3430
|
+
agentDelete(id, options) {
|
|
3431
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).agentDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
2697
3432
|
}
|
|
2698
3433
|
/**
|
|
2699
3434
|
*
|
|
2700
|
-
* @summary
|
|
2701
|
-
* @param {
|
|
3435
|
+
* @summary Registers a new agent
|
|
3436
|
+
* @param {CreateAgentRequest} createAgentRequest
|
|
2702
3437
|
* @param {*} [options] Override http request option.
|
|
2703
3438
|
* @throws {RequiredError}
|
|
2704
|
-
* @memberof
|
|
3439
|
+
* @memberof PocketScoutApi
|
|
2705
3440
|
*/
|
|
2706
|
-
|
|
2707
|
-
return (0, exports.
|
|
3441
|
+
agentRegister(createAgentRequest, options) {
|
|
3442
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).agentRegister(createAgentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2708
3443
|
}
|
|
2709
3444
|
/**
|
|
2710
3445
|
*
|
|
@@ -2712,22 +3447,22 @@ class Scout9Api extends base_1.BaseAPI {
|
|
|
2712
3447
|
* @param {UpdateAgentRequest} updateAgentRequest
|
|
2713
3448
|
* @param {*} [options] Override http request option.
|
|
2714
3449
|
* @throws {RequiredError}
|
|
2715
|
-
* @memberof
|
|
3450
|
+
* @memberof PocketScoutApi
|
|
2716
3451
|
*/
|
|
2717
3452
|
agentUpdate(updateAgentRequest, options) {
|
|
2718
|
-
return (0, exports.
|
|
3453
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).agentUpdate(updateAgentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2719
3454
|
}
|
|
2720
3455
|
/**
|
|
2721
3456
|
*
|
|
2722
3457
|
* @summary Gets all or specific set of agents
|
|
2723
3458
|
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
2724
|
-
* @param {Array<string>} [id]
|
|
3459
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
2725
3460
|
* @param {*} [options] Override http request option.
|
|
2726
3461
|
* @throws {RequiredError}
|
|
2727
|
-
* @memberof
|
|
3462
|
+
* @memberof PocketScoutApi
|
|
2728
3463
|
*/
|
|
2729
3464
|
agents(q, id, options) {
|
|
2730
|
-
return (0, exports.
|
|
3465
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).agents(q, id, options).then((request) => request(this.axios, this.basePath));
|
|
2731
3466
|
}
|
|
2732
3467
|
/**
|
|
2733
3468
|
*
|
|
@@ -2735,21 +3470,21 @@ class Scout9Api extends base_1.BaseAPI {
|
|
|
2735
3470
|
* @param {CreateAgentsRequest} createAgentsRequest
|
|
2736
3471
|
* @param {*} [options] Override http request option.
|
|
2737
3472
|
* @throws {RequiredError}
|
|
2738
|
-
* @memberof
|
|
3473
|
+
* @memberof PocketScoutApi
|
|
2739
3474
|
*/
|
|
2740
3475
|
agentsCreate(createAgentsRequest, options) {
|
|
2741
|
-
return (0, exports.
|
|
3476
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).agentsCreate(createAgentsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2742
3477
|
}
|
|
2743
3478
|
/**
|
|
2744
3479
|
*
|
|
2745
3480
|
* @summary Deletes multiple agents
|
|
2746
|
-
* @param {Array<string>} [id]
|
|
3481
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
2747
3482
|
* @param {*} [options] Override http request option.
|
|
2748
3483
|
* @throws {RequiredError}
|
|
2749
|
-
* @memberof
|
|
3484
|
+
* @memberof PocketScoutApi
|
|
2750
3485
|
*/
|
|
2751
3486
|
agentsDelete(id, options) {
|
|
2752
|
-
return (0, exports.
|
|
3487
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).agentsDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
2753
3488
|
}
|
|
2754
3489
|
/**
|
|
2755
3490
|
*
|
|
@@ -2757,21 +3492,21 @@ class Scout9Api extends base_1.BaseAPI {
|
|
|
2757
3492
|
* @param {UpdateAgentsRequest} updateAgentsRequest
|
|
2758
3493
|
* @param {*} [options] Override http request option.
|
|
2759
3494
|
* @throws {RequiredError}
|
|
2760
|
-
* @memberof
|
|
3495
|
+
* @memberof PocketScoutApi
|
|
2761
3496
|
*/
|
|
2762
3497
|
agentsUpdate(updateAgentsRequest, options) {
|
|
2763
|
-
return (0, exports.
|
|
3498
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).agentsUpdate(updateAgentsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2764
3499
|
}
|
|
2765
3500
|
/**
|
|
2766
3501
|
*
|
|
2767
3502
|
* @summary Gets a context
|
|
2768
|
-
* @param {string} id
|
|
3503
|
+
* @param {string} id id of entity to query
|
|
2769
3504
|
* @param {*} [options] Override http request option.
|
|
2770
3505
|
* @throws {RequiredError}
|
|
2771
|
-
* @memberof
|
|
3506
|
+
* @memberof PocketScoutApi
|
|
2772
3507
|
*/
|
|
2773
3508
|
context(id, options) {
|
|
2774
|
-
return (0, exports.
|
|
3509
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).context(id, options).then((request) => request(this.axios, this.basePath));
|
|
2775
3510
|
}
|
|
2776
3511
|
/**
|
|
2777
3512
|
*
|
|
@@ -2779,21 +3514,21 @@ class Scout9Api extends base_1.BaseAPI {
|
|
|
2779
3514
|
* @param {CreateContextRequest} createContextRequest
|
|
2780
3515
|
* @param {*} [options] Override http request option.
|
|
2781
3516
|
* @throws {RequiredError}
|
|
2782
|
-
* @memberof
|
|
3517
|
+
* @memberof PocketScoutApi
|
|
2783
3518
|
*/
|
|
2784
3519
|
contextCreate(createContextRequest, options) {
|
|
2785
|
-
return (0, exports.
|
|
3520
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).contextCreate(createContextRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2786
3521
|
}
|
|
2787
3522
|
/**
|
|
2788
3523
|
*
|
|
2789
3524
|
* @summary Deletes a schedule
|
|
2790
|
-
* @param {string} id
|
|
3525
|
+
* @param {string} id id of entity to query
|
|
2791
3526
|
* @param {*} [options] Override http request option.
|
|
2792
3527
|
* @throws {RequiredError}
|
|
2793
|
-
* @memberof
|
|
3528
|
+
* @memberof PocketScoutApi
|
|
2794
3529
|
*/
|
|
2795
3530
|
contextDelete(id, options) {
|
|
2796
|
-
return (0, exports.
|
|
3531
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).contextDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
2797
3532
|
}
|
|
2798
3533
|
/**
|
|
2799
3534
|
*
|
|
@@ -2801,22 +3536,22 @@ class Scout9Api extends base_1.BaseAPI {
|
|
|
2801
3536
|
* @param {UpdateContextRequest} updateContextRequest
|
|
2802
3537
|
* @param {*} [options] Override http request option.
|
|
2803
3538
|
* @throws {RequiredError}
|
|
2804
|
-
* @memberof
|
|
3539
|
+
* @memberof PocketScoutApi
|
|
2805
3540
|
*/
|
|
2806
3541
|
contextUpdate(updateContextRequest, options) {
|
|
2807
|
-
return (0, exports.
|
|
3542
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).contextUpdate(updateContextRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2808
3543
|
}
|
|
2809
3544
|
/**
|
|
2810
3545
|
*
|
|
2811
3546
|
* @summary Gets all or specific set of contexts
|
|
2812
3547
|
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
2813
|
-
* @param {Array<string>} [id]
|
|
3548
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
2814
3549
|
* @param {*} [options] Override http request option.
|
|
2815
3550
|
* @throws {RequiredError}
|
|
2816
|
-
* @memberof
|
|
3551
|
+
* @memberof PocketScoutApi
|
|
2817
3552
|
*/
|
|
2818
3553
|
contexts(q, id, options) {
|
|
2819
|
-
return (0, exports.
|
|
3554
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).contexts(q, id, options).then((request) => request(this.axios, this.basePath));
|
|
2820
3555
|
}
|
|
2821
3556
|
/**
|
|
2822
3557
|
*
|
|
@@ -2824,21 +3559,21 @@ class Scout9Api extends base_1.BaseAPI {
|
|
|
2824
3559
|
* @param {CreateContextsRequest} createContextsRequest
|
|
2825
3560
|
* @param {*} [options] Override http request option.
|
|
2826
3561
|
* @throws {RequiredError}
|
|
2827
|
-
* @memberof
|
|
3562
|
+
* @memberof PocketScoutApi
|
|
2828
3563
|
*/
|
|
2829
3564
|
contextsCreate(createContextsRequest, options) {
|
|
2830
|
-
return (0, exports.
|
|
3565
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).contextsCreate(createContextsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2831
3566
|
}
|
|
2832
3567
|
/**
|
|
2833
3568
|
*
|
|
2834
3569
|
* @summary Deletes multiple contexts
|
|
2835
|
-
* @param {Array<string>} [id]
|
|
3570
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
2836
3571
|
* @param {*} [options] Override http request option.
|
|
2837
3572
|
* @throws {RequiredError}
|
|
2838
|
-
* @memberof
|
|
3573
|
+
* @memberof PocketScoutApi
|
|
2839
3574
|
*/
|
|
2840
3575
|
contextsDelete(id, options) {
|
|
2841
|
-
return (0, exports.
|
|
3576
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).contextsDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
2842
3577
|
}
|
|
2843
3578
|
/**
|
|
2844
3579
|
*
|
|
@@ -2846,21 +3581,21 @@ class Scout9Api extends base_1.BaseAPI {
|
|
|
2846
3581
|
* @param {UpdateContextRequest} updateContextRequest
|
|
2847
3582
|
* @param {*} [options] Override http request option.
|
|
2848
3583
|
* @throws {RequiredError}
|
|
2849
|
-
* @memberof
|
|
3584
|
+
* @memberof PocketScoutApi
|
|
2850
3585
|
*/
|
|
2851
3586
|
contextsUpdate(updateContextRequest, options) {
|
|
2852
|
-
return (0, exports.
|
|
3587
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).contextsUpdate(updateContextRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2853
3588
|
}
|
|
2854
3589
|
/**
|
|
2855
3590
|
*
|
|
2856
3591
|
* @summary Gets a conversation
|
|
2857
|
-
* @param {string} id
|
|
3592
|
+
* @param {string} id id of entity to query
|
|
2858
3593
|
* @param {*} [options] Override http request option.
|
|
2859
3594
|
* @throws {RequiredError}
|
|
2860
|
-
* @memberof
|
|
3595
|
+
* @memberof PocketScoutApi
|
|
2861
3596
|
*/
|
|
2862
3597
|
conversation(id, options) {
|
|
2863
|
-
return (0, exports.
|
|
3598
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).conversation(id, options).then((request) => request(this.axios, this.basePath));
|
|
2864
3599
|
}
|
|
2865
3600
|
/**
|
|
2866
3601
|
*
|
|
@@ -2868,21 +3603,21 @@ class Scout9Api extends base_1.BaseAPI {
|
|
|
2868
3603
|
* @param {ConversationCreateRequest} conversationCreateRequest
|
|
2869
3604
|
* @param {*} [options] Override http request option.
|
|
2870
3605
|
* @throws {RequiredError}
|
|
2871
|
-
* @memberof
|
|
3606
|
+
* @memberof PocketScoutApi
|
|
2872
3607
|
*/
|
|
2873
3608
|
conversationCreate(conversationCreateRequest, options) {
|
|
2874
|
-
return (0, exports.
|
|
3609
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).conversationCreate(conversationCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2875
3610
|
}
|
|
2876
3611
|
/**
|
|
2877
3612
|
*
|
|
2878
3613
|
* @summary Deletes a schedule
|
|
2879
|
-
* @param {string} id
|
|
3614
|
+
* @param {string} id id of entity to query
|
|
2880
3615
|
* @param {*} [options] Override http request option.
|
|
2881
3616
|
* @throws {RequiredError}
|
|
2882
|
-
* @memberof
|
|
3617
|
+
* @memberof PocketScoutApi
|
|
2883
3618
|
*/
|
|
2884
3619
|
conversationDelete(id, options) {
|
|
2885
|
-
return (0, exports.
|
|
3620
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).conversationDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
2886
3621
|
}
|
|
2887
3622
|
/**
|
|
2888
3623
|
*
|
|
@@ -2890,21 +3625,21 @@ class Scout9Api extends base_1.BaseAPI {
|
|
|
2890
3625
|
* @param {ConversationUpdateRequest} conversationUpdateRequest
|
|
2891
3626
|
* @param {*} [options] Override http request option.
|
|
2892
3627
|
* @throws {RequiredError}
|
|
2893
|
-
* @memberof
|
|
3628
|
+
* @memberof PocketScoutApi
|
|
2894
3629
|
*/
|
|
2895
3630
|
conversationUpdate(conversationUpdateRequest, options) {
|
|
2896
|
-
return (0, exports.
|
|
3631
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).conversationUpdate(conversationUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2897
3632
|
}
|
|
2898
3633
|
/**
|
|
2899
3634
|
*
|
|
2900
3635
|
* @summary Gets a customer
|
|
2901
|
-
* @param {string} id
|
|
3636
|
+
* @param {string} id id of entity to query
|
|
2902
3637
|
* @param {*} [options] Override http request option.
|
|
2903
3638
|
* @throws {RequiredError}
|
|
2904
|
-
* @memberof
|
|
3639
|
+
* @memberof PocketScoutApi
|
|
2905
3640
|
*/
|
|
2906
3641
|
customer(id, options) {
|
|
2907
|
-
return (0, exports.
|
|
3642
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).customer(id, options).then((request) => request(this.axios, this.basePath));
|
|
2908
3643
|
}
|
|
2909
3644
|
/**
|
|
2910
3645
|
*
|
|
@@ -2912,21 +3647,110 @@ class Scout9Api extends base_1.BaseAPI {
|
|
|
2912
3647
|
* @param {CreateCustomerRequest} createCustomerRequest
|
|
2913
3648
|
* @param {*} [options] Override http request option.
|
|
2914
3649
|
* @throws {RequiredError}
|
|
2915
|
-
* @memberof
|
|
3650
|
+
* @memberof PocketScoutApi
|
|
2916
3651
|
*/
|
|
2917
3652
|
customerCreate(createCustomerRequest, options) {
|
|
2918
|
-
return (0, exports.
|
|
3653
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).customerCreate(createCustomerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2919
3654
|
}
|
|
2920
3655
|
/**
|
|
2921
3656
|
*
|
|
2922
3657
|
* @summary Deletes a customer
|
|
2923
|
-
* @param {string} id
|
|
3658
|
+
* @param {string} id id of entity to query
|
|
2924
3659
|
* @param {*} [options] Override http request option.
|
|
2925
3660
|
* @throws {RequiredError}
|
|
2926
|
-
* @memberof
|
|
3661
|
+
* @memberof PocketScoutApi
|
|
2927
3662
|
*/
|
|
2928
3663
|
customerDelete(id, options) {
|
|
2929
|
-
return (0, exports.
|
|
3664
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).customerDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
3665
|
+
}
|
|
3666
|
+
/**
|
|
3667
|
+
*
|
|
3668
|
+
* @summary Gets a customer group
|
|
3669
|
+
* @param {string} id id of entity to query
|
|
3670
|
+
* @param {*} [options] Override http request option.
|
|
3671
|
+
* @throws {RequiredError}
|
|
3672
|
+
* @memberof PocketScoutApi
|
|
3673
|
+
*/
|
|
3674
|
+
customerGroup(id, options) {
|
|
3675
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).customerGroup(id, options).then((request) => request(this.axios, this.basePath));
|
|
3676
|
+
}
|
|
3677
|
+
/**
|
|
3678
|
+
*
|
|
3679
|
+
* @summary Creates a new customer group
|
|
3680
|
+
* @param {CreateCustomerGroupRequest} createCustomerGroupRequest
|
|
3681
|
+
* @param {*} [options] Override http request option.
|
|
3682
|
+
* @throws {RequiredError}
|
|
3683
|
+
* @memberof PocketScoutApi
|
|
3684
|
+
*/
|
|
3685
|
+
customerGroupCreate(createCustomerGroupRequest, options) {
|
|
3686
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).customerGroupCreate(createCustomerGroupRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3687
|
+
}
|
|
3688
|
+
/**
|
|
3689
|
+
*
|
|
3690
|
+
* @summary Deletes a customer group
|
|
3691
|
+
* @param {string} id id of entity to query
|
|
3692
|
+
* @param {*} [options] Override http request option.
|
|
3693
|
+
* @throws {RequiredError}
|
|
3694
|
+
* @memberof PocketScoutApi
|
|
3695
|
+
*/
|
|
3696
|
+
customerGroupDelete(id, options) {
|
|
3697
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).customerGroupDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
3698
|
+
}
|
|
3699
|
+
/**
|
|
3700
|
+
*
|
|
3701
|
+
* @summary Updates a customer group
|
|
3702
|
+
* @param {UpdateCustomerGroupRequest} updateCustomerGroupRequest
|
|
3703
|
+
* @param {*} [options] Override http request option.
|
|
3704
|
+
* @throws {RequiredError}
|
|
3705
|
+
* @memberof PocketScoutApi
|
|
3706
|
+
*/
|
|
3707
|
+
customerGroupUpdate(updateCustomerGroupRequest, options) {
|
|
3708
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).customerGroupUpdate(updateCustomerGroupRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3709
|
+
}
|
|
3710
|
+
/**
|
|
3711
|
+
*
|
|
3712
|
+
* @summary Gets all or specific set of customer groups
|
|
3713
|
+
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
3714
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
3715
|
+
* @param {*} [options] Override http request option.
|
|
3716
|
+
* @throws {RequiredError}
|
|
3717
|
+
* @memberof PocketScoutApi
|
|
3718
|
+
*/
|
|
3719
|
+
customerGroups(q, id, options) {
|
|
3720
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).customerGroups(q, id, options).then((request) => request(this.axios, this.basePath));
|
|
3721
|
+
}
|
|
3722
|
+
/**
|
|
3723
|
+
*
|
|
3724
|
+
* @summary Creates new customer groups
|
|
3725
|
+
* @param {CreateCustomerGroupsRequest} createCustomerGroupsRequest
|
|
3726
|
+
* @param {*} [options] Override http request option.
|
|
3727
|
+
* @throws {RequiredError}
|
|
3728
|
+
* @memberof PocketScoutApi
|
|
3729
|
+
*/
|
|
3730
|
+
customerGroupsCreate(createCustomerGroupsRequest, options) {
|
|
3731
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).customerGroupsCreate(createCustomerGroupsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3732
|
+
}
|
|
3733
|
+
/**
|
|
3734
|
+
*
|
|
3735
|
+
* @summary Deletes multiple customer groups
|
|
3736
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
3737
|
+
* @param {*} [options] Override http request option.
|
|
3738
|
+
* @throws {RequiredError}
|
|
3739
|
+
* @memberof PocketScoutApi
|
|
3740
|
+
*/
|
|
3741
|
+
customerGroupsDelete(id, options) {
|
|
3742
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).customerGroupsDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
3743
|
+
}
|
|
3744
|
+
/**
|
|
3745
|
+
*
|
|
3746
|
+
* @summary Updates multiple customer groups
|
|
3747
|
+
* @param {UpdateCustomerGroupsRequest} updateCustomerGroupsRequest
|
|
3748
|
+
* @param {*} [options] Override http request option.
|
|
3749
|
+
* @throws {RequiredError}
|
|
3750
|
+
* @memberof PocketScoutApi
|
|
3751
|
+
*/
|
|
3752
|
+
customerGroupsUpdate(updateCustomerGroupsRequest, options) {
|
|
3753
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).customerGroupsUpdate(updateCustomerGroupsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2930
3754
|
}
|
|
2931
3755
|
/**
|
|
2932
3756
|
*
|
|
@@ -2934,22 +3758,22 @@ class Scout9Api extends base_1.BaseAPI {
|
|
|
2934
3758
|
* @param {UpdateCustomerRequest} updateCustomerRequest
|
|
2935
3759
|
* @param {*} [options] Override http request option.
|
|
2936
3760
|
* @throws {RequiredError}
|
|
2937
|
-
* @memberof
|
|
3761
|
+
* @memberof PocketScoutApi
|
|
2938
3762
|
*/
|
|
2939
3763
|
customerUpdate(updateCustomerRequest, options) {
|
|
2940
|
-
return (0, exports.
|
|
3764
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).customerUpdate(updateCustomerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2941
3765
|
}
|
|
2942
3766
|
/**
|
|
2943
3767
|
*
|
|
2944
3768
|
* @summary Gets all or specific set of customers
|
|
2945
3769
|
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
2946
|
-
* @param {Array<string>} [id]
|
|
3770
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
2947
3771
|
* @param {*} [options] Override http request option.
|
|
2948
3772
|
* @throws {RequiredError}
|
|
2949
|
-
* @memberof
|
|
3773
|
+
* @memberof PocketScoutApi
|
|
2950
3774
|
*/
|
|
2951
3775
|
customers(q, id, options) {
|
|
2952
|
-
return (0, exports.
|
|
3776
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).customers(q, id, options).then((request) => request(this.axios, this.basePath));
|
|
2953
3777
|
}
|
|
2954
3778
|
/**
|
|
2955
3779
|
*
|
|
@@ -2957,21 +3781,21 @@ class Scout9Api extends base_1.BaseAPI {
|
|
|
2957
3781
|
* @param {CreateCustomersRequest} createCustomersRequest
|
|
2958
3782
|
* @param {*} [options] Override http request option.
|
|
2959
3783
|
* @throws {RequiredError}
|
|
2960
|
-
* @memberof
|
|
3784
|
+
* @memberof PocketScoutApi
|
|
2961
3785
|
*/
|
|
2962
3786
|
customersCreate(createCustomersRequest, options) {
|
|
2963
|
-
return (0, exports.
|
|
3787
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).customersCreate(createCustomersRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2964
3788
|
}
|
|
2965
3789
|
/**
|
|
2966
3790
|
*
|
|
2967
3791
|
* @summary Deletes multiple customers
|
|
2968
|
-
* @param {Array<string>} [id]
|
|
3792
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
2969
3793
|
* @param {*} [options] Override http request option.
|
|
2970
3794
|
* @throws {RequiredError}
|
|
2971
|
-
* @memberof
|
|
3795
|
+
* @memberof PocketScoutApi
|
|
2972
3796
|
*/
|
|
2973
3797
|
customersDelete(id, options) {
|
|
2974
|
-
return (0, exports.
|
|
3798
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).customersDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
2975
3799
|
}
|
|
2976
3800
|
/**
|
|
2977
3801
|
*
|
|
@@ -2979,10 +3803,65 @@ class Scout9Api extends base_1.BaseAPI {
|
|
|
2979
3803
|
* @param {UpdateCustomerRequest} updateCustomerRequest
|
|
2980
3804
|
* @param {*} [options] Override http request option.
|
|
2981
3805
|
* @throws {RequiredError}
|
|
2982
|
-
* @memberof
|
|
3806
|
+
* @memberof PocketScoutApi
|
|
2983
3807
|
*/
|
|
2984
3808
|
customersUpdate(updateCustomerRequest, options) {
|
|
2985
|
-
return (0, exports.
|
|
3809
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).customersUpdate(updateCustomerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3810
|
+
}
|
|
3811
|
+
/**
|
|
3812
|
+
*
|
|
3813
|
+
* @summary Returns information about a specific file.
|
|
3814
|
+
* @param {string} fileId The ID of the file to use for this request
|
|
3815
|
+
* @param {*} [options] Override http request option.
|
|
3816
|
+
* @throws {RequiredError}
|
|
3817
|
+
* @memberof PocketScoutApi
|
|
3818
|
+
*/
|
|
3819
|
+
file(fileId, options) {
|
|
3820
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).file(fileId, options).then((request) => request(this.axios, this.basePath));
|
|
3821
|
+
}
|
|
3822
|
+
/**
|
|
3823
|
+
*
|
|
3824
|
+
* @summary Upload a file that contains document(s) to be used across various endpoints/features. Currently, the size of all the files uploaded by one organization can be up to 1 GB. Please contact us if you need to increase the storage limit.
|
|
3825
|
+
* @param {File} file
|
|
3826
|
+
* @param {string} [purpose] The intended purpose of the uploaded documents. This allows us to validate the format of the uploaded file.
|
|
3827
|
+
* @param {*} [options] Override http request option.
|
|
3828
|
+
* @throws {RequiredError}
|
|
3829
|
+
* @memberof PocketScoutApi
|
|
3830
|
+
*/
|
|
3831
|
+
fileCreate(file, purpose, options) {
|
|
3832
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).fileCreate(file, purpose, options).then((request) => request(this.axios, this.basePath));
|
|
3833
|
+
}
|
|
3834
|
+
/**
|
|
3835
|
+
*
|
|
3836
|
+
* @summary Delete a file.
|
|
3837
|
+
* @param {string} fileId The ID of the file to use for this request
|
|
3838
|
+
* @param {*} [options] Override http request option.
|
|
3839
|
+
* @throws {RequiredError}
|
|
3840
|
+
* @memberof PocketScoutApi
|
|
3841
|
+
*/
|
|
3842
|
+
fileDelete(fileId, options) {
|
|
3843
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).fileDelete(fileId, options).then((request) => request(this.axios, this.basePath));
|
|
3844
|
+
}
|
|
3845
|
+
/**
|
|
3846
|
+
*
|
|
3847
|
+
* @summary Returns the contents of the specified file
|
|
3848
|
+
* @param {string} fileId The ID of the file to use for this request
|
|
3849
|
+
* @param {*} [options] Override http request option.
|
|
3850
|
+
* @throws {RequiredError}
|
|
3851
|
+
* @memberof PocketScoutApi
|
|
3852
|
+
*/
|
|
3853
|
+
fileDownload(fileId, options) {
|
|
3854
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).fileDownload(fileId, options).then((request) => request(this.axios, this.basePath));
|
|
3855
|
+
}
|
|
3856
|
+
/**
|
|
3857
|
+
*
|
|
3858
|
+
* @summary Returns a list of files that belong to the user\'s organization.
|
|
3859
|
+
* @param {*} [options] Override http request option.
|
|
3860
|
+
* @throws {RequiredError}
|
|
3861
|
+
* @memberof PocketScoutApi
|
|
3862
|
+
*/
|
|
3863
|
+
files(options) {
|
|
3864
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).files(options).then((request) => request(this.axios, this.basePath));
|
|
2986
3865
|
}
|
|
2987
3866
|
/**
|
|
2988
3867
|
* Generates a message in the agent\'s voice based on the state of the given conversation. This is useful for testing and debugging. The message will not be sent to the conversation, you must run .message() with the body of the generated message to send it to the conversation.
|
|
@@ -2990,10 +3869,10 @@ class Scout9Api extends base_1.BaseAPI {
|
|
|
2990
3869
|
* @param {GenerateRequest} generateRequest
|
|
2991
3870
|
* @param {*} [options] Override http request option.
|
|
2992
3871
|
* @throws {RequiredError}
|
|
2993
|
-
* @memberof
|
|
3872
|
+
* @memberof PocketScoutApi
|
|
2994
3873
|
*/
|
|
2995
3874
|
generate(generateRequest, options) {
|
|
2996
|
-
return (0, exports.
|
|
3875
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).generate(generateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2997
3876
|
}
|
|
2998
3877
|
/**
|
|
2999
3878
|
* Creates a new message and sends it to the conversation. If the conversation is scheduled, the message will be scheduled as well. @TODO does not support the ability to mute or delay send
|
|
@@ -3001,45 +3880,45 @@ class Scout9Api extends base_1.BaseAPI {
|
|
|
3001
3880
|
* @param {MessageCreateRequest} messageCreateRequest
|
|
3002
3881
|
* @param {*} [options] Override http request option.
|
|
3003
3882
|
* @throws {RequiredError}
|
|
3004
|
-
* @memberof
|
|
3883
|
+
* @memberof PocketScoutApi
|
|
3005
3884
|
*/
|
|
3006
3885
|
message(messageCreateRequest, options) {
|
|
3007
|
-
return (0, exports.
|
|
3886
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).message(messageCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3008
3887
|
}
|
|
3009
3888
|
/**
|
|
3010
3889
|
*
|
|
3011
3890
|
* @summary Get all messages from a conversation
|
|
3891
|
+
* @param {string} id id of entity to query
|
|
3012
3892
|
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
3013
|
-
* @param {Array<string>} [id]
|
|
3014
3893
|
* @param {*} [options] Override http request option.
|
|
3015
3894
|
* @throws {RequiredError}
|
|
3016
|
-
* @memberof
|
|
3895
|
+
* @memberof PocketScoutApi
|
|
3017
3896
|
*/
|
|
3018
|
-
messages(
|
|
3019
|
-
return (0, exports.
|
|
3897
|
+
messages(id, q, options) {
|
|
3898
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).messages(id, q, options).then((request) => request(this.axios, this.basePath));
|
|
3020
3899
|
}
|
|
3021
3900
|
/**
|
|
3022
3901
|
*
|
|
3023
3902
|
* @summary Get the results of a bulk API operation
|
|
3024
|
-
* @param {string} id
|
|
3903
|
+
* @param {string} id id of entity to query
|
|
3025
3904
|
* @param {*} [options] Override http request option.
|
|
3026
3905
|
* @throws {RequiredError}
|
|
3027
|
-
* @memberof
|
|
3906
|
+
* @memberof PocketScoutApi
|
|
3028
3907
|
*/
|
|
3029
3908
|
operation(id, options) {
|
|
3030
|
-
return (0, exports.
|
|
3909
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).operation(id, options).then((request) => request(this.axios, this.basePath));
|
|
3031
3910
|
}
|
|
3032
3911
|
/**
|
|
3033
3912
|
*
|
|
3034
3913
|
* @summary Gets all or specific set of bulk API operations
|
|
3035
3914
|
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
3036
|
-
* @param {Array<string>} [id]
|
|
3915
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
3037
3916
|
* @param {*} [options] Override http request option.
|
|
3038
3917
|
* @throws {RequiredError}
|
|
3039
|
-
* @memberof
|
|
3918
|
+
* @memberof PocketScoutApi
|
|
3040
3919
|
*/
|
|
3041
3920
|
operations(q, id, options) {
|
|
3042
|
-
return (0, exports.
|
|
3921
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).operations(q, id, options).then((request) => request(this.axios, this.basePath));
|
|
3043
3922
|
}
|
|
3044
3923
|
/**
|
|
3045
3924
|
*
|
|
@@ -3047,21 +3926,21 @@ class Scout9Api extends base_1.BaseAPI {
|
|
|
3047
3926
|
* @param {ScheduleCreateRequest} scheduleCreateRequest
|
|
3048
3927
|
* @param {*} [options] Override http request option.
|
|
3049
3928
|
* @throws {RequiredError}
|
|
3050
|
-
* @memberof
|
|
3929
|
+
* @memberof PocketScoutApi
|
|
3051
3930
|
*/
|
|
3052
|
-
|
|
3053
|
-
return (0, exports.
|
|
3931
|
+
scheduleConversation(scheduleCreateRequest, options) {
|
|
3932
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).scheduleConversation(scheduleCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3054
3933
|
}
|
|
3055
3934
|
/**
|
|
3056
3935
|
*
|
|
3057
3936
|
* @summary Deletes a schedule
|
|
3058
|
-
* @param {string} id
|
|
3937
|
+
* @param {string} id id of entity to query
|
|
3059
3938
|
* @param {*} [options] Override http request option.
|
|
3060
3939
|
* @throws {RequiredError}
|
|
3061
|
-
* @memberof
|
|
3940
|
+
* @memberof PocketScoutApi
|
|
3062
3941
|
*/
|
|
3063
3942
|
scheduleDelete(id, options) {
|
|
3064
|
-
return (0, exports.
|
|
3943
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).scheduleDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
3065
3944
|
}
|
|
3066
3945
|
/**
|
|
3067
3946
|
*
|
|
@@ -3069,32 +3948,32 @@ class Scout9Api extends base_1.BaseAPI {
|
|
|
3069
3948
|
* @param {ScheduleGroupCreateRequest} scheduleGroupCreateRequest
|
|
3070
3949
|
* @param {*} [options] Override http request option.
|
|
3071
3950
|
* @throws {RequiredError}
|
|
3072
|
-
* @memberof
|
|
3951
|
+
* @memberof PocketScoutApi
|
|
3073
3952
|
*/
|
|
3074
3953
|
scheduleGroupCreate(scheduleGroupCreateRequest, options) {
|
|
3075
|
-
return (0, exports.
|
|
3954
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).scheduleGroupCreate(scheduleGroupCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3076
3955
|
}
|
|
3077
3956
|
/**
|
|
3078
3957
|
*
|
|
3079
3958
|
* @summary Deletes and cancels a schedule group
|
|
3080
|
-
* @param {string} id
|
|
3959
|
+
* @param {string} id id of entity to query
|
|
3081
3960
|
* @param {*} [options] Override http request option.
|
|
3082
3961
|
* @throws {RequiredError}
|
|
3083
|
-
* @memberof
|
|
3962
|
+
* @memberof PocketScoutApi
|
|
3084
3963
|
*/
|
|
3085
3964
|
scheduleGroupDelete(id, options) {
|
|
3086
|
-
return (0, exports.
|
|
3965
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).scheduleGroupDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
3087
3966
|
}
|
|
3088
3967
|
/**
|
|
3089
3968
|
*
|
|
3090
3969
|
* @summary Gets a schedule group
|
|
3091
|
-
* @param {string} id
|
|
3970
|
+
* @param {string} id id of entity to query
|
|
3092
3971
|
* @param {*} [options] Override http request option.
|
|
3093
3972
|
* @throws {RequiredError}
|
|
3094
|
-
* @memberof
|
|
3973
|
+
* @memberof PocketScoutApi
|
|
3095
3974
|
*/
|
|
3096
3975
|
scheduleGroupRetrieve(id, options) {
|
|
3097
|
-
return (0, exports.
|
|
3976
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).scheduleGroupRetrieve(id, options).then((request) => request(this.axios, this.basePath));
|
|
3098
3977
|
}
|
|
3099
3978
|
/**
|
|
3100
3979
|
*
|
|
@@ -3102,21 +3981,21 @@ class Scout9Api extends base_1.BaseAPI {
|
|
|
3102
3981
|
* @param {ScheduleGroupUpdateRequest} scheduleGroupUpdateRequest
|
|
3103
3982
|
* @param {*} [options] Override http request option.
|
|
3104
3983
|
* @throws {RequiredError}
|
|
3105
|
-
* @memberof
|
|
3984
|
+
* @memberof PocketScoutApi
|
|
3106
3985
|
*/
|
|
3107
3986
|
scheduleGroupUpdate(scheduleGroupUpdateRequest, options) {
|
|
3108
|
-
return (0, exports.
|
|
3987
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).scheduleGroupUpdate(scheduleGroupUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3109
3988
|
}
|
|
3110
3989
|
/**
|
|
3111
3990
|
*
|
|
3112
3991
|
* @summary Gets a schedule
|
|
3113
|
-
* @param {string} id
|
|
3992
|
+
* @param {string} id id of entity to query
|
|
3114
3993
|
* @param {*} [options] Override http request option.
|
|
3115
3994
|
* @throws {RequiredError}
|
|
3116
|
-
* @memberof
|
|
3995
|
+
* @memberof PocketScoutApi
|
|
3117
3996
|
*/
|
|
3118
3997
|
scheduleRetrieve(id, options) {
|
|
3119
|
-
return (0, exports.
|
|
3998
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).scheduleRetrieve(id, options).then((request) => request(this.axios, this.basePath));
|
|
3120
3999
|
}
|
|
3121
4000
|
/**
|
|
3122
4001
|
*
|
|
@@ -3124,21 +4003,21 @@ class Scout9Api extends base_1.BaseAPI {
|
|
|
3124
4003
|
* @param {ScheduleUpdateRequest} scheduleUpdateRequest
|
|
3125
4004
|
* @param {*} [options] Override http request option.
|
|
3126
4005
|
* @throws {RequiredError}
|
|
3127
|
-
* @memberof
|
|
4006
|
+
* @memberof PocketScoutApi
|
|
3128
4007
|
*/
|
|
3129
4008
|
scheduleUpdate(scheduleUpdateRequest, options) {
|
|
3130
|
-
return (0, exports.
|
|
4009
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).scheduleUpdate(scheduleUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3131
4010
|
}
|
|
3132
4011
|
/**
|
|
3133
4012
|
*
|
|
3134
4013
|
* @summary Gets a workflow
|
|
3135
|
-
* @param {string} id
|
|
4014
|
+
* @param {string} id id of entity to query
|
|
3136
4015
|
* @param {*} [options] Override http request option.
|
|
3137
4016
|
* @throws {RequiredError}
|
|
3138
|
-
* @memberof
|
|
4017
|
+
* @memberof PocketScoutApi
|
|
3139
4018
|
*/
|
|
3140
4019
|
workflow(id, options) {
|
|
3141
|
-
return (0, exports.
|
|
4020
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).workflow(id, options).then((request) => request(this.axios, this.basePath));
|
|
3142
4021
|
}
|
|
3143
4022
|
/**
|
|
3144
4023
|
*
|
|
@@ -3146,21 +4025,21 @@ class Scout9Api extends base_1.BaseAPI {
|
|
|
3146
4025
|
* @param {CreateWorkflowRequest} createWorkflowRequest
|
|
3147
4026
|
* @param {*} [options] Override http request option.
|
|
3148
4027
|
* @throws {RequiredError}
|
|
3149
|
-
* @memberof
|
|
4028
|
+
* @memberof PocketScoutApi
|
|
3150
4029
|
*/
|
|
3151
4030
|
workflowCreate(createWorkflowRequest, options) {
|
|
3152
|
-
return (0, exports.
|
|
4031
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).workflowCreate(createWorkflowRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3153
4032
|
}
|
|
3154
4033
|
/**
|
|
3155
4034
|
*
|
|
3156
4035
|
* @summary Deletes a workflow
|
|
3157
|
-
* @param {string} id
|
|
4036
|
+
* @param {string} id id of entity to query
|
|
3158
4037
|
* @param {*} [options] Override http request option.
|
|
3159
4038
|
* @throws {RequiredError}
|
|
3160
|
-
* @memberof
|
|
4039
|
+
* @memberof PocketScoutApi
|
|
3161
4040
|
*/
|
|
3162
4041
|
workflowDelete(id, options) {
|
|
3163
|
-
return (0, exports.
|
|
4042
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).workflowDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
3164
4043
|
}
|
|
3165
4044
|
/**
|
|
3166
4045
|
*
|
|
@@ -3168,22 +4047,22 @@ class Scout9Api extends base_1.BaseAPI {
|
|
|
3168
4047
|
* @param {UpdateWorkflowRequest} updateWorkflowRequest
|
|
3169
4048
|
* @param {*} [options] Override http request option.
|
|
3170
4049
|
* @throws {RequiredError}
|
|
3171
|
-
* @memberof
|
|
4050
|
+
* @memberof PocketScoutApi
|
|
3172
4051
|
*/
|
|
3173
4052
|
workflowUpdate(updateWorkflowRequest, options) {
|
|
3174
|
-
return (0, exports.
|
|
4053
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).workflowUpdate(updateWorkflowRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3175
4054
|
}
|
|
3176
4055
|
/**
|
|
3177
4056
|
*
|
|
3178
4057
|
* @summary Gets all or specific set of workflows
|
|
3179
4058
|
* @param {string} [q] Query search string to filter results ({field},{operator},{value}) (example firstName,equals,Patrick)
|
|
3180
|
-
* @param {Array<string>} [id]
|
|
4059
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
3181
4060
|
* @param {*} [options] Override http request option.
|
|
3182
4061
|
* @throws {RequiredError}
|
|
3183
|
-
* @memberof
|
|
4062
|
+
* @memberof PocketScoutApi
|
|
3184
4063
|
*/
|
|
3185
4064
|
workflows(q, id, options) {
|
|
3186
|
-
return (0, exports.
|
|
4065
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).workflows(q, id, options).then((request) => request(this.axios, this.basePath));
|
|
3187
4066
|
}
|
|
3188
4067
|
/**
|
|
3189
4068
|
*
|
|
@@ -3191,21 +4070,21 @@ class Scout9Api extends base_1.BaseAPI {
|
|
|
3191
4070
|
* @param {CreateWorkflowsRequest} createWorkflowsRequest
|
|
3192
4071
|
* @param {*} [options] Override http request option.
|
|
3193
4072
|
* @throws {RequiredError}
|
|
3194
|
-
* @memberof
|
|
4073
|
+
* @memberof PocketScoutApi
|
|
3195
4074
|
*/
|
|
3196
4075
|
workflowsCreate(createWorkflowsRequest, options) {
|
|
3197
|
-
return (0, exports.
|
|
4076
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).workflowsCreate(createWorkflowsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3198
4077
|
}
|
|
3199
4078
|
/**
|
|
3200
4079
|
*
|
|
3201
4080
|
* @summary Deletes multiple workflows
|
|
3202
|
-
* @param {Array<string>} [id]
|
|
4081
|
+
* @param {Array<string>} [id] ids for the entities this id belongs to
|
|
3203
4082
|
* @param {*} [options] Override http request option.
|
|
3204
4083
|
* @throws {RequiredError}
|
|
3205
|
-
* @memberof
|
|
4084
|
+
* @memberof PocketScoutApi
|
|
3206
4085
|
*/
|
|
3207
4086
|
workflowsDelete(id, options) {
|
|
3208
|
-
return (0, exports.
|
|
4087
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).workflowsDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
3209
4088
|
}
|
|
3210
4089
|
/**
|
|
3211
4090
|
*
|
|
@@ -3213,10 +4092,10 @@ class Scout9Api extends base_1.BaseAPI {
|
|
|
3213
4092
|
* @param {UpdateWorkflowRequest} updateWorkflowRequest
|
|
3214
4093
|
* @param {*} [options] Override http request option.
|
|
3215
4094
|
* @throws {RequiredError}
|
|
3216
|
-
* @memberof
|
|
4095
|
+
* @memberof PocketScoutApi
|
|
3217
4096
|
*/
|
|
3218
4097
|
workflowsUpdate(updateWorkflowRequest, options) {
|
|
3219
|
-
return (0, exports.
|
|
4098
|
+
return (0, exports.PocketScoutApiFp)(this.configuration).workflowsUpdate(updateWorkflowRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3220
4099
|
}
|
|
3221
4100
|
}
|
|
3222
|
-
exports.
|
|
4101
|
+
exports.PocketScoutApi = PocketScoutApi;
|