@sniipwebmaster/loyalty-program-client-grpcweb 26.12.4665 → 26.12.4680

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.
@@ -2335,6 +2335,67 @@ proto.loyaltyprogramserviceapi.LoyaltyProgramServiceAPIServicePromiseClient.prot
2335
2335
  };
2336
2336
 
2337
2337
 
2338
+ /**
2339
+ * @const
2340
+ * @type {!grpc.web.MethodDescriptor<
2341
+ * !proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesRequest,
2342
+ * !proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesResponse>}
2343
+ */
2344
+ const methodDescriptor_LoyaltyProgramServiceAPIService_GetUsersLoyaltyAttributes = new grpc.web.MethodDescriptor(
2345
+ '/loyaltyprogramserviceapi.LoyaltyProgramServiceAPIService/GetUsersLoyaltyAttributes',
2346
+ grpc.web.MethodType.UNARY,
2347
+ proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesRequest,
2348
+ proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesResponse,
2349
+ /**
2350
+ * @param {!proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesRequest} request
2351
+ * @return {!Uint8Array}
2352
+ */
2353
+ function(request) {
2354
+ return request.serializeBinary();
2355
+ },
2356
+ proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesResponse.deserializeBinary
2357
+ );
2358
+
2359
+
2360
+ /**
2361
+ * @param {!proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesRequest} request The
2362
+ * request proto
2363
+ * @param {?Object<string, string>} metadata User defined
2364
+ * call metadata
2365
+ * @param {function(?grpc.web.RpcError, ?proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesResponse)}
2366
+ * callback The callback function(error, response)
2367
+ * @return {!grpc.web.ClientReadableStream<!proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesResponse>|undefined}
2368
+ * The XHR Node Readable Stream
2369
+ */
2370
+ proto.loyaltyprogramserviceapi.LoyaltyProgramServiceAPIServiceClient.prototype.getUsersLoyaltyAttributes =
2371
+ function(request, metadata, callback) {
2372
+ return this.client_.rpcCall(this.hostname_ +
2373
+ '/loyaltyprogramserviceapi.LoyaltyProgramServiceAPIService/GetUsersLoyaltyAttributes',
2374
+ request,
2375
+ metadata || {},
2376
+ methodDescriptor_LoyaltyProgramServiceAPIService_GetUsersLoyaltyAttributes,
2377
+ callback);
2378
+ };
2379
+
2380
+
2381
+ /**
2382
+ * @param {!proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesRequest} request The
2383
+ * request proto
2384
+ * @param {?Object<string, string>=} metadata User defined
2385
+ * call metadata
2386
+ * @return {!Promise<!proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesResponse>}
2387
+ * Promise that resolves to the response
2388
+ */
2389
+ proto.loyaltyprogramserviceapi.LoyaltyProgramServiceAPIServicePromiseClient.prototype.getUsersLoyaltyAttributes =
2390
+ function(request, metadata) {
2391
+ return this.client_.unaryCall(this.hostname_ +
2392
+ '/loyaltyprogramserviceapi.LoyaltyProgramServiceAPIService/GetUsersLoyaltyAttributes',
2393
+ request,
2394
+ metadata || {},
2395
+ methodDescriptor_LoyaltyProgramServiceAPIService_GetUsersLoyaltyAttributes);
2396
+ };
2397
+
2398
+
2338
2399
  /**
2339
2400
  * @const
2340
2401
  * @type {!grpc.web.MethodDescriptor<
@@ -51,6 +51,8 @@ goog.exportSymbol('proto.loyaltyprogramserviceapi.GetProgramListRequest', null,
51
51
  goog.exportSymbol('proto.loyaltyprogramserviceapi.GetTransactionsHistoryByMembershipIdRequest', null, global);
52
52
  goog.exportSymbol('proto.loyaltyprogramserviceapi.GetUserLoyaltyMonthlyLimitStatusRequest', null, global);
53
53
  goog.exportSymbol('proto.loyaltyprogramserviceapi.GetUserMembershipsRequest', null, global);
54
+ goog.exportSymbol('proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesRequest', null, global);
55
+ goog.exportSymbol('proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesResponse', null, global);
54
56
  goog.exportSymbol('proto.loyaltyprogramserviceapi.GuestLoyaltyOffer', null, global);
55
57
  goog.exportSymbol('proto.loyaltyprogramserviceapi.HasRewardBeenRedeemedResponse', null, global);
56
58
  goog.exportSymbol('proto.loyaltyprogramserviceapi.HypotheticalProgramEarn', null, global);
@@ -85,6 +87,7 @@ goog.exportSymbol('proto.loyaltyprogramserviceapi.SetMembershipMonthlyLimitOverr
85
87
  goog.exportSymbol('proto.loyaltyprogramserviceapi.SetUserFeeDiscountRequest', null, global);
86
88
  goog.exportSymbol('proto.loyaltyprogramserviceapi.UnLinkMembershipRequest', null, global);
87
89
  goog.exportSymbol('proto.loyaltyprogramserviceapi.UpdateStandardEarnMonthlyLimitRequest', null, global);
90
+ goog.exportSymbol('proto.loyaltyprogramserviceapi.UserLoyaltyAttributes', null, global);
88
91
  goog.exportSymbol('proto.loyaltyprogramserviceapi.UserLoyaltyMonthlyLimitStatusResponse', null, global);
89
92
  goog.exportSymbol('proto.loyaltyprogramserviceapi.ValidateMembershipRequest', null, global);
90
93
  goog.exportSymbol('proto.loyaltyprogramserviceapi.ValidateMembershipResponse', null, global);
@@ -1432,6 +1435,69 @@ if (goog.DEBUG && !COMPILED) {
1432
1435
  */
1433
1436
  proto.loyaltyprogramserviceapi.UserLoyaltyMonthlyLimitStatusResponse.displayName = 'proto.loyaltyprogramserviceapi.UserLoyaltyMonthlyLimitStatusResponse';
1434
1437
  }
1438
+ /**
1439
+ * Generated by JsPbCodeGenerator.
1440
+ * @param {Array=} opt_data Optional initial data array, typically from a
1441
+ * server response, or constructed directly in Javascript. The array is used
1442
+ * in place and becomes part of the constructed object. It is not cloned.
1443
+ * If no data is provided, the constructed object will be empty, but still
1444
+ * valid.
1445
+ * @extends {jspb.Message}
1446
+ * @constructor
1447
+ */
1448
+ proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesRequest = function(opt_data) {
1449
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesRequest.repeatedFields_, null);
1450
+ };
1451
+ goog.inherits(proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesRequest, jspb.Message);
1452
+ if (goog.DEBUG && !COMPILED) {
1453
+ /**
1454
+ * @public
1455
+ * @override
1456
+ */
1457
+ proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesRequest.displayName = 'proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesRequest';
1458
+ }
1459
+ /**
1460
+ * Generated by JsPbCodeGenerator.
1461
+ * @param {Array=} opt_data Optional initial data array, typically from a
1462
+ * server response, or constructed directly in Javascript. The array is used
1463
+ * in place and becomes part of the constructed object. It is not cloned.
1464
+ * If no data is provided, the constructed object will be empty, but still
1465
+ * valid.
1466
+ * @extends {jspb.Message}
1467
+ * @constructor
1468
+ */
1469
+ proto.loyaltyprogramserviceapi.UserLoyaltyAttributes = function(opt_data) {
1470
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.loyaltyprogramserviceapi.UserLoyaltyAttributes.repeatedFields_, null);
1471
+ };
1472
+ goog.inherits(proto.loyaltyprogramserviceapi.UserLoyaltyAttributes, jspb.Message);
1473
+ if (goog.DEBUG && !COMPILED) {
1474
+ /**
1475
+ * @public
1476
+ * @override
1477
+ */
1478
+ proto.loyaltyprogramserviceapi.UserLoyaltyAttributes.displayName = 'proto.loyaltyprogramserviceapi.UserLoyaltyAttributes';
1479
+ }
1480
+ /**
1481
+ * Generated by JsPbCodeGenerator.
1482
+ * @param {Array=} opt_data Optional initial data array, typically from a
1483
+ * server response, or constructed directly in Javascript. The array is used
1484
+ * in place and becomes part of the constructed object. It is not cloned.
1485
+ * If no data is provided, the constructed object will be empty, but still
1486
+ * valid.
1487
+ * @extends {jspb.Message}
1488
+ * @constructor
1489
+ */
1490
+ proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesResponse = function(opt_data) {
1491
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesResponse.repeatedFields_, null);
1492
+ };
1493
+ goog.inherits(proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesResponse, jspb.Message);
1494
+ if (goog.DEBUG && !COMPILED) {
1495
+ /**
1496
+ * @public
1497
+ * @override
1498
+ */
1499
+ proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesResponse.displayName = 'proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesResponse';
1500
+ }
1435
1501
  /**
1436
1502
  * Generated by JsPbCodeGenerator.
1437
1503
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -18683,6 +18749,621 @@ proto.loyaltyprogramserviceapi.UserLoyaltyMonthlyLimitStatusResponse.prototype.s
18683
18749
 
18684
18750
 
18685
18751
 
18752
+ /**
18753
+ * List of repeated fields within this message type.
18754
+ * @private {!Array<number>}
18755
+ * @const
18756
+ */
18757
+ proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesRequest.repeatedFields_ = [1];
18758
+
18759
+
18760
+
18761
+ if (jspb.Message.GENERATE_TO_OBJECT) {
18762
+ /**
18763
+ * Creates an object representation of this proto.
18764
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
18765
+ * Optional fields that are not set will be set to undefined.
18766
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
18767
+ * For the list of reserved names please see:
18768
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
18769
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
18770
+ * JSPB instance for transitional soy proto support:
18771
+ * http://goto/soy-param-migration
18772
+ * @return {!Object}
18773
+ */
18774
+ proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesRequest.prototype.toObject = function(opt_includeInstance) {
18775
+ return proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesRequest.toObject(opt_includeInstance, this);
18776
+ };
18777
+
18778
+
18779
+ /**
18780
+ * Static version of the {@see toObject} method.
18781
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
18782
+ * the JSPB instance for transitional soy proto support:
18783
+ * http://goto/soy-param-migration
18784
+ * @param {!proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesRequest} msg The msg instance to transform.
18785
+ * @return {!Object}
18786
+ * @suppress {unusedLocalVariables} f is only used for nested messages
18787
+ */
18788
+ proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesRequest.toObject = function(includeInstance, msg) {
18789
+ var f, obj = {
18790
+ useridsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
18791
+ };
18792
+
18793
+ if (includeInstance) {
18794
+ obj.$jspbMessageInstance = msg;
18795
+ }
18796
+ return obj;
18797
+ };
18798
+ }
18799
+
18800
+
18801
+ /**
18802
+ * Deserializes binary data (in protobuf wire format).
18803
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
18804
+ * @return {!proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesRequest}
18805
+ */
18806
+ proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesRequest.deserializeBinary = function(bytes) {
18807
+ var reader = new jspb.BinaryReader(bytes);
18808
+ var msg = new proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesRequest;
18809
+ return proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesRequest.deserializeBinaryFromReader(msg, reader);
18810
+ };
18811
+
18812
+
18813
+ /**
18814
+ * Deserializes binary data (in protobuf wire format) from the
18815
+ * given reader into the given message object.
18816
+ * @param {!proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesRequest} msg The message object to deserialize into.
18817
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
18818
+ * @return {!proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesRequest}
18819
+ */
18820
+ proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesRequest.deserializeBinaryFromReader = function(msg, reader) {
18821
+ while (reader.nextField()) {
18822
+ if (reader.isEndGroup()) {
18823
+ break;
18824
+ }
18825
+ var field = reader.getFieldNumber();
18826
+ switch (field) {
18827
+ case 1:
18828
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt64() : [reader.readInt64()]);
18829
+ for (var i = 0; i < values.length; i++) {
18830
+ msg.addUserids(values[i]);
18831
+ }
18832
+ break;
18833
+ default:
18834
+ reader.skipField();
18835
+ break;
18836
+ }
18837
+ }
18838
+ return msg;
18839
+ };
18840
+
18841
+
18842
+ /**
18843
+ * Serializes the message to binary data (in protobuf wire format).
18844
+ * @return {!Uint8Array}
18845
+ */
18846
+ proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesRequest.prototype.serializeBinary = function() {
18847
+ var writer = new jspb.BinaryWriter();
18848
+ proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesRequest.serializeBinaryToWriter(this, writer);
18849
+ return writer.getResultBuffer();
18850
+ };
18851
+
18852
+
18853
+ /**
18854
+ * Serializes the given message to binary data (in protobuf wire
18855
+ * format), writing to the given BinaryWriter.
18856
+ * @param {!proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesRequest} message
18857
+ * @param {!jspb.BinaryWriter} writer
18858
+ * @suppress {unusedLocalVariables} f is only used for nested messages
18859
+ */
18860
+ proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesRequest.serializeBinaryToWriter = function(message, writer) {
18861
+ var f = undefined;
18862
+ f = message.getUseridsList();
18863
+ if (f.length > 0) {
18864
+ writer.writePackedInt64(
18865
+ 1,
18866
+ f
18867
+ );
18868
+ }
18869
+ };
18870
+
18871
+
18872
+ /**
18873
+ * repeated int64 userIds = 1;
18874
+ * @return {!Array<number>}
18875
+ */
18876
+ proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesRequest.prototype.getUseridsList = function() {
18877
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
18878
+ };
18879
+
18880
+
18881
+ /**
18882
+ * @param {!Array<number>} value
18883
+ * @return {!proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesRequest} returns this
18884
+ */
18885
+ proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesRequest.prototype.setUseridsList = function(value) {
18886
+ return jspb.Message.setField(this, 1, value || []);
18887
+ };
18888
+
18889
+
18890
+ /**
18891
+ * @param {number} value
18892
+ * @param {number=} opt_index
18893
+ * @return {!proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesRequest} returns this
18894
+ */
18895
+ proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesRequest.prototype.addUserids = function(value, opt_index) {
18896
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
18897
+ };
18898
+
18899
+
18900
+ /**
18901
+ * Clears the list making it empty but non-null.
18902
+ * @return {!proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesRequest} returns this
18903
+ */
18904
+ proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesRequest.prototype.clearUseridsList = function() {
18905
+ return this.setUseridsList([]);
18906
+ };
18907
+
18908
+
18909
+
18910
+ /**
18911
+ * List of repeated fields within this message type.
18912
+ * @private {!Array<number>}
18913
+ * @const
18914
+ */
18915
+ proto.loyaltyprogramserviceapi.UserLoyaltyAttributes.repeatedFields_ = [2];
18916
+
18917
+
18918
+
18919
+ if (jspb.Message.GENERATE_TO_OBJECT) {
18920
+ /**
18921
+ * Creates an object representation of this proto.
18922
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
18923
+ * Optional fields that are not set will be set to undefined.
18924
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
18925
+ * For the list of reserved names please see:
18926
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
18927
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
18928
+ * JSPB instance for transitional soy proto support:
18929
+ * http://goto/soy-param-migration
18930
+ * @return {!Object}
18931
+ */
18932
+ proto.loyaltyprogramserviceapi.UserLoyaltyAttributes.prototype.toObject = function(opt_includeInstance) {
18933
+ return proto.loyaltyprogramserviceapi.UserLoyaltyAttributes.toObject(opt_includeInstance, this);
18934
+ };
18935
+
18936
+
18937
+ /**
18938
+ * Static version of the {@see toObject} method.
18939
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
18940
+ * the JSPB instance for transitional soy proto support:
18941
+ * http://goto/soy-param-migration
18942
+ * @param {!proto.loyaltyprogramserviceapi.UserLoyaltyAttributes} msg The msg instance to transform.
18943
+ * @return {!Object}
18944
+ * @suppress {unusedLocalVariables} f is only used for nested messages
18945
+ */
18946
+ proto.loyaltyprogramserviceapi.UserLoyaltyAttributes.toObject = function(includeInstance, msg) {
18947
+ var f, obj = {
18948
+ userid: jspb.Message.getFieldWithDefault(msg, 1, 0),
18949
+ programcodesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
18950
+ defaultprogrammonthlylimithit: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
18951
+ anyprogrammonthlylimithit: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
18952
+ };
18953
+
18954
+ if (includeInstance) {
18955
+ obj.$jspbMessageInstance = msg;
18956
+ }
18957
+ return obj;
18958
+ };
18959
+ }
18960
+
18961
+
18962
+ /**
18963
+ * Deserializes binary data (in protobuf wire format).
18964
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
18965
+ * @return {!proto.loyaltyprogramserviceapi.UserLoyaltyAttributes}
18966
+ */
18967
+ proto.loyaltyprogramserviceapi.UserLoyaltyAttributes.deserializeBinary = function(bytes) {
18968
+ var reader = new jspb.BinaryReader(bytes);
18969
+ var msg = new proto.loyaltyprogramserviceapi.UserLoyaltyAttributes;
18970
+ return proto.loyaltyprogramserviceapi.UserLoyaltyAttributes.deserializeBinaryFromReader(msg, reader);
18971
+ };
18972
+
18973
+
18974
+ /**
18975
+ * Deserializes binary data (in protobuf wire format) from the
18976
+ * given reader into the given message object.
18977
+ * @param {!proto.loyaltyprogramserviceapi.UserLoyaltyAttributes} msg The message object to deserialize into.
18978
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
18979
+ * @return {!proto.loyaltyprogramserviceapi.UserLoyaltyAttributes}
18980
+ */
18981
+ proto.loyaltyprogramserviceapi.UserLoyaltyAttributes.deserializeBinaryFromReader = function(msg, reader) {
18982
+ while (reader.nextField()) {
18983
+ if (reader.isEndGroup()) {
18984
+ break;
18985
+ }
18986
+ var field = reader.getFieldNumber();
18987
+ switch (field) {
18988
+ case 1:
18989
+ var value = /** @type {number} */ (reader.readInt64());
18990
+ msg.setUserid(value);
18991
+ break;
18992
+ case 2:
18993
+ var value = /** @type {string} */ (reader.readString());
18994
+ msg.addProgramcodes(value);
18995
+ break;
18996
+ case 3:
18997
+ var value = /** @type {boolean} */ (reader.readBool());
18998
+ msg.setDefaultprogrammonthlylimithit(value);
18999
+ break;
19000
+ case 4:
19001
+ var value = /** @type {boolean} */ (reader.readBool());
19002
+ msg.setAnyprogrammonthlylimithit(value);
19003
+ break;
19004
+ default:
19005
+ reader.skipField();
19006
+ break;
19007
+ }
19008
+ }
19009
+ return msg;
19010
+ };
19011
+
19012
+
19013
+ /**
19014
+ * Serializes the message to binary data (in protobuf wire format).
19015
+ * @return {!Uint8Array}
19016
+ */
19017
+ proto.loyaltyprogramserviceapi.UserLoyaltyAttributes.prototype.serializeBinary = function() {
19018
+ var writer = new jspb.BinaryWriter();
19019
+ proto.loyaltyprogramserviceapi.UserLoyaltyAttributes.serializeBinaryToWriter(this, writer);
19020
+ return writer.getResultBuffer();
19021
+ };
19022
+
19023
+
19024
+ /**
19025
+ * Serializes the given message to binary data (in protobuf wire
19026
+ * format), writing to the given BinaryWriter.
19027
+ * @param {!proto.loyaltyprogramserviceapi.UserLoyaltyAttributes} message
19028
+ * @param {!jspb.BinaryWriter} writer
19029
+ * @suppress {unusedLocalVariables} f is only used for nested messages
19030
+ */
19031
+ proto.loyaltyprogramserviceapi.UserLoyaltyAttributes.serializeBinaryToWriter = function(message, writer) {
19032
+ var f = undefined;
19033
+ f = message.getUserid();
19034
+ if (f !== 0) {
19035
+ writer.writeInt64(
19036
+ 1,
19037
+ f
19038
+ );
19039
+ }
19040
+ f = message.getProgramcodesList();
19041
+ if (f.length > 0) {
19042
+ writer.writeRepeatedString(
19043
+ 2,
19044
+ f
19045
+ );
19046
+ }
19047
+ f = message.getDefaultprogrammonthlylimithit();
19048
+ if (f) {
19049
+ writer.writeBool(
19050
+ 3,
19051
+ f
19052
+ );
19053
+ }
19054
+ f = message.getAnyprogrammonthlylimithit();
19055
+ if (f) {
19056
+ writer.writeBool(
19057
+ 4,
19058
+ f
19059
+ );
19060
+ }
19061
+ };
19062
+
19063
+
19064
+ /**
19065
+ * optional int64 userId = 1;
19066
+ * @return {number}
19067
+ */
19068
+ proto.loyaltyprogramserviceapi.UserLoyaltyAttributes.prototype.getUserid = function() {
19069
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
19070
+ };
19071
+
19072
+
19073
+ /**
19074
+ * @param {number} value
19075
+ * @return {!proto.loyaltyprogramserviceapi.UserLoyaltyAttributes} returns this
19076
+ */
19077
+ proto.loyaltyprogramserviceapi.UserLoyaltyAttributes.prototype.setUserid = function(value) {
19078
+ return jspb.Message.setProto3IntField(this, 1, value);
19079
+ };
19080
+
19081
+
19082
+ /**
19083
+ * repeated string programCodes = 2;
19084
+ * @return {!Array<string>}
19085
+ */
19086
+ proto.loyaltyprogramserviceapi.UserLoyaltyAttributes.prototype.getProgramcodesList = function() {
19087
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
19088
+ };
19089
+
19090
+
19091
+ /**
19092
+ * @param {!Array<string>} value
19093
+ * @return {!proto.loyaltyprogramserviceapi.UserLoyaltyAttributes} returns this
19094
+ */
19095
+ proto.loyaltyprogramserviceapi.UserLoyaltyAttributes.prototype.setProgramcodesList = function(value) {
19096
+ return jspb.Message.setField(this, 2, value || []);
19097
+ };
19098
+
19099
+
19100
+ /**
19101
+ * @param {string} value
19102
+ * @param {number=} opt_index
19103
+ * @return {!proto.loyaltyprogramserviceapi.UserLoyaltyAttributes} returns this
19104
+ */
19105
+ proto.loyaltyprogramserviceapi.UserLoyaltyAttributes.prototype.addProgramcodes = function(value, opt_index) {
19106
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
19107
+ };
19108
+
19109
+
19110
+ /**
19111
+ * Clears the list making it empty but non-null.
19112
+ * @return {!proto.loyaltyprogramserviceapi.UserLoyaltyAttributes} returns this
19113
+ */
19114
+ proto.loyaltyprogramserviceapi.UserLoyaltyAttributes.prototype.clearProgramcodesList = function() {
19115
+ return this.setProgramcodesList([]);
19116
+ };
19117
+
19118
+
19119
+ /**
19120
+ * optional bool defaultProgramMonthlyLimitHit = 3;
19121
+ * @return {boolean}
19122
+ */
19123
+ proto.loyaltyprogramserviceapi.UserLoyaltyAttributes.prototype.getDefaultprogrammonthlylimithit = function() {
19124
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
19125
+ };
19126
+
19127
+
19128
+ /**
19129
+ * @param {boolean} value
19130
+ * @return {!proto.loyaltyprogramserviceapi.UserLoyaltyAttributes} returns this
19131
+ */
19132
+ proto.loyaltyprogramserviceapi.UserLoyaltyAttributes.prototype.setDefaultprogrammonthlylimithit = function(value) {
19133
+ return jspb.Message.setProto3BooleanField(this, 3, value);
19134
+ };
19135
+
19136
+
19137
+ /**
19138
+ * optional bool anyProgramMonthlyLimitHit = 4;
19139
+ * @return {boolean}
19140
+ */
19141
+ proto.loyaltyprogramserviceapi.UserLoyaltyAttributes.prototype.getAnyprogrammonthlylimithit = function() {
19142
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
19143
+ };
19144
+
19145
+
19146
+ /**
19147
+ * @param {boolean} value
19148
+ * @return {!proto.loyaltyprogramserviceapi.UserLoyaltyAttributes} returns this
19149
+ */
19150
+ proto.loyaltyprogramserviceapi.UserLoyaltyAttributes.prototype.setAnyprogrammonthlylimithit = function(value) {
19151
+ return jspb.Message.setProto3BooleanField(this, 4, value);
19152
+ };
19153
+
19154
+
19155
+
19156
+ /**
19157
+ * List of repeated fields within this message type.
19158
+ * @private {!Array<number>}
19159
+ * @const
19160
+ */
19161
+ proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesResponse.repeatedFields_ = [2];
19162
+
19163
+
19164
+
19165
+ if (jspb.Message.GENERATE_TO_OBJECT) {
19166
+ /**
19167
+ * Creates an object representation of this proto.
19168
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
19169
+ * Optional fields that are not set will be set to undefined.
19170
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
19171
+ * For the list of reserved names please see:
19172
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
19173
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
19174
+ * JSPB instance for transitional soy proto support:
19175
+ * http://goto/soy-param-migration
19176
+ * @return {!Object}
19177
+ */
19178
+ proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesResponse.prototype.toObject = function(opt_includeInstance) {
19179
+ return proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesResponse.toObject(opt_includeInstance, this);
19180
+ };
19181
+
19182
+
19183
+ /**
19184
+ * Static version of the {@see toObject} method.
19185
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
19186
+ * the JSPB instance for transitional soy proto support:
19187
+ * http://goto/soy-param-migration
19188
+ * @param {!proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesResponse} msg The msg instance to transform.
19189
+ * @return {!Object}
19190
+ * @suppress {unusedLocalVariables} f is only used for nested messages
19191
+ */
19192
+ proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesResponse.toObject = function(includeInstance, msg) {
19193
+ var f, obj = {
19194
+ responsecode: (f = msg.getResponsecode()) && proto.loyaltyprogramserviceapi.ResponseCode.toObject(includeInstance, f),
19195
+ usersList: jspb.Message.toObjectList(msg.getUsersList(),
19196
+ proto.loyaltyprogramserviceapi.UserLoyaltyAttributes.toObject, includeInstance)
19197
+ };
19198
+
19199
+ if (includeInstance) {
19200
+ obj.$jspbMessageInstance = msg;
19201
+ }
19202
+ return obj;
19203
+ };
19204
+ }
19205
+
19206
+
19207
+ /**
19208
+ * Deserializes binary data (in protobuf wire format).
19209
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
19210
+ * @return {!proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesResponse}
19211
+ */
19212
+ proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesResponse.deserializeBinary = function(bytes) {
19213
+ var reader = new jspb.BinaryReader(bytes);
19214
+ var msg = new proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesResponse;
19215
+ return proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesResponse.deserializeBinaryFromReader(msg, reader);
19216
+ };
19217
+
19218
+
19219
+ /**
19220
+ * Deserializes binary data (in protobuf wire format) from the
19221
+ * given reader into the given message object.
19222
+ * @param {!proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesResponse} msg The message object to deserialize into.
19223
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
19224
+ * @return {!proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesResponse}
19225
+ */
19226
+ proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesResponse.deserializeBinaryFromReader = function(msg, reader) {
19227
+ while (reader.nextField()) {
19228
+ if (reader.isEndGroup()) {
19229
+ break;
19230
+ }
19231
+ var field = reader.getFieldNumber();
19232
+ switch (field) {
19233
+ case 1:
19234
+ var value = new proto.loyaltyprogramserviceapi.ResponseCode;
19235
+ reader.readMessage(value,proto.loyaltyprogramserviceapi.ResponseCode.deserializeBinaryFromReader);
19236
+ msg.setResponsecode(value);
19237
+ break;
19238
+ case 2:
19239
+ var value = new proto.loyaltyprogramserviceapi.UserLoyaltyAttributes;
19240
+ reader.readMessage(value,proto.loyaltyprogramserviceapi.UserLoyaltyAttributes.deserializeBinaryFromReader);
19241
+ msg.addUsers(value);
19242
+ break;
19243
+ default:
19244
+ reader.skipField();
19245
+ break;
19246
+ }
19247
+ }
19248
+ return msg;
19249
+ };
19250
+
19251
+
19252
+ /**
19253
+ * Serializes the message to binary data (in protobuf wire format).
19254
+ * @return {!Uint8Array}
19255
+ */
19256
+ proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesResponse.prototype.serializeBinary = function() {
19257
+ var writer = new jspb.BinaryWriter();
19258
+ proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesResponse.serializeBinaryToWriter(this, writer);
19259
+ return writer.getResultBuffer();
19260
+ };
19261
+
19262
+
19263
+ /**
19264
+ * Serializes the given message to binary data (in protobuf wire
19265
+ * format), writing to the given BinaryWriter.
19266
+ * @param {!proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesResponse} message
19267
+ * @param {!jspb.BinaryWriter} writer
19268
+ * @suppress {unusedLocalVariables} f is only used for nested messages
19269
+ */
19270
+ proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesResponse.serializeBinaryToWriter = function(message, writer) {
19271
+ var f = undefined;
19272
+ f = message.getResponsecode();
19273
+ if (f != null) {
19274
+ writer.writeMessage(
19275
+ 1,
19276
+ f,
19277
+ proto.loyaltyprogramserviceapi.ResponseCode.serializeBinaryToWriter
19278
+ );
19279
+ }
19280
+ f = message.getUsersList();
19281
+ if (f.length > 0) {
19282
+ writer.writeRepeatedMessage(
19283
+ 2,
19284
+ f,
19285
+ proto.loyaltyprogramserviceapi.UserLoyaltyAttributes.serializeBinaryToWriter
19286
+ );
19287
+ }
19288
+ };
19289
+
19290
+
19291
+ /**
19292
+ * optional ResponseCode responseCode = 1;
19293
+ * @return {?proto.loyaltyprogramserviceapi.ResponseCode}
19294
+ */
19295
+ proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesResponse.prototype.getResponsecode = function() {
19296
+ return /** @type{?proto.loyaltyprogramserviceapi.ResponseCode} */ (
19297
+ jspb.Message.getWrapperField(this, proto.loyaltyprogramserviceapi.ResponseCode, 1));
19298
+ };
19299
+
19300
+
19301
+ /**
19302
+ * @param {?proto.loyaltyprogramserviceapi.ResponseCode|undefined} value
19303
+ * @return {!proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesResponse} returns this
19304
+ */
19305
+ proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesResponse.prototype.setResponsecode = function(value) {
19306
+ return jspb.Message.setWrapperField(this, 1, value);
19307
+ };
19308
+
19309
+
19310
+ /**
19311
+ * Clears the message field making it undefined.
19312
+ * @return {!proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesResponse} returns this
19313
+ */
19314
+ proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesResponse.prototype.clearResponsecode = function() {
19315
+ return this.setResponsecode(undefined);
19316
+ };
19317
+
19318
+
19319
+ /**
19320
+ * Returns whether this field is set.
19321
+ * @return {boolean}
19322
+ */
19323
+ proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesResponse.prototype.hasResponsecode = function() {
19324
+ return jspb.Message.getField(this, 1) != null;
19325
+ };
19326
+
19327
+
19328
+ /**
19329
+ * repeated UserLoyaltyAttributes users = 2;
19330
+ * @return {!Array<!proto.loyaltyprogramserviceapi.UserLoyaltyAttributes>}
19331
+ */
19332
+ proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesResponse.prototype.getUsersList = function() {
19333
+ return /** @type{!Array<!proto.loyaltyprogramserviceapi.UserLoyaltyAttributes>} */ (
19334
+ jspb.Message.getRepeatedWrapperField(this, proto.loyaltyprogramserviceapi.UserLoyaltyAttributes, 2));
19335
+ };
19336
+
19337
+
19338
+ /**
19339
+ * @param {!Array<!proto.loyaltyprogramserviceapi.UserLoyaltyAttributes>} value
19340
+ * @return {!proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesResponse} returns this
19341
+ */
19342
+ proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesResponse.prototype.setUsersList = function(value) {
19343
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
19344
+ };
19345
+
19346
+
19347
+ /**
19348
+ * @param {!proto.loyaltyprogramserviceapi.UserLoyaltyAttributes=} opt_value
19349
+ * @param {number=} opt_index
19350
+ * @return {!proto.loyaltyprogramserviceapi.UserLoyaltyAttributes}
19351
+ */
19352
+ proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesResponse.prototype.addUsers = function(opt_value, opt_index) {
19353
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.loyaltyprogramserviceapi.UserLoyaltyAttributes, opt_index);
19354
+ };
19355
+
19356
+
19357
+ /**
19358
+ * Clears the list making it empty but non-null.
19359
+ * @return {!proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesResponse} returns this
19360
+ */
19361
+ proto.loyaltyprogramserviceapi.GetUsersLoyaltyAttributesResponse.prototype.clearUsersList = function() {
19362
+ return this.setUsersList([]);
19363
+ };
19364
+
19365
+
19366
+
18686
19367
 
18687
19368
 
18688
19369
  if (jspb.Message.GENERATE_TO_OBJECT) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/loyalty-program-client-grpcweb",
3
- "version": "26.12.4665",
3
+ "version": "26.12.4680",
4
4
  "description": "loyalty-program-client-grpcweb",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",