webitel-sdk 23.7.11 → 23.7.13
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 +1263 -209
- 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 +1194 -26
- 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/contacts-api.js +15 -15
- package/esm2015/api/contacts-api.js.map +1 -1
- package/esm2015/api/index.js +2 -0
- package/esm2015/api/index.js.map +1 -1
- package/esm2015/api/newupdate-of-the-phone-number-details.js +13 -0
- package/esm2015/api/newupdate-of-the-phone-number-details.js.map +1 -0
- package/esm2015/api/newupdate-of-the-phone-number-details1.js +13 -0
- package/esm2015/api/newupdate-of-the-phone-number-details1.js.map +1 -0
- package/esm2015/api/phones-api.js +1026 -0
- package/esm2015/api/phones-api.js.map +1 -0
- package/esm2015/api.js +1 -0
- package/esm2015/api.js.map +1 -1
- package/esm2015/socket/agent.js +21 -3
- package/esm2015/socket/agent.js.map +1 -1
- package/esm5/api/contacts-api.js +15 -15
- package/esm5/api/contacts-api.js.map +1 -1
- package/esm5/api/index.js +2 -0
- package/esm5/api/index.js.map +1 -1
- package/esm5/api/newupdate-of-the-phone-number-details.js +13 -0
- package/esm5/api/newupdate-of-the-phone-number-details.js.map +1 -0
- package/esm5/api/newupdate-of-the-phone-number-details1.js +13 -0
- package/esm5/api/newupdate-of-the-phone-number-details1.js.map +1 -0
- package/esm5/api/phones-api.js +1138 -0
- package/esm5/api/phones-api.js.map +1 -0
- package/esm5/api.js +1 -0
- package/esm5/api.js.map +1 -1
- package/esm5/socket/agent.js +21 -3
- package/esm5/socket/agent.js.map +1 -1
- package/package.json +1 -1
- package/types/api/contacts-api.d.ts +8 -8
- package/types/api/contacts-api.d.ts.map +1 -1
- package/types/api/index.d.ts +2 -0
- package/types/api/index.d.ts.map +1 -1
- package/types/api/newupdate-of-the-phone-number-details.d.ts +44 -0
- package/types/api/newupdate-of-the-phone-number-details.d.ts.map +1 -0
- package/types/api/newupdate-of-the-phone-number-details1.d.ts +44 -0
- package/types/api/newupdate-of-the-phone-number-details1.d.ts.map +1 -0
- package/types/api/phones-api.d.ts +422 -0
- package/types/api/phones-api.d.ts.map +1 -0
- package/types/api.d.ts +1 -0
- package/types/api.d.ts.map +1 -1
- package/types/socket/agent.d.ts +20 -6
- package/types/socket/agent.d.ts.map +1 -1
package/bundles/index.esm.js
CHANGED
|
@@ -12284,18 +12284,18 @@ const ContactsApiAxiosParamCreator = function (configuration) {
|
|
|
12284
12284
|
/**
|
|
12285
12285
|
*
|
|
12286
12286
|
* @summary Locate Contact source
|
|
12287
|
-
* @param {string}
|
|
12287
|
+
* @param {string} etag The Contact source IDentifier. Accept: `etag` (obsolete+) or `id`.
|
|
12288
12288
|
* @param {Array<string>} [fields] Source Fields to return into result.
|
|
12289
12289
|
* @param {'READ' | 'WRITE' | 'DELETE'} [mode] The requirement of a special access mode to the Source. - READ: Can `fetch` record. [GET] - WRITE: Can `update` record. [PUT|PATCH] - DELETE: Can `delete` record. [DELETE]
|
|
12290
12290
|
* @param {*} [options] Override http request option.
|
|
12291
12291
|
* @throws {RequiredError}
|
|
12292
12292
|
*/
|
|
12293
|
-
locateContact: async (
|
|
12294
|
-
// verify required parameter '
|
|
12295
|
-
if (
|
|
12296
|
-
throw new RequiredError('
|
|
12293
|
+
locateContact: async (etag, fields, mode, options = {}) => {
|
|
12294
|
+
// verify required parameter 'etag' is not null or undefined
|
|
12295
|
+
if (etag === null || etag === undefined) {
|
|
12296
|
+
throw new RequiredError('etag', 'Required parameter etag was null or undefined when calling locateContact.');
|
|
12297
12297
|
}
|
|
12298
|
-
const localVarPath = `/contacts/{
|
|
12298
|
+
const localVarPath = `/contacts/{etag}`.replace(`{${'etag'}}`, encodeURIComponent(String(etag)));
|
|
12299
12299
|
const localVarUrlObj = parse(localVarPath, true);
|
|
12300
12300
|
let baseOptions;
|
|
12301
12301
|
if (configuration) {
|
|
@@ -12528,14 +12528,14 @@ const ContactsApiFp = function (configuration) {
|
|
|
12528
12528
|
/**
|
|
12529
12529
|
*
|
|
12530
12530
|
* @summary Locate Contact source
|
|
12531
|
-
* @param {string}
|
|
12531
|
+
* @param {string} etag The Contact source IDentifier. Accept: `etag` (obsolete+) or `id`.
|
|
12532
12532
|
* @param {Array<string>} [fields] Source Fields to return into result.
|
|
12533
12533
|
* @param {'READ' | 'WRITE' | 'DELETE'} [mode] The requirement of a special access mode to the Source. - READ: Can `fetch` record. [GET] - WRITE: Can `update` record. [PUT|PATCH] - DELETE: Can `delete` record. [DELETE]
|
|
12534
12534
|
* @param {*} [options] Override http request option.
|
|
12535
12535
|
* @throws {RequiredError}
|
|
12536
12536
|
*/
|
|
12537
|
-
async locateContact(
|
|
12538
|
-
const localVarAxiosArgs = await ContactsApiAxiosParamCreator(configuration).locateContact(
|
|
12537
|
+
async locateContact(etag, fields, mode, options) {
|
|
12538
|
+
const localVarAxiosArgs = await ContactsApiAxiosParamCreator(configuration).locateContact(etag, fields, mode, options);
|
|
12539
12539
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
12540
12540
|
const axiosRequestArgs = {
|
|
12541
12541
|
...localVarAxiosArgs.options,
|
|
@@ -12624,15 +12624,15 @@ const ContactsApiFactory = function (configuration, basePath, axios) {
|
|
|
12624
12624
|
/**
|
|
12625
12625
|
*
|
|
12626
12626
|
* @summary Locate Contact source
|
|
12627
|
-
* @param {string}
|
|
12627
|
+
* @param {string} etag The Contact source IDentifier. Accept: `etag` (obsolete+) or `id`.
|
|
12628
12628
|
* @param {Array<string>} [fields] Source Fields to return into result.
|
|
12629
12629
|
* @param {'READ' | 'WRITE' | 'DELETE'} [mode] The requirement of a special access mode to the Source. - READ: Can `fetch` record. [GET] - WRITE: Can `update` record. [PUT|PATCH] - DELETE: Can `delete` record. [DELETE]
|
|
12630
12630
|
* @param {*} [options] Override http request option.
|
|
12631
12631
|
* @throws {RequiredError}
|
|
12632
12632
|
*/
|
|
12633
|
-
locateContact(
|
|
12633
|
+
locateContact(etag, fields, mode, options) {
|
|
12634
12634
|
return ContactsApiFp(configuration)
|
|
12635
|
-
.locateContact(
|
|
12635
|
+
.locateContact(etag, fields, mode, options)
|
|
12636
12636
|
.then((request) => request(axios, basePath));
|
|
12637
12637
|
},
|
|
12638
12638
|
/**
|
|
@@ -12708,16 +12708,16 @@ class ContactsApi extends BaseAPI {
|
|
|
12708
12708
|
/**
|
|
12709
12709
|
*
|
|
12710
12710
|
* @summary Locate Contact source
|
|
12711
|
-
* @param {string}
|
|
12711
|
+
* @param {string} etag The Contact source IDentifier. Accept: `etag` (obsolete+) or `id`.
|
|
12712
12712
|
* @param {Array<string>} [fields] Source Fields to return into result.
|
|
12713
12713
|
* @param {'READ' | 'WRITE' | 'DELETE'} [mode] The requirement of a special access mode to the Source. - READ: Can `fetch` record. [GET] - WRITE: Can `update` record. [PUT|PATCH] - DELETE: Can `delete` record. [DELETE]
|
|
12714
12714
|
* @param {*} [options] Override http request option.
|
|
12715
12715
|
* @throws {RequiredError}
|
|
12716
12716
|
* @memberof ContactsApi
|
|
12717
12717
|
*/
|
|
12718
|
-
locateContact(
|
|
12718
|
+
locateContact(etag, fields, mode, options) {
|
|
12719
12719
|
return ContactsApiFp(this.configuration)
|
|
12720
|
-
.locateContact(
|
|
12720
|
+
.locateContact(etag, fields, mode, options)
|
|
12721
12721
|
.then((request) => request(this.axios, this.basePath));
|
|
12722
12722
|
}
|
|
12723
12723
|
/**
|
|
@@ -23726,300 +23726,1310 @@ const OutboundResourceServiceApiFactory = function (configuration, basePath, axi
|
|
|
23726
23726
|
* @param {*} [options] Override http request option.
|
|
23727
23727
|
* @throws {RequiredError}
|
|
23728
23728
|
*/
|
|
23729
|
-
patchOutboundResource(id, body, options) {
|
|
23730
|
-
return OutboundResourceServiceApiFp(configuration)
|
|
23731
|
-
.patchOutboundResource(id, body, options)
|
|
23729
|
+
patchOutboundResource(id, body, options) {
|
|
23730
|
+
return OutboundResourceServiceApiFp(configuration)
|
|
23731
|
+
.patchOutboundResource(id, body, options)
|
|
23732
|
+
.then((request) => request(axios, basePath));
|
|
23733
|
+
},
|
|
23734
|
+
/**
|
|
23735
|
+
*
|
|
23736
|
+
* @summary OutboundResource item
|
|
23737
|
+
* @param {string} id
|
|
23738
|
+
* @param {string} [domainId]
|
|
23739
|
+
* @param {*} [options] Override http request option.
|
|
23740
|
+
* @throws {RequiredError}
|
|
23741
|
+
*/
|
|
23742
|
+
readOutboundResource(id, domainId, options) {
|
|
23743
|
+
return OutboundResourceServiceApiFp(configuration)
|
|
23744
|
+
.readOutboundResource(id, domainId, options)
|
|
23745
|
+
.then((request) => request(axios, basePath));
|
|
23746
|
+
},
|
|
23747
|
+
/**
|
|
23748
|
+
*
|
|
23749
|
+
* @summary ResourceDisplay item
|
|
23750
|
+
* @param {string} resourceId
|
|
23751
|
+
* @param {string} id
|
|
23752
|
+
* @param {string} [domainId]
|
|
23753
|
+
* @param {*} [options] Override http request option.
|
|
23754
|
+
* @throws {RequiredError}
|
|
23755
|
+
*/
|
|
23756
|
+
readOutboundResourceDisplay(resourceId, id, domainId, options) {
|
|
23757
|
+
return OutboundResourceServiceApiFp(configuration)
|
|
23758
|
+
.readOutboundResourceDisplay(resourceId, id, domainId, options)
|
|
23759
|
+
.then((request) => request(axios, basePath));
|
|
23760
|
+
},
|
|
23761
|
+
/**
|
|
23762
|
+
*
|
|
23763
|
+
* @summary List of OutboundResource
|
|
23764
|
+
* @param {number} [page]
|
|
23765
|
+
* @param {number} [size]
|
|
23766
|
+
* @param {string} [q]
|
|
23767
|
+
* @param {string} [sort]
|
|
23768
|
+
* @param {Array<string>} [fields]
|
|
23769
|
+
* @param {Array<number>} [id]
|
|
23770
|
+
* @param {*} [options] Override http request option.
|
|
23771
|
+
* @throws {RequiredError}
|
|
23772
|
+
*/
|
|
23773
|
+
searchOutboundResource(page, size, q, sort, fields, id, options) {
|
|
23774
|
+
return OutboundResourceServiceApiFp(configuration)
|
|
23775
|
+
.searchOutboundResource(page, size, q, sort, fields, id, options)
|
|
23776
|
+
.then((request) => request(axios, basePath));
|
|
23777
|
+
},
|
|
23778
|
+
/**
|
|
23779
|
+
*
|
|
23780
|
+
* @summary List of ResourceDisplay
|
|
23781
|
+
* @param {string} resourceId
|
|
23782
|
+
* @param {number} [page]
|
|
23783
|
+
* @param {number} [size]
|
|
23784
|
+
* @param {string} [q]
|
|
23785
|
+
* @param {string} [sort]
|
|
23786
|
+
* @param {Array<string>} [fields]
|
|
23787
|
+
* @param {Array<number>} [id]
|
|
23788
|
+
* @param {*} [options] Override http request option.
|
|
23789
|
+
* @throws {RequiredError}
|
|
23790
|
+
*/
|
|
23791
|
+
searchOutboundResourceDisplay(resourceId, page, size, q, sort, fields, id, options) {
|
|
23792
|
+
return OutboundResourceServiceApiFp(configuration)
|
|
23793
|
+
.searchOutboundResourceDisplay(resourceId, page, size, q, sort, fields, id, options)
|
|
23794
|
+
.then((request) => request(axios, basePath));
|
|
23795
|
+
},
|
|
23796
|
+
/**
|
|
23797
|
+
*
|
|
23798
|
+
* @summary Update OutboundResource
|
|
23799
|
+
* @param {string} id
|
|
23800
|
+
* @param {EngineUpdateOutboundResourceRequest} body
|
|
23801
|
+
* @param {*} [options] Override http request option.
|
|
23802
|
+
* @throws {RequiredError}
|
|
23803
|
+
*/
|
|
23804
|
+
updateOutboundResource(id, body, options) {
|
|
23805
|
+
return OutboundResourceServiceApiFp(configuration)
|
|
23806
|
+
.updateOutboundResource(id, body, options)
|
|
23807
|
+
.then((request) => request(axios, basePath));
|
|
23808
|
+
},
|
|
23809
|
+
/**
|
|
23810
|
+
*
|
|
23811
|
+
* @summary Update ResourceDisplay
|
|
23812
|
+
* @param {string} resourceId
|
|
23813
|
+
* @param {string} id
|
|
23814
|
+
* @param {EngineUpdateOutboundResourceDisplayRequest} body
|
|
23815
|
+
* @param {*} [options] Override http request option.
|
|
23816
|
+
* @throws {RequiredError}
|
|
23817
|
+
*/
|
|
23818
|
+
updateOutboundResourceDisplay(resourceId, id, body, options) {
|
|
23819
|
+
return OutboundResourceServiceApiFp(configuration)
|
|
23820
|
+
.updateOutboundResourceDisplay(resourceId, id, body, options)
|
|
23821
|
+
.then((request) => request(axios, basePath));
|
|
23822
|
+
},
|
|
23823
|
+
};
|
|
23824
|
+
};
|
|
23825
|
+
/**
|
|
23826
|
+
* OutboundResourceServiceApi - object-oriented interface
|
|
23827
|
+
* @export
|
|
23828
|
+
* @class OutboundResourceServiceApi
|
|
23829
|
+
* @extends {BaseAPI}
|
|
23830
|
+
*/
|
|
23831
|
+
class OutboundResourceServiceApi extends BaseAPI {
|
|
23832
|
+
/**
|
|
23833
|
+
*
|
|
23834
|
+
* @summary Create OutboundResource
|
|
23835
|
+
* @param {EngineCreateOutboundResourceRequest} body
|
|
23836
|
+
* @param {*} [options] Override http request option.
|
|
23837
|
+
* @throws {RequiredError}
|
|
23838
|
+
* @memberof OutboundResourceServiceApi
|
|
23839
|
+
*/
|
|
23840
|
+
createOutboundResource(body, options) {
|
|
23841
|
+
return OutboundResourceServiceApiFp(this.configuration)
|
|
23842
|
+
.createOutboundResource(body, options)
|
|
23843
|
+
.then((request) => request(this.axios, this.basePath));
|
|
23844
|
+
}
|
|
23845
|
+
/**
|
|
23846
|
+
*
|
|
23847
|
+
* @summary Create CreateOutboundResourceDisplay
|
|
23848
|
+
* @param {string} resourceId
|
|
23849
|
+
* @param {EngineCreateOutboundResourceDisplayRequest} body
|
|
23850
|
+
* @param {*} [options] Override http request option.
|
|
23851
|
+
* @throws {RequiredError}
|
|
23852
|
+
* @memberof OutboundResourceServiceApi
|
|
23853
|
+
*/
|
|
23854
|
+
createOutboundResourceDisplay(resourceId, body, options) {
|
|
23855
|
+
return OutboundResourceServiceApiFp(this.configuration)
|
|
23856
|
+
.createOutboundResourceDisplay(resourceId, body, options)
|
|
23857
|
+
.then((request) => request(this.axios, this.basePath));
|
|
23858
|
+
}
|
|
23859
|
+
/**
|
|
23860
|
+
*
|
|
23861
|
+
* @summary Create CreateOutboundResourceDisplay
|
|
23862
|
+
* @param {string} resourceId
|
|
23863
|
+
* @param {EngineCreateOutboundResourceDisplayBulkRequest} body
|
|
23864
|
+
* @param {*} [options] Override http request option.
|
|
23865
|
+
* @throws {RequiredError}
|
|
23866
|
+
* @memberof OutboundResourceServiceApi
|
|
23867
|
+
*/
|
|
23868
|
+
createOutboundResourceDisplayBulk(resourceId, body, options) {
|
|
23869
|
+
return OutboundResourceServiceApiFp(this.configuration)
|
|
23870
|
+
.createOutboundResourceDisplayBulk(resourceId, body, options)
|
|
23871
|
+
.then((request) => request(this.axios, this.basePath));
|
|
23872
|
+
}
|
|
23873
|
+
/**
|
|
23874
|
+
*
|
|
23875
|
+
* @summary Remove OutboundResource
|
|
23876
|
+
* @param {string} id
|
|
23877
|
+
* @param {string} [domainId]
|
|
23878
|
+
* @param {*} [options] Override http request option.
|
|
23879
|
+
* @throws {RequiredError}
|
|
23880
|
+
* @memberof OutboundResourceServiceApi
|
|
23881
|
+
*/
|
|
23882
|
+
deleteOutboundResource(id, domainId, options) {
|
|
23883
|
+
return OutboundResourceServiceApiFp(this.configuration)
|
|
23884
|
+
.deleteOutboundResource(id, domainId, options)
|
|
23885
|
+
.then((request) => request(this.axios, this.basePath));
|
|
23886
|
+
}
|
|
23887
|
+
/**
|
|
23888
|
+
*
|
|
23889
|
+
* @summary Remove ResourceDisplay
|
|
23890
|
+
* @param {string} resourceId
|
|
23891
|
+
* @param {string} id
|
|
23892
|
+
* @param {string} [domainId]
|
|
23893
|
+
* @param {*} [options] Override http request option.
|
|
23894
|
+
* @throws {RequiredError}
|
|
23895
|
+
* @memberof OutboundResourceServiceApi
|
|
23896
|
+
*/
|
|
23897
|
+
deleteOutboundResourceDisplay(resourceId, id, domainId, options) {
|
|
23898
|
+
return OutboundResourceServiceApiFp(this.configuration)
|
|
23899
|
+
.deleteOutboundResourceDisplay(resourceId, id, domainId, options)
|
|
23900
|
+
.then((request) => request(this.axios, this.basePath));
|
|
23901
|
+
}
|
|
23902
|
+
/**
|
|
23903
|
+
*
|
|
23904
|
+
* @summary Remove ResourceDisplays
|
|
23905
|
+
* @param {string} resourceId
|
|
23906
|
+
* @param {Array<string>} [items]
|
|
23907
|
+
* @param {*} [options] Override http request option.
|
|
23908
|
+
* @throws {RequiredError}
|
|
23909
|
+
* @memberof OutboundResourceServiceApi
|
|
23910
|
+
*/
|
|
23911
|
+
deleteOutboundResourceDisplays(resourceId, items, options) {
|
|
23912
|
+
return OutboundResourceServiceApiFp(this.configuration)
|
|
23913
|
+
.deleteOutboundResourceDisplays(resourceId, items, options)
|
|
23914
|
+
.then((request) => request(this.axios, this.basePath));
|
|
23915
|
+
}
|
|
23916
|
+
/**
|
|
23917
|
+
*
|
|
23918
|
+
* @summary Patch OutboundResource
|
|
23919
|
+
* @param {string} id
|
|
23920
|
+
* @param {EnginePatchOutboundResourceRequest} body
|
|
23921
|
+
* @param {*} [options] Override http request option.
|
|
23922
|
+
* @throws {RequiredError}
|
|
23923
|
+
* @memberof OutboundResourceServiceApi
|
|
23924
|
+
*/
|
|
23925
|
+
patchOutboundResource(id, body, options) {
|
|
23926
|
+
return OutboundResourceServiceApiFp(this.configuration)
|
|
23927
|
+
.patchOutboundResource(id, body, options)
|
|
23928
|
+
.then((request) => request(this.axios, this.basePath));
|
|
23929
|
+
}
|
|
23930
|
+
/**
|
|
23931
|
+
*
|
|
23932
|
+
* @summary OutboundResource item
|
|
23933
|
+
* @param {string} id
|
|
23934
|
+
* @param {string} [domainId]
|
|
23935
|
+
* @param {*} [options] Override http request option.
|
|
23936
|
+
* @throws {RequiredError}
|
|
23937
|
+
* @memberof OutboundResourceServiceApi
|
|
23938
|
+
*/
|
|
23939
|
+
readOutboundResource(id, domainId, options) {
|
|
23940
|
+
return OutboundResourceServiceApiFp(this.configuration)
|
|
23941
|
+
.readOutboundResource(id, domainId, options)
|
|
23942
|
+
.then((request) => request(this.axios, this.basePath));
|
|
23943
|
+
}
|
|
23944
|
+
/**
|
|
23945
|
+
*
|
|
23946
|
+
* @summary ResourceDisplay item
|
|
23947
|
+
* @param {string} resourceId
|
|
23948
|
+
* @param {string} id
|
|
23949
|
+
* @param {string} [domainId]
|
|
23950
|
+
* @param {*} [options] Override http request option.
|
|
23951
|
+
* @throws {RequiredError}
|
|
23952
|
+
* @memberof OutboundResourceServiceApi
|
|
23953
|
+
*/
|
|
23954
|
+
readOutboundResourceDisplay(resourceId, id, domainId, options) {
|
|
23955
|
+
return OutboundResourceServiceApiFp(this.configuration)
|
|
23956
|
+
.readOutboundResourceDisplay(resourceId, id, domainId, options)
|
|
23957
|
+
.then((request) => request(this.axios, this.basePath));
|
|
23958
|
+
}
|
|
23959
|
+
/**
|
|
23960
|
+
*
|
|
23961
|
+
* @summary List of OutboundResource
|
|
23962
|
+
* @param {number} [page]
|
|
23963
|
+
* @param {number} [size]
|
|
23964
|
+
* @param {string} [q]
|
|
23965
|
+
* @param {string} [sort]
|
|
23966
|
+
* @param {Array<string>} [fields]
|
|
23967
|
+
* @param {Array<number>} [id]
|
|
23968
|
+
* @param {*} [options] Override http request option.
|
|
23969
|
+
* @throws {RequiredError}
|
|
23970
|
+
* @memberof OutboundResourceServiceApi
|
|
23971
|
+
*/
|
|
23972
|
+
searchOutboundResource(page, size, q, sort, fields, id, options) {
|
|
23973
|
+
return OutboundResourceServiceApiFp(this.configuration)
|
|
23974
|
+
.searchOutboundResource(page, size, q, sort, fields, id, options)
|
|
23975
|
+
.then((request) => request(this.axios, this.basePath));
|
|
23976
|
+
}
|
|
23977
|
+
/**
|
|
23978
|
+
*
|
|
23979
|
+
* @summary List of ResourceDisplay
|
|
23980
|
+
* @param {string} resourceId
|
|
23981
|
+
* @param {number} [page]
|
|
23982
|
+
* @param {number} [size]
|
|
23983
|
+
* @param {string} [q]
|
|
23984
|
+
* @param {string} [sort]
|
|
23985
|
+
* @param {Array<string>} [fields]
|
|
23986
|
+
* @param {Array<number>} [id]
|
|
23987
|
+
* @param {*} [options] Override http request option.
|
|
23988
|
+
* @throws {RequiredError}
|
|
23989
|
+
* @memberof OutboundResourceServiceApi
|
|
23990
|
+
*/
|
|
23991
|
+
searchOutboundResourceDisplay(resourceId, page, size, q, sort, fields, id, options) {
|
|
23992
|
+
return OutboundResourceServiceApiFp(this.configuration)
|
|
23993
|
+
.searchOutboundResourceDisplay(resourceId, page, size, q, sort, fields, id, options)
|
|
23994
|
+
.then((request) => request(this.axios, this.basePath));
|
|
23995
|
+
}
|
|
23996
|
+
/**
|
|
23997
|
+
*
|
|
23998
|
+
* @summary Update OutboundResource
|
|
23999
|
+
* @param {string} id
|
|
24000
|
+
* @param {EngineUpdateOutboundResourceRequest} body
|
|
24001
|
+
* @param {*} [options] Override http request option.
|
|
24002
|
+
* @throws {RequiredError}
|
|
24003
|
+
* @memberof OutboundResourceServiceApi
|
|
24004
|
+
*/
|
|
24005
|
+
updateOutboundResource(id, body, options) {
|
|
24006
|
+
return OutboundResourceServiceApiFp(this.configuration)
|
|
24007
|
+
.updateOutboundResource(id, body, options)
|
|
24008
|
+
.then((request) => request(this.axios, this.basePath));
|
|
24009
|
+
}
|
|
24010
|
+
/**
|
|
24011
|
+
*
|
|
24012
|
+
* @summary Update ResourceDisplay
|
|
24013
|
+
* @param {string} resourceId
|
|
24014
|
+
* @param {string} id
|
|
24015
|
+
* @param {EngineUpdateOutboundResourceDisplayRequest} body
|
|
24016
|
+
* @param {*} [options] Override http request option.
|
|
24017
|
+
* @throws {RequiredError}
|
|
24018
|
+
* @memberof OutboundResourceServiceApi
|
|
24019
|
+
*/
|
|
24020
|
+
updateOutboundResourceDisplay(resourceId, id, body, options) {
|
|
24021
|
+
return OutboundResourceServiceApiFp(this.configuration)
|
|
24022
|
+
.updateOutboundResourceDisplay(resourceId, id, body, options)
|
|
24023
|
+
.then((request) => request(this.axios, this.basePath));
|
|
24024
|
+
}
|
|
24025
|
+
}
|
|
24026
|
+
|
|
24027
|
+
// tslint:disable
|
|
24028
|
+
/**
|
|
24029
|
+
* PhonesApi - axios parameter creator
|
|
24030
|
+
* @export
|
|
24031
|
+
*/
|
|
24032
|
+
const PhonesApiAxiosParamCreator = function (configuration) {
|
|
24033
|
+
return {
|
|
24034
|
+
/**
|
|
24035
|
+
*
|
|
24036
|
+
* @summary Remove the Contact\'s phone number
|
|
24037
|
+
* @param {string} contactId Link contact ID.
|
|
24038
|
+
* @param {string} etag Unique link ID to be removed.
|
|
24039
|
+
* @param {Array<string>} [fields] Fields to be retrieved into result.
|
|
24040
|
+
* @param {*} [options] Override http request option.
|
|
24041
|
+
* @throws {RequiredError}
|
|
24042
|
+
*/
|
|
24043
|
+
deletePhone: async (contactId, etag, fields, options = {}) => {
|
|
24044
|
+
// verify required parameter 'contactId' is not null or undefined
|
|
24045
|
+
if (contactId === null || contactId === undefined) {
|
|
24046
|
+
throw new RequiredError('contactId', 'Required parameter contactId was null or undefined when calling deletePhone.');
|
|
24047
|
+
}
|
|
24048
|
+
// verify required parameter 'etag' is not null or undefined
|
|
24049
|
+
if (etag === null || etag === undefined) {
|
|
24050
|
+
throw new RequiredError('etag', 'Required parameter etag was null or undefined when calling deletePhone.');
|
|
24051
|
+
}
|
|
24052
|
+
const localVarPath = `/contacts/{contact_id}/phones/{etag}`
|
|
24053
|
+
.replace(`{${'contact_id'}}`, encodeURIComponent(String(contactId)))
|
|
24054
|
+
.replace(`{${'etag'}}`, encodeURIComponent(String(etag)));
|
|
24055
|
+
const localVarUrlObj = parse(localVarPath, true);
|
|
24056
|
+
let baseOptions;
|
|
24057
|
+
if (configuration) {
|
|
24058
|
+
baseOptions = configuration.baseOptions;
|
|
24059
|
+
}
|
|
24060
|
+
const localVarRequestOptions = {
|
|
24061
|
+
method: 'DELETE',
|
|
24062
|
+
...baseOptions,
|
|
24063
|
+
...options,
|
|
24064
|
+
};
|
|
24065
|
+
const localVarHeaderParameter = {};
|
|
24066
|
+
const localVarQueryParameter = {};
|
|
24067
|
+
// authentication AccessToken required
|
|
24068
|
+
if (configuration && configuration.apiKey) {
|
|
24069
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
24070
|
+
? await configuration.apiKey('X-Webitel-Access')
|
|
24071
|
+
: await configuration.apiKey;
|
|
24072
|
+
localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
|
|
24073
|
+
}
|
|
24074
|
+
if (fields) {
|
|
24075
|
+
localVarQueryParameter['fields'] = fields;
|
|
24076
|
+
}
|
|
24077
|
+
localVarUrlObj.query = {
|
|
24078
|
+
...localVarUrlObj.query,
|
|
24079
|
+
...localVarQueryParameter,
|
|
24080
|
+
...options.query,
|
|
24081
|
+
};
|
|
24082
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
24083
|
+
delete localVarUrlObj.search;
|
|
24084
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
24085
|
+
localVarRequestOptions.headers = {
|
|
24086
|
+
...localVarHeaderParameter,
|
|
24087
|
+
...headersFromBaseOptions,
|
|
24088
|
+
...options.headers,
|
|
24089
|
+
};
|
|
24090
|
+
return {
|
|
24091
|
+
url: format(localVarUrlObj),
|
|
24092
|
+
options: localVarRequestOptions,
|
|
24093
|
+
};
|
|
24094
|
+
},
|
|
24095
|
+
/**
|
|
24096
|
+
*
|
|
24097
|
+
* @summary Remove the Contact\'s phone number association(s)
|
|
24098
|
+
* @param {string} contactId The Contact ID associated with.
|
|
24099
|
+
* @param {Array<string>} etag Set of linked ID(s) to be removed.
|
|
24100
|
+
* @param {Array<string>} [fields] Fields to be retrieved into result.
|
|
24101
|
+
* @param {*} [options] Override http request option.
|
|
24102
|
+
* @throws {RequiredError}
|
|
24103
|
+
*/
|
|
24104
|
+
deletePhones: async (contactId, etag, fields, options = {}) => {
|
|
24105
|
+
// verify required parameter 'contactId' is not null or undefined
|
|
24106
|
+
if (contactId === null || contactId === undefined) {
|
|
24107
|
+
throw new RequiredError('contactId', 'Required parameter contactId was null or undefined when calling deletePhones.');
|
|
24108
|
+
}
|
|
24109
|
+
// verify required parameter 'etag' is not null or undefined
|
|
24110
|
+
if (etag === null || etag === undefined) {
|
|
24111
|
+
throw new RequiredError('etag', 'Required parameter etag was null or undefined when calling deletePhones.');
|
|
24112
|
+
}
|
|
24113
|
+
const localVarPath = `/contacts/{contact_id}/phones`.replace(`{${'contact_id'}}`, encodeURIComponent(String(contactId)));
|
|
24114
|
+
const localVarUrlObj = parse(localVarPath, true);
|
|
24115
|
+
let baseOptions;
|
|
24116
|
+
if (configuration) {
|
|
24117
|
+
baseOptions = configuration.baseOptions;
|
|
24118
|
+
}
|
|
24119
|
+
const localVarRequestOptions = {
|
|
24120
|
+
method: 'DELETE',
|
|
24121
|
+
...baseOptions,
|
|
24122
|
+
...options,
|
|
24123
|
+
};
|
|
24124
|
+
const localVarHeaderParameter = {};
|
|
24125
|
+
const localVarQueryParameter = {};
|
|
24126
|
+
// authentication AccessToken required
|
|
24127
|
+
if (configuration && configuration.apiKey) {
|
|
24128
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
24129
|
+
? await configuration.apiKey('X-Webitel-Access')
|
|
24130
|
+
: await configuration.apiKey;
|
|
24131
|
+
localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
|
|
24132
|
+
}
|
|
24133
|
+
if (fields) {
|
|
24134
|
+
localVarQueryParameter['fields'] = fields;
|
|
24135
|
+
}
|
|
24136
|
+
if (etag) {
|
|
24137
|
+
localVarQueryParameter['etag'] = etag;
|
|
24138
|
+
}
|
|
24139
|
+
localVarUrlObj.query = {
|
|
24140
|
+
...localVarUrlObj.query,
|
|
24141
|
+
...localVarQueryParameter,
|
|
24142
|
+
...options.query,
|
|
24143
|
+
};
|
|
24144
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
24145
|
+
delete localVarUrlObj.search;
|
|
24146
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
24147
|
+
localVarRequestOptions.headers = {
|
|
24148
|
+
...localVarHeaderParameter,
|
|
24149
|
+
...headersFromBaseOptions,
|
|
24150
|
+
...options.headers,
|
|
24151
|
+
};
|
|
24152
|
+
return {
|
|
24153
|
+
url: format(localVarUrlObj),
|
|
24154
|
+
options: localVarRequestOptions,
|
|
24155
|
+
};
|
|
24156
|
+
},
|
|
24157
|
+
/**
|
|
24158
|
+
*
|
|
24159
|
+
* @summary Search phone number(s)
|
|
24160
|
+
* @param {string} contactId The Contact ID associated with.
|
|
24161
|
+
* @param {number} [page] Page number of result dataset records. offset = (page*size)
|
|
24162
|
+
* @param {number} [size] Size count of records on result page. limit = (size++)
|
|
24163
|
+
* @param {string} [q] Search term: phone number. `?` - matches any one character `*` - matches 0 or more characters
|
|
24164
|
+
* @param {Array<string>} [sort] Sort the result according to fields.
|
|
24165
|
+
* @param {Array<string>} [fields] Fields to be retrieved into result.
|
|
24166
|
+
* @param {Array<string>} [id] Link(s) with unique ID only.
|
|
24167
|
+
* @param {boolean} [primary] Primary phone only.
|
|
24168
|
+
* @param {boolean} [verified] Verified phone only.
|
|
24169
|
+
* @param {string} [typeId] Reference Object unique ID.
|
|
24170
|
+
* @param {string} [typeType] Reference Object well-known type.
|
|
24171
|
+
* @param {string} [typeName] Reference Object display name.
|
|
24172
|
+
* @param {*} [options] Override http request option.
|
|
24173
|
+
* @throws {RequiredError}
|
|
24174
|
+
*/
|
|
24175
|
+
listPhones: async (contactId, page, size, q, sort, fields, id, primary, verified, typeId, typeType, typeName, options = {}) => {
|
|
24176
|
+
// verify required parameter 'contactId' is not null or undefined
|
|
24177
|
+
if (contactId === null || contactId === undefined) {
|
|
24178
|
+
throw new RequiredError('contactId', 'Required parameter contactId was null or undefined when calling listPhones.');
|
|
24179
|
+
}
|
|
24180
|
+
const localVarPath = `/contacts/{contact_id}/phones`.replace(`{${'contact_id'}}`, encodeURIComponent(String(contactId)));
|
|
24181
|
+
const localVarUrlObj = parse(localVarPath, true);
|
|
24182
|
+
let baseOptions;
|
|
24183
|
+
if (configuration) {
|
|
24184
|
+
baseOptions = configuration.baseOptions;
|
|
24185
|
+
}
|
|
24186
|
+
const localVarRequestOptions = {
|
|
24187
|
+
method: 'GET',
|
|
24188
|
+
...baseOptions,
|
|
24189
|
+
...options,
|
|
24190
|
+
};
|
|
24191
|
+
const localVarHeaderParameter = {};
|
|
24192
|
+
const localVarQueryParameter = {};
|
|
24193
|
+
// authentication AccessToken required
|
|
24194
|
+
if (configuration && configuration.apiKey) {
|
|
24195
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
24196
|
+
? await configuration.apiKey('X-Webitel-Access')
|
|
24197
|
+
: await configuration.apiKey;
|
|
24198
|
+
localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
|
|
24199
|
+
}
|
|
24200
|
+
if (page !== undefined) {
|
|
24201
|
+
localVarQueryParameter['page'] = page;
|
|
24202
|
+
}
|
|
24203
|
+
if (size !== undefined) {
|
|
24204
|
+
localVarQueryParameter['size'] = size;
|
|
24205
|
+
}
|
|
24206
|
+
if (q !== undefined) {
|
|
24207
|
+
localVarQueryParameter['q'] = q;
|
|
24208
|
+
}
|
|
24209
|
+
if (sort) {
|
|
24210
|
+
localVarQueryParameter['sort'] = sort;
|
|
24211
|
+
}
|
|
24212
|
+
if (fields) {
|
|
24213
|
+
localVarQueryParameter['fields'] = fields;
|
|
24214
|
+
}
|
|
24215
|
+
if (id) {
|
|
24216
|
+
localVarQueryParameter['id'] = id;
|
|
24217
|
+
}
|
|
24218
|
+
if (primary !== undefined) {
|
|
24219
|
+
localVarQueryParameter['primary'] = primary;
|
|
24220
|
+
}
|
|
24221
|
+
if (verified !== undefined) {
|
|
24222
|
+
localVarQueryParameter['verified'] = verified;
|
|
24223
|
+
}
|
|
24224
|
+
if (typeId !== undefined) {
|
|
24225
|
+
localVarQueryParameter['type.id'] = typeId;
|
|
24226
|
+
}
|
|
24227
|
+
if (typeType !== undefined) {
|
|
24228
|
+
localVarQueryParameter['type.type'] = typeType;
|
|
24229
|
+
}
|
|
24230
|
+
if (typeName !== undefined) {
|
|
24231
|
+
localVarQueryParameter['type.name'] = typeName;
|
|
24232
|
+
}
|
|
24233
|
+
localVarUrlObj.query = {
|
|
24234
|
+
...localVarUrlObj.query,
|
|
24235
|
+
...localVarQueryParameter,
|
|
24236
|
+
...options.query,
|
|
24237
|
+
};
|
|
24238
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
24239
|
+
delete localVarUrlObj.search;
|
|
24240
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
24241
|
+
localVarRequestOptions.headers = {
|
|
24242
|
+
...localVarHeaderParameter,
|
|
24243
|
+
...headersFromBaseOptions,
|
|
24244
|
+
...options.headers,
|
|
24245
|
+
};
|
|
24246
|
+
return {
|
|
24247
|
+
url: format(localVarUrlObj),
|
|
24248
|
+
options: localVarRequestOptions,
|
|
24249
|
+
};
|
|
24250
|
+
},
|
|
24251
|
+
/**
|
|
24252
|
+
*
|
|
24253
|
+
* @summary Locate the Contact\'s phone number association.
|
|
24254
|
+
* @param {string} contactId Reference Contact unique ID.
|
|
24255
|
+
* @param {string} id Association Record unique ID.
|
|
24256
|
+
* @param {Array<string>} [fields] Fields [Q]uery to build result record.
|
|
24257
|
+
* @param {string} [etag]
|
|
24258
|
+
* @param {*} [options] Override http request option.
|
|
24259
|
+
* @throws {RequiredError}
|
|
24260
|
+
*/
|
|
24261
|
+
locatePhone: async (contactId, id, fields, etag, options = {}) => {
|
|
24262
|
+
// verify required parameter 'contactId' is not null or undefined
|
|
24263
|
+
if (contactId === null || contactId === undefined) {
|
|
24264
|
+
throw new RequiredError('contactId', 'Required parameter contactId was null or undefined when calling locatePhone.');
|
|
24265
|
+
}
|
|
24266
|
+
// verify required parameter 'id' is not null or undefined
|
|
24267
|
+
if (id === null || id === undefined) {
|
|
24268
|
+
throw new RequiredError('id', 'Required parameter id was null or undefined when calling locatePhone.');
|
|
24269
|
+
}
|
|
24270
|
+
const localVarPath = `/contacts/{contact_id}/phones/{id}`
|
|
24271
|
+
.replace(`{${'contact_id'}}`, encodeURIComponent(String(contactId)))
|
|
24272
|
+
.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
24273
|
+
const localVarUrlObj = parse(localVarPath, true);
|
|
24274
|
+
let baseOptions;
|
|
24275
|
+
if (configuration) {
|
|
24276
|
+
baseOptions = configuration.baseOptions;
|
|
24277
|
+
}
|
|
24278
|
+
const localVarRequestOptions = {
|
|
24279
|
+
method: 'GET',
|
|
24280
|
+
...baseOptions,
|
|
24281
|
+
...options,
|
|
24282
|
+
};
|
|
24283
|
+
const localVarHeaderParameter = {};
|
|
24284
|
+
const localVarQueryParameter = {};
|
|
24285
|
+
// authentication AccessToken required
|
|
24286
|
+
if (configuration && configuration.apiKey) {
|
|
24287
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
24288
|
+
? await configuration.apiKey('X-Webitel-Access')
|
|
24289
|
+
: await configuration.apiKey;
|
|
24290
|
+
localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
|
|
24291
|
+
}
|
|
24292
|
+
if (fields) {
|
|
24293
|
+
localVarQueryParameter['fields'] = fields;
|
|
24294
|
+
}
|
|
24295
|
+
if (etag !== undefined) {
|
|
24296
|
+
localVarQueryParameter['etag'] = etag;
|
|
24297
|
+
}
|
|
24298
|
+
localVarUrlObj.query = {
|
|
24299
|
+
...localVarUrlObj.query,
|
|
24300
|
+
...localVarQueryParameter,
|
|
24301
|
+
...options.query,
|
|
24302
|
+
};
|
|
24303
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
24304
|
+
delete localVarUrlObj.search;
|
|
24305
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
24306
|
+
localVarRequestOptions.headers = {
|
|
24307
|
+
...localVarHeaderParameter,
|
|
24308
|
+
...headersFromBaseOptions,
|
|
24309
|
+
...options.headers,
|
|
24310
|
+
};
|
|
24311
|
+
return {
|
|
24312
|
+
url: format(localVarUrlObj),
|
|
24313
|
+
options: localVarRequestOptions,
|
|
24314
|
+
};
|
|
24315
|
+
},
|
|
24316
|
+
/**
|
|
24317
|
+
*
|
|
24318
|
+
* @summary Associate phone number(s) with the Contact
|
|
24319
|
+
* @param {string} contactId Link contact ID.
|
|
24320
|
+
* @param {Array<WebitelContactsInputPhoneNumber>} input Fixed set of phone number(s) to be linked with the Contact. Phone number(s) that conflicts with already linked will be updated.
|
|
24321
|
+
* @param {Array<string>} [fields] Fields to be retrieved into result of changes.
|
|
24322
|
+
* @param {*} [options] Override http request option.
|
|
24323
|
+
* @throws {RequiredError}
|
|
24324
|
+
*/
|
|
24325
|
+
mergePhones: async (contactId, input, fields, options = {}) => {
|
|
24326
|
+
// verify required parameter 'contactId' is not null or undefined
|
|
24327
|
+
if (contactId === null || contactId === undefined) {
|
|
24328
|
+
throw new RequiredError('contactId', 'Required parameter contactId was null or undefined when calling mergePhones.');
|
|
24329
|
+
}
|
|
24330
|
+
// verify required parameter 'input' is not null or undefined
|
|
24331
|
+
if (input === null || input === undefined) {
|
|
24332
|
+
throw new RequiredError('input', 'Required parameter input was null or undefined when calling mergePhones.');
|
|
24333
|
+
}
|
|
24334
|
+
const localVarPath = `/contacts/{contact_id}/phones`.replace(`{${'contact_id'}}`, encodeURIComponent(String(contactId)));
|
|
24335
|
+
const localVarUrlObj = parse(localVarPath, true);
|
|
24336
|
+
let baseOptions;
|
|
24337
|
+
if (configuration) {
|
|
24338
|
+
baseOptions = configuration.baseOptions;
|
|
24339
|
+
}
|
|
24340
|
+
const localVarRequestOptions = {
|
|
24341
|
+
method: 'POST',
|
|
24342
|
+
...baseOptions,
|
|
24343
|
+
...options,
|
|
24344
|
+
};
|
|
24345
|
+
const localVarHeaderParameter = {};
|
|
24346
|
+
const localVarQueryParameter = {};
|
|
24347
|
+
// authentication AccessToken required
|
|
24348
|
+
if (configuration && configuration.apiKey) {
|
|
24349
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
24350
|
+
? await configuration.apiKey('X-Webitel-Access')
|
|
24351
|
+
: await configuration.apiKey;
|
|
24352
|
+
localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
|
|
24353
|
+
}
|
|
24354
|
+
if (fields) {
|
|
24355
|
+
localVarQueryParameter['fields'] = fields;
|
|
24356
|
+
}
|
|
24357
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
24358
|
+
localVarUrlObj.query = {
|
|
24359
|
+
...localVarUrlObj.query,
|
|
24360
|
+
...localVarQueryParameter,
|
|
24361
|
+
...options.query,
|
|
24362
|
+
};
|
|
24363
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
24364
|
+
delete localVarUrlObj.search;
|
|
24365
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
24366
|
+
localVarRequestOptions.headers = {
|
|
24367
|
+
...localVarHeaderParameter,
|
|
24368
|
+
...headersFromBaseOptions,
|
|
24369
|
+
...options.headers,
|
|
24370
|
+
};
|
|
24371
|
+
const needsSerialization = typeof input !== 'string' ||
|
|
24372
|
+
localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
24373
|
+
localVarRequestOptions.data = needsSerialization
|
|
24374
|
+
? JSON.stringify(input !== undefined ? input : {})
|
|
24375
|
+
: input || '';
|
|
24376
|
+
return {
|
|
24377
|
+
url: format(localVarUrlObj),
|
|
24378
|
+
options: localVarRequestOptions,
|
|
24379
|
+
};
|
|
24380
|
+
},
|
|
24381
|
+
/**
|
|
24382
|
+
*
|
|
24383
|
+
* @summary Reset the Contact\'s phone numbers to fit given data set.
|
|
24384
|
+
* @param {string} contactId Link contact ID.
|
|
24385
|
+
* @param {Array<WebitelContactsInputPhoneNumber>} input Final set of phone number(s) to be linked with the contact. Phone number(s) that are already linked with the contact but not given in here will be removed.
|
|
24386
|
+
* @param {Array<string>} [fields] Fields to be retrieved into result of changes.
|
|
24387
|
+
* @param {*} [options] Override http request option.
|
|
24388
|
+
* @throws {RequiredError}
|
|
24389
|
+
*/
|
|
24390
|
+
resetPhones: async (contactId, input, fields, options = {}) => {
|
|
24391
|
+
// verify required parameter 'contactId' is not null or undefined
|
|
24392
|
+
if (contactId === null || contactId === undefined) {
|
|
24393
|
+
throw new RequiredError('contactId', 'Required parameter contactId was null or undefined when calling resetPhones.');
|
|
24394
|
+
}
|
|
24395
|
+
// verify required parameter 'input' is not null or undefined
|
|
24396
|
+
if (input === null || input === undefined) {
|
|
24397
|
+
throw new RequiredError('input', 'Required parameter input was null or undefined when calling resetPhones.');
|
|
24398
|
+
}
|
|
24399
|
+
const localVarPath = `/contacts/{contact_id}/phones`.replace(`{${'contact_id'}}`, encodeURIComponent(String(contactId)));
|
|
24400
|
+
const localVarUrlObj = parse(localVarPath, true);
|
|
24401
|
+
let baseOptions;
|
|
24402
|
+
if (configuration) {
|
|
24403
|
+
baseOptions = configuration.baseOptions;
|
|
24404
|
+
}
|
|
24405
|
+
const localVarRequestOptions = {
|
|
24406
|
+
method: 'PUT',
|
|
24407
|
+
...baseOptions,
|
|
24408
|
+
...options,
|
|
24409
|
+
};
|
|
24410
|
+
const localVarHeaderParameter = {};
|
|
24411
|
+
const localVarQueryParameter = {};
|
|
24412
|
+
// authentication AccessToken required
|
|
24413
|
+
if (configuration && configuration.apiKey) {
|
|
24414
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
24415
|
+
? await configuration.apiKey('X-Webitel-Access')
|
|
24416
|
+
: await configuration.apiKey;
|
|
24417
|
+
localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
|
|
24418
|
+
}
|
|
24419
|
+
if (fields) {
|
|
24420
|
+
localVarQueryParameter['fields'] = fields;
|
|
24421
|
+
}
|
|
24422
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
24423
|
+
localVarUrlObj.query = {
|
|
24424
|
+
...localVarUrlObj.query,
|
|
24425
|
+
...localVarQueryParameter,
|
|
24426
|
+
...options.query,
|
|
24427
|
+
};
|
|
24428
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
24429
|
+
delete localVarUrlObj.search;
|
|
24430
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
24431
|
+
localVarRequestOptions.headers = {
|
|
24432
|
+
...localVarHeaderParameter,
|
|
24433
|
+
...headersFromBaseOptions,
|
|
24434
|
+
...options.headers,
|
|
24435
|
+
};
|
|
24436
|
+
const needsSerialization = typeof input !== 'string' ||
|
|
24437
|
+
localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
24438
|
+
localVarRequestOptions.data = needsSerialization
|
|
24439
|
+
? JSON.stringify(input !== undefined ? input : {})
|
|
24440
|
+
: input || '';
|
|
24441
|
+
return {
|
|
24442
|
+
url: format(localVarUrlObj),
|
|
24443
|
+
options: localVarRequestOptions,
|
|
24444
|
+
};
|
|
24445
|
+
},
|
|
24446
|
+
/**
|
|
24447
|
+
*
|
|
24448
|
+
* @summary Update the Contact\'s phone number association details
|
|
24449
|
+
* @param {string} contactId The Contact ID to be associated with.
|
|
24450
|
+
* @param {string} etag Unique ID of the latest version of an existing resorce.
|
|
24451
|
+
* @param {NEWUpdateOfThePhoneNumberDetails} input
|
|
24452
|
+
* @param {Array<string>} [fields] Fields to be retrieved into result of changes.
|
|
24453
|
+
* @param {*} [options] Override http request option.
|
|
24454
|
+
* @throws {RequiredError}
|
|
24455
|
+
*/
|
|
24456
|
+
updatePhone: async (contactId, etag, input, fields, options = {}) => {
|
|
24457
|
+
// verify required parameter 'contactId' is not null or undefined
|
|
24458
|
+
if (contactId === null || contactId === undefined) {
|
|
24459
|
+
throw new RequiredError('contactId', 'Required parameter contactId was null or undefined when calling updatePhone.');
|
|
24460
|
+
}
|
|
24461
|
+
// verify required parameter 'etag' is not null or undefined
|
|
24462
|
+
if (etag === null || etag === undefined) {
|
|
24463
|
+
throw new RequiredError('etag', 'Required parameter etag was null or undefined when calling updatePhone.');
|
|
24464
|
+
}
|
|
24465
|
+
// verify required parameter 'input' is not null or undefined
|
|
24466
|
+
if (input === null || input === undefined) {
|
|
24467
|
+
throw new RequiredError('input', 'Required parameter input was null or undefined when calling updatePhone.');
|
|
24468
|
+
}
|
|
24469
|
+
const localVarPath = `/contacts/{contact_id}/phones/{etag}`
|
|
24470
|
+
.replace(`{${'contact_id'}}`, encodeURIComponent(String(contactId)))
|
|
24471
|
+
.replace(`{${'etag'}}`, encodeURIComponent(String(etag)));
|
|
24472
|
+
const localVarUrlObj = parse(localVarPath, true);
|
|
24473
|
+
let baseOptions;
|
|
24474
|
+
if (configuration) {
|
|
24475
|
+
baseOptions = configuration.baseOptions;
|
|
24476
|
+
}
|
|
24477
|
+
const localVarRequestOptions = {
|
|
24478
|
+
method: 'PUT',
|
|
24479
|
+
...baseOptions,
|
|
24480
|
+
...options,
|
|
24481
|
+
};
|
|
24482
|
+
const localVarHeaderParameter = {};
|
|
24483
|
+
const localVarQueryParameter = {};
|
|
24484
|
+
// authentication AccessToken required
|
|
24485
|
+
if (configuration && configuration.apiKey) {
|
|
24486
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
24487
|
+
? await configuration.apiKey('X-Webitel-Access')
|
|
24488
|
+
: await configuration.apiKey;
|
|
24489
|
+
localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
|
|
24490
|
+
}
|
|
24491
|
+
if (fields) {
|
|
24492
|
+
localVarQueryParameter['fields'] = fields;
|
|
24493
|
+
}
|
|
24494
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
24495
|
+
localVarUrlObj.query = {
|
|
24496
|
+
...localVarUrlObj.query,
|
|
24497
|
+
...localVarQueryParameter,
|
|
24498
|
+
...options.query,
|
|
24499
|
+
};
|
|
24500
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
24501
|
+
delete localVarUrlObj.search;
|
|
24502
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
24503
|
+
localVarRequestOptions.headers = {
|
|
24504
|
+
...localVarHeaderParameter,
|
|
24505
|
+
...headersFromBaseOptions,
|
|
24506
|
+
...options.headers,
|
|
24507
|
+
};
|
|
24508
|
+
const needsSerialization = typeof input !== 'string' ||
|
|
24509
|
+
localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
24510
|
+
localVarRequestOptions.data = needsSerialization
|
|
24511
|
+
? JSON.stringify(input !== undefined ? input : {})
|
|
24512
|
+
: input || '';
|
|
24513
|
+
return {
|
|
24514
|
+
url: format(localVarUrlObj),
|
|
24515
|
+
options: localVarRequestOptions,
|
|
24516
|
+
};
|
|
24517
|
+
},
|
|
24518
|
+
/**
|
|
24519
|
+
*
|
|
24520
|
+
* @summary Update the Contact\'s phone number association details
|
|
24521
|
+
* @param {string} contactId The Contact ID to be associated with.
|
|
24522
|
+
* @param {string} etag Unique ID of the latest version of an existing resorce.
|
|
24523
|
+
* @param {NEWUpdateOfThePhoneNumberDetails1} input
|
|
24524
|
+
* @param {Array<string>} [fields] Fields to be retrieved into result of changes.
|
|
24525
|
+
* @param {*} [options] Override http request option.
|
|
24526
|
+
* @throws {RequiredError}
|
|
24527
|
+
*/
|
|
24528
|
+
updatePhone2: async (contactId, etag, input, fields, options = {}) => {
|
|
24529
|
+
// verify required parameter 'contactId' is not null or undefined
|
|
24530
|
+
if (contactId === null || contactId === undefined) {
|
|
24531
|
+
throw new RequiredError('contactId', 'Required parameter contactId was null or undefined when calling updatePhone2.');
|
|
24532
|
+
}
|
|
24533
|
+
// verify required parameter 'etag' is not null or undefined
|
|
24534
|
+
if (etag === null || etag === undefined) {
|
|
24535
|
+
throw new RequiredError('etag', 'Required parameter etag was null or undefined when calling updatePhone2.');
|
|
24536
|
+
}
|
|
24537
|
+
// verify required parameter 'input' is not null or undefined
|
|
24538
|
+
if (input === null || input === undefined) {
|
|
24539
|
+
throw new RequiredError('input', 'Required parameter input was null or undefined when calling updatePhone2.');
|
|
24540
|
+
}
|
|
24541
|
+
const localVarPath = `/contacts/{contact_id}/phones/{etag}`
|
|
24542
|
+
.replace(`{${'contact_id'}}`, encodeURIComponent(String(contactId)))
|
|
24543
|
+
.replace(`{${'etag'}}`, encodeURIComponent(String(etag)));
|
|
24544
|
+
const localVarUrlObj = parse(localVarPath, true);
|
|
24545
|
+
let baseOptions;
|
|
24546
|
+
if (configuration) {
|
|
24547
|
+
baseOptions = configuration.baseOptions;
|
|
24548
|
+
}
|
|
24549
|
+
const localVarRequestOptions = {
|
|
24550
|
+
method: 'PATCH',
|
|
24551
|
+
...baseOptions,
|
|
24552
|
+
...options,
|
|
24553
|
+
};
|
|
24554
|
+
const localVarHeaderParameter = {};
|
|
24555
|
+
const localVarQueryParameter = {};
|
|
24556
|
+
// authentication AccessToken required
|
|
24557
|
+
if (configuration && configuration.apiKey) {
|
|
24558
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
24559
|
+
? await configuration.apiKey('X-Webitel-Access')
|
|
24560
|
+
: await configuration.apiKey;
|
|
24561
|
+
localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
|
|
24562
|
+
}
|
|
24563
|
+
if (fields) {
|
|
24564
|
+
localVarQueryParameter['fields'] = fields;
|
|
24565
|
+
}
|
|
24566
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
24567
|
+
localVarUrlObj.query = {
|
|
24568
|
+
...localVarUrlObj.query,
|
|
24569
|
+
...localVarQueryParameter,
|
|
24570
|
+
...options.query,
|
|
24571
|
+
};
|
|
24572
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
24573
|
+
delete localVarUrlObj.search;
|
|
24574
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
24575
|
+
localVarRequestOptions.headers = {
|
|
24576
|
+
...localVarHeaderParameter,
|
|
24577
|
+
...headersFromBaseOptions,
|
|
24578
|
+
...options.headers,
|
|
24579
|
+
};
|
|
24580
|
+
const needsSerialization = typeof input !== 'string' ||
|
|
24581
|
+
localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
24582
|
+
localVarRequestOptions.data = needsSerialization
|
|
24583
|
+
? JSON.stringify(input !== undefined ? input : {})
|
|
24584
|
+
: input || '';
|
|
24585
|
+
return {
|
|
24586
|
+
url: format(localVarUrlObj),
|
|
24587
|
+
options: localVarRequestOptions,
|
|
24588
|
+
};
|
|
24589
|
+
},
|
|
24590
|
+
};
|
|
24591
|
+
};
|
|
24592
|
+
/**
|
|
24593
|
+
* PhonesApi - functional programming interface
|
|
24594
|
+
* @export
|
|
24595
|
+
*/
|
|
24596
|
+
const PhonesApiFp = function (configuration) {
|
|
24597
|
+
return {
|
|
24598
|
+
/**
|
|
24599
|
+
*
|
|
24600
|
+
* @summary Remove the Contact\'s phone number
|
|
24601
|
+
* @param {string} contactId Link contact ID.
|
|
24602
|
+
* @param {string} etag Unique link ID to be removed.
|
|
24603
|
+
* @param {Array<string>} [fields] Fields to be retrieved into result.
|
|
24604
|
+
* @param {*} [options] Override http request option.
|
|
24605
|
+
* @throws {RequiredError}
|
|
24606
|
+
*/
|
|
24607
|
+
async deletePhone(contactId, etag, fields, options) {
|
|
24608
|
+
const localVarAxiosArgs = await PhonesApiAxiosParamCreator(configuration).deletePhone(contactId, etag, fields, options);
|
|
24609
|
+
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
24610
|
+
const axiosRequestArgs = {
|
|
24611
|
+
...localVarAxiosArgs.options,
|
|
24612
|
+
url: basePath + localVarAxiosArgs.url,
|
|
24613
|
+
};
|
|
24614
|
+
return axios.request(axiosRequestArgs);
|
|
24615
|
+
};
|
|
24616
|
+
},
|
|
24617
|
+
/**
|
|
24618
|
+
*
|
|
24619
|
+
* @summary Remove the Contact\'s phone number association(s)
|
|
24620
|
+
* @param {string} contactId The Contact ID associated with.
|
|
24621
|
+
* @param {Array<string>} etag Set of linked ID(s) to be removed.
|
|
24622
|
+
* @param {Array<string>} [fields] Fields to be retrieved into result.
|
|
24623
|
+
* @param {*} [options] Override http request option.
|
|
24624
|
+
* @throws {RequiredError}
|
|
24625
|
+
*/
|
|
24626
|
+
async deletePhones(contactId, etag, fields, options) {
|
|
24627
|
+
const localVarAxiosArgs = await PhonesApiAxiosParamCreator(configuration).deletePhones(contactId, etag, fields, options);
|
|
24628
|
+
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
24629
|
+
const axiosRequestArgs = {
|
|
24630
|
+
...localVarAxiosArgs.options,
|
|
24631
|
+
url: basePath + localVarAxiosArgs.url,
|
|
24632
|
+
};
|
|
24633
|
+
return axios.request(axiosRequestArgs);
|
|
24634
|
+
};
|
|
24635
|
+
},
|
|
24636
|
+
/**
|
|
24637
|
+
*
|
|
24638
|
+
* @summary Search phone number(s)
|
|
24639
|
+
* @param {string} contactId The Contact ID associated with.
|
|
24640
|
+
* @param {number} [page] Page number of result dataset records. offset = (page*size)
|
|
24641
|
+
* @param {number} [size] Size count of records on result page. limit = (size++)
|
|
24642
|
+
* @param {string} [q] Search term: phone number. `?` - matches any one character `*` - matches 0 or more characters
|
|
24643
|
+
* @param {Array<string>} [sort] Sort the result according to fields.
|
|
24644
|
+
* @param {Array<string>} [fields] Fields to be retrieved into result.
|
|
24645
|
+
* @param {Array<string>} [id] Link(s) with unique ID only.
|
|
24646
|
+
* @param {boolean} [primary] Primary phone only.
|
|
24647
|
+
* @param {boolean} [verified] Verified phone only.
|
|
24648
|
+
* @param {string} [typeId] Reference Object unique ID.
|
|
24649
|
+
* @param {string} [typeType] Reference Object well-known type.
|
|
24650
|
+
* @param {string} [typeName] Reference Object display name.
|
|
24651
|
+
* @param {*} [options] Override http request option.
|
|
24652
|
+
* @throws {RequiredError}
|
|
24653
|
+
*/
|
|
24654
|
+
async listPhones(contactId, page, size, q, sort, fields, id, primary, verified, typeId, typeType, typeName, options) {
|
|
24655
|
+
const localVarAxiosArgs = await PhonesApiAxiosParamCreator(configuration).listPhones(contactId, page, size, q, sort, fields, id, primary, verified, typeId, typeType, typeName, options);
|
|
24656
|
+
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
24657
|
+
const axiosRequestArgs = {
|
|
24658
|
+
...localVarAxiosArgs.options,
|
|
24659
|
+
url: basePath + localVarAxiosArgs.url,
|
|
24660
|
+
};
|
|
24661
|
+
return axios.request(axiosRequestArgs);
|
|
24662
|
+
};
|
|
24663
|
+
},
|
|
24664
|
+
/**
|
|
24665
|
+
*
|
|
24666
|
+
* @summary Locate the Contact\'s phone number association.
|
|
24667
|
+
* @param {string} contactId Reference Contact unique ID.
|
|
24668
|
+
* @param {string} id Association Record unique ID.
|
|
24669
|
+
* @param {Array<string>} [fields] Fields [Q]uery to build result record.
|
|
24670
|
+
* @param {string} [etag]
|
|
24671
|
+
* @param {*} [options] Override http request option.
|
|
24672
|
+
* @throws {RequiredError}
|
|
24673
|
+
*/
|
|
24674
|
+
async locatePhone(contactId, id, fields, etag, options) {
|
|
24675
|
+
const localVarAxiosArgs = await PhonesApiAxiosParamCreator(configuration).locatePhone(contactId, id, fields, etag, options);
|
|
24676
|
+
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
24677
|
+
const axiosRequestArgs = {
|
|
24678
|
+
...localVarAxiosArgs.options,
|
|
24679
|
+
url: basePath + localVarAxiosArgs.url,
|
|
24680
|
+
};
|
|
24681
|
+
return axios.request(axiosRequestArgs);
|
|
24682
|
+
};
|
|
24683
|
+
},
|
|
24684
|
+
/**
|
|
24685
|
+
*
|
|
24686
|
+
* @summary Associate phone number(s) with the Contact
|
|
24687
|
+
* @param {string} contactId Link contact ID.
|
|
24688
|
+
* @param {Array<WebitelContactsInputPhoneNumber>} input Fixed set of phone number(s) to be linked with the Contact. Phone number(s) that conflicts with already linked will be updated.
|
|
24689
|
+
* @param {Array<string>} [fields] Fields to be retrieved into result of changes.
|
|
24690
|
+
* @param {*} [options] Override http request option.
|
|
24691
|
+
* @throws {RequiredError}
|
|
24692
|
+
*/
|
|
24693
|
+
async mergePhones(contactId, input, fields, options) {
|
|
24694
|
+
const localVarAxiosArgs = await PhonesApiAxiosParamCreator(configuration).mergePhones(contactId, input, fields, options);
|
|
24695
|
+
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
24696
|
+
const axiosRequestArgs = {
|
|
24697
|
+
...localVarAxiosArgs.options,
|
|
24698
|
+
url: basePath + localVarAxiosArgs.url,
|
|
24699
|
+
};
|
|
24700
|
+
return axios.request(axiosRequestArgs);
|
|
24701
|
+
};
|
|
24702
|
+
},
|
|
24703
|
+
/**
|
|
24704
|
+
*
|
|
24705
|
+
* @summary Reset the Contact\'s phone numbers to fit given data set.
|
|
24706
|
+
* @param {string} contactId Link contact ID.
|
|
24707
|
+
* @param {Array<WebitelContactsInputPhoneNumber>} input Final set of phone number(s) to be linked with the contact. Phone number(s) that are already linked with the contact but not given in here will be removed.
|
|
24708
|
+
* @param {Array<string>} [fields] Fields to be retrieved into result of changes.
|
|
24709
|
+
* @param {*} [options] Override http request option.
|
|
24710
|
+
* @throws {RequiredError}
|
|
24711
|
+
*/
|
|
24712
|
+
async resetPhones(contactId, input, fields, options) {
|
|
24713
|
+
const localVarAxiosArgs = await PhonesApiAxiosParamCreator(configuration).resetPhones(contactId, input, fields, options);
|
|
24714
|
+
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
24715
|
+
const axiosRequestArgs = {
|
|
24716
|
+
...localVarAxiosArgs.options,
|
|
24717
|
+
url: basePath + localVarAxiosArgs.url,
|
|
24718
|
+
};
|
|
24719
|
+
return axios.request(axiosRequestArgs);
|
|
24720
|
+
};
|
|
24721
|
+
},
|
|
24722
|
+
/**
|
|
24723
|
+
*
|
|
24724
|
+
* @summary Update the Contact\'s phone number association details
|
|
24725
|
+
* @param {string} contactId The Contact ID to be associated with.
|
|
24726
|
+
* @param {string} etag Unique ID of the latest version of an existing resorce.
|
|
24727
|
+
* @param {NEWUpdateOfThePhoneNumberDetails} input
|
|
24728
|
+
* @param {Array<string>} [fields] Fields to be retrieved into result of changes.
|
|
24729
|
+
* @param {*} [options] Override http request option.
|
|
24730
|
+
* @throws {RequiredError}
|
|
24731
|
+
*/
|
|
24732
|
+
async updatePhone(contactId, etag, input, fields, options) {
|
|
24733
|
+
const localVarAxiosArgs = await PhonesApiAxiosParamCreator(configuration).updatePhone(contactId, etag, input, fields, options);
|
|
24734
|
+
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
24735
|
+
const axiosRequestArgs = {
|
|
24736
|
+
...localVarAxiosArgs.options,
|
|
24737
|
+
url: basePath + localVarAxiosArgs.url,
|
|
24738
|
+
};
|
|
24739
|
+
return axios.request(axiosRequestArgs);
|
|
24740
|
+
};
|
|
24741
|
+
},
|
|
24742
|
+
/**
|
|
24743
|
+
*
|
|
24744
|
+
* @summary Update the Contact\'s phone number association details
|
|
24745
|
+
* @param {string} contactId The Contact ID to be associated with.
|
|
24746
|
+
* @param {string} etag Unique ID of the latest version of an existing resorce.
|
|
24747
|
+
* @param {NEWUpdateOfThePhoneNumberDetails1} input
|
|
24748
|
+
* @param {Array<string>} [fields] Fields to be retrieved into result of changes.
|
|
24749
|
+
* @param {*} [options] Override http request option.
|
|
24750
|
+
* @throws {RequiredError}
|
|
24751
|
+
*/
|
|
24752
|
+
async updatePhone2(contactId, etag, input, fields, options) {
|
|
24753
|
+
const localVarAxiosArgs = await PhonesApiAxiosParamCreator(configuration).updatePhone2(contactId, etag, input, fields, options);
|
|
24754
|
+
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
24755
|
+
const axiosRequestArgs = {
|
|
24756
|
+
...localVarAxiosArgs.options,
|
|
24757
|
+
url: basePath + localVarAxiosArgs.url,
|
|
24758
|
+
};
|
|
24759
|
+
return axios.request(axiosRequestArgs);
|
|
24760
|
+
};
|
|
24761
|
+
},
|
|
24762
|
+
};
|
|
24763
|
+
};
|
|
24764
|
+
/**
|
|
24765
|
+
* PhonesApi - factory interface
|
|
24766
|
+
* @export
|
|
24767
|
+
*/
|
|
24768
|
+
const PhonesApiFactory = function (configuration, basePath, axios) {
|
|
24769
|
+
return {
|
|
24770
|
+
/**
|
|
24771
|
+
*
|
|
24772
|
+
* @summary Remove the Contact\'s phone number
|
|
24773
|
+
* @param {string} contactId Link contact ID.
|
|
24774
|
+
* @param {string} etag Unique link ID to be removed.
|
|
24775
|
+
* @param {Array<string>} [fields] Fields to be retrieved into result.
|
|
24776
|
+
* @param {*} [options] Override http request option.
|
|
24777
|
+
* @throws {RequiredError}
|
|
24778
|
+
*/
|
|
24779
|
+
deletePhone(contactId, etag, fields, options) {
|
|
24780
|
+
return PhonesApiFp(configuration)
|
|
24781
|
+
.deletePhone(contactId, etag, fields, options)
|
|
24782
|
+
.then((request) => request(axios, basePath));
|
|
24783
|
+
},
|
|
24784
|
+
/**
|
|
24785
|
+
*
|
|
24786
|
+
* @summary Remove the Contact\'s phone number association(s)
|
|
24787
|
+
* @param {string} contactId The Contact ID associated with.
|
|
24788
|
+
* @param {Array<string>} etag Set of linked ID(s) to be removed.
|
|
24789
|
+
* @param {Array<string>} [fields] Fields to be retrieved into result.
|
|
24790
|
+
* @param {*} [options] Override http request option.
|
|
24791
|
+
* @throws {RequiredError}
|
|
24792
|
+
*/
|
|
24793
|
+
deletePhones(contactId, etag, fields, options) {
|
|
24794
|
+
return PhonesApiFp(configuration)
|
|
24795
|
+
.deletePhones(contactId, etag, fields, options)
|
|
23732
24796
|
.then((request) => request(axios, basePath));
|
|
23733
24797
|
},
|
|
23734
24798
|
/**
|
|
23735
24799
|
*
|
|
23736
|
-
* @summary
|
|
23737
|
-
* @param {string}
|
|
23738
|
-
* @param {
|
|
24800
|
+
* @summary Search phone number(s)
|
|
24801
|
+
* @param {string} contactId The Contact ID associated with.
|
|
24802
|
+
* @param {number} [page] Page number of result dataset records. offset = (page*size)
|
|
24803
|
+
* @param {number} [size] Size count of records on result page. limit = (size++)
|
|
24804
|
+
* @param {string} [q] Search term: phone number. `?` - matches any one character `*` - matches 0 or more characters
|
|
24805
|
+
* @param {Array<string>} [sort] Sort the result according to fields.
|
|
24806
|
+
* @param {Array<string>} [fields] Fields to be retrieved into result.
|
|
24807
|
+
* @param {Array<string>} [id] Link(s) with unique ID only.
|
|
24808
|
+
* @param {boolean} [primary] Primary phone only.
|
|
24809
|
+
* @param {boolean} [verified] Verified phone only.
|
|
24810
|
+
* @param {string} [typeId] Reference Object unique ID.
|
|
24811
|
+
* @param {string} [typeType] Reference Object well-known type.
|
|
24812
|
+
* @param {string} [typeName] Reference Object display name.
|
|
23739
24813
|
* @param {*} [options] Override http request option.
|
|
23740
24814
|
* @throws {RequiredError}
|
|
23741
24815
|
*/
|
|
23742
|
-
|
|
23743
|
-
return
|
|
23744
|
-
.
|
|
24816
|
+
listPhones(contactId, page, size, q, sort, fields, id, primary, verified, typeId, typeType, typeName, options) {
|
|
24817
|
+
return PhonesApiFp(configuration)
|
|
24818
|
+
.listPhones(contactId, page, size, q, sort, fields, id, primary, verified, typeId, typeType, typeName, options)
|
|
23745
24819
|
.then((request) => request(axios, basePath));
|
|
23746
24820
|
},
|
|
23747
24821
|
/**
|
|
23748
24822
|
*
|
|
23749
|
-
* @summary
|
|
23750
|
-
* @param {string}
|
|
23751
|
-
* @param {string} id
|
|
23752
|
-
* @param {string} [
|
|
24823
|
+
* @summary Locate the Contact\'s phone number association.
|
|
24824
|
+
* @param {string} contactId Reference Contact unique ID.
|
|
24825
|
+
* @param {string} id Association Record unique ID.
|
|
24826
|
+
* @param {Array<string>} [fields] Fields [Q]uery to build result record.
|
|
24827
|
+
* @param {string} [etag]
|
|
23753
24828
|
* @param {*} [options] Override http request option.
|
|
23754
24829
|
* @throws {RequiredError}
|
|
23755
24830
|
*/
|
|
23756
|
-
|
|
23757
|
-
return
|
|
23758
|
-
.
|
|
24831
|
+
locatePhone(contactId, id, fields, etag, options) {
|
|
24832
|
+
return PhonesApiFp(configuration)
|
|
24833
|
+
.locatePhone(contactId, id, fields, etag, options)
|
|
23759
24834
|
.then((request) => request(axios, basePath));
|
|
23760
24835
|
},
|
|
23761
24836
|
/**
|
|
23762
24837
|
*
|
|
23763
|
-
* @summary
|
|
23764
|
-
* @param {
|
|
23765
|
-
* @param {
|
|
23766
|
-
* @param {string} [
|
|
23767
|
-
* @param {string} [sort]
|
|
23768
|
-
* @param {Array<string>} [fields]
|
|
23769
|
-
* @param {Array<number>} [id]
|
|
24838
|
+
* @summary Associate phone number(s) with the Contact
|
|
24839
|
+
* @param {string} contactId Link contact ID.
|
|
24840
|
+
* @param {Array<WebitelContactsInputPhoneNumber>} input Fixed set of phone number(s) to be linked with the Contact. Phone number(s) that conflicts with already linked will be updated.
|
|
24841
|
+
* @param {Array<string>} [fields] Fields to be retrieved into result of changes.
|
|
23770
24842
|
* @param {*} [options] Override http request option.
|
|
23771
24843
|
* @throws {RequiredError}
|
|
23772
24844
|
*/
|
|
23773
|
-
|
|
23774
|
-
return
|
|
23775
|
-
.
|
|
24845
|
+
mergePhones(contactId, input, fields, options) {
|
|
24846
|
+
return PhonesApiFp(configuration)
|
|
24847
|
+
.mergePhones(contactId, input, fields, options)
|
|
23776
24848
|
.then((request) => request(axios, basePath));
|
|
23777
24849
|
},
|
|
23778
24850
|
/**
|
|
23779
24851
|
*
|
|
23780
|
-
* @summary
|
|
23781
|
-
* @param {string}
|
|
23782
|
-
* @param {
|
|
23783
|
-
* @param {
|
|
23784
|
-
* @param {string} [q]
|
|
23785
|
-
* @param {string} [sort]
|
|
23786
|
-
* @param {Array<string>} [fields]
|
|
23787
|
-
* @param {Array<number>} [id]
|
|
24852
|
+
* @summary Reset the Contact\'s phone numbers to fit given data set.
|
|
24853
|
+
* @param {string} contactId Link contact ID.
|
|
24854
|
+
* @param {Array<WebitelContactsInputPhoneNumber>} input Final set of phone number(s) to be linked with the contact. Phone number(s) that are already linked with the contact but not given in here will be removed.
|
|
24855
|
+
* @param {Array<string>} [fields] Fields to be retrieved into result of changes.
|
|
23788
24856
|
* @param {*} [options] Override http request option.
|
|
23789
24857
|
* @throws {RequiredError}
|
|
23790
24858
|
*/
|
|
23791
|
-
|
|
23792
|
-
return
|
|
23793
|
-
.
|
|
24859
|
+
resetPhones(contactId, input, fields, options) {
|
|
24860
|
+
return PhonesApiFp(configuration)
|
|
24861
|
+
.resetPhones(contactId, input, fields, options)
|
|
23794
24862
|
.then((request) => request(axios, basePath));
|
|
23795
24863
|
},
|
|
23796
24864
|
/**
|
|
23797
24865
|
*
|
|
23798
|
-
* @summary Update
|
|
23799
|
-
* @param {string}
|
|
23800
|
-
* @param {
|
|
24866
|
+
* @summary Update the Contact\'s phone number association details
|
|
24867
|
+
* @param {string} contactId The Contact ID to be associated with.
|
|
24868
|
+
* @param {string} etag Unique ID of the latest version of an existing resorce.
|
|
24869
|
+
* @param {NEWUpdateOfThePhoneNumberDetails} input
|
|
24870
|
+
* @param {Array<string>} [fields] Fields to be retrieved into result of changes.
|
|
23801
24871
|
* @param {*} [options] Override http request option.
|
|
23802
24872
|
* @throws {RequiredError}
|
|
23803
24873
|
*/
|
|
23804
|
-
|
|
23805
|
-
return
|
|
23806
|
-
.
|
|
24874
|
+
updatePhone(contactId, etag, input, fields, options) {
|
|
24875
|
+
return PhonesApiFp(configuration)
|
|
24876
|
+
.updatePhone(contactId, etag, input, fields, options)
|
|
23807
24877
|
.then((request) => request(axios, basePath));
|
|
23808
24878
|
},
|
|
23809
24879
|
/**
|
|
23810
24880
|
*
|
|
23811
|
-
* @summary Update
|
|
23812
|
-
* @param {string}
|
|
23813
|
-
* @param {string}
|
|
23814
|
-
* @param {
|
|
24881
|
+
* @summary Update the Contact\'s phone number association details
|
|
24882
|
+
* @param {string} contactId The Contact ID to be associated with.
|
|
24883
|
+
* @param {string} etag Unique ID of the latest version of an existing resorce.
|
|
24884
|
+
* @param {NEWUpdateOfThePhoneNumberDetails1} input
|
|
24885
|
+
* @param {Array<string>} [fields] Fields to be retrieved into result of changes.
|
|
23815
24886
|
* @param {*} [options] Override http request option.
|
|
23816
24887
|
* @throws {RequiredError}
|
|
23817
24888
|
*/
|
|
23818
|
-
|
|
23819
|
-
return
|
|
23820
|
-
.
|
|
24889
|
+
updatePhone2(contactId, etag, input, fields, options) {
|
|
24890
|
+
return PhonesApiFp(configuration)
|
|
24891
|
+
.updatePhone2(contactId, etag, input, fields, options)
|
|
23821
24892
|
.then((request) => request(axios, basePath));
|
|
23822
24893
|
},
|
|
23823
24894
|
};
|
|
23824
24895
|
};
|
|
23825
24896
|
/**
|
|
23826
|
-
*
|
|
24897
|
+
* PhonesApi - object-oriented interface
|
|
23827
24898
|
* @export
|
|
23828
|
-
* @class
|
|
24899
|
+
* @class PhonesApi
|
|
23829
24900
|
* @extends {BaseAPI}
|
|
23830
24901
|
*/
|
|
23831
|
-
class
|
|
23832
|
-
/**
|
|
23833
|
-
*
|
|
23834
|
-
* @summary Create OutboundResource
|
|
23835
|
-
* @param {EngineCreateOutboundResourceRequest} body
|
|
23836
|
-
* @param {*} [options] Override http request option.
|
|
23837
|
-
* @throws {RequiredError}
|
|
23838
|
-
* @memberof OutboundResourceServiceApi
|
|
23839
|
-
*/
|
|
23840
|
-
createOutboundResource(body, options) {
|
|
23841
|
-
return OutboundResourceServiceApiFp(this.configuration)
|
|
23842
|
-
.createOutboundResource(body, options)
|
|
23843
|
-
.then((request) => request(this.axios, this.basePath));
|
|
23844
|
-
}
|
|
23845
|
-
/**
|
|
23846
|
-
*
|
|
23847
|
-
* @summary Create CreateOutboundResourceDisplay
|
|
23848
|
-
* @param {string} resourceId
|
|
23849
|
-
* @param {EngineCreateOutboundResourceDisplayRequest} body
|
|
23850
|
-
* @param {*} [options] Override http request option.
|
|
23851
|
-
* @throws {RequiredError}
|
|
23852
|
-
* @memberof OutboundResourceServiceApi
|
|
23853
|
-
*/
|
|
23854
|
-
createOutboundResourceDisplay(resourceId, body, options) {
|
|
23855
|
-
return OutboundResourceServiceApiFp(this.configuration)
|
|
23856
|
-
.createOutboundResourceDisplay(resourceId, body, options)
|
|
23857
|
-
.then((request) => request(this.axios, this.basePath));
|
|
23858
|
-
}
|
|
23859
|
-
/**
|
|
23860
|
-
*
|
|
23861
|
-
* @summary Create CreateOutboundResourceDisplay
|
|
23862
|
-
* @param {string} resourceId
|
|
23863
|
-
* @param {EngineCreateOutboundResourceDisplayBulkRequest} body
|
|
23864
|
-
* @param {*} [options] Override http request option.
|
|
23865
|
-
* @throws {RequiredError}
|
|
23866
|
-
* @memberof OutboundResourceServiceApi
|
|
23867
|
-
*/
|
|
23868
|
-
createOutboundResourceDisplayBulk(resourceId, body, options) {
|
|
23869
|
-
return OutboundResourceServiceApiFp(this.configuration)
|
|
23870
|
-
.createOutboundResourceDisplayBulk(resourceId, body, options)
|
|
23871
|
-
.then((request) => request(this.axios, this.basePath));
|
|
23872
|
-
}
|
|
23873
|
-
/**
|
|
23874
|
-
*
|
|
23875
|
-
* @summary Remove OutboundResource
|
|
23876
|
-
* @param {string} id
|
|
23877
|
-
* @param {string} [domainId]
|
|
23878
|
-
* @param {*} [options] Override http request option.
|
|
23879
|
-
* @throws {RequiredError}
|
|
23880
|
-
* @memberof OutboundResourceServiceApi
|
|
23881
|
-
*/
|
|
23882
|
-
deleteOutboundResource(id, domainId, options) {
|
|
23883
|
-
return OutboundResourceServiceApiFp(this.configuration)
|
|
23884
|
-
.deleteOutboundResource(id, domainId, options)
|
|
23885
|
-
.then((request) => request(this.axios, this.basePath));
|
|
23886
|
-
}
|
|
23887
|
-
/**
|
|
23888
|
-
*
|
|
23889
|
-
* @summary Remove ResourceDisplay
|
|
23890
|
-
* @param {string} resourceId
|
|
23891
|
-
* @param {string} id
|
|
23892
|
-
* @param {string} [domainId]
|
|
23893
|
-
* @param {*} [options] Override http request option.
|
|
23894
|
-
* @throws {RequiredError}
|
|
23895
|
-
* @memberof OutboundResourceServiceApi
|
|
23896
|
-
*/
|
|
23897
|
-
deleteOutboundResourceDisplay(resourceId, id, domainId, options) {
|
|
23898
|
-
return OutboundResourceServiceApiFp(this.configuration)
|
|
23899
|
-
.deleteOutboundResourceDisplay(resourceId, id, domainId, options)
|
|
23900
|
-
.then((request) => request(this.axios, this.basePath));
|
|
23901
|
-
}
|
|
24902
|
+
class PhonesApi extends BaseAPI {
|
|
23902
24903
|
/**
|
|
23903
24904
|
*
|
|
23904
|
-
* @summary Remove
|
|
23905
|
-
* @param {string}
|
|
23906
|
-
* @param {
|
|
24905
|
+
* @summary Remove the Contact\'s phone number
|
|
24906
|
+
* @param {string} contactId Link contact ID.
|
|
24907
|
+
* @param {string} etag Unique link ID to be removed.
|
|
24908
|
+
* @param {Array<string>} [fields] Fields to be retrieved into result.
|
|
23907
24909
|
* @param {*} [options] Override http request option.
|
|
23908
24910
|
* @throws {RequiredError}
|
|
23909
|
-
* @memberof
|
|
24911
|
+
* @memberof PhonesApi
|
|
23910
24912
|
*/
|
|
23911
|
-
|
|
23912
|
-
return
|
|
23913
|
-
.
|
|
24913
|
+
deletePhone(contactId, etag, fields, options) {
|
|
24914
|
+
return PhonesApiFp(this.configuration)
|
|
24915
|
+
.deletePhone(contactId, etag, fields, options)
|
|
23914
24916
|
.then((request) => request(this.axios, this.basePath));
|
|
23915
24917
|
}
|
|
23916
24918
|
/**
|
|
23917
24919
|
*
|
|
23918
|
-
* @summary
|
|
23919
|
-
* @param {string}
|
|
23920
|
-
* @param {
|
|
24920
|
+
* @summary Remove the Contact\'s phone number association(s)
|
|
24921
|
+
* @param {string} contactId The Contact ID associated with.
|
|
24922
|
+
* @param {Array<string>} etag Set of linked ID(s) to be removed.
|
|
24923
|
+
* @param {Array<string>} [fields] Fields to be retrieved into result.
|
|
23921
24924
|
* @param {*} [options] Override http request option.
|
|
23922
24925
|
* @throws {RequiredError}
|
|
23923
|
-
* @memberof
|
|
24926
|
+
* @memberof PhonesApi
|
|
23924
24927
|
*/
|
|
23925
|
-
|
|
23926
|
-
return
|
|
23927
|
-
.
|
|
24928
|
+
deletePhones(contactId, etag, fields, options) {
|
|
24929
|
+
return PhonesApiFp(this.configuration)
|
|
24930
|
+
.deletePhones(contactId, etag, fields, options)
|
|
23928
24931
|
.then((request) => request(this.axios, this.basePath));
|
|
23929
24932
|
}
|
|
23930
24933
|
/**
|
|
23931
24934
|
*
|
|
23932
|
-
* @summary
|
|
23933
|
-
* @param {string}
|
|
23934
|
-
* @param {
|
|
24935
|
+
* @summary Search phone number(s)
|
|
24936
|
+
* @param {string} contactId The Contact ID associated with.
|
|
24937
|
+
* @param {number} [page] Page number of result dataset records. offset = (page*size)
|
|
24938
|
+
* @param {number} [size] Size count of records on result page. limit = (size++)
|
|
24939
|
+
* @param {string} [q] Search term: phone number. `?` - matches any one character `*` - matches 0 or more characters
|
|
24940
|
+
* @param {Array<string>} [sort] Sort the result according to fields.
|
|
24941
|
+
* @param {Array<string>} [fields] Fields to be retrieved into result.
|
|
24942
|
+
* @param {Array<string>} [id] Link(s) with unique ID only.
|
|
24943
|
+
* @param {boolean} [primary] Primary phone only.
|
|
24944
|
+
* @param {boolean} [verified] Verified phone only.
|
|
24945
|
+
* @param {string} [typeId] Reference Object unique ID.
|
|
24946
|
+
* @param {string} [typeType] Reference Object well-known type.
|
|
24947
|
+
* @param {string} [typeName] Reference Object display name.
|
|
23935
24948
|
* @param {*} [options] Override http request option.
|
|
23936
24949
|
* @throws {RequiredError}
|
|
23937
|
-
* @memberof
|
|
24950
|
+
* @memberof PhonesApi
|
|
23938
24951
|
*/
|
|
23939
|
-
|
|
23940
|
-
return
|
|
23941
|
-
.
|
|
24952
|
+
listPhones(contactId, page, size, q, sort, fields, id, primary, verified, typeId, typeType, typeName, options) {
|
|
24953
|
+
return PhonesApiFp(this.configuration)
|
|
24954
|
+
.listPhones(contactId, page, size, q, sort, fields, id, primary, verified, typeId, typeType, typeName, options)
|
|
23942
24955
|
.then((request) => request(this.axios, this.basePath));
|
|
23943
24956
|
}
|
|
23944
24957
|
/**
|
|
23945
24958
|
*
|
|
23946
|
-
* @summary
|
|
23947
|
-
* @param {string}
|
|
23948
|
-
* @param {string} id
|
|
23949
|
-
* @param {string} [
|
|
24959
|
+
* @summary Locate the Contact\'s phone number association.
|
|
24960
|
+
* @param {string} contactId Reference Contact unique ID.
|
|
24961
|
+
* @param {string} id Association Record unique ID.
|
|
24962
|
+
* @param {Array<string>} [fields] Fields [Q]uery to build result record.
|
|
24963
|
+
* @param {string} [etag]
|
|
23950
24964
|
* @param {*} [options] Override http request option.
|
|
23951
24965
|
* @throws {RequiredError}
|
|
23952
|
-
* @memberof
|
|
24966
|
+
* @memberof PhonesApi
|
|
23953
24967
|
*/
|
|
23954
|
-
|
|
23955
|
-
return
|
|
23956
|
-
.
|
|
24968
|
+
locatePhone(contactId, id, fields, etag, options) {
|
|
24969
|
+
return PhonesApiFp(this.configuration)
|
|
24970
|
+
.locatePhone(contactId, id, fields, etag, options)
|
|
23957
24971
|
.then((request) => request(this.axios, this.basePath));
|
|
23958
24972
|
}
|
|
23959
24973
|
/**
|
|
23960
24974
|
*
|
|
23961
|
-
* @summary
|
|
23962
|
-
* @param {
|
|
23963
|
-
* @param {
|
|
23964
|
-
* @param {string} [
|
|
23965
|
-
* @param {string} [sort]
|
|
23966
|
-
* @param {Array<string>} [fields]
|
|
23967
|
-
* @param {Array<number>} [id]
|
|
24975
|
+
* @summary Associate phone number(s) with the Contact
|
|
24976
|
+
* @param {string} contactId Link contact ID.
|
|
24977
|
+
* @param {Array<WebitelContactsInputPhoneNumber>} input Fixed set of phone number(s) to be linked with the Contact. Phone number(s) that conflicts with already linked will be updated.
|
|
24978
|
+
* @param {Array<string>} [fields] Fields to be retrieved into result of changes.
|
|
23968
24979
|
* @param {*} [options] Override http request option.
|
|
23969
24980
|
* @throws {RequiredError}
|
|
23970
|
-
* @memberof
|
|
24981
|
+
* @memberof PhonesApi
|
|
23971
24982
|
*/
|
|
23972
|
-
|
|
23973
|
-
return
|
|
23974
|
-
.
|
|
24983
|
+
mergePhones(contactId, input, fields, options) {
|
|
24984
|
+
return PhonesApiFp(this.configuration)
|
|
24985
|
+
.mergePhones(contactId, input, fields, options)
|
|
23975
24986
|
.then((request) => request(this.axios, this.basePath));
|
|
23976
24987
|
}
|
|
23977
24988
|
/**
|
|
23978
24989
|
*
|
|
23979
|
-
* @summary
|
|
23980
|
-
* @param {string}
|
|
23981
|
-
* @param {
|
|
23982
|
-
* @param {
|
|
23983
|
-
* @param {string} [q]
|
|
23984
|
-
* @param {string} [sort]
|
|
23985
|
-
* @param {Array<string>} [fields]
|
|
23986
|
-
* @param {Array<number>} [id]
|
|
24990
|
+
* @summary Reset the Contact\'s phone numbers to fit given data set.
|
|
24991
|
+
* @param {string} contactId Link contact ID.
|
|
24992
|
+
* @param {Array<WebitelContactsInputPhoneNumber>} input Final set of phone number(s) to be linked with the contact. Phone number(s) that are already linked with the contact but not given in here will be removed.
|
|
24993
|
+
* @param {Array<string>} [fields] Fields to be retrieved into result of changes.
|
|
23987
24994
|
* @param {*} [options] Override http request option.
|
|
23988
24995
|
* @throws {RequiredError}
|
|
23989
|
-
* @memberof
|
|
24996
|
+
* @memberof PhonesApi
|
|
23990
24997
|
*/
|
|
23991
|
-
|
|
23992
|
-
return
|
|
23993
|
-
.
|
|
24998
|
+
resetPhones(contactId, input, fields, options) {
|
|
24999
|
+
return PhonesApiFp(this.configuration)
|
|
25000
|
+
.resetPhones(contactId, input, fields, options)
|
|
23994
25001
|
.then((request) => request(this.axios, this.basePath));
|
|
23995
25002
|
}
|
|
23996
25003
|
/**
|
|
23997
25004
|
*
|
|
23998
|
-
* @summary Update
|
|
23999
|
-
* @param {string}
|
|
24000
|
-
* @param {
|
|
25005
|
+
* @summary Update the Contact\'s phone number association details
|
|
25006
|
+
* @param {string} contactId The Contact ID to be associated with.
|
|
25007
|
+
* @param {string} etag Unique ID of the latest version of an existing resorce.
|
|
25008
|
+
* @param {NEWUpdateOfThePhoneNumberDetails} input
|
|
25009
|
+
* @param {Array<string>} [fields] Fields to be retrieved into result of changes.
|
|
24001
25010
|
* @param {*} [options] Override http request option.
|
|
24002
25011
|
* @throws {RequiredError}
|
|
24003
|
-
* @memberof
|
|
25012
|
+
* @memberof PhonesApi
|
|
24004
25013
|
*/
|
|
24005
|
-
|
|
24006
|
-
return
|
|
24007
|
-
.
|
|
25014
|
+
updatePhone(contactId, etag, input, fields, options) {
|
|
25015
|
+
return PhonesApiFp(this.configuration)
|
|
25016
|
+
.updatePhone(contactId, etag, input, fields, options)
|
|
24008
25017
|
.then((request) => request(this.axios, this.basePath));
|
|
24009
25018
|
}
|
|
24010
25019
|
/**
|
|
24011
25020
|
*
|
|
24012
|
-
* @summary Update
|
|
24013
|
-
* @param {string}
|
|
24014
|
-
* @param {string}
|
|
24015
|
-
* @param {
|
|
25021
|
+
* @summary Update the Contact\'s phone number association details
|
|
25022
|
+
* @param {string} contactId The Contact ID to be associated with.
|
|
25023
|
+
* @param {string} etag Unique ID of the latest version of an existing resorce.
|
|
25024
|
+
* @param {NEWUpdateOfThePhoneNumberDetails1} input
|
|
25025
|
+
* @param {Array<string>} [fields] Fields to be retrieved into result of changes.
|
|
24016
25026
|
* @param {*} [options] Override http request option.
|
|
24017
25027
|
* @throws {RequiredError}
|
|
24018
|
-
* @memberof
|
|
25028
|
+
* @memberof PhonesApi
|
|
24019
25029
|
*/
|
|
24020
|
-
|
|
24021
|
-
return
|
|
24022
|
-
.
|
|
25030
|
+
updatePhone2(contactId, etag, input, fields, options) {
|
|
25031
|
+
return PhonesApiFp(this.configuration)
|
|
25032
|
+
.updatePhone2(contactId, etag, input, fields, options)
|
|
24023
25033
|
.then((request) => request(this.axios, this.basePath));
|
|
24024
25034
|
}
|
|
24025
25035
|
}
|
|
@@ -39217,6 +40227,32 @@ var LoggerAvailableSystemObjects;
|
|
|
39217
40227
|
* Do not edit the class manually.
|
|
39218
40228
|
*/
|
|
39219
40229
|
|
|
40230
|
+
// tslint:disable
|
|
40231
|
+
/**
|
|
40232
|
+
* Webitel engine API
|
|
40233
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
40234
|
+
*
|
|
40235
|
+
* The version of the OpenAPI document: 23.07.0
|
|
40236
|
+
* Contact: support@webitel.com
|
|
40237
|
+
*
|
|
40238
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
40239
|
+
* https://openapi-generator.tech
|
|
40240
|
+
* Do not edit the class manually.
|
|
40241
|
+
*/
|
|
40242
|
+
|
|
40243
|
+
// tslint:disable
|
|
40244
|
+
/**
|
|
40245
|
+
* Webitel engine API
|
|
40246
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
40247
|
+
*
|
|
40248
|
+
* The version of the OpenAPI document: 23.07.0
|
|
40249
|
+
* Contact: support@webitel.com
|
|
40250
|
+
*
|
|
40251
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
40252
|
+
* https://openapi-generator.tech
|
|
40253
|
+
* Do not edit the class manually.
|
|
40254
|
+
*/
|
|
40255
|
+
|
|
39220
40256
|
// tslint:disable
|
|
39221
40257
|
/**
|
|
39222
40258
|
* Webitel engine API
|
|
@@ -41072,10 +42108,28 @@ class Agent {
|
|
|
41072
42108
|
for (const el of list) {
|
|
41073
42109
|
switch (el.channel) {
|
|
41074
42110
|
case ChannelType.Call:
|
|
41075
|
-
this.waitingListCalls.push(
|
|
42111
|
+
this.waitingListCalls.push({
|
|
42112
|
+
displayName: el.communication.name || '',
|
|
42113
|
+
displayNumber: el.communication.destination || '',
|
|
42114
|
+
attemptId: el.attempt_id,
|
|
42115
|
+
deadline: el.deadline,
|
|
42116
|
+
position: el.position,
|
|
42117
|
+
queue: el.queue,
|
|
42118
|
+
wait: el.wait,
|
|
42119
|
+
});
|
|
41076
42120
|
break;
|
|
41077
42121
|
case ChannelType.Chat:
|
|
41078
|
-
this.waitingListChats.push(
|
|
42122
|
+
this.waitingListChats.push({
|
|
42123
|
+
chat: el.communication.chat || '',
|
|
42124
|
+
displayName: el.communication.name || '',
|
|
42125
|
+
message: el.communication.msg || '',
|
|
42126
|
+
peer: el.communication.destination || '',
|
|
42127
|
+
attemptId: el.attempt_id,
|
|
42128
|
+
deadline: el.deadline,
|
|
42129
|
+
position: el.position,
|
|
42130
|
+
queue: el.queue,
|
|
42131
|
+
wait: el.wait,
|
|
42132
|
+
});
|
|
41079
42133
|
break;
|
|
41080
42134
|
default:
|
|
41081
42135
|
}
|
|
@@ -41301,7 +42355,7 @@ class Agent {
|
|
|
41301
42355
|
}
|
|
41302
42356
|
function removeWaitingList(list, attemptId) {
|
|
41303
42357
|
for (let i = 0; i < list.length; i++) {
|
|
41304
|
-
if (list[i].
|
|
42358
|
+
if (list[i].attemptId === attemptId) {
|
|
41305
42359
|
list.splice(i, 1);
|
|
41306
42360
|
return true;
|
|
41307
42361
|
}
|
|
@@ -43485,5 +44539,5 @@ class ExternalClient extends ee_3 {
|
|
|
43485
44539
|
|
|
43486
44540
|
// tslint:disable
|
|
43487
44541
|
|
|
43488
|
-
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, 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, 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, TriggerServiceApiAxiosParamCreator, TriggerServiceApiFp, TriggerServiceApiFactory, TriggerServiceApi, UserHelperServiceApiAxiosParamCreator, UserHelperServiceApiFp, UserHelperServiceApiFactory, UserHelperServiceApi, VariablesApiAxiosParamCreator, VariablesApiFp, VariablesApiFactory, VariablesApi, Configuration, EngineAuditQuestionType, EngineBoolFilter, EngineCommunicationChannels, EnginePresetQuerySection, EngineRoutingSchemaType, 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 };
|
|
44542
|
+
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, 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, TriggerServiceApiAxiosParamCreator, TriggerServiceApiFp, TriggerServiceApiFactory, TriggerServiceApi, UserHelperServiceApiAxiosParamCreator, UserHelperServiceApiFp, UserHelperServiceApiFactory, UserHelperServiceApi, VariablesApiAxiosParamCreator, VariablesApiFp, VariablesApiFactory, VariablesApi, Configuration, EngineAuditQuestionType, EngineBoolFilter, EngineCommunicationChannels, EnginePresetQuerySection, EngineRoutingSchemaType, 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 };
|
|
43489
44543
|
//# sourceMappingURL=index.esm.js.map
|