@sniipwebmaster/user-service-client-grpcweb 22.23.8588 → 22.23.8613

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.
@@ -7034,6 +7034,86 @@ proto.sniipuserservice.SniipUserServiceServicePromiseClient.prototype.seedProduc
7034
7034
  };
7035
7035
 
7036
7036
 
7037
+ /**
7038
+ * @const
7039
+ * @type {!grpc.web.MethodDescriptor<
7040
+ * !proto.sniipuserservice.SendSmsCustomerRequest,
7041
+ * !proto.sniipuserservice.ResponseCode>}
7042
+ */
7043
+ const methodDescriptor_SniipUserServiceService_SendSmsCustomer = new grpc.web.MethodDescriptor(
7044
+ '/sniipuserservice.SniipUserServiceService/SendSmsCustomer',
7045
+ grpc.web.MethodType.UNARY,
7046
+ proto.sniipuserservice.SendSmsCustomerRequest,
7047
+ proto.sniipuserservice.ResponseCode,
7048
+ /**
7049
+ * @param {!proto.sniipuserservice.SendSmsCustomerRequest} request
7050
+ * @return {!Uint8Array}
7051
+ */
7052
+ function(request) {
7053
+ return request.serializeBinary();
7054
+ },
7055
+ proto.sniipuserservice.ResponseCode.deserializeBinary
7056
+ );
7057
+
7058
+
7059
+ /**
7060
+ * @const
7061
+ * @type {!grpc.web.AbstractClientBase.MethodInfo<
7062
+ * !proto.sniipuserservice.SendSmsCustomerRequest,
7063
+ * !proto.sniipuserservice.ResponseCode>}
7064
+ */
7065
+ const methodInfo_SniipUserServiceService_SendSmsCustomer = new grpc.web.AbstractClientBase.MethodInfo(
7066
+ proto.sniipuserservice.ResponseCode,
7067
+ /**
7068
+ * @param {!proto.sniipuserservice.SendSmsCustomerRequest} request
7069
+ * @return {!Uint8Array}
7070
+ */
7071
+ function(request) {
7072
+ return request.serializeBinary();
7073
+ },
7074
+ proto.sniipuserservice.ResponseCode.deserializeBinary
7075
+ );
7076
+
7077
+
7078
+ /**
7079
+ * @param {!proto.sniipuserservice.SendSmsCustomerRequest} request The
7080
+ * request proto
7081
+ * @param {?Object<string, string>} metadata User defined
7082
+ * call metadata
7083
+ * @param {function(?grpc.web.Error, ?proto.sniipuserservice.ResponseCode)}
7084
+ * callback The callback function(error, response)
7085
+ * @return {!grpc.web.ClientReadableStream<!proto.sniipuserservice.ResponseCode>|undefined}
7086
+ * The XHR Node Readable Stream
7087
+ */
7088
+ proto.sniipuserservice.SniipUserServiceServiceClient.prototype.sendSmsCustomer =
7089
+ function(request, metadata, callback) {
7090
+ return this.client_.rpcCall(this.hostname_ +
7091
+ '/sniipuserservice.SniipUserServiceService/SendSmsCustomer',
7092
+ request,
7093
+ metadata || {},
7094
+ methodDescriptor_SniipUserServiceService_SendSmsCustomer,
7095
+ callback);
7096
+ };
7097
+
7098
+
7099
+ /**
7100
+ * @param {!proto.sniipuserservice.SendSmsCustomerRequest} request The
7101
+ * request proto
7102
+ * @param {?Object<string, string>} metadata User defined
7103
+ * call metadata
7104
+ * @return {!Promise<!proto.sniipuserservice.ResponseCode>}
7105
+ * Promise that resolves to the response
7106
+ */
7107
+ proto.sniipuserservice.SniipUserServiceServicePromiseClient.prototype.sendSmsCustomer =
7108
+ function(request, metadata) {
7109
+ return this.client_.unaryCall(this.hostname_ +
7110
+ '/sniipuserservice.SniipUserServiceService/SendSmsCustomer',
7111
+ request,
7112
+ metadata || {},
7113
+ methodDescriptor_SniipUserServiceService_SendSmsCustomer);
7114
+ };
7115
+
7116
+
7037
7117
  /**
7038
7118
  * @const
7039
7119
  * @type {!grpc.web.MethodDescriptor<
@@ -137,6 +137,8 @@ goog.exportSymbol('proto.sniipuserservice.SearchPermissionRequest', null, global
137
137
  goog.exportSymbol('proto.sniipuserservice.SearchUsersByRoleRequest', null, global);
138
138
  goog.exportSymbol('proto.sniipuserservice.SearchUsersRequest', null, global);
139
139
  goog.exportSymbol('proto.sniipuserservice.SearchUsersResponse', null, global);
140
+ goog.exportSymbol('proto.sniipuserservice.SendCustomerSmsRequest', null, global);
141
+ goog.exportSymbol('proto.sniipuserservice.SendSmsCustomerRequest', null, global);
140
142
  goog.exportSymbol('proto.sniipuserservice.SetPasswordEmailRequest', null, global);
141
143
  goog.exportSymbol('proto.sniipuserservice.SetPasswordMobileRequest', null, global);
142
144
  goog.exportSymbol('proto.sniipuserservice.SetPinRequest', null, global);
@@ -29549,6 +29551,395 @@ proto.sniipuserservice.SearchUsersResponse.prototype.clearUserprofilesList = fun
29549
29551
 
29550
29552
 
29551
29553
 
29554
+ /**
29555
+ * Generated by JsPbCodeGenerator.
29556
+ * @param {Array=} opt_data Optional initial data array, typically from a
29557
+ * server response, or constructed directly in Javascript. The array is used
29558
+ * in place and becomes part of the constructed object. It is not cloned.
29559
+ * If no data is provided, the constructed object will be empty, but still
29560
+ * valid.
29561
+ * @extends {jspb.Message}
29562
+ * @constructor
29563
+ */
29564
+ proto.sniipuserservice.SendCustomerSmsRequest = function(opt_data) {
29565
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
29566
+ };
29567
+ goog.inherits(proto.sniipuserservice.SendCustomerSmsRequest, jspb.Message);
29568
+ if (goog.DEBUG && !COMPILED) {
29569
+ proto.sniipuserservice.SendCustomerSmsRequest.displayName = 'proto.sniipuserservice.SendCustomerSmsRequest';
29570
+ }
29571
+
29572
+
29573
+ if (jspb.Message.GENERATE_TO_OBJECT) {
29574
+ /**
29575
+ * Creates an object representation of this proto suitable for use in Soy templates.
29576
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
29577
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
29578
+ * For the list of reserved names please see:
29579
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
29580
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
29581
+ * for transitional soy proto support: http://goto/soy-param-migration
29582
+ * @return {!Object}
29583
+ */
29584
+ proto.sniipuserservice.SendCustomerSmsRequest.prototype.toObject = function(opt_includeInstance) {
29585
+ return proto.sniipuserservice.SendCustomerSmsRequest.toObject(opt_includeInstance, this);
29586
+ };
29587
+
29588
+
29589
+ /**
29590
+ * Static version of the {@see toObject} method.
29591
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
29592
+ * instance for transitional soy proto support:
29593
+ * http://goto/soy-param-migration
29594
+ * @param {!proto.sniipuserservice.SendCustomerSmsRequest} msg The msg instance to transform.
29595
+ * @return {!Object}
29596
+ */
29597
+ proto.sniipuserservice.SendCustomerSmsRequest.toObject = function(includeInstance, msg) {
29598
+ var f, obj = {
29599
+ userid: msg.getUserid(),
29600
+ phonenumber: msg.getPhonenumber(),
29601
+ message: msg.getMessage()
29602
+ };
29603
+
29604
+ if (includeInstance) {
29605
+ obj.$jspbMessageInstance = msg;
29606
+ }
29607
+ return obj;
29608
+ };
29609
+ }
29610
+
29611
+
29612
+ /**
29613
+ * Deserializes binary data (in protobuf wire format).
29614
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
29615
+ * @return {!proto.sniipuserservice.SendCustomerSmsRequest}
29616
+ */
29617
+ proto.sniipuserservice.SendCustomerSmsRequest.deserializeBinary = function(bytes) {
29618
+ var reader = new jspb.BinaryReader(bytes);
29619
+ var msg = new proto.sniipuserservice.SendCustomerSmsRequest;
29620
+ return proto.sniipuserservice.SendCustomerSmsRequest.deserializeBinaryFromReader(msg, reader);
29621
+ };
29622
+
29623
+
29624
+ /**
29625
+ * Deserializes binary data (in protobuf wire format) from the
29626
+ * given reader into the given message object.
29627
+ * @param {!proto.sniipuserservice.SendCustomerSmsRequest} msg The message object to deserialize into.
29628
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
29629
+ * @return {!proto.sniipuserservice.SendCustomerSmsRequest}
29630
+ */
29631
+ proto.sniipuserservice.SendCustomerSmsRequest.deserializeBinaryFromReader = function(msg, reader) {
29632
+ while (reader.nextField()) {
29633
+ if (reader.isEndGroup()) {
29634
+ break;
29635
+ }
29636
+ var field = reader.getFieldNumber();
29637
+ switch (field) {
29638
+ case 1:
29639
+ var value = /** @type {number} */ (reader.readInt64());
29640
+ msg.setUserid(value);
29641
+ break;
29642
+ case 2:
29643
+ var value = /** @type {string} */ (reader.readString());
29644
+ msg.setPhonenumber(value);
29645
+ break;
29646
+ case 3:
29647
+ var value = /** @type {string} */ (reader.readString());
29648
+ msg.setMessage(value);
29649
+ break;
29650
+ default:
29651
+ reader.skipField();
29652
+ break;
29653
+ }
29654
+ }
29655
+ return msg;
29656
+ };
29657
+
29658
+
29659
+ /**
29660
+ * Class method variant: serializes the given message to binary data
29661
+ * (in protobuf wire format), writing to the given BinaryWriter.
29662
+ * @param {!proto.sniipuserservice.SendCustomerSmsRequest} message
29663
+ * @param {!jspb.BinaryWriter} writer
29664
+ */
29665
+ proto.sniipuserservice.SendCustomerSmsRequest.serializeBinaryToWriter = function(message, writer) {
29666
+ message.serializeBinaryToWriter(writer);
29667
+ };
29668
+
29669
+
29670
+ /**
29671
+ * Serializes the message to binary data (in protobuf wire format).
29672
+ * @return {!Uint8Array}
29673
+ */
29674
+ proto.sniipuserservice.SendCustomerSmsRequest.prototype.serializeBinary = function() {
29675
+ var writer = new jspb.BinaryWriter();
29676
+ this.serializeBinaryToWriter(writer);
29677
+ return writer.getResultBuffer();
29678
+ };
29679
+
29680
+
29681
+ /**
29682
+ * Serializes the message to binary data (in protobuf wire format),
29683
+ * writing to the given BinaryWriter.
29684
+ * @param {!jspb.BinaryWriter} writer
29685
+ */
29686
+ proto.sniipuserservice.SendCustomerSmsRequest.prototype.serializeBinaryToWriter = function (writer) {
29687
+ var f = undefined;
29688
+ f = this.getUserid();
29689
+ if (f !== 0) {
29690
+ writer.writeInt64(
29691
+ 1,
29692
+ f
29693
+ );
29694
+ }
29695
+ f = this.getPhonenumber();
29696
+ if (f.length > 0) {
29697
+ writer.writeString(
29698
+ 2,
29699
+ f
29700
+ );
29701
+ }
29702
+ f = this.getMessage();
29703
+ if (f.length > 0) {
29704
+ writer.writeString(
29705
+ 3,
29706
+ f
29707
+ );
29708
+ }
29709
+ };
29710
+
29711
+
29712
+ /**
29713
+ * Creates a deep clone of this proto. No data is shared with the original.
29714
+ * @return {!proto.sniipuserservice.SendCustomerSmsRequest} The clone.
29715
+ */
29716
+ proto.sniipuserservice.SendCustomerSmsRequest.prototype.cloneMessage = function() {
29717
+ return /** @type {!proto.sniipuserservice.SendCustomerSmsRequest} */ (jspb.Message.cloneMessage(this));
29718
+ };
29719
+
29720
+
29721
+ /**
29722
+ * optional int64 userId = 1;
29723
+ * @return {number}
29724
+ */
29725
+ proto.sniipuserservice.SendCustomerSmsRequest.prototype.getUserid = function() {
29726
+ return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
29727
+ };
29728
+
29729
+
29730
+ /** @param {number} value */
29731
+ proto.sniipuserservice.SendCustomerSmsRequest.prototype.setUserid = function(value) {
29732
+ jspb.Message.setField(this, 1, value);
29733
+ };
29734
+
29735
+
29736
+ /**
29737
+ * optional string phoneNumber = 2;
29738
+ * @return {string}
29739
+ */
29740
+ proto.sniipuserservice.SendCustomerSmsRequest.prototype.getPhonenumber = function() {
29741
+ return /** @type {string} */ (jspb.Message.getFieldProto3(this, 2, ""));
29742
+ };
29743
+
29744
+
29745
+ /** @param {string} value */
29746
+ proto.sniipuserservice.SendCustomerSmsRequest.prototype.setPhonenumber = function(value) {
29747
+ jspb.Message.setField(this, 2, value);
29748
+ };
29749
+
29750
+
29751
+ /**
29752
+ * optional string message = 3;
29753
+ * @return {string}
29754
+ */
29755
+ proto.sniipuserservice.SendCustomerSmsRequest.prototype.getMessage = function() {
29756
+ return /** @type {string} */ (jspb.Message.getFieldProto3(this, 3, ""));
29757
+ };
29758
+
29759
+
29760
+ /** @param {string} value */
29761
+ proto.sniipuserservice.SendCustomerSmsRequest.prototype.setMessage = function(value) {
29762
+ jspb.Message.setField(this, 3, value);
29763
+ };
29764
+
29765
+
29766
+
29767
+ /**
29768
+ * Generated by JsPbCodeGenerator.
29769
+ * @param {Array=} opt_data Optional initial data array, typically from a
29770
+ * server response, or constructed directly in Javascript. The array is used
29771
+ * in place and becomes part of the constructed object. It is not cloned.
29772
+ * If no data is provided, the constructed object will be empty, but still
29773
+ * valid.
29774
+ * @extends {jspb.Message}
29775
+ * @constructor
29776
+ */
29777
+ proto.sniipuserservice.SendSmsCustomerRequest = function(opt_data) {
29778
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
29779
+ };
29780
+ goog.inherits(proto.sniipuserservice.SendSmsCustomerRequest, jspb.Message);
29781
+ if (goog.DEBUG && !COMPILED) {
29782
+ proto.sniipuserservice.SendSmsCustomerRequest.displayName = 'proto.sniipuserservice.SendSmsCustomerRequest';
29783
+ }
29784
+
29785
+
29786
+ if (jspb.Message.GENERATE_TO_OBJECT) {
29787
+ /**
29788
+ * Creates an object representation of this proto suitable for use in Soy templates.
29789
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
29790
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
29791
+ * For the list of reserved names please see:
29792
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
29793
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
29794
+ * for transitional soy proto support: http://goto/soy-param-migration
29795
+ * @return {!Object}
29796
+ */
29797
+ proto.sniipuserservice.SendSmsCustomerRequest.prototype.toObject = function(opt_includeInstance) {
29798
+ return proto.sniipuserservice.SendSmsCustomerRequest.toObject(opt_includeInstance, this);
29799
+ };
29800
+
29801
+
29802
+ /**
29803
+ * Static version of the {@see toObject} method.
29804
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
29805
+ * instance for transitional soy proto support:
29806
+ * http://goto/soy-param-migration
29807
+ * @param {!proto.sniipuserservice.SendSmsCustomerRequest} msg The msg instance to transform.
29808
+ * @return {!Object}
29809
+ */
29810
+ proto.sniipuserservice.SendSmsCustomerRequest.toObject = function(includeInstance, msg) {
29811
+ var f, obj = {
29812
+ data: (f = msg.getData()) && proto.sniipuserservice.SendCustomerSmsRequest.toObject(includeInstance, f)
29813
+ };
29814
+
29815
+ if (includeInstance) {
29816
+ obj.$jspbMessageInstance = msg;
29817
+ }
29818
+ return obj;
29819
+ };
29820
+ }
29821
+
29822
+
29823
+ /**
29824
+ * Deserializes binary data (in protobuf wire format).
29825
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
29826
+ * @return {!proto.sniipuserservice.SendSmsCustomerRequest}
29827
+ */
29828
+ proto.sniipuserservice.SendSmsCustomerRequest.deserializeBinary = function(bytes) {
29829
+ var reader = new jspb.BinaryReader(bytes);
29830
+ var msg = new proto.sniipuserservice.SendSmsCustomerRequest;
29831
+ return proto.sniipuserservice.SendSmsCustomerRequest.deserializeBinaryFromReader(msg, reader);
29832
+ };
29833
+
29834
+
29835
+ /**
29836
+ * Deserializes binary data (in protobuf wire format) from the
29837
+ * given reader into the given message object.
29838
+ * @param {!proto.sniipuserservice.SendSmsCustomerRequest} msg The message object to deserialize into.
29839
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
29840
+ * @return {!proto.sniipuserservice.SendSmsCustomerRequest}
29841
+ */
29842
+ proto.sniipuserservice.SendSmsCustomerRequest.deserializeBinaryFromReader = function(msg, reader) {
29843
+ while (reader.nextField()) {
29844
+ if (reader.isEndGroup()) {
29845
+ break;
29846
+ }
29847
+ var field = reader.getFieldNumber();
29848
+ switch (field) {
29849
+ case 1:
29850
+ var value = new proto.sniipuserservice.SendCustomerSmsRequest;
29851
+ reader.readMessage(value,proto.sniipuserservice.SendCustomerSmsRequest.deserializeBinaryFromReader);
29852
+ msg.setData(value);
29853
+ break;
29854
+ default:
29855
+ reader.skipField();
29856
+ break;
29857
+ }
29858
+ }
29859
+ return msg;
29860
+ };
29861
+
29862
+
29863
+ /**
29864
+ * Class method variant: serializes the given message to binary data
29865
+ * (in protobuf wire format), writing to the given BinaryWriter.
29866
+ * @param {!proto.sniipuserservice.SendSmsCustomerRequest} message
29867
+ * @param {!jspb.BinaryWriter} writer
29868
+ */
29869
+ proto.sniipuserservice.SendSmsCustomerRequest.serializeBinaryToWriter = function(message, writer) {
29870
+ message.serializeBinaryToWriter(writer);
29871
+ };
29872
+
29873
+
29874
+ /**
29875
+ * Serializes the message to binary data (in protobuf wire format).
29876
+ * @return {!Uint8Array}
29877
+ */
29878
+ proto.sniipuserservice.SendSmsCustomerRequest.prototype.serializeBinary = function() {
29879
+ var writer = new jspb.BinaryWriter();
29880
+ this.serializeBinaryToWriter(writer);
29881
+ return writer.getResultBuffer();
29882
+ };
29883
+
29884
+
29885
+ /**
29886
+ * Serializes the message to binary data (in protobuf wire format),
29887
+ * writing to the given BinaryWriter.
29888
+ * @param {!jspb.BinaryWriter} writer
29889
+ */
29890
+ proto.sniipuserservice.SendSmsCustomerRequest.prototype.serializeBinaryToWriter = function (writer) {
29891
+ var f = undefined;
29892
+ f = this.getData();
29893
+ if (f != null) {
29894
+ writer.writeMessage(
29895
+ 1,
29896
+ f,
29897
+ proto.sniipuserservice.SendCustomerSmsRequest.serializeBinaryToWriter
29898
+ );
29899
+ }
29900
+ };
29901
+
29902
+
29903
+ /**
29904
+ * Creates a deep clone of this proto. No data is shared with the original.
29905
+ * @return {!proto.sniipuserservice.SendSmsCustomerRequest} The clone.
29906
+ */
29907
+ proto.sniipuserservice.SendSmsCustomerRequest.prototype.cloneMessage = function() {
29908
+ return /** @type {!proto.sniipuserservice.SendSmsCustomerRequest} */ (jspb.Message.cloneMessage(this));
29909
+ };
29910
+
29911
+
29912
+ /**
29913
+ * optional SendCustomerSmsRequest data = 1;
29914
+ * @return {proto.sniipuserservice.SendCustomerSmsRequest}
29915
+ */
29916
+ proto.sniipuserservice.SendSmsCustomerRequest.prototype.getData = function() {
29917
+ return /** @type{proto.sniipuserservice.SendCustomerSmsRequest} */ (
29918
+ jspb.Message.getWrapperField(this, proto.sniipuserservice.SendCustomerSmsRequest, 1));
29919
+ };
29920
+
29921
+
29922
+ /** @param {proto.sniipuserservice.SendCustomerSmsRequest|undefined} value */
29923
+ proto.sniipuserservice.SendSmsCustomerRequest.prototype.setData = function(value) {
29924
+ jspb.Message.setWrapperField(this, 1, value);
29925
+ };
29926
+
29927
+
29928
+ proto.sniipuserservice.SendSmsCustomerRequest.prototype.clearData = function() {
29929
+ this.setData(undefined);
29930
+ };
29931
+
29932
+
29933
+ /**
29934
+ * Returns whether this field is set.
29935
+ * @return{!boolean}
29936
+ */
29937
+ proto.sniipuserservice.SendSmsCustomerRequest.prototype.hasData = function() {
29938
+ return jspb.Message.getField(this, 1) != null;
29939
+ };
29940
+
29941
+
29942
+
29552
29943
  /**
29553
29944
  * Generated by JsPbCodeGenerator.
29554
29945
  * @param {Array=} opt_data Optional initial data array, typically from a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/user-service-client-grpcweb",
3
- "version": "22.23.8588",
3
+ "version": "22.23.8613",
4
4
  "description": "user-service-client-grpcweb",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",