@headspace/protos-events 0.0.4 → 0.0.7-alpha.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 +104 -2
- package/lib/index.js +255 -9
- package/package.json +2 -2
- package/sleep.proto +7 -0
- package/user.proto +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -215,6 +215,108 @@ export class FamilyMemberRemoved implements IFamilyMemberRemoved {
|
|
|
215
215
|
public toJSON(): { [k: string]: any };
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
+
/** Properties of a SleepcastEpisodeCompleted. */
|
|
219
|
+
export interface ISleepcastEpisodeCompleted {
|
|
220
|
+
|
|
221
|
+
/** SleepcastEpisodeCompleted timestamp */
|
|
222
|
+
timestamp?: (number|Long|null);
|
|
223
|
+
|
|
224
|
+
/** SleepcastEpisodeCompleted sleepcastId */
|
|
225
|
+
sleepcastId?: (number|null);
|
|
226
|
+
|
|
227
|
+
/** SleepcastEpisodeCompleted userId */
|
|
228
|
+
userId?: (string|null);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/** Represents a SleepcastEpisodeCompleted. */
|
|
232
|
+
export class SleepcastEpisodeCompleted implements ISleepcastEpisodeCompleted {
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Constructs a new SleepcastEpisodeCompleted.
|
|
236
|
+
* @param [properties] Properties to set
|
|
237
|
+
*/
|
|
238
|
+
constructor(properties?: ISleepcastEpisodeCompleted);
|
|
239
|
+
|
|
240
|
+
/** SleepcastEpisodeCompleted timestamp. */
|
|
241
|
+
public timestamp: (number|Long);
|
|
242
|
+
|
|
243
|
+
/** SleepcastEpisodeCompleted sleepcastId. */
|
|
244
|
+
public sleepcastId: number;
|
|
245
|
+
|
|
246
|
+
/** SleepcastEpisodeCompleted userId. */
|
|
247
|
+
public userId: string;
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* Creates a new SleepcastEpisodeCompleted instance using the specified properties.
|
|
251
|
+
* @param [properties] Properties to set
|
|
252
|
+
* @returns SleepcastEpisodeCompleted instance
|
|
253
|
+
*/
|
|
254
|
+
public static create(properties?: ISleepcastEpisodeCompleted): SleepcastEpisodeCompleted;
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Encodes the specified SleepcastEpisodeCompleted message. Does not implicitly {@link SleepcastEpisodeCompleted.verify|verify} messages.
|
|
258
|
+
* @param message SleepcastEpisodeCompleted message or plain object to encode
|
|
259
|
+
* @param [writer] Writer to encode to
|
|
260
|
+
* @returns Writer
|
|
261
|
+
*/
|
|
262
|
+
public static encode(message: ISleepcastEpisodeCompleted, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* Encodes the specified SleepcastEpisodeCompleted message, length delimited. Does not implicitly {@link SleepcastEpisodeCompleted.verify|verify} messages.
|
|
266
|
+
* @param message SleepcastEpisodeCompleted message or plain object to encode
|
|
267
|
+
* @param [writer] Writer to encode to
|
|
268
|
+
* @returns Writer
|
|
269
|
+
*/
|
|
270
|
+
public static encodeDelimited(message: ISleepcastEpisodeCompleted, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Decodes a SleepcastEpisodeCompleted message from the specified reader or buffer.
|
|
274
|
+
* @param reader Reader or buffer to decode from
|
|
275
|
+
* @param [length] Message length if known beforehand
|
|
276
|
+
* @returns SleepcastEpisodeCompleted
|
|
277
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
278
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
279
|
+
*/
|
|
280
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SleepcastEpisodeCompleted;
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* Decodes a SleepcastEpisodeCompleted message from the specified reader or buffer, length delimited.
|
|
284
|
+
* @param reader Reader or buffer to decode from
|
|
285
|
+
* @returns SleepcastEpisodeCompleted
|
|
286
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
287
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
288
|
+
*/
|
|
289
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SleepcastEpisodeCompleted;
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* Verifies a SleepcastEpisodeCompleted message.
|
|
293
|
+
* @param message Plain object to verify
|
|
294
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
295
|
+
*/
|
|
296
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* Creates a SleepcastEpisodeCompleted message from a plain object. Also converts values to their respective internal types.
|
|
300
|
+
* @param object Plain object
|
|
301
|
+
* @returns SleepcastEpisodeCompleted
|
|
302
|
+
*/
|
|
303
|
+
public static fromObject(object: { [k: string]: any }): SleepcastEpisodeCompleted;
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* Creates a plain object from a SleepcastEpisodeCompleted message. Also converts values to other types if specified.
|
|
307
|
+
* @param message SleepcastEpisodeCompleted
|
|
308
|
+
* @param [options] Conversion options
|
|
309
|
+
* @returns Plain object
|
|
310
|
+
*/
|
|
311
|
+
public static toObject(message: SleepcastEpisodeCompleted, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* Converts this SleepcastEpisodeCompleted to JSON.
|
|
315
|
+
* @returns JSON object
|
|
316
|
+
*/
|
|
317
|
+
public toJSON(): { [k: string]: any };
|
|
318
|
+
}
|
|
319
|
+
|
|
218
320
|
/** Properties of a SubscriptionCreated. */
|
|
219
321
|
export interface ISubscriptionCreated {
|
|
220
322
|
|
|
@@ -411,7 +513,7 @@ export class SubscriptionCancelled implements ISubscriptionCancelled {
|
|
|
411
513
|
export interface IUserPasswordUpdated {
|
|
412
514
|
|
|
413
515
|
/** UserPasswordUpdated userId */
|
|
414
|
-
userId?: (
|
|
516
|
+
userId?: (string|null);
|
|
415
517
|
|
|
416
518
|
/** UserPasswordUpdated updatedOn */
|
|
417
519
|
updatedOn?: (number|Long|null);
|
|
@@ -430,7 +532,7 @@ export class UserPasswordUpdated implements IUserPasswordUpdated {
|
|
|
430
532
|
constructor(properties?: IUserPasswordUpdated);
|
|
431
533
|
|
|
432
534
|
/** UserPasswordUpdated userId. */
|
|
433
|
-
public userId:
|
|
535
|
+
public userId: string;
|
|
434
536
|
|
|
435
537
|
/** UserPasswordUpdated updatedOn. */
|
|
436
538
|
public updatedOn: (number|Long);
|
package/lib/index.js
CHANGED
|
@@ -545,6 +545,252 @@ $root.FamilyMemberRemoved = (function() {
|
|
|
545
545
|
return FamilyMemberRemoved;
|
|
546
546
|
})();
|
|
547
547
|
|
|
548
|
+
$root.SleepcastEpisodeCompleted = (function() {
|
|
549
|
+
|
|
550
|
+
/**
|
|
551
|
+
* Properties of a SleepcastEpisodeCompleted.
|
|
552
|
+
* @exports ISleepcastEpisodeCompleted
|
|
553
|
+
* @interface ISleepcastEpisodeCompleted
|
|
554
|
+
* @property {number|Long|null} [timestamp] SleepcastEpisodeCompleted timestamp
|
|
555
|
+
* @property {number|null} [sleepcastId] SleepcastEpisodeCompleted sleepcastId
|
|
556
|
+
* @property {string|null} [userId] SleepcastEpisodeCompleted userId
|
|
557
|
+
*/
|
|
558
|
+
|
|
559
|
+
/**
|
|
560
|
+
* Constructs a new SleepcastEpisodeCompleted.
|
|
561
|
+
* @exports SleepcastEpisodeCompleted
|
|
562
|
+
* @classdesc Represents a SleepcastEpisodeCompleted.
|
|
563
|
+
* @implements ISleepcastEpisodeCompleted
|
|
564
|
+
* @constructor
|
|
565
|
+
* @param {ISleepcastEpisodeCompleted=} [properties] Properties to set
|
|
566
|
+
*/
|
|
567
|
+
function SleepcastEpisodeCompleted(properties) {
|
|
568
|
+
if (properties)
|
|
569
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
570
|
+
if (properties[keys[i]] != null)
|
|
571
|
+
this[keys[i]] = properties[keys[i]];
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
/**
|
|
575
|
+
* SleepcastEpisodeCompleted timestamp.
|
|
576
|
+
* @member {number|Long} timestamp
|
|
577
|
+
* @memberof SleepcastEpisodeCompleted
|
|
578
|
+
* @instance
|
|
579
|
+
*/
|
|
580
|
+
SleepcastEpisodeCompleted.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
581
|
+
|
|
582
|
+
/**
|
|
583
|
+
* SleepcastEpisodeCompleted sleepcastId.
|
|
584
|
+
* @member {number} sleepcastId
|
|
585
|
+
* @memberof SleepcastEpisodeCompleted
|
|
586
|
+
* @instance
|
|
587
|
+
*/
|
|
588
|
+
SleepcastEpisodeCompleted.prototype.sleepcastId = 0;
|
|
589
|
+
|
|
590
|
+
/**
|
|
591
|
+
* SleepcastEpisodeCompleted userId.
|
|
592
|
+
* @member {string} userId
|
|
593
|
+
* @memberof SleepcastEpisodeCompleted
|
|
594
|
+
* @instance
|
|
595
|
+
*/
|
|
596
|
+
SleepcastEpisodeCompleted.prototype.userId = "";
|
|
597
|
+
|
|
598
|
+
/**
|
|
599
|
+
* Creates a new SleepcastEpisodeCompleted instance using the specified properties.
|
|
600
|
+
* @function create
|
|
601
|
+
* @memberof SleepcastEpisodeCompleted
|
|
602
|
+
* @static
|
|
603
|
+
* @param {ISleepcastEpisodeCompleted=} [properties] Properties to set
|
|
604
|
+
* @returns {SleepcastEpisodeCompleted} SleepcastEpisodeCompleted instance
|
|
605
|
+
*/
|
|
606
|
+
SleepcastEpisodeCompleted.create = function create(properties) {
|
|
607
|
+
return new SleepcastEpisodeCompleted(properties);
|
|
608
|
+
};
|
|
609
|
+
|
|
610
|
+
/**
|
|
611
|
+
* Encodes the specified SleepcastEpisodeCompleted message. Does not implicitly {@link SleepcastEpisodeCompleted.verify|verify} messages.
|
|
612
|
+
* @function encode
|
|
613
|
+
* @memberof SleepcastEpisodeCompleted
|
|
614
|
+
* @static
|
|
615
|
+
* @param {ISleepcastEpisodeCompleted} message SleepcastEpisodeCompleted message or plain object to encode
|
|
616
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
617
|
+
* @returns {$protobuf.Writer} Writer
|
|
618
|
+
*/
|
|
619
|
+
SleepcastEpisodeCompleted.encode = function encode(message, writer) {
|
|
620
|
+
if (!writer)
|
|
621
|
+
writer = $Writer.create();
|
|
622
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
623
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
|
|
624
|
+
if (message.sleepcastId != null && message.hasOwnProperty("sleepcastId"))
|
|
625
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.sleepcastId);
|
|
626
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
627
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.userId);
|
|
628
|
+
return writer;
|
|
629
|
+
};
|
|
630
|
+
|
|
631
|
+
/**
|
|
632
|
+
* Encodes the specified SleepcastEpisodeCompleted message, length delimited. Does not implicitly {@link SleepcastEpisodeCompleted.verify|verify} messages.
|
|
633
|
+
* @function encodeDelimited
|
|
634
|
+
* @memberof SleepcastEpisodeCompleted
|
|
635
|
+
* @static
|
|
636
|
+
* @param {ISleepcastEpisodeCompleted} message SleepcastEpisodeCompleted message or plain object to encode
|
|
637
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
638
|
+
* @returns {$protobuf.Writer} Writer
|
|
639
|
+
*/
|
|
640
|
+
SleepcastEpisodeCompleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
641
|
+
return this.encode(message, writer).ldelim();
|
|
642
|
+
};
|
|
643
|
+
|
|
644
|
+
/**
|
|
645
|
+
* Decodes a SleepcastEpisodeCompleted message from the specified reader or buffer.
|
|
646
|
+
* @function decode
|
|
647
|
+
* @memberof SleepcastEpisodeCompleted
|
|
648
|
+
* @static
|
|
649
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
650
|
+
* @param {number} [length] Message length if known beforehand
|
|
651
|
+
* @returns {SleepcastEpisodeCompleted} SleepcastEpisodeCompleted
|
|
652
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
653
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
654
|
+
*/
|
|
655
|
+
SleepcastEpisodeCompleted.decode = function decode(reader, length) {
|
|
656
|
+
if (!(reader instanceof $Reader))
|
|
657
|
+
reader = $Reader.create(reader);
|
|
658
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SleepcastEpisodeCompleted();
|
|
659
|
+
while (reader.pos < end) {
|
|
660
|
+
var tag = reader.uint32();
|
|
661
|
+
switch (tag >>> 3) {
|
|
662
|
+
case 1:
|
|
663
|
+
message.timestamp = reader.uint64();
|
|
664
|
+
break;
|
|
665
|
+
case 2:
|
|
666
|
+
message.sleepcastId = reader.uint32();
|
|
667
|
+
break;
|
|
668
|
+
case 3:
|
|
669
|
+
message.userId = reader.string();
|
|
670
|
+
break;
|
|
671
|
+
default:
|
|
672
|
+
reader.skipType(tag & 7);
|
|
673
|
+
break;
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
return message;
|
|
677
|
+
};
|
|
678
|
+
|
|
679
|
+
/**
|
|
680
|
+
* Decodes a SleepcastEpisodeCompleted message from the specified reader or buffer, length delimited.
|
|
681
|
+
* @function decodeDelimited
|
|
682
|
+
* @memberof SleepcastEpisodeCompleted
|
|
683
|
+
* @static
|
|
684
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
685
|
+
* @returns {SleepcastEpisodeCompleted} SleepcastEpisodeCompleted
|
|
686
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
687
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
688
|
+
*/
|
|
689
|
+
SleepcastEpisodeCompleted.decodeDelimited = function decodeDelimited(reader) {
|
|
690
|
+
if (!(reader instanceof $Reader))
|
|
691
|
+
reader = new $Reader(reader);
|
|
692
|
+
return this.decode(reader, reader.uint32());
|
|
693
|
+
};
|
|
694
|
+
|
|
695
|
+
/**
|
|
696
|
+
* Verifies a SleepcastEpisodeCompleted message.
|
|
697
|
+
* @function verify
|
|
698
|
+
* @memberof SleepcastEpisodeCompleted
|
|
699
|
+
* @static
|
|
700
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
701
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
702
|
+
*/
|
|
703
|
+
SleepcastEpisodeCompleted.verify = function verify(message) {
|
|
704
|
+
if (typeof message !== "object" || message === null)
|
|
705
|
+
return "object expected";
|
|
706
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
707
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
708
|
+
return "timestamp: integer|Long expected";
|
|
709
|
+
if (message.sleepcastId != null && message.hasOwnProperty("sleepcastId"))
|
|
710
|
+
if (!$util.isInteger(message.sleepcastId))
|
|
711
|
+
return "sleepcastId: integer expected";
|
|
712
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
713
|
+
if (!$util.isString(message.userId))
|
|
714
|
+
return "userId: string expected";
|
|
715
|
+
return null;
|
|
716
|
+
};
|
|
717
|
+
|
|
718
|
+
/**
|
|
719
|
+
* Creates a SleepcastEpisodeCompleted message from a plain object. Also converts values to their respective internal types.
|
|
720
|
+
* @function fromObject
|
|
721
|
+
* @memberof SleepcastEpisodeCompleted
|
|
722
|
+
* @static
|
|
723
|
+
* @param {Object.<string,*>} object Plain object
|
|
724
|
+
* @returns {SleepcastEpisodeCompleted} SleepcastEpisodeCompleted
|
|
725
|
+
*/
|
|
726
|
+
SleepcastEpisodeCompleted.fromObject = function fromObject(object) {
|
|
727
|
+
if (object instanceof $root.SleepcastEpisodeCompleted)
|
|
728
|
+
return object;
|
|
729
|
+
var message = new $root.SleepcastEpisodeCompleted();
|
|
730
|
+
if (object.timestamp != null)
|
|
731
|
+
if ($util.Long)
|
|
732
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
733
|
+
else if (typeof object.timestamp === "string")
|
|
734
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
735
|
+
else if (typeof object.timestamp === "number")
|
|
736
|
+
message.timestamp = object.timestamp;
|
|
737
|
+
else if (typeof object.timestamp === "object")
|
|
738
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
739
|
+
if (object.sleepcastId != null)
|
|
740
|
+
message.sleepcastId = object.sleepcastId >>> 0;
|
|
741
|
+
if (object.userId != null)
|
|
742
|
+
message.userId = String(object.userId);
|
|
743
|
+
return message;
|
|
744
|
+
};
|
|
745
|
+
|
|
746
|
+
/**
|
|
747
|
+
* Creates a plain object from a SleepcastEpisodeCompleted message. Also converts values to other types if specified.
|
|
748
|
+
* @function toObject
|
|
749
|
+
* @memberof SleepcastEpisodeCompleted
|
|
750
|
+
* @static
|
|
751
|
+
* @param {SleepcastEpisodeCompleted} message SleepcastEpisodeCompleted
|
|
752
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
753
|
+
* @returns {Object.<string,*>} Plain object
|
|
754
|
+
*/
|
|
755
|
+
SleepcastEpisodeCompleted.toObject = function toObject(message, options) {
|
|
756
|
+
if (!options)
|
|
757
|
+
options = {};
|
|
758
|
+
var object = {};
|
|
759
|
+
if (options.defaults) {
|
|
760
|
+
if ($util.Long) {
|
|
761
|
+
var long = new $util.Long(0, 0, true);
|
|
762
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
763
|
+
} else
|
|
764
|
+
object.timestamp = options.longs === String ? "0" : 0;
|
|
765
|
+
object.sleepcastId = 0;
|
|
766
|
+
object.userId = "";
|
|
767
|
+
}
|
|
768
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
769
|
+
if (typeof message.timestamp === "number")
|
|
770
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
771
|
+
else
|
|
772
|
+
object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
|
|
773
|
+
if (message.sleepcastId != null && message.hasOwnProperty("sleepcastId"))
|
|
774
|
+
object.sleepcastId = message.sleepcastId;
|
|
775
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
776
|
+
object.userId = message.userId;
|
|
777
|
+
return object;
|
|
778
|
+
};
|
|
779
|
+
|
|
780
|
+
/**
|
|
781
|
+
* Converts this SleepcastEpisodeCompleted to JSON.
|
|
782
|
+
* @function toJSON
|
|
783
|
+
* @memberof SleepcastEpisodeCompleted
|
|
784
|
+
* @instance
|
|
785
|
+
* @returns {Object.<string,*>} JSON object
|
|
786
|
+
*/
|
|
787
|
+
SleepcastEpisodeCompleted.prototype.toJSON = function toJSON() {
|
|
788
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
789
|
+
};
|
|
790
|
+
|
|
791
|
+
return SleepcastEpisodeCompleted;
|
|
792
|
+
})();
|
|
793
|
+
|
|
548
794
|
$root.SubscriptionCreated = (function() {
|
|
549
795
|
|
|
550
796
|
/**
|
|
@@ -999,7 +1245,7 @@ $root.UserPasswordUpdated = (function() {
|
|
|
999
1245
|
* Properties of a UserPasswordUpdated.
|
|
1000
1246
|
* @exports IUserPasswordUpdated
|
|
1001
1247
|
* @interface IUserPasswordUpdated
|
|
1002
|
-
* @property {
|
|
1248
|
+
* @property {string|null} [userId] UserPasswordUpdated userId
|
|
1003
1249
|
* @property {number|Long|null} [updatedOn] UserPasswordUpdated updatedOn
|
|
1004
1250
|
* @property {string|null} [email] UserPasswordUpdated email
|
|
1005
1251
|
*/
|
|
@@ -1021,11 +1267,11 @@ $root.UserPasswordUpdated = (function() {
|
|
|
1021
1267
|
|
|
1022
1268
|
/**
|
|
1023
1269
|
* UserPasswordUpdated userId.
|
|
1024
|
-
* @member {
|
|
1270
|
+
* @member {string} userId
|
|
1025
1271
|
* @memberof UserPasswordUpdated
|
|
1026
1272
|
* @instance
|
|
1027
1273
|
*/
|
|
1028
|
-
UserPasswordUpdated.prototype.userId =
|
|
1274
|
+
UserPasswordUpdated.prototype.userId = "";
|
|
1029
1275
|
|
|
1030
1276
|
/**
|
|
1031
1277
|
* UserPasswordUpdated updatedOn.
|
|
@@ -1068,7 +1314,7 @@ $root.UserPasswordUpdated = (function() {
|
|
|
1068
1314
|
if (!writer)
|
|
1069
1315
|
writer = $Writer.create();
|
|
1070
1316
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
1071
|
-
writer.uint32(/* id 1, wireType
|
|
1317
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
|
|
1072
1318
|
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
1073
1319
|
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.updatedOn);
|
|
1074
1320
|
if (message.email != null && message.hasOwnProperty("email"))
|
|
@@ -1108,7 +1354,7 @@ $root.UserPasswordUpdated = (function() {
|
|
|
1108
1354
|
var tag = reader.uint32();
|
|
1109
1355
|
switch (tag >>> 3) {
|
|
1110
1356
|
case 1:
|
|
1111
|
-
message.userId = reader.
|
|
1357
|
+
message.userId = reader.string();
|
|
1112
1358
|
break;
|
|
1113
1359
|
case 2:
|
|
1114
1360
|
message.updatedOn = reader.uint64();
|
|
@@ -1152,8 +1398,8 @@ $root.UserPasswordUpdated = (function() {
|
|
|
1152
1398
|
if (typeof message !== "object" || message === null)
|
|
1153
1399
|
return "object expected";
|
|
1154
1400
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
1155
|
-
if (!$util.
|
|
1156
|
-
return "userId:
|
|
1401
|
+
if (!$util.isString(message.userId))
|
|
1402
|
+
return "userId: string expected";
|
|
1157
1403
|
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
1158
1404
|
if (!$util.isInteger(message.updatedOn) && !(message.updatedOn && $util.isInteger(message.updatedOn.low) && $util.isInteger(message.updatedOn.high)))
|
|
1159
1405
|
return "updatedOn: integer|Long expected";
|
|
@@ -1176,7 +1422,7 @@ $root.UserPasswordUpdated = (function() {
|
|
|
1176
1422
|
return object;
|
|
1177
1423
|
var message = new $root.UserPasswordUpdated();
|
|
1178
1424
|
if (object.userId != null)
|
|
1179
|
-
message.userId = object.userId
|
|
1425
|
+
message.userId = String(object.userId);
|
|
1180
1426
|
if (object.updatedOn != null)
|
|
1181
1427
|
if ($util.Long)
|
|
1182
1428
|
(message.updatedOn = $util.Long.fromValue(object.updatedOn)).unsigned = true;
|
|
@@ -1205,7 +1451,7 @@ $root.UserPasswordUpdated = (function() {
|
|
|
1205
1451
|
options = {};
|
|
1206
1452
|
var object = {};
|
|
1207
1453
|
if (options.defaults) {
|
|
1208
|
-
object.userId =
|
|
1454
|
+
object.userId = "";
|
|
1209
1455
|
if ($util.Long) {
|
|
1210
1456
|
var long = new $util.Long(0, 0, true);
|
|
1211
1457
|
object.updatedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@headspace/protos-events",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7-alpha.0",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"typings": "lib/index.d.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -16,5 +16,5 @@
|
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"typescript": "^3.0.1"
|
|
18
18
|
},
|
|
19
|
-
"gitHead": "
|
|
19
|
+
"gitHead": "558bc9568b5de28e571a58f3a855fc25a75ef0c8"
|
|
20
20
|
}
|
package/sleep.proto
ADDED