@novalabsxyz/subscriber-location-service-proto
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -212,4 +212,4 @@ import * as $protobuf from "protobufjs"; | ||
/** subscriber_location_req_v1 imsi */ | ||
imsi?: (string|null); | ||
/** subscriber_location_req_v1 imsis */ | ||
imsis?: (string[]|null); | ||
} | ||
@@ -229,4 +229,4 @@ | ||
/** subscriber_location_req_v1 imsi. */ | ||
public imsi: string; | ||
/** subscriber_location_req_v1 imsis. */ | ||
public imsis: string[]; | ||
@@ -233,0 +233,0 @@ /** |
@@ -658,3 +658,3 @@ /*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/ | ||
* @property {novalabs.subscriber_location.Isubscriber_mapping_event|null} [event] subscriber_location_req_v1 event | ||
* @property {string|null} [imsi] subscriber_location_req_v1 imsi | ||
* @property {Array.<string>|null} [imsis] subscriber_location_req_v1 imsis | ||
*/ | ||
@@ -671,2 +671,3 @@ | ||
function subscriber_location_req_v1(properties) { | ||
this.imsis = []; | ||
if (properties) | ||
@@ -687,8 +688,8 @@ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) | ||
/** | ||
* subscriber_location_req_v1 imsi. | ||
* @member {string} imsi | ||
* subscriber_location_req_v1 imsis. | ||
* @member {Array.<string>} imsis | ||
* @memberof novalabs.subscriber_location.subscriber_location_req_v1 | ||
* @instance | ||
*/ | ||
subscriber_location_req_v1.prototype.imsi = ""; | ||
subscriber_location_req_v1.prototype.imsis = $util.emptyArray; | ||
@@ -721,4 +722,5 @@ /** | ||
$root.novalabs.subscriber_location.subscriber_mapping_event.encode(message.event, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); | ||
if (message.imsi != null && Object.hasOwnProperty.call(message, "imsi")) | ||
writer.uint32(/* id 2, wireType 2 =*/18).string(message.imsi); | ||
if (message.imsis != null && message.imsis.length) | ||
for (var i = 0; i < message.imsis.length; ++i) | ||
writer.uint32(/* id 2, wireType 2 =*/18).string(message.imsis[i]); | ||
return writer; | ||
@@ -762,3 +764,5 @@ }; | ||
case 2: | ||
message.imsi = reader.string(); | ||
if (!(message.imsis && message.imsis.length)) | ||
message.imsis = []; | ||
message.imsis.push(reader.string()); | ||
break; | ||
@@ -805,5 +809,9 @@ default: | ||
} | ||
if (message.imsi != null && message.hasOwnProperty("imsi")) | ||
if (!$util.isString(message.imsi)) | ||
return "imsi: string expected"; | ||
if (message.imsis != null && message.hasOwnProperty("imsis")) { | ||
if (!Array.isArray(message.imsis)) | ||
return "imsis: array expected"; | ||
for (var i = 0; i < message.imsis.length; ++i) | ||
if (!$util.isString(message.imsis[i])) | ||
return "imsis: string[] expected"; | ||
} | ||
return null; | ||
@@ -829,4 +837,9 @@ }; | ||
} | ||
if (object.imsi != null) | ||
message.imsi = String(object.imsi); | ||
if (object.imsis) { | ||
if (!Array.isArray(object.imsis)) | ||
throw TypeError(".novalabs.subscriber_location.subscriber_location_req_v1.imsis: array expected"); | ||
message.imsis = []; | ||
for (var i = 0; i < object.imsis.length; ++i) | ||
message.imsis[i] = String(object.imsis[i]); | ||
} | ||
return message; | ||
@@ -848,10 +861,13 @@ }; | ||
var object = {}; | ||
if (options.defaults) { | ||
if (options.arrays || options.defaults) | ||
object.imsis = []; | ||
if (options.defaults) | ||
object.event = null; | ||
object.imsi = ""; | ||
} | ||
if (message.event != null && message.hasOwnProperty("event")) | ||
object.event = $root.novalabs.subscriber_location.subscriber_mapping_event.toObject(message.event, options); | ||
if (message.imsi != null && message.hasOwnProperty("imsi")) | ||
object.imsi = message.imsi; | ||
if (message.imsis && message.imsis.length) { | ||
object.imsis = []; | ||
for (var j = 0; j < message.imsis.length; ++j) | ||
object.imsis[j] = message.imsis[j]; | ||
} | ||
return object; | ||
@@ -858,0 +874,0 @@ }; |
{ | ||
"name": "@novalabsxyz/subscriber-location-service-proto", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Subscriber Location Service protobuf definitions compiled to JS with TypeScript types", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
95889
1414