@headspace/protos-events 1.625.0 → 1.626.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
@@ -57627,6 +57627,109 @@ export class InteractiveJournalingMessageCreated implements IInteractiveJournali
57627
57627
  public toJSON(): { [k: string]: any };
57628
57628
  }
57629
57629
 
57630
+ /** InteractiveJournalingReward enum. */
57631
+ export enum InteractiveJournalingReward {
57632
+ INTERACTIVE_JOURNALING_REWARD_UNKNOWN = 0,
57633
+ INTERACTIVE_JOURNALING_REWARD_NEGATIVE = 1,
57634
+ INTERACTIVE_JOURNALING_REWARD_POSITIVE = 2
57635
+ }
57636
+
57637
+ /** Properties of an InteractiveJournalingRewardCreated. */
57638
+ export interface IInteractiveJournalingRewardCreated {
57639
+
57640
+ /** InteractiveJournalingRewardCreated messageId */
57641
+ messageId?: (string|null);
57642
+
57643
+ /** InteractiveJournalingRewardCreated feedback */
57644
+ feedback?: (InteractiveJournalingReward|null);
57645
+ }
57646
+
57647
+ /** Represents an InteractiveJournalingRewardCreated. */
57648
+ export class InteractiveJournalingRewardCreated implements IInteractiveJournalingRewardCreated {
57649
+
57650
+ /**
57651
+ * Constructs a new InteractiveJournalingRewardCreated.
57652
+ * @param [properties] Properties to set
57653
+ */
57654
+ constructor(properties?: IInteractiveJournalingRewardCreated);
57655
+
57656
+ /** InteractiveJournalingRewardCreated messageId. */
57657
+ public messageId: string;
57658
+
57659
+ /** InteractiveJournalingRewardCreated feedback. */
57660
+ public feedback: InteractiveJournalingReward;
57661
+
57662
+ /**
57663
+ * Creates a new InteractiveJournalingRewardCreated instance using the specified properties.
57664
+ * @param [properties] Properties to set
57665
+ * @returns InteractiveJournalingRewardCreated instance
57666
+ */
57667
+ public static create(properties?: IInteractiveJournalingRewardCreated): InteractiveJournalingRewardCreated;
57668
+
57669
+ /**
57670
+ * Encodes the specified InteractiveJournalingRewardCreated message. Does not implicitly {@link InteractiveJournalingRewardCreated.verify|verify} messages.
57671
+ * @param message InteractiveJournalingRewardCreated message or plain object to encode
57672
+ * @param [writer] Writer to encode to
57673
+ * @returns Writer
57674
+ */
57675
+ public static encode(message: IInteractiveJournalingRewardCreated, writer?: $protobuf.Writer): $protobuf.Writer;
57676
+
57677
+ /**
57678
+ * Encodes the specified InteractiveJournalingRewardCreated message, length delimited. Does not implicitly {@link InteractiveJournalingRewardCreated.verify|verify} messages.
57679
+ * @param message InteractiveJournalingRewardCreated message or plain object to encode
57680
+ * @param [writer] Writer to encode to
57681
+ * @returns Writer
57682
+ */
57683
+ public static encodeDelimited(message: IInteractiveJournalingRewardCreated, writer?: $protobuf.Writer): $protobuf.Writer;
57684
+
57685
+ /**
57686
+ * Decodes an InteractiveJournalingRewardCreated message from the specified reader or buffer.
57687
+ * @param reader Reader or buffer to decode from
57688
+ * @param [length] Message length if known beforehand
57689
+ * @returns InteractiveJournalingRewardCreated
57690
+ * @throws {Error} If the payload is not a reader or valid buffer
57691
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
57692
+ */
57693
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): InteractiveJournalingRewardCreated;
57694
+
57695
+ /**
57696
+ * Decodes an InteractiveJournalingRewardCreated message from the specified reader or buffer, length delimited.
57697
+ * @param reader Reader or buffer to decode from
57698
+ * @returns InteractiveJournalingRewardCreated
57699
+ * @throws {Error} If the payload is not a reader or valid buffer
57700
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
57701
+ */
57702
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): InteractiveJournalingRewardCreated;
57703
+
57704
+ /**
57705
+ * Verifies an InteractiveJournalingRewardCreated message.
57706
+ * @param message Plain object to verify
57707
+ * @returns `null` if valid, otherwise the reason why it is not
57708
+ */
57709
+ public static verify(message: { [k: string]: any }): (string|null);
57710
+
57711
+ /**
57712
+ * Creates an InteractiveJournalingRewardCreated message from a plain object. Also converts values to their respective internal types.
57713
+ * @param object Plain object
57714
+ * @returns InteractiveJournalingRewardCreated
57715
+ */
57716
+ public static fromObject(object: { [k: string]: any }): InteractiveJournalingRewardCreated;
57717
+
57718
+ /**
57719
+ * Creates a plain object from an InteractiveJournalingRewardCreated message. Also converts values to other types if specified.
57720
+ * @param message InteractiveJournalingRewardCreated
57721
+ * @param [options] Conversion options
57722
+ * @returns Plain object
57723
+ */
57724
+ public static toObject(message: InteractiveJournalingRewardCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
57725
+
57726
+ /**
57727
+ * Converts this InteractiveJournalingRewardCreated to JSON.
57728
+ * @returns JSON object
57729
+ */
57730
+ public toJSON(): { [k: string]: any };
57731
+ }
57732
+
57630
57733
  /** Properties of a LayoutCreated. */
57631
57734
  export interface ILayoutCreated {
57632
57735
 
package/lib/index.js CHANGED
@@ -161291,6 +161291,250 @@ $root.InteractiveJournalingMessageCreated = (function() {
161291
161291
  return InteractiveJournalingMessageCreated;
161292
161292
  })();
161293
161293
 
161294
+ /**
161295
+ * InteractiveJournalingReward enum.
161296
+ * @name InteractiveJournalingReward
161297
+ * @enum {string}
161298
+ * @property {number} INTERACTIVE_JOURNALING_REWARD_UNKNOWN=0 INTERACTIVE_JOURNALING_REWARD_UNKNOWN value
161299
+ * @property {number} INTERACTIVE_JOURNALING_REWARD_NEGATIVE=1 INTERACTIVE_JOURNALING_REWARD_NEGATIVE value
161300
+ * @property {number} INTERACTIVE_JOURNALING_REWARD_POSITIVE=2 INTERACTIVE_JOURNALING_REWARD_POSITIVE value
161301
+ */
161302
+ $root.InteractiveJournalingReward = (function() {
161303
+ var valuesById = {}, values = Object.create(valuesById);
161304
+ values[valuesById[0] = "INTERACTIVE_JOURNALING_REWARD_UNKNOWN"] = 0;
161305
+ values[valuesById[1] = "INTERACTIVE_JOURNALING_REWARD_NEGATIVE"] = 1;
161306
+ values[valuesById[2] = "INTERACTIVE_JOURNALING_REWARD_POSITIVE"] = 2;
161307
+ return values;
161308
+ })();
161309
+
161310
+ $root.InteractiveJournalingRewardCreated = (function() {
161311
+
161312
+ /**
161313
+ * Properties of an InteractiveJournalingRewardCreated.
161314
+ * @name IInteractiveJournalingRewardCreated
161315
+ * @interface IInteractiveJournalingRewardCreated
161316
+ * @property {string|null} [messageId] InteractiveJournalingRewardCreated messageId
161317
+ * @property {InteractiveJournalingReward|null} [feedback] InteractiveJournalingRewardCreated feedback
161318
+ */
161319
+
161320
+ /**
161321
+ * Constructs a new InteractiveJournalingRewardCreated.
161322
+ * @name InteractiveJournalingRewardCreated
161323
+ * @classdesc Represents an InteractiveJournalingRewardCreated.
161324
+ * @implements IInteractiveJournalingRewardCreated
161325
+ * @constructor
161326
+ * @param {IInteractiveJournalingRewardCreated=} [properties] Properties to set
161327
+ */
161328
+ function InteractiveJournalingRewardCreated(properties) {
161329
+ if (properties)
161330
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
161331
+ if (properties[keys[i]] != null)
161332
+ this[keys[i]] = properties[keys[i]];
161333
+ }
161334
+
161335
+ /**
161336
+ * InteractiveJournalingRewardCreated messageId.
161337
+ * @member {string} messageId
161338
+ * @memberof InteractiveJournalingRewardCreated
161339
+ * @instance
161340
+ */
161341
+ InteractiveJournalingRewardCreated.prototype.messageId = "";
161342
+
161343
+ /**
161344
+ * InteractiveJournalingRewardCreated feedback.
161345
+ * @member {InteractiveJournalingReward} feedback
161346
+ * @memberof InteractiveJournalingRewardCreated
161347
+ * @instance
161348
+ */
161349
+ InteractiveJournalingRewardCreated.prototype.feedback = 0;
161350
+
161351
+ /**
161352
+ * Creates a new InteractiveJournalingRewardCreated instance using the specified properties.
161353
+ * @function create
161354
+ * @memberof InteractiveJournalingRewardCreated
161355
+ * @static
161356
+ * @param {IInteractiveJournalingRewardCreated=} [properties] Properties to set
161357
+ * @returns {InteractiveJournalingRewardCreated} InteractiveJournalingRewardCreated instance
161358
+ */
161359
+ InteractiveJournalingRewardCreated.create = function create(properties) {
161360
+ return new InteractiveJournalingRewardCreated(properties);
161361
+ };
161362
+
161363
+ /**
161364
+ * Encodes the specified InteractiveJournalingRewardCreated message. Does not implicitly {@link InteractiveJournalingRewardCreated.verify|verify} messages.
161365
+ * @function encode
161366
+ * @memberof InteractiveJournalingRewardCreated
161367
+ * @static
161368
+ * @param {IInteractiveJournalingRewardCreated} message InteractiveJournalingRewardCreated message or plain object to encode
161369
+ * @param {$protobuf.Writer} [writer] Writer to encode to
161370
+ * @returns {$protobuf.Writer} Writer
161371
+ */
161372
+ InteractiveJournalingRewardCreated.encode = function encode(message, writer) {
161373
+ if (!writer)
161374
+ writer = $Writer.create();
161375
+ if (message.messageId != null && message.hasOwnProperty("messageId"))
161376
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.messageId);
161377
+ if (message.feedback != null && message.hasOwnProperty("feedback"))
161378
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.feedback);
161379
+ return writer;
161380
+ };
161381
+
161382
+ /**
161383
+ * Encodes the specified InteractiveJournalingRewardCreated message, length delimited. Does not implicitly {@link InteractiveJournalingRewardCreated.verify|verify} messages.
161384
+ * @function encodeDelimited
161385
+ * @memberof InteractiveJournalingRewardCreated
161386
+ * @static
161387
+ * @param {IInteractiveJournalingRewardCreated} message InteractiveJournalingRewardCreated message or plain object to encode
161388
+ * @param {$protobuf.Writer} [writer] Writer to encode to
161389
+ * @returns {$protobuf.Writer} Writer
161390
+ */
161391
+ InteractiveJournalingRewardCreated.encodeDelimited = function encodeDelimited(message, writer) {
161392
+ return this.encode(message, writer).ldelim();
161393
+ };
161394
+
161395
+ /**
161396
+ * Decodes an InteractiveJournalingRewardCreated message from the specified reader or buffer.
161397
+ * @function decode
161398
+ * @memberof InteractiveJournalingRewardCreated
161399
+ * @static
161400
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
161401
+ * @param {number} [length] Message length if known beforehand
161402
+ * @returns {InteractiveJournalingRewardCreated} InteractiveJournalingRewardCreated
161403
+ * @throws {Error} If the payload is not a reader or valid buffer
161404
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
161405
+ */
161406
+ InteractiveJournalingRewardCreated.decode = function decode(reader, length) {
161407
+ if (!(reader instanceof $Reader))
161408
+ reader = $Reader.create(reader);
161409
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.InteractiveJournalingRewardCreated();
161410
+ while (reader.pos < end) {
161411
+ var tag = reader.uint32();
161412
+ switch (tag >>> 3) {
161413
+ case 1:
161414
+ message.messageId = reader.string();
161415
+ break;
161416
+ case 2:
161417
+ message.feedback = reader.int32();
161418
+ break;
161419
+ default:
161420
+ reader.skipType(tag & 7);
161421
+ break;
161422
+ }
161423
+ }
161424
+ return message;
161425
+ };
161426
+
161427
+ /**
161428
+ * Decodes an InteractiveJournalingRewardCreated message from the specified reader or buffer, length delimited.
161429
+ * @function decodeDelimited
161430
+ * @memberof InteractiveJournalingRewardCreated
161431
+ * @static
161432
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
161433
+ * @returns {InteractiveJournalingRewardCreated} InteractiveJournalingRewardCreated
161434
+ * @throws {Error} If the payload is not a reader or valid buffer
161435
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
161436
+ */
161437
+ InteractiveJournalingRewardCreated.decodeDelimited = function decodeDelimited(reader) {
161438
+ if (!(reader instanceof $Reader))
161439
+ reader = new $Reader(reader);
161440
+ return this.decode(reader, reader.uint32());
161441
+ };
161442
+
161443
+ /**
161444
+ * Verifies an InteractiveJournalingRewardCreated message.
161445
+ * @function verify
161446
+ * @memberof InteractiveJournalingRewardCreated
161447
+ * @static
161448
+ * @param {Object.<string,*>} message Plain object to verify
161449
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
161450
+ */
161451
+ InteractiveJournalingRewardCreated.verify = function verify(message) {
161452
+ if (typeof message !== "object" || message === null)
161453
+ return "object expected";
161454
+ if (message.messageId != null && message.hasOwnProperty("messageId"))
161455
+ if (!$util.isString(message.messageId))
161456
+ return "messageId: string expected";
161457
+ if (message.feedback != null && message.hasOwnProperty("feedback"))
161458
+ switch (message.feedback) {
161459
+ default:
161460
+ return "feedback: enum value expected";
161461
+ case 0:
161462
+ case 1:
161463
+ case 2:
161464
+ break;
161465
+ }
161466
+ return null;
161467
+ };
161468
+
161469
+ /**
161470
+ * Creates an InteractiveJournalingRewardCreated message from a plain object. Also converts values to their respective internal types.
161471
+ * @function fromObject
161472
+ * @memberof InteractiveJournalingRewardCreated
161473
+ * @static
161474
+ * @param {Object.<string,*>} object Plain object
161475
+ * @returns {InteractiveJournalingRewardCreated} InteractiveJournalingRewardCreated
161476
+ */
161477
+ InteractiveJournalingRewardCreated.fromObject = function fromObject(object) {
161478
+ if (object instanceof $root.InteractiveJournalingRewardCreated)
161479
+ return object;
161480
+ var message = new $root.InteractiveJournalingRewardCreated();
161481
+ if (object.messageId != null)
161482
+ message.messageId = String(object.messageId);
161483
+ switch (object.feedback) {
161484
+ case "INTERACTIVE_JOURNALING_REWARD_UNKNOWN":
161485
+ case 0:
161486
+ message.feedback = 0;
161487
+ break;
161488
+ case "INTERACTIVE_JOURNALING_REWARD_NEGATIVE":
161489
+ case 1:
161490
+ message.feedback = 1;
161491
+ break;
161492
+ case "INTERACTIVE_JOURNALING_REWARD_POSITIVE":
161493
+ case 2:
161494
+ message.feedback = 2;
161495
+ break;
161496
+ }
161497
+ return message;
161498
+ };
161499
+
161500
+ /**
161501
+ * Creates a plain object from an InteractiveJournalingRewardCreated message. Also converts values to other types if specified.
161502
+ * @function toObject
161503
+ * @memberof InteractiveJournalingRewardCreated
161504
+ * @static
161505
+ * @param {InteractiveJournalingRewardCreated} message InteractiveJournalingRewardCreated
161506
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
161507
+ * @returns {Object.<string,*>} Plain object
161508
+ */
161509
+ InteractiveJournalingRewardCreated.toObject = function toObject(message, options) {
161510
+ if (!options)
161511
+ options = {};
161512
+ var object = {};
161513
+ if (options.defaults) {
161514
+ object.messageId = "";
161515
+ object.feedback = options.enums === String ? "INTERACTIVE_JOURNALING_REWARD_UNKNOWN" : 0;
161516
+ }
161517
+ if (message.messageId != null && message.hasOwnProperty("messageId"))
161518
+ object.messageId = message.messageId;
161519
+ if (message.feedback != null && message.hasOwnProperty("feedback"))
161520
+ object.feedback = options.enums === String ? $root.InteractiveJournalingReward[message.feedback] : message.feedback;
161521
+ return object;
161522
+ };
161523
+
161524
+ /**
161525
+ * Converts this InteractiveJournalingRewardCreated to JSON.
161526
+ * @function toJSON
161527
+ * @memberof InteractiveJournalingRewardCreated
161528
+ * @instance
161529
+ * @returns {Object.<string,*>} JSON object
161530
+ */
161531
+ InteractiveJournalingRewardCreated.prototype.toJSON = function toJSON() {
161532
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
161533
+ };
161534
+
161535
+ return InteractiveJournalingRewardCreated;
161536
+ })();
161537
+
161294
161538
  $root.LayoutCreated = (function() {
161295
161539
 
161296
161540
  /**
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.625.0"
19
+ "version": "1.626.0"
20
20
  }