@aldiokta/protocgen 1.1.53 → 1.1.55

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.53",
3
+ "version": "1.1.55",
4
4
  "description": "protocgen js generated for products v2",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -193,7 +193,7 @@ if (goog.DEBUG && !COMPILED) {
193
193
  * @constructor
194
194
  */
195
195
  proto.PolicyAction = function(opt_data) {
196
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
196
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.PolicyAction.repeatedFields_, null);
197
197
  };
198
198
  goog.inherits(proto.PolicyAction, jspb.Message);
199
199
  if (goog.DEBUG && !COMPILED) {
@@ -1856,8 +1856,7 @@ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
1856
1856
  names: jspb.Message.getFieldWithDefault(msg, 2, ""),
1857
1857
  description: jspb.Message.getFieldWithDefault(msg, 3, ""),
1858
1858
  policiesActionList: jspb.Message.toObjectList(msg.getPoliciesActionList(),
1859
- proto.PolicyAction.toObject, includeInstance),
1860
- resources: (f = msg.getResources()) && proto.Resource.toObject(includeInstance, f)
1859
+ proto.PolicyAction.toObject, includeInstance)
1861
1860
  };
1862
1861
 
1863
1862
  if (includeInstance) {
@@ -1911,11 +1910,6 @@ proto.BasePolicy.deserializeBinaryFromReader = function(msg, reader) {
1911
1910
  reader.readMessage(value,proto.PolicyAction.deserializeBinaryFromReader);
1912
1911
  msg.addPoliciesAction(value);
1913
1912
  break;
1914
- case 5:
1915
- var value = new proto.Resource;
1916
- reader.readMessage(value,proto.Resource.deserializeBinaryFromReader);
1917
- msg.setResources(value);
1918
- break;
1919
1913
  default:
1920
1914
  reader.skipField();
1921
1915
  break;
@@ -1974,14 +1968,6 @@ proto.BasePolicy.serializeBinaryToWriter = function(message, writer) {
1974
1968
  proto.PolicyAction.serializeBinaryToWriter
1975
1969
  );
1976
1970
  }
1977
- f = message.getResources();
1978
- if (f != null) {
1979
- writer.writeMessage(
1980
- 5,
1981
- f,
1982
- proto.Resource.serializeBinaryToWriter
1983
- );
1984
- }
1985
1971
  };
1986
1972
 
1987
1973
 
@@ -2077,43 +2063,6 @@ proto.BasePolicy.prototype.clearPoliciesActionList = function() {
2077
2063
  };
2078
2064
 
2079
2065
 
2080
- /**
2081
- * optional Resource resources = 5;
2082
- * @return {?proto.Resource}
2083
- */
2084
- proto.BasePolicy.prototype.getResources = function() {
2085
- return /** @type{?proto.Resource} */ (
2086
- jspb.Message.getWrapperField(this, proto.Resource, 5));
2087
- };
2088
-
2089
-
2090
- /**
2091
- * @param {?proto.Resource|undefined} value
2092
- * @return {!proto.BasePolicy} returns this
2093
- */
2094
- proto.BasePolicy.prototype.setResources = function(value) {
2095
- return jspb.Message.setWrapperField(this, 5, value);
2096
- };
2097
-
2098
-
2099
- /**
2100
- * Clears the message field making it undefined.
2101
- * @return {!proto.BasePolicy} returns this
2102
- */
2103
- proto.BasePolicy.prototype.clearResources = function() {
2104
- return this.setResources(undefined);
2105
- };
2106
-
2107
-
2108
- /**
2109
- * Returns whether this field is set.
2110
- * @return {boolean}
2111
- */
2112
- proto.BasePolicy.prototype.hasResources = function() {
2113
- return jspb.Message.getField(this, 5) != null;
2114
- };
2115
-
2116
-
2117
2066
 
2118
2067
  /**
2119
2068
  * List of repeated fields within this message type.
@@ -2353,8 +2302,7 @@ createdBy: jspb.Message.getFieldWithDefault(msg, 7, ""),
2353
2302
  updatedBy: jspb.Message.getFieldWithDefault(msg, 8, ""),
2354
2303
  companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 9, ""),
2355
2304
  policiesActionsList: jspb.Message.toObjectList(msg.getPoliciesActionsList(),
2356
- proto.PolicyAction.toObject, includeInstance),
2357
- resources: (f = msg.getResources()) && proto.Resource.toObject(includeInstance, f)
2305
+ proto.PolicyAction.toObject, includeInstance)
2358
2306
  };
2359
2307
 
2360
2308
  if (includeInstance) {
@@ -2432,11 +2380,6 @@ proto.Policy.deserializeBinaryFromReader = function(msg, reader) {
2432
2380
  reader.readMessage(value,proto.PolicyAction.deserializeBinaryFromReader);
2433
2381
  msg.addPoliciesActions(value);
2434
2382
  break;
2435
- case 11:
2436
- var value = new proto.Resource;
2437
- reader.readMessage(value,proto.Resource.deserializeBinaryFromReader);
2438
- msg.setResources(value);
2439
- break;
2440
2383
  default:
2441
2384
  reader.skipField();
2442
2385
  break;
@@ -2537,14 +2480,6 @@ proto.Policy.serializeBinaryToWriter = function(message, writer) {
2537
2480
  proto.PolicyAction.serializeBinaryToWriter
2538
2481
  );
2539
2482
  }
2540
- f = message.getResources();
2541
- if (f != null) {
2542
- writer.writeMessage(
2543
- 11,
2544
- f,
2545
- proto.Resource.serializeBinaryToWriter
2546
- );
2547
- }
2548
2483
  };
2549
2484
 
2550
2485
 
@@ -2748,43 +2683,13 @@ proto.Policy.prototype.clearPoliciesActionsList = function() {
2748
2683
  };
2749
2684
 
2750
2685
 
2751
- /**
2752
- * optional Resource resources = 11;
2753
- * @return {?proto.Resource}
2754
- */
2755
- proto.Policy.prototype.getResources = function() {
2756
- return /** @type{?proto.Resource} */ (
2757
- jspb.Message.getWrapperField(this, proto.Resource, 11));
2758
- };
2759
-
2760
2686
 
2761
2687
  /**
2762
- * @param {?proto.Resource|undefined} value
2763
- * @return {!proto.Policy} returns this
2764
- */
2765
- proto.Policy.prototype.setResources = function(value) {
2766
- return jspb.Message.setWrapperField(this, 11, value);
2767
- };
2768
-
2769
-
2770
- /**
2771
- * Clears the message field making it undefined.
2772
- * @return {!proto.Policy} returns this
2773
- */
2774
- proto.Policy.prototype.clearResources = function() {
2775
- return this.setResources(undefined);
2776
- };
2777
-
2778
-
2779
- /**
2780
- * Returns whether this field is set.
2781
- * @return {boolean}
2688
+ * List of repeated fields within this message type.
2689
+ * @private {!Array<number>}
2690
+ * @const
2782
2691
  */
2783
- proto.Policy.prototype.hasResources = function() {
2784
- return jspb.Message.getField(this, 11) != null;
2785
- };
2786
-
2787
-
2692
+ proto.PolicyAction.repeatedFields_ = [11];
2788
2693
 
2789
2694
 
2790
2695
 
@@ -2827,7 +2732,9 @@ createdBy: jspb.Message.getFieldWithDefault(msg, 7, ""),
2827
2732
  updatedBy: jspb.Message.getFieldWithDefault(msg, 8, ""),
2828
2733
  companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 9, ""),
2829
2734
  resourceReferencesId: jspb.Message.getFieldWithDefault(msg, 10, ""),
2830
- action: (f = msg.getAction()) && proto.Action.toObject(includeInstance, f)
2735
+ actionsList: jspb.Message.toObjectList(msg.getActionsList(),
2736
+ proto.Action.toObject, includeInstance),
2737
+ resource: (f = msg.getResource()) && proto.Resource.toObject(includeInstance, f)
2831
2738
  };
2832
2739
 
2833
2740
  if (includeInstance) {
@@ -2907,7 +2814,12 @@ proto.PolicyAction.deserializeBinaryFromReader = function(msg, reader) {
2907
2814
  case 11:
2908
2815
  var value = new proto.Action;
2909
2816
  reader.readMessage(value,proto.Action.deserializeBinaryFromReader);
2910
- msg.setAction(value);
2817
+ msg.addActions(value);
2818
+ break;
2819
+ case 12:
2820
+ var value = new proto.Resource;
2821
+ reader.readMessage(value,proto.Resource.deserializeBinaryFromReader);
2822
+ msg.setResource(value);
2911
2823
  break;
2912
2824
  default:
2913
2825
  reader.skipField();
@@ -3008,14 +2920,22 @@ proto.PolicyAction.serializeBinaryToWriter = function(message, writer) {
3008
2920
  f
3009
2921
  );
3010
2922
  }
3011
- f = message.getAction();
3012
- if (f != null) {
3013
- writer.writeMessage(
2923
+ f = message.getActionsList();
2924
+ if (f.length > 0) {
2925
+ writer.writeRepeatedMessage(
3014
2926
  11,
3015
2927
  f,
3016
2928
  proto.Action.serializeBinaryToWriter
3017
2929
  );
3018
2930
  }
2931
+ f = message.getResource();
2932
+ if (f != null) {
2933
+ writer.writeMessage(
2934
+ 12,
2935
+ f,
2936
+ proto.Resource.serializeBinaryToWriter
2937
+ );
2938
+ }
3019
2939
  };
3020
2940
 
3021
2941
 
@@ -3200,21 +3120,59 @@ proto.PolicyAction.prototype.setResourceReferencesId = function(value) {
3200
3120
 
3201
3121
 
3202
3122
  /**
3203
- * optional Action action = 11;
3204
- * @return {?proto.Action}
3123
+ * repeated Action actions = 11;
3124
+ * @return {!Array<!proto.Action>}
3125
+ */
3126
+ proto.PolicyAction.prototype.getActionsList = function() {
3127
+ return /** @type{!Array<!proto.Action>} */ (
3128
+ jspb.Message.getRepeatedWrapperField(this, proto.Action, 11));
3129
+ };
3130
+
3131
+
3132
+ /**
3133
+ * @param {!Array<!proto.Action>} value
3134
+ * @return {!proto.PolicyAction} returns this
3135
+ */
3136
+ proto.PolicyAction.prototype.setActionsList = function(value) {
3137
+ return jspb.Message.setRepeatedWrapperField(this, 11, value);
3138
+ };
3139
+
3140
+
3141
+ /**
3142
+ * @param {!proto.Action=} opt_value
3143
+ * @param {number=} opt_index
3144
+ * @return {!proto.Action}
3145
+ */
3146
+ proto.PolicyAction.prototype.addActions = function(opt_value, opt_index) {
3147
+ return jspb.Message.addToRepeatedWrapperField(this, 11, opt_value, proto.Action, opt_index);
3148
+ };
3149
+
3150
+
3151
+ /**
3152
+ * Clears the list making it empty but non-null.
3153
+ * @return {!proto.PolicyAction} returns this
3205
3154
  */
3206
- proto.PolicyAction.prototype.getAction = function() {
3207
- return /** @type{?proto.Action} */ (
3208
- jspb.Message.getWrapperField(this, proto.Action, 11));
3155
+ proto.PolicyAction.prototype.clearActionsList = function() {
3156
+ return this.setActionsList([]);
3209
3157
  };
3210
3158
 
3211
3159
 
3212
3160
  /**
3213
- * @param {?proto.Action|undefined} value
3161
+ * optional Resource resource = 12;
3162
+ * @return {?proto.Resource}
3163
+ */
3164
+ proto.PolicyAction.prototype.getResource = function() {
3165
+ return /** @type{?proto.Resource} */ (
3166
+ jspb.Message.getWrapperField(this, proto.Resource, 12));
3167
+ };
3168
+
3169
+
3170
+ /**
3171
+ * @param {?proto.Resource|undefined} value
3214
3172
  * @return {!proto.PolicyAction} returns this
3215
3173
  */
3216
- proto.PolicyAction.prototype.setAction = function(value) {
3217
- return jspb.Message.setWrapperField(this, 11, value);
3174
+ proto.PolicyAction.prototype.setResource = function(value) {
3175
+ return jspb.Message.setWrapperField(this, 12, value);
3218
3176
  };
3219
3177
 
3220
3178
 
@@ -3222,8 +3180,8 @@ proto.PolicyAction.prototype.setAction = function(value) {
3222
3180
  * Clears the message field making it undefined.
3223
3181
  * @return {!proto.PolicyAction} returns this
3224
3182
  */
3225
- proto.PolicyAction.prototype.clearAction = function() {
3226
- return this.setAction(undefined);
3183
+ proto.PolicyAction.prototype.clearResource = function() {
3184
+ return this.setResource(undefined);
3227
3185
  };
3228
3186
 
3229
3187
 
@@ -3231,8 +3189,8 @@ proto.PolicyAction.prototype.clearAction = function() {
3231
3189
  * Returns whether this field is set.
3232
3190
  * @return {boolean}
3233
3191
  */
3234
- proto.PolicyAction.prototype.hasAction = function() {
3235
- return jspb.Message.getField(this, 11) != null;
3192
+ proto.PolicyAction.prototype.hasResource = function() {
3193
+ return jspb.Message.getField(this, 12) != null;
3236
3194
  };
3237
3195
 
3238
3196
 
@@ -2801,7 +2801,10 @@ filesList: jspb.Message.toObjectList(msg.getFilesList(),
2801
2801
  itemTransactionServicePriceConditionList: jspb.Message.toObjectList(msg.getItemTransactionServicePriceConditionList(),
2802
2802
  proto.ItemTransactionServicePriceCondition.toObject, includeInstance),
2803
2803
  previousReferences: jspb.Message.getFieldWithDefault(msg, 13, ""),
2804
- remainingQuantity: jspb.Message.getFieldWithDefault(msg, 14, "")
2804
+ remainingQuantity: jspb.Message.getFieldWithDefault(msg, 14, ""),
2805
+ goodsReceiptQuantity: jspb.Message.getFieldWithDefault(msg, 15, ""),
2806
+ invoiceQuantity: jspb.Message.getFieldWithDefault(msg, 16, ""),
2807
+ purchaseOrderQuantity: jspb.Message.getFieldWithDefault(msg, 17, "")
2805
2808
  };
2806
2809
 
2807
2810
  if (includeInstance) {
@@ -2896,6 +2899,18 @@ proto.ItemTransactionService.deserializeBinaryFromReader = function(msg, reader)
2896
2899
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
2897
2900
  msg.setRemainingQuantity(value);
2898
2901
  break;
2902
+ case 15:
2903
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2904
+ msg.setGoodsReceiptQuantity(value);
2905
+ break;
2906
+ case 16:
2907
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2908
+ msg.setInvoiceQuantity(value);
2909
+ break;
2910
+ case 17:
2911
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2912
+ msg.setPurchaseOrderQuantity(value);
2913
+ break;
2899
2914
  default:
2900
2915
  reader.skipField();
2901
2916
  break;
@@ -3025,6 +3040,27 @@ proto.ItemTransactionService.serializeBinaryToWriter = function(message, writer)
3025
3040
  f
3026
3041
  );
3027
3042
  }
3043
+ f = message.getGoodsReceiptQuantity();
3044
+ if (f.length > 0) {
3045
+ writer.writeString(
3046
+ 15,
3047
+ f
3048
+ );
3049
+ }
3050
+ f = message.getInvoiceQuantity();
3051
+ if (f.length > 0) {
3052
+ writer.writeString(
3053
+ 16,
3054
+ f
3055
+ );
3056
+ }
3057
+ f = message.getPurchaseOrderQuantity();
3058
+ if (f.length > 0) {
3059
+ writer.writeString(
3060
+ 17,
3061
+ f
3062
+ );
3063
+ }
3028
3064
  };
3029
3065
 
3030
3066
 
@@ -3320,6 +3356,60 @@ proto.ItemTransactionService.prototype.setRemainingQuantity = function(value) {
3320
3356
  };
3321
3357
 
3322
3358
 
3359
+ /**
3360
+ * optional string goods_receipt_quantity = 15;
3361
+ * @return {string}
3362
+ */
3363
+ proto.ItemTransactionService.prototype.getGoodsReceiptQuantity = function() {
3364
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
3365
+ };
3366
+
3367
+
3368
+ /**
3369
+ * @param {string} value
3370
+ * @return {!proto.ItemTransactionService} returns this
3371
+ */
3372
+ proto.ItemTransactionService.prototype.setGoodsReceiptQuantity = function(value) {
3373
+ return jspb.Message.setProto3StringField(this, 15, value);
3374
+ };
3375
+
3376
+
3377
+ /**
3378
+ * optional string invoice_quantity = 16;
3379
+ * @return {string}
3380
+ */
3381
+ proto.ItemTransactionService.prototype.getInvoiceQuantity = function() {
3382
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
3383
+ };
3384
+
3385
+
3386
+ /**
3387
+ * @param {string} value
3388
+ * @return {!proto.ItemTransactionService} returns this
3389
+ */
3390
+ proto.ItemTransactionService.prototype.setInvoiceQuantity = function(value) {
3391
+ return jspb.Message.setProto3StringField(this, 16, value);
3392
+ };
3393
+
3394
+
3395
+ /**
3396
+ * optional string purchase_order_quantity = 17;
3397
+ * @return {string}
3398
+ */
3399
+ proto.ItemTransactionService.prototype.getPurchaseOrderQuantity = function() {
3400
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
3401
+ };
3402
+
3403
+
3404
+ /**
3405
+ * @param {string} value
3406
+ * @return {!proto.ItemTransactionService} returns this
3407
+ */
3408
+ proto.ItemTransactionService.prototype.setPurchaseOrderQuantity = function(value) {
3409
+ return jspb.Message.setProto3StringField(this, 17, value);
3410
+ };
3411
+
3412
+
3323
3413
 
3324
3414
 
3325
3415