@headspace/protos-events 1.775.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
@@ -4659,6 +4659,102 @@ export class ClinicalCoverageUpgraded implements IClinicalCoverageUpgraded {
4659
4659
  public toJSON(): { [k: string]: any };
4660
4660
  }
4661
4661
 
4662
+ /** Properties of a B2BMemberConnectionUnlinked. */
4663
+ export interface IB2BMemberConnectionUnlinked {
4664
+
4665
+ /** B2BMemberConnectionUnlinked hsUserId */
4666
+ hsUserId?: (string|null);
4667
+
4668
+ /** B2BMemberConnectionUnlinked connectionName */
4669
+ connectionName?: (string|null);
4670
+ }
4671
+
4672
+ /** Represents a B2BMemberConnectionUnlinked. */
4673
+ export class B2BMemberConnectionUnlinked implements IB2BMemberConnectionUnlinked {
4674
+
4675
+ /**
4676
+ * Constructs a new B2BMemberConnectionUnlinked.
4677
+ * @param [properties] Properties to set
4678
+ */
4679
+ constructor(properties?: IB2BMemberConnectionUnlinked);
4680
+
4681
+ /** B2BMemberConnectionUnlinked hsUserId. */
4682
+ public hsUserId: string;
4683
+
4684
+ /** B2BMemberConnectionUnlinked connectionName. */
4685
+ public connectionName: string;
4686
+
4687
+ /**
4688
+ * Creates a new B2BMemberConnectionUnlinked instance using the specified properties.
4689
+ * @param [properties] Properties to set
4690
+ * @returns B2BMemberConnectionUnlinked instance
4691
+ */
4692
+ public static create(properties?: IB2BMemberConnectionUnlinked): B2BMemberConnectionUnlinked;
4693
+
4694
+ /**
4695
+ * Encodes the specified B2BMemberConnectionUnlinked message. Does not implicitly {@link B2BMemberConnectionUnlinked.verify|verify} messages.
4696
+ * @param message B2BMemberConnectionUnlinked message or plain object to encode
4697
+ * @param [writer] Writer to encode to
4698
+ * @returns Writer
4699
+ */
4700
+ public static encode(message: IB2BMemberConnectionUnlinked, writer?: $protobuf.Writer): $protobuf.Writer;
4701
+
4702
+ /**
4703
+ * Encodes the specified B2BMemberConnectionUnlinked message, length delimited. Does not implicitly {@link B2BMemberConnectionUnlinked.verify|verify} messages.
4704
+ * @param message B2BMemberConnectionUnlinked message or plain object to encode
4705
+ * @param [writer] Writer to encode to
4706
+ * @returns Writer
4707
+ */
4708
+ public static encodeDelimited(message: IB2BMemberConnectionUnlinked, writer?: $protobuf.Writer): $protobuf.Writer;
4709
+
4710
+ /**
4711
+ * Decodes a B2BMemberConnectionUnlinked message from the specified reader or buffer.
4712
+ * @param reader Reader or buffer to decode from
4713
+ * @param [length] Message length if known beforehand
4714
+ * @returns B2BMemberConnectionUnlinked
4715
+ * @throws {Error} If the payload is not a reader or valid buffer
4716
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
4717
+ */
4718
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): B2BMemberConnectionUnlinked;
4719
+
4720
+ /**
4721
+ * Decodes a B2BMemberConnectionUnlinked message from the specified reader or buffer, length delimited.
4722
+ * @param reader Reader or buffer to decode from
4723
+ * @returns B2BMemberConnectionUnlinked
4724
+ * @throws {Error} If the payload is not a reader or valid buffer
4725
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
4726
+ */
4727
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): B2BMemberConnectionUnlinked;
4728
+
4729
+ /**
4730
+ * Verifies a B2BMemberConnectionUnlinked message.
4731
+ * @param message Plain object to verify
4732
+ * @returns `null` if valid, otherwise the reason why it is not
4733
+ */
4734
+ public static verify(message: { [k: string]: any }): (string|null);
4735
+
4736
+ /**
4737
+ * Creates a B2BMemberConnectionUnlinked message from a plain object. Also converts values to their respective internal types.
4738
+ * @param object Plain object
4739
+ * @returns B2BMemberConnectionUnlinked
4740
+ */
4741
+ public static fromObject(object: { [k: string]: any }): B2BMemberConnectionUnlinked;
4742
+
4743
+ /**
4744
+ * Creates a plain object from a B2BMemberConnectionUnlinked message. Also converts values to other types if specified.
4745
+ * @param message B2BMemberConnectionUnlinked
4746
+ * @param [options] Conversion options
4747
+ * @returns Plain object
4748
+ */
4749
+ public static toObject(message: B2BMemberConnectionUnlinked, options?: $protobuf.IConversionOptions): { [k: string]: any };
4750
+
4751
+ /**
4752
+ * Converts this B2BMemberConnectionUnlinked to JSON.
4753
+ * @returns JSON object
4754
+ */
4755
+ public toJSON(): { [k: string]: any };
4756
+ }
4757
+
4662
4758
  /** Properties of an EapCoverageCreated. */
4663
4759
  export interface IEapCoverageCreated {
4664
4760
 
@@ -55792,6 +55888,108 @@ export class SubscriptionCancelled implements ISubscriptionCancelled {
55792
55888
  public toJSON(): { [k: string]: any };
55793
55889
  }
55794
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
+
55795
55993
  /** Properties of a SubscriptionRenewed. */
55796
55994
  export interface ISubscriptionRenewed {
55797
55995
 
package/lib/index.js CHANGED
@@ -13070,6 +13070,216 @@ $root.ClinicalCoverageUpgraded = (function() {
13070
13070
  return ClinicalCoverageUpgraded;
13071
13071
  })();
13072
13072
 
13073
+ $root.B2BMemberConnectionUnlinked = (function() {
13074
+
13075
+ /**
13076
+ * Properties of a B2BMemberConnectionUnlinked.
13077
+ * @name IB2BMemberConnectionUnlinked
13078
+ * @interface IB2BMemberConnectionUnlinked
13079
+ * @property {string|null} [hsUserId] B2BMemberConnectionUnlinked hsUserId
13080
+ * @property {string|null} [connectionName] B2BMemberConnectionUnlinked connectionName
13081
+ */
13082
+
13083
+ /**
13084
+ * Constructs a new B2BMemberConnectionUnlinked.
13085
+ * @name B2BMemberConnectionUnlinked
13086
+ * @classdesc Represents a B2BMemberConnectionUnlinked.
13087
+ * @implements IB2BMemberConnectionUnlinked
13088
+ * @constructor
13089
+ * @param {IB2BMemberConnectionUnlinked=} [properties] Properties to set
13090
+ */
13091
+ function B2BMemberConnectionUnlinked(properties) {
13092
+ if (properties)
13093
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
13094
+ if (properties[keys[i]] != null)
13095
+ this[keys[i]] = properties[keys[i]];
13096
+ }
13097
+
13098
+ /**
13099
+ * B2BMemberConnectionUnlinked hsUserId.
13100
+ * @member {string} hsUserId
13101
+ * @memberof B2BMemberConnectionUnlinked
13102
+ * @instance
13103
+ */
13104
+ B2BMemberConnectionUnlinked.prototype.hsUserId = "";
13105
+
13106
+ /**
13107
+ * B2BMemberConnectionUnlinked connectionName.
13108
+ * @member {string} connectionName
13109
+ * @memberof B2BMemberConnectionUnlinked
13110
+ * @instance
13111
+ */
13112
+ B2BMemberConnectionUnlinked.prototype.connectionName = "";
13113
+
13114
+ /**
13115
+ * Creates a new B2BMemberConnectionUnlinked instance using the specified properties.
13116
+ * @function create
13117
+ * @memberof B2BMemberConnectionUnlinked
13118
+ * @static
13119
+ * @param {IB2BMemberConnectionUnlinked=} [properties] Properties to set
13120
+ * @returns {B2BMemberConnectionUnlinked} B2BMemberConnectionUnlinked instance
13121
+ */
13122
+ B2BMemberConnectionUnlinked.create = function create(properties) {
13123
+ return new B2BMemberConnectionUnlinked(properties);
13124
+ };
13125
+
13126
+ /**
13127
+ * Encodes the specified B2BMemberConnectionUnlinked message. Does not implicitly {@link B2BMemberConnectionUnlinked.verify|verify} messages.
13128
+ * @function encode
13129
+ * @memberof B2BMemberConnectionUnlinked
13130
+ * @static
13131
+ * @param {IB2BMemberConnectionUnlinked} message B2BMemberConnectionUnlinked message or plain object to encode
13132
+ * @param {$protobuf.Writer} [writer] Writer to encode to
13133
+ * @returns {$protobuf.Writer} Writer
13134
+ */
13135
+ B2BMemberConnectionUnlinked.encode = function encode(message, writer) {
13136
+ if (!writer)
13137
+ writer = $Writer.create();
13138
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
13139
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
13140
+ if (message.connectionName != null && message.hasOwnProperty("connectionName"))
13141
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.connectionName);
13142
+ return writer;
13143
+ };
13144
+
13145
+ /**
13146
+ * Encodes the specified B2BMemberConnectionUnlinked message, length delimited. Does not implicitly {@link B2BMemberConnectionUnlinked.verify|verify} messages.
13147
+ * @function encodeDelimited
13148
+ * @memberof B2BMemberConnectionUnlinked
13149
+ * @static
13150
+ * @param {IB2BMemberConnectionUnlinked} message B2BMemberConnectionUnlinked message or plain object to encode
13151
+ * @param {$protobuf.Writer} [writer] Writer to encode to
13152
+ * @returns {$protobuf.Writer} Writer
13153
+ */
13154
+ B2BMemberConnectionUnlinked.encodeDelimited = function encodeDelimited(message, writer) {
13155
+ return this.encode(message, writer).ldelim();
13156
+ };
13157
+
13158
+ /**
13159
+ * Decodes a B2BMemberConnectionUnlinked message from the specified reader or buffer.
13160
+ * @function decode
13161
+ * @memberof B2BMemberConnectionUnlinked
13162
+ * @static
13163
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
13164
+ * @param {number} [length] Message length if known beforehand
13165
+ * @returns {B2BMemberConnectionUnlinked} B2BMemberConnectionUnlinked
13166
+ * @throws {Error} If the payload is not a reader or valid buffer
13167
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13168
+ */
13169
+ B2BMemberConnectionUnlinked.decode = function decode(reader, length) {
13170
+ if (!(reader instanceof $Reader))
13171
+ reader = $Reader.create(reader);
13172
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.B2BMemberConnectionUnlinked();
13173
+ while (reader.pos < end) {
13174
+ var tag = reader.uint32();
13175
+ switch (tag >>> 3) {
13176
+ case 1:
13177
+ message.hsUserId = reader.string();
13178
+ break;
13179
+ case 2:
13180
+ message.connectionName = reader.string();
13181
+ break;
13182
+ default:
13183
+ reader.skipType(tag & 7);
13184
+ break;
13185
+ }
13186
+ }
13187
+ return message;
13188
+ };
13189
+
13190
+ /**
13191
+ * Decodes a B2BMemberConnectionUnlinked message from the specified reader or buffer, length delimited.
13192
+ * @function decodeDelimited
13193
+ * @memberof B2BMemberConnectionUnlinked
13194
+ * @static
13195
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
13196
+ * @returns {B2BMemberConnectionUnlinked} B2BMemberConnectionUnlinked
13197
+ * @throws {Error} If the payload is not a reader or valid buffer
13198
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13199
+ */
13200
+ B2BMemberConnectionUnlinked.decodeDelimited = function decodeDelimited(reader) {
13201
+ if (!(reader instanceof $Reader))
13202
+ reader = new $Reader(reader);
13203
+ return this.decode(reader, reader.uint32());
13204
+ };
13205
+
13206
+ /**
13207
+ * Verifies a B2BMemberConnectionUnlinked message.
13208
+ * @function verify
13209
+ * @memberof B2BMemberConnectionUnlinked
13210
+ * @static
13211
+ * @param {Object.<string,*>} message Plain object to verify
13212
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
13213
+ */
13214
+ B2BMemberConnectionUnlinked.verify = function verify(message) {
13215
+ if (typeof message !== "object" || message === null)
13216
+ return "object expected";
13217
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
13218
+ if (!$util.isString(message.hsUserId))
13219
+ return "hsUserId: string expected";
13220
+ if (message.connectionName != null && message.hasOwnProperty("connectionName"))
13221
+ if (!$util.isString(message.connectionName))
13222
+ return "connectionName: string expected";
13223
+ return null;
13224
+ };
13225
+
13226
+ /**
13227
+ * Creates a B2BMemberConnectionUnlinked message from a plain object. Also converts values to their respective internal types.
13228
+ * @function fromObject
13229
+ * @memberof B2BMemberConnectionUnlinked
13230
+ * @static
13231
+ * @param {Object.<string,*>} object Plain object
13232
+ * @returns {B2BMemberConnectionUnlinked} B2BMemberConnectionUnlinked
13233
+ */
13234
+ B2BMemberConnectionUnlinked.fromObject = function fromObject(object) {
13235
+ if (object instanceof $root.B2BMemberConnectionUnlinked)
13236
+ return object;
13237
+ var message = new $root.B2BMemberConnectionUnlinked();
13238
+ if (object.hsUserId != null)
13239
+ message.hsUserId = String(object.hsUserId);
13240
+ if (object.connectionName != null)
13241
+ message.connectionName = String(object.connectionName);
13242
+ return message;
13243
+ };
13244
+
13245
+ /**
13246
+ * Creates a plain object from a B2BMemberConnectionUnlinked message. Also converts values to other types if specified.
13247
+ * @function toObject
13248
+ * @memberof B2BMemberConnectionUnlinked
13249
+ * @static
13250
+ * @param {B2BMemberConnectionUnlinked} message B2BMemberConnectionUnlinked
13251
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
13252
+ * @returns {Object.<string,*>} Plain object
13253
+ */
13254
+ B2BMemberConnectionUnlinked.toObject = function toObject(message, options) {
13255
+ if (!options)
13256
+ options = {};
13257
+ var object = {};
13258
+ if (options.defaults) {
13259
+ object.hsUserId = "";
13260
+ object.connectionName = "";
13261
+ }
13262
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
13263
+ object.hsUserId = message.hsUserId;
13264
+ if (message.connectionName != null && message.hasOwnProperty("connectionName"))
13265
+ object.connectionName = message.connectionName;
13266
+ return object;
13267
+ };
13268
+
13269
+ /**
13270
+ * Converts this B2BMemberConnectionUnlinked to JSON.
13271
+ * @function toJSON
13272
+ * @memberof B2BMemberConnectionUnlinked
13273
+ * @instance
13274
+ * @returns {Object.<string,*>} JSON object
13275
+ */
13276
+ B2BMemberConnectionUnlinked.prototype.toJSON = function toJSON() {
13277
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
13278
+ };
13279
+
13280
+ return B2BMemberConnectionUnlinked;
13281
+ })();
13282
+
13073
13283
  $root.EapCoverageCreated = (function() {
13074
13284
 
13075
13285
  /**
@@ -158238,6 +158448,252 @@ $root.SubscriptionCancelled = (function() {
158238
158448
  return SubscriptionCancelled;
158239
158449
  })();
158240
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
+
158241
158697
  $root.SubscriptionRenewed = (function() {
158242
158698
 
158243
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.775.0"
19
+ "version": "1.777.0"
20
20
  }