@headspace/protos-events 1.215.0 → 1.216.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 +114 -0
- package/lib/index.js +276 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -27341,6 +27341,120 @@ export class UserEmailMarketingSubscriptionStatusUpdated implements IUserEmailMa
|
|
|
27341
27341
|
public toJSON(): { [k: string]: any };
|
|
27342
27342
|
}
|
|
27343
27343
|
|
|
27344
|
+
/** Properties of a UserMindfulMomentsSettingUpdated. */
|
|
27345
|
+
export interface IUserMindfulMomentsSettingUpdated {
|
|
27346
|
+
|
|
27347
|
+
/** UserMindfulMomentsSettingUpdated userId */
|
|
27348
|
+
userId?: (string|null);
|
|
27349
|
+
|
|
27350
|
+
/** UserMindfulMomentsSettingUpdated dailyMomentsCount */
|
|
27351
|
+
dailyMomentsCount?: (number|null);
|
|
27352
|
+
|
|
27353
|
+
/** UserMindfulMomentsSettingUpdated lastViewedMomentIdentifier */
|
|
27354
|
+
lastViewedMomentIdentifier?: (number|null);
|
|
27355
|
+
|
|
27356
|
+
/** UserMindfulMomentsSettingUpdated isEnabled */
|
|
27357
|
+
isEnabled?: (boolean|null);
|
|
27358
|
+
|
|
27359
|
+
/** UserMindfulMomentsSettingUpdated migratedToServer */
|
|
27360
|
+
migratedToServer?: (boolean|null);
|
|
27361
|
+
}
|
|
27362
|
+
|
|
27363
|
+
/** Represents a UserMindfulMomentsSettingUpdated. */
|
|
27364
|
+
export class UserMindfulMomentsSettingUpdated implements IUserMindfulMomentsSettingUpdated {
|
|
27365
|
+
|
|
27366
|
+
/**
|
|
27367
|
+
* Constructs a new UserMindfulMomentsSettingUpdated.
|
|
27368
|
+
* @param [properties] Properties to set
|
|
27369
|
+
*/
|
|
27370
|
+
constructor(properties?: IUserMindfulMomentsSettingUpdated);
|
|
27371
|
+
|
|
27372
|
+
/** UserMindfulMomentsSettingUpdated userId. */
|
|
27373
|
+
public userId: string;
|
|
27374
|
+
|
|
27375
|
+
/** UserMindfulMomentsSettingUpdated dailyMomentsCount. */
|
|
27376
|
+
public dailyMomentsCount: number;
|
|
27377
|
+
|
|
27378
|
+
/** UserMindfulMomentsSettingUpdated lastViewedMomentIdentifier. */
|
|
27379
|
+
public lastViewedMomentIdentifier: number;
|
|
27380
|
+
|
|
27381
|
+
/** UserMindfulMomentsSettingUpdated isEnabled. */
|
|
27382
|
+
public isEnabled: boolean;
|
|
27383
|
+
|
|
27384
|
+
/** UserMindfulMomentsSettingUpdated migratedToServer. */
|
|
27385
|
+
public migratedToServer: boolean;
|
|
27386
|
+
|
|
27387
|
+
/**
|
|
27388
|
+
* Creates a new UserMindfulMomentsSettingUpdated instance using the specified properties.
|
|
27389
|
+
* @param [properties] Properties to set
|
|
27390
|
+
* @returns UserMindfulMomentsSettingUpdated instance
|
|
27391
|
+
*/
|
|
27392
|
+
public static create(properties?: IUserMindfulMomentsSettingUpdated): UserMindfulMomentsSettingUpdated;
|
|
27393
|
+
|
|
27394
|
+
/**
|
|
27395
|
+
* Encodes the specified UserMindfulMomentsSettingUpdated message. Does not implicitly {@link UserMindfulMomentsSettingUpdated.verify|verify} messages.
|
|
27396
|
+
* @param message UserMindfulMomentsSettingUpdated message or plain object to encode
|
|
27397
|
+
* @param [writer] Writer to encode to
|
|
27398
|
+
* @returns Writer
|
|
27399
|
+
*/
|
|
27400
|
+
public static encode(message: IUserMindfulMomentsSettingUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
27401
|
+
|
|
27402
|
+
/**
|
|
27403
|
+
* Encodes the specified UserMindfulMomentsSettingUpdated message, length delimited. Does not implicitly {@link UserMindfulMomentsSettingUpdated.verify|verify} messages.
|
|
27404
|
+
* @param message UserMindfulMomentsSettingUpdated message or plain object to encode
|
|
27405
|
+
* @param [writer] Writer to encode to
|
|
27406
|
+
* @returns Writer
|
|
27407
|
+
*/
|
|
27408
|
+
public static encodeDelimited(message: IUserMindfulMomentsSettingUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
27409
|
+
|
|
27410
|
+
/**
|
|
27411
|
+
* Decodes a UserMindfulMomentsSettingUpdated message from the specified reader or buffer.
|
|
27412
|
+
* @param reader Reader or buffer to decode from
|
|
27413
|
+
* @param [length] Message length if known beforehand
|
|
27414
|
+
* @returns UserMindfulMomentsSettingUpdated
|
|
27415
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
27416
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
27417
|
+
*/
|
|
27418
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserMindfulMomentsSettingUpdated;
|
|
27419
|
+
|
|
27420
|
+
/**
|
|
27421
|
+
* Decodes a UserMindfulMomentsSettingUpdated message from the specified reader or buffer, length delimited.
|
|
27422
|
+
* @param reader Reader or buffer to decode from
|
|
27423
|
+
* @returns UserMindfulMomentsSettingUpdated
|
|
27424
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
27425
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
27426
|
+
*/
|
|
27427
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserMindfulMomentsSettingUpdated;
|
|
27428
|
+
|
|
27429
|
+
/**
|
|
27430
|
+
* Verifies a UserMindfulMomentsSettingUpdated message.
|
|
27431
|
+
* @param message Plain object to verify
|
|
27432
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
27433
|
+
*/
|
|
27434
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
27435
|
+
|
|
27436
|
+
/**
|
|
27437
|
+
* Creates a UserMindfulMomentsSettingUpdated message from a plain object. Also converts values to their respective internal types.
|
|
27438
|
+
* @param object Plain object
|
|
27439
|
+
* @returns UserMindfulMomentsSettingUpdated
|
|
27440
|
+
*/
|
|
27441
|
+
public static fromObject(object: { [k: string]: any }): UserMindfulMomentsSettingUpdated;
|
|
27442
|
+
|
|
27443
|
+
/**
|
|
27444
|
+
* Creates a plain object from a UserMindfulMomentsSettingUpdated message. Also converts values to other types if specified.
|
|
27445
|
+
* @param message UserMindfulMomentsSettingUpdated
|
|
27446
|
+
* @param [options] Conversion options
|
|
27447
|
+
* @returns Plain object
|
|
27448
|
+
*/
|
|
27449
|
+
public static toObject(message: UserMindfulMomentsSettingUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
27450
|
+
|
|
27451
|
+
/**
|
|
27452
|
+
* Converts this UserMindfulMomentsSettingUpdated to JSON.
|
|
27453
|
+
* @returns JSON object
|
|
27454
|
+
*/
|
|
27455
|
+
public toJSON(): { [k: string]: any };
|
|
27456
|
+
}
|
|
27457
|
+
|
|
27344
27458
|
/** Properties of a UserUnsubscribeRequested. */
|
|
27345
27459
|
export interface IUserUnsubscribeRequested {
|
|
27346
27460
|
|
package/lib/index.js
CHANGED
|
@@ -77741,6 +77741,282 @@ $root.UserEmailMarketingSubscriptionStatusUpdated = (function() {
|
|
|
77741
77741
|
return UserEmailMarketingSubscriptionStatusUpdated;
|
|
77742
77742
|
})();
|
|
77743
77743
|
|
|
77744
|
+
$root.UserMindfulMomentsSettingUpdated = (function() {
|
|
77745
|
+
|
|
77746
|
+
/**
|
|
77747
|
+
* Properties of a UserMindfulMomentsSettingUpdated.
|
|
77748
|
+
* @exports IUserMindfulMomentsSettingUpdated
|
|
77749
|
+
* @interface IUserMindfulMomentsSettingUpdated
|
|
77750
|
+
* @property {string|null} [userId] UserMindfulMomentsSettingUpdated userId
|
|
77751
|
+
* @property {number|null} [dailyMomentsCount] UserMindfulMomentsSettingUpdated dailyMomentsCount
|
|
77752
|
+
* @property {number|null} [lastViewedMomentIdentifier] UserMindfulMomentsSettingUpdated lastViewedMomentIdentifier
|
|
77753
|
+
* @property {boolean|null} [isEnabled] UserMindfulMomentsSettingUpdated isEnabled
|
|
77754
|
+
* @property {boolean|null} [migratedToServer] UserMindfulMomentsSettingUpdated migratedToServer
|
|
77755
|
+
*/
|
|
77756
|
+
|
|
77757
|
+
/**
|
|
77758
|
+
* Constructs a new UserMindfulMomentsSettingUpdated.
|
|
77759
|
+
* @exports UserMindfulMomentsSettingUpdated
|
|
77760
|
+
* @classdesc Represents a UserMindfulMomentsSettingUpdated.
|
|
77761
|
+
* @implements IUserMindfulMomentsSettingUpdated
|
|
77762
|
+
* @constructor
|
|
77763
|
+
* @param {IUserMindfulMomentsSettingUpdated=} [properties] Properties to set
|
|
77764
|
+
*/
|
|
77765
|
+
function UserMindfulMomentsSettingUpdated(properties) {
|
|
77766
|
+
if (properties)
|
|
77767
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
77768
|
+
if (properties[keys[i]] != null)
|
|
77769
|
+
this[keys[i]] = properties[keys[i]];
|
|
77770
|
+
}
|
|
77771
|
+
|
|
77772
|
+
/**
|
|
77773
|
+
* UserMindfulMomentsSettingUpdated userId.
|
|
77774
|
+
* @member {string} userId
|
|
77775
|
+
* @memberof UserMindfulMomentsSettingUpdated
|
|
77776
|
+
* @instance
|
|
77777
|
+
*/
|
|
77778
|
+
UserMindfulMomentsSettingUpdated.prototype.userId = "";
|
|
77779
|
+
|
|
77780
|
+
/**
|
|
77781
|
+
* UserMindfulMomentsSettingUpdated dailyMomentsCount.
|
|
77782
|
+
* @member {number} dailyMomentsCount
|
|
77783
|
+
* @memberof UserMindfulMomentsSettingUpdated
|
|
77784
|
+
* @instance
|
|
77785
|
+
*/
|
|
77786
|
+
UserMindfulMomentsSettingUpdated.prototype.dailyMomentsCount = 0;
|
|
77787
|
+
|
|
77788
|
+
/**
|
|
77789
|
+
* UserMindfulMomentsSettingUpdated lastViewedMomentIdentifier.
|
|
77790
|
+
* @member {number} lastViewedMomentIdentifier
|
|
77791
|
+
* @memberof UserMindfulMomentsSettingUpdated
|
|
77792
|
+
* @instance
|
|
77793
|
+
*/
|
|
77794
|
+
UserMindfulMomentsSettingUpdated.prototype.lastViewedMomentIdentifier = 0;
|
|
77795
|
+
|
|
77796
|
+
/**
|
|
77797
|
+
* UserMindfulMomentsSettingUpdated isEnabled.
|
|
77798
|
+
* @member {boolean} isEnabled
|
|
77799
|
+
* @memberof UserMindfulMomentsSettingUpdated
|
|
77800
|
+
* @instance
|
|
77801
|
+
*/
|
|
77802
|
+
UserMindfulMomentsSettingUpdated.prototype.isEnabled = false;
|
|
77803
|
+
|
|
77804
|
+
/**
|
|
77805
|
+
* UserMindfulMomentsSettingUpdated migratedToServer.
|
|
77806
|
+
* @member {boolean} migratedToServer
|
|
77807
|
+
* @memberof UserMindfulMomentsSettingUpdated
|
|
77808
|
+
* @instance
|
|
77809
|
+
*/
|
|
77810
|
+
UserMindfulMomentsSettingUpdated.prototype.migratedToServer = false;
|
|
77811
|
+
|
|
77812
|
+
/**
|
|
77813
|
+
* Creates a new UserMindfulMomentsSettingUpdated instance using the specified properties.
|
|
77814
|
+
* @function create
|
|
77815
|
+
* @memberof UserMindfulMomentsSettingUpdated
|
|
77816
|
+
* @static
|
|
77817
|
+
* @param {IUserMindfulMomentsSettingUpdated=} [properties] Properties to set
|
|
77818
|
+
* @returns {UserMindfulMomentsSettingUpdated} UserMindfulMomentsSettingUpdated instance
|
|
77819
|
+
*/
|
|
77820
|
+
UserMindfulMomentsSettingUpdated.create = function create(properties) {
|
|
77821
|
+
return new UserMindfulMomentsSettingUpdated(properties);
|
|
77822
|
+
};
|
|
77823
|
+
|
|
77824
|
+
/**
|
|
77825
|
+
* Encodes the specified UserMindfulMomentsSettingUpdated message. Does not implicitly {@link UserMindfulMomentsSettingUpdated.verify|verify} messages.
|
|
77826
|
+
* @function encode
|
|
77827
|
+
* @memberof UserMindfulMomentsSettingUpdated
|
|
77828
|
+
* @static
|
|
77829
|
+
* @param {IUserMindfulMomentsSettingUpdated} message UserMindfulMomentsSettingUpdated message or plain object to encode
|
|
77830
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
77831
|
+
* @returns {$protobuf.Writer} Writer
|
|
77832
|
+
*/
|
|
77833
|
+
UserMindfulMomentsSettingUpdated.encode = function encode(message, writer) {
|
|
77834
|
+
if (!writer)
|
|
77835
|
+
writer = $Writer.create();
|
|
77836
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
77837
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
|
|
77838
|
+
if (message.dailyMomentsCount != null && message.hasOwnProperty("dailyMomentsCount"))
|
|
77839
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.dailyMomentsCount);
|
|
77840
|
+
if (message.lastViewedMomentIdentifier != null && message.hasOwnProperty("lastViewedMomentIdentifier"))
|
|
77841
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.lastViewedMomentIdentifier);
|
|
77842
|
+
if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
|
|
77843
|
+
writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isEnabled);
|
|
77844
|
+
if (message.migratedToServer != null && message.hasOwnProperty("migratedToServer"))
|
|
77845
|
+
writer.uint32(/* id 5, wireType 0 =*/40).bool(message.migratedToServer);
|
|
77846
|
+
return writer;
|
|
77847
|
+
};
|
|
77848
|
+
|
|
77849
|
+
/**
|
|
77850
|
+
* Encodes the specified UserMindfulMomentsSettingUpdated message, length delimited. Does not implicitly {@link UserMindfulMomentsSettingUpdated.verify|verify} messages.
|
|
77851
|
+
* @function encodeDelimited
|
|
77852
|
+
* @memberof UserMindfulMomentsSettingUpdated
|
|
77853
|
+
* @static
|
|
77854
|
+
* @param {IUserMindfulMomentsSettingUpdated} message UserMindfulMomentsSettingUpdated message or plain object to encode
|
|
77855
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
77856
|
+
* @returns {$protobuf.Writer} Writer
|
|
77857
|
+
*/
|
|
77858
|
+
UserMindfulMomentsSettingUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
77859
|
+
return this.encode(message, writer).ldelim();
|
|
77860
|
+
};
|
|
77861
|
+
|
|
77862
|
+
/**
|
|
77863
|
+
* Decodes a UserMindfulMomentsSettingUpdated message from the specified reader or buffer.
|
|
77864
|
+
* @function decode
|
|
77865
|
+
* @memberof UserMindfulMomentsSettingUpdated
|
|
77866
|
+
* @static
|
|
77867
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
77868
|
+
* @param {number} [length] Message length if known beforehand
|
|
77869
|
+
* @returns {UserMindfulMomentsSettingUpdated} UserMindfulMomentsSettingUpdated
|
|
77870
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
77871
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
77872
|
+
*/
|
|
77873
|
+
UserMindfulMomentsSettingUpdated.decode = function decode(reader, length) {
|
|
77874
|
+
if (!(reader instanceof $Reader))
|
|
77875
|
+
reader = $Reader.create(reader);
|
|
77876
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserMindfulMomentsSettingUpdated();
|
|
77877
|
+
while (reader.pos < end) {
|
|
77878
|
+
var tag = reader.uint32();
|
|
77879
|
+
switch (tag >>> 3) {
|
|
77880
|
+
case 1:
|
|
77881
|
+
message.userId = reader.string();
|
|
77882
|
+
break;
|
|
77883
|
+
case 2:
|
|
77884
|
+
message.dailyMomentsCount = reader.int32();
|
|
77885
|
+
break;
|
|
77886
|
+
case 3:
|
|
77887
|
+
message.lastViewedMomentIdentifier = reader.int32();
|
|
77888
|
+
break;
|
|
77889
|
+
case 4:
|
|
77890
|
+
message.isEnabled = reader.bool();
|
|
77891
|
+
break;
|
|
77892
|
+
case 5:
|
|
77893
|
+
message.migratedToServer = reader.bool();
|
|
77894
|
+
break;
|
|
77895
|
+
default:
|
|
77896
|
+
reader.skipType(tag & 7);
|
|
77897
|
+
break;
|
|
77898
|
+
}
|
|
77899
|
+
}
|
|
77900
|
+
return message;
|
|
77901
|
+
};
|
|
77902
|
+
|
|
77903
|
+
/**
|
|
77904
|
+
* Decodes a UserMindfulMomentsSettingUpdated message from the specified reader or buffer, length delimited.
|
|
77905
|
+
* @function decodeDelimited
|
|
77906
|
+
* @memberof UserMindfulMomentsSettingUpdated
|
|
77907
|
+
* @static
|
|
77908
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
77909
|
+
* @returns {UserMindfulMomentsSettingUpdated} UserMindfulMomentsSettingUpdated
|
|
77910
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
77911
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
77912
|
+
*/
|
|
77913
|
+
UserMindfulMomentsSettingUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
77914
|
+
if (!(reader instanceof $Reader))
|
|
77915
|
+
reader = new $Reader(reader);
|
|
77916
|
+
return this.decode(reader, reader.uint32());
|
|
77917
|
+
};
|
|
77918
|
+
|
|
77919
|
+
/**
|
|
77920
|
+
* Verifies a UserMindfulMomentsSettingUpdated message.
|
|
77921
|
+
* @function verify
|
|
77922
|
+
* @memberof UserMindfulMomentsSettingUpdated
|
|
77923
|
+
* @static
|
|
77924
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
77925
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
77926
|
+
*/
|
|
77927
|
+
UserMindfulMomentsSettingUpdated.verify = function verify(message) {
|
|
77928
|
+
if (typeof message !== "object" || message === null)
|
|
77929
|
+
return "object expected";
|
|
77930
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
77931
|
+
if (!$util.isString(message.userId))
|
|
77932
|
+
return "userId: string expected";
|
|
77933
|
+
if (message.dailyMomentsCount != null && message.hasOwnProperty("dailyMomentsCount"))
|
|
77934
|
+
if (!$util.isInteger(message.dailyMomentsCount))
|
|
77935
|
+
return "dailyMomentsCount: integer expected";
|
|
77936
|
+
if (message.lastViewedMomentIdentifier != null && message.hasOwnProperty("lastViewedMomentIdentifier"))
|
|
77937
|
+
if (!$util.isInteger(message.lastViewedMomentIdentifier))
|
|
77938
|
+
return "lastViewedMomentIdentifier: integer expected";
|
|
77939
|
+
if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
|
|
77940
|
+
if (typeof message.isEnabled !== "boolean")
|
|
77941
|
+
return "isEnabled: boolean expected";
|
|
77942
|
+
if (message.migratedToServer != null && message.hasOwnProperty("migratedToServer"))
|
|
77943
|
+
if (typeof message.migratedToServer !== "boolean")
|
|
77944
|
+
return "migratedToServer: boolean expected";
|
|
77945
|
+
return null;
|
|
77946
|
+
};
|
|
77947
|
+
|
|
77948
|
+
/**
|
|
77949
|
+
* Creates a UserMindfulMomentsSettingUpdated message from a plain object. Also converts values to their respective internal types.
|
|
77950
|
+
* @function fromObject
|
|
77951
|
+
* @memberof UserMindfulMomentsSettingUpdated
|
|
77952
|
+
* @static
|
|
77953
|
+
* @param {Object.<string,*>} object Plain object
|
|
77954
|
+
* @returns {UserMindfulMomentsSettingUpdated} UserMindfulMomentsSettingUpdated
|
|
77955
|
+
*/
|
|
77956
|
+
UserMindfulMomentsSettingUpdated.fromObject = function fromObject(object) {
|
|
77957
|
+
if (object instanceof $root.UserMindfulMomentsSettingUpdated)
|
|
77958
|
+
return object;
|
|
77959
|
+
var message = new $root.UserMindfulMomentsSettingUpdated();
|
|
77960
|
+
if (object.userId != null)
|
|
77961
|
+
message.userId = String(object.userId);
|
|
77962
|
+
if (object.dailyMomentsCount != null)
|
|
77963
|
+
message.dailyMomentsCount = object.dailyMomentsCount | 0;
|
|
77964
|
+
if (object.lastViewedMomentIdentifier != null)
|
|
77965
|
+
message.lastViewedMomentIdentifier = object.lastViewedMomentIdentifier | 0;
|
|
77966
|
+
if (object.isEnabled != null)
|
|
77967
|
+
message.isEnabled = Boolean(object.isEnabled);
|
|
77968
|
+
if (object.migratedToServer != null)
|
|
77969
|
+
message.migratedToServer = Boolean(object.migratedToServer);
|
|
77970
|
+
return message;
|
|
77971
|
+
};
|
|
77972
|
+
|
|
77973
|
+
/**
|
|
77974
|
+
* Creates a plain object from a UserMindfulMomentsSettingUpdated message. Also converts values to other types if specified.
|
|
77975
|
+
* @function toObject
|
|
77976
|
+
* @memberof UserMindfulMomentsSettingUpdated
|
|
77977
|
+
* @static
|
|
77978
|
+
* @param {UserMindfulMomentsSettingUpdated} message UserMindfulMomentsSettingUpdated
|
|
77979
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
77980
|
+
* @returns {Object.<string,*>} Plain object
|
|
77981
|
+
*/
|
|
77982
|
+
UserMindfulMomentsSettingUpdated.toObject = function toObject(message, options) {
|
|
77983
|
+
if (!options)
|
|
77984
|
+
options = {};
|
|
77985
|
+
var object = {};
|
|
77986
|
+
if (options.defaults) {
|
|
77987
|
+
object.userId = "";
|
|
77988
|
+
object.dailyMomentsCount = 0;
|
|
77989
|
+
object.lastViewedMomentIdentifier = 0;
|
|
77990
|
+
object.isEnabled = false;
|
|
77991
|
+
object.migratedToServer = false;
|
|
77992
|
+
}
|
|
77993
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
77994
|
+
object.userId = message.userId;
|
|
77995
|
+
if (message.dailyMomentsCount != null && message.hasOwnProperty("dailyMomentsCount"))
|
|
77996
|
+
object.dailyMomentsCount = message.dailyMomentsCount;
|
|
77997
|
+
if (message.lastViewedMomentIdentifier != null && message.hasOwnProperty("lastViewedMomentIdentifier"))
|
|
77998
|
+
object.lastViewedMomentIdentifier = message.lastViewedMomentIdentifier;
|
|
77999
|
+
if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
|
|
78000
|
+
object.isEnabled = message.isEnabled;
|
|
78001
|
+
if (message.migratedToServer != null && message.hasOwnProperty("migratedToServer"))
|
|
78002
|
+
object.migratedToServer = message.migratedToServer;
|
|
78003
|
+
return object;
|
|
78004
|
+
};
|
|
78005
|
+
|
|
78006
|
+
/**
|
|
78007
|
+
* Converts this UserMindfulMomentsSettingUpdated to JSON.
|
|
78008
|
+
* @function toJSON
|
|
78009
|
+
* @memberof UserMindfulMomentsSettingUpdated
|
|
78010
|
+
* @instance
|
|
78011
|
+
* @returns {Object.<string,*>} JSON object
|
|
78012
|
+
*/
|
|
78013
|
+
UserMindfulMomentsSettingUpdated.prototype.toJSON = function toJSON() {
|
|
78014
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
78015
|
+
};
|
|
78016
|
+
|
|
78017
|
+
return UserMindfulMomentsSettingUpdated;
|
|
78018
|
+
})();
|
|
78019
|
+
|
|
77744
78020
|
$root.UserUnsubscribeRequested = (function() {
|
|
77745
78021
|
|
|
77746
78022
|
/**
|
package/package.json
CHANGED