@headspace/protos-events 1.603.0 → 1.604.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
@@ -64477,306 +64477,6 @@ export class UserConsentUpdated implements IUserConsentUpdated {
64477
64477
  public toJSON(): { [k: string]: any };
64478
64478
  }
64479
64479
 
64480
- /** DeliveryPlatformProvider enum. */
64481
- export enum DeliveryPlatformProvider {
64482
- DELIVERY_PLATFORM_UNKNOWN = 0,
64483
- DELIVERY_PLATFORM_BRAZE = 1
64484
- }
64485
-
64486
- /** Properties of a UserMessageDeliveryScheduledEvent. */
64487
- export interface IUserMessageDeliveryScheduledEvent {
64488
-
64489
- /** UserMessageDeliveryScheduledEvent messageScheduleTimestamp */
64490
- messageScheduleTimestamp?: (number|Long|null);
64491
-
64492
- /** UserMessageDeliveryScheduledEvent deliveryPlatformId */
64493
- deliveryPlatformId?: (string|null);
64494
-
64495
- /** UserMessageDeliveryScheduledEvent deliveryPlatformProvider */
64496
- deliveryPlatformProvider?: (DeliveryPlatformProvider|null);
64497
-
64498
- /** UserMessageDeliveryScheduledEvent userMessageNotifications */
64499
- userMessageNotifications?: (IUserMessageNotification[]|null);
64500
- }
64501
-
64502
- /** Represents a UserMessageDeliveryScheduledEvent. */
64503
- export class UserMessageDeliveryScheduledEvent implements IUserMessageDeliveryScheduledEvent {
64504
-
64505
- /**
64506
- * Constructs a new UserMessageDeliveryScheduledEvent.
64507
- * @param [properties] Properties to set
64508
- */
64509
- constructor(properties?: IUserMessageDeliveryScheduledEvent);
64510
-
64511
- /** UserMessageDeliveryScheduledEvent messageScheduleTimestamp. */
64512
- public messageScheduleTimestamp: (number|Long);
64513
-
64514
- /** UserMessageDeliveryScheduledEvent deliveryPlatformId. */
64515
- public deliveryPlatformId: string;
64516
-
64517
- /** UserMessageDeliveryScheduledEvent deliveryPlatformProvider. */
64518
- public deliveryPlatformProvider: DeliveryPlatformProvider;
64519
-
64520
- /** UserMessageDeliveryScheduledEvent userMessageNotifications. */
64521
- public userMessageNotifications: IUserMessageNotification[];
64522
-
64523
- /**
64524
- * Creates a new UserMessageDeliveryScheduledEvent instance using the specified properties.
64525
- * @param [properties] Properties to set
64526
- * @returns UserMessageDeliveryScheduledEvent instance
64527
- */
64528
- public static create(properties?: IUserMessageDeliveryScheduledEvent): UserMessageDeliveryScheduledEvent;
64529
-
64530
- /**
64531
- * Encodes the specified UserMessageDeliveryScheduledEvent message. Does not implicitly {@link UserMessageDeliveryScheduledEvent.verify|verify} messages.
64532
- * @param message UserMessageDeliveryScheduledEvent message or plain object to encode
64533
- * @param [writer] Writer to encode to
64534
- * @returns Writer
64535
- */
64536
- public static encode(message: IUserMessageDeliveryScheduledEvent, writer?: $protobuf.Writer): $protobuf.Writer;
64537
-
64538
- /**
64539
- * Encodes the specified UserMessageDeliveryScheduledEvent message, length delimited. Does not implicitly {@link UserMessageDeliveryScheduledEvent.verify|verify} messages.
64540
- * @param message UserMessageDeliveryScheduledEvent message or plain object to encode
64541
- * @param [writer] Writer to encode to
64542
- * @returns Writer
64543
- */
64544
- public static encodeDelimited(message: IUserMessageDeliveryScheduledEvent, writer?: $protobuf.Writer): $protobuf.Writer;
64545
-
64546
- /**
64547
- * Decodes a UserMessageDeliveryScheduledEvent message from the specified reader or buffer.
64548
- * @param reader Reader or buffer to decode from
64549
- * @param [length] Message length if known beforehand
64550
- * @returns UserMessageDeliveryScheduledEvent
64551
- * @throws {Error} If the payload is not a reader or valid buffer
64552
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
64553
- */
64554
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserMessageDeliveryScheduledEvent;
64555
-
64556
- /**
64557
- * Decodes a UserMessageDeliveryScheduledEvent message from the specified reader or buffer, length delimited.
64558
- * @param reader Reader or buffer to decode from
64559
- * @returns UserMessageDeliveryScheduledEvent
64560
- * @throws {Error} If the payload is not a reader or valid buffer
64561
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
64562
- */
64563
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserMessageDeliveryScheduledEvent;
64564
-
64565
- /**
64566
- * Verifies a UserMessageDeliveryScheduledEvent message.
64567
- * @param message Plain object to verify
64568
- * @returns `null` if valid, otherwise the reason why it is not
64569
- */
64570
- public static verify(message: { [k: string]: any }): (string|null);
64571
-
64572
- /**
64573
- * Creates a UserMessageDeliveryScheduledEvent message from a plain object. Also converts values to their respective internal types.
64574
- * @param object Plain object
64575
- * @returns UserMessageDeliveryScheduledEvent
64576
- */
64577
- public static fromObject(object: { [k: string]: any }): UserMessageDeliveryScheduledEvent;
64578
-
64579
- /**
64580
- * Creates a plain object from a UserMessageDeliveryScheduledEvent message. Also converts values to other types if specified.
64581
- * @param message UserMessageDeliveryScheduledEvent
64582
- * @param [options] Conversion options
64583
- * @returns Plain object
64584
- */
64585
- public static toObject(message: UserMessageDeliveryScheduledEvent, options?: $protobuf.IConversionOptions): { [k: string]: any };
64586
-
64587
- /**
64588
- * Converts this UserMessageDeliveryScheduledEvent to JSON.
64589
- * @returns JSON object
64590
- */
64591
- public toJSON(): { [k: string]: any };
64592
- }
64593
-
64594
- /** Properties of a UserMessageNotification. */
64595
- export interface IUserMessageNotification {
64596
-
64597
- /** UserMessageNotification userId */
64598
- userId?: (string|null);
64599
-
64600
- /** UserMessageNotification metadata */
64601
- metadata?: ({ [k: string]: string }|null);
64602
- }
64603
-
64604
- /** Represents a UserMessageNotification. */
64605
- export class UserMessageNotification implements IUserMessageNotification {
64606
-
64607
- /**
64608
- * Constructs a new UserMessageNotification.
64609
- * @param [properties] Properties to set
64610
- */
64611
- constructor(properties?: IUserMessageNotification);
64612
-
64613
- /** UserMessageNotification userId. */
64614
- public userId: string;
64615
-
64616
- /** UserMessageNotification metadata. */
64617
- public metadata: { [k: string]: string };
64618
-
64619
- /**
64620
- * Creates a new UserMessageNotification instance using the specified properties.
64621
- * @param [properties] Properties to set
64622
- * @returns UserMessageNotification instance
64623
- */
64624
- public static create(properties?: IUserMessageNotification): UserMessageNotification;
64625
-
64626
- /**
64627
- * Encodes the specified UserMessageNotification message. Does not implicitly {@link UserMessageNotification.verify|verify} messages.
64628
- * @param message UserMessageNotification message or plain object to encode
64629
- * @param [writer] Writer to encode to
64630
- * @returns Writer
64631
- */
64632
- public static encode(message: IUserMessageNotification, writer?: $protobuf.Writer): $protobuf.Writer;
64633
-
64634
- /**
64635
- * Encodes the specified UserMessageNotification message, length delimited. Does not implicitly {@link UserMessageNotification.verify|verify} messages.
64636
- * @param message UserMessageNotification message or plain object to encode
64637
- * @param [writer] Writer to encode to
64638
- * @returns Writer
64639
- */
64640
- public static encodeDelimited(message: IUserMessageNotification, writer?: $protobuf.Writer): $protobuf.Writer;
64641
-
64642
- /**
64643
- * Decodes a UserMessageNotification message from the specified reader or buffer.
64644
- * @param reader Reader or buffer to decode from
64645
- * @param [length] Message length if known beforehand
64646
- * @returns UserMessageNotification
64647
- * @throws {Error} If the payload is not a reader or valid buffer
64648
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
64649
- */
64650
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserMessageNotification;
64651
-
64652
- /**
64653
- * Decodes a UserMessageNotification message from the specified reader or buffer, length delimited.
64654
- * @param reader Reader or buffer to decode from
64655
- * @returns UserMessageNotification
64656
- * @throws {Error} If the payload is not a reader or valid buffer
64657
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
64658
- */
64659
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserMessageNotification;
64660
-
64661
- /**
64662
- * Verifies a UserMessageNotification message.
64663
- * @param message Plain object to verify
64664
- * @returns `null` if valid, otherwise the reason why it is not
64665
- */
64666
- public static verify(message: { [k: string]: any }): (string|null);
64667
-
64668
- /**
64669
- * Creates a UserMessageNotification message from a plain object. Also converts values to their respective internal types.
64670
- * @param object Plain object
64671
- * @returns UserMessageNotification
64672
- */
64673
- public static fromObject(object: { [k: string]: any }): UserMessageNotification;
64674
-
64675
- /**
64676
- * Creates a plain object from a UserMessageNotification message. Also converts values to other types if specified.
64677
- * @param message UserMessageNotification
64678
- * @param [options] Conversion options
64679
- * @returns Plain object
64680
- */
64681
- public static toObject(message: UserMessageNotification, options?: $protobuf.IConversionOptions): { [k: string]: any };
64682
-
64683
- /**
64684
- * Converts this UserMessageNotification to JSON.
64685
- * @returns JSON object
64686
- */
64687
- public toJSON(): { [k: string]: any };
64688
- }
64689
-
64690
- /** Properties of a UserMessageProcessMessagesEvent. */
64691
- export interface IUserMessageProcessMessagesEvent {
64692
-
64693
- /** UserMessageProcessMessagesEvent filePath */
64694
- filePath?: (string|null);
64695
- }
64696
-
64697
- /** Represents a UserMessageProcessMessagesEvent. */
64698
- export class UserMessageProcessMessagesEvent implements IUserMessageProcessMessagesEvent {
64699
-
64700
- /**
64701
- * Constructs a new UserMessageProcessMessagesEvent.
64702
- * @param [properties] Properties to set
64703
- */
64704
- constructor(properties?: IUserMessageProcessMessagesEvent);
64705
-
64706
- /** UserMessageProcessMessagesEvent filePath. */
64707
- public filePath: string;
64708
-
64709
- /**
64710
- * Creates a new UserMessageProcessMessagesEvent instance using the specified properties.
64711
- * @param [properties] Properties to set
64712
- * @returns UserMessageProcessMessagesEvent instance
64713
- */
64714
- public static create(properties?: IUserMessageProcessMessagesEvent): UserMessageProcessMessagesEvent;
64715
-
64716
- /**
64717
- * Encodes the specified UserMessageProcessMessagesEvent message. Does not implicitly {@link UserMessageProcessMessagesEvent.verify|verify} messages.
64718
- * @param message UserMessageProcessMessagesEvent message or plain object to encode
64719
- * @param [writer] Writer to encode to
64720
- * @returns Writer
64721
- */
64722
- public static encode(message: IUserMessageProcessMessagesEvent, writer?: $protobuf.Writer): $protobuf.Writer;
64723
-
64724
- /**
64725
- * Encodes the specified UserMessageProcessMessagesEvent message, length delimited. Does not implicitly {@link UserMessageProcessMessagesEvent.verify|verify} messages.
64726
- * @param message UserMessageProcessMessagesEvent message or plain object to encode
64727
- * @param [writer] Writer to encode to
64728
- * @returns Writer
64729
- */
64730
- public static encodeDelimited(message: IUserMessageProcessMessagesEvent, writer?: $protobuf.Writer): $protobuf.Writer;
64731
-
64732
- /**
64733
- * Decodes a UserMessageProcessMessagesEvent message from the specified reader or buffer.
64734
- * @param reader Reader or buffer to decode from
64735
- * @param [length] Message length if known beforehand
64736
- * @returns UserMessageProcessMessagesEvent
64737
- * @throws {Error} If the payload is not a reader or valid buffer
64738
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
64739
- */
64740
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserMessageProcessMessagesEvent;
64741
-
64742
- /**
64743
- * Decodes a UserMessageProcessMessagesEvent message from the specified reader or buffer, length delimited.
64744
- * @param reader Reader or buffer to decode from
64745
- * @returns UserMessageProcessMessagesEvent
64746
- * @throws {Error} If the payload is not a reader or valid buffer
64747
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
64748
- */
64749
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserMessageProcessMessagesEvent;
64750
-
64751
- /**
64752
- * Verifies a UserMessageProcessMessagesEvent message.
64753
- * @param message Plain object to verify
64754
- * @returns `null` if valid, otherwise the reason why it is not
64755
- */
64756
- public static verify(message: { [k: string]: any }): (string|null);
64757
-
64758
- /**
64759
- * Creates a UserMessageProcessMessagesEvent message from a plain object. Also converts values to their respective internal types.
64760
- * @param object Plain object
64761
- * @returns UserMessageProcessMessagesEvent
64762
- */
64763
- public static fromObject(object: { [k: string]: any }): UserMessageProcessMessagesEvent;
64764
-
64765
- /**
64766
- * Creates a plain object from a UserMessageProcessMessagesEvent message. Also converts values to other types if specified.
64767
- * @param message UserMessageProcessMessagesEvent
64768
- * @param [options] Conversion options
64769
- * @returns Plain object
64770
- */
64771
- public static toObject(message: UserMessageProcessMessagesEvent, options?: $protobuf.IConversionOptions): { [k: string]: any };
64772
-
64773
- /**
64774
- * Converts this UserMessageProcessMessagesEvent to JSON.
64775
- * @returns JSON object
64776
- */
64777
- public toJSON(): { [k: string]: any };
64778
- }
64779
-
64780
64480
  /** Properties of a VirginPulseAccountLinked. */
64781
64481
  export interface IVirginPulseAccountLinked {
64782
64482
 
package/lib/index.js CHANGED
@@ -180921,741 +180921,6 @@ $root.UserConsentUpdated = (function() {
180921
180921
  return UserConsentUpdated;
180922
180922
  })();
180923
180923
 
180924
- /**
180925
- * DeliveryPlatformProvider enum.
180926
- * @name DeliveryPlatformProvider
180927
- * @enum {string}
180928
- * @property {number} DELIVERY_PLATFORM_UNKNOWN=0 DELIVERY_PLATFORM_UNKNOWN value
180929
- * @property {number} DELIVERY_PLATFORM_BRAZE=1 DELIVERY_PLATFORM_BRAZE value
180930
- */
180931
- $root.DeliveryPlatformProvider = (function() {
180932
- var valuesById = {}, values = Object.create(valuesById);
180933
- values[valuesById[0] = "DELIVERY_PLATFORM_UNKNOWN"] = 0;
180934
- values[valuesById[1] = "DELIVERY_PLATFORM_BRAZE"] = 1;
180935
- return values;
180936
- })();
180937
-
180938
- $root.UserMessageDeliveryScheduledEvent = (function() {
180939
-
180940
- /**
180941
- * Properties of a UserMessageDeliveryScheduledEvent.
180942
- * @name IUserMessageDeliveryScheduledEvent
180943
- * @interface IUserMessageDeliveryScheduledEvent
180944
- * @property {number|Long|null} [messageScheduleTimestamp] UserMessageDeliveryScheduledEvent messageScheduleTimestamp
180945
- * @property {string|null} [deliveryPlatformId] UserMessageDeliveryScheduledEvent deliveryPlatformId
180946
- * @property {DeliveryPlatformProvider|null} [deliveryPlatformProvider] UserMessageDeliveryScheduledEvent deliveryPlatformProvider
180947
- * @property {Array.<IUserMessageNotification>|null} [userMessageNotifications] UserMessageDeliveryScheduledEvent userMessageNotifications
180948
- */
180949
-
180950
- /**
180951
- * Constructs a new UserMessageDeliveryScheduledEvent.
180952
- * @name UserMessageDeliveryScheduledEvent
180953
- * @classdesc Represents a UserMessageDeliveryScheduledEvent.
180954
- * @implements IUserMessageDeliveryScheduledEvent
180955
- * @constructor
180956
- * @param {IUserMessageDeliveryScheduledEvent=} [properties] Properties to set
180957
- */
180958
- function UserMessageDeliveryScheduledEvent(properties) {
180959
- this.userMessageNotifications = [];
180960
- if (properties)
180961
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
180962
- if (properties[keys[i]] != null)
180963
- this[keys[i]] = properties[keys[i]];
180964
- }
180965
-
180966
- /**
180967
- * UserMessageDeliveryScheduledEvent messageScheduleTimestamp.
180968
- * @member {number|Long} messageScheduleTimestamp
180969
- * @memberof UserMessageDeliveryScheduledEvent
180970
- * @instance
180971
- */
180972
- UserMessageDeliveryScheduledEvent.prototype.messageScheduleTimestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
180973
-
180974
- /**
180975
- * UserMessageDeliveryScheduledEvent deliveryPlatformId.
180976
- * @member {string} deliveryPlatformId
180977
- * @memberof UserMessageDeliveryScheduledEvent
180978
- * @instance
180979
- */
180980
- UserMessageDeliveryScheduledEvent.prototype.deliveryPlatformId = "";
180981
-
180982
- /**
180983
- * UserMessageDeliveryScheduledEvent deliveryPlatformProvider.
180984
- * @member {DeliveryPlatformProvider} deliveryPlatformProvider
180985
- * @memberof UserMessageDeliveryScheduledEvent
180986
- * @instance
180987
- */
180988
- UserMessageDeliveryScheduledEvent.prototype.deliveryPlatformProvider = 0;
180989
-
180990
- /**
180991
- * UserMessageDeliveryScheduledEvent userMessageNotifications.
180992
- * @member {Array.<IUserMessageNotification>} userMessageNotifications
180993
- * @memberof UserMessageDeliveryScheduledEvent
180994
- * @instance
180995
- */
180996
- UserMessageDeliveryScheduledEvent.prototype.userMessageNotifications = $util.emptyArray;
180997
-
180998
- /**
180999
- * Creates a new UserMessageDeliveryScheduledEvent instance using the specified properties.
181000
- * @function create
181001
- * @memberof UserMessageDeliveryScheduledEvent
181002
- * @static
181003
- * @param {IUserMessageDeliveryScheduledEvent=} [properties] Properties to set
181004
- * @returns {UserMessageDeliveryScheduledEvent} UserMessageDeliveryScheduledEvent instance
181005
- */
181006
- UserMessageDeliveryScheduledEvent.create = function create(properties) {
181007
- return new UserMessageDeliveryScheduledEvent(properties);
181008
- };
181009
-
181010
- /**
181011
- * Encodes the specified UserMessageDeliveryScheduledEvent message. Does not implicitly {@link UserMessageDeliveryScheduledEvent.verify|verify} messages.
181012
- * @function encode
181013
- * @memberof UserMessageDeliveryScheduledEvent
181014
- * @static
181015
- * @param {IUserMessageDeliveryScheduledEvent} message UserMessageDeliveryScheduledEvent message or plain object to encode
181016
- * @param {$protobuf.Writer} [writer] Writer to encode to
181017
- * @returns {$protobuf.Writer} Writer
181018
- */
181019
- UserMessageDeliveryScheduledEvent.encode = function encode(message, writer) {
181020
- if (!writer)
181021
- writer = $Writer.create();
181022
- if (message.messageScheduleTimestamp != null && message.hasOwnProperty("messageScheduleTimestamp"))
181023
- writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.messageScheduleTimestamp);
181024
- if (message.deliveryPlatformId != null && message.hasOwnProperty("deliveryPlatformId"))
181025
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.deliveryPlatformId);
181026
- if (message.deliveryPlatformProvider != null && message.hasOwnProperty("deliveryPlatformProvider"))
181027
- writer.uint32(/* id 3, wireType 0 =*/24).int32(message.deliveryPlatformProvider);
181028
- if (message.userMessageNotifications != null && message.userMessageNotifications.length)
181029
- for (var i = 0; i < message.userMessageNotifications.length; ++i)
181030
- $root.UserMessageNotification.encode(message.userMessageNotifications[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
181031
- return writer;
181032
- };
181033
-
181034
- /**
181035
- * Encodes the specified UserMessageDeliveryScheduledEvent message, length delimited. Does not implicitly {@link UserMessageDeliveryScheduledEvent.verify|verify} messages.
181036
- * @function encodeDelimited
181037
- * @memberof UserMessageDeliveryScheduledEvent
181038
- * @static
181039
- * @param {IUserMessageDeliveryScheduledEvent} message UserMessageDeliveryScheduledEvent message or plain object to encode
181040
- * @param {$protobuf.Writer} [writer] Writer to encode to
181041
- * @returns {$protobuf.Writer} Writer
181042
- */
181043
- UserMessageDeliveryScheduledEvent.encodeDelimited = function encodeDelimited(message, writer) {
181044
- return this.encode(message, writer).ldelim();
181045
- };
181046
-
181047
- /**
181048
- * Decodes a UserMessageDeliveryScheduledEvent message from the specified reader or buffer.
181049
- * @function decode
181050
- * @memberof UserMessageDeliveryScheduledEvent
181051
- * @static
181052
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
181053
- * @param {number} [length] Message length if known beforehand
181054
- * @returns {UserMessageDeliveryScheduledEvent} UserMessageDeliveryScheduledEvent
181055
- * @throws {Error} If the payload is not a reader or valid buffer
181056
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
181057
- */
181058
- UserMessageDeliveryScheduledEvent.decode = function decode(reader, length) {
181059
- if (!(reader instanceof $Reader))
181060
- reader = $Reader.create(reader);
181061
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserMessageDeliveryScheduledEvent();
181062
- while (reader.pos < end) {
181063
- var tag = reader.uint32();
181064
- switch (tag >>> 3) {
181065
- case 1:
181066
- message.messageScheduleTimestamp = reader.uint64();
181067
- break;
181068
- case 2:
181069
- message.deliveryPlatformId = reader.string();
181070
- break;
181071
- case 3:
181072
- message.deliveryPlatformProvider = reader.int32();
181073
- break;
181074
- case 4:
181075
- if (!(message.userMessageNotifications && message.userMessageNotifications.length))
181076
- message.userMessageNotifications = [];
181077
- message.userMessageNotifications.push($root.UserMessageNotification.decode(reader, reader.uint32()));
181078
- break;
181079
- default:
181080
- reader.skipType(tag & 7);
181081
- break;
181082
- }
181083
- }
181084
- return message;
181085
- };
181086
-
181087
- /**
181088
- * Decodes a UserMessageDeliveryScheduledEvent message from the specified reader or buffer, length delimited.
181089
- * @function decodeDelimited
181090
- * @memberof UserMessageDeliveryScheduledEvent
181091
- * @static
181092
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
181093
- * @returns {UserMessageDeliveryScheduledEvent} UserMessageDeliveryScheduledEvent
181094
- * @throws {Error} If the payload is not a reader or valid buffer
181095
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
181096
- */
181097
- UserMessageDeliveryScheduledEvent.decodeDelimited = function decodeDelimited(reader) {
181098
- if (!(reader instanceof $Reader))
181099
- reader = new $Reader(reader);
181100
- return this.decode(reader, reader.uint32());
181101
- };
181102
-
181103
- /**
181104
- * Verifies a UserMessageDeliveryScheduledEvent message.
181105
- * @function verify
181106
- * @memberof UserMessageDeliveryScheduledEvent
181107
- * @static
181108
- * @param {Object.<string,*>} message Plain object to verify
181109
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
181110
- */
181111
- UserMessageDeliveryScheduledEvent.verify = function verify(message) {
181112
- if (typeof message !== "object" || message === null)
181113
- return "object expected";
181114
- if (message.messageScheduleTimestamp != null && message.hasOwnProperty("messageScheduleTimestamp"))
181115
- if (!$util.isInteger(message.messageScheduleTimestamp) && !(message.messageScheduleTimestamp && $util.isInteger(message.messageScheduleTimestamp.low) && $util.isInteger(message.messageScheduleTimestamp.high)))
181116
- return "messageScheduleTimestamp: integer|Long expected";
181117
- if (message.deliveryPlatformId != null && message.hasOwnProperty("deliveryPlatformId"))
181118
- if (!$util.isString(message.deliveryPlatformId))
181119
- return "deliveryPlatformId: string expected";
181120
- if (message.deliveryPlatformProvider != null && message.hasOwnProperty("deliveryPlatformProvider"))
181121
- switch (message.deliveryPlatformProvider) {
181122
- default:
181123
- return "deliveryPlatformProvider: enum value expected";
181124
- case 0:
181125
- case 1:
181126
- break;
181127
- }
181128
- if (message.userMessageNotifications != null && message.hasOwnProperty("userMessageNotifications")) {
181129
- if (!Array.isArray(message.userMessageNotifications))
181130
- return "userMessageNotifications: array expected";
181131
- for (var i = 0; i < message.userMessageNotifications.length; ++i) {
181132
- var error = $root.UserMessageNotification.verify(message.userMessageNotifications[i]);
181133
- if (error)
181134
- return "userMessageNotifications." + error;
181135
- }
181136
- }
181137
- return null;
181138
- };
181139
-
181140
- /**
181141
- * Creates a UserMessageDeliveryScheduledEvent message from a plain object. Also converts values to their respective internal types.
181142
- * @function fromObject
181143
- * @memberof UserMessageDeliveryScheduledEvent
181144
- * @static
181145
- * @param {Object.<string,*>} object Plain object
181146
- * @returns {UserMessageDeliveryScheduledEvent} UserMessageDeliveryScheduledEvent
181147
- */
181148
- UserMessageDeliveryScheduledEvent.fromObject = function fromObject(object) {
181149
- if (object instanceof $root.UserMessageDeliveryScheduledEvent)
181150
- return object;
181151
- var message = new $root.UserMessageDeliveryScheduledEvent();
181152
- if (object.messageScheduleTimestamp != null)
181153
- if ($util.Long)
181154
- (message.messageScheduleTimestamp = $util.Long.fromValue(object.messageScheduleTimestamp)).unsigned = true;
181155
- else if (typeof object.messageScheduleTimestamp === "string")
181156
- message.messageScheduleTimestamp = parseInt(object.messageScheduleTimestamp, 10);
181157
- else if (typeof object.messageScheduleTimestamp === "number")
181158
- message.messageScheduleTimestamp = object.messageScheduleTimestamp;
181159
- else if (typeof object.messageScheduleTimestamp === "object")
181160
- message.messageScheduleTimestamp = new $util.LongBits(object.messageScheduleTimestamp.low >>> 0, object.messageScheduleTimestamp.high >>> 0).toNumber(true);
181161
- if (object.deliveryPlatformId != null)
181162
- message.deliveryPlatformId = String(object.deliveryPlatformId);
181163
- switch (object.deliveryPlatformProvider) {
181164
- case "DELIVERY_PLATFORM_UNKNOWN":
181165
- case 0:
181166
- message.deliveryPlatformProvider = 0;
181167
- break;
181168
- case "DELIVERY_PLATFORM_BRAZE":
181169
- case 1:
181170
- message.deliveryPlatformProvider = 1;
181171
- break;
181172
- }
181173
- if (object.userMessageNotifications) {
181174
- if (!Array.isArray(object.userMessageNotifications))
181175
- throw TypeError(".UserMessageDeliveryScheduledEvent.userMessageNotifications: array expected");
181176
- message.userMessageNotifications = [];
181177
- for (var i = 0; i < object.userMessageNotifications.length; ++i) {
181178
- if (typeof object.userMessageNotifications[i] !== "object")
181179
- throw TypeError(".UserMessageDeliveryScheduledEvent.userMessageNotifications: object expected");
181180
- message.userMessageNotifications[i] = $root.UserMessageNotification.fromObject(object.userMessageNotifications[i]);
181181
- }
181182
- }
181183
- return message;
181184
- };
181185
-
181186
- /**
181187
- * Creates a plain object from a UserMessageDeliveryScheduledEvent message. Also converts values to other types if specified.
181188
- * @function toObject
181189
- * @memberof UserMessageDeliveryScheduledEvent
181190
- * @static
181191
- * @param {UserMessageDeliveryScheduledEvent} message UserMessageDeliveryScheduledEvent
181192
- * @param {$protobuf.IConversionOptions} [options] Conversion options
181193
- * @returns {Object.<string,*>} Plain object
181194
- */
181195
- UserMessageDeliveryScheduledEvent.toObject = function toObject(message, options) {
181196
- if (!options)
181197
- options = {};
181198
- var object = {};
181199
- if (options.arrays || options.defaults)
181200
- object.userMessageNotifications = [];
181201
- if (options.defaults) {
181202
- if ($util.Long) {
181203
- var long = new $util.Long(0, 0, true);
181204
- object.messageScheduleTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
181205
- } else
181206
- object.messageScheduleTimestamp = options.longs === String ? "0" : 0;
181207
- object.deliveryPlatformId = "";
181208
- object.deliveryPlatformProvider = options.enums === String ? "DELIVERY_PLATFORM_UNKNOWN" : 0;
181209
- }
181210
- if (message.messageScheduleTimestamp != null && message.hasOwnProperty("messageScheduleTimestamp"))
181211
- if (typeof message.messageScheduleTimestamp === "number")
181212
- object.messageScheduleTimestamp = options.longs === String ? String(message.messageScheduleTimestamp) : message.messageScheduleTimestamp;
181213
- else
181214
- object.messageScheduleTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.messageScheduleTimestamp) : options.longs === Number ? new $util.LongBits(message.messageScheduleTimestamp.low >>> 0, message.messageScheduleTimestamp.high >>> 0).toNumber(true) : message.messageScheduleTimestamp;
181215
- if (message.deliveryPlatformId != null && message.hasOwnProperty("deliveryPlatformId"))
181216
- object.deliveryPlatformId = message.deliveryPlatformId;
181217
- if (message.deliveryPlatformProvider != null && message.hasOwnProperty("deliveryPlatformProvider"))
181218
- object.deliveryPlatformProvider = options.enums === String ? $root.DeliveryPlatformProvider[message.deliveryPlatformProvider] : message.deliveryPlatformProvider;
181219
- if (message.userMessageNotifications && message.userMessageNotifications.length) {
181220
- object.userMessageNotifications = [];
181221
- for (var j = 0; j < message.userMessageNotifications.length; ++j)
181222
- object.userMessageNotifications[j] = $root.UserMessageNotification.toObject(message.userMessageNotifications[j], options);
181223
- }
181224
- return object;
181225
- };
181226
-
181227
- /**
181228
- * Converts this UserMessageDeliveryScheduledEvent to JSON.
181229
- * @function toJSON
181230
- * @memberof UserMessageDeliveryScheduledEvent
181231
- * @instance
181232
- * @returns {Object.<string,*>} JSON object
181233
- */
181234
- UserMessageDeliveryScheduledEvent.prototype.toJSON = function toJSON() {
181235
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
181236
- };
181237
-
181238
- return UserMessageDeliveryScheduledEvent;
181239
- })();
181240
-
181241
- $root.UserMessageNotification = (function() {
181242
-
181243
- /**
181244
- * Properties of a UserMessageNotification.
181245
- * @name IUserMessageNotification
181246
- * @interface IUserMessageNotification
181247
- * @property {string|null} [userId] UserMessageNotification userId
181248
- * @property {Object.<string,string>|null} [metadata] UserMessageNotification metadata
181249
- */
181250
-
181251
- /**
181252
- * Constructs a new UserMessageNotification.
181253
- * @name UserMessageNotification
181254
- * @classdesc Represents a UserMessageNotification.
181255
- * @implements IUserMessageNotification
181256
- * @constructor
181257
- * @param {IUserMessageNotification=} [properties] Properties to set
181258
- */
181259
- function UserMessageNotification(properties) {
181260
- this.metadata = {};
181261
- if (properties)
181262
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
181263
- if (properties[keys[i]] != null)
181264
- this[keys[i]] = properties[keys[i]];
181265
- }
181266
-
181267
- /**
181268
- * UserMessageNotification userId.
181269
- * @member {string} userId
181270
- * @memberof UserMessageNotification
181271
- * @instance
181272
- */
181273
- UserMessageNotification.prototype.userId = "";
181274
-
181275
- /**
181276
- * UserMessageNotification metadata.
181277
- * @member {Object.<string,string>} metadata
181278
- * @memberof UserMessageNotification
181279
- * @instance
181280
- */
181281
- UserMessageNotification.prototype.metadata = $util.emptyObject;
181282
-
181283
- /**
181284
- * Creates a new UserMessageNotification instance using the specified properties.
181285
- * @function create
181286
- * @memberof UserMessageNotification
181287
- * @static
181288
- * @param {IUserMessageNotification=} [properties] Properties to set
181289
- * @returns {UserMessageNotification} UserMessageNotification instance
181290
- */
181291
- UserMessageNotification.create = function create(properties) {
181292
- return new UserMessageNotification(properties);
181293
- };
181294
-
181295
- /**
181296
- * Encodes the specified UserMessageNotification message. Does not implicitly {@link UserMessageNotification.verify|verify} messages.
181297
- * @function encode
181298
- * @memberof UserMessageNotification
181299
- * @static
181300
- * @param {IUserMessageNotification} message UserMessageNotification message or plain object to encode
181301
- * @param {$protobuf.Writer} [writer] Writer to encode to
181302
- * @returns {$protobuf.Writer} Writer
181303
- */
181304
- UserMessageNotification.encode = function encode(message, writer) {
181305
- if (!writer)
181306
- writer = $Writer.create();
181307
- if (message.userId != null && message.hasOwnProperty("userId"))
181308
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
181309
- if (message.metadata != null && message.hasOwnProperty("metadata"))
181310
- for (var keys = Object.keys(message.metadata), i = 0; i < keys.length; ++i)
181311
- writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.metadata[keys[i]]).ldelim();
181312
- return writer;
181313
- };
181314
-
181315
- /**
181316
- * Encodes the specified UserMessageNotification message, length delimited. Does not implicitly {@link UserMessageNotification.verify|verify} messages.
181317
- * @function encodeDelimited
181318
- * @memberof UserMessageNotification
181319
- * @static
181320
- * @param {IUserMessageNotification} message UserMessageNotification message or plain object to encode
181321
- * @param {$protobuf.Writer} [writer] Writer to encode to
181322
- * @returns {$protobuf.Writer} Writer
181323
- */
181324
- UserMessageNotification.encodeDelimited = function encodeDelimited(message, writer) {
181325
- return this.encode(message, writer).ldelim();
181326
- };
181327
-
181328
- /**
181329
- * Decodes a UserMessageNotification message from the specified reader or buffer.
181330
- * @function decode
181331
- * @memberof UserMessageNotification
181332
- * @static
181333
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
181334
- * @param {number} [length] Message length if known beforehand
181335
- * @returns {UserMessageNotification} UserMessageNotification
181336
- * @throws {Error} If the payload is not a reader or valid buffer
181337
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
181338
- */
181339
- UserMessageNotification.decode = function decode(reader, length) {
181340
- if (!(reader instanceof $Reader))
181341
- reader = $Reader.create(reader);
181342
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserMessageNotification(), key;
181343
- while (reader.pos < end) {
181344
- var tag = reader.uint32();
181345
- switch (tag >>> 3) {
181346
- case 1:
181347
- message.userId = reader.string();
181348
- break;
181349
- case 2:
181350
- reader.skip().pos++;
181351
- if (message.metadata === $util.emptyObject)
181352
- message.metadata = {};
181353
- key = reader.string();
181354
- reader.pos++;
181355
- message.metadata[key] = reader.string();
181356
- break;
181357
- default:
181358
- reader.skipType(tag & 7);
181359
- break;
181360
- }
181361
- }
181362
- return message;
181363
- };
181364
-
181365
- /**
181366
- * Decodes a UserMessageNotification message from the specified reader or buffer, length delimited.
181367
- * @function decodeDelimited
181368
- * @memberof UserMessageNotification
181369
- * @static
181370
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
181371
- * @returns {UserMessageNotification} UserMessageNotification
181372
- * @throws {Error} If the payload is not a reader or valid buffer
181373
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
181374
- */
181375
- UserMessageNotification.decodeDelimited = function decodeDelimited(reader) {
181376
- if (!(reader instanceof $Reader))
181377
- reader = new $Reader(reader);
181378
- return this.decode(reader, reader.uint32());
181379
- };
181380
-
181381
- /**
181382
- * Verifies a UserMessageNotification message.
181383
- * @function verify
181384
- * @memberof UserMessageNotification
181385
- * @static
181386
- * @param {Object.<string,*>} message Plain object to verify
181387
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
181388
- */
181389
- UserMessageNotification.verify = function verify(message) {
181390
- if (typeof message !== "object" || message === null)
181391
- return "object expected";
181392
- if (message.userId != null && message.hasOwnProperty("userId"))
181393
- if (!$util.isString(message.userId))
181394
- return "userId: string expected";
181395
- if (message.metadata != null && message.hasOwnProperty("metadata")) {
181396
- if (!$util.isObject(message.metadata))
181397
- return "metadata: object expected";
181398
- var key = Object.keys(message.metadata);
181399
- for (var i = 0; i < key.length; ++i)
181400
- if (!$util.isString(message.metadata[key[i]]))
181401
- return "metadata: string{k:string} expected";
181402
- }
181403
- return null;
181404
- };
181405
-
181406
- /**
181407
- * Creates a UserMessageNotification message from a plain object. Also converts values to their respective internal types.
181408
- * @function fromObject
181409
- * @memberof UserMessageNotification
181410
- * @static
181411
- * @param {Object.<string,*>} object Plain object
181412
- * @returns {UserMessageNotification} UserMessageNotification
181413
- */
181414
- UserMessageNotification.fromObject = function fromObject(object) {
181415
- if (object instanceof $root.UserMessageNotification)
181416
- return object;
181417
- var message = new $root.UserMessageNotification();
181418
- if (object.userId != null)
181419
- message.userId = String(object.userId);
181420
- if (object.metadata) {
181421
- if (typeof object.metadata !== "object")
181422
- throw TypeError(".UserMessageNotification.metadata: object expected");
181423
- message.metadata = {};
181424
- for (var keys = Object.keys(object.metadata), i = 0; i < keys.length; ++i)
181425
- message.metadata[keys[i]] = String(object.metadata[keys[i]]);
181426
- }
181427
- return message;
181428
- };
181429
-
181430
- /**
181431
- * Creates a plain object from a UserMessageNotification message. Also converts values to other types if specified.
181432
- * @function toObject
181433
- * @memberof UserMessageNotification
181434
- * @static
181435
- * @param {UserMessageNotification} message UserMessageNotification
181436
- * @param {$protobuf.IConversionOptions} [options] Conversion options
181437
- * @returns {Object.<string,*>} Plain object
181438
- */
181439
- UserMessageNotification.toObject = function toObject(message, options) {
181440
- if (!options)
181441
- options = {};
181442
- var object = {};
181443
- if (options.objects || options.defaults)
181444
- object.metadata = {};
181445
- if (options.defaults)
181446
- object.userId = "";
181447
- if (message.userId != null && message.hasOwnProperty("userId"))
181448
- object.userId = message.userId;
181449
- var keys2;
181450
- if (message.metadata && (keys2 = Object.keys(message.metadata)).length) {
181451
- object.metadata = {};
181452
- for (var j = 0; j < keys2.length; ++j)
181453
- object.metadata[keys2[j]] = message.metadata[keys2[j]];
181454
- }
181455
- return object;
181456
- };
181457
-
181458
- /**
181459
- * Converts this UserMessageNotification to JSON.
181460
- * @function toJSON
181461
- * @memberof UserMessageNotification
181462
- * @instance
181463
- * @returns {Object.<string,*>} JSON object
181464
- */
181465
- UserMessageNotification.prototype.toJSON = function toJSON() {
181466
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
181467
- };
181468
-
181469
- return UserMessageNotification;
181470
- })();
181471
-
181472
- $root.UserMessageProcessMessagesEvent = (function() {
181473
-
181474
- /**
181475
- * Properties of a UserMessageProcessMessagesEvent.
181476
- * @name IUserMessageProcessMessagesEvent
181477
- * @interface IUserMessageProcessMessagesEvent
181478
- * @property {string|null} [filePath] UserMessageProcessMessagesEvent filePath
181479
- */
181480
-
181481
- /**
181482
- * Constructs a new UserMessageProcessMessagesEvent.
181483
- * @name UserMessageProcessMessagesEvent
181484
- * @classdesc Represents a UserMessageProcessMessagesEvent.
181485
- * @implements IUserMessageProcessMessagesEvent
181486
- * @constructor
181487
- * @param {IUserMessageProcessMessagesEvent=} [properties] Properties to set
181488
- */
181489
- function UserMessageProcessMessagesEvent(properties) {
181490
- if (properties)
181491
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
181492
- if (properties[keys[i]] != null)
181493
- this[keys[i]] = properties[keys[i]];
181494
- }
181495
-
181496
- /**
181497
- * UserMessageProcessMessagesEvent filePath.
181498
- * @member {string} filePath
181499
- * @memberof UserMessageProcessMessagesEvent
181500
- * @instance
181501
- */
181502
- UserMessageProcessMessagesEvent.prototype.filePath = "";
181503
-
181504
- /**
181505
- * Creates a new UserMessageProcessMessagesEvent instance using the specified properties.
181506
- * @function create
181507
- * @memberof UserMessageProcessMessagesEvent
181508
- * @static
181509
- * @param {IUserMessageProcessMessagesEvent=} [properties] Properties to set
181510
- * @returns {UserMessageProcessMessagesEvent} UserMessageProcessMessagesEvent instance
181511
- */
181512
- UserMessageProcessMessagesEvent.create = function create(properties) {
181513
- return new UserMessageProcessMessagesEvent(properties);
181514
- };
181515
-
181516
- /**
181517
- * Encodes the specified UserMessageProcessMessagesEvent message. Does not implicitly {@link UserMessageProcessMessagesEvent.verify|verify} messages.
181518
- * @function encode
181519
- * @memberof UserMessageProcessMessagesEvent
181520
- * @static
181521
- * @param {IUserMessageProcessMessagesEvent} message UserMessageProcessMessagesEvent message or plain object to encode
181522
- * @param {$protobuf.Writer} [writer] Writer to encode to
181523
- * @returns {$protobuf.Writer} Writer
181524
- */
181525
- UserMessageProcessMessagesEvent.encode = function encode(message, writer) {
181526
- if (!writer)
181527
- writer = $Writer.create();
181528
- if (message.filePath != null && message.hasOwnProperty("filePath"))
181529
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.filePath);
181530
- return writer;
181531
- };
181532
-
181533
- /**
181534
- * Encodes the specified UserMessageProcessMessagesEvent message, length delimited. Does not implicitly {@link UserMessageProcessMessagesEvent.verify|verify} messages.
181535
- * @function encodeDelimited
181536
- * @memberof UserMessageProcessMessagesEvent
181537
- * @static
181538
- * @param {IUserMessageProcessMessagesEvent} message UserMessageProcessMessagesEvent message or plain object to encode
181539
- * @param {$protobuf.Writer} [writer] Writer to encode to
181540
- * @returns {$protobuf.Writer} Writer
181541
- */
181542
- UserMessageProcessMessagesEvent.encodeDelimited = function encodeDelimited(message, writer) {
181543
- return this.encode(message, writer).ldelim();
181544
- };
181545
-
181546
- /**
181547
- * Decodes a UserMessageProcessMessagesEvent message from the specified reader or buffer.
181548
- * @function decode
181549
- * @memberof UserMessageProcessMessagesEvent
181550
- * @static
181551
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
181552
- * @param {number} [length] Message length if known beforehand
181553
- * @returns {UserMessageProcessMessagesEvent} UserMessageProcessMessagesEvent
181554
- * @throws {Error} If the payload is not a reader or valid buffer
181555
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
181556
- */
181557
- UserMessageProcessMessagesEvent.decode = function decode(reader, length) {
181558
- if (!(reader instanceof $Reader))
181559
- reader = $Reader.create(reader);
181560
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserMessageProcessMessagesEvent();
181561
- while (reader.pos < end) {
181562
- var tag = reader.uint32();
181563
- switch (tag >>> 3) {
181564
- case 1:
181565
- message.filePath = reader.string();
181566
- break;
181567
- default:
181568
- reader.skipType(tag & 7);
181569
- break;
181570
- }
181571
- }
181572
- return message;
181573
- };
181574
-
181575
- /**
181576
- * Decodes a UserMessageProcessMessagesEvent message from the specified reader or buffer, length delimited.
181577
- * @function decodeDelimited
181578
- * @memberof UserMessageProcessMessagesEvent
181579
- * @static
181580
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
181581
- * @returns {UserMessageProcessMessagesEvent} UserMessageProcessMessagesEvent
181582
- * @throws {Error} If the payload is not a reader or valid buffer
181583
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
181584
- */
181585
- UserMessageProcessMessagesEvent.decodeDelimited = function decodeDelimited(reader) {
181586
- if (!(reader instanceof $Reader))
181587
- reader = new $Reader(reader);
181588
- return this.decode(reader, reader.uint32());
181589
- };
181590
-
181591
- /**
181592
- * Verifies a UserMessageProcessMessagesEvent message.
181593
- * @function verify
181594
- * @memberof UserMessageProcessMessagesEvent
181595
- * @static
181596
- * @param {Object.<string,*>} message Plain object to verify
181597
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
181598
- */
181599
- UserMessageProcessMessagesEvent.verify = function verify(message) {
181600
- if (typeof message !== "object" || message === null)
181601
- return "object expected";
181602
- if (message.filePath != null && message.hasOwnProperty("filePath"))
181603
- if (!$util.isString(message.filePath))
181604
- return "filePath: string expected";
181605
- return null;
181606
- };
181607
-
181608
- /**
181609
- * Creates a UserMessageProcessMessagesEvent message from a plain object. Also converts values to their respective internal types.
181610
- * @function fromObject
181611
- * @memberof UserMessageProcessMessagesEvent
181612
- * @static
181613
- * @param {Object.<string,*>} object Plain object
181614
- * @returns {UserMessageProcessMessagesEvent} UserMessageProcessMessagesEvent
181615
- */
181616
- UserMessageProcessMessagesEvent.fromObject = function fromObject(object) {
181617
- if (object instanceof $root.UserMessageProcessMessagesEvent)
181618
- return object;
181619
- var message = new $root.UserMessageProcessMessagesEvent();
181620
- if (object.filePath != null)
181621
- message.filePath = String(object.filePath);
181622
- return message;
181623
- };
181624
-
181625
- /**
181626
- * Creates a plain object from a UserMessageProcessMessagesEvent message. Also converts values to other types if specified.
181627
- * @function toObject
181628
- * @memberof UserMessageProcessMessagesEvent
181629
- * @static
181630
- * @param {UserMessageProcessMessagesEvent} message UserMessageProcessMessagesEvent
181631
- * @param {$protobuf.IConversionOptions} [options] Conversion options
181632
- * @returns {Object.<string,*>} Plain object
181633
- */
181634
- UserMessageProcessMessagesEvent.toObject = function toObject(message, options) {
181635
- if (!options)
181636
- options = {};
181637
- var object = {};
181638
- if (options.defaults)
181639
- object.filePath = "";
181640
- if (message.filePath != null && message.hasOwnProperty("filePath"))
181641
- object.filePath = message.filePath;
181642
- return object;
181643
- };
181644
-
181645
- /**
181646
- * Converts this UserMessageProcessMessagesEvent to JSON.
181647
- * @function toJSON
181648
- * @memberof UserMessageProcessMessagesEvent
181649
- * @instance
181650
- * @returns {Object.<string,*>} JSON object
181651
- */
181652
- UserMessageProcessMessagesEvent.prototype.toJSON = function toJSON() {
181653
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
181654
- };
181655
-
181656
- return UserMessageProcessMessagesEvent;
181657
- })();
181658
-
181659
180924
  $root.VirginPulseAccountLinked = (function() {
181660
180925
 
181661
180926
  /**
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.603.0"
19
+ "version": "1.604.0"
20
20
  }