@headspace/protos-events 0.0.3-2 → 0.0.4
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 +8 -245
- package/lib/index.js +29 -545
- package/package.json +2 -2
- package/user.proto +3 -3
- package/pingpong.proto +0 -15
package/lib/index.d.ts
CHANGED
|
@@ -215,243 +215,6 @@ export class FamilyMemberRemoved implements IFamilyMemberRemoved {
|
|
|
215
215
|
public toJSON(): { [k: string]: any };
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
-
/** Properties of a Ping. */
|
|
219
|
-
export interface IPing {
|
|
220
|
-
|
|
221
|
-
/** Ping message */
|
|
222
|
-
message?: (string|null);
|
|
223
|
-
|
|
224
|
-
/** Ping timestamp */
|
|
225
|
-
timestamp?: (number|Long|null);
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
/** Represents a Ping. */
|
|
229
|
-
export class Ping implements IPing {
|
|
230
|
-
|
|
231
|
-
/**
|
|
232
|
-
* Constructs a new Ping.
|
|
233
|
-
* @param [properties] Properties to set
|
|
234
|
-
*/
|
|
235
|
-
constructor(properties?: IPing);
|
|
236
|
-
|
|
237
|
-
/** Ping message. */
|
|
238
|
-
public message: string;
|
|
239
|
-
|
|
240
|
-
/** Ping timestamp. */
|
|
241
|
-
public timestamp: (number|Long);
|
|
242
|
-
|
|
243
|
-
/**
|
|
244
|
-
* Creates a new Ping instance using the specified properties.
|
|
245
|
-
* @param [properties] Properties to set
|
|
246
|
-
* @returns Ping instance
|
|
247
|
-
*/
|
|
248
|
-
public static create(properties?: IPing): Ping;
|
|
249
|
-
|
|
250
|
-
/**
|
|
251
|
-
* Encodes the specified Ping message. Does not implicitly {@link Ping.verify|verify} messages.
|
|
252
|
-
* @param message Ping message or plain object to encode
|
|
253
|
-
* @param [writer] Writer to encode to
|
|
254
|
-
* @returns Writer
|
|
255
|
-
*/
|
|
256
|
-
public static encode(message: IPing, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
257
|
-
|
|
258
|
-
/**
|
|
259
|
-
* Encodes the specified Ping message, length delimited. Does not implicitly {@link Ping.verify|verify} messages.
|
|
260
|
-
* @param message Ping message or plain object to encode
|
|
261
|
-
* @param [writer] Writer to encode to
|
|
262
|
-
* @returns Writer
|
|
263
|
-
*/
|
|
264
|
-
public static encodeDelimited(message: IPing, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
265
|
-
|
|
266
|
-
/**
|
|
267
|
-
* Decodes a Ping message from the specified reader or buffer.
|
|
268
|
-
* @param reader Reader or buffer to decode from
|
|
269
|
-
* @param [length] Message length if known beforehand
|
|
270
|
-
* @returns Ping
|
|
271
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
272
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
273
|
-
*/
|
|
274
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Ping;
|
|
275
|
-
|
|
276
|
-
/**
|
|
277
|
-
* Decodes a Ping message from the specified reader or buffer, length delimited.
|
|
278
|
-
* @param reader Reader or buffer to decode from
|
|
279
|
-
* @returns Ping
|
|
280
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
281
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
282
|
-
*/
|
|
283
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Ping;
|
|
284
|
-
|
|
285
|
-
/**
|
|
286
|
-
* Verifies a Ping message.
|
|
287
|
-
* @param message Plain object to verify
|
|
288
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
|
289
|
-
*/
|
|
290
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
|
291
|
-
|
|
292
|
-
/**
|
|
293
|
-
* Creates a Ping message from a plain object. Also converts values to their respective internal types.
|
|
294
|
-
* @param object Plain object
|
|
295
|
-
* @returns Ping
|
|
296
|
-
*/
|
|
297
|
-
public static fromObject(object: { [k: string]: any }): Ping;
|
|
298
|
-
|
|
299
|
-
/**
|
|
300
|
-
* Creates a plain object from a Ping message. Also converts values to other types if specified.
|
|
301
|
-
* @param message Ping
|
|
302
|
-
* @param [options] Conversion options
|
|
303
|
-
* @returns Plain object
|
|
304
|
-
*/
|
|
305
|
-
public static toObject(message: Ping, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
306
|
-
|
|
307
|
-
/**
|
|
308
|
-
* Converts this Ping to JSON.
|
|
309
|
-
* @returns JSON object
|
|
310
|
-
*/
|
|
311
|
-
public toJSON(): { [k: string]: any };
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
/** Properties of a Pong. */
|
|
315
|
-
export interface IPong {
|
|
316
|
-
|
|
317
|
-
/** Pong message */
|
|
318
|
-
message?: (string|null);
|
|
319
|
-
|
|
320
|
-
/** Pong timestamp */
|
|
321
|
-
timestamp?: (number|Long|null);
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
/** Represents a Pong. */
|
|
325
|
-
export class Pong implements IPong {
|
|
326
|
-
|
|
327
|
-
/**
|
|
328
|
-
* Constructs a new Pong.
|
|
329
|
-
* @param [properties] Properties to set
|
|
330
|
-
*/
|
|
331
|
-
constructor(properties?: IPong);
|
|
332
|
-
|
|
333
|
-
/** Pong message. */
|
|
334
|
-
public message: string;
|
|
335
|
-
|
|
336
|
-
/** Pong timestamp. */
|
|
337
|
-
public timestamp: (number|Long);
|
|
338
|
-
|
|
339
|
-
/**
|
|
340
|
-
* Creates a new Pong instance using the specified properties.
|
|
341
|
-
* @param [properties] Properties to set
|
|
342
|
-
* @returns Pong instance
|
|
343
|
-
*/
|
|
344
|
-
public static create(properties?: IPong): Pong;
|
|
345
|
-
|
|
346
|
-
/**
|
|
347
|
-
* Encodes the specified Pong message. Does not implicitly {@link Pong.verify|verify} messages.
|
|
348
|
-
* @param message Pong message or plain object to encode
|
|
349
|
-
* @param [writer] Writer to encode to
|
|
350
|
-
* @returns Writer
|
|
351
|
-
*/
|
|
352
|
-
public static encode(message: IPong, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
353
|
-
|
|
354
|
-
/**
|
|
355
|
-
* Encodes the specified Pong message, length delimited. Does not implicitly {@link Pong.verify|verify} messages.
|
|
356
|
-
* @param message Pong message or plain object to encode
|
|
357
|
-
* @param [writer] Writer to encode to
|
|
358
|
-
* @returns Writer
|
|
359
|
-
*/
|
|
360
|
-
public static encodeDelimited(message: IPong, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
361
|
-
|
|
362
|
-
/**
|
|
363
|
-
* Decodes a Pong message from the specified reader or buffer.
|
|
364
|
-
* @param reader Reader or buffer to decode from
|
|
365
|
-
* @param [length] Message length if known beforehand
|
|
366
|
-
* @returns Pong
|
|
367
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
368
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
369
|
-
*/
|
|
370
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Pong;
|
|
371
|
-
|
|
372
|
-
/**
|
|
373
|
-
* Decodes a Pong message from the specified reader or buffer, length delimited.
|
|
374
|
-
* @param reader Reader or buffer to decode from
|
|
375
|
-
* @returns Pong
|
|
376
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
377
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
378
|
-
*/
|
|
379
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Pong;
|
|
380
|
-
|
|
381
|
-
/**
|
|
382
|
-
* Verifies a Pong message.
|
|
383
|
-
* @param message Plain object to verify
|
|
384
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
|
385
|
-
*/
|
|
386
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
|
387
|
-
|
|
388
|
-
/**
|
|
389
|
-
* Creates a Pong message from a plain object. Also converts values to their respective internal types.
|
|
390
|
-
* @param object Plain object
|
|
391
|
-
* @returns Pong
|
|
392
|
-
*/
|
|
393
|
-
public static fromObject(object: { [k: string]: any }): Pong;
|
|
394
|
-
|
|
395
|
-
/**
|
|
396
|
-
* Creates a plain object from a Pong message. Also converts values to other types if specified.
|
|
397
|
-
* @param message Pong
|
|
398
|
-
* @param [options] Conversion options
|
|
399
|
-
* @returns Plain object
|
|
400
|
-
*/
|
|
401
|
-
public static toObject(message: Pong, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
402
|
-
|
|
403
|
-
/**
|
|
404
|
-
* Converts this Pong to JSON.
|
|
405
|
-
* @returns JSON object
|
|
406
|
-
*/
|
|
407
|
-
public toJSON(): { [k: string]: any };
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
/** Represents a PingPongService */
|
|
411
|
-
export class PingPongService extends $protobuf.rpc.Service {
|
|
412
|
-
|
|
413
|
-
/**
|
|
414
|
-
* Constructs a new PingPongService service.
|
|
415
|
-
* @param rpcImpl RPC implementation
|
|
416
|
-
* @param [requestDelimited=false] Whether requests are length-delimited
|
|
417
|
-
* @param [responseDelimited=false] Whether responses are length-delimited
|
|
418
|
-
*/
|
|
419
|
-
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
|
|
420
|
-
|
|
421
|
-
/**
|
|
422
|
-
* Creates new PingPongService service using the specified rpc implementation.
|
|
423
|
-
* @param rpcImpl RPC implementation
|
|
424
|
-
* @param [requestDelimited=false] Whether requests are length-delimited
|
|
425
|
-
* @param [responseDelimited=false] Whether responses are length-delimited
|
|
426
|
-
* @returns RPC service. Useful where requests and/or responses are streamed.
|
|
427
|
-
*/
|
|
428
|
-
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): PingPongService;
|
|
429
|
-
|
|
430
|
-
/**
|
|
431
|
-
* Calls ping.
|
|
432
|
-
* @param request Ping message or plain object
|
|
433
|
-
* @param callback Node-style callback called with the error, if any, and Pong
|
|
434
|
-
*/
|
|
435
|
-
public ping(request: IPing, callback: PingPongService.pingCallback): void;
|
|
436
|
-
|
|
437
|
-
/**
|
|
438
|
-
* Calls ping.
|
|
439
|
-
* @param request Ping message or plain object
|
|
440
|
-
* @returns Promise
|
|
441
|
-
*/
|
|
442
|
-
public ping(request: IPing): Promise<Pong>;
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
export namespace PingPongService {
|
|
446
|
-
|
|
447
|
-
/**
|
|
448
|
-
* Callback as used by {@link PingPongService#ping}.
|
|
449
|
-
* @param error Error, if any
|
|
450
|
-
* @param [response] Pong
|
|
451
|
-
*/
|
|
452
|
-
type pingCallback = (error: (Error|null), response?: Pong) => void;
|
|
453
|
-
}
|
|
454
|
-
|
|
455
218
|
/** Properties of a SubscriptionCreated. */
|
|
456
219
|
export interface ISubscriptionCreated {
|
|
457
220
|
|
|
@@ -648,13 +411,13 @@ export class SubscriptionCancelled implements ISubscriptionCancelled {
|
|
|
648
411
|
export interface IUserPasswordUpdated {
|
|
649
412
|
|
|
650
413
|
/** UserPasswordUpdated userId */
|
|
651
|
-
userId?: (
|
|
652
|
-
|
|
653
|
-
/** UserPasswordUpdated email */
|
|
654
|
-
email?: (string|null);
|
|
414
|
+
userId?: (number|null);
|
|
655
415
|
|
|
656
416
|
/** UserPasswordUpdated updatedOn */
|
|
657
417
|
updatedOn?: (number|Long|null);
|
|
418
|
+
|
|
419
|
+
/** UserPasswordUpdated email */
|
|
420
|
+
email?: (string|null);
|
|
658
421
|
}
|
|
659
422
|
|
|
660
423
|
/** Represents a UserPasswordUpdated. */
|
|
@@ -667,14 +430,14 @@ export class UserPasswordUpdated implements IUserPasswordUpdated {
|
|
|
667
430
|
constructor(properties?: IUserPasswordUpdated);
|
|
668
431
|
|
|
669
432
|
/** UserPasswordUpdated userId. */
|
|
670
|
-
public userId:
|
|
671
|
-
|
|
672
|
-
/** UserPasswordUpdated email. */
|
|
673
|
-
public email: string;
|
|
433
|
+
public userId: number;
|
|
674
434
|
|
|
675
435
|
/** UserPasswordUpdated updatedOn. */
|
|
676
436
|
public updatedOn: (number|Long);
|
|
677
437
|
|
|
438
|
+
/** UserPasswordUpdated email. */
|
|
439
|
+
public email: string;
|
|
440
|
+
|
|
678
441
|
/**
|
|
679
442
|
* Creates a new UserPasswordUpdated instance using the specified properties.
|
|
680
443
|
* @param [properties] Properties to set
|
package/lib/index.js
CHANGED
|
@@ -545,522 +545,6 @@ $root.FamilyMemberRemoved = (function() {
|
|
|
545
545
|
return FamilyMemberRemoved;
|
|
546
546
|
})();
|
|
547
547
|
|
|
548
|
-
$root.Ping = (function() {
|
|
549
|
-
|
|
550
|
-
/**
|
|
551
|
-
* Properties of a Ping.
|
|
552
|
-
* @exports IPing
|
|
553
|
-
* @interface IPing
|
|
554
|
-
* @property {string|null} [message] Ping message
|
|
555
|
-
* @property {number|Long|null} [timestamp] Ping timestamp
|
|
556
|
-
*/
|
|
557
|
-
|
|
558
|
-
/**
|
|
559
|
-
* Constructs a new Ping.
|
|
560
|
-
* @exports Ping
|
|
561
|
-
* @classdesc Represents a Ping.
|
|
562
|
-
* @implements IPing
|
|
563
|
-
* @constructor
|
|
564
|
-
* @param {IPing=} [properties] Properties to set
|
|
565
|
-
*/
|
|
566
|
-
function Ping(properties) {
|
|
567
|
-
if (properties)
|
|
568
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
569
|
-
if (properties[keys[i]] != null)
|
|
570
|
-
this[keys[i]] = properties[keys[i]];
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
/**
|
|
574
|
-
* Ping message.
|
|
575
|
-
* @member {string} message
|
|
576
|
-
* @memberof Ping
|
|
577
|
-
* @instance
|
|
578
|
-
*/
|
|
579
|
-
Ping.prototype.message = "";
|
|
580
|
-
|
|
581
|
-
/**
|
|
582
|
-
* Ping timestamp.
|
|
583
|
-
* @member {number|Long} timestamp
|
|
584
|
-
* @memberof Ping
|
|
585
|
-
* @instance
|
|
586
|
-
*/
|
|
587
|
-
Ping.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
588
|
-
|
|
589
|
-
/**
|
|
590
|
-
* Creates a new Ping instance using the specified properties.
|
|
591
|
-
* @function create
|
|
592
|
-
* @memberof Ping
|
|
593
|
-
* @static
|
|
594
|
-
* @param {IPing=} [properties] Properties to set
|
|
595
|
-
* @returns {Ping} Ping instance
|
|
596
|
-
*/
|
|
597
|
-
Ping.create = function create(properties) {
|
|
598
|
-
return new Ping(properties);
|
|
599
|
-
};
|
|
600
|
-
|
|
601
|
-
/**
|
|
602
|
-
* Encodes the specified Ping message. Does not implicitly {@link Ping.verify|verify} messages.
|
|
603
|
-
* @function encode
|
|
604
|
-
* @memberof Ping
|
|
605
|
-
* @static
|
|
606
|
-
* @param {IPing} message Ping message or plain object to encode
|
|
607
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
608
|
-
* @returns {$protobuf.Writer} Writer
|
|
609
|
-
*/
|
|
610
|
-
Ping.encode = function encode(message, writer) {
|
|
611
|
-
if (!writer)
|
|
612
|
-
writer = $Writer.create();
|
|
613
|
-
if (message.message != null && message.hasOwnProperty("message"))
|
|
614
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.message);
|
|
615
|
-
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
616
|
-
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp);
|
|
617
|
-
return writer;
|
|
618
|
-
};
|
|
619
|
-
|
|
620
|
-
/**
|
|
621
|
-
* Encodes the specified Ping message, length delimited. Does not implicitly {@link Ping.verify|verify} messages.
|
|
622
|
-
* @function encodeDelimited
|
|
623
|
-
* @memberof Ping
|
|
624
|
-
* @static
|
|
625
|
-
* @param {IPing} message Ping message or plain object to encode
|
|
626
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
627
|
-
* @returns {$protobuf.Writer} Writer
|
|
628
|
-
*/
|
|
629
|
-
Ping.encodeDelimited = function encodeDelimited(message, writer) {
|
|
630
|
-
return this.encode(message, writer).ldelim();
|
|
631
|
-
};
|
|
632
|
-
|
|
633
|
-
/**
|
|
634
|
-
* Decodes a Ping message from the specified reader or buffer.
|
|
635
|
-
* @function decode
|
|
636
|
-
* @memberof Ping
|
|
637
|
-
* @static
|
|
638
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
639
|
-
* @param {number} [length] Message length if known beforehand
|
|
640
|
-
* @returns {Ping} Ping
|
|
641
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
642
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
643
|
-
*/
|
|
644
|
-
Ping.decode = function decode(reader, length) {
|
|
645
|
-
if (!(reader instanceof $Reader))
|
|
646
|
-
reader = $Reader.create(reader);
|
|
647
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.Ping();
|
|
648
|
-
while (reader.pos < end) {
|
|
649
|
-
var tag = reader.uint32();
|
|
650
|
-
switch (tag >>> 3) {
|
|
651
|
-
case 1:
|
|
652
|
-
message.message = reader.string();
|
|
653
|
-
break;
|
|
654
|
-
case 2:
|
|
655
|
-
message.timestamp = reader.uint64();
|
|
656
|
-
break;
|
|
657
|
-
default:
|
|
658
|
-
reader.skipType(tag & 7);
|
|
659
|
-
break;
|
|
660
|
-
}
|
|
661
|
-
}
|
|
662
|
-
return message;
|
|
663
|
-
};
|
|
664
|
-
|
|
665
|
-
/**
|
|
666
|
-
* Decodes a Ping message from the specified reader or buffer, length delimited.
|
|
667
|
-
* @function decodeDelimited
|
|
668
|
-
* @memberof Ping
|
|
669
|
-
* @static
|
|
670
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
671
|
-
* @returns {Ping} Ping
|
|
672
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
673
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
674
|
-
*/
|
|
675
|
-
Ping.decodeDelimited = function decodeDelimited(reader) {
|
|
676
|
-
if (!(reader instanceof $Reader))
|
|
677
|
-
reader = new $Reader(reader);
|
|
678
|
-
return this.decode(reader, reader.uint32());
|
|
679
|
-
};
|
|
680
|
-
|
|
681
|
-
/**
|
|
682
|
-
* Verifies a Ping message.
|
|
683
|
-
* @function verify
|
|
684
|
-
* @memberof Ping
|
|
685
|
-
* @static
|
|
686
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
687
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
688
|
-
*/
|
|
689
|
-
Ping.verify = function verify(message) {
|
|
690
|
-
if (typeof message !== "object" || message === null)
|
|
691
|
-
return "object expected";
|
|
692
|
-
if (message.message != null && message.hasOwnProperty("message"))
|
|
693
|
-
if (!$util.isString(message.message))
|
|
694
|
-
return "message: string expected";
|
|
695
|
-
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
696
|
-
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
697
|
-
return "timestamp: integer|Long expected";
|
|
698
|
-
return null;
|
|
699
|
-
};
|
|
700
|
-
|
|
701
|
-
/**
|
|
702
|
-
* Creates a Ping message from a plain object. Also converts values to their respective internal types.
|
|
703
|
-
* @function fromObject
|
|
704
|
-
* @memberof Ping
|
|
705
|
-
* @static
|
|
706
|
-
* @param {Object.<string,*>} object Plain object
|
|
707
|
-
* @returns {Ping} Ping
|
|
708
|
-
*/
|
|
709
|
-
Ping.fromObject = function fromObject(object) {
|
|
710
|
-
if (object instanceof $root.Ping)
|
|
711
|
-
return object;
|
|
712
|
-
var message = new $root.Ping();
|
|
713
|
-
if (object.message != null)
|
|
714
|
-
message.message = String(object.message);
|
|
715
|
-
if (object.timestamp != null)
|
|
716
|
-
if ($util.Long)
|
|
717
|
-
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
718
|
-
else if (typeof object.timestamp === "string")
|
|
719
|
-
message.timestamp = parseInt(object.timestamp, 10);
|
|
720
|
-
else if (typeof object.timestamp === "number")
|
|
721
|
-
message.timestamp = object.timestamp;
|
|
722
|
-
else if (typeof object.timestamp === "object")
|
|
723
|
-
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
724
|
-
return message;
|
|
725
|
-
};
|
|
726
|
-
|
|
727
|
-
/**
|
|
728
|
-
* Creates a plain object from a Ping message. Also converts values to other types if specified.
|
|
729
|
-
* @function toObject
|
|
730
|
-
* @memberof Ping
|
|
731
|
-
* @static
|
|
732
|
-
* @param {Ping} message Ping
|
|
733
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
734
|
-
* @returns {Object.<string,*>} Plain object
|
|
735
|
-
*/
|
|
736
|
-
Ping.toObject = function toObject(message, options) {
|
|
737
|
-
if (!options)
|
|
738
|
-
options = {};
|
|
739
|
-
var object = {};
|
|
740
|
-
if (options.defaults) {
|
|
741
|
-
object.message = "";
|
|
742
|
-
if ($util.Long) {
|
|
743
|
-
var long = new $util.Long(0, 0, true);
|
|
744
|
-
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
745
|
-
} else
|
|
746
|
-
object.timestamp = options.longs === String ? "0" : 0;
|
|
747
|
-
}
|
|
748
|
-
if (message.message != null && message.hasOwnProperty("message"))
|
|
749
|
-
object.message = message.message;
|
|
750
|
-
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
751
|
-
if (typeof message.timestamp === "number")
|
|
752
|
-
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
753
|
-
else
|
|
754
|
-
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;
|
|
755
|
-
return object;
|
|
756
|
-
};
|
|
757
|
-
|
|
758
|
-
/**
|
|
759
|
-
* Converts this Ping to JSON.
|
|
760
|
-
* @function toJSON
|
|
761
|
-
* @memberof Ping
|
|
762
|
-
* @instance
|
|
763
|
-
* @returns {Object.<string,*>} JSON object
|
|
764
|
-
*/
|
|
765
|
-
Ping.prototype.toJSON = function toJSON() {
|
|
766
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
767
|
-
};
|
|
768
|
-
|
|
769
|
-
return Ping;
|
|
770
|
-
})();
|
|
771
|
-
|
|
772
|
-
$root.Pong = (function() {
|
|
773
|
-
|
|
774
|
-
/**
|
|
775
|
-
* Properties of a Pong.
|
|
776
|
-
* @exports IPong
|
|
777
|
-
* @interface IPong
|
|
778
|
-
* @property {string|null} [message] Pong message
|
|
779
|
-
* @property {number|Long|null} [timestamp] Pong timestamp
|
|
780
|
-
*/
|
|
781
|
-
|
|
782
|
-
/**
|
|
783
|
-
* Constructs a new Pong.
|
|
784
|
-
* @exports Pong
|
|
785
|
-
* @classdesc Represents a Pong.
|
|
786
|
-
* @implements IPong
|
|
787
|
-
* @constructor
|
|
788
|
-
* @param {IPong=} [properties] Properties to set
|
|
789
|
-
*/
|
|
790
|
-
function Pong(properties) {
|
|
791
|
-
if (properties)
|
|
792
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
793
|
-
if (properties[keys[i]] != null)
|
|
794
|
-
this[keys[i]] = properties[keys[i]];
|
|
795
|
-
}
|
|
796
|
-
|
|
797
|
-
/**
|
|
798
|
-
* Pong message.
|
|
799
|
-
* @member {string} message
|
|
800
|
-
* @memberof Pong
|
|
801
|
-
* @instance
|
|
802
|
-
*/
|
|
803
|
-
Pong.prototype.message = "";
|
|
804
|
-
|
|
805
|
-
/**
|
|
806
|
-
* Pong timestamp.
|
|
807
|
-
* @member {number|Long} timestamp
|
|
808
|
-
* @memberof Pong
|
|
809
|
-
* @instance
|
|
810
|
-
*/
|
|
811
|
-
Pong.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
812
|
-
|
|
813
|
-
/**
|
|
814
|
-
* Creates a new Pong instance using the specified properties.
|
|
815
|
-
* @function create
|
|
816
|
-
* @memberof Pong
|
|
817
|
-
* @static
|
|
818
|
-
* @param {IPong=} [properties] Properties to set
|
|
819
|
-
* @returns {Pong} Pong instance
|
|
820
|
-
*/
|
|
821
|
-
Pong.create = function create(properties) {
|
|
822
|
-
return new Pong(properties);
|
|
823
|
-
};
|
|
824
|
-
|
|
825
|
-
/**
|
|
826
|
-
* Encodes the specified Pong message. Does not implicitly {@link Pong.verify|verify} messages.
|
|
827
|
-
* @function encode
|
|
828
|
-
* @memberof Pong
|
|
829
|
-
* @static
|
|
830
|
-
* @param {IPong} message Pong message or plain object to encode
|
|
831
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
832
|
-
* @returns {$protobuf.Writer} Writer
|
|
833
|
-
*/
|
|
834
|
-
Pong.encode = function encode(message, writer) {
|
|
835
|
-
if (!writer)
|
|
836
|
-
writer = $Writer.create();
|
|
837
|
-
if (message.message != null && message.hasOwnProperty("message"))
|
|
838
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.message);
|
|
839
|
-
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
840
|
-
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp);
|
|
841
|
-
return writer;
|
|
842
|
-
};
|
|
843
|
-
|
|
844
|
-
/**
|
|
845
|
-
* Encodes the specified Pong message, length delimited. Does not implicitly {@link Pong.verify|verify} messages.
|
|
846
|
-
* @function encodeDelimited
|
|
847
|
-
* @memberof Pong
|
|
848
|
-
* @static
|
|
849
|
-
* @param {IPong} message Pong message or plain object to encode
|
|
850
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
851
|
-
* @returns {$protobuf.Writer} Writer
|
|
852
|
-
*/
|
|
853
|
-
Pong.encodeDelimited = function encodeDelimited(message, writer) {
|
|
854
|
-
return this.encode(message, writer).ldelim();
|
|
855
|
-
};
|
|
856
|
-
|
|
857
|
-
/**
|
|
858
|
-
* Decodes a Pong message from the specified reader or buffer.
|
|
859
|
-
* @function decode
|
|
860
|
-
* @memberof Pong
|
|
861
|
-
* @static
|
|
862
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
863
|
-
* @param {number} [length] Message length if known beforehand
|
|
864
|
-
* @returns {Pong} Pong
|
|
865
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
866
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
867
|
-
*/
|
|
868
|
-
Pong.decode = function decode(reader, length) {
|
|
869
|
-
if (!(reader instanceof $Reader))
|
|
870
|
-
reader = $Reader.create(reader);
|
|
871
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.Pong();
|
|
872
|
-
while (reader.pos < end) {
|
|
873
|
-
var tag = reader.uint32();
|
|
874
|
-
switch (tag >>> 3) {
|
|
875
|
-
case 1:
|
|
876
|
-
message.message = reader.string();
|
|
877
|
-
break;
|
|
878
|
-
case 2:
|
|
879
|
-
message.timestamp = reader.uint64();
|
|
880
|
-
break;
|
|
881
|
-
default:
|
|
882
|
-
reader.skipType(tag & 7);
|
|
883
|
-
break;
|
|
884
|
-
}
|
|
885
|
-
}
|
|
886
|
-
return message;
|
|
887
|
-
};
|
|
888
|
-
|
|
889
|
-
/**
|
|
890
|
-
* Decodes a Pong message from the specified reader or buffer, length delimited.
|
|
891
|
-
* @function decodeDelimited
|
|
892
|
-
* @memberof Pong
|
|
893
|
-
* @static
|
|
894
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
895
|
-
* @returns {Pong} Pong
|
|
896
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
897
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
898
|
-
*/
|
|
899
|
-
Pong.decodeDelimited = function decodeDelimited(reader) {
|
|
900
|
-
if (!(reader instanceof $Reader))
|
|
901
|
-
reader = new $Reader(reader);
|
|
902
|
-
return this.decode(reader, reader.uint32());
|
|
903
|
-
};
|
|
904
|
-
|
|
905
|
-
/**
|
|
906
|
-
* Verifies a Pong message.
|
|
907
|
-
* @function verify
|
|
908
|
-
* @memberof Pong
|
|
909
|
-
* @static
|
|
910
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
911
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
912
|
-
*/
|
|
913
|
-
Pong.verify = function verify(message) {
|
|
914
|
-
if (typeof message !== "object" || message === null)
|
|
915
|
-
return "object expected";
|
|
916
|
-
if (message.message != null && message.hasOwnProperty("message"))
|
|
917
|
-
if (!$util.isString(message.message))
|
|
918
|
-
return "message: string expected";
|
|
919
|
-
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
920
|
-
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
921
|
-
return "timestamp: integer|Long expected";
|
|
922
|
-
return null;
|
|
923
|
-
};
|
|
924
|
-
|
|
925
|
-
/**
|
|
926
|
-
* Creates a Pong message from a plain object. Also converts values to their respective internal types.
|
|
927
|
-
* @function fromObject
|
|
928
|
-
* @memberof Pong
|
|
929
|
-
* @static
|
|
930
|
-
* @param {Object.<string,*>} object Plain object
|
|
931
|
-
* @returns {Pong} Pong
|
|
932
|
-
*/
|
|
933
|
-
Pong.fromObject = function fromObject(object) {
|
|
934
|
-
if (object instanceof $root.Pong)
|
|
935
|
-
return object;
|
|
936
|
-
var message = new $root.Pong();
|
|
937
|
-
if (object.message != null)
|
|
938
|
-
message.message = String(object.message);
|
|
939
|
-
if (object.timestamp != null)
|
|
940
|
-
if ($util.Long)
|
|
941
|
-
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
942
|
-
else if (typeof object.timestamp === "string")
|
|
943
|
-
message.timestamp = parseInt(object.timestamp, 10);
|
|
944
|
-
else if (typeof object.timestamp === "number")
|
|
945
|
-
message.timestamp = object.timestamp;
|
|
946
|
-
else if (typeof object.timestamp === "object")
|
|
947
|
-
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
948
|
-
return message;
|
|
949
|
-
};
|
|
950
|
-
|
|
951
|
-
/**
|
|
952
|
-
* Creates a plain object from a Pong message. Also converts values to other types if specified.
|
|
953
|
-
* @function toObject
|
|
954
|
-
* @memberof Pong
|
|
955
|
-
* @static
|
|
956
|
-
* @param {Pong} message Pong
|
|
957
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
958
|
-
* @returns {Object.<string,*>} Plain object
|
|
959
|
-
*/
|
|
960
|
-
Pong.toObject = function toObject(message, options) {
|
|
961
|
-
if (!options)
|
|
962
|
-
options = {};
|
|
963
|
-
var object = {};
|
|
964
|
-
if (options.defaults) {
|
|
965
|
-
object.message = "";
|
|
966
|
-
if ($util.Long) {
|
|
967
|
-
var long = new $util.Long(0, 0, true);
|
|
968
|
-
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
969
|
-
} else
|
|
970
|
-
object.timestamp = options.longs === String ? "0" : 0;
|
|
971
|
-
}
|
|
972
|
-
if (message.message != null && message.hasOwnProperty("message"))
|
|
973
|
-
object.message = message.message;
|
|
974
|
-
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
975
|
-
if (typeof message.timestamp === "number")
|
|
976
|
-
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
977
|
-
else
|
|
978
|
-
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;
|
|
979
|
-
return object;
|
|
980
|
-
};
|
|
981
|
-
|
|
982
|
-
/**
|
|
983
|
-
* Converts this Pong to JSON.
|
|
984
|
-
* @function toJSON
|
|
985
|
-
* @memberof Pong
|
|
986
|
-
* @instance
|
|
987
|
-
* @returns {Object.<string,*>} JSON object
|
|
988
|
-
*/
|
|
989
|
-
Pong.prototype.toJSON = function toJSON() {
|
|
990
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
991
|
-
};
|
|
992
|
-
|
|
993
|
-
return Pong;
|
|
994
|
-
})();
|
|
995
|
-
|
|
996
|
-
$root.PingPongService = (function() {
|
|
997
|
-
|
|
998
|
-
/**
|
|
999
|
-
* Constructs a new PingPongService service.
|
|
1000
|
-
* @exports PingPongService
|
|
1001
|
-
* @classdesc Represents a PingPongService
|
|
1002
|
-
* @extends $protobuf.rpc.Service
|
|
1003
|
-
* @constructor
|
|
1004
|
-
* @param {$protobuf.RPCImpl} rpcImpl RPC implementation
|
|
1005
|
-
* @param {boolean} [requestDelimited=false] Whether requests are length-delimited
|
|
1006
|
-
* @param {boolean} [responseDelimited=false] Whether responses are length-delimited
|
|
1007
|
-
*/
|
|
1008
|
-
function PingPongService(rpcImpl, requestDelimited, responseDelimited) {
|
|
1009
|
-
$protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
|
|
1010
|
-
}
|
|
1011
|
-
|
|
1012
|
-
(PingPongService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = PingPongService;
|
|
1013
|
-
|
|
1014
|
-
/**
|
|
1015
|
-
* Creates new PingPongService service using the specified rpc implementation.
|
|
1016
|
-
* @function create
|
|
1017
|
-
* @memberof PingPongService
|
|
1018
|
-
* @static
|
|
1019
|
-
* @param {$protobuf.RPCImpl} rpcImpl RPC implementation
|
|
1020
|
-
* @param {boolean} [requestDelimited=false] Whether requests are length-delimited
|
|
1021
|
-
* @param {boolean} [responseDelimited=false] Whether responses are length-delimited
|
|
1022
|
-
* @returns {PingPongService} RPC service. Useful where requests and/or responses are streamed.
|
|
1023
|
-
*/
|
|
1024
|
-
PingPongService.create = function create(rpcImpl, requestDelimited, responseDelimited) {
|
|
1025
|
-
return new this(rpcImpl, requestDelimited, responseDelimited);
|
|
1026
|
-
};
|
|
1027
|
-
|
|
1028
|
-
/**
|
|
1029
|
-
* Callback as used by {@link PingPongService#ping}.
|
|
1030
|
-
* @memberof PingPongService
|
|
1031
|
-
* @typedef pingCallback
|
|
1032
|
-
* @type {function}
|
|
1033
|
-
* @param {Error|null} error Error, if any
|
|
1034
|
-
* @param {Pong} [response] Pong
|
|
1035
|
-
*/
|
|
1036
|
-
|
|
1037
|
-
/**
|
|
1038
|
-
* Calls ping.
|
|
1039
|
-
* @function ping
|
|
1040
|
-
* @memberof PingPongService
|
|
1041
|
-
* @instance
|
|
1042
|
-
* @param {IPing} request Ping message or plain object
|
|
1043
|
-
* @param {PingPongService.pingCallback} callback Node-style callback called with the error, if any, and Pong
|
|
1044
|
-
* @returns {undefined}
|
|
1045
|
-
* @variation 1
|
|
1046
|
-
*/
|
|
1047
|
-
Object.defineProperty(PingPongService.prototype.ping = function ping(request, callback) {
|
|
1048
|
-
return this.rpcCall(ping, $root.Ping, $root.Pong, request, callback);
|
|
1049
|
-
}, "name", { value: "ping" });
|
|
1050
|
-
|
|
1051
|
-
/**
|
|
1052
|
-
* Calls ping.
|
|
1053
|
-
* @function ping
|
|
1054
|
-
* @memberof PingPongService
|
|
1055
|
-
* @instance
|
|
1056
|
-
* @param {IPing} request Ping message or plain object
|
|
1057
|
-
* @returns {Promise<Pong>} Promise
|
|
1058
|
-
* @variation 2
|
|
1059
|
-
*/
|
|
1060
|
-
|
|
1061
|
-
return PingPongService;
|
|
1062
|
-
})();
|
|
1063
|
-
|
|
1064
548
|
$root.SubscriptionCreated = (function() {
|
|
1065
549
|
|
|
1066
550
|
/**
|
|
@@ -1515,9 +999,9 @@ $root.UserPasswordUpdated = (function() {
|
|
|
1515
999
|
* Properties of a UserPasswordUpdated.
|
|
1516
1000
|
* @exports IUserPasswordUpdated
|
|
1517
1001
|
* @interface IUserPasswordUpdated
|
|
1518
|
-
* @property {
|
|
1519
|
-
* @property {string|null} [email] UserPasswordUpdated email
|
|
1002
|
+
* @property {number|null} [userId] UserPasswordUpdated userId
|
|
1520
1003
|
* @property {number|Long|null} [updatedOn] UserPasswordUpdated updatedOn
|
|
1004
|
+
* @property {string|null} [email] UserPasswordUpdated email
|
|
1521
1005
|
*/
|
|
1522
1006
|
|
|
1523
1007
|
/**
|
|
@@ -1537,27 +1021,27 @@ $root.UserPasswordUpdated = (function() {
|
|
|
1537
1021
|
|
|
1538
1022
|
/**
|
|
1539
1023
|
* UserPasswordUpdated userId.
|
|
1540
|
-
* @member {
|
|
1024
|
+
* @member {number} userId
|
|
1541
1025
|
* @memberof UserPasswordUpdated
|
|
1542
1026
|
* @instance
|
|
1543
1027
|
*/
|
|
1544
|
-
UserPasswordUpdated.prototype.userId =
|
|
1028
|
+
UserPasswordUpdated.prototype.userId = 0;
|
|
1545
1029
|
|
|
1546
1030
|
/**
|
|
1547
|
-
* UserPasswordUpdated
|
|
1548
|
-
* @member {
|
|
1031
|
+
* UserPasswordUpdated updatedOn.
|
|
1032
|
+
* @member {number|Long} updatedOn
|
|
1549
1033
|
* @memberof UserPasswordUpdated
|
|
1550
1034
|
* @instance
|
|
1551
1035
|
*/
|
|
1552
|
-
UserPasswordUpdated.prototype.
|
|
1036
|
+
UserPasswordUpdated.prototype.updatedOn = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
1553
1037
|
|
|
1554
1038
|
/**
|
|
1555
|
-
* UserPasswordUpdated
|
|
1556
|
-
* @member {
|
|
1039
|
+
* UserPasswordUpdated email.
|
|
1040
|
+
* @member {string} email
|
|
1557
1041
|
* @memberof UserPasswordUpdated
|
|
1558
1042
|
* @instance
|
|
1559
1043
|
*/
|
|
1560
|
-
UserPasswordUpdated.prototype.
|
|
1044
|
+
UserPasswordUpdated.prototype.email = "";
|
|
1561
1045
|
|
|
1562
1046
|
/**
|
|
1563
1047
|
* Creates a new UserPasswordUpdated instance using the specified properties.
|
|
@@ -1584,11 +1068,11 @@ $root.UserPasswordUpdated = (function() {
|
|
|
1584
1068
|
if (!writer)
|
|
1585
1069
|
writer = $Writer.create();
|
|
1586
1070
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
1587
|
-
writer.uint32(/* id 1, wireType
|
|
1588
|
-
if (message.email != null && message.hasOwnProperty("email"))
|
|
1589
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.email);
|
|
1071
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.userId);
|
|
1590
1072
|
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
1591
|
-
writer.uint32(/* id
|
|
1073
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.updatedOn);
|
|
1074
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
1075
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.email);
|
|
1592
1076
|
return writer;
|
|
1593
1077
|
};
|
|
1594
1078
|
|
|
@@ -1624,13 +1108,13 @@ $root.UserPasswordUpdated = (function() {
|
|
|
1624
1108
|
var tag = reader.uint32();
|
|
1625
1109
|
switch (tag >>> 3) {
|
|
1626
1110
|
case 1:
|
|
1627
|
-
message.userId = reader.
|
|
1111
|
+
message.userId = reader.uint32();
|
|
1628
1112
|
break;
|
|
1629
1113
|
case 2:
|
|
1630
|
-
message.
|
|
1114
|
+
message.updatedOn = reader.uint64();
|
|
1631
1115
|
break;
|
|
1632
1116
|
case 3:
|
|
1633
|
-
message.
|
|
1117
|
+
message.email = reader.string();
|
|
1634
1118
|
break;
|
|
1635
1119
|
default:
|
|
1636
1120
|
reader.skipType(tag & 7);
|
|
@@ -1668,14 +1152,14 @@ $root.UserPasswordUpdated = (function() {
|
|
|
1668
1152
|
if (typeof message !== "object" || message === null)
|
|
1669
1153
|
return "object expected";
|
|
1670
1154
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
1671
|
-
if (!$util.
|
|
1672
|
-
return "userId:
|
|
1673
|
-
if (message.email != null && message.hasOwnProperty("email"))
|
|
1674
|
-
if (!$util.isString(message.email))
|
|
1675
|
-
return "email: string expected";
|
|
1155
|
+
if (!$util.isInteger(message.userId))
|
|
1156
|
+
return "userId: integer expected";
|
|
1676
1157
|
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
1677
1158
|
if (!$util.isInteger(message.updatedOn) && !(message.updatedOn && $util.isInteger(message.updatedOn.low) && $util.isInteger(message.updatedOn.high)))
|
|
1678
1159
|
return "updatedOn: integer|Long expected";
|
|
1160
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
1161
|
+
if (!$util.isString(message.email))
|
|
1162
|
+
return "email: string expected";
|
|
1679
1163
|
return null;
|
|
1680
1164
|
};
|
|
1681
1165
|
|
|
@@ -1692,9 +1176,7 @@ $root.UserPasswordUpdated = (function() {
|
|
|
1692
1176
|
return object;
|
|
1693
1177
|
var message = new $root.UserPasswordUpdated();
|
|
1694
1178
|
if (object.userId != null)
|
|
1695
|
-
message.userId =
|
|
1696
|
-
if (object.email != null)
|
|
1697
|
-
message.email = String(object.email);
|
|
1179
|
+
message.userId = object.userId >>> 0;
|
|
1698
1180
|
if (object.updatedOn != null)
|
|
1699
1181
|
if ($util.Long)
|
|
1700
1182
|
(message.updatedOn = $util.Long.fromValue(object.updatedOn)).unsigned = true;
|
|
@@ -1704,6 +1186,8 @@ $root.UserPasswordUpdated = (function() {
|
|
|
1704
1186
|
message.updatedOn = object.updatedOn;
|
|
1705
1187
|
else if (typeof object.updatedOn === "object")
|
|
1706
1188
|
message.updatedOn = new $util.LongBits(object.updatedOn.low >>> 0, object.updatedOn.high >>> 0).toNumber(true);
|
|
1189
|
+
if (object.email != null)
|
|
1190
|
+
message.email = String(object.email);
|
|
1707
1191
|
return message;
|
|
1708
1192
|
};
|
|
1709
1193
|
|
|
@@ -1721,23 +1205,23 @@ $root.UserPasswordUpdated = (function() {
|
|
|
1721
1205
|
options = {};
|
|
1722
1206
|
var object = {};
|
|
1723
1207
|
if (options.defaults) {
|
|
1724
|
-
object.userId =
|
|
1725
|
-
object.email = "";
|
|
1208
|
+
object.userId = 0;
|
|
1726
1209
|
if ($util.Long) {
|
|
1727
1210
|
var long = new $util.Long(0, 0, true);
|
|
1728
1211
|
object.updatedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
1729
1212
|
} else
|
|
1730
1213
|
object.updatedOn = options.longs === String ? "0" : 0;
|
|
1214
|
+
object.email = "";
|
|
1731
1215
|
}
|
|
1732
1216
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
1733
1217
|
object.userId = message.userId;
|
|
1734
|
-
if (message.email != null && message.hasOwnProperty("email"))
|
|
1735
|
-
object.email = message.email;
|
|
1736
1218
|
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
1737
1219
|
if (typeof message.updatedOn === "number")
|
|
1738
1220
|
object.updatedOn = options.longs === String ? String(message.updatedOn) : message.updatedOn;
|
|
1739
1221
|
else
|
|
1740
1222
|
object.updatedOn = options.longs === String ? $util.Long.prototype.toString.call(message.updatedOn) : options.longs === Number ? new $util.LongBits(message.updatedOn.low >>> 0, message.updatedOn.high >>> 0).toNumber(true) : message.updatedOn;
|
|
1223
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
1224
|
+
object.email = message.email;
|
|
1741
1225
|
return object;
|
|
1742
1226
|
};
|
|
1743
1227
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@headspace/protos-events",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
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": "19f734c0975f537e754a5e48950013ba7aa93c6a"
|
|
20
20
|
}
|
package/user.proto
CHANGED
package/pingpong.proto
DELETED