protobuf-platform 1.2.59 → 1.2.61

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.
@@ -104,10 +104,12 @@ message CommonCountriesResponse {
104
104
  }
105
105
  //File Uploads
106
106
  message R2FileRequest {
107
- bytes file = 1;
108
- string type = 2;
109
- optional string name = 3;
110
- optional string folder = 4;
107
+ string environment = 1;
108
+ string customer = 2;
109
+ bytes file = 3;
110
+ string type = 4;
111
+ optional string name = 5;
112
+ optional string folder = 6;
111
113
  }
112
114
  message R2FileResponse {
113
115
  string key = 1;
@@ -3790,10 +3790,12 @@ proto.config.R2FileRequest.prototype.toObject = function(opt_includeInstance) {
3790
3790
  */
3791
3791
  proto.config.R2FileRequest.toObject = function(includeInstance, msg) {
3792
3792
  var f, obj = {
3793
+ environment: jspb.Message.getFieldWithDefault(msg, 1, ""),
3794
+ customer: jspb.Message.getFieldWithDefault(msg, 2, ""),
3793
3795
  file: msg.getFile_asB64(),
3794
- type: jspb.Message.getFieldWithDefault(msg, 2, ""),
3795
- name: jspb.Message.getFieldWithDefault(msg, 3, ""),
3796
- folder: jspb.Message.getFieldWithDefault(msg, 4, "")
3796
+ type: jspb.Message.getFieldWithDefault(msg, 4, ""),
3797
+ name: jspb.Message.getFieldWithDefault(msg, 5, ""),
3798
+ folder: jspb.Message.getFieldWithDefault(msg, 6, "")
3797
3799
  };
3798
3800
 
3799
3801
  if (includeInstance) {
@@ -3831,18 +3833,26 @@ proto.config.R2FileRequest.deserializeBinaryFromReader = function(msg, reader) {
3831
3833
  var field = reader.getFieldNumber();
3832
3834
  switch (field) {
3833
3835
  case 1:
3836
+ var value = /** @type {string} */ (reader.readString());
3837
+ msg.setEnvironment(value);
3838
+ break;
3839
+ case 2:
3840
+ var value = /** @type {string} */ (reader.readString());
3841
+ msg.setCustomer(value);
3842
+ break;
3843
+ case 3:
3834
3844
  var value = /** @type {!Uint8Array} */ (reader.readBytes());
3835
3845
  msg.setFile(value);
3836
3846
  break;
3837
- case 2:
3847
+ case 4:
3838
3848
  var value = /** @type {string} */ (reader.readString());
3839
3849
  msg.setType(value);
3840
3850
  break;
3841
- case 3:
3851
+ case 5:
3842
3852
  var value = /** @type {string} */ (reader.readString());
3843
3853
  msg.setName(value);
3844
3854
  break;
3845
- case 4:
3855
+ case 6:
3846
3856
  var value = /** @type {string} */ (reader.readString());
3847
3857
  msg.setFolder(value);
3848
3858
  break;
@@ -3875,31 +3885,45 @@ proto.config.R2FileRequest.prototype.serializeBinary = function() {
3875
3885
  */
3876
3886
  proto.config.R2FileRequest.serializeBinaryToWriter = function(message, writer) {
3877
3887
  var f = undefined;
3888
+ f = message.getEnvironment();
3889
+ if (f.length > 0) {
3890
+ writer.writeString(
3891
+ 1,
3892
+ f
3893
+ );
3894
+ }
3895
+ f = message.getCustomer();
3896
+ if (f.length > 0) {
3897
+ writer.writeString(
3898
+ 2,
3899
+ f
3900
+ );
3901
+ }
3878
3902
  f = message.getFile_asU8();
3879
3903
  if (f.length > 0) {
3880
3904
  writer.writeBytes(
3881
- 1,
3905
+ 3,
3882
3906
  f
3883
3907
  );
3884
3908
  }
3885
3909
  f = message.getType();
3886
3910
  if (f.length > 0) {
3887
3911
  writer.writeString(
3888
- 2,
3912
+ 4,
3889
3913
  f
3890
3914
  );
3891
3915
  }
3892
- f = /** @type {string} */ (jspb.Message.getField(message, 3));
3916
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
3893
3917
  if (f != null) {
3894
3918
  writer.writeString(
3895
- 3,
3919
+ 5,
3896
3920
  f
3897
3921
  );
3898
3922
  }
3899
- f = /** @type {string} */ (jspb.Message.getField(message, 4));
3923
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
3900
3924
  if (f != null) {
3901
3925
  writer.writeString(
3902
- 4,
3926
+ 6,
3903
3927
  f
3904
3928
  );
3905
3929
  }
@@ -3907,16 +3931,52 @@ proto.config.R2FileRequest.serializeBinaryToWriter = function(message, writer) {
3907
3931
 
3908
3932
 
3909
3933
  /**
3910
- * optional bytes file = 1;
3934
+ * optional string environment = 1;
3935
+ * @return {string}
3936
+ */
3937
+ proto.config.R2FileRequest.prototype.getEnvironment = function() {
3938
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3939
+ };
3940
+
3941
+
3942
+ /**
3943
+ * @param {string} value
3944
+ * @return {!proto.config.R2FileRequest} returns this
3945
+ */
3946
+ proto.config.R2FileRequest.prototype.setEnvironment = function(value) {
3947
+ return jspb.Message.setProto3StringField(this, 1, value);
3948
+ };
3949
+
3950
+
3951
+ /**
3952
+ * optional string customer = 2;
3953
+ * @return {string}
3954
+ */
3955
+ proto.config.R2FileRequest.prototype.getCustomer = function() {
3956
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3957
+ };
3958
+
3959
+
3960
+ /**
3961
+ * @param {string} value
3962
+ * @return {!proto.config.R2FileRequest} returns this
3963
+ */
3964
+ proto.config.R2FileRequest.prototype.setCustomer = function(value) {
3965
+ return jspb.Message.setProto3StringField(this, 2, value);
3966
+ };
3967
+
3968
+
3969
+ /**
3970
+ * optional bytes file = 3;
3911
3971
  * @return {!(string|Uint8Array)}
3912
3972
  */
3913
3973
  proto.config.R2FileRequest.prototype.getFile = function() {
3914
- return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3974
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3915
3975
  };
3916
3976
 
3917
3977
 
3918
3978
  /**
3919
- * optional bytes file = 1;
3979
+ * optional bytes file = 3;
3920
3980
  * This is a type-conversion wrapper around `getFile()`
3921
3981
  * @return {string}
3922
3982
  */
@@ -3927,7 +3987,7 @@ proto.config.R2FileRequest.prototype.getFile_asB64 = function() {
3927
3987
 
3928
3988
 
3929
3989
  /**
3930
- * optional bytes file = 1;
3990
+ * optional bytes file = 3;
3931
3991
  * Note that Uint8Array is not supported on all browsers.
3932
3992
  * @see http://caniuse.com/Uint8Array
3933
3993
  * This is a type-conversion wrapper around `getFile()`
@@ -3944,16 +4004,16 @@ proto.config.R2FileRequest.prototype.getFile_asU8 = function() {
3944
4004
  * @return {!proto.config.R2FileRequest} returns this
3945
4005
  */
3946
4006
  proto.config.R2FileRequest.prototype.setFile = function(value) {
3947
- return jspb.Message.setProto3BytesField(this, 1, value);
4007
+ return jspb.Message.setProto3BytesField(this, 3, value);
3948
4008
  };
3949
4009
 
3950
4010
 
3951
4011
  /**
3952
- * optional string type = 2;
4012
+ * optional string type = 4;
3953
4013
  * @return {string}
3954
4014
  */
3955
4015
  proto.config.R2FileRequest.prototype.getType = function() {
3956
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
4016
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
3957
4017
  };
3958
4018
 
3959
4019
 
@@ -3962,16 +4022,16 @@ proto.config.R2FileRequest.prototype.getType = function() {
3962
4022
  * @return {!proto.config.R2FileRequest} returns this
3963
4023
  */
3964
4024
  proto.config.R2FileRequest.prototype.setType = function(value) {
3965
- return jspb.Message.setProto3StringField(this, 2, value);
4025
+ return jspb.Message.setProto3StringField(this, 4, value);
3966
4026
  };
3967
4027
 
3968
4028
 
3969
4029
  /**
3970
- * optional string name = 3;
4030
+ * optional string name = 5;
3971
4031
  * @return {string}
3972
4032
  */
3973
4033
  proto.config.R2FileRequest.prototype.getName = function() {
3974
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
4034
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
3975
4035
  };
3976
4036
 
3977
4037
 
@@ -3980,7 +4040,7 @@ proto.config.R2FileRequest.prototype.getName = function() {
3980
4040
  * @return {!proto.config.R2FileRequest} returns this
3981
4041
  */
3982
4042
  proto.config.R2FileRequest.prototype.setName = function(value) {
3983
- return jspb.Message.setField(this, 3, value);
4043
+ return jspb.Message.setField(this, 5, value);
3984
4044
  };
3985
4045
 
3986
4046
 
@@ -3989,7 +4049,7 @@ proto.config.R2FileRequest.prototype.setName = function(value) {
3989
4049
  * @return {!proto.config.R2FileRequest} returns this
3990
4050
  */
3991
4051
  proto.config.R2FileRequest.prototype.clearName = function() {
3992
- return jspb.Message.setField(this, 3, undefined);
4052
+ return jspb.Message.setField(this, 5, undefined);
3993
4053
  };
3994
4054
 
3995
4055
 
@@ -3998,16 +4058,16 @@ proto.config.R2FileRequest.prototype.clearName = function() {
3998
4058
  * @return {boolean}
3999
4059
  */
4000
4060
  proto.config.R2FileRequest.prototype.hasName = function() {
4001
- return jspb.Message.getField(this, 3) != null;
4061
+ return jspb.Message.getField(this, 5) != null;
4002
4062
  };
4003
4063
 
4004
4064
 
4005
4065
  /**
4006
- * optional string folder = 4;
4066
+ * optional string folder = 6;
4007
4067
  * @return {string}
4008
4068
  */
4009
4069
  proto.config.R2FileRequest.prototype.getFolder = function() {
4010
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
4070
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
4011
4071
  };
4012
4072
 
4013
4073
 
@@ -4016,7 +4076,7 @@ proto.config.R2FileRequest.prototype.getFolder = function() {
4016
4076
  * @return {!proto.config.R2FileRequest} returns this
4017
4077
  */
4018
4078
  proto.config.R2FileRequest.prototype.setFolder = function(value) {
4019
- return jspb.Message.setField(this, 4, value);
4079
+ return jspb.Message.setField(this, 6, value);
4020
4080
  };
4021
4081
 
4022
4082
 
@@ -4025,7 +4085,7 @@ proto.config.R2FileRequest.prototype.setFolder = function(value) {
4025
4085
  * @return {!proto.config.R2FileRequest} returns this
4026
4086
  */
4027
4087
  proto.config.R2FileRequest.prototype.clearFolder = function() {
4028
- return jspb.Message.setField(this, 4, undefined);
4088
+ return jspb.Message.setField(this, 6, undefined);
4029
4089
  };
4030
4090
 
4031
4091
 
@@ -4034,7 +4094,7 @@ proto.config.R2FileRequest.prototype.clearFolder = function() {
4034
4094
  * @return {boolean}
4035
4095
  */
4036
4096
  proto.config.R2FileRequest.prototype.hasFolder = function() {
4037
- return jspb.Message.getField(this, 4) != null;
4097
+ return jspb.Message.getField(this, 6) != null;
4038
4098
  };
4039
4099
 
4040
4100
 
@@ -60,8 +60,9 @@ message LevelItem {
60
60
  optional string description = 4;
61
61
  optional int32 is_active = 5;
62
62
  optional string image = 6;
63
- optional int32 value_to_complete = 7;
64
- repeated LevelTranslationItem translations = 8;
63
+ optional string image_cdn = 7;
64
+ optional int32 value_to_complete = 8;
65
+ repeated LevelTranslationItem translations = 9;
65
66
  }
66
67
  //Level CRUD | Requests
67
68
  message LevelRequest {
@@ -2338,7 +2338,7 @@ proto.loyalty.GetFileRequest.prototype.setInstanceType = function(value) {
2338
2338
  * @private {!Array<number>}
2339
2339
  * @const
2340
2340
  */
2341
- proto.loyalty.LevelItem.repeatedFields_ = [8];
2341
+ proto.loyalty.LevelItem.repeatedFields_ = [9];
2342
2342
 
2343
2343
 
2344
2344
 
@@ -2377,7 +2377,8 @@ proto.loyalty.LevelItem.toObject = function(includeInstance, msg) {
2377
2377
  description: jspb.Message.getFieldWithDefault(msg, 4, ""),
2378
2378
  isActive: jspb.Message.getFieldWithDefault(msg, 5, 0),
2379
2379
  image: jspb.Message.getFieldWithDefault(msg, 6, ""),
2380
- valueToComplete: jspb.Message.getFieldWithDefault(msg, 7, 0),
2380
+ imageCdn: jspb.Message.getFieldWithDefault(msg, 7, ""),
2381
+ valueToComplete: jspb.Message.getFieldWithDefault(msg, 8, 0),
2381
2382
  translationsList: jspb.Message.toObjectList(msg.getTranslationsList(),
2382
2383
  proto.loyalty.LevelTranslationItem.toObject, includeInstance)
2383
2384
  };
@@ -2441,10 +2442,14 @@ proto.loyalty.LevelItem.deserializeBinaryFromReader = function(msg, reader) {
2441
2442
  msg.setImage(value);
2442
2443
  break;
2443
2444
  case 7:
2445
+ var value = /** @type {string} */ (reader.readString());
2446
+ msg.setImageCdn(value);
2447
+ break;
2448
+ case 8:
2444
2449
  var value = /** @type {number} */ (reader.readInt32());
2445
2450
  msg.setValueToComplete(value);
2446
2451
  break;
2447
- case 8:
2452
+ case 9:
2448
2453
  var value = new proto.loyalty.LevelTranslationItem;
2449
2454
  reader.readMessage(value,proto.loyalty.LevelTranslationItem.deserializeBinaryFromReader);
2450
2455
  msg.addTranslations(value);
@@ -2520,17 +2525,24 @@ proto.loyalty.LevelItem.serializeBinaryToWriter = function(message, writer) {
2520
2525
  f
2521
2526
  );
2522
2527
  }
2523
- f = /** @type {number} */ (jspb.Message.getField(message, 7));
2528
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
2524
2529
  if (f != null) {
2525
- writer.writeInt32(
2530
+ writer.writeString(
2526
2531
  7,
2527
2532
  f
2528
2533
  );
2529
2534
  }
2535
+ f = /** @type {number} */ (jspb.Message.getField(message, 8));
2536
+ if (f != null) {
2537
+ writer.writeInt32(
2538
+ 8,
2539
+ f
2540
+ );
2541
+ }
2530
2542
  f = message.getTranslationsList();
2531
2543
  if (f.length > 0) {
2532
2544
  writer.writeRepeatedMessage(
2533
- 8,
2545
+ 9,
2534
2546
  f,
2535
2547
  proto.loyalty.LevelTranslationItem.serializeBinaryToWriter
2536
2548
  );
@@ -2755,11 +2767,47 @@ proto.loyalty.LevelItem.prototype.hasImage = function() {
2755
2767
 
2756
2768
 
2757
2769
  /**
2758
- * optional int32 value_to_complete = 7;
2770
+ * optional string image_cdn = 7;
2771
+ * @return {string}
2772
+ */
2773
+ proto.loyalty.LevelItem.prototype.getImageCdn = function() {
2774
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
2775
+ };
2776
+
2777
+
2778
+ /**
2779
+ * @param {string} value
2780
+ * @return {!proto.loyalty.LevelItem} returns this
2781
+ */
2782
+ proto.loyalty.LevelItem.prototype.setImageCdn = function(value) {
2783
+ return jspb.Message.setField(this, 7, value);
2784
+ };
2785
+
2786
+
2787
+ /**
2788
+ * Clears the field making it undefined.
2789
+ * @return {!proto.loyalty.LevelItem} returns this
2790
+ */
2791
+ proto.loyalty.LevelItem.prototype.clearImageCdn = function() {
2792
+ return jspb.Message.setField(this, 7, undefined);
2793
+ };
2794
+
2795
+
2796
+ /**
2797
+ * Returns whether this field is set.
2798
+ * @return {boolean}
2799
+ */
2800
+ proto.loyalty.LevelItem.prototype.hasImageCdn = function() {
2801
+ return jspb.Message.getField(this, 7) != null;
2802
+ };
2803
+
2804
+
2805
+ /**
2806
+ * optional int32 value_to_complete = 8;
2759
2807
  * @return {number}
2760
2808
  */
2761
2809
  proto.loyalty.LevelItem.prototype.getValueToComplete = function() {
2762
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
2810
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
2763
2811
  };
2764
2812
 
2765
2813
 
@@ -2768,7 +2816,7 @@ proto.loyalty.LevelItem.prototype.getValueToComplete = function() {
2768
2816
  * @return {!proto.loyalty.LevelItem} returns this
2769
2817
  */
2770
2818
  proto.loyalty.LevelItem.prototype.setValueToComplete = function(value) {
2771
- return jspb.Message.setField(this, 7, value);
2819
+ return jspb.Message.setField(this, 8, value);
2772
2820
  };
2773
2821
 
2774
2822
 
@@ -2777,7 +2825,7 @@ proto.loyalty.LevelItem.prototype.setValueToComplete = function(value) {
2777
2825
  * @return {!proto.loyalty.LevelItem} returns this
2778
2826
  */
2779
2827
  proto.loyalty.LevelItem.prototype.clearValueToComplete = function() {
2780
- return jspb.Message.setField(this, 7, undefined);
2828
+ return jspb.Message.setField(this, 8, undefined);
2781
2829
  };
2782
2830
 
2783
2831
 
@@ -2786,17 +2834,17 @@ proto.loyalty.LevelItem.prototype.clearValueToComplete = function() {
2786
2834
  * @return {boolean}
2787
2835
  */
2788
2836
  proto.loyalty.LevelItem.prototype.hasValueToComplete = function() {
2789
- return jspb.Message.getField(this, 7) != null;
2837
+ return jspb.Message.getField(this, 8) != null;
2790
2838
  };
2791
2839
 
2792
2840
 
2793
2841
  /**
2794
- * repeated LevelTranslationItem translations = 8;
2842
+ * repeated LevelTranslationItem translations = 9;
2795
2843
  * @return {!Array<!proto.loyalty.LevelTranslationItem>}
2796
2844
  */
2797
2845
  proto.loyalty.LevelItem.prototype.getTranslationsList = function() {
2798
2846
  return /** @type{!Array<!proto.loyalty.LevelTranslationItem>} */ (
2799
- jspb.Message.getRepeatedWrapperField(this, proto.loyalty.LevelTranslationItem, 8));
2847
+ jspb.Message.getRepeatedWrapperField(this, proto.loyalty.LevelTranslationItem, 9));
2800
2848
  };
2801
2849
 
2802
2850
 
@@ -2805,7 +2853,7 @@ proto.loyalty.LevelItem.prototype.getTranslationsList = function() {
2805
2853
  * @return {!proto.loyalty.LevelItem} returns this
2806
2854
  */
2807
2855
  proto.loyalty.LevelItem.prototype.setTranslationsList = function(value) {
2808
- return jspb.Message.setRepeatedWrapperField(this, 8, value);
2856
+ return jspb.Message.setRepeatedWrapperField(this, 9, value);
2809
2857
  };
2810
2858
 
2811
2859
 
@@ -2815,7 +2863,7 @@ proto.loyalty.LevelItem.prototype.setTranslationsList = function(value) {
2815
2863
  * @return {!proto.loyalty.LevelTranslationItem}
2816
2864
  */
2817
2865
  proto.loyalty.LevelItem.prototype.addTranslations = function(opt_value, opt_index) {
2818
- return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.loyalty.LevelTranslationItem, opt_index);
2866
+ return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.loyalty.LevelTranslationItem, opt_index);
2819
2867
  };
2820
2868
 
2821
2869
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.59",
3
+ "version": "1.2.61",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {