@headspace/protos-events 1.776.0 → 1.777.0

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/lib/index.d.ts CHANGED
@@ -55888,6 +55888,108 @@ export class SubscriptionCancelled implements ISubscriptionCancelled {
55888
55888
  public toJSON(): { [k: string]: any };
55889
55889
  }
55890
55890
 
55891
+ /** Properties of a SubscriptionCancellationTicketCreated. */
55892
+ export interface ISubscriptionCancellationTicketCreated {
55893
+
55894
+ /** SubscriptionCancellationTicketCreated hsUserId */
55895
+ hsUserId?: (string|null);
55896
+
55897
+ /** SubscriptionCancellationTicketCreated cancellationReasonId */
55898
+ cancellationReasonId?: (number|Long|null);
55899
+
55900
+ /** SubscriptionCancellationTicketCreated userComment */
55901
+ userComment?: (string|null);
55902
+ }
55903
+
55904
+ /** Represents a SubscriptionCancellationTicketCreated. */
55905
+ export class SubscriptionCancellationTicketCreated implements ISubscriptionCancellationTicketCreated {
55906
+
55907
+ /**
55908
+ * Constructs a new SubscriptionCancellationTicketCreated.
55909
+ * @param [properties] Properties to set
55910
+ */
55911
+ constructor(properties?: ISubscriptionCancellationTicketCreated);
55912
+
55913
+ /** SubscriptionCancellationTicketCreated hsUserId. */
55914
+ public hsUserId: string;
55915
+
55916
+ /** SubscriptionCancellationTicketCreated cancellationReasonId. */
55917
+ public cancellationReasonId: (number|Long);
55918
+
55919
+ /** SubscriptionCancellationTicketCreated userComment. */
55920
+ public userComment: string;
55921
+
55922
+ /**
55923
+ * Creates a new SubscriptionCancellationTicketCreated instance using the specified properties.
55924
+ * @param [properties] Properties to set
55925
+ * @returns SubscriptionCancellationTicketCreated instance
55926
+ */
55927
+ public static create(properties?: ISubscriptionCancellationTicketCreated): SubscriptionCancellationTicketCreated;
55928
+
55929
+ /**
55930
+ * Encodes the specified SubscriptionCancellationTicketCreated message. Does not implicitly {@link SubscriptionCancellationTicketCreated.verify|verify} messages.
55931
+ * @param message SubscriptionCancellationTicketCreated message or plain object to encode
55932
+ * @param [writer] Writer to encode to
55933
+ * @returns Writer
55934
+ */
55935
+ public static encode(message: ISubscriptionCancellationTicketCreated, writer?: $protobuf.Writer): $protobuf.Writer;
55936
+
55937
+ /**
55938
+ * Encodes the specified SubscriptionCancellationTicketCreated message, length delimited. Does not implicitly {@link SubscriptionCancellationTicketCreated.verify|verify} messages.
55939
+ * @param message SubscriptionCancellationTicketCreated message or plain object to encode
55940
+ * @param [writer] Writer to encode to
55941
+ * @returns Writer
55942
+ */
55943
+ public static encodeDelimited(message: ISubscriptionCancellationTicketCreated, writer?: $protobuf.Writer): $protobuf.Writer;
55944
+
55945
+ /**
55946
+ * Decodes a SubscriptionCancellationTicketCreated message from the specified reader or buffer.
55947
+ * @param reader Reader or buffer to decode from
55948
+ * @param [length] Message length if known beforehand
55949
+ * @returns SubscriptionCancellationTicketCreated
55950
+ * @throws {Error} If the payload is not a reader or valid buffer
55951
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
55952
+ */
55953
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SubscriptionCancellationTicketCreated;
55954
+
55955
+ /**
55956
+ * Decodes a SubscriptionCancellationTicketCreated message from the specified reader or buffer, length delimited.
55957
+ * @param reader Reader or buffer to decode from
55958
+ * @returns SubscriptionCancellationTicketCreated
55959
+ * @throws {Error} If the payload is not a reader or valid buffer
55960
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
55961
+ */
55962
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SubscriptionCancellationTicketCreated;
55963
+
55964
+ /**
55965
+ * Verifies a SubscriptionCancellationTicketCreated message.
55966
+ * @param message Plain object to verify
55967
+ * @returns `null` if valid, otherwise the reason why it is not
55968
+ */
55969
+ public static verify(message: { [k: string]: any }): (string|null);
55970
+
55971
+ /**
55972
+ * Creates a SubscriptionCancellationTicketCreated message from a plain object. Also converts values to their respective internal types.
55973
+ * @param object Plain object
55974
+ * @returns SubscriptionCancellationTicketCreated
55975
+ */
55976
+ public static fromObject(object: { [k: string]: any }): SubscriptionCancellationTicketCreated;
55977
+
55978
+ /**
55979
+ * Creates a plain object from a SubscriptionCancellationTicketCreated message. Also converts values to other types if specified.
55980
+ * @param message SubscriptionCancellationTicketCreated
55981
+ * @param [options] Conversion options
55982
+ * @returns Plain object
55983
+ */
55984
+ public static toObject(message: SubscriptionCancellationTicketCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
55985
+
55986
+ /**
55987
+ * Converts this SubscriptionCancellationTicketCreated to JSON.
55988
+ * @returns JSON object
55989
+ */
55990
+ public toJSON(): { [k: string]: any };
55991
+ }
55992
+
55891
55993
  /** Properties of a SubscriptionRenewed. */
55892
55994
  export interface ISubscriptionRenewed {
55893
55995
 
package/lib/index.js CHANGED
@@ -158448,6 +158448,252 @@ $root.SubscriptionCancelled = (function() {
158448
158448
  return SubscriptionCancelled;
158449
158449
  })();
158450
158450
 
158451
+ $root.SubscriptionCancellationTicketCreated = (function() {
158452
+
158453
+ /**
158454
+ * Properties of a SubscriptionCancellationTicketCreated.
158455
+ * @name ISubscriptionCancellationTicketCreated
158456
+ * @interface ISubscriptionCancellationTicketCreated
158457
+ * @property {string|null} [hsUserId] SubscriptionCancellationTicketCreated hsUserId
158458
+ * @property {number|Long|null} [cancellationReasonId] SubscriptionCancellationTicketCreated cancellationReasonId
158459
+ * @property {string|null} [userComment] SubscriptionCancellationTicketCreated userComment
158460
+ */
158461
+
158462
+ /**
158463
+ * Constructs a new SubscriptionCancellationTicketCreated.
158464
+ * @name SubscriptionCancellationTicketCreated
158465
+ * @classdesc Represents a SubscriptionCancellationTicketCreated.
158466
+ * @implements ISubscriptionCancellationTicketCreated
158467
+ * @constructor
158468
+ * @param {ISubscriptionCancellationTicketCreated=} [properties] Properties to set
158469
+ */
158470
+ function SubscriptionCancellationTicketCreated(properties) {
158471
+ if (properties)
158472
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
158473
+ if (properties[keys[i]] != null)
158474
+ this[keys[i]] = properties[keys[i]];
158475
+ }
158476
+
158477
+ /**
158478
+ * SubscriptionCancellationTicketCreated hsUserId.
158479
+ * @member {string} hsUserId
158480
+ * @memberof SubscriptionCancellationTicketCreated
158481
+ * @instance
158482
+ */
158483
+ SubscriptionCancellationTicketCreated.prototype.hsUserId = "";
158484
+
158485
+ /**
158486
+ * SubscriptionCancellationTicketCreated cancellationReasonId.
158487
+ * @member {number|Long} cancellationReasonId
158488
+ * @memberof SubscriptionCancellationTicketCreated
158489
+ * @instance
158490
+ */
158491
+ SubscriptionCancellationTicketCreated.prototype.cancellationReasonId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
158492
+
158493
+ /**
158494
+ * SubscriptionCancellationTicketCreated userComment.
158495
+ * @member {string} userComment
158496
+ * @memberof SubscriptionCancellationTicketCreated
158497
+ * @instance
158498
+ */
158499
+ SubscriptionCancellationTicketCreated.prototype.userComment = "";
158500
+
158501
+ /**
158502
+ * Creates a new SubscriptionCancellationTicketCreated instance using the specified properties.
158503
+ * @function create
158504
+ * @memberof SubscriptionCancellationTicketCreated
158505
+ * @static
158506
+ * @param {ISubscriptionCancellationTicketCreated=} [properties] Properties to set
158507
+ * @returns {SubscriptionCancellationTicketCreated} SubscriptionCancellationTicketCreated instance
158508
+ */
158509
+ SubscriptionCancellationTicketCreated.create = function create(properties) {
158510
+ return new SubscriptionCancellationTicketCreated(properties);
158511
+ };
158512
+
158513
+ /**
158514
+ * Encodes the specified SubscriptionCancellationTicketCreated message. Does not implicitly {@link SubscriptionCancellationTicketCreated.verify|verify} messages.
158515
+ * @function encode
158516
+ * @memberof SubscriptionCancellationTicketCreated
158517
+ * @static
158518
+ * @param {ISubscriptionCancellationTicketCreated} message SubscriptionCancellationTicketCreated message or plain object to encode
158519
+ * @param {$protobuf.Writer} [writer] Writer to encode to
158520
+ * @returns {$protobuf.Writer} Writer
158521
+ */
158522
+ SubscriptionCancellationTicketCreated.encode = function encode(message, writer) {
158523
+ if (!writer)
158524
+ writer = $Writer.create();
158525
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
158526
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
158527
+ if (message.cancellationReasonId != null && message.hasOwnProperty("cancellationReasonId"))
158528
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.cancellationReasonId);
158529
+ if (message.userComment != null && message.hasOwnProperty("userComment"))
158530
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.userComment);
158531
+ return writer;
158532
+ };
158533
+
158534
+ /**
158535
+ * Encodes the specified SubscriptionCancellationTicketCreated message, length delimited. Does not implicitly {@link SubscriptionCancellationTicketCreated.verify|verify} messages.
158536
+ * @function encodeDelimited
158537
+ * @memberof SubscriptionCancellationTicketCreated
158538
+ * @static
158539
+ * @param {ISubscriptionCancellationTicketCreated} message SubscriptionCancellationTicketCreated message or plain object to encode
158540
+ * @param {$protobuf.Writer} [writer] Writer to encode to
158541
+ * @returns {$protobuf.Writer} Writer
158542
+ */
158543
+ SubscriptionCancellationTicketCreated.encodeDelimited = function encodeDelimited(message, writer) {
158544
+ return this.encode(message, writer).ldelim();
158545
+ };
158546
+
158547
+ /**
158548
+ * Decodes a SubscriptionCancellationTicketCreated message from the specified reader or buffer.
158549
+ * @function decode
158550
+ * @memberof SubscriptionCancellationTicketCreated
158551
+ * @static
158552
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
158553
+ * @param {number} [length] Message length if known beforehand
158554
+ * @returns {SubscriptionCancellationTicketCreated} SubscriptionCancellationTicketCreated
158555
+ * @throws {Error} If the payload is not a reader or valid buffer
158556
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
158557
+ */
158558
+ SubscriptionCancellationTicketCreated.decode = function decode(reader, length) {
158559
+ if (!(reader instanceof $Reader))
158560
+ reader = $Reader.create(reader);
158561
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SubscriptionCancellationTicketCreated();
158562
+ while (reader.pos < end) {
158563
+ var tag = reader.uint32();
158564
+ switch (tag >>> 3) {
158565
+ case 1:
158566
+ message.hsUserId = reader.string();
158567
+ break;
158568
+ case 2:
158569
+ message.cancellationReasonId = reader.uint64();
158570
+ break;
158571
+ case 3:
158572
+ message.userComment = reader.string();
158573
+ break;
158574
+ default:
158575
+ reader.skipType(tag & 7);
158576
+ break;
158577
+ }
158578
+ }
158579
+ return message;
158580
+ };
158581
+
158582
+ /**
158583
+ * Decodes a SubscriptionCancellationTicketCreated message from the specified reader or buffer, length delimited.
158584
+ * @function decodeDelimited
158585
+ * @memberof SubscriptionCancellationTicketCreated
158586
+ * @static
158587
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
158588
+ * @returns {SubscriptionCancellationTicketCreated} SubscriptionCancellationTicketCreated
158589
+ * @throws {Error} If the payload is not a reader or valid buffer
158590
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
158591
+ */
158592
+ SubscriptionCancellationTicketCreated.decodeDelimited = function decodeDelimited(reader) {
158593
+ if (!(reader instanceof $Reader))
158594
+ reader = new $Reader(reader);
158595
+ return this.decode(reader, reader.uint32());
158596
+ };
158597
+
158598
+ /**
158599
+ * Verifies a SubscriptionCancellationTicketCreated message.
158600
+ * @function verify
158601
+ * @memberof SubscriptionCancellationTicketCreated
158602
+ * @static
158603
+ * @param {Object.<string,*>} message Plain object to verify
158604
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
158605
+ */
158606
+ SubscriptionCancellationTicketCreated.verify = function verify(message) {
158607
+ if (typeof message !== "object" || message === null)
158608
+ return "object expected";
158609
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
158610
+ if (!$util.isString(message.hsUserId))
158611
+ return "hsUserId: string expected";
158612
+ if (message.cancellationReasonId != null && message.hasOwnProperty("cancellationReasonId"))
158613
+ if (!$util.isInteger(message.cancellationReasonId) && !(message.cancellationReasonId && $util.isInteger(message.cancellationReasonId.low) && $util.isInteger(message.cancellationReasonId.high)))
158614
+ return "cancellationReasonId: integer|Long expected";
158615
+ if (message.userComment != null && message.hasOwnProperty("userComment"))
158616
+ if (!$util.isString(message.userComment))
158617
+ return "userComment: string expected";
158618
+ return null;
158619
+ };
158620
+
158621
+ /**
158622
+ * Creates a SubscriptionCancellationTicketCreated message from a plain object. Also converts values to their respective internal types.
158623
+ * @function fromObject
158624
+ * @memberof SubscriptionCancellationTicketCreated
158625
+ * @static
158626
+ * @param {Object.<string,*>} object Plain object
158627
+ * @returns {SubscriptionCancellationTicketCreated} SubscriptionCancellationTicketCreated
158628
+ */
158629
+ SubscriptionCancellationTicketCreated.fromObject = function fromObject(object) {
158630
+ if (object instanceof $root.SubscriptionCancellationTicketCreated)
158631
+ return object;
158632
+ var message = new $root.SubscriptionCancellationTicketCreated();
158633
+ if (object.hsUserId != null)
158634
+ message.hsUserId = String(object.hsUserId);
158635
+ if (object.cancellationReasonId != null)
158636
+ if ($util.Long)
158637
+ (message.cancellationReasonId = $util.Long.fromValue(object.cancellationReasonId)).unsigned = true;
158638
+ else if (typeof object.cancellationReasonId === "string")
158639
+ message.cancellationReasonId = parseInt(object.cancellationReasonId, 10);
158640
+ else if (typeof object.cancellationReasonId === "number")
158641
+ message.cancellationReasonId = object.cancellationReasonId;
158642
+ else if (typeof object.cancellationReasonId === "object")
158643
+ message.cancellationReasonId = new $util.LongBits(object.cancellationReasonId.low >>> 0, object.cancellationReasonId.high >>> 0).toNumber(true);
158644
+ if (object.userComment != null)
158645
+ message.userComment = String(object.userComment);
158646
+ return message;
158647
+ };
158648
+
158649
+ /**
158650
+ * Creates a plain object from a SubscriptionCancellationTicketCreated message. Also converts values to other types if specified.
158651
+ * @function toObject
158652
+ * @memberof SubscriptionCancellationTicketCreated
158653
+ * @static
158654
+ * @param {SubscriptionCancellationTicketCreated} message SubscriptionCancellationTicketCreated
158655
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
158656
+ * @returns {Object.<string,*>} Plain object
158657
+ */
158658
+ SubscriptionCancellationTicketCreated.toObject = function toObject(message, options) {
158659
+ if (!options)
158660
+ options = {};
158661
+ var object = {};
158662
+ if (options.defaults) {
158663
+ object.hsUserId = "";
158664
+ if ($util.Long) {
158665
+ var long = new $util.Long(0, 0, true);
158666
+ object.cancellationReasonId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
158667
+ } else
158668
+ object.cancellationReasonId = options.longs === String ? "0" : 0;
158669
+ object.userComment = "";
158670
+ }
158671
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
158672
+ object.hsUserId = message.hsUserId;
158673
+ if (message.cancellationReasonId != null && message.hasOwnProperty("cancellationReasonId"))
158674
+ if (typeof message.cancellationReasonId === "number")
158675
+ object.cancellationReasonId = options.longs === String ? String(message.cancellationReasonId) : message.cancellationReasonId;
158676
+ else
158677
+ object.cancellationReasonId = options.longs === String ? $util.Long.prototype.toString.call(message.cancellationReasonId) : options.longs === Number ? new $util.LongBits(message.cancellationReasonId.low >>> 0, message.cancellationReasonId.high >>> 0).toNumber(true) : message.cancellationReasonId;
158678
+ if (message.userComment != null && message.hasOwnProperty("userComment"))
158679
+ object.userComment = message.userComment;
158680
+ return object;
158681
+ };
158682
+
158683
+ /**
158684
+ * Converts this SubscriptionCancellationTicketCreated to JSON.
158685
+ * @function toJSON
158686
+ * @memberof SubscriptionCancellationTicketCreated
158687
+ * @instance
158688
+ * @returns {Object.<string,*>} JSON object
158689
+ */
158690
+ SubscriptionCancellationTicketCreated.prototype.toJSON = function toJSON() {
158691
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
158692
+ };
158693
+
158694
+ return SubscriptionCancellationTicketCreated;
158695
+ })();
158696
+
158451
158697
  $root.SubscriptionRenewed = (function() {
158452
158698
 
158453
158699
  /**
package/package.json CHANGED
@@ -16,5 +16,5 @@
16
16
  "main": "lib/index.js",
17
17
  "name": "@headspace/protos-events",
18
18
  "typings": "lib/index.d.ts",
19
- "version": "1.776.0"
19
+ "version": "1.777.0"
20
20
  }