@sinch/elastic-sip-trunking 1.3.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/dist/models/v1/add-projects-request/add-projects-request.d.ts +4 -0
  2. package/dist/models/v1/add-projects-request/add-projects-request.js +3 -0
  3. package/dist/models/v1/add-projects-request/add-projects-request.js.map +1 -0
  4. package/dist/models/v1/add-projects-request/index.d.ts +1 -0
  5. package/dist/models/v1/add-projects-request/index.js +3 -0
  6. package/dist/models/v1/add-projects-request/index.js.map +1 -0
  7. package/dist/models/v1/add-projects-response/add-projects-response.d.ts +4 -0
  8. package/dist/models/v1/add-projects-response/add-projects-response.js +3 -0
  9. package/dist/models/v1/add-projects-response/add-projects-response.js.map +1 -0
  10. package/dist/models/v1/add-projects-response/index.d.ts +1 -0
  11. package/dist/models/v1/add-projects-response/index.js +3 -0
  12. package/dist/models/v1/add-projects-response/index.js.map +1 -0
  13. package/dist/models/v1/call-blocking-rule/call-blocking-rule.d.ts +37 -0
  14. package/dist/models/v1/call-blocking-rule/call-blocking-rule.js +3 -0
  15. package/dist/models/v1/call-blocking-rule/call-blocking-rule.js.map +1 -0
  16. package/dist/models/v1/call-blocking-rule/index.d.ts +1 -0
  17. package/dist/models/v1/call-blocking-rule/index.js +3 -0
  18. package/dist/models/v1/call-blocking-rule/index.js.map +1 -0
  19. package/dist/models/v1/create-credential-list-request/create-credential-list-request.d.ts +12 -0
  20. package/dist/models/v1/create-credential-list-request/create-credential-list-request.js +3 -0
  21. package/dist/models/v1/create-credential-list-request/create-credential-list-request.js.map +1 -0
  22. package/dist/models/v1/create-credential-list-request/index.d.ts +1 -0
  23. package/dist/models/v1/create-credential-list-request/index.js +3 -0
  24. package/dist/models/v1/create-credential-list-request/index.js.map +1 -0
  25. package/dist/models/v1/credential/credential.d.ts +6 -0
  26. package/dist/models/v1/credential/credential.js +3 -0
  27. package/dist/models/v1/credential/credential.js.map +1 -0
  28. package/dist/models/v1/credential/index.d.ts +1 -0
  29. package/dist/models/v1/credential/index.js +3 -0
  30. package/dist/models/v1/credential/index.js.map +1 -0
  31. package/dist/models/v1/credential-list/credential-list.d.ts +15 -0
  32. package/dist/models/v1/credential-list/credential-list.js +3 -0
  33. package/dist/models/v1/credential-list/credential-list.js.map +1 -0
  34. package/dist/models/v1/credential-list/index.d.ts +1 -0
  35. package/dist/models/v1/credential-list/index.js +3 -0
  36. package/dist/models/v1/credential-list/index.js.map +1 -0
  37. package/dist/models/v1/credential-list-ids/credential-list-ids.d.ts +4 -0
  38. package/dist/models/v1/credential-list-ids/credential-list-ids.js +3 -0
  39. package/dist/models/v1/credential-list-ids/credential-list-ids.js.map +1 -0
  40. package/dist/models/v1/credential-list-ids/index.d.ts +1 -0
  41. package/dist/models/v1/credential-list-ids/index.js +3 -0
  42. package/dist/models/v1/credential-list-ids/index.js.map +1 -0
  43. package/dist/models/v1/credential-password/credential-password.d.ts +4 -0
  44. package/dist/models/v1/credential-password/credential-password.js +3 -0
  45. package/dist/models/v1/credential-password/credential-password.js.map +1 -0
  46. package/dist/models/v1/credential-password/index.d.ts +1 -0
  47. package/dist/models/v1/credential-password/index.js +3 -0
  48. package/dist/models/v1/credential-password/index.js.map +1 -0
  49. package/dist/models/v1/enum.d.ts +3 -2
  50. package/dist/models/v1/index.d.ts +9 -0
  51. package/dist/models/v1/index.js +9 -0
  52. package/dist/models/v1/index.js.map +1 -1
  53. package/dist/models/v1/requests/access-control-list/access-control-list-request-data.d.ts +8 -0
  54. package/dist/models/v1/requests/call-blocking-rules/call-blocking-rules-request-data.d.ts +23 -0
  55. package/dist/models/v1/requests/call-blocking-rules/call-blocking-rules-request-data.js +3 -0
  56. package/dist/models/v1/requests/call-blocking-rules/call-blocking-rules-request-data.js.map +1 -0
  57. package/dist/models/v1/requests/calls-history/calls-history-request-data.d.ts +44 -4
  58. package/dist/models/v1/requests/credential-lists/credential-lists-request-data.d.ts +49 -0
  59. package/dist/models/v1/requests/credential-lists/credential-lists-request-data.js +3 -0
  60. package/dist/models/v1/requests/credential-lists/credential-lists-request-data.js.map +1 -0
  61. package/dist/models/v1/requests/index.d.ts +3 -0
  62. package/dist/models/v1/requests/index.js +3 -0
  63. package/dist/models/v1/requests/index.js.map +1 -1
  64. package/dist/models/v1/requests/projects/projects-request-data.d.ts +4 -0
  65. package/dist/models/v1/requests/projects/projects-request-data.js +3 -0
  66. package/dist/models/v1/requests/projects/projects-request-data.js.map +1 -0
  67. package/dist/models/v1/requests/sip-endpoints/sip-endpoints-request-data.d.ts +1 -1
  68. package/dist/models/v1/requests/sip-trunks/sip-trunks-request-data.d.ts +34 -1
  69. package/dist/models/v1/sip-endpoint/sip-endpoint.d.ts +6 -2
  70. package/dist/models/v1/update-credential-list-request/index.d.ts +1 -0
  71. package/dist/models/v1/update-credential-list-request/index.js +3 -0
  72. package/dist/models/v1/update-credential-list-request/index.js.map +1 -0
  73. package/dist/models/v1/update-credential-list-request/update-credential-list-request.d.ts +4 -0
  74. package/dist/models/v1/update-credential-list-request/update-credential-list-request.js +3 -0
  75. package/dist/models/v1/update-credential-list-request/update-credential-list-request.js.map +1 -0
  76. package/dist/rest/v1/access-control-list/access-control-list-api.d.ts +4 -8
  77. package/dist/rest/v1/access-control-list/access-control-list-api.js +5 -19
  78. package/dist/rest/v1/access-control-list/access-control-list-api.js.map +1 -1
  79. package/dist/rest/v1/call-blocking-rules/call-blocking-rules-api.d.ts +31 -0
  80. package/dist/rest/v1/call-blocking-rules/call-blocking-rules-api.jest.fixture.d.ts +21 -0
  81. package/dist/rest/v1/call-blocking-rules/call-blocking-rules-api.jest.fixture.js +25 -0
  82. package/dist/rest/v1/call-blocking-rules/call-blocking-rules-api.jest.fixture.js.map +1 -0
  83. package/dist/rest/v1/call-blocking-rules/call-blocking-rules-api.js +106 -0
  84. package/dist/rest/v1/call-blocking-rules/call-blocking-rules-api.js.map +1 -0
  85. package/dist/rest/v1/call-blocking-rules/index.d.ts +2 -0
  86. package/dist/rest/v1/call-blocking-rules/index.js +19 -0
  87. package/dist/rest/v1/call-blocking-rules/index.js.map +1 -0
  88. package/dist/rest/v1/calls-history/calls-history-api.d.ts +9 -7
  89. package/dist/rest/v1/calls-history/calls-history-api.jest.fixture.d.ts +7 -3
  90. package/dist/rest/v1/calls-history/calls-history-api.jest.fixture.js +5 -1
  91. package/dist/rest/v1/calls-history/calls-history-api.jest.fixture.js.map +1 -1
  92. package/dist/rest/v1/calls-history/calls-history-api.js +47 -11
  93. package/dist/rest/v1/calls-history/calls-history-api.js.map +1 -1
  94. package/dist/rest/v1/country-permissions/country-permissions-api.d.ts +3 -8
  95. package/dist/rest/v1/country-permissions/country-permissions-api.js +3 -11
  96. package/dist/rest/v1/country-permissions/country-permissions-api.js.map +1 -1
  97. package/dist/rest/v1/credential-lists/credential-lists-api.d.ts +55 -0
  98. package/dist/rest/v1/credential-lists/credential-lists-api.jest.fixture.d.ts +38 -0
  99. package/dist/rest/v1/credential-lists/credential-lists-api.jest.fixture.js +41 -0
  100. package/dist/rest/v1/credential-lists/credential-lists-api.jest.fixture.js.map +1 -0
  101. package/dist/rest/v1/credential-lists/credential-lists-api.js +199 -0
  102. package/dist/rest/v1/credential-lists/credential-lists-api.js.map +1 -0
  103. package/dist/rest/v1/credential-lists/index.d.ts +2 -0
  104. package/dist/rest/v1/credential-lists/index.js +19 -0
  105. package/dist/rest/v1/credential-lists/index.js.map +1 -0
  106. package/dist/rest/v1/elastic-sip-trunking-domain-api.d.ts +12 -13
  107. package/dist/rest/v1/elastic-sip-trunking-domain-api.js +20 -28
  108. package/dist/rest/v1/elastic-sip-trunking-domain-api.js.map +1 -1
  109. package/dist/rest/v1/elastic-sip-trunking-service.d.ts +16 -1
  110. package/dist/rest/v1/elastic-sip-trunking-service.js +50 -11
  111. package/dist/rest/v1/elastic-sip-trunking-service.js.map +1 -1
  112. package/dist/rest/v1/index.d.ts +4 -0
  113. package/dist/rest/v1/index.js +4 -0
  114. package/dist/rest/v1/index.js.map +1 -1
  115. package/dist/rest/v1/projects/index.d.ts +2 -0
  116. package/dist/rest/v1/projects/index.js +19 -0
  117. package/dist/rest/v1/projects/index.js.map +1 -0
  118. package/dist/rest/v1/projects/projects-api.d.ts +12 -0
  119. package/dist/rest/v1/projects/projects-api.jest.fixture.d.ts +8 -0
  120. package/dist/rest/v1/projects/projects-api.jest.fixture.js +13 -0
  121. package/dist/rest/v1/projects/projects-api.jest.fixture.js.map +1 -0
  122. package/dist/rest/v1/projects/projects-api.js +33 -0
  123. package/dist/rest/v1/projects/projects-api.js.map +1 -0
  124. package/dist/rest/v1/sip-endpoints/sip-endpoints-api.d.ts +3 -7
  125. package/dist/rest/v1/sip-endpoints/sip-endpoints-api.js +3 -13
  126. package/dist/rest/v1/sip-endpoints/sip-endpoints-api.js.map +1 -1
  127. package/dist/rest/v1/sip-trunks/sip-trunks-api.d.ts +29 -9
  128. package/dist/rest/v1/sip-trunks/sip-trunks-api.jest.fixture.d.ts +27 -9
  129. package/dist/rest/v1/sip-trunks/sip-trunks-api.jest.fixture.js +24 -8
  130. package/dist/rest/v1/sip-trunks/sip-trunks-api.jest.fixture.js.map +1 -1
  131. package/dist/rest/v1/sip-trunks/sip-trunks-api.js +98 -17
  132. package/dist/rest/v1/sip-trunks/sip-trunks-api.js.map +1 -1
  133. package/package.json +2 -2
@@ -1,58 +1,50 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ElasticSipTrunkingDomainApi = void 0;
4
- const sdk_client_1 = require("@sinch/sdk-client");
5
4
  class ElasticSipTrunkingDomainApi {
6
- constructor(sinchClientParameters, apiName) {
7
- this.sinchClientParameters = sinchClientParameters;
5
+ constructor(lazyClient, apiName) {
6
+ this.lazyClient = lazyClient;
8
7
  this.apiName = apiName;
9
8
  }
9
+ get client() {
10
+ return this.lazyClient.getApiClient();
11
+ }
12
+ /**
13
+ * Kept for backward compatibility - TODO: remove in future major release
14
+ * @return {ApiClient}
15
+ * @deprecated
16
+ */
17
+ getSinchClient() {
18
+ return this.lazyClient.getApiClient();
19
+ }
10
20
  /**
11
21
  * Update the default hostname for the API
12
22
  * @param {string} hostname - The new hostname to use for the APIs.
13
23
  */
14
24
  setHostname(hostname) {
15
- this.client = this.getSinchClient();
16
- this.client.apiClientOptions.hostname = hostname;
25
+ this.lazyClient.sharedConfig.elasticSipTrunkingHostname = hostname;
26
+ this.lazyClient.getApiClient().apiClientOptions.hostname = hostname;
17
27
  }
18
28
  /**
19
29
  * Updates the credentials used to authenticate API requests
20
30
  * @param {UnifiedCredentials} credentials
21
31
  */
22
32
  setCredentials(credentials) {
23
- const parametersBackup = { ...this.sinchClientParameters };
24
- this.sinchClientParameters = {
33
+ const parametersBackup = { ...this.lazyClient.sharedConfig };
34
+ this.lazyClient.sharedConfig = {
25
35
  ...parametersBackup,
26
36
  ...credentials,
27
37
  };
28
- this.resetApiClient();
38
+ this.lazyClient.resetApiClient();
29
39
  try {
30
- this.getSinchClient();
40
+ this.lazyClient.getApiClient();
31
41
  }
32
42
  catch (error) {
33
43
  console.error('Impossible to assign the new credentials to the Elastic SIP Trunking API');
34
- this.sinchClientParameters = parametersBackup;
44
+ this.lazyClient.sharedConfig = parametersBackup;
35
45
  throw error;
36
46
  }
37
47
  }
38
- resetApiClient() {
39
- this.client = undefined;
40
- }
41
- /**
42
- * Checks the configuration parameters are ok and initialize the API client. Once initialized, the same instance will
43
- * be returned for the subsequent API calls (singleton pattern)
44
- * @return {ApiClient} the API Client or throws an error in case the configuration parameters are not ok
45
- * @private
46
- */
47
- getSinchClient() {
48
- if (!this.client) {
49
- const apiClientOptions = (0, sdk_client_1.buildOAuth2ApiClientOptions)(this.sinchClientParameters, 'Elastic SIP Trunking');
50
- this.client = new sdk_client_1.ApiFetchClient(apiClientOptions);
51
- this.client.apiClientOptions.hostname = this.sinchClientParameters.elasticSipTrunkingHostname
52
- ?? sdk_client_1.ELASTIC_SIP_TRUNKING_HOSTNAME;
53
- }
54
- return this.client;
55
- }
56
48
  }
57
49
  exports.ElasticSipTrunkingDomainApi = ElasticSipTrunkingDomainApi;
58
50
  //# sourceMappingURL=elastic-sip-trunking-domain-api.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"elastic-sip-trunking-domain-api.js","sourceRoot":"","sources":["../../../src/rest/v1/elastic-sip-trunking-domain-api.ts"],"names":[],"mappings":";;;AAAA,kDAQ2B;AAE3B,MAAa,2BAA2B;IAKtC,YAAY,qBAA4C,EAAE,OAAe;QACvE,IAAI,CAAC,qBAAqB,GAAG,qBAAqB,CAAC;QACnD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAED;;;OAGG;IACI,WAAW,CAAC,QAAgB;QACjC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;QACpC,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,QAAQ,GAAG,QAAQ,CAAC;IACnD,CAAC;IAED;;;OAGG;IACI,cAAc,CAAC,WAA+B;QACnD,MAAM,gBAAgB,GAAG,EAAE,GAAG,IAAI,CAAC,qBAAqB,EAAE,CAAC;QAC3D,IAAI,CAAC,qBAAqB,GAAG;YAC3B,GAAG,gBAAgB;YACnB,GAAG,WAAW;SACf,CAAC;QACF,IAAI,CAAC,cAAc,EAAE,CAAC;QACtB,IAAI,CAAC;YACH,IAAI,CAAC,cAAc,EAAE,CAAC;QACxB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,KAAK,CAAC,0EAA0E,CAAC,CAAC;YAC1F,IAAI,CAAC,qBAAqB,GAAG,gBAAgB,CAAC;YAC9C,MAAM,KAAK,CAAC;QACd,CAAC;IACH,CAAC;IAEO,cAAc;QACpB,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC;IAC1B,CAAC;IAED;;;;;OAKG;IACI,cAAc;QACnB,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;YACjB,MAAM,gBAAgB,GAAG,IAAA,wCAA2B,EAAC,IAAI,CAAC,qBAAqB,EAAE,sBAAsB,CAAC,CAAC;YACzG,IAAI,CAAC,MAAM,GAAG,IAAI,2BAAc,CAAC,gBAAgB,CAAC,CAAC;YACnD,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,QAAQ,GAAG,IAAI,CAAC,qBAAqB,CAAC,0BAA0B;mBACxF,0CAA6B,CAAC;QACrC,CAAC;QACD,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;CAEF;AA3DD,kEA2DC"}
1
+ {"version":3,"file":"elastic-sip-trunking-domain-api.js","sourceRoot":"","sources":["../../../src/rest/v1/elastic-sip-trunking-domain-api.ts"],"names":[],"mappings":";;;AAOA,MAAa,2BAA2B;IAEtC,YACkB,UAA2C,EAC3C,OAAe;QADf,eAAU,GAAV,UAAU,CAAiC;QAC3C,YAAO,GAAP,OAAO,CAAQ;IAC9B,CAAC;IAEJ,IAAW,MAAM;QACf,OAAO,IAAI,CAAC,UAAU,CAAC,YAAY,EAAE,CAAC;IACxC,CAAC;IAED;;;;OAIG;IACI,cAAc;QACnB,OAAO,IAAI,CAAC,UAAU,CAAC,YAAY,EAAE,CAAC;IACxC,CAAC;IAED;;;OAGG;IACI,WAAW,CAAC,QAAgB;QACjC,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,0BAA0B,GAAG,QAAQ,CAAC;QACnE,IAAI,CAAC,UAAU,CAAC,YAAY,EAAE,CAAC,gBAAgB,CAAC,QAAQ,GAAG,QAAQ,CAAC;IACtE,CAAC;IAED;;;OAGG;IACI,cAAc,CAAC,WAAwC;QAC5D,MAAM,gBAAgB,GAAG,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,EAAE,CAAC;QAC7D,IAAI,CAAC,UAAU,CAAC,YAAY,GAAG;YAC7B,GAAG,gBAAgB;YACnB,GAAG,WAAW;SACf,CAAC;QACF,IAAI,CAAC,UAAU,CAAC,cAAc,EAAE,CAAC;QACjC,IAAI,CAAC;YACH,IAAI,CAAC,UAAU,CAAC,YAAY,EAAE,CAAC;QACjC,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,KAAK,CAAC,0EAA0E,CAAC,CAAC;YAC1F,IAAI,CAAC,UAAU,CAAC,YAAY,GAAG,gBAAgB,CAAC;YAChD,MAAM,KAAK,CAAC;QACd,CAAC;IACH,CAAC;CAEF;AAjDD,kEAiDC"}
@@ -1,15 +1,29 @@
1
- import { SinchClientParameters } from '@sinch/sdk-client';
1
+ import { ApiClient, SinchClientParameters, UnifiedCredentials } from '@sinch/sdk-client';
2
2
  import { SipTrunksApi } from './sip-trunks';
3
3
  import { AccessControlListApi } from './access-control-list';
4
4
  import { SipEndpointsApi } from './sip-endpoints';
5
5
  import { CountryPermissionsApi } from './country-permissions';
6
6
  import { CallsHistoryApi } from './calls-history';
7
+ import { ProjectsApi } from './projects';
8
+ import { CallBlockingRulesApi } from './call-blocking-rules';
9
+ import { CredentialListsApi } from './credential-lists';
10
+ export declare class LazyElasticSipTrunkingApiClient {
11
+ sharedConfig: SinchClientParameters;
12
+ private client?;
13
+ constructor(sharedConfig: SinchClientParameters);
14
+ getApiClient(): ApiClient;
15
+ resetApiClient(): void;
16
+ }
7
17
  export declare class ElasticSipTrunkingService {
8
18
  readonly sipTrunks: SipTrunksApi;
9
19
  readonly sipEndpoints: SipEndpointsApi;
10
20
  readonly accessControlList: AccessControlListApi;
11
21
  readonly countryPermissions: CountryPermissionsApi;
12
22
  readonly calls: CallsHistoryApi;
23
+ readonly projects: ProjectsApi;
24
+ readonly callBlockingRules: CallBlockingRulesApi;
25
+ readonly credentialLists: CredentialListsApi;
26
+ private readonly lazyClient;
13
27
  constructor(params: SinchClientParameters);
14
28
  /**
15
29
  * Update the default hostname for each API
@@ -17,4 +31,5 @@ export declare class ElasticSipTrunkingService {
17
31
  * @param {string} hostname - The new hostname to use for all the APIs.
18
32
  */
19
33
  setHostname(hostname: string): void;
34
+ setCredentials(credentials: Partial<UnifiedCredentials>): void;
20
35
  }
@@ -1,18 +1,44 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ElasticSipTrunkingService = void 0;
3
+ exports.ElasticSipTrunkingService = exports.LazyElasticSipTrunkingApiClient = void 0;
4
+ const sdk_client_1 = require("@sinch/sdk-client");
4
5
  const sip_trunks_1 = require("./sip-trunks");
5
6
  const access_control_list_1 = require("./access-control-list");
6
7
  const sip_endpoints_1 = require("./sip-endpoints");
7
8
  const country_permissions_1 = require("./country-permissions");
8
9
  const calls_history_1 = require("./calls-history");
10
+ const projects_1 = require("./projects");
11
+ const call_blocking_rules_1 = require("./call-blocking-rules");
12
+ const credential_lists_1 = require("./credential-lists");
13
+ class LazyElasticSipTrunkingApiClient {
14
+ constructor(sharedConfig) {
15
+ this.sharedConfig = sharedConfig;
16
+ }
17
+ getApiClient() {
18
+ if (!this.client) {
19
+ const apiClientOptions = (0, sdk_client_1.buildOAuth2ApiClientOptions)(this.sharedConfig, 'Elastic SIP Trunking');
20
+ this.client = new sdk_client_1.ApiFetchClient(apiClientOptions);
21
+ this.client.apiClientOptions.hostname = this.sharedConfig.elasticSipTrunkingHostname
22
+ ?? sdk_client_1.ELASTIC_SIP_TRUNKING_HOSTNAME;
23
+ }
24
+ return this.client;
25
+ }
26
+ resetApiClient() {
27
+ this.client = undefined;
28
+ }
29
+ }
30
+ exports.LazyElasticSipTrunkingApiClient = LazyElasticSipTrunkingApiClient;
9
31
  class ElasticSipTrunkingService {
10
32
  constructor(params) {
11
- this.sipTrunks = new sip_trunks_1.SipTrunksApi(params);
12
- this.sipEndpoints = new sip_endpoints_1.SipEndpointsApi(params);
13
- this.accessControlList = new access_control_list_1.AccessControlListApi(params);
14
- this.countryPermissions = new country_permissions_1.CountryPermissionsApi(params);
15
- this.calls = new calls_history_1.CallsHistoryApi(params);
33
+ this.lazyClient = new LazyElasticSipTrunkingApiClient(params);
34
+ this.sipTrunks = new sip_trunks_1.SipTrunksApi(this.lazyClient);
35
+ this.sipEndpoints = new sip_endpoints_1.SipEndpointsApi(this.lazyClient);
36
+ this.accessControlList = new access_control_list_1.AccessControlListApi(this.lazyClient);
37
+ this.countryPermissions = new country_permissions_1.CountryPermissionsApi(this.lazyClient);
38
+ this.calls = new calls_history_1.CallsHistoryApi(this.lazyClient);
39
+ this.projects = new projects_1.ProjectsApi(this.lazyClient);
40
+ this.callBlockingRules = new call_blocking_rules_1.CallBlockingRulesApi(this.lazyClient);
41
+ this.credentialLists = new credential_lists_1.CredentialListsApi(this.lazyClient);
16
42
  }
17
43
  /**
18
44
  * Update the default hostname for each API
@@ -20,11 +46,24 @@ class ElasticSipTrunkingService {
20
46
  * @param {string} hostname - The new hostname to use for all the APIs.
21
47
  */
22
48
  setHostname(hostname) {
23
- this.sipTrunks.setHostname(hostname);
24
- this.sipEndpoints.setHostname(hostname);
25
- this.accessControlList.setHostname(hostname);
26
- this.countryPermissions.setHostname(hostname);
27
- this.calls.setHostname(hostname);
49
+ this.lazyClient.sharedConfig.elasticSipTrunkingHostname = hostname;
50
+ this.lazyClient.getApiClient().apiClientOptions.hostname = hostname;
51
+ }
52
+ setCredentials(credentials) {
53
+ const parametersBackup = { ...this.lazyClient.sharedConfig };
54
+ this.lazyClient.sharedConfig = {
55
+ ...parametersBackup,
56
+ ...credentials,
57
+ };
58
+ this.lazyClient.resetApiClient();
59
+ try {
60
+ this.lazyClient.getApiClient();
61
+ }
62
+ catch (error) {
63
+ console.error('Impossible to assign the new credentials to the Elastic SIP Trunking API');
64
+ this.lazyClient.sharedConfig = parametersBackup;
65
+ throw error;
66
+ }
28
67
  }
29
68
  }
30
69
  exports.ElasticSipTrunkingService = ElasticSipTrunkingService;
@@ -1 +1 @@
1
- {"version":3,"file":"elastic-sip-trunking-service.js","sourceRoot":"","sources":["../../../src/rest/v1/elastic-sip-trunking-service.ts"],"names":[],"mappings":";;;AACA,6CAA4C;AAC5C,+DAA6D;AAC7D,mDAAkD;AAClD,+DAA8D;AAC9D,mDAAkD;AAElD,MA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;QACnE,IAAI,CAAC,UAAU,CAAC,YAAY,EAAE,CAAC,gBAAgB,CAAC,QAAQ,GAAG,QAAQ,CAAC;IACtE,CAAC;IAEM,cAAc,CAAC,WAAwC;QAC5D,MAAM,gBAAgB,GAAG,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,EAAE,CAAC;QAC7D,IAAI,CAAC,UAAU,CAAC,YAAY,GAAG;YAC7B,GAAG,gBAAgB;YACnB,GAAG,WAAW;SACf,CAAC;QACF,IAAI,CAAC,UAAU,CAAC,cAAc,EAAE,CAAC;QACjC,IAAI,CAAC;YACH,IAAI,CAAC,UAAU,CAAC,YAAY,EAAE,CAAC;QACjC,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,KAAK,CAAC,0EAA0E,CAAC,CAAC;YAC1F,IAAI,CAAC,UAAU,CAAC,YAAY,GAAG,gBAAgB,CAAC;YAChD,MAAM,KAAK,CAAC;QACd,CAAC;IACH,CAAC;CACF;AAnDD,8DAmDC"}
@@ -1,6 +1,10 @@
1
1
  export * from './access-control-list';
2
+ export * from './call-blocking-rules';
2
3
  export * from './calls-history';
3
4
  export * from './country-permissions';
5
+ export * from './credential-lists';
6
+ export * from './projects';
4
7
  export * from './sip-endpoints';
5
8
  export * from './sip-trunks';
9
+ export * from './elastic-sip-trunking-domain-api';
6
10
  export * from './elastic-sip-trunking-service';
@@ -15,9 +15,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./access-control-list"), exports);
18
+ __exportStar(require("./call-blocking-rules"), exports);
18
19
  __exportStar(require("./calls-history"), exports);
19
20
  __exportStar(require("./country-permissions"), exports);
21
+ __exportStar(require("./credential-lists"), exports);
22
+ __exportStar(require("./projects"), exports);
20
23
  __exportStar(require("./sip-endpoints"), exports);
21
24
  __exportStar(require("./sip-trunks"), exports);
25
+ __exportStar(require("./elastic-sip-trunking-domain-api"), exports);
22
26
  __exportStar(require("./elastic-sip-trunking-service"), exports);
23
27
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rest/v1/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,kDAAgC;AAChC,wDAAsC;AACtC,kDAAgC;AAChC,+CAA6B;AAC7B,iEAA+C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rest/v1/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,wDAAsC;AACtC,kDAAgC;AAChC,wDAAsC;AACtC,qDAAmC;AACnC,6CAA2B;AAC3B,kDAAgC;AAChC,+CAA6B;AAC7B,oEAAkD;AAClD,iEAA+C"}
@@ -0,0 +1,2 @@
1
+ export * from './projects-api';
2
+ export * from './projects-api.jest.fixture';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./projects-api"), exports);
18
+ __exportStar(require("./projects-api.jest.fixture"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/rest/v1/projects/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,8DAA4C"}
@@ -0,0 +1,12 @@
1
+ import { ElasticSipTrunkingDomainApi } from '../elastic-sip-trunking-domain-api';
2
+ import { LazyElasticSipTrunkingApiClient } from '../elastic-sip-trunking-service';
3
+ import { AddProjectsRequestData, AddProjectsResponse } from '../../../models';
4
+ export declare class ProjectsApi extends ElasticSipTrunkingDomainApi {
5
+ constructor(lazyClient: LazyElasticSipTrunkingApiClient);
6
+ /**
7
+ * Add additional projects to EST
8
+ * Programmatically add additional projects for use with Elastic SIP Trunking. If you list a project ID which EST is already aware of, it will be ignored.
9
+ * @param { AddProjectsRequestData } data - The data to provide to the API call.
10
+ */
11
+ add(data: AddProjectsRequestData): Promise<AddProjectsResponse>;
12
+ }
@@ -0,0 +1,8 @@
1
+ import { ProjectsApi } from './projects-api';
2
+ import { AddProjectsRequestData, AddProjectsResponse } from '../../../models';
3
+ export declare class ProjectsApiFixture implements Partial<Readonly<ProjectsApi>> {
4
+ /**
5
+ * Fixture associated to function add
6
+ */
7
+ add: jest.Mock<Promise<AddProjectsResponse>, [AddProjectsRequestData]>;
8
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProjectsApiFixture = void 0;
4
+ class ProjectsApiFixture {
5
+ constructor() {
6
+ /**
7
+ * Fixture associated to function add
8
+ */
9
+ this.add = jest.fn();
10
+ }
11
+ }
12
+ exports.ProjectsApiFixture = ProjectsApiFixture;
13
+ //# sourceMappingURL=projects-api.jest.fixture.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projects-api.jest.fixture.js","sourceRoot":"","sources":["../../../../src/rest/v1/projects/projects-api.jest.fixture.ts"],"names":[],"mappings":";;;AAGA,MAAa,kBAAkB;IAA/B;QAEE;;WAEG;QACI,QAAG,GAAsE,IAAI,CAAC,EAAE,EAAE,CAAC;IAC5F,CAAC;CAAA;AAND,gDAMC"}
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProjectsApi = void 0;
4
+ const elastic_sip_trunking_domain_api_1 = require("../elastic-sip-trunking-domain-api");
5
+ class ProjectsApi extends elastic_sip_trunking_domain_api_1.ElasticSipTrunkingDomainApi {
6
+ constructor(lazyClient) {
7
+ super(lazyClient, 'SipProjectsApi');
8
+ }
9
+ /**
10
+ * Add additional projects to EST
11
+ * Programmatically add additional projects for use with Elastic SIP Trunking. If you list a project ID which EST is already aware of, it will be ignored.
12
+ * @param { AddProjectsRequestData } data - The data to provide to the API call.
13
+ */
14
+ async add(data) {
15
+ const getParams = this.client.extractQueryParams(data, []);
16
+ const headers = {
17
+ 'Content-Type': 'application/json',
18
+ 'Accept': 'application/json',
19
+ };
20
+ const body = data['addProjectsRequestBody'] ? JSON.stringify(data['addProjectsRequestBody']) : '{}';
21
+ const basePathUrl = `${this.client.apiClientOptions.hostname}/v1/projects/${this.client.apiClientOptions.projectId}/addProjects`;
22
+ const requestOptions = await this.client.prepareOptions(basePathUrl, 'POST', getParams, headers, body || undefined);
23
+ const url = this.client.prepareUrl(requestOptions.hostname, requestOptions.queryParams);
24
+ return this.client.processCall({
25
+ url,
26
+ requestOptions,
27
+ apiName: this.apiName,
28
+ operationId: 'AddEstProjects',
29
+ });
30
+ }
31
+ }
32
+ exports.ProjectsApi = ProjectsApi;
33
+ //# sourceMappingURL=projects-api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projects-api.js","sourceRoot":"","sources":["../../../../src/rest/v1/projects/projects-api.ts"],"names":[],"mappings":";;;AACA,wFAAiF;AAIjF,MAAa,WAAY,SAAQ,6DAA2B;IAE1D,YAAY,UAA2C;QACrD,KAAK,CAAC,UAAU,EAAE,gBAAgB,CAAC,CAAC;IACtC,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,GAAG,CAAC,IAA4B;QAC3C,MAAM,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAyB,IAAI,EAAE,EAAa,CAAC,CAAC;QAC9F,MAAM,OAAO,GAA0C;YACrD,cAAc,EAAE,kBAAkB;YAClC,QAAQ,EAAE,kBAAkB;SAC7B,CAAC;QAEF,MAAM,IAAI,GAAgB,IAAI,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QACjH,MAAM,WAAW,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,QAAQ,gBAAgB,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,SAAS,cAAc,CAAC;QAEjI,MAAM,cAAc,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,IAAI,SAAS,CAAC,CAAC;QACpH,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,cAAc,CAAC,QAAQ,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC;QAExF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAsB;YAClD,GAAG;YACH,cAAc;YACd,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,WAAW,EAAE,gBAAgB;SAC9B,CAAC,CAAC;IACL,CAAC;CAEF;AAhCD,kCAgCC"}
@@ -1,13 +1,9 @@
1
+ import { ApiListPromise } from '@sinch/sdk-client';
1
2
  import { CreateSipEndpointRequestData, DeleteSipEndpointRequestData, ListSipEndpointsRequestData, GetSipEndpointByIdRequestData, UpdateSipEndpointRequestData, SipEndpoint } from '../../../models';
2
- import { SinchClientParameters, ApiListPromise } from '@sinch/sdk-client';
3
3
  import { ElasticSipTrunkingDomainApi } from '../elastic-sip-trunking-domain-api';
4
+ import { LazyElasticSipTrunkingApiClient } from '../elastic-sip-trunking-service';
4
5
  export declare class SipEndpointsApi extends ElasticSipTrunkingDomainApi {
5
- /**
6
- * Initialize your interface
7
- *
8
- * @param {SinchClientParameters} sinchClientParameters - The parameters used to initialize the API Client.
9
- */
10
- constructor(sinchClientParameters: SinchClientParameters);
6
+ constructor(lazyClient: LazyElasticSipTrunkingApiClient);
11
7
  /**
12
8
  * Create SIP endpoint
13
9
  * Create a new SIP endpoint.
@@ -4,13 +4,8 @@ exports.SipEndpointsApi = void 0;
4
4
  const sdk_client_1 = require("@sinch/sdk-client");
5
5
  const elastic_sip_trunking_domain_api_1 = require("../elastic-sip-trunking-domain-api");
6
6
  class SipEndpointsApi extends elastic_sip_trunking_domain_api_1.ElasticSipTrunkingDomainApi {
7
- /**
8
- * Initialize your interface
9
- *
10
- * @param {SinchClientParameters} sinchClientParameters - The parameters used to initialize the API Client.
11
- */
12
- constructor(sinchClientParameters) {
13
- super(sinchClientParameters, 'SipEndpointsApi');
7
+ constructor(lazyClient) {
8
+ super(lazyClient, 'SipEndpointsApi');
14
9
  }
15
10
  /**
16
11
  * Create SIP endpoint
@@ -18,7 +13,6 @@ class SipEndpointsApi extends elastic_sip_trunking_domain_api_1.ElasticSipTrunki
18
13
  * @param { CreateSipEndpointRequestData } data - The data to provide to the API call.
19
14
  */
20
15
  async create(data) {
21
- this.client = this.getSinchClient();
22
16
  const getParams = this.client.extractQueryParams(data, []);
23
17
  const headers = {
24
18
  'Content-Type': 'application/json',
@@ -43,7 +37,6 @@ class SipEndpointsApi extends elastic_sip_trunking_domain_api_1.ElasticSipTrunki
43
37
  * @param { DeleteSipEndpointRequestData } data - The data to provide to the API call.
44
38
  */
45
39
  async delete(data) {
46
- this.client = this.getSinchClient();
47
40
  const getParams = this.client.extractQueryParams(data, []);
48
41
  const headers = {
49
42
  'Content-Type': 'application/json',
@@ -67,8 +60,7 @@ class SipEndpointsApi extends elastic_sip_trunking_domain_api_1.ElasticSipTrunki
67
60
  * @return { ApiListPromise<SipEndpoint> }
68
61
  */
69
62
  list(data) {
70
- this.client = this.getSinchClient();
71
- const getParams = this.client.extractQueryParams(data, ['page', 'pageSize']);
63
+ const getParams = this.client.extractQueryParams(data, ['page', 'size']);
72
64
  const headers = {
73
65
  'Content-Type': 'application/json',
74
66
  'Accept': 'application/json',
@@ -94,7 +86,6 @@ class SipEndpointsApi extends elastic_sip_trunking_domain_api_1.ElasticSipTrunki
94
86
  * @param { GetSipEndpointByIdRequestData } data - The data to provide to the API call.
95
87
  */
96
88
  async get(data) {
97
- this.client = this.getSinchClient();
98
89
  const getParams = this.client.extractQueryParams(data, []);
99
90
  const headers = {
100
91
  'Content-Type': 'application/json',
@@ -117,7 +108,6 @@ class SipEndpointsApi extends elastic_sip_trunking_domain_api_1.ElasticSipTrunki
117
108
  * @param { UpdateSipEndpointRequestData } data - The data to provide to the API call.
118
109
  */
119
110
  async update(data) {
120
- this.client = this.getSinchClient();
121
111
  const getParams = this.client.extractQueryParams(data, []);
122
112
  const headers = {
123
113
  'Content-Type': 'application/json',
@@ -1 +1 @@
1
- {"version":3,"file":"sip-endpoints-api.js","sourceRoot":"","sources":["../../../../src/rest/v1/sip-endpoints/sip-endpoints-api.ts"],"names":[],"mappings":";;;AAQA,kDAQ2B;AAC3B,wFAAiF;AAEjF,MAAa,eAAgB,SAAQ,6DAA2B;IAE9D;;;;OAIG;IACH,YAAY,qBAA4C;QACtD,KAAK,CAAC,qBAAqB,EAAE,iBAAiB,CAAC,CAAC;IAClD,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,MAAM,CAAC,IAAkC;QACpD,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;QACpC,MAAM,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAA+B,IAAI,EAAE,EAAa,CAAC,CAAC;QACpG,MAAM,OAAO,GAA0C;YACrD,cAAc,EAAE,kBAAkB;YAClC,QAAQ,EAAE,kBAAkB;SAC7B,CAAC;QAEF,MAAM,IAAI,GAAgB,IAAI,CAAC,8BAA8B,CAAC;YAC5D,CAAC,CA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CAAc;YAC1C,GAAG;YACH,cAAc;YACd,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,WAAW,EAAE,mBAAmB;SACjC,CAAC,CAAC;IACL,CAAC;CAEF;AAjKD,0CAiKC"}
@@ -1,19 +1,21 @@
1
- import { AddAccessControlListToTrunk, AddAccessControlListToTrunkRequestData, CreateSipTrunkRequestData, DeleteAccessControlListFromTrunkRequestData, DeleteSipTrunkRequestData, ListAccessControlListsForTrunkRequestData, GetSipTrunkRequestData, ListSipTrunksRequestData, UpdateSipTrunkRequestData, SipTrunk } from '../../../models';
2
- import { SinchClientParameters, ApiListPromise } from '@sinch/sdk-client';
1
+ import { ApiListPromise } from '@sinch/sdk-client';
2
+ import { AddAccessControlListToTrunk, AddAccessControlListToTrunkRequestData, CreateSipTrunkRequestData, DeleteAccessControlListFromTrunkRequestData, DeleteSipTrunkRequestData, ListAccessControlListsForTrunkRequestData, GetSipTrunkRequestData, ListSipTrunksRequestData, UpdateSipTrunkRequestData, SipTrunk, AddCredentialListIdsToTrunkRequestData, CredentialList, CredentialListIds, UpdateCredentialListIdsForTrunkRequestData, ListCredentialListsForTrunkRequestData, DeleteCredentialListFromTrunkRequestData } from '../../../models';
3
3
  import { ElasticSipTrunkingDomainApi } from '../elastic-sip-trunking-domain-api';
4
+ import { LazyElasticSipTrunkingApiClient } from '../elastic-sip-trunking-service';
4
5
  export declare class SipTrunksApi extends ElasticSipTrunkingDomainApi {
5
- /**
6
- * Initialize your interface
7
- *
8
- * @param {SinchClientParameters} sinchClientParameters - The parameters used to initialize the API Client.
9
- */
10
- constructor(sinchClientParameters: SinchClientParameters);
6
+ constructor(lazyClient: LazyElasticSipTrunkingApiClient);
11
7
  /**
12
8
  * Add ACL to a trunk
13
9
  * Add an access control list entry to a trunk.
14
10
  * @param { AddAccessControlListToTrunkRequestData } data - The data to provide to the API call.
15
11
  */
16
12
  addAccessControlList(data: AddAccessControlListToTrunkRequestData): Promise<AddAccessControlListToTrunk>;
13
+ /**
14
+ * Add credential lists to SIP trunk
15
+ * Add credential lists to a specified SIP trunk.
16
+ * @param { AddCredentialListIdsToTrunkRequestData } data - The data to provide to the API call.
17
+ */
18
+ addCredentialLists(data: AddCredentialListIdsToTrunkRequestData): Promise<CredentialListIds>;
17
19
  /**
18
20
  * Create SIP trunk
19
21
  * Creates a new SIP trunk.
@@ -32,6 +34,12 @@ export declare class SipTrunksApi extends ElasticSipTrunkingDomainApi {
32
34
  * @param { DeleteSipTrunkRequestData } data - The data to provide to the API call.
33
35
  */
34
36
  delete(data: DeleteSipTrunkRequestData): Promise<void>;
37
+ /**
38
+ * Remove credential list from sip trunk
39
+ *
40
+ * @param { DeleteCredentialListFromTrunkRequestData } data - The data to provide to the API call.
41
+ */
42
+ deleteCredentialList(data: DeleteCredentialListFromTrunkRequestData): Promise<void>;
35
43
  /**
36
44
  * List all ACLs for a trunk
37
45
  * Get all access control list entries for a trunk.
@@ -51,11 +59,23 @@ export declare class SipTrunksApi extends ElasticSipTrunkingDomainApi {
51
59
  * @param { ListSipTrunksRequestData } data - The data to provide to the API call.
52
60
  * @return { ApiListPromise<SipTrunk> }
53
61
  */
54
- list(data: ListSipTrunksRequestData): ApiListPromise<SipTrunk>;
62
+ list(data?: ListSipTrunksRequestData): ApiListPromise<SipTrunk>;
63
+ /**
64
+ * Get credential lists for SIP trunk
65
+ * Return all the credential lists for a specified SIP trunk.
66
+ * @param { ListCredentialListsForTrunkRequestData } data - The data to provide to the API call.
67
+ */
68
+ listCredentialLists(data: ListCredentialListsForTrunkRequestData): ApiListPromise<CredentialList>;
55
69
  /**
56
70
  * Update SIP trunk
57
71
  * Update an existing SIP Trunk by ID. The whole object must be sent. Any missing fields will be set to null.
58
72
  * @param { UpdateSipTrunkRequestData } data - The data to provide to the API call.
59
73
  */
60
74
  update(data: UpdateSipTrunkRequestData): Promise<SipTrunk>;
75
+ /**
76
+ * Bulk update credential lists for a trunk
77
+ * Update the list of credential list entries for a trunk.
78
+ * @param { UpdateCredentialListIdsForTrunkRequestData } data - The data to provide to the API call.
79
+ */
80
+ updateCredentialLists(data: UpdateCredentialListIdsForTrunkRequestData): Promise<CredentialListIds>;
61
81
  }
@@ -1,41 +1,59 @@
1
1
  import { SipTrunksApi } from './sip-trunks-api';
2
- import { AddAccessControlListToTrunk, SipTrunk, AddAccessControlListToTrunkRequestData, CreateSipTrunkRequestData, DeleteAccessControlListFromTrunkRequestData, DeleteSipTrunkRequestData, ListAccessControlListsForTrunkRequestData, GetSipTrunkRequestData, ListSipTrunksRequestData, UpdateSipTrunkRequestData } from '../../../models';
2
+ import { AddAccessControlListToTrunk, SipTrunk, AddAccessControlListToTrunkRequestData, CreateSipTrunkRequestData, DeleteAccessControlListFromTrunkRequestData, DeleteSipTrunkRequestData, ListAccessControlListsForTrunkRequestData, GetSipTrunkRequestData, ListSipTrunksRequestData, UpdateSipTrunkRequestData, CredentialListIds, AddCredentialListIdsToTrunkRequestData, DeleteCredentialListFromTrunkRequestData, ListCredentialListsForTrunkRequestData, UpdateCredentialListIdsForTrunkRequestData, CredentialList } from '../../../models';
3
3
  import { ApiListPromise } from '@sinch/sdk-client';
4
4
  export declare class SipTrunksApiFixture implements Partial<Readonly<SipTrunksApi>> {
5
5
  /**
6
- * Fixture associated to function addAccessControlList
6
+ * Fixture associated with function addAccessControlList
7
7
  */
8
8
  addAccessControlList: jest.Mock<Promise<AddAccessControlListToTrunk>, [
9
9
  AddAccessControlListToTrunkRequestData
10
10
  ]>;
11
11
  /**
12
- * Fixture associated to function create
12
+ * Fixture associated with function addCredentialLists
13
+ */
14
+ addCredentialLists: jest.Mock<Promise<CredentialListIds>, [
15
+ AddCredentialListIdsToTrunkRequestData
16
+ ]>;
17
+ /**
18
+ * Fixture associated with function create
13
19
  */
14
20
  create: jest.Mock<Promise<SipTrunk>, [CreateSipTrunkRequestData]>;
15
21
  /**
16
- * Fixture associated to function deleteAccessControlListFromTrunk
22
+ * Fixture associated with function deleteAccessControlList
17
23
  */
18
24
  deleteAccessControlList: jest.Mock<Promise<void>, [DeleteAccessControlListFromTrunkRequestData]>;
19
25
  /**
20
- * Fixture associated to function deleteSipTrunk
26
+ * Fixture associated with function delete
21
27
  */
22
28
  delete: jest.Mock<Promise<void>, [DeleteSipTrunkRequestData]>;
23
29
  /**
24
- * Fixture associated to function getAccessControlListsForTrunk
30
+ * Fixture associated with function deleteCredentialList
31
+ */
32
+ deleteCredentialList: jest.Mock<Promise<void>, [DeleteCredentialListFromTrunkRequestData]>;
33
+ /**
34
+ * Fixture associated with function listAccessControlLists
25
35
  */
26
36
  listAccessControlLists: jest.Mock<ApiListPromise<string>, [
27
37
  ListAccessControlListsForTrunkRequestData
28
38
  ]>;
29
39
  /**
30
- * Fixture associated to function getSipTrunkById
40
+ * Fixture associated with function get
31
41
  */
32
42
  get: jest.Mock<Promise<SipTrunk>, [GetSipTrunkRequestData]>;
33
43
  /**
34
- * Fixture associated to function getSipTrunks
44
+ * Fixture associated with function list
35
45
  */
36
46
  list: jest.Mock<ApiListPromise<SipTrunk>, [ListSipTrunksRequestData]>;
37
47
  /**
38
- * Fixture associated to function updateSipTrunk
48
+ * Fixture associated with function listCredentialLists
49
+ */
50
+ listCredentialLists: jest.Mock<ApiListPromise<CredentialList>, [ListCredentialListsForTrunkRequestData]>;
51
+ /**
52
+ * Fixture associated with function update
39
53
  */
40
54
  update: jest.Mock<Promise<SipTrunk>, [UpdateSipTrunkRequestData]>;
55
+ /**
56
+ * Fixture associated with function updateCredentialLists
57
+ */
58
+ updateCredentialLists: jest.Mock<Promise<CredentialListIds>, [UpdateCredentialListIdsForTrunkRequestData]>;
41
59
  }