webitel-sdk 23.12.11 → 23.12.12
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/bundles/index.esm.js +1049 -144
- package/bundles/index.esm.js.map +1 -1
- package/bundles/index.esm.min.js +1 -1
- package/bundles/index.esm.min.js.map +1 -1
- package/bundles/index.umd.js +1158 -142
- package/bundles/index.umd.js.map +1 -1
- package/bundles/index.umd.min.js +1 -1
- package/bundles/index.umd.min.js.map +1 -1
- package/esm2015/api/engine-create-web-hook-request.js +13 -0
- package/esm2015/api/engine-create-web-hook-request.js.map +1 -0
- package/esm2015/api/engine-list-web-hook.js +13 -0
- package/esm2015/api/engine-list-web-hook.js.map +1 -0
- package/esm2015/api/engine-patch-web-hook-request.js +13 -0
- package/esm2015/api/engine-patch-web-hook-request.js.map +1 -0
- package/esm2015/api/engine-schema-version.js +13 -0
- package/esm2015/api/engine-schema-version.js.map +1 -0
- package/esm2015/api/engine-search-schema-version-response.js +13 -0
- package/esm2015/api/engine-search-schema-version-response.js.map +1 -0
- package/esm2015/api/engine-update-web-hook-request.js +13 -0
- package/esm2015/api/engine-update-web-hook-request.js.map +1 -0
- package/esm2015/api/engine-web-hook.js +13 -0
- package/esm2015/api/engine-web-hook.js.map +1 -0
- package/esm2015/api/index.js +7 -0
- package/esm2015/api/index.js.map +1 -1
- package/esm2015/api/schema-version-service-api.js +173 -0
- package/esm2015/api/schema-version-service-api.js.map +1 -0
- package/esm2015/api/web-hook-service-api.js +670 -0
- package/esm2015/api/web-hook-service-api.js.map +1 -0
- package/esm2015/api.js +2 -0
- package/esm2015/api.js.map +1 -1
- package/esm2015/socket/client.js +3 -0
- package/esm2015/socket/client.js.map +1 -1
- package/esm5/api/engine-create-web-hook-request.js +13 -0
- package/esm5/api/engine-create-web-hook-request.js.map +1 -0
- package/esm5/api/engine-list-web-hook.js +13 -0
- package/esm5/api/engine-list-web-hook.js.map +1 -0
- package/esm5/api/engine-patch-web-hook-request.js +13 -0
- package/esm5/api/engine-patch-web-hook-request.js.map +1 -0
- package/esm5/api/engine-schema-version.js +13 -0
- package/esm5/api/engine-schema-version.js.map +1 -0
- package/esm5/api/engine-search-schema-version-response.js +13 -0
- package/esm5/api/engine-search-schema-version-response.js.map +1 -0
- package/esm5/api/engine-update-web-hook-request.js +13 -0
- package/esm5/api/engine-update-web-hook-request.js.map +1 -0
- package/esm5/api/engine-web-hook.js +13 -0
- package/esm5/api/engine-web-hook.js.map +1 -0
- package/esm5/api/index.js +7 -0
- package/esm5/api/index.js.map +1 -1
- package/esm5/api/schema-version-service-api.js +194 -0
- package/esm5/api/schema-version-service-api.js.map +1 -0
- package/esm5/api/web-hook-service-api.js +756 -0
- package/esm5/api/web-hook-service-api.js.map +1 -0
- package/esm5/api.js +2 -0
- package/esm5/api.js.map +1 -1
- package/esm5/socket/client.js +3 -0
- package/esm5/socket/client.js.map +1 -1
- package/package.json +1 -1
- package/types/api/engine-create-web-hook-request.d.ts +56 -0
- package/types/api/engine-create-web-hook-request.d.ts.map +1 -0
- package/types/api/engine-list-web-hook.d.ts +32 -0
- package/types/api/engine-list-web-hook.d.ts.map +1 -0
- package/types/api/engine-patch-web-hook-request.d.ts +68 -0
- package/types/api/engine-patch-web-hook-request.d.ts.map +1 -0
- package/types/api/engine-schema-version.d.ts +68 -0
- package/types/api/engine-schema-version.d.ts.map +1 -0
- package/types/api/engine-search-schema-version-response.d.ts +32 -0
- package/types/api/engine-search-schema-version-response.d.ts.map +1 -0
- package/types/api/engine-update-web-hook-request.d.ts +62 -0
- package/types/api/engine-update-web-hook-request.d.ts.map +1 -0
- package/types/api/engine-web-hook.d.ts +92 -0
- package/types/api/engine-web-hook.d.ts.map +1 -0
- package/types/api/index.d.ts +7 -0
- package/types/api/index.d.ts.map +1 -1
- package/types/api/schema-version-service-api.d.ts +91 -0
- package/types/api/schema-version-service-api.d.ts.map +1 -0
- package/types/api/web-hook-service-api.d.ts +272 -0
- package/types/api/web-hook-service-api.d.ts.map +1 -0
- package/types/api.d.ts +2 -0
- package/types/api.d.ts.map +1 -1
- package/types/socket/client.d.ts.map +1 -1
package/bundles/index.esm.js
CHANGED
|
@@ -34128,6 +34128,163 @@ class RoutingVariableServiceApi extends BaseAPI {
|
|
|
34128
34128
|
}
|
|
34129
34129
|
}
|
|
34130
34130
|
|
|
34131
|
+
// tslint:disable
|
|
34132
|
+
/**
|
|
34133
|
+
* SchemaVersionServiceApi - axios parameter creator
|
|
34134
|
+
* @export
|
|
34135
|
+
*/
|
|
34136
|
+
const SchemaVersionServiceApiAxiosParamCreator = function (configuration) {
|
|
34137
|
+
return {
|
|
34138
|
+
/**
|
|
34139
|
+
*
|
|
34140
|
+
* @param {string} schemaId
|
|
34141
|
+
* @param {number} [page]
|
|
34142
|
+
* @param {number} [size]
|
|
34143
|
+
* @param {string} [q]
|
|
34144
|
+
* @param {string} [sort]
|
|
34145
|
+
* @param {Array<string>} [fields]
|
|
34146
|
+
* @param {*} [options] Override http request option.
|
|
34147
|
+
* @throws {RequiredError}
|
|
34148
|
+
*/
|
|
34149
|
+
searchSchemaVersion: async (schemaId, page, size, q, sort, fields, options = {}) => {
|
|
34150
|
+
// verify required parameter 'schemaId' is not null or undefined
|
|
34151
|
+
if (schemaId === null || schemaId === undefined) {
|
|
34152
|
+
throw new RequiredError('schemaId', 'Required parameter schemaId was null or undefined when calling searchSchemaVersion.');
|
|
34153
|
+
}
|
|
34154
|
+
const localVarPath = `/routing/schema/{schema_id}/versions`.replace(`{${'schema_id'}}`, encodeURIComponent(String(schemaId)));
|
|
34155
|
+
const localVarUrlObj = parse(localVarPath, true);
|
|
34156
|
+
let baseOptions;
|
|
34157
|
+
if (configuration) {
|
|
34158
|
+
baseOptions = configuration.baseOptions;
|
|
34159
|
+
}
|
|
34160
|
+
const localVarRequestOptions = {
|
|
34161
|
+
method: 'GET',
|
|
34162
|
+
...baseOptions,
|
|
34163
|
+
...options,
|
|
34164
|
+
};
|
|
34165
|
+
const localVarHeaderParameter = {};
|
|
34166
|
+
const localVarQueryParameter = {};
|
|
34167
|
+
// authentication AccessToken required
|
|
34168
|
+
if (configuration && configuration.apiKey) {
|
|
34169
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
34170
|
+
? await configuration.apiKey('X-Webitel-Access')
|
|
34171
|
+
: await configuration.apiKey;
|
|
34172
|
+
localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
|
|
34173
|
+
}
|
|
34174
|
+
if (page !== undefined) {
|
|
34175
|
+
localVarQueryParameter['page'] = page;
|
|
34176
|
+
}
|
|
34177
|
+
if (size !== undefined) {
|
|
34178
|
+
localVarQueryParameter['size'] = size;
|
|
34179
|
+
}
|
|
34180
|
+
if (q !== undefined) {
|
|
34181
|
+
localVarQueryParameter['q'] = q;
|
|
34182
|
+
}
|
|
34183
|
+
if (sort !== undefined) {
|
|
34184
|
+
localVarQueryParameter['sort'] = sort;
|
|
34185
|
+
}
|
|
34186
|
+
if (fields) {
|
|
34187
|
+
localVarQueryParameter['fields'] = fields;
|
|
34188
|
+
}
|
|
34189
|
+
localVarUrlObj.query = {
|
|
34190
|
+
...localVarUrlObj.query,
|
|
34191
|
+
...localVarQueryParameter,
|
|
34192
|
+
...options.query,
|
|
34193
|
+
};
|
|
34194
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
34195
|
+
delete localVarUrlObj.search;
|
|
34196
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
34197
|
+
localVarRequestOptions.headers = {
|
|
34198
|
+
...localVarHeaderParameter,
|
|
34199
|
+
...headersFromBaseOptions,
|
|
34200
|
+
...options.headers,
|
|
34201
|
+
};
|
|
34202
|
+
return {
|
|
34203
|
+
url: format(localVarUrlObj),
|
|
34204
|
+
options: localVarRequestOptions,
|
|
34205
|
+
};
|
|
34206
|
+
},
|
|
34207
|
+
};
|
|
34208
|
+
};
|
|
34209
|
+
/**
|
|
34210
|
+
* SchemaVersionServiceApi - functional programming interface
|
|
34211
|
+
* @export
|
|
34212
|
+
*/
|
|
34213
|
+
const SchemaVersionServiceApiFp = function (configuration) {
|
|
34214
|
+
return {
|
|
34215
|
+
/**
|
|
34216
|
+
*
|
|
34217
|
+
* @param {string} schemaId
|
|
34218
|
+
* @param {number} [page]
|
|
34219
|
+
* @param {number} [size]
|
|
34220
|
+
* @param {string} [q]
|
|
34221
|
+
* @param {string} [sort]
|
|
34222
|
+
* @param {Array<string>} [fields]
|
|
34223
|
+
* @param {*} [options] Override http request option.
|
|
34224
|
+
* @throws {RequiredError}
|
|
34225
|
+
*/
|
|
34226
|
+
async searchSchemaVersion(schemaId, page, size, q, sort, fields, options) {
|
|
34227
|
+
const localVarAxiosArgs = await SchemaVersionServiceApiAxiosParamCreator(configuration).searchSchemaVersion(schemaId, page, size, q, sort, fields, options);
|
|
34228
|
+
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
34229
|
+
const axiosRequestArgs = {
|
|
34230
|
+
...localVarAxiosArgs.options,
|
|
34231
|
+
url: basePath + localVarAxiosArgs.url,
|
|
34232
|
+
};
|
|
34233
|
+
return axios.request(axiosRequestArgs);
|
|
34234
|
+
};
|
|
34235
|
+
},
|
|
34236
|
+
};
|
|
34237
|
+
};
|
|
34238
|
+
/**
|
|
34239
|
+
* SchemaVersionServiceApi - factory interface
|
|
34240
|
+
* @export
|
|
34241
|
+
*/
|
|
34242
|
+
const SchemaVersionServiceApiFactory = function (configuration, basePath, axios) {
|
|
34243
|
+
return {
|
|
34244
|
+
/**
|
|
34245
|
+
*
|
|
34246
|
+
* @param {string} schemaId
|
|
34247
|
+
* @param {number} [page]
|
|
34248
|
+
* @param {number} [size]
|
|
34249
|
+
* @param {string} [q]
|
|
34250
|
+
* @param {string} [sort]
|
|
34251
|
+
* @param {Array<string>} [fields]
|
|
34252
|
+
* @param {*} [options] Override http request option.
|
|
34253
|
+
* @throws {RequiredError}
|
|
34254
|
+
*/
|
|
34255
|
+
searchSchemaVersion(schemaId, page, size, q, sort, fields, options) {
|
|
34256
|
+
return SchemaVersionServiceApiFp(configuration)
|
|
34257
|
+
.searchSchemaVersion(schemaId, page, size, q, sort, fields, options)
|
|
34258
|
+
.then((request) => request(axios, basePath));
|
|
34259
|
+
},
|
|
34260
|
+
};
|
|
34261
|
+
};
|
|
34262
|
+
/**
|
|
34263
|
+
* SchemaVersionServiceApi - object-oriented interface
|
|
34264
|
+
* @export
|
|
34265
|
+
* @class SchemaVersionServiceApi
|
|
34266
|
+
* @extends {BaseAPI}
|
|
34267
|
+
*/
|
|
34268
|
+
class SchemaVersionServiceApi extends BaseAPI {
|
|
34269
|
+
/**
|
|
34270
|
+
*
|
|
34271
|
+
* @param {string} schemaId
|
|
34272
|
+
* @param {number} [page]
|
|
34273
|
+
* @param {number} [size]
|
|
34274
|
+
* @param {string} [q]
|
|
34275
|
+
* @param {string} [sort]
|
|
34276
|
+
* @param {Array<string>} [fields]
|
|
34277
|
+
* @param {*} [options] Override http request option.
|
|
34278
|
+
* @throws {RequiredError}
|
|
34279
|
+
* @memberof SchemaVersionServiceApi
|
|
34280
|
+
*/
|
|
34281
|
+
searchSchemaVersion(schemaId, page, size, q, sort, fields, options) {
|
|
34282
|
+
return SchemaVersionServiceApiFp(this.configuration)
|
|
34283
|
+
.searchSchemaVersion(schemaId, page, size, q, sort, fields, options)
|
|
34284
|
+
.then((request) => request(this.axios, this.basePath));
|
|
34285
|
+
}
|
|
34286
|
+
}
|
|
34287
|
+
|
|
34131
34288
|
// tslint:disable
|
|
34132
34289
|
/**
|
|
34133
34290
|
* SkillServiceApi - axios parameter creator
|
|
@@ -38597,16 +38754,721 @@ const VariablesApiFp = function (configuration) {
|
|
|
38597
38754
|
},
|
|
38598
38755
|
/**
|
|
38599
38756
|
*
|
|
38600
|
-
* @summary Update contact variable
|
|
38601
|
-
* @param {string} contactId Contact ID associated with.
|
|
38602
|
-
* @param {string} etag Unique ID of the latest version of an existing resorce.
|
|
38603
|
-
* @param {NEWVariableUpdate1} input
|
|
38604
|
-
* @param {Array<string>} [fields] Fields to be retrieved into result of changes.
|
|
38757
|
+
* @summary Update contact variable
|
|
38758
|
+
* @param {string} contactId Contact ID associated with.
|
|
38759
|
+
* @param {string} etag Unique ID of the latest version of an existing resorce.
|
|
38760
|
+
* @param {NEWVariableUpdate1} input
|
|
38761
|
+
* @param {Array<string>} [fields] Fields to be retrieved into result of changes.
|
|
38762
|
+
* @param {*} [options] Override http request option.
|
|
38763
|
+
* @throws {RequiredError}
|
|
38764
|
+
*/
|
|
38765
|
+
async updateVariable2(contactId, etag, input, fields, options) {
|
|
38766
|
+
const localVarAxiosArgs = await VariablesApiAxiosParamCreator(configuration).updateVariable2(contactId, etag, input, fields, options);
|
|
38767
|
+
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
38768
|
+
const axiosRequestArgs = {
|
|
38769
|
+
...localVarAxiosArgs.options,
|
|
38770
|
+
url: basePath + localVarAxiosArgs.url,
|
|
38771
|
+
};
|
|
38772
|
+
return axios.request(axiosRequestArgs);
|
|
38773
|
+
};
|
|
38774
|
+
},
|
|
38775
|
+
};
|
|
38776
|
+
};
|
|
38777
|
+
/**
|
|
38778
|
+
* VariablesApi - factory interface
|
|
38779
|
+
* @export
|
|
38780
|
+
*/
|
|
38781
|
+
const VariablesApiFactory = function (configuration, basePath, axios) {
|
|
38782
|
+
return {
|
|
38783
|
+
/**
|
|
38784
|
+
*
|
|
38785
|
+
* @summary Remove the contact\'s variable by etag
|
|
38786
|
+
* @param {string} contactId Contact ID associated with.
|
|
38787
|
+
* @param {string} etag Unique ID to remove.
|
|
38788
|
+
* @param {Array<string>} [fields] Fields to be retrieved as a result.
|
|
38789
|
+
* @param {*} [options] Override http request option.
|
|
38790
|
+
* @throws {RequiredError}
|
|
38791
|
+
*/
|
|
38792
|
+
deleteVariable(contactId, etag, fields, options) {
|
|
38793
|
+
return VariablesApiFp(configuration)
|
|
38794
|
+
.deleteVariable(contactId, etag, fields, options)
|
|
38795
|
+
.then((request) => request(axios, basePath));
|
|
38796
|
+
},
|
|
38797
|
+
/**
|
|
38798
|
+
*
|
|
38799
|
+
* @summary Remove variable(s) of the contact
|
|
38800
|
+
* @param {string} contactId Contact ID associated with.
|
|
38801
|
+
* @param {Array<string>} etag Set of unique ID(s) to remove.
|
|
38802
|
+
* @param {Array<string>} [fields] Fields to be retrieved as a result.
|
|
38803
|
+
* @param {*} [options] Override http request option.
|
|
38804
|
+
* @throws {RequiredError}
|
|
38805
|
+
*/
|
|
38806
|
+
deleteVariables(contactId, etag, fields, options) {
|
|
38807
|
+
return VariablesApiFp(configuration)
|
|
38808
|
+
.deleteVariables(contactId, etag, fields, options)
|
|
38809
|
+
.then((request) => request(axios, basePath));
|
|
38810
|
+
},
|
|
38811
|
+
/**
|
|
38812
|
+
*
|
|
38813
|
+
* @summary List variables of the contact
|
|
38814
|
+
* @param {string} contactId Contact ID associated with.
|
|
38815
|
+
* @param {number} [page] Page number of result. offset = ((page-1)*size)
|
|
38816
|
+
* @param {number} [size] Size of result page. limit = (size++)
|
|
38817
|
+
* @param {string} [q] Search term: variable key; `?` - matches any one character `*` - matches 0 or more characters
|
|
38818
|
+
* @param {Array<string>} [sort] Sort the result according to fields.
|
|
38819
|
+
* @param {Array<string>} [fields] Fields to be retrieved as a result.
|
|
38820
|
+
* @param {Array<string>} [id] Record(s) with unique ID only.
|
|
38821
|
+
* @param {*} [options] Override http request option.
|
|
38822
|
+
* @throws {RequiredError}
|
|
38823
|
+
*/
|
|
38824
|
+
listVariables(contactId, page, size, q, sort, fields, id, options) {
|
|
38825
|
+
return VariablesApiFp(configuration)
|
|
38826
|
+
.listVariables(contactId, page, size, q, sort, fields, id, options)
|
|
38827
|
+
.then((request) => request(axios, basePath));
|
|
38828
|
+
},
|
|
38829
|
+
/**
|
|
38830
|
+
*
|
|
38831
|
+
* @summary Update or append variables to the contact
|
|
38832
|
+
* @param {string} contactId Link contact ID.
|
|
38833
|
+
* @param {Array<WebitelContactsInputVariable>} input Fixed object of unique variables to associate with a Contact. Each individual key of an object represents a separate variable. Variable{key} already linked with the Contact and listed here will be updated.
|
|
38834
|
+
* @param {Array<string>} [fields] Fields to be retrieved as a result.
|
|
38835
|
+
* @param {*} [options] Override http request option.
|
|
38836
|
+
* @throws {RequiredError}
|
|
38837
|
+
*/
|
|
38838
|
+
mergeVariables(contactId, input, fields, options) {
|
|
38839
|
+
return VariablesApiFp(configuration)
|
|
38840
|
+
.mergeVariables(contactId, input, fields, options)
|
|
38841
|
+
.then((request) => request(axios, basePath));
|
|
38842
|
+
},
|
|
38843
|
+
/**
|
|
38844
|
+
*
|
|
38845
|
+
* @summary Reset all variables of the contact
|
|
38846
|
+
* @param {string} contactId Contact ID associated with.
|
|
38847
|
+
* @param {Array<WebitelContactsInputVariable>} input Fixed object of unique variables to associate with a Contact. Each individual key of an object represents a separate variable. Variable{key} already linked with the Contact but not listed here will be removed.
|
|
38848
|
+
* @param {Array<string>} [fields] Fields to be retrieved into result of changes.
|
|
38849
|
+
* @param {*} [options] Override http request option.
|
|
38850
|
+
* @throws {RequiredError}
|
|
38851
|
+
*/
|
|
38852
|
+
resetVariables(contactId, input, fields, options) {
|
|
38853
|
+
return VariablesApiFp(configuration)
|
|
38854
|
+
.resetVariables(contactId, input, fields, options)
|
|
38855
|
+
.then((request) => request(axios, basePath));
|
|
38856
|
+
},
|
|
38857
|
+
/**
|
|
38858
|
+
*
|
|
38859
|
+
* @summary Update contact variable
|
|
38860
|
+
* @param {string} contactId Contact ID associated with.
|
|
38861
|
+
* @param {string} etag Unique ID of the latest version of an existing resorce.
|
|
38862
|
+
* @param {NEWVariableUpdate} input
|
|
38863
|
+
* @param {Array<string>} [fields] Fields to be retrieved into result of changes.
|
|
38864
|
+
* @param {*} [options] Override http request option.
|
|
38865
|
+
* @throws {RequiredError}
|
|
38866
|
+
*/
|
|
38867
|
+
updateVariable(contactId, etag, input, fields, options) {
|
|
38868
|
+
return VariablesApiFp(configuration)
|
|
38869
|
+
.updateVariable(contactId, etag, input, fields, options)
|
|
38870
|
+
.then((request) => request(axios, basePath));
|
|
38871
|
+
},
|
|
38872
|
+
/**
|
|
38873
|
+
*
|
|
38874
|
+
* @summary Update contact variable
|
|
38875
|
+
* @param {string} contactId Contact ID associated with.
|
|
38876
|
+
* @param {string} etag Unique ID of the latest version of an existing resorce.
|
|
38877
|
+
* @param {NEWVariableUpdate1} input
|
|
38878
|
+
* @param {Array<string>} [fields] Fields to be retrieved into result of changes.
|
|
38879
|
+
* @param {*} [options] Override http request option.
|
|
38880
|
+
* @throws {RequiredError}
|
|
38881
|
+
*/
|
|
38882
|
+
updateVariable2(contactId, etag, input, fields, options) {
|
|
38883
|
+
return VariablesApiFp(configuration)
|
|
38884
|
+
.updateVariable2(contactId, etag, input, fields, options)
|
|
38885
|
+
.then((request) => request(axios, basePath));
|
|
38886
|
+
},
|
|
38887
|
+
};
|
|
38888
|
+
};
|
|
38889
|
+
/**
|
|
38890
|
+
* VariablesApi - object-oriented interface
|
|
38891
|
+
* @export
|
|
38892
|
+
* @class VariablesApi
|
|
38893
|
+
* @extends {BaseAPI}
|
|
38894
|
+
*/
|
|
38895
|
+
class VariablesApi extends BaseAPI {
|
|
38896
|
+
/**
|
|
38897
|
+
*
|
|
38898
|
+
* @summary Remove the contact\'s variable by etag
|
|
38899
|
+
* @param {string} contactId Contact ID associated with.
|
|
38900
|
+
* @param {string} etag Unique ID to remove.
|
|
38901
|
+
* @param {Array<string>} [fields] Fields to be retrieved as a result.
|
|
38902
|
+
* @param {*} [options] Override http request option.
|
|
38903
|
+
* @throws {RequiredError}
|
|
38904
|
+
* @memberof VariablesApi
|
|
38905
|
+
*/
|
|
38906
|
+
deleteVariable(contactId, etag, fields, options) {
|
|
38907
|
+
return VariablesApiFp(this.configuration)
|
|
38908
|
+
.deleteVariable(contactId, etag, fields, options)
|
|
38909
|
+
.then((request) => request(this.axios, this.basePath));
|
|
38910
|
+
}
|
|
38911
|
+
/**
|
|
38912
|
+
*
|
|
38913
|
+
* @summary Remove variable(s) of the contact
|
|
38914
|
+
* @param {string} contactId Contact ID associated with.
|
|
38915
|
+
* @param {Array<string>} etag Set of unique ID(s) to remove.
|
|
38916
|
+
* @param {Array<string>} [fields] Fields to be retrieved as a result.
|
|
38917
|
+
* @param {*} [options] Override http request option.
|
|
38918
|
+
* @throws {RequiredError}
|
|
38919
|
+
* @memberof VariablesApi
|
|
38920
|
+
*/
|
|
38921
|
+
deleteVariables(contactId, etag, fields, options) {
|
|
38922
|
+
return VariablesApiFp(this.configuration)
|
|
38923
|
+
.deleteVariables(contactId, etag, fields, options)
|
|
38924
|
+
.then((request) => request(this.axios, this.basePath));
|
|
38925
|
+
}
|
|
38926
|
+
/**
|
|
38927
|
+
*
|
|
38928
|
+
* @summary List variables of the contact
|
|
38929
|
+
* @param {string} contactId Contact ID associated with.
|
|
38930
|
+
* @param {number} [page] Page number of result. offset = ((page-1)*size)
|
|
38931
|
+
* @param {number} [size] Size of result page. limit = (size++)
|
|
38932
|
+
* @param {string} [q] Search term: variable key; `?` - matches any one character `*` - matches 0 or more characters
|
|
38933
|
+
* @param {Array<string>} [sort] Sort the result according to fields.
|
|
38934
|
+
* @param {Array<string>} [fields] Fields to be retrieved as a result.
|
|
38935
|
+
* @param {Array<string>} [id] Record(s) with unique ID only.
|
|
38936
|
+
* @param {*} [options] Override http request option.
|
|
38937
|
+
* @throws {RequiredError}
|
|
38938
|
+
* @memberof VariablesApi
|
|
38939
|
+
*/
|
|
38940
|
+
listVariables(contactId, page, size, q, sort, fields, id, options) {
|
|
38941
|
+
return VariablesApiFp(this.configuration)
|
|
38942
|
+
.listVariables(contactId, page, size, q, sort, fields, id, options)
|
|
38943
|
+
.then((request) => request(this.axios, this.basePath));
|
|
38944
|
+
}
|
|
38945
|
+
/**
|
|
38946
|
+
*
|
|
38947
|
+
* @summary Update or append variables to the contact
|
|
38948
|
+
* @param {string} contactId Link contact ID.
|
|
38949
|
+
* @param {Array<WebitelContactsInputVariable>} input Fixed object of unique variables to associate with a Contact. Each individual key of an object represents a separate variable. Variable{key} already linked with the Contact and listed here will be updated.
|
|
38950
|
+
* @param {Array<string>} [fields] Fields to be retrieved as a result.
|
|
38951
|
+
* @param {*} [options] Override http request option.
|
|
38952
|
+
* @throws {RequiredError}
|
|
38953
|
+
* @memberof VariablesApi
|
|
38954
|
+
*/
|
|
38955
|
+
mergeVariables(contactId, input, fields, options) {
|
|
38956
|
+
return VariablesApiFp(this.configuration)
|
|
38957
|
+
.mergeVariables(contactId, input, fields, options)
|
|
38958
|
+
.then((request) => request(this.axios, this.basePath));
|
|
38959
|
+
}
|
|
38960
|
+
/**
|
|
38961
|
+
*
|
|
38962
|
+
* @summary Reset all variables of the contact
|
|
38963
|
+
* @param {string} contactId Contact ID associated with.
|
|
38964
|
+
* @param {Array<WebitelContactsInputVariable>} input Fixed object of unique variables to associate with a Contact. Each individual key of an object represents a separate variable. Variable{key} already linked with the Contact but not listed here will be removed.
|
|
38965
|
+
* @param {Array<string>} [fields] Fields to be retrieved into result of changes.
|
|
38966
|
+
* @param {*} [options] Override http request option.
|
|
38967
|
+
* @throws {RequiredError}
|
|
38968
|
+
* @memberof VariablesApi
|
|
38969
|
+
*/
|
|
38970
|
+
resetVariables(contactId, input, fields, options) {
|
|
38971
|
+
return VariablesApiFp(this.configuration)
|
|
38972
|
+
.resetVariables(contactId, input, fields, options)
|
|
38973
|
+
.then((request) => request(this.axios, this.basePath));
|
|
38974
|
+
}
|
|
38975
|
+
/**
|
|
38976
|
+
*
|
|
38977
|
+
* @summary Update contact variable
|
|
38978
|
+
* @param {string} contactId Contact ID associated with.
|
|
38979
|
+
* @param {string} etag Unique ID of the latest version of an existing resorce.
|
|
38980
|
+
* @param {NEWVariableUpdate} input
|
|
38981
|
+
* @param {Array<string>} [fields] Fields to be retrieved into result of changes.
|
|
38982
|
+
* @param {*} [options] Override http request option.
|
|
38983
|
+
* @throws {RequiredError}
|
|
38984
|
+
* @memberof VariablesApi
|
|
38985
|
+
*/
|
|
38986
|
+
updateVariable(contactId, etag, input, fields, options) {
|
|
38987
|
+
return VariablesApiFp(this.configuration)
|
|
38988
|
+
.updateVariable(contactId, etag, input, fields, options)
|
|
38989
|
+
.then((request) => request(this.axios, this.basePath));
|
|
38990
|
+
}
|
|
38991
|
+
/**
|
|
38992
|
+
*
|
|
38993
|
+
* @summary Update contact variable
|
|
38994
|
+
* @param {string} contactId Contact ID associated with.
|
|
38995
|
+
* @param {string} etag Unique ID of the latest version of an existing resorce.
|
|
38996
|
+
* @param {NEWVariableUpdate1} input
|
|
38997
|
+
* @param {Array<string>} [fields] Fields to be retrieved into result of changes.
|
|
38998
|
+
* @param {*} [options] Override http request option.
|
|
38999
|
+
* @throws {RequiredError}
|
|
39000
|
+
* @memberof VariablesApi
|
|
39001
|
+
*/
|
|
39002
|
+
updateVariable2(contactId, etag, input, fields, options) {
|
|
39003
|
+
return VariablesApiFp(this.configuration)
|
|
39004
|
+
.updateVariable2(contactId, etag, input, fields, options)
|
|
39005
|
+
.then((request) => request(this.axios, this.basePath));
|
|
39006
|
+
}
|
|
39007
|
+
}
|
|
39008
|
+
|
|
39009
|
+
// tslint:disable
|
|
39010
|
+
/**
|
|
39011
|
+
* WebHookServiceApi - axios parameter creator
|
|
39012
|
+
* @export
|
|
39013
|
+
*/
|
|
39014
|
+
const WebHookServiceApiAxiosParamCreator = function (configuration) {
|
|
39015
|
+
return {
|
|
39016
|
+
/**
|
|
39017
|
+
*
|
|
39018
|
+
* @summary Create WebHook
|
|
39019
|
+
* @param {EngineCreateWebHookRequest} body
|
|
39020
|
+
* @param {*} [options] Override http request option.
|
|
39021
|
+
* @throws {RequiredError}
|
|
39022
|
+
*/
|
|
39023
|
+
createWebHook: async (body, options = {}) => {
|
|
39024
|
+
// verify required parameter 'body' is not null or undefined
|
|
39025
|
+
if (body === null || body === undefined) {
|
|
39026
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling createWebHook.');
|
|
39027
|
+
}
|
|
39028
|
+
const localVarPath = `/hook`;
|
|
39029
|
+
const localVarUrlObj = parse(localVarPath, true);
|
|
39030
|
+
let baseOptions;
|
|
39031
|
+
if (configuration) {
|
|
39032
|
+
baseOptions = configuration.baseOptions;
|
|
39033
|
+
}
|
|
39034
|
+
const localVarRequestOptions = {
|
|
39035
|
+
method: 'POST',
|
|
39036
|
+
...baseOptions,
|
|
39037
|
+
...options,
|
|
39038
|
+
};
|
|
39039
|
+
const localVarHeaderParameter = {};
|
|
39040
|
+
const localVarQueryParameter = {};
|
|
39041
|
+
// authentication AccessToken required
|
|
39042
|
+
if (configuration && configuration.apiKey) {
|
|
39043
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
39044
|
+
? await configuration.apiKey('X-Webitel-Access')
|
|
39045
|
+
: await configuration.apiKey;
|
|
39046
|
+
localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
|
|
39047
|
+
}
|
|
39048
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
39049
|
+
localVarUrlObj.query = {
|
|
39050
|
+
...localVarUrlObj.query,
|
|
39051
|
+
...localVarQueryParameter,
|
|
39052
|
+
...options.query,
|
|
39053
|
+
};
|
|
39054
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
39055
|
+
delete localVarUrlObj.search;
|
|
39056
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
39057
|
+
localVarRequestOptions.headers = {
|
|
39058
|
+
...localVarHeaderParameter,
|
|
39059
|
+
...headersFromBaseOptions,
|
|
39060
|
+
...options.headers,
|
|
39061
|
+
};
|
|
39062
|
+
const needsSerialization = typeof body !== 'string' ||
|
|
39063
|
+
localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
39064
|
+
localVarRequestOptions.data = needsSerialization
|
|
39065
|
+
? JSON.stringify(body !== undefined ? body : {})
|
|
39066
|
+
: body || '';
|
|
39067
|
+
return {
|
|
39068
|
+
url: format(localVarUrlObj),
|
|
39069
|
+
options: localVarRequestOptions,
|
|
39070
|
+
};
|
|
39071
|
+
},
|
|
39072
|
+
/**
|
|
39073
|
+
*
|
|
39074
|
+
* @summary Remove WebHook
|
|
39075
|
+
* @param {number} id
|
|
39076
|
+
* @param {*} [options] Override http request option.
|
|
39077
|
+
* @throws {RequiredError}
|
|
39078
|
+
*/
|
|
39079
|
+
deleteWebHook: async (id, options = {}) => {
|
|
39080
|
+
// verify required parameter 'id' is not null or undefined
|
|
39081
|
+
if (id === null || id === undefined) {
|
|
39082
|
+
throw new RequiredError('id', 'Required parameter id was null or undefined when calling deleteWebHook.');
|
|
39083
|
+
}
|
|
39084
|
+
const localVarPath = `/hook/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
39085
|
+
const localVarUrlObj = parse(localVarPath, true);
|
|
39086
|
+
let baseOptions;
|
|
39087
|
+
if (configuration) {
|
|
39088
|
+
baseOptions = configuration.baseOptions;
|
|
39089
|
+
}
|
|
39090
|
+
const localVarRequestOptions = {
|
|
39091
|
+
method: 'DELETE',
|
|
39092
|
+
...baseOptions,
|
|
39093
|
+
...options,
|
|
39094
|
+
};
|
|
39095
|
+
const localVarHeaderParameter = {};
|
|
39096
|
+
const localVarQueryParameter = {};
|
|
39097
|
+
// authentication AccessToken required
|
|
39098
|
+
if (configuration && configuration.apiKey) {
|
|
39099
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
39100
|
+
? await configuration.apiKey('X-Webitel-Access')
|
|
39101
|
+
: await configuration.apiKey;
|
|
39102
|
+
localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
|
|
39103
|
+
}
|
|
39104
|
+
localVarUrlObj.query = {
|
|
39105
|
+
...localVarUrlObj.query,
|
|
39106
|
+
...localVarQueryParameter,
|
|
39107
|
+
...options.query,
|
|
39108
|
+
};
|
|
39109
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
39110
|
+
delete localVarUrlObj.search;
|
|
39111
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
39112
|
+
localVarRequestOptions.headers = {
|
|
39113
|
+
...localVarHeaderParameter,
|
|
39114
|
+
...headersFromBaseOptions,
|
|
39115
|
+
...options.headers,
|
|
39116
|
+
};
|
|
39117
|
+
return {
|
|
39118
|
+
url: format(localVarUrlObj),
|
|
39119
|
+
options: localVarRequestOptions,
|
|
39120
|
+
};
|
|
39121
|
+
},
|
|
39122
|
+
/**
|
|
39123
|
+
*
|
|
39124
|
+
* @summary Patch WebHook
|
|
39125
|
+
* @param {number} id
|
|
39126
|
+
* @param {EnginePatchWebHookRequest} body
|
|
39127
|
+
* @param {*} [options] Override http request option.
|
|
39128
|
+
* @throws {RequiredError}
|
|
39129
|
+
*/
|
|
39130
|
+
patchWebHook: async (id, body, options = {}) => {
|
|
39131
|
+
// verify required parameter 'id' is not null or undefined
|
|
39132
|
+
if (id === null || id === undefined) {
|
|
39133
|
+
throw new RequiredError('id', 'Required parameter id was null or undefined when calling patchWebHook.');
|
|
39134
|
+
}
|
|
39135
|
+
// verify required parameter 'body' is not null or undefined
|
|
39136
|
+
if (body === null || body === undefined) {
|
|
39137
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling patchWebHook.');
|
|
39138
|
+
}
|
|
39139
|
+
const localVarPath = `/hook/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
39140
|
+
const localVarUrlObj = parse(localVarPath, true);
|
|
39141
|
+
let baseOptions;
|
|
39142
|
+
if (configuration) {
|
|
39143
|
+
baseOptions = configuration.baseOptions;
|
|
39144
|
+
}
|
|
39145
|
+
const localVarRequestOptions = {
|
|
39146
|
+
method: 'PATCH',
|
|
39147
|
+
...baseOptions,
|
|
39148
|
+
...options,
|
|
39149
|
+
};
|
|
39150
|
+
const localVarHeaderParameter = {};
|
|
39151
|
+
const localVarQueryParameter = {};
|
|
39152
|
+
// authentication AccessToken required
|
|
39153
|
+
if (configuration && configuration.apiKey) {
|
|
39154
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
39155
|
+
? await configuration.apiKey('X-Webitel-Access')
|
|
39156
|
+
: await configuration.apiKey;
|
|
39157
|
+
localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
|
|
39158
|
+
}
|
|
39159
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
39160
|
+
localVarUrlObj.query = {
|
|
39161
|
+
...localVarUrlObj.query,
|
|
39162
|
+
...localVarQueryParameter,
|
|
39163
|
+
...options.query,
|
|
39164
|
+
};
|
|
39165
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
39166
|
+
delete localVarUrlObj.search;
|
|
39167
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
39168
|
+
localVarRequestOptions.headers = {
|
|
39169
|
+
...localVarHeaderParameter,
|
|
39170
|
+
...headersFromBaseOptions,
|
|
39171
|
+
...options.headers,
|
|
39172
|
+
};
|
|
39173
|
+
const needsSerialization = typeof body !== 'string' ||
|
|
39174
|
+
localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
39175
|
+
localVarRequestOptions.data = needsSerialization
|
|
39176
|
+
? JSON.stringify(body !== undefined ? body : {})
|
|
39177
|
+
: body || '';
|
|
39178
|
+
return {
|
|
39179
|
+
url: format(localVarUrlObj),
|
|
39180
|
+
options: localVarRequestOptions,
|
|
39181
|
+
};
|
|
39182
|
+
},
|
|
39183
|
+
/**
|
|
39184
|
+
*
|
|
39185
|
+
* @summary WebHook item
|
|
39186
|
+
* @param {number} id
|
|
39187
|
+
* @param {*} [options] Override http request option.
|
|
39188
|
+
* @throws {RequiredError}
|
|
39189
|
+
*/
|
|
39190
|
+
readWebHook: async (id, options = {}) => {
|
|
39191
|
+
// verify required parameter 'id' is not null or undefined
|
|
39192
|
+
if (id === null || id === undefined) {
|
|
39193
|
+
throw new RequiredError('id', 'Required parameter id was null or undefined when calling readWebHook.');
|
|
39194
|
+
}
|
|
39195
|
+
const localVarPath = `/hook/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
39196
|
+
const localVarUrlObj = parse(localVarPath, true);
|
|
39197
|
+
let baseOptions;
|
|
39198
|
+
if (configuration) {
|
|
39199
|
+
baseOptions = configuration.baseOptions;
|
|
39200
|
+
}
|
|
39201
|
+
const localVarRequestOptions = {
|
|
39202
|
+
method: 'GET',
|
|
39203
|
+
...baseOptions,
|
|
39204
|
+
...options,
|
|
39205
|
+
};
|
|
39206
|
+
const localVarHeaderParameter = {};
|
|
39207
|
+
const localVarQueryParameter = {};
|
|
39208
|
+
// authentication AccessToken required
|
|
39209
|
+
if (configuration && configuration.apiKey) {
|
|
39210
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
39211
|
+
? await configuration.apiKey('X-Webitel-Access')
|
|
39212
|
+
: await configuration.apiKey;
|
|
39213
|
+
localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
|
|
39214
|
+
}
|
|
39215
|
+
localVarUrlObj.query = {
|
|
39216
|
+
...localVarUrlObj.query,
|
|
39217
|
+
...localVarQueryParameter,
|
|
39218
|
+
...options.query,
|
|
39219
|
+
};
|
|
39220
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
39221
|
+
delete localVarUrlObj.search;
|
|
39222
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
39223
|
+
localVarRequestOptions.headers = {
|
|
39224
|
+
...localVarHeaderParameter,
|
|
39225
|
+
...headersFromBaseOptions,
|
|
39226
|
+
...options.headers,
|
|
39227
|
+
};
|
|
39228
|
+
return {
|
|
39229
|
+
url: format(localVarUrlObj),
|
|
39230
|
+
options: localVarRequestOptions,
|
|
39231
|
+
};
|
|
39232
|
+
},
|
|
39233
|
+
/**
|
|
39234
|
+
*
|
|
39235
|
+
* @summary List of WebHook
|
|
39236
|
+
* @param {number} [page]
|
|
39237
|
+
* @param {number} [size]
|
|
39238
|
+
* @param {string} [q]
|
|
39239
|
+
* @param {string} [sort]
|
|
39240
|
+
* @param {Array<string>} [fields]
|
|
39241
|
+
* @param {Array<number>} [id]
|
|
39242
|
+
* @param {*} [options] Override http request option.
|
|
39243
|
+
* @throws {RequiredError}
|
|
39244
|
+
*/
|
|
39245
|
+
searchWebHook: async (page, size, q, sort, fields, id, options = {}) => {
|
|
39246
|
+
const localVarPath = `/hook`;
|
|
39247
|
+
const localVarUrlObj = parse(localVarPath, true);
|
|
39248
|
+
let baseOptions;
|
|
39249
|
+
if (configuration) {
|
|
39250
|
+
baseOptions = configuration.baseOptions;
|
|
39251
|
+
}
|
|
39252
|
+
const localVarRequestOptions = {
|
|
39253
|
+
method: 'GET',
|
|
39254
|
+
...baseOptions,
|
|
39255
|
+
...options,
|
|
39256
|
+
};
|
|
39257
|
+
const localVarHeaderParameter = {};
|
|
39258
|
+
const localVarQueryParameter = {};
|
|
39259
|
+
// authentication AccessToken required
|
|
39260
|
+
if (configuration && configuration.apiKey) {
|
|
39261
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
39262
|
+
? await configuration.apiKey('X-Webitel-Access')
|
|
39263
|
+
: await configuration.apiKey;
|
|
39264
|
+
localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
|
|
39265
|
+
}
|
|
39266
|
+
if (page !== undefined) {
|
|
39267
|
+
localVarQueryParameter['page'] = page;
|
|
39268
|
+
}
|
|
39269
|
+
if (size !== undefined) {
|
|
39270
|
+
localVarQueryParameter['size'] = size;
|
|
39271
|
+
}
|
|
39272
|
+
if (q !== undefined) {
|
|
39273
|
+
localVarQueryParameter['q'] = q;
|
|
39274
|
+
}
|
|
39275
|
+
if (sort !== undefined) {
|
|
39276
|
+
localVarQueryParameter['sort'] = sort;
|
|
39277
|
+
}
|
|
39278
|
+
if (fields) {
|
|
39279
|
+
localVarQueryParameter['fields'] = fields;
|
|
39280
|
+
}
|
|
39281
|
+
if (id) {
|
|
39282
|
+
localVarQueryParameter['id'] = id;
|
|
39283
|
+
}
|
|
39284
|
+
localVarUrlObj.query = {
|
|
39285
|
+
...localVarUrlObj.query,
|
|
39286
|
+
...localVarQueryParameter,
|
|
39287
|
+
...options.query,
|
|
39288
|
+
};
|
|
39289
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
39290
|
+
delete localVarUrlObj.search;
|
|
39291
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
39292
|
+
localVarRequestOptions.headers = {
|
|
39293
|
+
...localVarHeaderParameter,
|
|
39294
|
+
...headersFromBaseOptions,
|
|
39295
|
+
...options.headers,
|
|
39296
|
+
};
|
|
39297
|
+
return {
|
|
39298
|
+
url: format(localVarUrlObj),
|
|
39299
|
+
options: localVarRequestOptions,
|
|
39300
|
+
};
|
|
39301
|
+
},
|
|
39302
|
+
/**
|
|
39303
|
+
*
|
|
39304
|
+
* @summary Update WebHook
|
|
39305
|
+
* @param {number} id
|
|
39306
|
+
* @param {EngineUpdateWebHookRequest} body
|
|
39307
|
+
* @param {*} [options] Override http request option.
|
|
39308
|
+
* @throws {RequiredError}
|
|
39309
|
+
*/
|
|
39310
|
+
updateWebHook: async (id, body, options = {}) => {
|
|
39311
|
+
// verify required parameter 'id' is not null or undefined
|
|
39312
|
+
if (id === null || id === undefined) {
|
|
39313
|
+
throw new RequiredError('id', 'Required parameter id was null or undefined when calling updateWebHook.');
|
|
39314
|
+
}
|
|
39315
|
+
// verify required parameter 'body' is not null or undefined
|
|
39316
|
+
if (body === null || body === undefined) {
|
|
39317
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling updateWebHook.');
|
|
39318
|
+
}
|
|
39319
|
+
const localVarPath = `/hook/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
39320
|
+
const localVarUrlObj = parse(localVarPath, true);
|
|
39321
|
+
let baseOptions;
|
|
39322
|
+
if (configuration) {
|
|
39323
|
+
baseOptions = configuration.baseOptions;
|
|
39324
|
+
}
|
|
39325
|
+
const localVarRequestOptions = {
|
|
39326
|
+
method: 'PUT',
|
|
39327
|
+
...baseOptions,
|
|
39328
|
+
...options,
|
|
39329
|
+
};
|
|
39330
|
+
const localVarHeaderParameter = {};
|
|
39331
|
+
const localVarQueryParameter = {};
|
|
39332
|
+
// authentication AccessToken required
|
|
39333
|
+
if (configuration && configuration.apiKey) {
|
|
39334
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
39335
|
+
? await configuration.apiKey('X-Webitel-Access')
|
|
39336
|
+
: await configuration.apiKey;
|
|
39337
|
+
localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
|
|
39338
|
+
}
|
|
39339
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
39340
|
+
localVarUrlObj.query = {
|
|
39341
|
+
...localVarUrlObj.query,
|
|
39342
|
+
...localVarQueryParameter,
|
|
39343
|
+
...options.query,
|
|
39344
|
+
};
|
|
39345
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
39346
|
+
delete localVarUrlObj.search;
|
|
39347
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
39348
|
+
localVarRequestOptions.headers = {
|
|
39349
|
+
...localVarHeaderParameter,
|
|
39350
|
+
...headersFromBaseOptions,
|
|
39351
|
+
...options.headers,
|
|
39352
|
+
};
|
|
39353
|
+
const needsSerialization = typeof body !== 'string' ||
|
|
39354
|
+
localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
39355
|
+
localVarRequestOptions.data = needsSerialization
|
|
39356
|
+
? JSON.stringify(body !== undefined ? body : {})
|
|
39357
|
+
: body || '';
|
|
39358
|
+
return {
|
|
39359
|
+
url: format(localVarUrlObj),
|
|
39360
|
+
options: localVarRequestOptions,
|
|
39361
|
+
};
|
|
39362
|
+
},
|
|
39363
|
+
};
|
|
39364
|
+
};
|
|
39365
|
+
/**
|
|
39366
|
+
* WebHookServiceApi - functional programming interface
|
|
39367
|
+
* @export
|
|
39368
|
+
*/
|
|
39369
|
+
const WebHookServiceApiFp = function (configuration) {
|
|
39370
|
+
return {
|
|
39371
|
+
/**
|
|
39372
|
+
*
|
|
39373
|
+
* @summary Create WebHook
|
|
39374
|
+
* @param {EngineCreateWebHookRequest} body
|
|
39375
|
+
* @param {*} [options] Override http request option.
|
|
39376
|
+
* @throws {RequiredError}
|
|
39377
|
+
*/
|
|
39378
|
+
async createWebHook(body, options) {
|
|
39379
|
+
const localVarAxiosArgs = await WebHookServiceApiAxiosParamCreator(configuration).createWebHook(body, options);
|
|
39380
|
+
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
39381
|
+
const axiosRequestArgs = {
|
|
39382
|
+
...localVarAxiosArgs.options,
|
|
39383
|
+
url: basePath + localVarAxiosArgs.url,
|
|
39384
|
+
};
|
|
39385
|
+
return axios.request(axiosRequestArgs);
|
|
39386
|
+
};
|
|
39387
|
+
},
|
|
39388
|
+
/**
|
|
39389
|
+
*
|
|
39390
|
+
* @summary Remove WebHook
|
|
39391
|
+
* @param {number} id
|
|
39392
|
+
* @param {*} [options] Override http request option.
|
|
39393
|
+
* @throws {RequiredError}
|
|
39394
|
+
*/
|
|
39395
|
+
async deleteWebHook(id, options) {
|
|
39396
|
+
const localVarAxiosArgs = await WebHookServiceApiAxiosParamCreator(configuration).deleteWebHook(id, options);
|
|
39397
|
+
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
39398
|
+
const axiosRequestArgs = {
|
|
39399
|
+
...localVarAxiosArgs.options,
|
|
39400
|
+
url: basePath + localVarAxiosArgs.url,
|
|
39401
|
+
};
|
|
39402
|
+
return axios.request(axiosRequestArgs);
|
|
39403
|
+
};
|
|
39404
|
+
},
|
|
39405
|
+
/**
|
|
39406
|
+
*
|
|
39407
|
+
* @summary Patch WebHook
|
|
39408
|
+
* @param {number} id
|
|
39409
|
+
* @param {EnginePatchWebHookRequest} body
|
|
39410
|
+
* @param {*} [options] Override http request option.
|
|
39411
|
+
* @throws {RequiredError}
|
|
39412
|
+
*/
|
|
39413
|
+
async patchWebHook(id, body, options) {
|
|
39414
|
+
const localVarAxiosArgs = await WebHookServiceApiAxiosParamCreator(configuration).patchWebHook(id, body, options);
|
|
39415
|
+
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
39416
|
+
const axiosRequestArgs = {
|
|
39417
|
+
...localVarAxiosArgs.options,
|
|
39418
|
+
url: basePath + localVarAxiosArgs.url,
|
|
39419
|
+
};
|
|
39420
|
+
return axios.request(axiosRequestArgs);
|
|
39421
|
+
};
|
|
39422
|
+
},
|
|
39423
|
+
/**
|
|
39424
|
+
*
|
|
39425
|
+
* @summary WebHook item
|
|
39426
|
+
* @param {number} id
|
|
39427
|
+
* @param {*} [options] Override http request option.
|
|
39428
|
+
* @throws {RequiredError}
|
|
39429
|
+
*/
|
|
39430
|
+
async readWebHook(id, options) {
|
|
39431
|
+
const localVarAxiosArgs = await WebHookServiceApiAxiosParamCreator(configuration).readWebHook(id, options);
|
|
39432
|
+
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
39433
|
+
const axiosRequestArgs = {
|
|
39434
|
+
...localVarAxiosArgs.options,
|
|
39435
|
+
url: basePath + localVarAxiosArgs.url,
|
|
39436
|
+
};
|
|
39437
|
+
return axios.request(axiosRequestArgs);
|
|
39438
|
+
};
|
|
39439
|
+
},
|
|
39440
|
+
/**
|
|
39441
|
+
*
|
|
39442
|
+
* @summary List of WebHook
|
|
39443
|
+
* @param {number} [page]
|
|
39444
|
+
* @param {number} [size]
|
|
39445
|
+
* @param {string} [q]
|
|
39446
|
+
* @param {string} [sort]
|
|
39447
|
+
* @param {Array<string>} [fields]
|
|
39448
|
+
* @param {Array<number>} [id]
|
|
39449
|
+
* @param {*} [options] Override http request option.
|
|
39450
|
+
* @throws {RequiredError}
|
|
39451
|
+
*/
|
|
39452
|
+
async searchWebHook(page, size, q, sort, fields, id, options) {
|
|
39453
|
+
const localVarAxiosArgs = await WebHookServiceApiAxiosParamCreator(configuration).searchWebHook(page, size, q, sort, fields, id, options);
|
|
39454
|
+
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
39455
|
+
const axiosRequestArgs = {
|
|
39456
|
+
...localVarAxiosArgs.options,
|
|
39457
|
+
url: basePath + localVarAxiosArgs.url,
|
|
39458
|
+
};
|
|
39459
|
+
return axios.request(axiosRequestArgs);
|
|
39460
|
+
};
|
|
39461
|
+
},
|
|
39462
|
+
/**
|
|
39463
|
+
*
|
|
39464
|
+
* @summary Update WebHook
|
|
39465
|
+
* @param {number} id
|
|
39466
|
+
* @param {EngineUpdateWebHookRequest} body
|
|
38605
39467
|
* @param {*} [options] Override http request option.
|
|
38606
39468
|
* @throws {RequiredError}
|
|
38607
39469
|
*/
|
|
38608
|
-
async
|
|
38609
|
-
const localVarAxiosArgs = await
|
|
39470
|
+
async updateWebHook(id, body, options) {
|
|
39471
|
+
const localVarAxiosArgs = await WebHookServiceApiAxiosParamCreator(configuration).updateWebHook(id, body, options);
|
|
38610
39472
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
38611
39473
|
const axiosRequestArgs = {
|
|
38612
39474
|
...localVarAxiosArgs.options,
|
|
@@ -38618,233 +39480,182 @@ const VariablesApiFp = function (configuration) {
|
|
|
38618
39480
|
};
|
|
38619
39481
|
};
|
|
38620
39482
|
/**
|
|
38621
|
-
*
|
|
39483
|
+
* WebHookServiceApi - factory interface
|
|
38622
39484
|
* @export
|
|
38623
39485
|
*/
|
|
38624
|
-
const
|
|
39486
|
+
const WebHookServiceApiFactory = function (configuration, basePath, axios) {
|
|
38625
39487
|
return {
|
|
38626
39488
|
/**
|
|
38627
39489
|
*
|
|
38628
|
-
* @summary
|
|
38629
|
-
* @param {
|
|
38630
|
-
* @param {string} etag Unique ID to remove.
|
|
38631
|
-
* @param {Array<string>} [fields] Fields to be retrieved as a result.
|
|
38632
|
-
* @param {*} [options] Override http request option.
|
|
38633
|
-
* @throws {RequiredError}
|
|
38634
|
-
*/
|
|
38635
|
-
deleteVariable(contactId, etag, fields, options) {
|
|
38636
|
-
return VariablesApiFp(configuration)
|
|
38637
|
-
.deleteVariable(contactId, etag, fields, options)
|
|
38638
|
-
.then((request) => request(axios, basePath));
|
|
38639
|
-
},
|
|
38640
|
-
/**
|
|
38641
|
-
*
|
|
38642
|
-
* @summary Remove variable(s) of the contact
|
|
38643
|
-
* @param {string} contactId Contact ID associated with.
|
|
38644
|
-
* @param {Array<string>} etag Set of unique ID(s) to remove.
|
|
38645
|
-
* @param {Array<string>} [fields] Fields to be retrieved as a result.
|
|
39490
|
+
* @summary Create WebHook
|
|
39491
|
+
* @param {EngineCreateWebHookRequest} body
|
|
38646
39492
|
* @param {*} [options] Override http request option.
|
|
38647
39493
|
* @throws {RequiredError}
|
|
38648
39494
|
*/
|
|
38649
|
-
|
|
38650
|
-
return
|
|
38651
|
-
.
|
|
39495
|
+
createWebHook(body, options) {
|
|
39496
|
+
return WebHookServiceApiFp(configuration)
|
|
39497
|
+
.createWebHook(body, options)
|
|
38652
39498
|
.then((request) => request(axios, basePath));
|
|
38653
39499
|
},
|
|
38654
39500
|
/**
|
|
38655
39501
|
*
|
|
38656
|
-
* @summary
|
|
38657
|
-
* @param {
|
|
38658
|
-
* @param {number} [page] Page number of result. offset = ((page-1)*size)
|
|
38659
|
-
* @param {number} [size] Size of result page. limit = (size++)
|
|
38660
|
-
* @param {string} [q] Search term: variable key; `?` - matches any one character `*` - matches 0 or more characters
|
|
38661
|
-
* @param {Array<string>} [sort] Sort the result according to fields.
|
|
38662
|
-
* @param {Array<string>} [fields] Fields to be retrieved as a result.
|
|
38663
|
-
* @param {Array<string>} [id] Record(s) with unique ID only.
|
|
39502
|
+
* @summary Remove WebHook
|
|
39503
|
+
* @param {number} id
|
|
38664
39504
|
* @param {*} [options] Override http request option.
|
|
38665
39505
|
* @throws {RequiredError}
|
|
38666
39506
|
*/
|
|
38667
|
-
|
|
38668
|
-
return
|
|
38669
|
-
.
|
|
39507
|
+
deleteWebHook(id, options) {
|
|
39508
|
+
return WebHookServiceApiFp(configuration)
|
|
39509
|
+
.deleteWebHook(id, options)
|
|
38670
39510
|
.then((request) => request(axios, basePath));
|
|
38671
39511
|
},
|
|
38672
39512
|
/**
|
|
38673
39513
|
*
|
|
38674
|
-
* @summary
|
|
38675
|
-
* @param {
|
|
38676
|
-
* @param {
|
|
38677
|
-
* @param {Array<string>} [fields] Fields to be retrieved as a result.
|
|
39514
|
+
* @summary Patch WebHook
|
|
39515
|
+
* @param {number} id
|
|
39516
|
+
* @param {EnginePatchWebHookRequest} body
|
|
38678
39517
|
* @param {*} [options] Override http request option.
|
|
38679
39518
|
* @throws {RequiredError}
|
|
38680
39519
|
*/
|
|
38681
|
-
|
|
38682
|
-
return
|
|
38683
|
-
.
|
|
39520
|
+
patchWebHook(id, body, options) {
|
|
39521
|
+
return WebHookServiceApiFp(configuration)
|
|
39522
|
+
.patchWebHook(id, body, options)
|
|
38684
39523
|
.then((request) => request(axios, basePath));
|
|
38685
39524
|
},
|
|
38686
39525
|
/**
|
|
38687
39526
|
*
|
|
38688
|
-
* @summary
|
|
38689
|
-
* @param {
|
|
38690
|
-
* @param {Array<WebitelContactsInputVariable>} input Fixed object of unique variables to associate with a Contact. Each individual key of an object represents a separate variable. Variable{key} already linked with the Contact but not listed here will be removed.
|
|
38691
|
-
* @param {Array<string>} [fields] Fields to be retrieved into result of changes.
|
|
39527
|
+
* @summary WebHook item
|
|
39528
|
+
* @param {number} id
|
|
38692
39529
|
* @param {*} [options] Override http request option.
|
|
38693
39530
|
* @throws {RequiredError}
|
|
38694
39531
|
*/
|
|
38695
|
-
|
|
38696
|
-
return
|
|
38697
|
-
.
|
|
39532
|
+
readWebHook(id, options) {
|
|
39533
|
+
return WebHookServiceApiFp(configuration)
|
|
39534
|
+
.readWebHook(id, options)
|
|
38698
39535
|
.then((request) => request(axios, basePath));
|
|
38699
39536
|
},
|
|
38700
39537
|
/**
|
|
38701
39538
|
*
|
|
38702
|
-
* @summary
|
|
38703
|
-
* @param {
|
|
38704
|
-
* @param {
|
|
38705
|
-
* @param {
|
|
38706
|
-
* @param {
|
|
39539
|
+
* @summary List of WebHook
|
|
39540
|
+
* @param {number} [page]
|
|
39541
|
+
* @param {number} [size]
|
|
39542
|
+
* @param {string} [q]
|
|
39543
|
+
* @param {string} [sort]
|
|
39544
|
+
* @param {Array<string>} [fields]
|
|
39545
|
+
* @param {Array<number>} [id]
|
|
38707
39546
|
* @param {*} [options] Override http request option.
|
|
38708
39547
|
* @throws {RequiredError}
|
|
38709
39548
|
*/
|
|
38710
|
-
|
|
38711
|
-
return
|
|
38712
|
-
.
|
|
39549
|
+
searchWebHook(page, size, q, sort, fields, id, options) {
|
|
39550
|
+
return WebHookServiceApiFp(configuration)
|
|
39551
|
+
.searchWebHook(page, size, q, sort, fields, id, options)
|
|
38713
39552
|
.then((request) => request(axios, basePath));
|
|
38714
39553
|
},
|
|
38715
39554
|
/**
|
|
38716
39555
|
*
|
|
38717
|
-
* @summary Update
|
|
38718
|
-
* @param {
|
|
38719
|
-
* @param {
|
|
38720
|
-
* @param {NEWVariableUpdate1} input
|
|
38721
|
-
* @param {Array<string>} [fields] Fields to be retrieved into result of changes.
|
|
39556
|
+
* @summary Update WebHook
|
|
39557
|
+
* @param {number} id
|
|
39558
|
+
* @param {EngineUpdateWebHookRequest} body
|
|
38722
39559
|
* @param {*} [options] Override http request option.
|
|
38723
39560
|
* @throws {RequiredError}
|
|
38724
39561
|
*/
|
|
38725
|
-
|
|
38726
|
-
return
|
|
38727
|
-
.
|
|
39562
|
+
updateWebHook(id, body, options) {
|
|
39563
|
+
return WebHookServiceApiFp(configuration)
|
|
39564
|
+
.updateWebHook(id, body, options)
|
|
38728
39565
|
.then((request) => request(axios, basePath));
|
|
38729
39566
|
},
|
|
38730
39567
|
};
|
|
38731
39568
|
};
|
|
38732
39569
|
/**
|
|
38733
|
-
*
|
|
39570
|
+
* WebHookServiceApi - object-oriented interface
|
|
38734
39571
|
* @export
|
|
38735
|
-
* @class
|
|
39572
|
+
* @class WebHookServiceApi
|
|
38736
39573
|
* @extends {BaseAPI}
|
|
38737
39574
|
*/
|
|
38738
|
-
class
|
|
38739
|
-
/**
|
|
38740
|
-
*
|
|
38741
|
-
* @summary Remove the contact\'s variable by etag
|
|
38742
|
-
* @param {string} contactId Contact ID associated with.
|
|
38743
|
-
* @param {string} etag Unique ID to remove.
|
|
38744
|
-
* @param {Array<string>} [fields] Fields to be retrieved as a result.
|
|
38745
|
-
* @param {*} [options] Override http request option.
|
|
38746
|
-
* @throws {RequiredError}
|
|
38747
|
-
* @memberof VariablesApi
|
|
38748
|
-
*/
|
|
38749
|
-
deleteVariable(contactId, etag, fields, options) {
|
|
38750
|
-
return VariablesApiFp(this.configuration)
|
|
38751
|
-
.deleteVariable(contactId, etag, fields, options)
|
|
38752
|
-
.then((request) => request(this.axios, this.basePath));
|
|
38753
|
-
}
|
|
39575
|
+
class WebHookServiceApi extends BaseAPI {
|
|
38754
39576
|
/**
|
|
38755
39577
|
*
|
|
38756
|
-
* @summary
|
|
38757
|
-
* @param {
|
|
38758
|
-
* @param {Array<string>} etag Set of unique ID(s) to remove.
|
|
38759
|
-
* @param {Array<string>} [fields] Fields to be retrieved as a result.
|
|
39578
|
+
* @summary Create WebHook
|
|
39579
|
+
* @param {EngineCreateWebHookRequest} body
|
|
38760
39580
|
* @param {*} [options] Override http request option.
|
|
38761
39581
|
* @throws {RequiredError}
|
|
38762
|
-
* @memberof
|
|
39582
|
+
* @memberof WebHookServiceApi
|
|
38763
39583
|
*/
|
|
38764
|
-
|
|
38765
|
-
return
|
|
38766
|
-
.
|
|
39584
|
+
createWebHook(body, options) {
|
|
39585
|
+
return WebHookServiceApiFp(this.configuration)
|
|
39586
|
+
.createWebHook(body, options)
|
|
38767
39587
|
.then((request) => request(this.axios, this.basePath));
|
|
38768
39588
|
}
|
|
38769
39589
|
/**
|
|
38770
39590
|
*
|
|
38771
|
-
* @summary
|
|
38772
|
-
* @param {
|
|
38773
|
-
* @param {number} [page] Page number of result. offset = ((page-1)*size)
|
|
38774
|
-
* @param {number} [size] Size of result page. limit = (size++)
|
|
38775
|
-
* @param {string} [q] Search term: variable key; `?` - matches any one character `*` - matches 0 or more characters
|
|
38776
|
-
* @param {Array<string>} [sort] Sort the result according to fields.
|
|
38777
|
-
* @param {Array<string>} [fields] Fields to be retrieved as a result.
|
|
38778
|
-
* @param {Array<string>} [id] Record(s) with unique ID only.
|
|
39591
|
+
* @summary Remove WebHook
|
|
39592
|
+
* @param {number} id
|
|
38779
39593
|
* @param {*} [options] Override http request option.
|
|
38780
39594
|
* @throws {RequiredError}
|
|
38781
|
-
* @memberof
|
|
39595
|
+
* @memberof WebHookServiceApi
|
|
38782
39596
|
*/
|
|
38783
|
-
|
|
38784
|
-
return
|
|
38785
|
-
.
|
|
39597
|
+
deleteWebHook(id, options) {
|
|
39598
|
+
return WebHookServiceApiFp(this.configuration)
|
|
39599
|
+
.deleteWebHook(id, options)
|
|
38786
39600
|
.then((request) => request(this.axios, this.basePath));
|
|
38787
39601
|
}
|
|
38788
39602
|
/**
|
|
38789
39603
|
*
|
|
38790
|
-
* @summary
|
|
38791
|
-
* @param {
|
|
38792
|
-
* @param {
|
|
38793
|
-
* @param {Array<string>} [fields] Fields to be retrieved as a result.
|
|
39604
|
+
* @summary Patch WebHook
|
|
39605
|
+
* @param {number} id
|
|
39606
|
+
* @param {EnginePatchWebHookRequest} body
|
|
38794
39607
|
* @param {*} [options] Override http request option.
|
|
38795
39608
|
* @throws {RequiredError}
|
|
38796
|
-
* @memberof
|
|
39609
|
+
* @memberof WebHookServiceApi
|
|
38797
39610
|
*/
|
|
38798
|
-
|
|
38799
|
-
return
|
|
38800
|
-
.
|
|
39611
|
+
patchWebHook(id, body, options) {
|
|
39612
|
+
return WebHookServiceApiFp(this.configuration)
|
|
39613
|
+
.patchWebHook(id, body, options)
|
|
38801
39614
|
.then((request) => request(this.axios, this.basePath));
|
|
38802
39615
|
}
|
|
38803
39616
|
/**
|
|
38804
39617
|
*
|
|
38805
|
-
* @summary
|
|
38806
|
-
* @param {
|
|
38807
|
-
* @param {Array<WebitelContactsInputVariable>} input Fixed object of unique variables to associate with a Contact. Each individual key of an object represents a separate variable. Variable{key} already linked with the Contact but not listed here will be removed.
|
|
38808
|
-
* @param {Array<string>} [fields] Fields to be retrieved into result of changes.
|
|
39618
|
+
* @summary WebHook item
|
|
39619
|
+
* @param {number} id
|
|
38809
39620
|
* @param {*} [options] Override http request option.
|
|
38810
39621
|
* @throws {RequiredError}
|
|
38811
|
-
* @memberof
|
|
39622
|
+
* @memberof WebHookServiceApi
|
|
38812
39623
|
*/
|
|
38813
|
-
|
|
38814
|
-
return
|
|
38815
|
-
.
|
|
39624
|
+
readWebHook(id, options) {
|
|
39625
|
+
return WebHookServiceApiFp(this.configuration)
|
|
39626
|
+
.readWebHook(id, options)
|
|
38816
39627
|
.then((request) => request(this.axios, this.basePath));
|
|
38817
39628
|
}
|
|
38818
39629
|
/**
|
|
38819
39630
|
*
|
|
38820
|
-
* @summary
|
|
38821
|
-
* @param {
|
|
38822
|
-
* @param {
|
|
38823
|
-
* @param {
|
|
38824
|
-
* @param {
|
|
39631
|
+
* @summary List of WebHook
|
|
39632
|
+
* @param {number} [page]
|
|
39633
|
+
* @param {number} [size]
|
|
39634
|
+
* @param {string} [q]
|
|
39635
|
+
* @param {string} [sort]
|
|
39636
|
+
* @param {Array<string>} [fields]
|
|
39637
|
+
* @param {Array<number>} [id]
|
|
38825
39638
|
* @param {*} [options] Override http request option.
|
|
38826
39639
|
* @throws {RequiredError}
|
|
38827
|
-
* @memberof
|
|
39640
|
+
* @memberof WebHookServiceApi
|
|
38828
39641
|
*/
|
|
38829
|
-
|
|
38830
|
-
return
|
|
38831
|
-
.
|
|
39642
|
+
searchWebHook(page, size, q, sort, fields, id, options) {
|
|
39643
|
+
return WebHookServiceApiFp(this.configuration)
|
|
39644
|
+
.searchWebHook(page, size, q, sort, fields, id, options)
|
|
38832
39645
|
.then((request) => request(this.axios, this.basePath));
|
|
38833
39646
|
}
|
|
38834
39647
|
/**
|
|
38835
39648
|
*
|
|
38836
|
-
* @summary Update
|
|
38837
|
-
* @param {
|
|
38838
|
-
* @param {
|
|
38839
|
-
* @param {NEWVariableUpdate1} input
|
|
38840
|
-
* @param {Array<string>} [fields] Fields to be retrieved into result of changes.
|
|
39649
|
+
* @summary Update WebHook
|
|
39650
|
+
* @param {number} id
|
|
39651
|
+
* @param {EngineUpdateWebHookRequest} body
|
|
38841
39652
|
* @param {*} [options] Override http request option.
|
|
38842
39653
|
* @throws {RequiredError}
|
|
38843
|
-
* @memberof
|
|
39654
|
+
* @memberof WebHookServiceApi
|
|
38844
39655
|
*/
|
|
38845
|
-
|
|
38846
|
-
return
|
|
38847
|
-
.
|
|
39656
|
+
updateWebHook(id, body, options) {
|
|
39657
|
+
return WebHookServiceApiFp(this.configuration)
|
|
39658
|
+
.updateWebHook(id, body, options)
|
|
38848
39659
|
.then((request) => request(this.axios, this.basePath));
|
|
38849
39660
|
}
|
|
38850
39661
|
}
|
|
@@ -41612,6 +42423,45 @@ var EngineCommunicationChannels;
|
|
|
41612
42423
|
* Do not edit the class manually.
|
|
41613
42424
|
*/
|
|
41614
42425
|
|
|
42426
|
+
// tslint:disable
|
|
42427
|
+
/**
|
|
42428
|
+
* Webitel API
|
|
42429
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
42430
|
+
*
|
|
42431
|
+
* The version of the OpenAPI document: 23.12.0
|
|
42432
|
+
* Contact: support@webitel.com
|
|
42433
|
+
*
|
|
42434
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
42435
|
+
* https://openapi-generator.tech
|
|
42436
|
+
* Do not edit the class manually.
|
|
42437
|
+
*/
|
|
42438
|
+
|
|
42439
|
+
// tslint:disable
|
|
42440
|
+
/**
|
|
42441
|
+
* Webitel API
|
|
42442
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
42443
|
+
*
|
|
42444
|
+
* The version of the OpenAPI document: 23.12.0
|
|
42445
|
+
* Contact: support@webitel.com
|
|
42446
|
+
*
|
|
42447
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
42448
|
+
* https://openapi-generator.tech
|
|
42449
|
+
* Do not edit the class manually.
|
|
42450
|
+
*/
|
|
42451
|
+
|
|
42452
|
+
// tslint:disable
|
|
42453
|
+
/**
|
|
42454
|
+
* Webitel API
|
|
42455
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
42456
|
+
*
|
|
42457
|
+
* The version of the OpenAPI document: 23.12.0
|
|
42458
|
+
* Contact: support@webitel.com
|
|
42459
|
+
*
|
|
42460
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
42461
|
+
* https://openapi-generator.tech
|
|
42462
|
+
* Do not edit the class manually.
|
|
42463
|
+
*/
|
|
42464
|
+
|
|
41615
42465
|
// tslint:disable
|
|
41616
42466
|
/**
|
|
41617
42467
|
* Webitel API
|
|
@@ -41986,6 +42836,32 @@ var EngineRoutingSchemaType;
|
|
|
41986
42836
|
* Do not edit the class manually.
|
|
41987
42837
|
*/
|
|
41988
42838
|
|
|
42839
|
+
// tslint:disable
|
|
42840
|
+
/**
|
|
42841
|
+
* Webitel API
|
|
42842
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
42843
|
+
*
|
|
42844
|
+
* The version of the OpenAPI document: 23.12.0
|
|
42845
|
+
* Contact: support@webitel.com
|
|
42846
|
+
*
|
|
42847
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
42848
|
+
* https://openapi-generator.tech
|
|
42849
|
+
* Do not edit the class manually.
|
|
42850
|
+
*/
|
|
42851
|
+
|
|
42852
|
+
// tslint:disable
|
|
42853
|
+
/**
|
|
42854
|
+
* Webitel API
|
|
42855
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
42856
|
+
*
|
|
42857
|
+
* The version of the OpenAPI document: 23.12.0
|
|
42858
|
+
* Contact: support@webitel.com
|
|
42859
|
+
*
|
|
42860
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
42861
|
+
* https://openapi-generator.tech
|
|
42862
|
+
* Do not edit the class manually.
|
|
42863
|
+
*/
|
|
42864
|
+
|
|
41989
42865
|
// tslint:disable
|
|
41990
42866
|
/**
|
|
41991
42867
|
* Webitel API
|
|
@@ -42578,6 +43454,32 @@ var EngineTriggerType;
|
|
|
42578
43454
|
* Do not edit the class manually.
|
|
42579
43455
|
*/
|
|
42580
43456
|
|
|
43457
|
+
// tslint:disable
|
|
43458
|
+
/**
|
|
43459
|
+
* Webitel API
|
|
43460
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
43461
|
+
*
|
|
43462
|
+
* The version of the OpenAPI document: 23.12.0
|
|
43463
|
+
* Contact: support@webitel.com
|
|
43464
|
+
*
|
|
43465
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
43466
|
+
* https://openapi-generator.tech
|
|
43467
|
+
* Do not edit the class manually.
|
|
43468
|
+
*/
|
|
43469
|
+
|
|
43470
|
+
// tslint:disable
|
|
43471
|
+
/**
|
|
43472
|
+
* Webitel API
|
|
43473
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
43474
|
+
*
|
|
43475
|
+
* The version of the OpenAPI document: 23.12.0
|
|
43476
|
+
* Contact: support@webitel.com
|
|
43477
|
+
*
|
|
43478
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
43479
|
+
* https://openapi-generator.tech
|
|
43480
|
+
* Do not edit the class manually.
|
|
43481
|
+
*/
|
|
43482
|
+
|
|
42581
43483
|
// tslint:disable
|
|
42582
43484
|
/**
|
|
42583
43485
|
* Webitel API
|
|
@@ -46419,6 +47321,9 @@ class Client extends EventEmitter {
|
|
|
46419
47321
|
name: 'TODO',
|
|
46420
47322
|
type: 'webitel',
|
|
46421
47323
|
});
|
|
47324
|
+
if (conv.closed_at) {
|
|
47325
|
+
c.setClosed(conv.closed_at);
|
|
47326
|
+
}
|
|
46422
47327
|
}
|
|
46423
47328
|
else {
|
|
46424
47329
|
this.log.error(`conversation ${conv.id} not valid`);
|
|
@@ -47593,5 +48498,5 @@ class ExternalClient extends ee_3 {
|
|
|
47593
48498
|
|
|
47594
48499
|
// tslint:disable
|
|
47595
48500
|
|
|
47596
|
-
export { AgentPauseCauseServiceApiAxiosParamCreator, AgentPauseCauseServiceApiFp, AgentPauseCauseServiceApiFactory, AgentPauseCauseServiceApi, AgentServiceApiAxiosParamCreator, AgentServiceApiFp, AgentServiceApiFactory, AgentServiceApi, AgentSkillServiceApiAxiosParamCreator, AgentSkillServiceApiFp, AgentSkillServiceApiFactory, AgentSkillServiceApi, AgentTeamServiceApiAxiosParamCreator, AgentTeamServiceApiFp, AgentTeamServiceApiFactory, AgentTeamServiceApi, AuditFormServiceApiAxiosParamCreator, AuditFormServiceApiFp, AuditFormServiceApiFactory, AuditFormServiceApi, BackendProfileServiceApiAxiosParamCreator, BackendProfileServiceApiFp, BackendProfileServiceApiFactory, BackendProfileServiceApi, BucketServiceApiAxiosParamCreator, BucketServiceApiFp, BucketServiceApiFactory, BucketServiceApi, CalendarServiceApiAxiosParamCreator, CalendarServiceApiFp, CalendarServiceApiFactory, CalendarServiceApi, CallServiceApiAxiosParamCreator, CallServiceApiFp, CallServiceApiFactory, CallServiceApi, CatalogApiAxiosParamCreator, CatalogApiFp, CatalogApiFactory, CatalogApi, ChatHelperServiceApiAxiosParamCreator, ChatHelperServiceApiFp, ChatHelperServiceApiFactory, ChatHelperServiceApi, CognitiveProfileServiceApiAxiosParamCreator, CognitiveProfileServiceApiFp, CognitiveProfileServiceApiFactory, CognitiveProfileServiceApi, CommunicationTypeServiceApiAxiosParamCreator, CommunicationTypeServiceApiFp, CommunicationTypeServiceApiFactory, CommunicationTypeServiceApi, ConfigServiceApiAxiosParamCreator, ConfigServiceApiFp, ConfigServiceApiFactory, ConfigServiceApi, ContactsApiAxiosParamCreator, ContactsApiFp, ContactsApiFactory, ContactsApi, EmailProfileServiceApiAxiosParamCreator, EmailProfileServiceApiFp, EmailProfileServiceApiFactory, EmailProfileServiceApi, EmailsApiAxiosParamCreator, EmailsApiFp, EmailsApiFactory, EmailsApi, FileServiceApiAxiosParamCreator, FileServiceApiFp, FileServiceApiFactory, FileServiceApi, FileTranscriptServiceApiAxiosParamCreator, FileTranscriptServiceApiFp, FileTranscriptServiceApiFactory, FileTranscriptServiceApi, ImportTemplateServiceApiAxiosParamCreator, ImportTemplateServiceApiFp, ImportTemplateServiceApiFactory, ImportTemplateServiceApi, LabelsApiAxiosParamCreator, LabelsApiFp, LabelsApiFactory, LabelsApi, ListServiceApiAxiosParamCreator, ListServiceApiFp, ListServiceApiFactory, ListServiceApi, LoggerServiceApiAxiosParamCreator, LoggerServiceApiFp, LoggerServiceApiFactory, LoggerServiceApi, ManagersApiAxiosParamCreator, ManagersApiFp, ManagersApiFactory, ManagersApi, MediaFileServiceApiAxiosParamCreator, MediaFileServiceApiFp, MediaFileServiceApiFactory, MediaFileServiceApi, MemberServiceApiAxiosParamCreator, MemberServiceApiFp, MemberServiceApiFactory, MemberServiceApi, OutboundResourceGroupServiceApiAxiosParamCreator, OutboundResourceGroupServiceApiFp, OutboundResourceGroupServiceApiFactory, OutboundResourceGroupServiceApi, OutboundResourceServiceApiAxiosParamCreator, OutboundResourceServiceApiFp, OutboundResourceServiceApiFactory, OutboundResourceServiceApi, PhonesApiAxiosParamCreator, PhonesApiFp, PhonesApiFactory, PhonesApi, PresetQueryServiceApiAxiosParamCreator, PresetQueryServiceApiFp, PresetQueryServiceApiFactory, PresetQueryServiceApi, QueueBucketServiceApiAxiosParamCreator, QueueBucketServiceApiFp, QueueBucketServiceApiFactory, QueueBucketServiceApi, QueueHookServiceApiAxiosParamCreator, QueueHookServiceApiFp, QueueHookServiceApiFactory, QueueHookServiceApi, QueueResourcesServiceApiAxiosParamCreator, QueueResourcesServiceApiFp, QueueResourcesServiceApiFactory, QueueResourcesServiceApi, QueueServiceApiAxiosParamCreator, QueueServiceApiFp, QueueServiceApiFactory, QueueServiceApi, QueueSkillServiceApiAxiosParamCreator, QueueSkillServiceApiFp, QueueSkillServiceApiFactory, QueueSkillServiceApi, RegionServiceApiAxiosParamCreator, RegionServiceApiFp, RegionServiceApiFactory, RegionServiceApi, RoutingChatPlanServiceApiAxiosParamCreator, RoutingChatPlanServiceApiFp, RoutingChatPlanServiceApiFactory, RoutingChatPlanServiceApi, RoutingOutboundCallServiceApiAxiosParamCreator, RoutingOutboundCallServiceApiFp, RoutingOutboundCallServiceApiFactory, RoutingOutboundCallServiceApi, RoutingSchemaServiceApiAxiosParamCreator, RoutingSchemaServiceApiFp, RoutingSchemaServiceApiFactory, RoutingSchemaServiceApi, RoutingVariableServiceApiAxiosParamCreator, RoutingVariableServiceApiFp, RoutingVariableServiceApiFactory, RoutingVariableServiceApi, SkillServiceApiAxiosParamCreator, SkillServiceApiFp, SkillServiceApiFactory, SkillServiceApi, SystemSettingServiceApiAxiosParamCreator, SystemSettingServiceApiFp, SystemSettingServiceApiFactory, SystemSettingServiceApi, TimezonesApiAxiosParamCreator, TimezonesApiFp, TimezonesApiFactory, TimezonesApi, TriggerServiceApiAxiosParamCreator, TriggerServiceApiFp, TriggerServiceApiFactory, TriggerServiceApi, UserHelperServiceApiAxiosParamCreator, UserHelperServiceApiFp, UserHelperServiceApiFactory, UserHelperServiceApi, VariablesApiAxiosParamCreator, VariablesApiFp, VariablesApiFactory, VariablesApi, Configuration, EngineAuditQuestionType, EngineBoolFilter, EngineCommunicationChannels, EnginePresetQuerySection, EngineRoutingSchemaType, EngineSystemSettingName, EngineTriggerJobState, EngineTriggerType, GoogleProtobufNullValue, HistoryFileJobHistoryFileJobAction, HistoryFileJobHistoryFileJobState, LoggerAction, LoggerAvailableSystemObjects, ProtobufNullValue, StorageImportSourceType, StorageProviderType, StorageServiceType, StorageUploadStatusCode, WebitelContactsAccessMode, JobState, Response, Client, CallReportingStatus, EavesdropState, EavesdropType, CallActions, CallDirection, Call, AgentStatus, ChannelState, ChannelType, Agent, DeclineCause, ChatActions, ConversationState, Conversation, TypeErrors, DeviceNotFoundError, DeviceNotAllowPermissionError, RolePermissionError, LicencePermissionError, PauseNotAllowedError, SipClient, ExternalClient, SipPhone, Log };
|
|
48501
|
+
export { AgentPauseCauseServiceApiAxiosParamCreator, AgentPauseCauseServiceApiFp, AgentPauseCauseServiceApiFactory, AgentPauseCauseServiceApi, AgentServiceApiAxiosParamCreator, AgentServiceApiFp, AgentServiceApiFactory, AgentServiceApi, AgentSkillServiceApiAxiosParamCreator, AgentSkillServiceApiFp, AgentSkillServiceApiFactory, AgentSkillServiceApi, AgentTeamServiceApiAxiosParamCreator, AgentTeamServiceApiFp, AgentTeamServiceApiFactory, AgentTeamServiceApi, AuditFormServiceApiAxiosParamCreator, AuditFormServiceApiFp, AuditFormServiceApiFactory, AuditFormServiceApi, BackendProfileServiceApiAxiosParamCreator, BackendProfileServiceApiFp, BackendProfileServiceApiFactory, BackendProfileServiceApi, BucketServiceApiAxiosParamCreator, BucketServiceApiFp, BucketServiceApiFactory, BucketServiceApi, CalendarServiceApiAxiosParamCreator, CalendarServiceApiFp, CalendarServiceApiFactory, CalendarServiceApi, CallServiceApiAxiosParamCreator, CallServiceApiFp, CallServiceApiFactory, CallServiceApi, CatalogApiAxiosParamCreator, CatalogApiFp, CatalogApiFactory, CatalogApi, ChatHelperServiceApiAxiosParamCreator, ChatHelperServiceApiFp, ChatHelperServiceApiFactory, ChatHelperServiceApi, CognitiveProfileServiceApiAxiosParamCreator, CognitiveProfileServiceApiFp, CognitiveProfileServiceApiFactory, CognitiveProfileServiceApi, CommunicationTypeServiceApiAxiosParamCreator, CommunicationTypeServiceApiFp, CommunicationTypeServiceApiFactory, CommunicationTypeServiceApi, ConfigServiceApiAxiosParamCreator, ConfigServiceApiFp, ConfigServiceApiFactory, ConfigServiceApi, ContactsApiAxiosParamCreator, ContactsApiFp, ContactsApiFactory, ContactsApi, EmailProfileServiceApiAxiosParamCreator, EmailProfileServiceApiFp, EmailProfileServiceApiFactory, EmailProfileServiceApi, EmailsApiAxiosParamCreator, EmailsApiFp, EmailsApiFactory, EmailsApi, FileServiceApiAxiosParamCreator, FileServiceApiFp, FileServiceApiFactory, FileServiceApi, FileTranscriptServiceApiAxiosParamCreator, FileTranscriptServiceApiFp, FileTranscriptServiceApiFactory, FileTranscriptServiceApi, ImportTemplateServiceApiAxiosParamCreator, ImportTemplateServiceApiFp, ImportTemplateServiceApiFactory, ImportTemplateServiceApi, LabelsApiAxiosParamCreator, LabelsApiFp, LabelsApiFactory, LabelsApi, ListServiceApiAxiosParamCreator, ListServiceApiFp, ListServiceApiFactory, ListServiceApi, LoggerServiceApiAxiosParamCreator, LoggerServiceApiFp, LoggerServiceApiFactory, LoggerServiceApi, ManagersApiAxiosParamCreator, ManagersApiFp, ManagersApiFactory, ManagersApi, MediaFileServiceApiAxiosParamCreator, MediaFileServiceApiFp, MediaFileServiceApiFactory, MediaFileServiceApi, MemberServiceApiAxiosParamCreator, MemberServiceApiFp, MemberServiceApiFactory, MemberServiceApi, OutboundResourceGroupServiceApiAxiosParamCreator, OutboundResourceGroupServiceApiFp, OutboundResourceGroupServiceApiFactory, OutboundResourceGroupServiceApi, OutboundResourceServiceApiAxiosParamCreator, OutboundResourceServiceApiFp, OutboundResourceServiceApiFactory, OutboundResourceServiceApi, PhonesApiAxiosParamCreator, PhonesApiFp, PhonesApiFactory, PhonesApi, PresetQueryServiceApiAxiosParamCreator, PresetQueryServiceApiFp, PresetQueryServiceApiFactory, PresetQueryServiceApi, QueueBucketServiceApiAxiosParamCreator, QueueBucketServiceApiFp, QueueBucketServiceApiFactory, QueueBucketServiceApi, QueueHookServiceApiAxiosParamCreator, QueueHookServiceApiFp, QueueHookServiceApiFactory, QueueHookServiceApi, QueueResourcesServiceApiAxiosParamCreator, QueueResourcesServiceApiFp, QueueResourcesServiceApiFactory, QueueResourcesServiceApi, QueueServiceApiAxiosParamCreator, QueueServiceApiFp, QueueServiceApiFactory, QueueServiceApi, QueueSkillServiceApiAxiosParamCreator, QueueSkillServiceApiFp, QueueSkillServiceApiFactory, QueueSkillServiceApi, RegionServiceApiAxiosParamCreator, RegionServiceApiFp, RegionServiceApiFactory, RegionServiceApi, RoutingChatPlanServiceApiAxiosParamCreator, RoutingChatPlanServiceApiFp, RoutingChatPlanServiceApiFactory, RoutingChatPlanServiceApi, RoutingOutboundCallServiceApiAxiosParamCreator, RoutingOutboundCallServiceApiFp, RoutingOutboundCallServiceApiFactory, RoutingOutboundCallServiceApi, RoutingSchemaServiceApiAxiosParamCreator, RoutingSchemaServiceApiFp, RoutingSchemaServiceApiFactory, RoutingSchemaServiceApi, RoutingVariableServiceApiAxiosParamCreator, RoutingVariableServiceApiFp, RoutingVariableServiceApiFactory, RoutingVariableServiceApi, SchemaVersionServiceApiAxiosParamCreator, SchemaVersionServiceApiFp, SchemaVersionServiceApiFactory, SchemaVersionServiceApi, SkillServiceApiAxiosParamCreator, SkillServiceApiFp, SkillServiceApiFactory, SkillServiceApi, SystemSettingServiceApiAxiosParamCreator, SystemSettingServiceApiFp, SystemSettingServiceApiFactory, SystemSettingServiceApi, TimezonesApiAxiosParamCreator, TimezonesApiFp, TimezonesApiFactory, TimezonesApi, TriggerServiceApiAxiosParamCreator, TriggerServiceApiFp, TriggerServiceApiFactory, TriggerServiceApi, UserHelperServiceApiAxiosParamCreator, UserHelperServiceApiFp, UserHelperServiceApiFactory, UserHelperServiceApi, VariablesApiAxiosParamCreator, VariablesApiFp, VariablesApiFactory, VariablesApi, WebHookServiceApiAxiosParamCreator, WebHookServiceApiFp, WebHookServiceApiFactory, WebHookServiceApi, Configuration, EngineAuditQuestionType, EngineBoolFilter, EngineCommunicationChannels, EnginePresetQuerySection, EngineRoutingSchemaType, EngineSystemSettingName, EngineTriggerJobState, EngineTriggerType, GoogleProtobufNullValue, HistoryFileJobHistoryFileJobAction, HistoryFileJobHistoryFileJobState, LoggerAction, LoggerAvailableSystemObjects, ProtobufNullValue, StorageImportSourceType, StorageProviderType, StorageServiceType, StorageUploadStatusCode, WebitelContactsAccessMode, JobState, Response, Client, CallReportingStatus, EavesdropState, EavesdropType, CallActions, CallDirection, Call, AgentStatus, ChannelState, ChannelType, Agent, DeclineCause, ChatActions, ConversationState, Conversation, TypeErrors, DeviceNotFoundError, DeviceNotAllowPermissionError, RolePermissionError, LicencePermissionError, PauseNotAllowedError, SipClient, ExternalClient, SipPhone, Log };
|
|
47597
48502
|
//# sourceMappingURL=index.esm.js.map
|