@routr/sdk 2.11.5 → 2.12.1

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 CHANGED
@@ -772,7 +772,7 @@ const request = {
772
772
  aorLink: "sip:100@sip.local",
773
773
  city: "San Francisco",
774
774
  country: "United States",
775
- countryISOCode: "US",
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.countryISOCode | <code>string</code> | The country ISO code where the number is located |
810
+ | request.countryIsoCode | <code>string</code> | The country ISO code where the number is located |
811
811
  | request.extraHeaders | <code>Array.&lt;JsonObject&gt;</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
- countryISOCode: "US",
825
+ countryIsoCode: "US",
826
826
  sessionAffinityHeader: "X-Room-Id"
827
827
  extraHeaders: [{
828
828
  name: "X-Room-Id",
@@ -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
- * countryISOCode: "US",
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.countryISOCode - The country ISO code where the number is located
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
- * countryISOCode: "US",
69
+ * countryIsoCode: "US",
70
70
  * sessionAffinityHeader: "X-Room-Id"
71
71
  * extraHeaders: [{
72
72
  * name: "X-Room-Id",
@@ -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
- * countryISOCode: "US",
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.countryISOCode - The country ISO code where the number is located
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
- * countryISOCode: "US",
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(Object.assign(Object.assign({}, request), { countryIsoCode: request.countryISOCode }));
116
+ return this.client.numbers.create(request);
117
117
  });
118
118
  }
119
119
  /**
@@ -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" | "countryIsoCode"> & {
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.11.5",
3
+ "version": "2.12.1",
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.3.20",
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.11.5",
30
+ "@routr/common": "^2.12.1",
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": "5183aed7ea8b3c0a2a963224ef6068a7922a9e0b"
50
+ "gitHead": "cf4c8276173ec4be0a8013e70935b6cffb29cda4"
51
51
  }