@sniipwebmaster/loyalty-program-client-grpcweb-ts 25.1.1613 → 25.1.1623

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.
@@ -470,6 +470,49 @@ export class LoyaltyProgramServiceAPIServiceClient {
470
470
  this.methodDescriptorGetProgramList);
471
471
  }
472
472
 
473
+ methodDescriptorGetProgramListInternal = new grpcWeb.MethodDescriptor(
474
+ '/loyaltyprogramserviceapi.LoyaltyProgramServiceAPIService/GetProgramListInternal',
475
+ grpcWeb.MethodType.UNARY,
476
+ service_pb.GetProgramListInternalRequest,
477
+ service_pb.ProgramDetailsResponse,
478
+ (request: service_pb.GetProgramListInternalRequest) => {
479
+ return request.serializeBinary();
480
+ },
481
+ service_pb.ProgramDetailsResponse.deserializeBinary
482
+ );
483
+
484
+ getProgramListInternal(
485
+ request: service_pb.GetProgramListInternalRequest,
486
+ metadata?: grpcWeb.Metadata | null): Promise<service_pb.ProgramDetailsResponse>;
487
+
488
+ getProgramListInternal(
489
+ request: service_pb.GetProgramListInternalRequest,
490
+ metadata: grpcWeb.Metadata | null,
491
+ callback: (err: grpcWeb.RpcError,
492
+ response: service_pb.ProgramDetailsResponse) => void): grpcWeb.ClientReadableStream<service_pb.ProgramDetailsResponse>;
493
+
494
+ getProgramListInternal(
495
+ request: service_pb.GetProgramListInternalRequest,
496
+ metadata?: grpcWeb.Metadata | null,
497
+ callback?: (err: grpcWeb.RpcError,
498
+ response: service_pb.ProgramDetailsResponse) => void) {
499
+ if (callback !== undefined) {
500
+ return this.client_.rpcCall(
501
+ this.hostname_ +
502
+ '/loyaltyprogramserviceapi.LoyaltyProgramServiceAPIService/GetProgramListInternal',
503
+ request,
504
+ metadata || {},
505
+ this.methodDescriptorGetProgramListInternal,
506
+ callback);
507
+ }
508
+ return this.client_.unaryCall(
509
+ this.hostname_ +
510
+ '/loyaltyprogramserviceapi.LoyaltyProgramServiceAPIService/GetProgramListInternal',
511
+ request,
512
+ metadata || {},
513
+ this.methodDescriptorGetProgramListInternal);
514
+ }
515
+
473
516
  methodDescriptorGetTransactionsHistoryByMembershipId = new grpcWeb.MethodDescriptor(
474
517
  '/loyaltyprogramserviceapi.LoyaltyProgramServiceAPIService/GetTransactionsHistoryByMembershipId',
475
518
  grpcWeb.MethodType.UNARY,
@@ -1061,3 +1061,21 @@ export namespace ValidateMembershipResponse {
1061
1061
  }
1062
1062
  }
1063
1063
 
1064
+ export class GetProgramListInternalRequest extends jspb.Message {
1065
+ getAppaccounttype(): string;
1066
+ setAppaccounttype(value: string): GetProgramListInternalRequest;
1067
+
1068
+ serializeBinary(): Uint8Array;
1069
+ toObject(includeInstance?: boolean): GetProgramListInternalRequest.AsObject;
1070
+ static toObject(includeInstance: boolean, msg: GetProgramListInternalRequest): GetProgramListInternalRequest.AsObject;
1071
+ static serializeBinaryToWriter(message: GetProgramListInternalRequest, writer: jspb.BinaryWriter): void;
1072
+ static deserializeBinary(bytes: Uint8Array): GetProgramListInternalRequest;
1073
+ static deserializeBinaryFromReader(message: GetProgramListInternalRequest, reader: jspb.BinaryReader): GetProgramListInternalRequest;
1074
+ }
1075
+
1076
+ export namespace GetProgramListInternalRequest {
1077
+ export type AsObject = {
1078
+ appaccounttype: string,
1079
+ }
1080
+ }
1081
+
@@ -31,6 +31,7 @@ goog.exportSymbol('proto.loyaltyprogramserviceapi.CreateProgramRequest', null, g
31
31
  goog.exportSymbol('proto.loyaltyprogramserviceapi.CreateProgramRequest.CreateProgramRequestMembershipNumberType', null, global);
32
32
  goog.exportSymbol('proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest', null, global);
33
33
  goog.exportSymbol('proto.loyaltyprogramserviceapi.GetMembershipByIdRequest', null, global);
34
+ goog.exportSymbol('proto.loyaltyprogramserviceapi.GetProgramListInternalRequest', null, global);
34
35
  goog.exportSymbol('proto.loyaltyprogramserviceapi.GetTransactionsHistoryByMembershipIdRequest', null, global);
35
36
  goog.exportSymbol('proto.loyaltyprogramserviceapi.GetUserMembershipsRequest', null, global);
36
37
  goog.exportSymbol('proto.loyaltyprogramserviceapi.HasRewardBeenRedeemedResponse', null, global);
@@ -769,6 +770,27 @@ if (goog.DEBUG && !COMPILED) {
769
770
  */
770
771
  proto.loyaltyprogramserviceapi.ValidateMembershipResponse.displayName = 'proto.loyaltyprogramserviceapi.ValidateMembershipResponse';
771
772
  }
773
+ /**
774
+ * Generated by JsPbCodeGenerator.
775
+ * @param {Array=} opt_data Optional initial data array, typically from a
776
+ * server response, or constructed directly in Javascript. The array is used
777
+ * in place and becomes part of the constructed object. It is not cloned.
778
+ * If no data is provided, the constructed object will be empty, but still
779
+ * valid.
780
+ * @extends {jspb.Message}
781
+ * @constructor
782
+ */
783
+ proto.loyaltyprogramserviceapi.GetProgramListInternalRequest = function(opt_data) {
784
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
785
+ };
786
+ goog.inherits(proto.loyaltyprogramserviceapi.GetProgramListInternalRequest, jspb.Message);
787
+ if (goog.DEBUG && !COMPILED) {
788
+ /**
789
+ * @public
790
+ * @override
791
+ */
792
+ proto.loyaltyprogramserviceapi.GetProgramListInternalRequest.displayName = 'proto.loyaltyprogramserviceapi.GetProgramListInternalRequest';
793
+ }
772
794
 
773
795
  /**
774
796
  * List of repeated fields within this message type.
@@ -8647,4 +8669,134 @@ proto.loyaltyprogramserviceapi.ValidateMembershipResponse.prototype.setValidated
8647
8669
  };
8648
8670
 
8649
8671
 
8672
+
8673
+
8674
+
8675
+ if (jspb.Message.GENERATE_TO_OBJECT) {
8676
+ /**
8677
+ * Creates an object representation of this proto.
8678
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
8679
+ * Optional fields that are not set will be set to undefined.
8680
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8681
+ * For the list of reserved names please see:
8682
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
8683
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
8684
+ * JSPB instance for transitional soy proto support:
8685
+ * http://goto/soy-param-migration
8686
+ * @return {!Object}
8687
+ */
8688
+ proto.loyaltyprogramserviceapi.GetProgramListInternalRequest.prototype.toObject = function(opt_includeInstance) {
8689
+ return proto.loyaltyprogramserviceapi.GetProgramListInternalRequest.toObject(opt_includeInstance, this);
8690
+ };
8691
+
8692
+
8693
+ /**
8694
+ * Static version of the {@see toObject} method.
8695
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8696
+ * the JSPB instance for transitional soy proto support:
8697
+ * http://goto/soy-param-migration
8698
+ * @param {!proto.loyaltyprogramserviceapi.GetProgramListInternalRequest} msg The msg instance to transform.
8699
+ * @return {!Object}
8700
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8701
+ */
8702
+ proto.loyaltyprogramserviceapi.GetProgramListInternalRequest.toObject = function(includeInstance, msg) {
8703
+ var f, obj = {
8704
+ appaccounttype: jspb.Message.getFieldWithDefault(msg, 1, "")
8705
+ };
8706
+
8707
+ if (includeInstance) {
8708
+ obj.$jspbMessageInstance = msg;
8709
+ }
8710
+ return obj;
8711
+ };
8712
+ }
8713
+
8714
+
8715
+ /**
8716
+ * Deserializes binary data (in protobuf wire format).
8717
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
8718
+ * @return {!proto.loyaltyprogramserviceapi.GetProgramListInternalRequest}
8719
+ */
8720
+ proto.loyaltyprogramserviceapi.GetProgramListInternalRequest.deserializeBinary = function(bytes) {
8721
+ var reader = new jspb.BinaryReader(bytes);
8722
+ var msg = new proto.loyaltyprogramserviceapi.GetProgramListInternalRequest;
8723
+ return proto.loyaltyprogramserviceapi.GetProgramListInternalRequest.deserializeBinaryFromReader(msg, reader);
8724
+ };
8725
+
8726
+
8727
+ /**
8728
+ * Deserializes binary data (in protobuf wire format) from the
8729
+ * given reader into the given message object.
8730
+ * @param {!proto.loyaltyprogramserviceapi.GetProgramListInternalRequest} msg The message object to deserialize into.
8731
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8732
+ * @return {!proto.loyaltyprogramserviceapi.GetProgramListInternalRequest}
8733
+ */
8734
+ proto.loyaltyprogramserviceapi.GetProgramListInternalRequest.deserializeBinaryFromReader = function(msg, reader) {
8735
+ while (reader.nextField()) {
8736
+ if (reader.isEndGroup()) {
8737
+ break;
8738
+ }
8739
+ var field = reader.getFieldNumber();
8740
+ switch (field) {
8741
+ case 1:
8742
+ var value = /** @type {string} */ (reader.readString());
8743
+ msg.setAppaccounttype(value);
8744
+ break;
8745
+ default:
8746
+ reader.skipField();
8747
+ break;
8748
+ }
8749
+ }
8750
+ return msg;
8751
+ };
8752
+
8753
+
8754
+ /**
8755
+ * Serializes the message to binary data (in protobuf wire format).
8756
+ * @return {!Uint8Array}
8757
+ */
8758
+ proto.loyaltyprogramserviceapi.GetProgramListInternalRequest.prototype.serializeBinary = function() {
8759
+ var writer = new jspb.BinaryWriter();
8760
+ proto.loyaltyprogramserviceapi.GetProgramListInternalRequest.serializeBinaryToWriter(this, writer);
8761
+ return writer.getResultBuffer();
8762
+ };
8763
+
8764
+
8765
+ /**
8766
+ * Serializes the given message to binary data (in protobuf wire
8767
+ * format), writing to the given BinaryWriter.
8768
+ * @param {!proto.loyaltyprogramserviceapi.GetProgramListInternalRequest} message
8769
+ * @param {!jspb.BinaryWriter} writer
8770
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8771
+ */
8772
+ proto.loyaltyprogramserviceapi.GetProgramListInternalRequest.serializeBinaryToWriter = function(message, writer) {
8773
+ var f = undefined;
8774
+ f = message.getAppaccounttype();
8775
+ if (f.length > 0) {
8776
+ writer.writeString(
8777
+ 1,
8778
+ f
8779
+ );
8780
+ }
8781
+ };
8782
+
8783
+
8784
+ /**
8785
+ * optional string appAccountType = 1;
8786
+ * @return {string}
8787
+ */
8788
+ proto.loyaltyprogramserviceapi.GetProgramListInternalRequest.prototype.getAppaccounttype = function() {
8789
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
8790
+ };
8791
+
8792
+
8793
+ /**
8794
+ * @param {string} value
8795
+ * @return {!proto.loyaltyprogramserviceapi.GetProgramListInternalRequest} returns this
8796
+ */
8797
+ proto.loyaltyprogramserviceapi.GetProgramListInternalRequest.prototype.setAppaccounttype = function(value) {
8798
+ return jspb.Message.setProto3StringField(this, 1, value);
8799
+ };
8800
+
8801
+
8650
8802
  goog.object.extend(exports, proto.loyaltyprogramserviceapi);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/loyalty-program-client-grpcweb-ts",
3
- "version": "25.1.1613",
3
+ "version": "25.1.1623",
4
4
  "description": "loyalty-program-client-grpcweb-ts",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",