@aldiokta/protocgen 1.1.7 → 1.1.8

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.7",
3
+ "version": "1.1.8",
4
4
  "description": "protocgen js generated for products v2",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -4,6 +4,7 @@
4
4
  var grpc = require('@grpc/grpc-js');
5
5
  var prisca_v1_core_company_company_pb = require('../../../../prisca/v1/core/company/company_pb.js');
6
6
  var prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/meta_pb.js');
7
+ var prisca_v1_core_file_upload_file_upload_pb = require('../../../../prisca/v1/core/file_upload/file_upload_pb.js');
7
8
 
8
9
  function serialize_CompanyGetByIdRequest(arg) {
9
10
  if (!(arg instanceof prisca_v1_core_company_company_pb.CompanyGetByIdRequest)) {
@@ -23,6 +23,8 @@ var global =
23
23
 
24
24
  var prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/meta_pb.js');
25
25
  goog.object.extend(proto, prisca_v1_global_meta_meta_pb);
26
+ var prisca_v1_core_file_upload_file_upload_pb = require('../../../../prisca/v1/core/file_upload/file_upload_pb.js');
27
+ goog.object.extend(proto, prisca_v1_core_file_upload_file_upload_pb);
26
28
  goog.exportSymbol('proto.BaseCompany', null, global);
27
29
  goog.exportSymbol('proto.BaseCompanyParent', null, global);
28
30
  goog.exportSymbol('proto.Company', null, global);
@@ -345,7 +347,9 @@ code: jspb.Message.getFieldWithDefault(msg, 1, ""),
345
347
  name: jspb.Message.getFieldWithDefault(msg, 2, ""),
346
348
  currencyCode: jspb.Message.getFieldWithDefault(msg, 3, ""),
347
349
  description: jspb.Message.getFieldWithDefault(msg, 4, ""),
348
- parentReferencesId: jspb.Message.getFieldWithDefault(msg, 5, "")
350
+ parentReferencesId: jspb.Message.getFieldWithDefault(msg, 5, ""),
351
+ logo: jspb.Message.getFieldWithDefault(msg, 6, ""),
352
+ termAndCondition: jspb.Message.getFieldWithDefault(msg, 7, "")
349
353
  };
350
354
 
351
355
  if (includeInstance) {
@@ -402,6 +406,14 @@ proto.Company.deserializeBinaryFromReader = function(msg, reader) {
402
406
  var value = /** @type {string} */ (reader.readString());
403
407
  msg.setParentReferencesId(value);
404
408
  break;
409
+ case 6:
410
+ var value = /** @type {string} */ (reader.readString());
411
+ msg.setLogo(value);
412
+ break;
413
+ case 7:
414
+ var value = /** @type {string} */ (reader.readString());
415
+ msg.setTermAndCondition(value);
416
+ break;
405
417
  default:
406
418
  reader.skipField();
407
419
  break;
@@ -466,6 +478,20 @@ proto.Company.serializeBinaryToWriter = function(message, writer) {
466
478
  f
467
479
  );
468
480
  }
481
+ f = message.getLogo();
482
+ if (f.length > 0) {
483
+ writer.writeString(
484
+ 6,
485
+ f
486
+ );
487
+ }
488
+ f = message.getTermAndCondition();
489
+ if (f.length > 0) {
490
+ writer.writeString(
491
+ 7,
492
+ f
493
+ );
494
+ }
469
495
  };
470
496
 
471
497
 
@@ -559,6 +585,42 @@ proto.Company.prototype.setParentReferencesId = function(value) {
559
585
  };
560
586
 
561
587
 
588
+ /**
589
+ * optional string logo = 6;
590
+ * @return {string}
591
+ */
592
+ proto.Company.prototype.getLogo = function() {
593
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
594
+ };
595
+
596
+
597
+ /**
598
+ * @param {string} value
599
+ * @return {!proto.Company} returns this
600
+ */
601
+ proto.Company.prototype.setLogo = function(value) {
602
+ return jspb.Message.setProto3StringField(this, 6, value);
603
+ };
604
+
605
+
606
+ /**
607
+ * optional string term_and_condition = 7;
608
+ * @return {string}
609
+ */
610
+ proto.Company.prototype.getTermAndCondition = function() {
611
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
612
+ };
613
+
614
+
615
+ /**
616
+ * @param {string} value
617
+ * @return {!proto.Company} returns this
618
+ */
619
+ proto.Company.prototype.setTermAndCondition = function(value) {
620
+ return jspb.Message.setProto3StringField(this, 7, value);
621
+ };
622
+
623
+
562
624
 
563
625
 
564
626
 
@@ -787,7 +849,10 @@ currencyCode: jspb.Message.getFieldWithDefault(msg, 3, ""),
787
849
  description: jspb.Message.getFieldWithDefault(msg, 4, ""),
788
850
  referencesId: jspb.Message.getFieldWithDefault(msg, 5, ""),
789
851
  parentReferencesId: jspb.Message.getFieldWithDefault(msg, 6, ""),
790
- parent: (f = msg.getParent()) && proto.BaseCompanyParent.toObject(includeInstance, f)
852
+ parent: (f = msg.getParent()) && proto.BaseCompanyParent.toObject(includeInstance, f),
853
+ logo: jspb.Message.getFieldWithDefault(msg, 8, ""),
854
+ termAndCondition: jspb.Message.getFieldWithDefault(msg, 9, ""),
855
+ logoImage: (f = msg.getLogoImage()) && prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject(includeInstance, f)
791
856
  };
792
857
 
793
858
  if (includeInstance) {
@@ -853,6 +918,19 @@ proto.BaseCompany.deserializeBinaryFromReader = function(msg, reader) {
853
918
  reader.readMessage(value,proto.BaseCompanyParent.deserializeBinaryFromReader);
854
919
  msg.setParent(value);
855
920
  break;
921
+ case 8:
922
+ var value = /** @type {string} */ (reader.readString());
923
+ msg.setLogo(value);
924
+ break;
925
+ case 9:
926
+ var value = /** @type {string} */ (reader.readString());
927
+ msg.setTermAndCondition(value);
928
+ break;
929
+ case 10:
930
+ var value = new prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq;
931
+ reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.deserializeBinaryFromReader);
932
+ msg.setLogoImage(value);
933
+ break;
856
934
  default:
857
935
  reader.skipField();
858
936
  break;
@@ -932,6 +1010,28 @@ proto.BaseCompany.serializeBinaryToWriter = function(message, writer) {
932
1010
  proto.BaseCompanyParent.serializeBinaryToWriter
933
1011
  );
934
1012
  }
1013
+ f = message.getLogo();
1014
+ if (f.length > 0) {
1015
+ writer.writeString(
1016
+ 8,
1017
+ f
1018
+ );
1019
+ }
1020
+ f = message.getTermAndCondition();
1021
+ if (f.length > 0) {
1022
+ writer.writeString(
1023
+ 9,
1024
+ f
1025
+ );
1026
+ }
1027
+ f = message.getLogoImage();
1028
+ if (f != null) {
1029
+ writer.writeMessage(
1030
+ 10,
1031
+ f,
1032
+ prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.serializeBinaryToWriter
1033
+ );
1034
+ }
935
1035
  };
936
1036
 
937
1037
 
@@ -1080,6 +1180,79 @@ proto.BaseCompany.prototype.hasParent = function() {
1080
1180
  };
1081
1181
 
1082
1182
 
1183
+ /**
1184
+ * optional string logo = 8;
1185
+ * @return {string}
1186
+ */
1187
+ proto.BaseCompany.prototype.getLogo = function() {
1188
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
1189
+ };
1190
+
1191
+
1192
+ /**
1193
+ * @param {string} value
1194
+ * @return {!proto.BaseCompany} returns this
1195
+ */
1196
+ proto.BaseCompany.prototype.setLogo = function(value) {
1197
+ return jspb.Message.setProto3StringField(this, 8, value);
1198
+ };
1199
+
1200
+
1201
+ /**
1202
+ * optional string term_and_condition = 9;
1203
+ * @return {string}
1204
+ */
1205
+ proto.BaseCompany.prototype.getTermAndCondition = function() {
1206
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
1207
+ };
1208
+
1209
+
1210
+ /**
1211
+ * @param {string} value
1212
+ * @return {!proto.BaseCompany} returns this
1213
+ */
1214
+ proto.BaseCompany.prototype.setTermAndCondition = function(value) {
1215
+ return jspb.Message.setProto3StringField(this, 9, value);
1216
+ };
1217
+
1218
+
1219
+ /**
1220
+ * optional FileUploadReferencesReq logo_image = 10;
1221
+ * @return {?proto.FileUploadReferencesReq}
1222
+ */
1223
+ proto.BaseCompany.prototype.getLogoImage = function() {
1224
+ return /** @type{?proto.FileUploadReferencesReq} */ (
1225
+ jspb.Message.getWrapperField(this, prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq, 10));
1226
+ };
1227
+
1228
+
1229
+ /**
1230
+ * @param {?proto.FileUploadReferencesReq|undefined} value
1231
+ * @return {!proto.BaseCompany} returns this
1232
+ */
1233
+ proto.BaseCompany.prototype.setLogoImage = function(value) {
1234
+ return jspb.Message.setWrapperField(this, 10, value);
1235
+ };
1236
+
1237
+
1238
+ /**
1239
+ * Clears the message field making it undefined.
1240
+ * @return {!proto.BaseCompany} returns this
1241
+ */
1242
+ proto.BaseCompany.prototype.clearLogoImage = function() {
1243
+ return this.setLogoImage(undefined);
1244
+ };
1245
+
1246
+
1247
+ /**
1248
+ * Returns whether this field is set.
1249
+ * @return {boolean}
1250
+ */
1251
+ proto.BaseCompany.prototype.hasLogoImage = function() {
1252
+ return jspb.Message.getField(this, 10) != null;
1253
+ };
1254
+
1255
+
1083
1256
 
1084
1257
 
1085
1258
 
@@ -218,7 +218,8 @@ typeTransaction: jspb.Message.getFieldWithDefault(msg, 19, ""),
218
218
  previousReferences: jspb.Message.getFieldWithDefault(msg, 20, ""),
219
219
  filesList: jspb.Message.toObjectList(msg.getFilesList(),
220
220
  prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject, includeInstance),
221
- previousTransactionReferences: jspb.Message.getFieldWithDefault(msg, 22, "")
221
+ previousTransactionReferences: jspb.Message.getFieldWithDefault(msg, 22, ""),
222
+ currency: jspb.Message.getFieldWithDefault(msg, 23, "")
222
223
  };
223
224
 
224
225
  if (includeInstance) {
@@ -346,6 +347,10 @@ proto.ItemTransaction.deserializeBinaryFromReader = function(msg, reader) {
346
347
  var value = /** @type {string} */ (reader.readString());
347
348
  msg.setPreviousTransactionReferences(value);
348
349
  break;
350
+ case 23:
351
+ var value = /** @type {string} */ (reader.readString());
352
+ msg.setCurrency(value);
353
+ break;
349
354
  default:
350
355
  reader.skipField();
351
356
  break;
@@ -532,6 +537,13 @@ proto.ItemTransaction.serializeBinaryToWriter = function(message, writer) {
532
537
  f
533
538
  );
534
539
  }
540
+ f = message.getCurrency();
541
+ if (f.length > 0) {
542
+ writer.writeString(
543
+ 23,
544
+ f
545
+ );
546
+ }
535
547
  };
536
548
 
537
549
 
@@ -991,6 +1003,24 @@ proto.ItemTransaction.prototype.setPreviousTransactionReferences = function(valu
991
1003
  };
992
1004
 
993
1005
 
1006
+ /**
1007
+ * optional string currency = 23;
1008
+ * @return {string}
1009
+ */
1010
+ proto.ItemTransaction.prototype.getCurrency = function() {
1011
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 23, ""));
1012
+ };
1013
+
1014
+
1015
+ /**
1016
+ * @param {string} value
1017
+ * @return {!proto.ItemTransaction} returns this
1018
+ */
1019
+ proto.ItemTransaction.prototype.setCurrency = function(value) {
1020
+ return jspb.Message.setProto3StringField(this, 23, value);
1021
+ };
1022
+
1023
+
994
1024
 
995
1025
  /**
996
1026
  * List of repeated fields within this message type.
@@ -2239,7 +2269,8 @@ itemTransactionPriceConditionList: jspb.Message.toObjectList(msg.getItemTransact
2239
2269
  previousReferences: jspb.Message.getFieldWithDefault(msg, 15, ""),
2240
2270
  previousTransactionReferences: jspb.Message.getFieldWithDefault(msg, 16, ""),
2241
2271
  filesList: jspb.Message.toObjectList(msg.getFilesList(),
2242
- prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject, includeInstance)
2272
+ prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject, includeInstance),
2273
+ currency: jspb.Message.getFieldWithDefault(msg, 18, "")
2243
2274
  };
2244
2275
 
2245
2276
  if (includeInstance) {
@@ -2347,6 +2378,10 @@ proto.BaseItemTransaction.deserializeBinaryFromReader = function(msg, reader) {
2347
2378
  reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.deserializeBinaryFromReader);
2348
2379
  msg.addFiles(value);
2349
2380
  break;
2381
+ case 18:
2382
+ var value = /** @type {string} */ (reader.readString());
2383
+ msg.setCurrency(value);
2384
+ break;
2350
2385
  default:
2351
2386
  reader.skipField();
2352
2387
  break;
@@ -2498,6 +2533,13 @@ proto.BaseItemTransaction.serializeBinaryToWriter = function(message, writer) {
2498
2533
  prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.serializeBinaryToWriter
2499
2534
  );
2500
2535
  }
2536
+ f = message.getCurrency();
2537
+ if (f.length > 0) {
2538
+ writer.writeString(
2539
+ 18,
2540
+ f
2541
+ );
2542
+ }
2501
2543
  };
2502
2544
 
2503
2545
 
@@ -2867,6 +2909,24 @@ proto.BaseItemTransaction.prototype.clearFilesList = function() {
2867
2909
  };
2868
2910
 
2869
2911
 
2912
+ /**
2913
+ * optional string currency = 18;
2914
+ * @return {string}
2915
+ */
2916
+ proto.BaseItemTransaction.prototype.getCurrency = function() {
2917
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, ""));
2918
+ };
2919
+
2920
+
2921
+ /**
2922
+ * @param {string} value
2923
+ * @return {!proto.BaseItemTransaction} returns this
2924
+ */
2925
+ proto.BaseItemTransaction.prototype.setCurrency = function(value) {
2926
+ return jspb.Message.setProto3StringField(this, 18, value);
2927
+ };
2928
+
2929
+
2870
2930
 
2871
2931
  /**
2872
2932
  * List of repeated fields within this message type.