@routr/common 2.23.0 → 2.24.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.
@@ -95,7 +95,7 @@ export interface NumberConfig extends Omit<ConfigBase, "metadata"> {
95
95
  export interface TrunkConfig extends ConfigBase {
96
96
  kind: Kind.TRUNK;
97
97
  spec: {
98
- enforceE164?: boolean;
98
+ normalizeToE164?: boolean;
99
99
  rewriteFromWithNumber?: boolean;
100
100
  fromDomain?: string;
101
101
  inbound: {
@@ -13,7 +13,7 @@ function mapToTrunk(config) {
13
13
  ref: config.ref,
14
14
  name: config.metadata.name,
15
15
  sendRegister: (_a = config.spec.outbound) === null || _a === void 0 ? void 0 : _a.sendRegister,
16
- enforceE164: (_b = config.spec.enforceE164) !== null && _b !== void 0 ? _b : false,
16
+ normalizeToE164: (_b = config.spec.normalizeToE164) !== null && _b !== void 0 ? _b : false,
17
17
  rewriteFromWithNumber: (_c = config.spec.rewriteFromWithNumber) !== null && _c !== void 0 ? _c : false,
18
18
  fromDomain: config.spec.fromDomain,
19
19
  inboundUri: (_d = config.spec.inbound) === null || _d === void 0 ? void 0 : _d.uri,
@@ -89,7 +89,7 @@ message Trunk {
89
89
  // Message recording for the calls that touch this Trunk
90
90
  fonoster.routr.connect.trace.v2beta1.Trace trace = 13;
91
91
  // Normalize From, To and Request-URI users to +E.164 on calls through this Trunk
92
- bool enforce_e164 = 14;
92
+ bool normalize_to_e164 = 14;
93
93
  // On calls leaving through this Trunk, From becomes the Number's E.164 at from_domain
94
94
  bool rewrite_from_with_number = 15;
95
95
  // Host part of the rewritten From. Defaults to the outbound URI host
@@ -119,7 +119,7 @@ message CreateTrunkRequest {
119
119
  // Message recording for the calls that touch this Trunk
120
120
  fonoster.routr.connect.trace.v2beta1.Trace trace = 10;
121
121
  // Normalize From, To and Request-URI users to +E.164 on calls through this Trunk
122
- bool enforce_e164 = 11;
122
+ bool normalize_to_e164 = 11;
123
123
  // On calls leaving through this Trunk, From becomes the Number's E.164 at from_domain
124
124
  bool rewrite_from_with_number = 12;
125
125
  // Host part of the rewritten From. Defaults to the outbound URI host
@@ -151,7 +151,7 @@ message UpdateTrunkRequest {
151
151
  // Message recording for the calls that touch this Trunk
152
152
  fonoster.routr.connect.trace.v2beta1.Trace trace = 11;
153
153
  // Normalize From, To and Request-URI users to +E.164 on calls through this Trunk
154
- optional bool enforce_e164 = 12;
154
+ optional bool normalize_to_e164 = 12;
155
155
  // On calls leaving through this Trunk, From becomes the Number's E.164 at from_domain
156
156
  optional bool rewrite_from_with_number = 13;
157
157
  // Host part of the rewritten From. Defaults to the outbound URI host
@@ -30,7 +30,7 @@ declare const _default: {
30
30
  description: string;
31
31
  type: string;
32
32
  properties: {
33
- enforceE164: {
33
+ normalizeToE164: {
34
34
  description: string;
35
35
  type: string;
36
36
  };
@@ -50,7 +50,7 @@ exports.default = {
50
50
  description: "Operations spec for an Trunk",
51
51
  type: "object",
52
52
  properties: {
53
- enforceE164: {
53
+ normalizeToE164: {
54
54
  description: "Normalize From, To and Request-URI users to +E.164 on calls through this Trunk",
55
55
  type: "boolean"
56
56
  },
@@ -73,7 +73,7 @@ export interface INumber extends BaseConnectModel {
73
73
  }
74
74
  export interface Trunk extends BaseConnectModel {
75
75
  sendRegister: boolean;
76
- enforceE164?: boolean;
76
+ normalizeToE164?: boolean;
77
77
  rewriteFromWithNumber?: boolean;
78
78
  fromDomain?: string;
79
79
  inboundUri: string;
package/dist/types.d.ts CHANGED
@@ -145,10 +145,10 @@ export interface Route {
145
145
  headers?: HeaderModifier[];
146
146
  metadata?: Record<string, string>;
147
147
  /**
148
- * Set on routes to a Trunk with enforceE164: the From, To and Request-URI
148
+ * Set on routes to a Trunk with normalizeToE164: the From, To and Request-URI
149
149
  * users are normalized to +E.164 before the request leaves.
150
150
  */
151
- enforceE164?: boolean;
151
+ normalizeToE164?: boolean;
152
152
  /**
153
153
  * Set on routes to a Trunk with rewriteFromWithNumber: the identity the
154
154
  * From header takes on the way out (the Number, at the Trunk's fromDomain).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@routr/common",
3
- "version": "2.23.0",
3
+ "version": "2.24.0",
4
4
  "description": "Common package",
5
5
  "author": "Pedro Sanders <psanders@fonoster.com>",
6
6
  "homepage": "https://github.com/fonoster/routr#readme",
@@ -53,5 +53,5 @@
53
53
  "devDependencies": {
54
54
  "@types/js-yaml": "^4.0.5"
55
55
  },
56
- "gitHead": "47b6950fc8ce49832903f4fc6c7b75d561e536d4"
56
+ "gitHead": "168637a54c6390bb7c79dc77a6e9f763d2ce2da2"
57
57
  }