@aldiokta/protocgen 1.1.4 → 1.1.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aldiokta/protocgen",
3
- "version": "1.1.4",
3
+ "version": "1.1.6",
4
4
  "description": "protocgen js generated for products v2",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -185,6 +185,17 @@ function deserialize_LoginRequest(buffer_arg) {
185
185
  return prisca_v1_core_auth_auth_pb.LoginRequest.deserializeBinary(new Uint8Array(buffer_arg));
186
186
  }
187
187
 
188
+ function serialize_LoginRequestVendor(arg) {
189
+ if (!(arg instanceof prisca_v1_core_auth_auth_pb.LoginRequestVendor)) {
190
+ throw new Error('Expected argument of type LoginRequestVendor');
191
+ }
192
+ return Buffer.from(arg.serializeBinary());
193
+ }
194
+
195
+ function deserialize_LoginRequestVendor(buffer_arg) {
196
+ return prisca_v1_core_auth_auth_pb.LoginRequestVendor.deserializeBinary(new Uint8Array(buffer_arg));
197
+ }
198
+
188
199
  function serialize_RequestForgotPasswordReq(arg) {
189
200
  if (!(arg instanceof prisca_v1_core_auth_auth_pb.RequestForgotPasswordReq)) {
190
201
  throw new Error('Expected argument of type RequestForgotPasswordReq');
@@ -264,6 +275,17 @@ var AuthServiceService = exports.AuthServiceService = {
264
275
  responseSerialize: serialize_UserResponse,
265
276
  responseDeserialize: deserialize_UserResponse,
266
277
  },
278
+ loginUserVendor: {
279
+ path: '/AuthService/LoginUserVendor',
280
+ requestStream: false,
281
+ responseStream: false,
282
+ requestType: prisca_v1_core_auth_auth_pb.LoginRequestVendor,
283
+ responseType: prisca_v1_core_auth_auth_pb.UserResponse,
284
+ requestSerialize: serialize_LoginRequestVendor,
285
+ requestDeserialize: deserialize_LoginRequestVendor,
286
+ responseSerialize: serialize_UserResponse,
287
+ responseDeserialize: deserialize_UserResponse,
288
+ },
267
289
  createUser: {
268
290
  path: '/AuthService/CreateUser',
269
291
  requestStream: false,
@@ -41,6 +41,7 @@ goog.exportSymbol('proto.GetListUserRequest', null, global);
41
41
  goog.exportSymbol('proto.GetListUserResponse', null, global);
42
42
  goog.exportSymbol('proto.ListAccessResponse', null, global);
43
43
  goog.exportSymbol('proto.LoginRequest', null, global);
44
+ goog.exportSymbol('proto.LoginRequestVendor', null, global);
44
45
  goog.exportSymbol('proto.RequestForgotPasswordReq', null, global);
45
46
  goog.exportSymbol('proto.RequestForgotResponse', null, global);
46
47
  goog.exportSymbol('proto.UpdateAccessPayload', null, global);
@@ -130,6 +131,27 @@ if (goog.DEBUG && !COMPILED) {
130
131
  */
131
132
  proto.LoginRequest.displayName = 'proto.LoginRequest';
132
133
  }
134
+ /**
135
+ * Generated by JsPbCodeGenerator.
136
+ * @param {Array=} opt_data Optional initial data array, typically from a
137
+ * server response, or constructed directly in Javascript. The array is used
138
+ * in place and becomes part of the constructed object. It is not cloned.
139
+ * If no data is provided, the constructed object will be empty, but still
140
+ * valid.
141
+ * @extends {jspb.Message}
142
+ * @constructor
143
+ */
144
+ proto.LoginRequestVendor = function(opt_data) {
145
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
146
+ };
147
+ goog.inherits(proto.LoginRequestVendor, jspb.Message);
148
+ if (goog.DEBUG && !COMPILED) {
149
+ /**
150
+ * @public
151
+ * @override
152
+ */
153
+ proto.LoginRequestVendor.displayName = 'proto.LoginRequestVendor';
154
+ }
133
155
  /**
134
156
  * Generated by JsPbCodeGenerator.
135
157
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1061,6 +1083,196 @@ proto.LoginRequest.prototype.setPassword = function(value) {
1061
1083
 
1062
1084
 
1063
1085
 
1086
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1087
+ /**
1088
+ * Creates an object representation of this proto.
1089
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1090
+ * Optional fields that are not set will be set to undefined.
1091
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1092
+ * For the list of reserved names please see:
1093
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1094
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1095
+ * JSPB instance for transitional soy proto support:
1096
+ * http://goto/soy-param-migration
1097
+ * @return {!Object}
1098
+ */
1099
+ proto.LoginRequestVendor.prototype.toObject = function(opt_includeInstance) {
1100
+ return proto.LoginRequestVendor.toObject(opt_includeInstance, this);
1101
+ };
1102
+
1103
+
1104
+ /**
1105
+ * Static version of the {@see toObject} method.
1106
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1107
+ * the JSPB instance for transitional soy proto support:
1108
+ * http://goto/soy-param-migration
1109
+ * @param {!proto.LoginRequestVendor} msg The msg instance to transform.
1110
+ * @return {!Object}
1111
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1112
+ */
1113
+ proto.LoginRequestVendor.toObject = function(includeInstance, msg) {
1114
+ var f, obj = {
1115
+ email: jspb.Message.getFieldWithDefault(msg, 1, ""),
1116
+ password: jspb.Message.getFieldWithDefault(msg, 2, ""),
1117
+ vendorReferencesId: jspb.Message.getFieldWithDefault(msg, 3, "")
1118
+ };
1119
+
1120
+ if (includeInstance) {
1121
+ obj.$jspbMessageInstance = msg;
1122
+ }
1123
+ return obj;
1124
+ };
1125
+ }
1126
+
1127
+
1128
+ /**
1129
+ * Deserializes binary data (in protobuf wire format).
1130
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1131
+ * @return {!proto.LoginRequestVendor}
1132
+ */
1133
+ proto.LoginRequestVendor.deserializeBinary = function(bytes) {
1134
+ var reader = new jspb.BinaryReader(bytes);
1135
+ var msg = new proto.LoginRequestVendor;
1136
+ return proto.LoginRequestVendor.deserializeBinaryFromReader(msg, reader);
1137
+ };
1138
+
1139
+
1140
+ /**
1141
+ * Deserializes binary data (in protobuf wire format) from the
1142
+ * given reader into the given message object.
1143
+ * @param {!proto.LoginRequestVendor} msg The message object to deserialize into.
1144
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1145
+ * @return {!proto.LoginRequestVendor}
1146
+ */
1147
+ proto.LoginRequestVendor.deserializeBinaryFromReader = function(msg, reader) {
1148
+ while (reader.nextField()) {
1149
+ if (reader.isEndGroup()) {
1150
+ break;
1151
+ }
1152
+ var field = reader.getFieldNumber();
1153
+ switch (field) {
1154
+ case 1:
1155
+ var value = /** @type {string} */ (reader.readString());
1156
+ msg.setEmail(value);
1157
+ break;
1158
+ case 2:
1159
+ var value = /** @type {string} */ (reader.readString());
1160
+ msg.setPassword(value);
1161
+ break;
1162
+ case 3:
1163
+ var value = /** @type {string} */ (reader.readString());
1164
+ msg.setVendorReferencesId(value);
1165
+ break;
1166
+ default:
1167
+ reader.skipField();
1168
+ break;
1169
+ }
1170
+ }
1171
+ return msg;
1172
+ };
1173
+
1174
+
1175
+ /**
1176
+ * Serializes the message to binary data (in protobuf wire format).
1177
+ * @return {!Uint8Array}
1178
+ */
1179
+ proto.LoginRequestVendor.prototype.serializeBinary = function() {
1180
+ var writer = new jspb.BinaryWriter();
1181
+ proto.LoginRequestVendor.serializeBinaryToWriter(this, writer);
1182
+ return writer.getResultBuffer();
1183
+ };
1184
+
1185
+
1186
+ /**
1187
+ * Serializes the given message to binary data (in protobuf wire
1188
+ * format), writing to the given BinaryWriter.
1189
+ * @param {!proto.LoginRequestVendor} message
1190
+ * @param {!jspb.BinaryWriter} writer
1191
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1192
+ */
1193
+ proto.LoginRequestVendor.serializeBinaryToWriter = function(message, writer) {
1194
+ var f = undefined;
1195
+ f = message.getEmail();
1196
+ if (f.length > 0) {
1197
+ writer.writeString(
1198
+ 1,
1199
+ f
1200
+ );
1201
+ }
1202
+ f = message.getPassword();
1203
+ if (f.length > 0) {
1204
+ writer.writeString(
1205
+ 2,
1206
+ f
1207
+ );
1208
+ }
1209
+ f = message.getVendorReferencesId();
1210
+ if (f.length > 0) {
1211
+ writer.writeString(
1212
+ 3,
1213
+ f
1214
+ );
1215
+ }
1216
+ };
1217
+
1218
+
1219
+ /**
1220
+ * optional string email = 1;
1221
+ * @return {string}
1222
+ */
1223
+ proto.LoginRequestVendor.prototype.getEmail = function() {
1224
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1225
+ };
1226
+
1227
+
1228
+ /**
1229
+ * @param {string} value
1230
+ * @return {!proto.LoginRequestVendor} returns this
1231
+ */
1232
+ proto.LoginRequestVendor.prototype.setEmail = function(value) {
1233
+ return jspb.Message.setProto3StringField(this, 1, value);
1234
+ };
1235
+
1236
+
1237
+ /**
1238
+ * optional string password = 2;
1239
+ * @return {string}
1240
+ */
1241
+ proto.LoginRequestVendor.prototype.getPassword = function() {
1242
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1243
+ };
1244
+
1245
+
1246
+ /**
1247
+ * @param {string} value
1248
+ * @return {!proto.LoginRequestVendor} returns this
1249
+ */
1250
+ proto.LoginRequestVendor.prototype.setPassword = function(value) {
1251
+ return jspb.Message.setProto3StringField(this, 2, value);
1252
+ };
1253
+
1254
+
1255
+ /**
1256
+ * optional string vendor_references_id = 3;
1257
+ * @return {string}
1258
+ */
1259
+ proto.LoginRequestVendor.prototype.getVendorReferencesId = function() {
1260
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1261
+ };
1262
+
1263
+
1264
+ /**
1265
+ * @param {string} value
1266
+ * @return {!proto.LoginRequestVendor} returns this
1267
+ */
1268
+ proto.LoginRequestVendor.prototype.setVendorReferencesId = function(value) {
1269
+ return jspb.Message.setProto3StringField(this, 3, value);
1270
+ };
1271
+
1272
+
1273
+
1274
+
1275
+
1064
1276
  if (jspb.Message.GENERATE_TO_OBJECT) {
1065
1277
  /**
1066
1278
  * Creates an object representation of this proto.
@@ -0,0 +1 @@
1
+ // GENERATED CODE -- NO SERVICES IN PROTO