webitel-sdk 23.9.9 → 23.9.10

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.
Files changed (33) hide show
  1. package/bundles/index.esm.js +145 -0
  2. package/bundles/index.esm.js.map +1 -1
  3. package/bundles/index.esm.min.js +1 -1
  4. package/bundles/index.esm.min.js.map +1 -1
  5. package/bundles/index.umd.js +158 -0
  6. package/bundles/index.umd.js.map +1 -1
  7. package/bundles/index.umd.min.js +1 -1
  8. package/bundles/index.umd.min.js.map +1 -1
  9. package/esm2015/api/agent-service-api.js +119 -0
  10. package/esm2015/api/agent-service-api.js.map +1 -1
  11. package/esm2015/api/engine-list-user-status.js +13 -0
  12. package/esm2015/api/engine-list-user-status.js.map +1 -0
  13. package/esm2015/api/engine-user-status.js +13 -0
  14. package/esm2015/api/engine-user-status.js.map +1 -0
  15. package/esm2015/api/index.js +2 -0
  16. package/esm2015/api/index.js.map +1 -1
  17. package/esm5/api/agent-service-api.js +132 -0
  18. package/esm5/api/agent-service-api.js.map +1 -1
  19. package/esm5/api/engine-list-user-status.js +13 -0
  20. package/esm5/api/engine-list-user-status.js.map +1 -0
  21. package/esm5/api/engine-user-status.js +13 -0
  22. package/esm5/api/engine-user-status.js.map +1 -0
  23. package/esm5/api/index.js +2 -0
  24. package/esm5/api/index.js.map +1 -1
  25. package/package.json +1 -1
  26. package/types/api/agent-service-api.d.ts +50 -0
  27. package/types/api/agent-service-api.d.ts.map +1 -1
  28. package/types/api/engine-list-user-status.d.ts +32 -0
  29. package/types/api/engine-list-user-status.d.ts.map +1 -0
  30. package/types/api/engine-user-status.d.ts +49 -0
  31. package/types/api/engine-user-status.d.ts.map +1 -0
  32. package/types/api/index.d.ts +2 -0
  33. package/types/api/index.d.ts.map +1 -1
@@ -1834,6 +1834,71 @@ const AgentServiceApiAxiosParamCreator = function (configuration) {
1834
1834
  options: localVarRequestOptions,
1835
1835
  };
1836
1836
  },
1837
+ /**
1838
+ *
1839
+ * @summary List of UserStatus
1840
+ * @param {number} [page]
1841
+ * @param {number} [size]
1842
+ * @param {string} [q]
1843
+ * @param {string} [sort]
1844
+ * @param {Array<string>} [fields]
1845
+ * @param {*} [options] Override http request option.
1846
+ * @throws {RequiredError}
1847
+ */
1848
+ searchUserStatus: async (page, size, q, sort, fields, options = {}) => {
1849
+ const localVarPath = `/call_center/users`;
1850
+ const localVarUrlObj = parse(localVarPath, true);
1851
+ let baseOptions;
1852
+ if (configuration) {
1853
+ baseOptions = configuration.baseOptions;
1854
+ }
1855
+ const localVarRequestOptions = {
1856
+ method: 'GET',
1857
+ ...baseOptions,
1858
+ ...options,
1859
+ };
1860
+ const localVarHeaderParameter = {};
1861
+ const localVarQueryParameter = {};
1862
+ // authentication AccessToken required
1863
+ if (configuration && configuration.apiKey) {
1864
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
1865
+ ? await configuration.apiKey('X-Webitel-Access')
1866
+ : await configuration.apiKey;
1867
+ localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
1868
+ }
1869
+ if (page !== undefined) {
1870
+ localVarQueryParameter['page'] = page;
1871
+ }
1872
+ if (size !== undefined) {
1873
+ localVarQueryParameter['size'] = size;
1874
+ }
1875
+ if (q !== undefined) {
1876
+ localVarQueryParameter['q'] = q;
1877
+ }
1878
+ if (sort !== undefined) {
1879
+ localVarQueryParameter['sort'] = sort;
1880
+ }
1881
+ if (fields) {
1882
+ localVarQueryParameter['fields'] = fields;
1883
+ }
1884
+ localVarUrlObj.query = {
1885
+ ...localVarUrlObj.query,
1886
+ ...localVarQueryParameter,
1887
+ ...options.query,
1888
+ };
1889
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
1890
+ delete localVarUrlObj.search;
1891
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1892
+ localVarRequestOptions.headers = {
1893
+ ...localVarHeaderParameter,
1894
+ ...headersFromBaseOptions,
1895
+ ...options.headers,
1896
+ };
1897
+ return {
1898
+ url: format(localVarUrlObj),
1899
+ options: localVarRequestOptions,
1900
+ };
1901
+ },
1837
1902
  /**
1838
1903
  *
1839
1904
  * @summary Update Agent
@@ -2320,6 +2385,27 @@ const AgentServiceApiFp = function (configuration) {
2320
2385
  return axios.request(axiosRequestArgs);
2321
2386
  };
2322
2387
  },
2388
+ /**
2389
+ *
2390
+ * @summary List of UserStatus
2391
+ * @param {number} [page]
2392
+ * @param {number} [size]
2393
+ * @param {string} [q]
2394
+ * @param {string} [sort]
2395
+ * @param {Array<string>} [fields]
2396
+ * @param {*} [options] Override http request option.
2397
+ * @throws {RequiredError}
2398
+ */
2399
+ async searchUserStatus(page, size, q, sort, fields, options) {
2400
+ const localVarAxiosArgs = await AgentServiceApiAxiosParamCreator(configuration).searchUserStatus(page, size, q, sort, fields, options);
2401
+ return (axios = globalAxios, basePath = BASE_PATH) => {
2402
+ const axiosRequestArgs = {
2403
+ ...localVarAxiosArgs.options,
2404
+ url: basePath + localVarAxiosArgs.url,
2405
+ };
2406
+ return axios.request(axiosRequestArgs);
2407
+ };
2408
+ },
2323
2409
  /**
2324
2410
  *
2325
2411
  * @summary Update Agent
@@ -2635,6 +2721,22 @@ const AgentServiceApiFactory = function (configuration, basePath, axios) {
2635
2721
  .searchPauseCauseForAgent(agentId, allowChange, options)
2636
2722
  .then((request) => request(axios, basePath));
2637
2723
  },
2724
+ /**
2725
+ *
2726
+ * @summary List of UserStatus
2727
+ * @param {number} [page]
2728
+ * @param {number} [size]
2729
+ * @param {string} [q]
2730
+ * @param {string} [sort]
2731
+ * @param {Array<string>} [fields]
2732
+ * @param {*} [options] Override http request option.
2733
+ * @throws {RequiredError}
2734
+ */
2735
+ searchUserStatus(page, size, q, sort, fields, options) {
2736
+ return AgentServiceApiFp(configuration)
2737
+ .searchUserStatus(page, size, q, sort, fields, options)
2738
+ .then((request) => request(axios, basePath));
2739
+ },
2638
2740
  /**
2639
2741
  *
2640
2742
  * @summary Update Agent
@@ -2958,6 +3060,23 @@ class AgentServiceApi extends BaseAPI {
2958
3060
  .searchPauseCauseForAgent(agentId, allowChange, options)
2959
3061
  .then((request) => request(this.axios, this.basePath));
2960
3062
  }
3063
+ /**
3064
+ *
3065
+ * @summary List of UserStatus
3066
+ * @param {number} [page]
3067
+ * @param {number} [size]
3068
+ * @param {string} [q]
3069
+ * @param {string} [sort]
3070
+ * @param {Array<string>} [fields]
3071
+ * @param {*} [options] Override http request option.
3072
+ * @throws {RequiredError}
3073
+ * @memberof AgentServiceApi
3074
+ */
3075
+ searchUserStatus(page, size, q, sort, fields, options) {
3076
+ return AgentServiceApiFp(this.configuration)
3077
+ .searchUserStatus(page, size, q, sort, fields, options)
3078
+ .then((request) => request(this.axios, this.basePath));
3079
+ }
2961
3080
  /**
2962
3081
  *
2963
3082
  * @summary Update Agent
@@ -41071,6 +41190,19 @@ var EngineCommunicationChannels;
41071
41190
  * Do not edit the class manually.
41072
41191
  */
41073
41192
 
41193
+ // tslint:disable
41194
+ /**
41195
+ * Webitel API
41196
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
41197
+ *
41198
+ * The version of the OpenAPI document: 23.09.0
41199
+ * Contact: support@webitel.com
41200
+ *
41201
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
41202
+ * https://openapi-generator.tech
41203
+ * Do not edit the class manually.
41204
+ */
41205
+
41074
41206
  // tslint:disable
41075
41207
  /**
41076
41208
  * Webitel API
@@ -42011,6 +42143,19 @@ var EngineTriggerType;
42011
42143
  * Do not edit the class manually.
42012
42144
  */
42013
42145
 
42146
+ // tslint:disable
42147
+ /**
42148
+ * Webitel API
42149
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
42150
+ *
42151
+ * The version of the OpenAPI document: 23.09.0
42152
+ * Contact: support@webitel.com
42153
+ *
42154
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
42155
+ * https://openapi-generator.tech
42156
+ * Do not edit the class manually.
42157
+ */
42158
+
42014
42159
  // tslint:disable
42015
42160
  /**
42016
42161
  * Webitel API