@sniipwebmaster/config-service-client-grpcweb 22.19.1490 → 22.20.1506

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.
@@ -634,6 +634,86 @@ proto.sniipappappconfigapi.SniipAppAppConfigAPIServicePromiseClient.prototype.ge
634
634
  };
635
635
 
636
636
 
637
+ /**
638
+ * @const
639
+ * @type {!grpc.web.MethodDescriptor<
640
+ * !proto.google.protobuf.Empty,
641
+ * !proto.sniipappappconfigapi.UserConfigResponse>}
642
+ */
643
+ const methodDescriptor_SniipAppAppConfigAPIService_GetUserConfig = new grpc.web.MethodDescriptor(
644
+ '/sniipappappconfigapi.SniipAppAppConfigAPIService/GetUserConfig',
645
+ grpc.web.MethodType.UNARY,
646
+ google_protobuf_empty_pb.Empty,
647
+ proto.sniipappappconfigapi.UserConfigResponse,
648
+ /**
649
+ * @param {!proto.google.protobuf.Empty} request
650
+ * @return {!Uint8Array}
651
+ */
652
+ function(request) {
653
+ return request.serializeBinary();
654
+ },
655
+ proto.sniipappappconfigapi.UserConfigResponse.deserializeBinary
656
+ );
657
+
658
+
659
+ /**
660
+ * @const
661
+ * @type {!grpc.web.AbstractClientBase.MethodInfo<
662
+ * !proto.google.protobuf.Empty,
663
+ * !proto.sniipappappconfigapi.UserConfigResponse>}
664
+ */
665
+ const methodInfo_SniipAppAppConfigAPIService_GetUserConfig = new grpc.web.AbstractClientBase.MethodInfo(
666
+ proto.sniipappappconfigapi.UserConfigResponse,
667
+ /**
668
+ * @param {!proto.google.protobuf.Empty} request
669
+ * @return {!Uint8Array}
670
+ */
671
+ function(request) {
672
+ return request.serializeBinary();
673
+ },
674
+ proto.sniipappappconfigapi.UserConfigResponse.deserializeBinary
675
+ );
676
+
677
+
678
+ /**
679
+ * @param {!proto.google.protobuf.Empty} request The
680
+ * request proto
681
+ * @param {?Object<string, string>} metadata User defined
682
+ * call metadata
683
+ * @param {function(?grpc.web.Error, ?proto.sniipappappconfigapi.UserConfigResponse)}
684
+ * callback The callback function(error, response)
685
+ * @return {!grpc.web.ClientReadableStream<!proto.sniipappappconfigapi.UserConfigResponse>|undefined}
686
+ * The XHR Node Readable Stream
687
+ */
688
+ proto.sniipappappconfigapi.SniipAppAppConfigAPIServiceClient.prototype.getUserConfig =
689
+ function(request, metadata, callback) {
690
+ return this.client_.rpcCall(this.hostname_ +
691
+ '/sniipappappconfigapi.SniipAppAppConfigAPIService/GetUserConfig',
692
+ request,
693
+ metadata || {},
694
+ methodDescriptor_SniipAppAppConfigAPIService_GetUserConfig,
695
+ callback);
696
+ };
697
+
698
+
699
+ /**
700
+ * @param {!proto.google.protobuf.Empty} request The
701
+ * request proto
702
+ * @param {?Object<string, string>} metadata User defined
703
+ * call metadata
704
+ * @return {!Promise<!proto.sniipappappconfigapi.UserConfigResponse>}
705
+ * Promise that resolves to the response
706
+ */
707
+ proto.sniipappappconfigapi.SniipAppAppConfigAPIServicePromiseClient.prototype.getUserConfig =
708
+ function(request, metadata) {
709
+ return this.client_.unaryCall(this.hostname_ +
710
+ '/sniipappappconfigapi.SniipAppAppConfigAPIService/GetUserConfig',
711
+ request,
712
+ metadata || {},
713
+ methodDescriptor_SniipAppAppConfigAPIService_GetUserConfig);
714
+ };
715
+
716
+
637
717
  /**
638
718
  * @const
639
719
  * @type {!grpc.web.MethodDescriptor<
@@ -30,6 +30,7 @@ goog.exportSymbol('proto.sniipappappconfigapi.ScanCodes', null, global);
30
30
  goog.exportSymbol('proto.sniipappappconfigapi.TermsAndConditionsRequest', null, global);
31
31
  goog.exportSymbol('proto.sniipappappconfigapi.TermsAndConditionsResponse', null, global);
32
32
  goog.exportSymbol('proto.sniipappappconfigapi.UpdateDashboardItemsRequest', null, global);
33
+ goog.exportSymbol('proto.sniipappappconfigapi.UserConfigResponse', null, global);
33
34
 
34
35
  /**
35
36
  * Generated by JsPbCodeGenerator.
@@ -4915,6 +4916,313 @@ proto.sniipappappconfigapi.UpdateDashboardItemsRequest.prototype.hasData = funct
4915
4916
  };
4916
4917
 
4917
4918
 
4919
+
4920
+ /**
4921
+ * Generated by JsPbCodeGenerator.
4922
+ * @param {Array=} opt_data Optional initial data array, typically from a
4923
+ * server response, or constructed directly in Javascript. The array is used
4924
+ * in place and becomes part of the constructed object. It is not cloned.
4925
+ * If no data is provided, the constructed object will be empty, but still
4926
+ * valid.
4927
+ * @extends {jspb.Message}
4928
+ * @constructor
4929
+ */
4930
+ proto.sniipappappconfigapi.UserConfigResponse = function(opt_data) {
4931
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.sniipappappconfigapi.UserConfigResponse.repeatedFields_, null);
4932
+ };
4933
+ goog.inherits(proto.sniipappappconfigapi.UserConfigResponse, jspb.Message);
4934
+ if (goog.DEBUG && !COMPILED) {
4935
+ proto.sniipappappconfigapi.UserConfigResponse.displayName = 'proto.sniipappappconfigapi.UserConfigResponse';
4936
+ }
4937
+ /**
4938
+ * List of repeated fields within this message type.
4939
+ * @private {!Array<number>}
4940
+ * @const
4941
+ */
4942
+ proto.sniipappappconfigapi.UserConfigResponse.repeatedFields_ = [3,4];
4943
+
4944
+
4945
+
4946
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4947
+ /**
4948
+ * Creates an object representation of this proto suitable for use in Soy templates.
4949
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4950
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4951
+ * For the list of reserved names please see:
4952
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
4953
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
4954
+ * for transitional soy proto support: http://goto/soy-param-migration
4955
+ * @return {!Object}
4956
+ */
4957
+ proto.sniipappappconfigapi.UserConfigResponse.prototype.toObject = function(opt_includeInstance) {
4958
+ return proto.sniipappappconfigapi.UserConfigResponse.toObject(opt_includeInstance, this);
4959
+ };
4960
+
4961
+
4962
+ /**
4963
+ * Static version of the {@see toObject} method.
4964
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
4965
+ * instance for transitional soy proto support:
4966
+ * http://goto/soy-param-migration
4967
+ * @param {!proto.sniipappappconfigapi.UserConfigResponse} msg The msg instance to transform.
4968
+ * @return {!Object}
4969
+ */
4970
+ proto.sniipappappconfigapi.UserConfigResponse.toObject = function(includeInstance, msg) {
4971
+ var f, obj = {
4972
+ responsecode: (f = msg.getResponsecode()) && proto.sniipappappconfigapi.ResponseCode.toObject(includeInstance, f),
4973
+ configid: msg.getConfigid(),
4974
+ enableddashboarditemsList: jspb.Message.getField(msg, 3),
4975
+ disableddashboarditemsList: jspb.Message.getField(msg, 4),
4976
+ displaymbillingsidemenuoption: msg.getDisplaymbillingsidemenuoption()
4977
+ };
4978
+
4979
+ if (includeInstance) {
4980
+ obj.$jspbMessageInstance = msg;
4981
+ }
4982
+ return obj;
4983
+ };
4984
+ }
4985
+
4986
+
4987
+ /**
4988
+ * Deserializes binary data (in protobuf wire format).
4989
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4990
+ * @return {!proto.sniipappappconfigapi.UserConfigResponse}
4991
+ */
4992
+ proto.sniipappappconfigapi.UserConfigResponse.deserializeBinary = function(bytes) {
4993
+ var reader = new jspb.BinaryReader(bytes);
4994
+ var msg = new proto.sniipappappconfigapi.UserConfigResponse;
4995
+ return proto.sniipappappconfigapi.UserConfigResponse.deserializeBinaryFromReader(msg, reader);
4996
+ };
4997
+
4998
+
4999
+ /**
5000
+ * Deserializes binary data (in protobuf wire format) from the
5001
+ * given reader into the given message object.
5002
+ * @param {!proto.sniipappappconfigapi.UserConfigResponse} msg The message object to deserialize into.
5003
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5004
+ * @return {!proto.sniipappappconfigapi.UserConfigResponse}
5005
+ */
5006
+ proto.sniipappappconfigapi.UserConfigResponse.deserializeBinaryFromReader = function(msg, reader) {
5007
+ while (reader.nextField()) {
5008
+ if (reader.isEndGroup()) {
5009
+ break;
5010
+ }
5011
+ var field = reader.getFieldNumber();
5012
+ switch (field) {
5013
+ case 1:
5014
+ var value = new proto.sniipappappconfigapi.ResponseCode;
5015
+ reader.readMessage(value,proto.sniipappappconfigapi.ResponseCode.deserializeBinaryFromReader);
5016
+ msg.setResponsecode(value);
5017
+ break;
5018
+ case 2:
5019
+ var value = /** @type {number} */ (reader.readInt64());
5020
+ msg.setConfigid(value);
5021
+ break;
5022
+ case 3:
5023
+ var value = /** @type {!Array.<!proto.sniipappappconfigapi.DashboardItem>} */ (reader.readPackedEnum());
5024
+ msg.setEnableddashboarditemsList(value);
5025
+ break;
5026
+ case 4:
5027
+ var value = /** @type {!Array.<!proto.sniipappappconfigapi.DashboardItem>} */ (reader.readPackedEnum());
5028
+ msg.setDisableddashboarditemsList(value);
5029
+ break;
5030
+ case 5:
5031
+ var value = /** @type {boolean} */ (reader.readBool());
5032
+ msg.setDisplaymbillingsidemenuoption(value);
5033
+ break;
5034
+ default:
5035
+ reader.skipField();
5036
+ break;
5037
+ }
5038
+ }
5039
+ return msg;
5040
+ };
5041
+
5042
+
5043
+ /**
5044
+ * Class method variant: serializes the given message to binary data
5045
+ * (in protobuf wire format), writing to the given BinaryWriter.
5046
+ * @param {!proto.sniipappappconfigapi.UserConfigResponse} message
5047
+ * @param {!jspb.BinaryWriter} writer
5048
+ */
5049
+ proto.sniipappappconfigapi.UserConfigResponse.serializeBinaryToWriter = function(message, writer) {
5050
+ message.serializeBinaryToWriter(writer);
5051
+ };
5052
+
5053
+
5054
+ /**
5055
+ * Serializes the message to binary data (in protobuf wire format).
5056
+ * @return {!Uint8Array}
5057
+ */
5058
+ proto.sniipappappconfigapi.UserConfigResponse.prototype.serializeBinary = function() {
5059
+ var writer = new jspb.BinaryWriter();
5060
+ this.serializeBinaryToWriter(writer);
5061
+ return writer.getResultBuffer();
5062
+ };
5063
+
5064
+
5065
+ /**
5066
+ * Serializes the message to binary data (in protobuf wire format),
5067
+ * writing to the given BinaryWriter.
5068
+ * @param {!jspb.BinaryWriter} writer
5069
+ */
5070
+ proto.sniipappappconfigapi.UserConfigResponse.prototype.serializeBinaryToWriter = function (writer) {
5071
+ var f = undefined;
5072
+ f = this.getResponsecode();
5073
+ if (f != null) {
5074
+ writer.writeMessage(
5075
+ 1,
5076
+ f,
5077
+ proto.sniipappappconfigapi.ResponseCode.serializeBinaryToWriter
5078
+ );
5079
+ }
5080
+ f = this.getConfigid();
5081
+ if (f !== 0) {
5082
+ writer.writeInt64(
5083
+ 2,
5084
+ f
5085
+ );
5086
+ }
5087
+ f = this.getEnableddashboarditemsList();
5088
+ if (f.length > 0) {
5089
+ writer.writePackedEnum(
5090
+ 3,
5091
+ f
5092
+ );
5093
+ }
5094
+ f = this.getDisableddashboarditemsList();
5095
+ if (f.length > 0) {
5096
+ writer.writePackedEnum(
5097
+ 4,
5098
+ f
5099
+ );
5100
+ }
5101
+ f = this.getDisplaymbillingsidemenuoption();
5102
+ if (f) {
5103
+ writer.writeBool(
5104
+ 5,
5105
+ f
5106
+ );
5107
+ }
5108
+ };
5109
+
5110
+
5111
+ /**
5112
+ * Creates a deep clone of this proto. No data is shared with the original.
5113
+ * @return {!proto.sniipappappconfigapi.UserConfigResponse} The clone.
5114
+ */
5115
+ proto.sniipappappconfigapi.UserConfigResponse.prototype.cloneMessage = function() {
5116
+ return /** @type {!proto.sniipappappconfigapi.UserConfigResponse} */ (jspb.Message.cloneMessage(this));
5117
+ };
5118
+
5119
+
5120
+ /**
5121
+ * optional ResponseCode responseCode = 1;
5122
+ * @return {proto.sniipappappconfigapi.ResponseCode}
5123
+ */
5124
+ proto.sniipappappconfigapi.UserConfigResponse.prototype.getResponsecode = function() {
5125
+ return /** @type{proto.sniipappappconfigapi.ResponseCode} */ (
5126
+ jspb.Message.getWrapperField(this, proto.sniipappappconfigapi.ResponseCode, 1));
5127
+ };
5128
+
5129
+
5130
+ /** @param {proto.sniipappappconfigapi.ResponseCode|undefined} value */
5131
+ proto.sniipappappconfigapi.UserConfigResponse.prototype.setResponsecode = function(value) {
5132
+ jspb.Message.setWrapperField(this, 1, value);
5133
+ };
5134
+
5135
+
5136
+ proto.sniipappappconfigapi.UserConfigResponse.prototype.clearResponsecode = function() {
5137
+ this.setResponsecode(undefined);
5138
+ };
5139
+
5140
+
5141
+ /**
5142
+ * Returns whether this field is set.
5143
+ * @return{!boolean}
5144
+ */
5145
+ proto.sniipappappconfigapi.UserConfigResponse.prototype.hasResponsecode = function() {
5146
+ return jspb.Message.getField(this, 1) != null;
5147
+ };
5148
+
5149
+
5150
+ /**
5151
+ * optional int64 configId = 2;
5152
+ * @return {number}
5153
+ */
5154
+ proto.sniipappappconfigapi.UserConfigResponse.prototype.getConfigid = function() {
5155
+ return /** @type {number} */ (jspb.Message.getFieldProto3(this, 2, 0));
5156
+ };
5157
+
5158
+
5159
+ /** @param {number} value */
5160
+ proto.sniipappappconfigapi.UserConfigResponse.prototype.setConfigid = function(value) {
5161
+ jspb.Message.setField(this, 2, value);
5162
+ };
5163
+
5164
+
5165
+ /**
5166
+ * repeated DashboardItem enabledDashboardItems = 3;
5167
+ * If you change this array by adding, removing or replacing elements, or if you
5168
+ * replace the array itself, then you must call the setter to update it.
5169
+ * @return {!Array.<!proto.sniipappappconfigapi.DashboardItem>}
5170
+ */
5171
+ proto.sniipappappconfigapi.UserConfigResponse.prototype.getEnableddashboarditemsList = function() {
5172
+ return /** @type {!Array.<!proto.sniipappappconfigapi.DashboardItem>} */ (jspb.Message.getField(this, 3));
5173
+ };
5174
+
5175
+
5176
+ /** @param {!Array.<!proto.sniipappappconfigapi.DashboardItem>} value */
5177
+ proto.sniipappappconfigapi.UserConfigResponse.prototype.setEnableddashboarditemsList = function(value) {
5178
+ jspb.Message.setField(this, 3, value || []);
5179
+ };
5180
+
5181
+
5182
+ proto.sniipappappconfigapi.UserConfigResponse.prototype.clearEnableddashboarditemsList = function() {
5183
+ jspb.Message.setField(this, 3, []);
5184
+ };
5185
+
5186
+
5187
+ /**
5188
+ * repeated DashboardItem disabledDashboardItems = 4;
5189
+ * If you change this array by adding, removing or replacing elements, or if you
5190
+ * replace the array itself, then you must call the setter to update it.
5191
+ * @return {!Array.<!proto.sniipappappconfigapi.DashboardItem>}
5192
+ */
5193
+ proto.sniipappappconfigapi.UserConfigResponse.prototype.getDisableddashboarditemsList = function() {
5194
+ return /** @type {!Array.<!proto.sniipappappconfigapi.DashboardItem>} */ (jspb.Message.getField(this, 4));
5195
+ };
5196
+
5197
+
5198
+ /** @param {!Array.<!proto.sniipappappconfigapi.DashboardItem>} value */
5199
+ proto.sniipappappconfigapi.UserConfigResponse.prototype.setDisableddashboarditemsList = function(value) {
5200
+ jspb.Message.setField(this, 4, value || []);
5201
+ };
5202
+
5203
+
5204
+ proto.sniipappappconfigapi.UserConfigResponse.prototype.clearDisableddashboarditemsList = function() {
5205
+ jspb.Message.setField(this, 4, []);
5206
+ };
5207
+
5208
+
5209
+ /**
5210
+ * optional bool displayMbillingSideMenuOption = 5;
5211
+ * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
5212
+ * You should avoid comparisons like {@code val === true/false} in those cases.
5213
+ * @return {boolean}
5214
+ */
5215
+ proto.sniipappappconfigapi.UserConfigResponse.prototype.getDisplaymbillingsidemenuoption = function() {
5216
+ return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 5, false));
5217
+ };
5218
+
5219
+
5220
+ /** @param {boolean} value */
5221
+ proto.sniipappappconfigapi.UserConfigResponse.prototype.setDisplaymbillingsidemenuoption = function(value) {
5222
+ jspb.Message.setField(this, 5, value);
5223
+ };
5224
+
5225
+
4918
5226
  /**
4919
5227
  * @enum {number}
4920
5228
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/config-service-client-grpcweb",
3
- "version": "22.19.1490",
3
+ "version": "22.20.1506",
4
4
  "description": "config-service-client-grpcweb",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",