@aldiokta/protocgen 1.1.3 → 1.1.5
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 +1 -1
- package/prisca/v1/core/auth/auth_grpc_pb.js +22 -0
- package/prisca/v1/core/auth/auth_pb.js +212 -0
- package/prisca/v1/core/chat_messaging/chat_messaging_grpc_pb.js +111 -0
- package/prisca/v1/core/chat_messaging/chat_messaging_pb.js +1531 -0
- package/prisca/v1/core/messaging/messaging_grpc_pb.js +11 -0
- package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +33 -0
- package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +385 -0
package/package.json
CHANGED
|
@@ -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,111 @@
|
|
|
1
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
2
|
+
|
|
3
|
+
'use strict';
|
|
4
|
+
var grpc = require('@grpc/grpc-js');
|
|
5
|
+
var prisca_v1_core_chat_messaging_chat_messaging_pb = require('../../../../prisca/v1/core/chat_messaging/chat_messaging_pb.js');
|
|
6
|
+
var prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/meta_pb.js');
|
|
7
|
+
|
|
8
|
+
function serialize_ListRoomChatRequest(arg) {
|
|
9
|
+
if (!(arg instanceof prisca_v1_core_chat_messaging_chat_messaging_pb.ListRoomChatRequest)) {
|
|
10
|
+
throw new Error('Expected argument of type ListRoomChatRequest');
|
|
11
|
+
}
|
|
12
|
+
return Buffer.from(arg.serializeBinary());
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function deserialize_ListRoomChatRequest(buffer_arg) {
|
|
16
|
+
return prisca_v1_core_chat_messaging_chat_messaging_pb.ListRoomChatRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function serialize_ListRoomChatResponse(arg) {
|
|
20
|
+
if (!(arg instanceof prisca_v1_core_chat_messaging_chat_messaging_pb.ListRoomChatResponse)) {
|
|
21
|
+
throw new Error('Expected argument of type ListRoomChatResponse');
|
|
22
|
+
}
|
|
23
|
+
return Buffer.from(arg.serializeBinary());
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function deserialize_ListRoomChatResponse(buffer_arg) {
|
|
27
|
+
return prisca_v1_core_chat_messaging_chat_messaging_pb.ListRoomChatResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
function serialize_Message(arg) {
|
|
31
|
+
if (!(arg instanceof prisca_v1_core_chat_messaging_chat_messaging_pb.Message)) {
|
|
32
|
+
throw new Error('Expected argument of type Message');
|
|
33
|
+
}
|
|
34
|
+
return Buffer.from(arg.serializeBinary());
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
function deserialize_Message(buffer_arg) {
|
|
38
|
+
return prisca_v1_core_chat_messaging_chat_messaging_pb.Message.deserializeBinary(new Uint8Array(buffer_arg));
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function serialize_ReceiveChatRequest(arg) {
|
|
42
|
+
if (!(arg instanceof prisca_v1_core_chat_messaging_chat_messaging_pb.ReceiveChatRequest)) {
|
|
43
|
+
throw new Error('Expected argument of type ReceiveChatRequest');
|
|
44
|
+
}
|
|
45
|
+
return Buffer.from(arg.serializeBinary());
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function deserialize_ReceiveChatRequest(buffer_arg) {
|
|
49
|
+
return prisca_v1_core_chat_messaging_chat_messaging_pb.ReceiveChatRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
function serialize_ReceiveChatResponse(arg) {
|
|
53
|
+
if (!(arg instanceof prisca_v1_core_chat_messaging_chat_messaging_pb.ReceiveChatResponse)) {
|
|
54
|
+
throw new Error('Expected argument of type ReceiveChatResponse');
|
|
55
|
+
}
|
|
56
|
+
return Buffer.from(arg.serializeBinary());
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
function deserialize_ReceiveChatResponse(buffer_arg) {
|
|
60
|
+
return prisca_v1_core_chat_messaging_chat_messaging_pb.ReceiveChatResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
function serialize_SendChatRequest(arg) {
|
|
64
|
+
if (!(arg instanceof prisca_v1_core_chat_messaging_chat_messaging_pb.SendChatRequest)) {
|
|
65
|
+
throw new Error('Expected argument of type SendChatRequest');
|
|
66
|
+
}
|
|
67
|
+
return Buffer.from(arg.serializeBinary());
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
function deserialize_SendChatRequest(buffer_arg) {
|
|
71
|
+
return prisca_v1_core_chat_messaging_chat_messaging_pb.SendChatRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
var ChatMessagingServiceService = exports.ChatMessagingServiceService = {
|
|
76
|
+
sendChat: {
|
|
77
|
+
path: '/ChatMessagingService/SendChat',
|
|
78
|
+
requestStream: true,
|
|
79
|
+
responseStream: true,
|
|
80
|
+
requestType: prisca_v1_core_chat_messaging_chat_messaging_pb.SendChatRequest,
|
|
81
|
+
responseType: prisca_v1_core_chat_messaging_chat_messaging_pb.Message,
|
|
82
|
+
requestSerialize: serialize_SendChatRequest,
|
|
83
|
+
requestDeserialize: deserialize_SendChatRequest,
|
|
84
|
+
responseSerialize: serialize_Message,
|
|
85
|
+
responseDeserialize: deserialize_Message,
|
|
86
|
+
},
|
|
87
|
+
receiveChat: {
|
|
88
|
+
path: '/ChatMessagingService/ReceiveChat',
|
|
89
|
+
requestStream: false,
|
|
90
|
+
responseStream: false,
|
|
91
|
+
requestType: prisca_v1_core_chat_messaging_chat_messaging_pb.ReceiveChatRequest,
|
|
92
|
+
responseType: prisca_v1_core_chat_messaging_chat_messaging_pb.ReceiveChatResponse,
|
|
93
|
+
requestSerialize: serialize_ReceiveChatRequest,
|
|
94
|
+
requestDeserialize: deserialize_ReceiveChatRequest,
|
|
95
|
+
responseSerialize: serialize_ReceiveChatResponse,
|
|
96
|
+
responseDeserialize: deserialize_ReceiveChatResponse,
|
|
97
|
+
},
|
|
98
|
+
listRoomChat: {
|
|
99
|
+
path: '/ChatMessagingService/ListRoomChat',
|
|
100
|
+
requestStream: false,
|
|
101
|
+
responseStream: false,
|
|
102
|
+
requestType: prisca_v1_core_chat_messaging_chat_messaging_pb.ListRoomChatRequest,
|
|
103
|
+
responseType: prisca_v1_core_chat_messaging_chat_messaging_pb.ListRoomChatResponse,
|
|
104
|
+
requestSerialize: serialize_ListRoomChatRequest,
|
|
105
|
+
requestDeserialize: deserialize_ListRoomChatRequest,
|
|
106
|
+
responseSerialize: serialize_ListRoomChatResponse,
|
|
107
|
+
responseDeserialize: deserialize_ListRoomChatResponse,
|
|
108
|
+
},
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
exports.ChatMessagingServiceClient = grpc.makeGenericClientConstructor(ChatMessagingServiceService, 'ChatMessagingService');
|