@routr/sdk 2.11.4 → 2.12.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.
- package/README.md +5 -5
- package/dist/domains/domains.d.ts +2 -2
- package/dist/domains/domains.js +2 -2
- package/dist/domains/index.d.ts +1 -1
- package/dist/domains/index.js +1 -1
- package/dist/domains/types.d.ts +4 -8
- package/dist/index.d.ts +0 -1
- package/dist/numbers/numbers.d.ts +3 -3
- package/dist/numbers/numbers.js +4 -4
- package/dist/numbers/types.d.ts +1 -3
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -619,7 +619,7 @@ Creates a new Domain on Routr.
|
|
|
619
619
|
| request.name | <code>string</code> | Name of the Domain |
|
|
620
620
|
| request.domainUri | <code>string</code> | The FQDN of the Domain |
|
|
621
621
|
| request.accessControlListRef | <code>string</code> | The reference to the AccessControlList for the Domain |
|
|
622
|
-
| request.egressPolicies | <code>Array.<
|
|
622
|
+
| request.egressPolicies | <code>Array.<EgressPolicy></code> | The list of EgressPolicies for the Domain |
|
|
623
623
|
| request.extended | <code>string</code> | Optional extended attributes |
|
|
624
624
|
|
|
625
625
|
**Example**
|
|
@@ -654,7 +654,7 @@ Updates an already existing Domain on Routr.
|
|
|
654
654
|
| request | <code>UpdateDomainRequest</code> | Partial with the fields to update |
|
|
655
655
|
| request.name | <code>string</code> | Name of the Domain |
|
|
656
656
|
| request.accessControlListRef | <code>string</code> | The reference to the AccessControlList for the Domain |
|
|
657
|
-
| request.egressPolicies | <code>Array.<
|
|
657
|
+
| request.egressPolicies | <code>Array.<EgressPolicy></code> | The list of EgressPolicies for the Domain |
|
|
658
658
|
| request.extended | <code>string</code> | Optional extended attributes |
|
|
659
659
|
|
|
660
660
|
**Example**
|
|
@@ -772,7 +772,7 @@ const request = {
|
|
|
772
772
|
aorLink: "sip:100@sip.local",
|
|
773
773
|
city: "San Francisco",
|
|
774
774
|
country: "United States",
|
|
775
|
-
|
|
775
|
+
countryIsoCode: "US",
|
|
776
776
|
sessionAffinityHeader: "X-Room-Id"
|
|
777
777
|
extraHeaders: [{
|
|
778
778
|
name: "X-Room-Id",
|
|
@@ -807,7 +807,7 @@ Creates a new Number on Routr.
|
|
|
807
807
|
| request.aorLink | <code>string</code> | The AOR link to be used (e.g., sip:1001@sip.local) |
|
|
808
808
|
| request.city | <code>string</code> | The city where the number is located |
|
|
809
809
|
| request.country | <code>string</code> | The country where the number is located |
|
|
810
|
-
| request.
|
|
810
|
+
| request.countryIsoCode | <code>string</code> | The country ISO code where the number is located |
|
|
811
811
|
| request.extraHeaders | <code>Array.<JsonObject></code> | Extra headers to be used (e.g., [\{name: "X-Room-Id", value: "abc-us-123"\}]) |
|
|
812
812
|
| request.trunkRef | <code>string</code> | The Trunk reference to be used |
|
|
813
813
|
| request.sessionAffinityHeader | <code>string</code> | Optional session affinity header |
|
|
@@ -822,7 +822,7 @@ const request = {
|
|
|
822
822
|
aorLink: "sip:100@sip.local",
|
|
823
823
|
city: "San Francisco",
|
|
824
824
|
country: "United States",
|
|
825
|
-
|
|
825
|
+
countryIsoCode: "US",
|
|
826
826
|
sessionAffinityHeader: "X-Room-Id"
|
|
827
827
|
extraHeaders: [{
|
|
828
828
|
name: "X-Room-Id",
|
|
@@ -43,7 +43,7 @@ export declare class Domains extends APIClient {
|
|
|
43
43
|
* @param {string} request.name - Name of the Domain
|
|
44
44
|
* @param {string} request.domainUri - The FQDN of the Domain
|
|
45
45
|
* @param {string} request.accessControlListRef - The reference to the AccessControlList for the Domain
|
|
46
|
-
* @param {
|
|
46
|
+
* @param {EgressPolicy[]} request.egressPolicies - The list of EgressPolicies for the Domain
|
|
47
47
|
* @param {string} request.extended - Optional extended attributes
|
|
48
48
|
* @return {Promise<CreateDomainResponse>} The newly created Domain
|
|
49
49
|
* @throws if request is null
|
|
@@ -73,7 +73,7 @@ export declare class Domains extends APIClient {
|
|
|
73
73
|
* @param {UpdateDomainRequest} request - Partial with the fields to update
|
|
74
74
|
* @param {string} request.name - Name of the Domain
|
|
75
75
|
* @param {string} request.accessControlListRef - The reference to the AccessControlList for the Domain
|
|
76
|
-
* @param {
|
|
76
|
+
* @param {EgressPolicy[]} request.egressPolicies - The list of EgressPolicies for the Domain
|
|
77
77
|
* @param {string} request.extended - Optional extended attributes
|
|
78
78
|
* @return {Promise<UpdateDomainResponse>} The updated Domain
|
|
79
79
|
* @example
|
package/dist/domains/domains.js
CHANGED
|
@@ -73,7 +73,7 @@ class Domains extends client_1.APIClient {
|
|
|
73
73
|
* @param {string} request.name - Name of the Domain
|
|
74
74
|
* @param {string} request.domainUri - The FQDN of the Domain
|
|
75
75
|
* @param {string} request.accessControlListRef - The reference to the AccessControlList for the Domain
|
|
76
|
-
* @param {
|
|
76
|
+
* @param {EgressPolicy[]} request.egressPolicies - The list of EgressPolicies for the Domain
|
|
77
77
|
* @param {string} request.extended - Optional extended attributes
|
|
78
78
|
* @return {Promise<CreateDomainResponse>} The newly created Domain
|
|
79
79
|
* @throws if request is null
|
|
@@ -107,7 +107,7 @@ class Domains extends client_1.APIClient {
|
|
|
107
107
|
* @param {UpdateDomainRequest} request - Partial with the fields to update
|
|
108
108
|
* @param {string} request.name - Name of the Domain
|
|
109
109
|
* @param {string} request.accessControlListRef - The reference to the AccessControlList for the Domain
|
|
110
|
-
* @param {
|
|
110
|
+
* @param {EgressPolicy[]} request.egressPolicies - The list of EgressPolicies for the Domain
|
|
111
111
|
* @param {string} request.extended - Optional extended attributes
|
|
112
112
|
* @return {Promise<UpdateDomainResponse>} The updated Domain
|
|
113
113
|
* @example
|
package/dist/domains/index.d.ts
CHANGED
package/dist/domains/index.js
CHANGED
|
@@ -33,6 +33,6 @@ exports.default = void 0;
|
|
|
33
33
|
* See the License for the specific language governing permissions and
|
|
34
34
|
* limitations under the License.
|
|
35
35
|
*/
|
|
36
|
+
__exportStar(require("./domains"), exports);
|
|
36
37
|
var domains_1 = require("./domains");
|
|
37
38
|
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return domains_1.Domains; } });
|
|
38
|
-
__exportStar(require("./types"), exports);
|
package/dist/domains/types.d.ts
CHANGED
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
import { CommonConnect as CC } from "@routr/common";
|
|
2
2
|
import { CreateBaseOmit } from "../types";
|
|
3
|
-
type
|
|
4
|
-
[K in keyof T]: T[K] extends object ? Unpack<T[K]> : T[K];
|
|
5
|
-
};
|
|
6
|
-
export type CreateDomainRequest = Unpack<Omit<CC.Domain, CreateBaseOmit | "accessControlList" | "egressPolicies"> & {
|
|
3
|
+
export type CreateDomainRequest = Omit<CC.Domain, CreateBaseOmit | "accessControlList" | "egressPolicies"> & {
|
|
7
4
|
egressPolicies?: Omit<CC.EgressPolicy, "number">[];
|
|
8
|
-
}
|
|
5
|
+
};
|
|
9
6
|
export type CreateDomainResponse = CC.Domain;
|
|
10
|
-
export type UpdateDomainRequest =
|
|
7
|
+
export type UpdateDomainRequest = {
|
|
11
8
|
ref: string;
|
|
12
|
-
} & Partial<Omit<CreateDomainRequest, "domainUri"
|
|
9
|
+
} & Partial<Omit<CreateDomainRequest, "domainUri">>;
|
|
13
10
|
export type UpdateDomainResponse = CC.Domain;
|
|
14
11
|
export type ListDomainRequest = CC.ListRequest;
|
|
15
12
|
export type ListDomainResponse = CC.ListResponse<CC.Domain>;
|
|
16
13
|
export type GetDomainResponse = CC.Domain;
|
|
17
|
-
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ import { CreateNumberRequest, CreateNumberResponse, GetNumberResponse, ListNumbe
|
|
|
18
18
|
* aorLink: "sip:100@sip.local",
|
|
19
19
|
* city: "San Francisco",
|
|
20
20
|
* country: "United States",
|
|
21
|
-
*
|
|
21
|
+
* countryIsoCode: "US",
|
|
22
22
|
* sessionAffinityHeader: "X-Room-Id"
|
|
23
23
|
* extraHeaders: [{
|
|
24
24
|
* name: "X-Room-Id",
|
|
@@ -50,7 +50,7 @@ export declare class Numbers extends APIClient {
|
|
|
50
50
|
* @param {string} request.aorLink - The AOR link to be used (e.g., sip:1001@sip.local)
|
|
51
51
|
* @param {string} request.city - The city where the number is located
|
|
52
52
|
* @param {string} request.country - The country where the number is located
|
|
53
|
-
* @param {string} request.
|
|
53
|
+
* @param {string} request.countryIsoCode - The country ISO code where the number is located
|
|
54
54
|
* @param {JsonObject[]} request.extraHeaders - Extra headers to be used (e.g., [\{name: "X-Room-Id", value: "abc-us-123"\}])
|
|
55
55
|
* @param {string} request.trunkRef - The Trunk reference to be used
|
|
56
56
|
* @param {string} request.sessionAffinityHeader - Optional session affinity header
|
|
@@ -66,7 +66,7 @@ export declare class Numbers extends APIClient {
|
|
|
66
66
|
* aorLink: "sip:100@sip.local",
|
|
67
67
|
* city: "San Francisco",
|
|
68
68
|
* country: "United States",
|
|
69
|
-
*
|
|
69
|
+
* countryIsoCode: "US",
|
|
70
70
|
* sessionAffinityHeader: "X-Room-Id"
|
|
71
71
|
* extraHeaders: [{
|
|
72
72
|
* name: "X-Room-Id",
|
package/dist/numbers/numbers.js
CHANGED
|
@@ -46,7 +46,7 @@ const client_1 = require("../client");
|
|
|
46
46
|
* aorLink: "sip:100@sip.local",
|
|
47
47
|
* city: "San Francisco",
|
|
48
48
|
* country: "United States",
|
|
49
|
-
*
|
|
49
|
+
* countryIsoCode: "US",
|
|
50
50
|
* sessionAffinityHeader: "X-Room-Id"
|
|
51
51
|
* extraHeaders: [{
|
|
52
52
|
* name: "X-Room-Id",
|
|
@@ -80,7 +80,7 @@ class Numbers extends client_1.APIClient {
|
|
|
80
80
|
* @param {string} request.aorLink - The AOR link to be used (e.g., sip:1001@sip.local)
|
|
81
81
|
* @param {string} request.city - The city where the number is located
|
|
82
82
|
* @param {string} request.country - The country where the number is located
|
|
83
|
-
* @param {string} request.
|
|
83
|
+
* @param {string} request.countryIsoCode - The country ISO code where the number is located
|
|
84
84
|
* @param {JsonObject[]} request.extraHeaders - Extra headers to be used (e.g., [\{name: "X-Room-Id", value: "abc-us-123"\}])
|
|
85
85
|
* @param {string} request.trunkRef - The Trunk reference to be used
|
|
86
86
|
* @param {string} request.sessionAffinityHeader - Optional session affinity header
|
|
@@ -96,7 +96,7 @@ class Numbers extends client_1.APIClient {
|
|
|
96
96
|
* aorLink: "sip:100@sip.local",
|
|
97
97
|
* city: "San Francisco",
|
|
98
98
|
* country: "United States",
|
|
99
|
-
*
|
|
99
|
+
* countryIsoCode: "US",
|
|
100
100
|
* sessionAffinityHeader: "X-Room-Id"
|
|
101
101
|
* extraHeaders: [{
|
|
102
102
|
* name: "X-Room-Id",
|
|
@@ -113,7 +113,7 @@ class Numbers extends client_1.APIClient {
|
|
|
113
113
|
*/
|
|
114
114
|
createNumber(request) {
|
|
115
115
|
return __awaiter(this, void 0, void 0, function* () {
|
|
116
|
-
return this.client.numbers.create(
|
|
116
|
+
return this.client.numbers.create(request);
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
119
|
/**
|
package/dist/numbers/types.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { CommonConnect as CC } from "@routr/common";
|
|
2
2
|
import { CreateBaseOmit } from "../types";
|
|
3
|
-
export type CreateNumberRequest = Omit<CC.INumber, CreateBaseOmit | "trunk"
|
|
4
|
-
countryISOCode: string;
|
|
5
|
-
};
|
|
3
|
+
export type CreateNumberRequest = Omit<CC.INumber, CreateBaseOmit | "trunk">;
|
|
6
4
|
export type CreateNumberResponse = CC.INumber;
|
|
7
5
|
export type UpdateNumberRequest = {
|
|
8
6
|
ref: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@routr/sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.12.0",
|
|
4
4
|
"description": "The Routr SDK for Node.js",
|
|
5
5
|
"author": "Pedro Sanders <psanders@fonoster.com>",
|
|
6
6
|
"homepage": "https://github.com/fonoster/routr#readme",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"generate:readme": "node ../../.scripts/gen-readme.js"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@fonoster/logger": "0.
|
|
20
|
+
"@fonoster/logger": "0.6.0",
|
|
21
21
|
"@grpc/grpc-js": "~1.10.1",
|
|
22
22
|
"@opentelemetry/api": "^1.0.4",
|
|
23
23
|
"@opentelemetry/exporter-jaeger": "^1.0.4",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@opentelemetry/sdk-trace-base": "^1.0.4",
|
|
28
28
|
"@opentelemetry/sdk-trace-node": "^1.0.4",
|
|
29
29
|
"@opentelemetry/semantic-conventions": "^1.0.4",
|
|
30
|
-
"@routr/common": "^2.
|
|
30
|
+
"@routr/common": "^2.12.0",
|
|
31
31
|
"google-protobuf": "^3.9.2",
|
|
32
32
|
"pb-util": "^1.0.3"
|
|
33
33
|
},
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/google-protobuf": "^3.15.6"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "83c134c9ad3f414bdd8c30222ac5be7cdfd13420"
|
|
51
51
|
}
|