protobuf-platform 1.2.49 → 1.2.51
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/loyalty/loyalty.proto +2 -1
- package/loyalty/loyalty_pb.js +113 -65
- package/package.json +1 -1
package/loyalty/loyalty.proto
CHANGED
|
@@ -56,6 +56,7 @@ message LevelItem {
|
|
|
56
56
|
optional int32 is_active = 5;
|
|
57
57
|
optional string image = 6;
|
|
58
58
|
optional int32 value_to_complete = 7;
|
|
59
|
+
repeated LevelTranslationItem translations = 8;
|
|
59
60
|
}
|
|
60
61
|
//Level CRUD | Requests
|
|
61
62
|
message LevelRequest {
|
|
@@ -73,7 +74,6 @@ message LevelItemRequest {
|
|
|
73
74
|
optional int32 value_to_complete = 6;
|
|
74
75
|
optional string file_name = 7;
|
|
75
76
|
optional string file_type = 8;
|
|
76
|
-
repeated LevelTranslationItem translations = 9;
|
|
77
77
|
}
|
|
78
78
|
message GetLevelRequest {
|
|
79
79
|
int32 id = 1;
|
|
@@ -102,6 +102,7 @@ message LevelTranslationResponse {
|
|
|
102
102
|
optional string description = 2;
|
|
103
103
|
optional string content = 3;
|
|
104
104
|
optional int32 is_active = 4;
|
|
105
|
+
optional string locale = 5;
|
|
105
106
|
}
|
|
106
107
|
//Level CRUD | Responses
|
|
107
108
|
message LevelResponse {
|
package/loyalty/loyalty_pb.js
CHANGED
|
@@ -189,7 +189,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
189
189
|
* @constructor
|
|
190
190
|
*/
|
|
191
191
|
proto.loyalty.LevelItem = function(opt_data) {
|
|
192
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
192
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.loyalty.LevelItem.repeatedFields_, null);
|
|
193
193
|
};
|
|
194
194
|
goog.inherits(proto.loyalty.LevelItem, jspb.Message);
|
|
195
195
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -231,7 +231,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
231
231
|
* @constructor
|
|
232
232
|
*/
|
|
233
233
|
proto.loyalty.LevelItemRequest = function(opt_data) {
|
|
234
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
234
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
235
235
|
};
|
|
236
236
|
goog.inherits(proto.loyalty.LevelItemRequest, jspb.Message);
|
|
237
237
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -2105,6 +2105,13 @@ proto.loyalty.GetFileRequest.prototype.setInstanceType = function(value) {
|
|
|
2105
2105
|
|
|
2106
2106
|
|
|
2107
2107
|
|
|
2108
|
+
/**
|
|
2109
|
+
* List of repeated fields within this message type.
|
|
2110
|
+
* @private {!Array<number>}
|
|
2111
|
+
* @const
|
|
2112
|
+
*/
|
|
2113
|
+
proto.loyalty.LevelItem.repeatedFields_ = [8];
|
|
2114
|
+
|
|
2108
2115
|
|
|
2109
2116
|
|
|
2110
2117
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -2142,7 +2149,9 @@ proto.loyalty.LevelItem.toObject = function(includeInstance, msg) {
|
|
|
2142
2149
|
description: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
2143
2150
|
isActive: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
2144
2151
|
image: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
2145
|
-
valueToComplete: jspb.Message.getFieldWithDefault(msg, 7, 0)
|
|
2152
|
+
valueToComplete: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
2153
|
+
translationsList: jspb.Message.toObjectList(msg.getTranslationsList(),
|
|
2154
|
+
proto.loyalty.LevelTranslationItem.toObject, includeInstance)
|
|
2146
2155
|
};
|
|
2147
2156
|
|
|
2148
2157
|
if (includeInstance) {
|
|
@@ -2207,6 +2216,11 @@ proto.loyalty.LevelItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
2207
2216
|
var value = /** @type {number} */ (reader.readInt32());
|
|
2208
2217
|
msg.setValueToComplete(value);
|
|
2209
2218
|
break;
|
|
2219
|
+
case 8:
|
|
2220
|
+
var value = new proto.loyalty.LevelTranslationItem;
|
|
2221
|
+
reader.readMessage(value,proto.loyalty.LevelTranslationItem.deserializeBinaryFromReader);
|
|
2222
|
+
msg.addTranslations(value);
|
|
2223
|
+
break;
|
|
2210
2224
|
default:
|
|
2211
2225
|
reader.skipField();
|
|
2212
2226
|
break;
|
|
@@ -2285,6 +2299,14 @@ proto.loyalty.LevelItem.serializeBinaryToWriter = function(message, writer) {
|
|
|
2285
2299
|
f
|
|
2286
2300
|
);
|
|
2287
2301
|
}
|
|
2302
|
+
f = message.getTranslationsList();
|
|
2303
|
+
if (f.length > 0) {
|
|
2304
|
+
writer.writeRepeatedMessage(
|
|
2305
|
+
8,
|
|
2306
|
+
f,
|
|
2307
|
+
proto.loyalty.LevelTranslationItem.serializeBinaryToWriter
|
|
2308
|
+
);
|
|
2309
|
+
}
|
|
2288
2310
|
};
|
|
2289
2311
|
|
|
2290
2312
|
|
|
@@ -2540,6 +2562,44 @@ proto.loyalty.LevelItem.prototype.hasValueToComplete = function() {
|
|
|
2540
2562
|
};
|
|
2541
2563
|
|
|
2542
2564
|
|
|
2565
|
+
/**
|
|
2566
|
+
* repeated LevelTranslationItem translations = 8;
|
|
2567
|
+
* @return {!Array<!proto.loyalty.LevelTranslationItem>}
|
|
2568
|
+
*/
|
|
2569
|
+
proto.loyalty.LevelItem.prototype.getTranslationsList = function() {
|
|
2570
|
+
return /** @type{!Array<!proto.loyalty.LevelTranslationItem>} */ (
|
|
2571
|
+
jspb.Message.getRepeatedWrapperField(this, proto.loyalty.LevelTranslationItem, 8));
|
|
2572
|
+
};
|
|
2573
|
+
|
|
2574
|
+
|
|
2575
|
+
/**
|
|
2576
|
+
* @param {!Array<!proto.loyalty.LevelTranslationItem>} value
|
|
2577
|
+
* @return {!proto.loyalty.LevelItem} returns this
|
|
2578
|
+
*/
|
|
2579
|
+
proto.loyalty.LevelItem.prototype.setTranslationsList = function(value) {
|
|
2580
|
+
return jspb.Message.setRepeatedWrapperField(this, 8, value);
|
|
2581
|
+
};
|
|
2582
|
+
|
|
2583
|
+
|
|
2584
|
+
/**
|
|
2585
|
+
* @param {!proto.loyalty.LevelTranslationItem=} opt_value
|
|
2586
|
+
* @param {number=} opt_index
|
|
2587
|
+
* @return {!proto.loyalty.LevelTranslationItem}
|
|
2588
|
+
*/
|
|
2589
|
+
proto.loyalty.LevelItem.prototype.addTranslations = function(opt_value, opt_index) {
|
|
2590
|
+
return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.loyalty.LevelTranslationItem, opt_index);
|
|
2591
|
+
};
|
|
2592
|
+
|
|
2593
|
+
|
|
2594
|
+
/**
|
|
2595
|
+
* Clears the list making it empty but non-null.
|
|
2596
|
+
* @return {!proto.loyalty.LevelItem} returns this
|
|
2597
|
+
*/
|
|
2598
|
+
proto.loyalty.LevelItem.prototype.clearTranslationsList = function() {
|
|
2599
|
+
return this.setTranslationsList([]);
|
|
2600
|
+
};
|
|
2601
|
+
|
|
2602
|
+
|
|
2543
2603
|
|
|
2544
2604
|
/**
|
|
2545
2605
|
* Oneof group definitions for this message. Each group defines the field
|
|
@@ -2769,13 +2829,6 @@ proto.loyalty.LevelRequest.prototype.hasFile = function() {
|
|
|
2769
2829
|
|
|
2770
2830
|
|
|
2771
2831
|
|
|
2772
|
-
/**
|
|
2773
|
-
* List of repeated fields within this message type.
|
|
2774
|
-
* @private {!Array<number>}
|
|
2775
|
-
* @const
|
|
2776
|
-
*/
|
|
2777
|
-
proto.loyalty.LevelItemRequest.repeatedFields_ = [9];
|
|
2778
|
-
|
|
2779
2832
|
|
|
2780
2833
|
|
|
2781
2834
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -2814,9 +2867,7 @@ proto.loyalty.LevelItemRequest.toObject = function(includeInstance, msg) {
|
|
|
2814
2867
|
isActive: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
2815
2868
|
valueToComplete: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
2816
2869
|
fileName: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
2817
|
-
fileType: jspb.Message.getFieldWithDefault(msg, 8, "")
|
|
2818
|
-
translationsList: jspb.Message.toObjectList(msg.getTranslationsList(),
|
|
2819
|
-
proto.loyalty.LevelTranslationItem.toObject, includeInstance)
|
|
2870
|
+
fileType: jspb.Message.getFieldWithDefault(msg, 8, "")
|
|
2820
2871
|
};
|
|
2821
2872
|
|
|
2822
2873
|
if (includeInstance) {
|
|
@@ -2885,11 +2936,6 @@ proto.loyalty.LevelItemRequest.deserializeBinaryFromReader = function(msg, reade
|
|
|
2885
2936
|
var value = /** @type {string} */ (reader.readString());
|
|
2886
2937
|
msg.setFileType(value);
|
|
2887
2938
|
break;
|
|
2888
|
-
case 9:
|
|
2889
|
-
var value = new proto.loyalty.LevelTranslationItem;
|
|
2890
|
-
reader.readMessage(value,proto.loyalty.LevelTranslationItem.deserializeBinaryFromReader);
|
|
2891
|
-
msg.addTranslations(value);
|
|
2892
|
-
break;
|
|
2893
2939
|
default:
|
|
2894
2940
|
reader.skipField();
|
|
2895
2941
|
break;
|
|
@@ -2975,14 +3021,6 @@ proto.loyalty.LevelItemRequest.serializeBinaryToWriter = function(message, write
|
|
|
2975
3021
|
f
|
|
2976
3022
|
);
|
|
2977
3023
|
}
|
|
2978
|
-
f = message.getTranslationsList();
|
|
2979
|
-
if (f.length > 0) {
|
|
2980
|
-
writer.writeRepeatedMessage(
|
|
2981
|
-
9,
|
|
2982
|
-
f,
|
|
2983
|
-
proto.loyalty.LevelTranslationItem.serializeBinaryToWriter
|
|
2984
|
-
);
|
|
2985
|
-
}
|
|
2986
3024
|
};
|
|
2987
3025
|
|
|
2988
3026
|
|
|
@@ -3274,44 +3312,6 @@ proto.loyalty.LevelItemRequest.prototype.hasFileType = function() {
|
|
|
3274
3312
|
};
|
|
3275
3313
|
|
|
3276
3314
|
|
|
3277
|
-
/**
|
|
3278
|
-
* repeated LevelTranslationItem translations = 9;
|
|
3279
|
-
* @return {!Array<!proto.loyalty.LevelTranslationItem>}
|
|
3280
|
-
*/
|
|
3281
|
-
proto.loyalty.LevelItemRequest.prototype.getTranslationsList = function() {
|
|
3282
|
-
return /** @type{!Array<!proto.loyalty.LevelTranslationItem>} */ (
|
|
3283
|
-
jspb.Message.getRepeatedWrapperField(this, proto.loyalty.LevelTranslationItem, 9));
|
|
3284
|
-
};
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
/**
|
|
3288
|
-
* @param {!Array<!proto.loyalty.LevelTranslationItem>} value
|
|
3289
|
-
* @return {!proto.loyalty.LevelItemRequest} returns this
|
|
3290
|
-
*/
|
|
3291
|
-
proto.loyalty.LevelItemRequest.prototype.setTranslationsList = function(value) {
|
|
3292
|
-
return jspb.Message.setRepeatedWrapperField(this, 9, value);
|
|
3293
|
-
};
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
/**
|
|
3297
|
-
* @param {!proto.loyalty.LevelTranslationItem=} opt_value
|
|
3298
|
-
* @param {number=} opt_index
|
|
3299
|
-
* @return {!proto.loyalty.LevelTranslationItem}
|
|
3300
|
-
*/
|
|
3301
|
-
proto.loyalty.LevelItemRequest.prototype.addTranslations = function(opt_value, opt_index) {
|
|
3302
|
-
return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.loyalty.LevelTranslationItem, opt_index);
|
|
3303
|
-
};
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
/**
|
|
3307
|
-
* Clears the list making it empty but non-null.
|
|
3308
|
-
* @return {!proto.loyalty.LevelItemRequest} returns this
|
|
3309
|
-
*/
|
|
3310
|
-
proto.loyalty.LevelItemRequest.prototype.clearTranslationsList = function() {
|
|
3311
|
-
return this.setTranslationsList([]);
|
|
3312
|
-
};
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
3315
|
|
|
3316
3316
|
|
|
3317
3317
|
|
|
@@ -4365,7 +4365,8 @@ proto.loyalty.LevelTranslationResponse.toObject = function(includeInstance, msg)
|
|
|
4365
4365
|
title: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
4366
4366
|
description: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
4367
4367
|
content: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
4368
|
-
isActive: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
|
4368
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
4369
|
+
locale: jspb.Message.getFieldWithDefault(msg, 5, "")
|
|
4369
4370
|
};
|
|
4370
4371
|
|
|
4371
4372
|
if (includeInstance) {
|
|
@@ -4418,6 +4419,10 @@ proto.loyalty.LevelTranslationResponse.deserializeBinaryFromReader = function(ms
|
|
|
4418
4419
|
var value = /** @type {number} */ (reader.readInt32());
|
|
4419
4420
|
msg.setIsActive(value);
|
|
4420
4421
|
break;
|
|
4422
|
+
case 5:
|
|
4423
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4424
|
+
msg.setLocale(value);
|
|
4425
|
+
break;
|
|
4421
4426
|
default:
|
|
4422
4427
|
reader.skipField();
|
|
4423
4428
|
break;
|
|
@@ -4475,6 +4480,13 @@ proto.loyalty.LevelTranslationResponse.serializeBinaryToWriter = function(messag
|
|
|
4475
4480
|
f
|
|
4476
4481
|
);
|
|
4477
4482
|
}
|
|
4483
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 5));
|
|
4484
|
+
if (f != null) {
|
|
4485
|
+
writer.writeString(
|
|
4486
|
+
5,
|
|
4487
|
+
f
|
|
4488
|
+
);
|
|
4489
|
+
}
|
|
4478
4490
|
};
|
|
4479
4491
|
|
|
4480
4492
|
|
|
@@ -4622,6 +4634,42 @@ proto.loyalty.LevelTranslationResponse.prototype.hasIsActive = function() {
|
|
|
4622
4634
|
};
|
|
4623
4635
|
|
|
4624
4636
|
|
|
4637
|
+
/**
|
|
4638
|
+
* optional string locale = 5;
|
|
4639
|
+
* @return {string}
|
|
4640
|
+
*/
|
|
4641
|
+
proto.loyalty.LevelTranslationResponse.prototype.getLocale = function() {
|
|
4642
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
4643
|
+
};
|
|
4644
|
+
|
|
4645
|
+
|
|
4646
|
+
/**
|
|
4647
|
+
* @param {string} value
|
|
4648
|
+
* @return {!proto.loyalty.LevelTranslationResponse} returns this
|
|
4649
|
+
*/
|
|
4650
|
+
proto.loyalty.LevelTranslationResponse.prototype.setLocale = function(value) {
|
|
4651
|
+
return jspb.Message.setField(this, 5, value);
|
|
4652
|
+
};
|
|
4653
|
+
|
|
4654
|
+
|
|
4655
|
+
/**
|
|
4656
|
+
* Clears the field making it undefined.
|
|
4657
|
+
* @return {!proto.loyalty.LevelTranslationResponse} returns this
|
|
4658
|
+
*/
|
|
4659
|
+
proto.loyalty.LevelTranslationResponse.prototype.clearLocale = function() {
|
|
4660
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
4661
|
+
};
|
|
4662
|
+
|
|
4663
|
+
|
|
4664
|
+
/**
|
|
4665
|
+
* Returns whether this field is set.
|
|
4666
|
+
* @return {boolean}
|
|
4667
|
+
*/
|
|
4668
|
+
proto.loyalty.LevelTranslationResponse.prototype.hasLocale = function() {
|
|
4669
|
+
return jspb.Message.getField(this, 5) != null;
|
|
4670
|
+
};
|
|
4671
|
+
|
|
4672
|
+
|
|
4625
4673
|
|
|
4626
4674
|
|
|
4627
4675
|
|