@headspace/protos-events 1.30.0 → 1.32.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 +947 -0
- package/lib/index.js +2159 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -2547,6 +2547,2165 @@ $root.subscription = (function() {
|
|
|
2547
2547
|
return subscription;
|
|
2548
2548
|
})();
|
|
2549
2549
|
|
|
2550
|
+
$root.com = (function() {
|
|
2551
|
+
|
|
2552
|
+
/**
|
|
2553
|
+
* Namespace com.
|
|
2554
|
+
* @exports com
|
|
2555
|
+
* @namespace
|
|
2556
|
+
*/
|
|
2557
|
+
var com = {};
|
|
2558
|
+
|
|
2559
|
+
com.headspace = (function() {
|
|
2560
|
+
|
|
2561
|
+
/**
|
|
2562
|
+
* Namespace headspace.
|
|
2563
|
+
* @memberof com
|
|
2564
|
+
* @namespace
|
|
2565
|
+
*/
|
|
2566
|
+
var headspace = {};
|
|
2567
|
+
|
|
2568
|
+
headspace.userdomain = (function() {
|
|
2569
|
+
|
|
2570
|
+
/**
|
|
2571
|
+
* Namespace userdomain.
|
|
2572
|
+
* @memberof com.headspace
|
|
2573
|
+
* @namespace
|
|
2574
|
+
*/
|
|
2575
|
+
var userdomain = {};
|
|
2576
|
+
|
|
2577
|
+
userdomain.grpc = (function() {
|
|
2578
|
+
|
|
2579
|
+
/**
|
|
2580
|
+
* Namespace grpc.
|
|
2581
|
+
* @memberof com.headspace.userdomain
|
|
2582
|
+
* @namespace
|
|
2583
|
+
*/
|
|
2584
|
+
var grpc = {};
|
|
2585
|
+
|
|
2586
|
+
grpc.user = (function() {
|
|
2587
|
+
|
|
2588
|
+
/**
|
|
2589
|
+
* Namespace user.
|
|
2590
|
+
* @memberof com.headspace.userdomain.grpc
|
|
2591
|
+
* @namespace
|
|
2592
|
+
*/
|
|
2593
|
+
var user = {};
|
|
2594
|
+
|
|
2595
|
+
/**
|
|
2596
|
+
* PLATFORM enum.
|
|
2597
|
+
* @name com.headspace.userdomain.grpc.user.PLATFORM
|
|
2598
|
+
* @enum {string}
|
|
2599
|
+
* @property {number} DESKTOP=0 DESKTOP value
|
|
2600
|
+
* @property {number} IOS=1 IOS value
|
|
2601
|
+
* @property {number} ANDROID=2 ANDROID value
|
|
2602
|
+
* @property {number} ALEXA=3 ALEXA value
|
|
2603
|
+
* @property {number} GOOGLE_ASSISTANT=4 GOOGLE_ASSISTANT value
|
|
2604
|
+
*/
|
|
2605
|
+
user.PLATFORM = (function() {
|
|
2606
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
2607
|
+
values[valuesById[0] = "DESKTOP"] = 0;
|
|
2608
|
+
values[valuesById[1] = "IOS"] = 1;
|
|
2609
|
+
values[valuesById[2] = "ANDROID"] = 2;
|
|
2610
|
+
values[valuesById[3] = "ALEXA"] = 3;
|
|
2611
|
+
values[valuesById[4] = "GOOGLE_ASSISTANT"] = 4;
|
|
2612
|
+
return values;
|
|
2613
|
+
})();
|
|
2614
|
+
|
|
2615
|
+
user.User = (function() {
|
|
2616
|
+
|
|
2617
|
+
/**
|
|
2618
|
+
* Properties of a User.
|
|
2619
|
+
* @memberof com.headspace.userdomain.grpc.user
|
|
2620
|
+
* @interface IUser
|
|
2621
|
+
* @property {string|null} [hsId] User hsId
|
|
2622
|
+
* @property {string|null} [auth0Id] User auth0Id
|
|
2623
|
+
* @property {string|null} [firstName] User firstName
|
|
2624
|
+
* @property {string|null} [lastName] User lastName
|
|
2625
|
+
* @property {string|null} [email] User email
|
|
2626
|
+
* @property {string|null} [countryCode] User countryCode
|
|
2627
|
+
* @property {string|null} [stateCode] User stateCode
|
|
2628
|
+
* @property {com.headspace.userdomain.grpc.user.PLATFORM|null} [signupPlatform] User signupPlatform
|
|
2629
|
+
* @property {number|Long|null} [createdAt] User createdAt
|
|
2630
|
+
* @property {number|Long|null} [updatedAt] User updatedAt
|
|
2631
|
+
*/
|
|
2632
|
+
|
|
2633
|
+
/**
|
|
2634
|
+
* Constructs a new User.
|
|
2635
|
+
* @memberof com.headspace.userdomain.grpc.user
|
|
2636
|
+
* @classdesc Represents a User.
|
|
2637
|
+
* @implements IUser
|
|
2638
|
+
* @constructor
|
|
2639
|
+
* @param {com.headspace.userdomain.grpc.user.IUser=} [properties] Properties to set
|
|
2640
|
+
*/
|
|
2641
|
+
function User(properties) {
|
|
2642
|
+
if (properties)
|
|
2643
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
2644
|
+
if (properties[keys[i]] != null)
|
|
2645
|
+
this[keys[i]] = properties[keys[i]];
|
|
2646
|
+
}
|
|
2647
|
+
|
|
2648
|
+
/**
|
|
2649
|
+
* User hsId.
|
|
2650
|
+
* @member {string} hsId
|
|
2651
|
+
* @memberof com.headspace.userdomain.grpc.user.User
|
|
2652
|
+
* @instance
|
|
2653
|
+
*/
|
|
2654
|
+
User.prototype.hsId = "";
|
|
2655
|
+
|
|
2656
|
+
/**
|
|
2657
|
+
* User auth0Id.
|
|
2658
|
+
* @member {string} auth0Id
|
|
2659
|
+
* @memberof com.headspace.userdomain.grpc.user.User
|
|
2660
|
+
* @instance
|
|
2661
|
+
*/
|
|
2662
|
+
User.prototype.auth0Id = "";
|
|
2663
|
+
|
|
2664
|
+
/**
|
|
2665
|
+
* User firstName.
|
|
2666
|
+
* @member {string} firstName
|
|
2667
|
+
* @memberof com.headspace.userdomain.grpc.user.User
|
|
2668
|
+
* @instance
|
|
2669
|
+
*/
|
|
2670
|
+
User.prototype.firstName = "";
|
|
2671
|
+
|
|
2672
|
+
/**
|
|
2673
|
+
* User lastName.
|
|
2674
|
+
* @member {string} lastName
|
|
2675
|
+
* @memberof com.headspace.userdomain.grpc.user.User
|
|
2676
|
+
* @instance
|
|
2677
|
+
*/
|
|
2678
|
+
User.prototype.lastName = "";
|
|
2679
|
+
|
|
2680
|
+
/**
|
|
2681
|
+
* User email.
|
|
2682
|
+
* @member {string} email
|
|
2683
|
+
* @memberof com.headspace.userdomain.grpc.user.User
|
|
2684
|
+
* @instance
|
|
2685
|
+
*/
|
|
2686
|
+
User.prototype.email = "";
|
|
2687
|
+
|
|
2688
|
+
/**
|
|
2689
|
+
* User countryCode.
|
|
2690
|
+
* @member {string} countryCode
|
|
2691
|
+
* @memberof com.headspace.userdomain.grpc.user.User
|
|
2692
|
+
* @instance
|
|
2693
|
+
*/
|
|
2694
|
+
User.prototype.countryCode = "";
|
|
2695
|
+
|
|
2696
|
+
/**
|
|
2697
|
+
* User stateCode.
|
|
2698
|
+
* @member {string} stateCode
|
|
2699
|
+
* @memberof com.headspace.userdomain.grpc.user.User
|
|
2700
|
+
* @instance
|
|
2701
|
+
*/
|
|
2702
|
+
User.prototype.stateCode = "";
|
|
2703
|
+
|
|
2704
|
+
/**
|
|
2705
|
+
* User signupPlatform.
|
|
2706
|
+
* @member {com.headspace.userdomain.grpc.user.PLATFORM} signupPlatform
|
|
2707
|
+
* @memberof com.headspace.userdomain.grpc.user.User
|
|
2708
|
+
* @instance
|
|
2709
|
+
*/
|
|
2710
|
+
User.prototype.signupPlatform = 0;
|
|
2711
|
+
|
|
2712
|
+
/**
|
|
2713
|
+
* User createdAt.
|
|
2714
|
+
* @member {number|Long} createdAt
|
|
2715
|
+
* @memberof com.headspace.userdomain.grpc.user.User
|
|
2716
|
+
* @instance
|
|
2717
|
+
*/
|
|
2718
|
+
User.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
2719
|
+
|
|
2720
|
+
/**
|
|
2721
|
+
* User updatedAt.
|
|
2722
|
+
* @member {number|Long} updatedAt
|
|
2723
|
+
* @memberof com.headspace.userdomain.grpc.user.User
|
|
2724
|
+
* @instance
|
|
2725
|
+
*/
|
|
2726
|
+
User.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
2727
|
+
|
|
2728
|
+
/**
|
|
2729
|
+
* Creates a new User instance using the specified properties.
|
|
2730
|
+
* @function create
|
|
2731
|
+
* @memberof com.headspace.userdomain.grpc.user.User
|
|
2732
|
+
* @static
|
|
2733
|
+
* @param {com.headspace.userdomain.grpc.user.IUser=} [properties] Properties to set
|
|
2734
|
+
* @returns {com.headspace.userdomain.grpc.user.User} User instance
|
|
2735
|
+
*/
|
|
2736
|
+
User.create = function create(properties) {
|
|
2737
|
+
return new User(properties);
|
|
2738
|
+
};
|
|
2739
|
+
|
|
2740
|
+
/**
|
|
2741
|
+
* Encodes the specified User message. Does not implicitly {@link com.headspace.userdomain.grpc.user.User.verify|verify} messages.
|
|
2742
|
+
* @function encode
|
|
2743
|
+
* @memberof com.headspace.userdomain.grpc.user.User
|
|
2744
|
+
* @static
|
|
2745
|
+
* @param {com.headspace.userdomain.grpc.user.IUser} message User message or plain object to encode
|
|
2746
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2747
|
+
* @returns {$protobuf.Writer} Writer
|
|
2748
|
+
*/
|
|
2749
|
+
User.encode = function encode(message, writer) {
|
|
2750
|
+
if (!writer)
|
|
2751
|
+
writer = $Writer.create();
|
|
2752
|
+
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
2753
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsId);
|
|
2754
|
+
if (message.auth0Id != null && message.hasOwnProperty("auth0Id"))
|
|
2755
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.auth0Id);
|
|
2756
|
+
if (message.firstName != null && message.hasOwnProperty("firstName"))
|
|
2757
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.firstName);
|
|
2758
|
+
if (message.lastName != null && message.hasOwnProperty("lastName"))
|
|
2759
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.lastName);
|
|
2760
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
2761
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.email);
|
|
2762
|
+
if (message.countryCode != null && message.hasOwnProperty("countryCode"))
|
|
2763
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.countryCode);
|
|
2764
|
+
if (message.stateCode != null && message.hasOwnProperty("stateCode"))
|
|
2765
|
+
writer.uint32(/* id 7, wireType 2 =*/58).string(message.stateCode);
|
|
2766
|
+
if (message.signupPlatform != null && message.hasOwnProperty("signupPlatform"))
|
|
2767
|
+
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.signupPlatform);
|
|
2768
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
2769
|
+
writer.uint32(/* id 9, wireType 0 =*/72).uint64(message.createdAt);
|
|
2770
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
2771
|
+
writer.uint32(/* id 10, wireType 0 =*/80).uint64(message.updatedAt);
|
|
2772
|
+
return writer;
|
|
2773
|
+
};
|
|
2774
|
+
|
|
2775
|
+
/**
|
|
2776
|
+
* Encodes the specified User message, length delimited. Does not implicitly {@link com.headspace.userdomain.grpc.user.User.verify|verify} messages.
|
|
2777
|
+
* @function encodeDelimited
|
|
2778
|
+
* @memberof com.headspace.userdomain.grpc.user.User
|
|
2779
|
+
* @static
|
|
2780
|
+
* @param {com.headspace.userdomain.grpc.user.IUser} message User message or plain object to encode
|
|
2781
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2782
|
+
* @returns {$protobuf.Writer} Writer
|
|
2783
|
+
*/
|
|
2784
|
+
User.encodeDelimited = function encodeDelimited(message, writer) {
|
|
2785
|
+
return this.encode(message, writer).ldelim();
|
|
2786
|
+
};
|
|
2787
|
+
|
|
2788
|
+
/**
|
|
2789
|
+
* Decodes a User message from the specified reader or buffer.
|
|
2790
|
+
* @function decode
|
|
2791
|
+
* @memberof com.headspace.userdomain.grpc.user.User
|
|
2792
|
+
* @static
|
|
2793
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2794
|
+
* @param {number} [length] Message length if known beforehand
|
|
2795
|
+
* @returns {com.headspace.userdomain.grpc.user.User} User
|
|
2796
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2797
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2798
|
+
*/
|
|
2799
|
+
User.decode = function decode(reader, length) {
|
|
2800
|
+
if (!(reader instanceof $Reader))
|
|
2801
|
+
reader = $Reader.create(reader);
|
|
2802
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.com.headspace.userdomain.grpc.user.User();
|
|
2803
|
+
while (reader.pos < end) {
|
|
2804
|
+
var tag = reader.uint32();
|
|
2805
|
+
switch (tag >>> 3) {
|
|
2806
|
+
case 1:
|
|
2807
|
+
message.hsId = reader.string();
|
|
2808
|
+
break;
|
|
2809
|
+
case 2:
|
|
2810
|
+
message.auth0Id = reader.string();
|
|
2811
|
+
break;
|
|
2812
|
+
case 3:
|
|
2813
|
+
message.firstName = reader.string();
|
|
2814
|
+
break;
|
|
2815
|
+
case 4:
|
|
2816
|
+
message.lastName = reader.string();
|
|
2817
|
+
break;
|
|
2818
|
+
case 5:
|
|
2819
|
+
message.email = reader.string();
|
|
2820
|
+
break;
|
|
2821
|
+
case 6:
|
|
2822
|
+
message.countryCode = reader.string();
|
|
2823
|
+
break;
|
|
2824
|
+
case 7:
|
|
2825
|
+
message.stateCode = reader.string();
|
|
2826
|
+
break;
|
|
2827
|
+
case 8:
|
|
2828
|
+
message.signupPlatform = reader.int32();
|
|
2829
|
+
break;
|
|
2830
|
+
case 9:
|
|
2831
|
+
message.createdAt = reader.uint64();
|
|
2832
|
+
break;
|
|
2833
|
+
case 10:
|
|
2834
|
+
message.updatedAt = reader.uint64();
|
|
2835
|
+
break;
|
|
2836
|
+
default:
|
|
2837
|
+
reader.skipType(tag & 7);
|
|
2838
|
+
break;
|
|
2839
|
+
}
|
|
2840
|
+
}
|
|
2841
|
+
return message;
|
|
2842
|
+
};
|
|
2843
|
+
|
|
2844
|
+
/**
|
|
2845
|
+
* Decodes a User message from the specified reader or buffer, length delimited.
|
|
2846
|
+
* @function decodeDelimited
|
|
2847
|
+
* @memberof com.headspace.userdomain.grpc.user.User
|
|
2848
|
+
* @static
|
|
2849
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2850
|
+
* @returns {com.headspace.userdomain.grpc.user.User} User
|
|
2851
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2852
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2853
|
+
*/
|
|
2854
|
+
User.decodeDelimited = function decodeDelimited(reader) {
|
|
2855
|
+
if (!(reader instanceof $Reader))
|
|
2856
|
+
reader = new $Reader(reader);
|
|
2857
|
+
return this.decode(reader, reader.uint32());
|
|
2858
|
+
};
|
|
2859
|
+
|
|
2860
|
+
/**
|
|
2861
|
+
* Verifies a User message.
|
|
2862
|
+
* @function verify
|
|
2863
|
+
* @memberof com.headspace.userdomain.grpc.user.User
|
|
2864
|
+
* @static
|
|
2865
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
2866
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
2867
|
+
*/
|
|
2868
|
+
User.verify = function verify(message) {
|
|
2869
|
+
if (typeof message !== "object" || message === null)
|
|
2870
|
+
return "object expected";
|
|
2871
|
+
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
2872
|
+
if (!$util.isString(message.hsId))
|
|
2873
|
+
return "hsId: string expected";
|
|
2874
|
+
if (message.auth0Id != null && message.hasOwnProperty("auth0Id"))
|
|
2875
|
+
if (!$util.isString(message.auth0Id))
|
|
2876
|
+
return "auth0Id: string expected";
|
|
2877
|
+
if (message.firstName != null && message.hasOwnProperty("firstName"))
|
|
2878
|
+
if (!$util.isString(message.firstName))
|
|
2879
|
+
return "firstName: string expected";
|
|
2880
|
+
if (message.lastName != null && message.hasOwnProperty("lastName"))
|
|
2881
|
+
if (!$util.isString(message.lastName))
|
|
2882
|
+
return "lastName: string expected";
|
|
2883
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
2884
|
+
if (!$util.isString(message.email))
|
|
2885
|
+
return "email: string expected";
|
|
2886
|
+
if (message.countryCode != null && message.hasOwnProperty("countryCode"))
|
|
2887
|
+
if (!$util.isString(message.countryCode))
|
|
2888
|
+
return "countryCode: string expected";
|
|
2889
|
+
if (message.stateCode != null && message.hasOwnProperty("stateCode"))
|
|
2890
|
+
if (!$util.isString(message.stateCode))
|
|
2891
|
+
return "stateCode: string expected";
|
|
2892
|
+
if (message.signupPlatform != null && message.hasOwnProperty("signupPlatform"))
|
|
2893
|
+
switch (message.signupPlatform) {
|
|
2894
|
+
default:
|
|
2895
|
+
return "signupPlatform: enum value expected";
|
|
2896
|
+
case 0:
|
|
2897
|
+
case 1:
|
|
2898
|
+
case 2:
|
|
2899
|
+
case 3:
|
|
2900
|
+
case 4:
|
|
2901
|
+
break;
|
|
2902
|
+
}
|
|
2903
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
2904
|
+
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
2905
|
+
return "createdAt: integer|Long expected";
|
|
2906
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
2907
|
+
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
2908
|
+
return "updatedAt: integer|Long expected";
|
|
2909
|
+
return null;
|
|
2910
|
+
};
|
|
2911
|
+
|
|
2912
|
+
/**
|
|
2913
|
+
* Creates a User message from a plain object. Also converts values to their respective internal types.
|
|
2914
|
+
* @function fromObject
|
|
2915
|
+
* @memberof com.headspace.userdomain.grpc.user.User
|
|
2916
|
+
* @static
|
|
2917
|
+
* @param {Object.<string,*>} object Plain object
|
|
2918
|
+
* @returns {com.headspace.userdomain.grpc.user.User} User
|
|
2919
|
+
*/
|
|
2920
|
+
User.fromObject = function fromObject(object) {
|
|
2921
|
+
if (object instanceof $root.com.headspace.userdomain.grpc.user.User)
|
|
2922
|
+
return object;
|
|
2923
|
+
var message = new $root.com.headspace.userdomain.grpc.user.User();
|
|
2924
|
+
if (object.hsId != null)
|
|
2925
|
+
message.hsId = String(object.hsId);
|
|
2926
|
+
if (object.auth0Id != null)
|
|
2927
|
+
message.auth0Id = String(object.auth0Id);
|
|
2928
|
+
if (object.firstName != null)
|
|
2929
|
+
message.firstName = String(object.firstName);
|
|
2930
|
+
if (object.lastName != null)
|
|
2931
|
+
message.lastName = String(object.lastName);
|
|
2932
|
+
if (object.email != null)
|
|
2933
|
+
message.email = String(object.email);
|
|
2934
|
+
if (object.countryCode != null)
|
|
2935
|
+
message.countryCode = String(object.countryCode);
|
|
2936
|
+
if (object.stateCode != null)
|
|
2937
|
+
message.stateCode = String(object.stateCode);
|
|
2938
|
+
switch (object.signupPlatform) {
|
|
2939
|
+
case "DESKTOP":
|
|
2940
|
+
case 0:
|
|
2941
|
+
message.signupPlatform = 0;
|
|
2942
|
+
break;
|
|
2943
|
+
case "IOS":
|
|
2944
|
+
case 1:
|
|
2945
|
+
message.signupPlatform = 1;
|
|
2946
|
+
break;
|
|
2947
|
+
case "ANDROID":
|
|
2948
|
+
case 2:
|
|
2949
|
+
message.signupPlatform = 2;
|
|
2950
|
+
break;
|
|
2951
|
+
case "ALEXA":
|
|
2952
|
+
case 3:
|
|
2953
|
+
message.signupPlatform = 3;
|
|
2954
|
+
break;
|
|
2955
|
+
case "GOOGLE_ASSISTANT":
|
|
2956
|
+
case 4:
|
|
2957
|
+
message.signupPlatform = 4;
|
|
2958
|
+
break;
|
|
2959
|
+
}
|
|
2960
|
+
if (object.createdAt != null)
|
|
2961
|
+
if ($util.Long)
|
|
2962
|
+
(message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
|
|
2963
|
+
else if (typeof object.createdAt === "string")
|
|
2964
|
+
message.createdAt = parseInt(object.createdAt, 10);
|
|
2965
|
+
else if (typeof object.createdAt === "number")
|
|
2966
|
+
message.createdAt = object.createdAt;
|
|
2967
|
+
else if (typeof object.createdAt === "object")
|
|
2968
|
+
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
2969
|
+
if (object.updatedAt != null)
|
|
2970
|
+
if ($util.Long)
|
|
2971
|
+
(message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
|
|
2972
|
+
else if (typeof object.updatedAt === "string")
|
|
2973
|
+
message.updatedAt = parseInt(object.updatedAt, 10);
|
|
2974
|
+
else if (typeof object.updatedAt === "number")
|
|
2975
|
+
message.updatedAt = object.updatedAt;
|
|
2976
|
+
else if (typeof object.updatedAt === "object")
|
|
2977
|
+
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
2978
|
+
return message;
|
|
2979
|
+
};
|
|
2980
|
+
|
|
2981
|
+
/**
|
|
2982
|
+
* Creates a plain object from a User message. Also converts values to other types if specified.
|
|
2983
|
+
* @function toObject
|
|
2984
|
+
* @memberof com.headspace.userdomain.grpc.user.User
|
|
2985
|
+
* @static
|
|
2986
|
+
* @param {com.headspace.userdomain.grpc.user.User} message User
|
|
2987
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
2988
|
+
* @returns {Object.<string,*>} Plain object
|
|
2989
|
+
*/
|
|
2990
|
+
User.toObject = function toObject(message, options) {
|
|
2991
|
+
if (!options)
|
|
2992
|
+
options = {};
|
|
2993
|
+
var object = {};
|
|
2994
|
+
if (options.defaults) {
|
|
2995
|
+
object.hsId = "";
|
|
2996
|
+
object.auth0Id = "";
|
|
2997
|
+
object.firstName = "";
|
|
2998
|
+
object.lastName = "";
|
|
2999
|
+
object.email = "";
|
|
3000
|
+
object.countryCode = "";
|
|
3001
|
+
object.stateCode = "";
|
|
3002
|
+
object.signupPlatform = options.enums === String ? "DESKTOP" : 0;
|
|
3003
|
+
if ($util.Long) {
|
|
3004
|
+
var long = new $util.Long(0, 0, true);
|
|
3005
|
+
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
3006
|
+
} else
|
|
3007
|
+
object.createdAt = options.longs === String ? "0" : 0;
|
|
3008
|
+
if ($util.Long) {
|
|
3009
|
+
var long = new $util.Long(0, 0, true);
|
|
3010
|
+
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
3011
|
+
} else
|
|
3012
|
+
object.updatedAt = options.longs === String ? "0" : 0;
|
|
3013
|
+
}
|
|
3014
|
+
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
3015
|
+
object.hsId = message.hsId;
|
|
3016
|
+
if (message.auth0Id != null && message.hasOwnProperty("auth0Id"))
|
|
3017
|
+
object.auth0Id = message.auth0Id;
|
|
3018
|
+
if (message.firstName != null && message.hasOwnProperty("firstName"))
|
|
3019
|
+
object.firstName = message.firstName;
|
|
3020
|
+
if (message.lastName != null && message.hasOwnProperty("lastName"))
|
|
3021
|
+
object.lastName = message.lastName;
|
|
3022
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
3023
|
+
object.email = message.email;
|
|
3024
|
+
if (message.countryCode != null && message.hasOwnProperty("countryCode"))
|
|
3025
|
+
object.countryCode = message.countryCode;
|
|
3026
|
+
if (message.stateCode != null && message.hasOwnProperty("stateCode"))
|
|
3027
|
+
object.stateCode = message.stateCode;
|
|
3028
|
+
if (message.signupPlatform != null && message.hasOwnProperty("signupPlatform"))
|
|
3029
|
+
object.signupPlatform = options.enums === String ? $root.com.headspace.userdomain.grpc.user.PLATFORM[message.signupPlatform] : message.signupPlatform;
|
|
3030
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
3031
|
+
if (typeof message.createdAt === "number")
|
|
3032
|
+
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
3033
|
+
else
|
|
3034
|
+
object.createdAt = options.longs === String ? $util.Long.prototype.toString.call(message.createdAt) : options.longs === Number ? new $util.LongBits(message.createdAt.low >>> 0, message.createdAt.high >>> 0).toNumber(true) : message.createdAt;
|
|
3035
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
3036
|
+
if (typeof message.updatedAt === "number")
|
|
3037
|
+
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
3038
|
+
else
|
|
3039
|
+
object.updatedAt = options.longs === String ? $util.Long.prototype.toString.call(message.updatedAt) : options.longs === Number ? new $util.LongBits(message.updatedAt.low >>> 0, message.updatedAt.high >>> 0).toNumber(true) : message.updatedAt;
|
|
3040
|
+
return object;
|
|
3041
|
+
};
|
|
3042
|
+
|
|
3043
|
+
/**
|
|
3044
|
+
* Converts this User to JSON.
|
|
3045
|
+
* @function toJSON
|
|
3046
|
+
* @memberof com.headspace.userdomain.grpc.user.User
|
|
3047
|
+
* @instance
|
|
3048
|
+
* @returns {Object.<string,*>} JSON object
|
|
3049
|
+
*/
|
|
3050
|
+
User.prototype.toJSON = function toJSON() {
|
|
3051
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
3052
|
+
};
|
|
3053
|
+
|
|
3054
|
+
return User;
|
|
3055
|
+
})();
|
|
3056
|
+
|
|
3057
|
+
user.DeleteUserRequest = (function() {
|
|
3058
|
+
|
|
3059
|
+
/**
|
|
3060
|
+
* Properties of a DeleteUserRequest.
|
|
3061
|
+
* @memberof com.headspace.userdomain.grpc.user
|
|
3062
|
+
* @interface IDeleteUserRequest
|
|
3063
|
+
* @property {string|null} [hsId] DeleteUserRequest hsId
|
|
3064
|
+
*/
|
|
3065
|
+
|
|
3066
|
+
/**
|
|
3067
|
+
* Constructs a new DeleteUserRequest.
|
|
3068
|
+
* @memberof com.headspace.userdomain.grpc.user
|
|
3069
|
+
* @classdesc Represents a DeleteUserRequest.
|
|
3070
|
+
* @implements IDeleteUserRequest
|
|
3071
|
+
* @constructor
|
|
3072
|
+
* @param {com.headspace.userdomain.grpc.user.IDeleteUserRequest=} [properties] Properties to set
|
|
3073
|
+
*/
|
|
3074
|
+
function DeleteUserRequest(properties) {
|
|
3075
|
+
if (properties)
|
|
3076
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
3077
|
+
if (properties[keys[i]] != null)
|
|
3078
|
+
this[keys[i]] = properties[keys[i]];
|
|
3079
|
+
}
|
|
3080
|
+
|
|
3081
|
+
/**
|
|
3082
|
+
* DeleteUserRequest hsId.
|
|
3083
|
+
* @member {string} hsId
|
|
3084
|
+
* @memberof com.headspace.userdomain.grpc.user.DeleteUserRequest
|
|
3085
|
+
* @instance
|
|
3086
|
+
*/
|
|
3087
|
+
DeleteUserRequest.prototype.hsId = "";
|
|
3088
|
+
|
|
3089
|
+
/**
|
|
3090
|
+
* Creates a new DeleteUserRequest instance using the specified properties.
|
|
3091
|
+
* @function create
|
|
3092
|
+
* @memberof com.headspace.userdomain.grpc.user.DeleteUserRequest
|
|
3093
|
+
* @static
|
|
3094
|
+
* @param {com.headspace.userdomain.grpc.user.IDeleteUserRequest=} [properties] Properties to set
|
|
3095
|
+
* @returns {com.headspace.userdomain.grpc.user.DeleteUserRequest} DeleteUserRequest instance
|
|
3096
|
+
*/
|
|
3097
|
+
DeleteUserRequest.create = function create(properties) {
|
|
3098
|
+
return new DeleteUserRequest(properties);
|
|
3099
|
+
};
|
|
3100
|
+
|
|
3101
|
+
/**
|
|
3102
|
+
* Encodes the specified DeleteUserRequest message. Does not implicitly {@link com.headspace.userdomain.grpc.user.DeleteUserRequest.verify|verify} messages.
|
|
3103
|
+
* @function encode
|
|
3104
|
+
* @memberof com.headspace.userdomain.grpc.user.DeleteUserRequest
|
|
3105
|
+
* @static
|
|
3106
|
+
* @param {com.headspace.userdomain.grpc.user.IDeleteUserRequest} message DeleteUserRequest message or plain object to encode
|
|
3107
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
3108
|
+
* @returns {$protobuf.Writer} Writer
|
|
3109
|
+
*/
|
|
3110
|
+
DeleteUserRequest.encode = function encode(message, writer) {
|
|
3111
|
+
if (!writer)
|
|
3112
|
+
writer = $Writer.create();
|
|
3113
|
+
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
3114
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsId);
|
|
3115
|
+
return writer;
|
|
3116
|
+
};
|
|
3117
|
+
|
|
3118
|
+
/**
|
|
3119
|
+
* Encodes the specified DeleteUserRequest message, length delimited. Does not implicitly {@link com.headspace.userdomain.grpc.user.DeleteUserRequest.verify|verify} messages.
|
|
3120
|
+
* @function encodeDelimited
|
|
3121
|
+
* @memberof com.headspace.userdomain.grpc.user.DeleteUserRequest
|
|
3122
|
+
* @static
|
|
3123
|
+
* @param {com.headspace.userdomain.grpc.user.IDeleteUserRequest} message DeleteUserRequest message or plain object to encode
|
|
3124
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
3125
|
+
* @returns {$protobuf.Writer} Writer
|
|
3126
|
+
*/
|
|
3127
|
+
DeleteUserRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
3128
|
+
return this.encode(message, writer).ldelim();
|
|
3129
|
+
};
|
|
3130
|
+
|
|
3131
|
+
/**
|
|
3132
|
+
* Decodes a DeleteUserRequest message from the specified reader or buffer.
|
|
3133
|
+
* @function decode
|
|
3134
|
+
* @memberof com.headspace.userdomain.grpc.user.DeleteUserRequest
|
|
3135
|
+
* @static
|
|
3136
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
3137
|
+
* @param {number} [length] Message length if known beforehand
|
|
3138
|
+
* @returns {com.headspace.userdomain.grpc.user.DeleteUserRequest} DeleteUserRequest
|
|
3139
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3140
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3141
|
+
*/
|
|
3142
|
+
DeleteUserRequest.decode = function decode(reader, length) {
|
|
3143
|
+
if (!(reader instanceof $Reader))
|
|
3144
|
+
reader = $Reader.create(reader);
|
|
3145
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.com.headspace.userdomain.grpc.user.DeleteUserRequest();
|
|
3146
|
+
while (reader.pos < end) {
|
|
3147
|
+
var tag = reader.uint32();
|
|
3148
|
+
switch (tag >>> 3) {
|
|
3149
|
+
case 1:
|
|
3150
|
+
message.hsId = reader.string();
|
|
3151
|
+
break;
|
|
3152
|
+
default:
|
|
3153
|
+
reader.skipType(tag & 7);
|
|
3154
|
+
break;
|
|
3155
|
+
}
|
|
3156
|
+
}
|
|
3157
|
+
return message;
|
|
3158
|
+
};
|
|
3159
|
+
|
|
3160
|
+
/**
|
|
3161
|
+
* Decodes a DeleteUserRequest message from the specified reader or buffer, length delimited.
|
|
3162
|
+
* @function decodeDelimited
|
|
3163
|
+
* @memberof com.headspace.userdomain.grpc.user.DeleteUserRequest
|
|
3164
|
+
* @static
|
|
3165
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
3166
|
+
* @returns {com.headspace.userdomain.grpc.user.DeleteUserRequest} DeleteUserRequest
|
|
3167
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3168
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3169
|
+
*/
|
|
3170
|
+
DeleteUserRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
3171
|
+
if (!(reader instanceof $Reader))
|
|
3172
|
+
reader = new $Reader(reader);
|
|
3173
|
+
return this.decode(reader, reader.uint32());
|
|
3174
|
+
};
|
|
3175
|
+
|
|
3176
|
+
/**
|
|
3177
|
+
* Verifies a DeleteUserRequest message.
|
|
3178
|
+
* @function verify
|
|
3179
|
+
* @memberof com.headspace.userdomain.grpc.user.DeleteUserRequest
|
|
3180
|
+
* @static
|
|
3181
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
3182
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
3183
|
+
*/
|
|
3184
|
+
DeleteUserRequest.verify = function verify(message) {
|
|
3185
|
+
if (typeof message !== "object" || message === null)
|
|
3186
|
+
return "object expected";
|
|
3187
|
+
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
3188
|
+
if (!$util.isString(message.hsId))
|
|
3189
|
+
return "hsId: string expected";
|
|
3190
|
+
return null;
|
|
3191
|
+
};
|
|
3192
|
+
|
|
3193
|
+
/**
|
|
3194
|
+
* Creates a DeleteUserRequest message from a plain object. Also converts values to their respective internal types.
|
|
3195
|
+
* @function fromObject
|
|
3196
|
+
* @memberof com.headspace.userdomain.grpc.user.DeleteUserRequest
|
|
3197
|
+
* @static
|
|
3198
|
+
* @param {Object.<string,*>} object Plain object
|
|
3199
|
+
* @returns {com.headspace.userdomain.grpc.user.DeleteUserRequest} DeleteUserRequest
|
|
3200
|
+
*/
|
|
3201
|
+
DeleteUserRequest.fromObject = function fromObject(object) {
|
|
3202
|
+
if (object instanceof $root.com.headspace.userdomain.grpc.user.DeleteUserRequest)
|
|
3203
|
+
return object;
|
|
3204
|
+
var message = new $root.com.headspace.userdomain.grpc.user.DeleteUserRequest();
|
|
3205
|
+
if (object.hsId != null)
|
|
3206
|
+
message.hsId = String(object.hsId);
|
|
3207
|
+
return message;
|
|
3208
|
+
};
|
|
3209
|
+
|
|
3210
|
+
/**
|
|
3211
|
+
* Creates a plain object from a DeleteUserRequest message. Also converts values to other types if specified.
|
|
3212
|
+
* @function toObject
|
|
3213
|
+
* @memberof com.headspace.userdomain.grpc.user.DeleteUserRequest
|
|
3214
|
+
* @static
|
|
3215
|
+
* @param {com.headspace.userdomain.grpc.user.DeleteUserRequest} message DeleteUserRequest
|
|
3216
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
3217
|
+
* @returns {Object.<string,*>} Plain object
|
|
3218
|
+
*/
|
|
3219
|
+
DeleteUserRequest.toObject = function toObject(message, options) {
|
|
3220
|
+
if (!options)
|
|
3221
|
+
options = {};
|
|
3222
|
+
var object = {};
|
|
3223
|
+
if (options.defaults)
|
|
3224
|
+
object.hsId = "";
|
|
3225
|
+
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
3226
|
+
object.hsId = message.hsId;
|
|
3227
|
+
return object;
|
|
3228
|
+
};
|
|
3229
|
+
|
|
3230
|
+
/**
|
|
3231
|
+
* Converts this DeleteUserRequest to JSON.
|
|
3232
|
+
* @function toJSON
|
|
3233
|
+
* @memberof com.headspace.userdomain.grpc.user.DeleteUserRequest
|
|
3234
|
+
* @instance
|
|
3235
|
+
* @returns {Object.<string,*>} JSON object
|
|
3236
|
+
*/
|
|
3237
|
+
DeleteUserRequest.prototype.toJSON = function toJSON() {
|
|
3238
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
3239
|
+
};
|
|
3240
|
+
|
|
3241
|
+
return DeleteUserRequest;
|
|
3242
|
+
})();
|
|
3243
|
+
|
|
3244
|
+
user.DeleteUserResponse = (function() {
|
|
3245
|
+
|
|
3246
|
+
/**
|
|
3247
|
+
* Properties of a DeleteUserResponse.
|
|
3248
|
+
* @memberof com.headspace.userdomain.grpc.user
|
|
3249
|
+
* @interface IDeleteUserResponse
|
|
3250
|
+
*/
|
|
3251
|
+
|
|
3252
|
+
/**
|
|
3253
|
+
* Constructs a new DeleteUserResponse.
|
|
3254
|
+
* @memberof com.headspace.userdomain.grpc.user
|
|
3255
|
+
* @classdesc Represents a DeleteUserResponse.
|
|
3256
|
+
* @implements IDeleteUserResponse
|
|
3257
|
+
* @constructor
|
|
3258
|
+
* @param {com.headspace.userdomain.grpc.user.IDeleteUserResponse=} [properties] Properties to set
|
|
3259
|
+
*/
|
|
3260
|
+
function DeleteUserResponse(properties) {
|
|
3261
|
+
if (properties)
|
|
3262
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
3263
|
+
if (properties[keys[i]] != null)
|
|
3264
|
+
this[keys[i]] = properties[keys[i]];
|
|
3265
|
+
}
|
|
3266
|
+
|
|
3267
|
+
/**
|
|
3268
|
+
* Creates a new DeleteUserResponse instance using the specified properties.
|
|
3269
|
+
* @function create
|
|
3270
|
+
* @memberof com.headspace.userdomain.grpc.user.DeleteUserResponse
|
|
3271
|
+
* @static
|
|
3272
|
+
* @param {com.headspace.userdomain.grpc.user.IDeleteUserResponse=} [properties] Properties to set
|
|
3273
|
+
* @returns {com.headspace.userdomain.grpc.user.DeleteUserResponse} DeleteUserResponse instance
|
|
3274
|
+
*/
|
|
3275
|
+
DeleteUserResponse.create = function create(properties) {
|
|
3276
|
+
return new DeleteUserResponse(properties);
|
|
3277
|
+
};
|
|
3278
|
+
|
|
3279
|
+
/**
|
|
3280
|
+
* Encodes the specified DeleteUserResponse message. Does not implicitly {@link com.headspace.userdomain.grpc.user.DeleteUserResponse.verify|verify} messages.
|
|
3281
|
+
* @function encode
|
|
3282
|
+
* @memberof com.headspace.userdomain.grpc.user.DeleteUserResponse
|
|
3283
|
+
* @static
|
|
3284
|
+
* @param {com.headspace.userdomain.grpc.user.IDeleteUserResponse} message DeleteUserResponse message or plain object to encode
|
|
3285
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
3286
|
+
* @returns {$protobuf.Writer} Writer
|
|
3287
|
+
*/
|
|
3288
|
+
DeleteUserResponse.encode = function encode(message, writer) {
|
|
3289
|
+
if (!writer)
|
|
3290
|
+
writer = $Writer.create();
|
|
3291
|
+
return writer;
|
|
3292
|
+
};
|
|
3293
|
+
|
|
3294
|
+
/**
|
|
3295
|
+
* Encodes the specified DeleteUserResponse message, length delimited. Does not implicitly {@link com.headspace.userdomain.grpc.user.DeleteUserResponse.verify|verify} messages.
|
|
3296
|
+
* @function encodeDelimited
|
|
3297
|
+
* @memberof com.headspace.userdomain.grpc.user.DeleteUserResponse
|
|
3298
|
+
* @static
|
|
3299
|
+
* @param {com.headspace.userdomain.grpc.user.IDeleteUserResponse} message DeleteUserResponse message or plain object to encode
|
|
3300
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
3301
|
+
* @returns {$protobuf.Writer} Writer
|
|
3302
|
+
*/
|
|
3303
|
+
DeleteUserResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
3304
|
+
return this.encode(message, writer).ldelim();
|
|
3305
|
+
};
|
|
3306
|
+
|
|
3307
|
+
/**
|
|
3308
|
+
* Decodes a DeleteUserResponse message from the specified reader or buffer.
|
|
3309
|
+
* @function decode
|
|
3310
|
+
* @memberof com.headspace.userdomain.grpc.user.DeleteUserResponse
|
|
3311
|
+
* @static
|
|
3312
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
3313
|
+
* @param {number} [length] Message length if known beforehand
|
|
3314
|
+
* @returns {com.headspace.userdomain.grpc.user.DeleteUserResponse} DeleteUserResponse
|
|
3315
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3316
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3317
|
+
*/
|
|
3318
|
+
DeleteUserResponse.decode = function decode(reader, length) {
|
|
3319
|
+
if (!(reader instanceof $Reader))
|
|
3320
|
+
reader = $Reader.create(reader);
|
|
3321
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.com.headspace.userdomain.grpc.user.DeleteUserResponse();
|
|
3322
|
+
while (reader.pos < end) {
|
|
3323
|
+
var tag = reader.uint32();
|
|
3324
|
+
switch (tag >>> 3) {
|
|
3325
|
+
default:
|
|
3326
|
+
reader.skipType(tag & 7);
|
|
3327
|
+
break;
|
|
3328
|
+
}
|
|
3329
|
+
}
|
|
3330
|
+
return message;
|
|
3331
|
+
};
|
|
3332
|
+
|
|
3333
|
+
/**
|
|
3334
|
+
* Decodes a DeleteUserResponse message from the specified reader or buffer, length delimited.
|
|
3335
|
+
* @function decodeDelimited
|
|
3336
|
+
* @memberof com.headspace.userdomain.grpc.user.DeleteUserResponse
|
|
3337
|
+
* @static
|
|
3338
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
3339
|
+
* @returns {com.headspace.userdomain.grpc.user.DeleteUserResponse} DeleteUserResponse
|
|
3340
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3341
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3342
|
+
*/
|
|
3343
|
+
DeleteUserResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
3344
|
+
if (!(reader instanceof $Reader))
|
|
3345
|
+
reader = new $Reader(reader);
|
|
3346
|
+
return this.decode(reader, reader.uint32());
|
|
3347
|
+
};
|
|
3348
|
+
|
|
3349
|
+
/**
|
|
3350
|
+
* Verifies a DeleteUserResponse message.
|
|
3351
|
+
* @function verify
|
|
3352
|
+
* @memberof com.headspace.userdomain.grpc.user.DeleteUserResponse
|
|
3353
|
+
* @static
|
|
3354
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
3355
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
3356
|
+
*/
|
|
3357
|
+
DeleteUserResponse.verify = function verify(message) {
|
|
3358
|
+
if (typeof message !== "object" || message === null)
|
|
3359
|
+
return "object expected";
|
|
3360
|
+
return null;
|
|
3361
|
+
};
|
|
3362
|
+
|
|
3363
|
+
/**
|
|
3364
|
+
* Creates a DeleteUserResponse message from a plain object. Also converts values to their respective internal types.
|
|
3365
|
+
* @function fromObject
|
|
3366
|
+
* @memberof com.headspace.userdomain.grpc.user.DeleteUserResponse
|
|
3367
|
+
* @static
|
|
3368
|
+
* @param {Object.<string,*>} object Plain object
|
|
3369
|
+
* @returns {com.headspace.userdomain.grpc.user.DeleteUserResponse} DeleteUserResponse
|
|
3370
|
+
*/
|
|
3371
|
+
DeleteUserResponse.fromObject = function fromObject(object) {
|
|
3372
|
+
if (object instanceof $root.com.headspace.userdomain.grpc.user.DeleteUserResponse)
|
|
3373
|
+
return object;
|
|
3374
|
+
return new $root.com.headspace.userdomain.grpc.user.DeleteUserResponse();
|
|
3375
|
+
};
|
|
3376
|
+
|
|
3377
|
+
/**
|
|
3378
|
+
* Creates a plain object from a DeleteUserResponse message. Also converts values to other types if specified.
|
|
3379
|
+
* @function toObject
|
|
3380
|
+
* @memberof com.headspace.userdomain.grpc.user.DeleteUserResponse
|
|
3381
|
+
* @static
|
|
3382
|
+
* @param {com.headspace.userdomain.grpc.user.DeleteUserResponse} message DeleteUserResponse
|
|
3383
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
3384
|
+
* @returns {Object.<string,*>} Plain object
|
|
3385
|
+
*/
|
|
3386
|
+
DeleteUserResponse.toObject = function toObject() {
|
|
3387
|
+
return {};
|
|
3388
|
+
};
|
|
3389
|
+
|
|
3390
|
+
/**
|
|
3391
|
+
* Converts this DeleteUserResponse to JSON.
|
|
3392
|
+
* @function toJSON
|
|
3393
|
+
* @memberof com.headspace.userdomain.grpc.user.DeleteUserResponse
|
|
3394
|
+
* @instance
|
|
3395
|
+
* @returns {Object.<string,*>} JSON object
|
|
3396
|
+
*/
|
|
3397
|
+
DeleteUserResponse.prototype.toJSON = function toJSON() {
|
|
3398
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
3399
|
+
};
|
|
3400
|
+
|
|
3401
|
+
return DeleteUserResponse;
|
|
3402
|
+
})();
|
|
3403
|
+
|
|
3404
|
+
user.FindUserRequest = (function() {
|
|
3405
|
+
|
|
3406
|
+
/**
|
|
3407
|
+
* Properties of a FindUserRequest.
|
|
3408
|
+
* @memberof com.headspace.userdomain.grpc.user
|
|
3409
|
+
* @interface IFindUserRequest
|
|
3410
|
+
* @property {string|null} [hsId] FindUserRequest hsId
|
|
3411
|
+
* @property {string|null} [email] FindUserRequest email
|
|
3412
|
+
*/
|
|
3413
|
+
|
|
3414
|
+
/**
|
|
3415
|
+
* Constructs a new FindUserRequest.
|
|
3416
|
+
* @memberof com.headspace.userdomain.grpc.user
|
|
3417
|
+
* @classdesc Represents a FindUserRequest.
|
|
3418
|
+
* @implements IFindUserRequest
|
|
3419
|
+
* @constructor
|
|
3420
|
+
* @param {com.headspace.userdomain.grpc.user.IFindUserRequest=} [properties] Properties to set
|
|
3421
|
+
*/
|
|
3422
|
+
function FindUserRequest(properties) {
|
|
3423
|
+
if (properties)
|
|
3424
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
3425
|
+
if (properties[keys[i]] != null)
|
|
3426
|
+
this[keys[i]] = properties[keys[i]];
|
|
3427
|
+
}
|
|
3428
|
+
|
|
3429
|
+
/**
|
|
3430
|
+
* FindUserRequest hsId.
|
|
3431
|
+
* @member {string} hsId
|
|
3432
|
+
* @memberof com.headspace.userdomain.grpc.user.FindUserRequest
|
|
3433
|
+
* @instance
|
|
3434
|
+
*/
|
|
3435
|
+
FindUserRequest.prototype.hsId = "";
|
|
3436
|
+
|
|
3437
|
+
/**
|
|
3438
|
+
* FindUserRequest email.
|
|
3439
|
+
* @member {string} email
|
|
3440
|
+
* @memberof com.headspace.userdomain.grpc.user.FindUserRequest
|
|
3441
|
+
* @instance
|
|
3442
|
+
*/
|
|
3443
|
+
FindUserRequest.prototype.email = "";
|
|
3444
|
+
|
|
3445
|
+
/**
|
|
3446
|
+
* Creates a new FindUserRequest instance using the specified properties.
|
|
3447
|
+
* @function create
|
|
3448
|
+
* @memberof com.headspace.userdomain.grpc.user.FindUserRequest
|
|
3449
|
+
* @static
|
|
3450
|
+
* @param {com.headspace.userdomain.grpc.user.IFindUserRequest=} [properties] Properties to set
|
|
3451
|
+
* @returns {com.headspace.userdomain.grpc.user.FindUserRequest} FindUserRequest instance
|
|
3452
|
+
*/
|
|
3453
|
+
FindUserRequest.create = function create(properties) {
|
|
3454
|
+
return new FindUserRequest(properties);
|
|
3455
|
+
};
|
|
3456
|
+
|
|
3457
|
+
/**
|
|
3458
|
+
* Encodes the specified FindUserRequest message. Does not implicitly {@link com.headspace.userdomain.grpc.user.FindUserRequest.verify|verify} messages.
|
|
3459
|
+
* @function encode
|
|
3460
|
+
* @memberof com.headspace.userdomain.grpc.user.FindUserRequest
|
|
3461
|
+
* @static
|
|
3462
|
+
* @param {com.headspace.userdomain.grpc.user.IFindUserRequest} message FindUserRequest message or plain object to encode
|
|
3463
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
3464
|
+
* @returns {$protobuf.Writer} Writer
|
|
3465
|
+
*/
|
|
3466
|
+
FindUserRequest.encode = function encode(message, writer) {
|
|
3467
|
+
if (!writer)
|
|
3468
|
+
writer = $Writer.create();
|
|
3469
|
+
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
3470
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsId);
|
|
3471
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
3472
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.email);
|
|
3473
|
+
return writer;
|
|
3474
|
+
};
|
|
3475
|
+
|
|
3476
|
+
/**
|
|
3477
|
+
* Encodes the specified FindUserRequest message, length delimited. Does not implicitly {@link com.headspace.userdomain.grpc.user.FindUserRequest.verify|verify} messages.
|
|
3478
|
+
* @function encodeDelimited
|
|
3479
|
+
* @memberof com.headspace.userdomain.grpc.user.FindUserRequest
|
|
3480
|
+
* @static
|
|
3481
|
+
* @param {com.headspace.userdomain.grpc.user.IFindUserRequest} message FindUserRequest message or plain object to encode
|
|
3482
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
3483
|
+
* @returns {$protobuf.Writer} Writer
|
|
3484
|
+
*/
|
|
3485
|
+
FindUserRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
3486
|
+
return this.encode(message, writer).ldelim();
|
|
3487
|
+
};
|
|
3488
|
+
|
|
3489
|
+
/**
|
|
3490
|
+
* Decodes a FindUserRequest message from the specified reader or buffer.
|
|
3491
|
+
* @function decode
|
|
3492
|
+
* @memberof com.headspace.userdomain.grpc.user.FindUserRequest
|
|
3493
|
+
* @static
|
|
3494
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
3495
|
+
* @param {number} [length] Message length if known beforehand
|
|
3496
|
+
* @returns {com.headspace.userdomain.grpc.user.FindUserRequest} FindUserRequest
|
|
3497
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3498
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3499
|
+
*/
|
|
3500
|
+
FindUserRequest.decode = function decode(reader, length) {
|
|
3501
|
+
if (!(reader instanceof $Reader))
|
|
3502
|
+
reader = $Reader.create(reader);
|
|
3503
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.com.headspace.userdomain.grpc.user.FindUserRequest();
|
|
3504
|
+
while (reader.pos < end) {
|
|
3505
|
+
var tag = reader.uint32();
|
|
3506
|
+
switch (tag >>> 3) {
|
|
3507
|
+
case 1:
|
|
3508
|
+
message.hsId = reader.string();
|
|
3509
|
+
break;
|
|
3510
|
+
case 2:
|
|
3511
|
+
message.email = reader.string();
|
|
3512
|
+
break;
|
|
3513
|
+
default:
|
|
3514
|
+
reader.skipType(tag & 7);
|
|
3515
|
+
break;
|
|
3516
|
+
}
|
|
3517
|
+
}
|
|
3518
|
+
return message;
|
|
3519
|
+
};
|
|
3520
|
+
|
|
3521
|
+
/**
|
|
3522
|
+
* Decodes a FindUserRequest message from the specified reader or buffer, length delimited.
|
|
3523
|
+
* @function decodeDelimited
|
|
3524
|
+
* @memberof com.headspace.userdomain.grpc.user.FindUserRequest
|
|
3525
|
+
* @static
|
|
3526
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
3527
|
+
* @returns {com.headspace.userdomain.grpc.user.FindUserRequest} FindUserRequest
|
|
3528
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3529
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3530
|
+
*/
|
|
3531
|
+
FindUserRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
3532
|
+
if (!(reader instanceof $Reader))
|
|
3533
|
+
reader = new $Reader(reader);
|
|
3534
|
+
return this.decode(reader, reader.uint32());
|
|
3535
|
+
};
|
|
3536
|
+
|
|
3537
|
+
/**
|
|
3538
|
+
* Verifies a FindUserRequest message.
|
|
3539
|
+
* @function verify
|
|
3540
|
+
* @memberof com.headspace.userdomain.grpc.user.FindUserRequest
|
|
3541
|
+
* @static
|
|
3542
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
3543
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
3544
|
+
*/
|
|
3545
|
+
FindUserRequest.verify = function verify(message) {
|
|
3546
|
+
if (typeof message !== "object" || message === null)
|
|
3547
|
+
return "object expected";
|
|
3548
|
+
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
3549
|
+
if (!$util.isString(message.hsId))
|
|
3550
|
+
return "hsId: string expected";
|
|
3551
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
3552
|
+
if (!$util.isString(message.email))
|
|
3553
|
+
return "email: string expected";
|
|
3554
|
+
return null;
|
|
3555
|
+
};
|
|
3556
|
+
|
|
3557
|
+
/**
|
|
3558
|
+
* Creates a FindUserRequest message from a plain object. Also converts values to their respective internal types.
|
|
3559
|
+
* @function fromObject
|
|
3560
|
+
* @memberof com.headspace.userdomain.grpc.user.FindUserRequest
|
|
3561
|
+
* @static
|
|
3562
|
+
* @param {Object.<string,*>} object Plain object
|
|
3563
|
+
* @returns {com.headspace.userdomain.grpc.user.FindUserRequest} FindUserRequest
|
|
3564
|
+
*/
|
|
3565
|
+
FindUserRequest.fromObject = function fromObject(object) {
|
|
3566
|
+
if (object instanceof $root.com.headspace.userdomain.grpc.user.FindUserRequest)
|
|
3567
|
+
return object;
|
|
3568
|
+
var message = new $root.com.headspace.userdomain.grpc.user.FindUserRequest();
|
|
3569
|
+
if (object.hsId != null)
|
|
3570
|
+
message.hsId = String(object.hsId);
|
|
3571
|
+
if (object.email != null)
|
|
3572
|
+
message.email = String(object.email);
|
|
3573
|
+
return message;
|
|
3574
|
+
};
|
|
3575
|
+
|
|
3576
|
+
/**
|
|
3577
|
+
* Creates a plain object from a FindUserRequest message. Also converts values to other types if specified.
|
|
3578
|
+
* @function toObject
|
|
3579
|
+
* @memberof com.headspace.userdomain.grpc.user.FindUserRequest
|
|
3580
|
+
* @static
|
|
3581
|
+
* @param {com.headspace.userdomain.grpc.user.FindUserRequest} message FindUserRequest
|
|
3582
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
3583
|
+
* @returns {Object.<string,*>} Plain object
|
|
3584
|
+
*/
|
|
3585
|
+
FindUserRequest.toObject = function toObject(message, options) {
|
|
3586
|
+
if (!options)
|
|
3587
|
+
options = {};
|
|
3588
|
+
var object = {};
|
|
3589
|
+
if (options.defaults) {
|
|
3590
|
+
object.hsId = "";
|
|
3591
|
+
object.email = "";
|
|
3592
|
+
}
|
|
3593
|
+
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
3594
|
+
object.hsId = message.hsId;
|
|
3595
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
3596
|
+
object.email = message.email;
|
|
3597
|
+
return object;
|
|
3598
|
+
};
|
|
3599
|
+
|
|
3600
|
+
/**
|
|
3601
|
+
* Converts this FindUserRequest to JSON.
|
|
3602
|
+
* @function toJSON
|
|
3603
|
+
* @memberof com.headspace.userdomain.grpc.user.FindUserRequest
|
|
3604
|
+
* @instance
|
|
3605
|
+
* @returns {Object.<string,*>} JSON object
|
|
3606
|
+
*/
|
|
3607
|
+
FindUserRequest.prototype.toJSON = function toJSON() {
|
|
3608
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
3609
|
+
};
|
|
3610
|
+
|
|
3611
|
+
return FindUserRequest;
|
|
3612
|
+
})();
|
|
3613
|
+
|
|
3614
|
+
user.UserService = (function() {
|
|
3615
|
+
|
|
3616
|
+
/**
|
|
3617
|
+
* Constructs a new UserService service.
|
|
3618
|
+
* @memberof com.headspace.userdomain.grpc.user
|
|
3619
|
+
* @classdesc Represents a UserService
|
|
3620
|
+
* @extends $protobuf.rpc.Service
|
|
3621
|
+
* @constructor
|
|
3622
|
+
* @param {$protobuf.RPCImpl} rpcImpl RPC implementation
|
|
3623
|
+
* @param {boolean} [requestDelimited=false] Whether requests are length-delimited
|
|
3624
|
+
* @param {boolean} [responseDelimited=false] Whether responses are length-delimited
|
|
3625
|
+
*/
|
|
3626
|
+
function UserService(rpcImpl, requestDelimited, responseDelimited) {
|
|
3627
|
+
$protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
|
|
3628
|
+
}
|
|
3629
|
+
|
|
3630
|
+
(UserService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = UserService;
|
|
3631
|
+
|
|
3632
|
+
/**
|
|
3633
|
+
* Creates new UserService service using the specified rpc implementation.
|
|
3634
|
+
* @function create
|
|
3635
|
+
* @memberof com.headspace.userdomain.grpc.user.UserService
|
|
3636
|
+
* @static
|
|
3637
|
+
* @param {$protobuf.RPCImpl} rpcImpl RPC implementation
|
|
3638
|
+
* @param {boolean} [requestDelimited=false] Whether requests are length-delimited
|
|
3639
|
+
* @param {boolean} [responseDelimited=false] Whether responses are length-delimited
|
|
3640
|
+
* @returns {UserService} RPC service. Useful where requests and/or responses are streamed.
|
|
3641
|
+
*/
|
|
3642
|
+
UserService.create = function create(rpcImpl, requestDelimited, responseDelimited) {
|
|
3643
|
+
return new this(rpcImpl, requestDelimited, responseDelimited);
|
|
3644
|
+
};
|
|
3645
|
+
|
|
3646
|
+
/**
|
|
3647
|
+
* Callback as used by {@link com.headspace.userdomain.grpc.user.UserService#createUser}.
|
|
3648
|
+
* @memberof com.headspace.userdomain.grpc.user.UserService
|
|
3649
|
+
* @typedef CreateUserCallback
|
|
3650
|
+
* @type {function}
|
|
3651
|
+
* @param {Error|null} error Error, if any
|
|
3652
|
+
* @param {com.headspace.userdomain.grpc.user.User} [response] User
|
|
3653
|
+
*/
|
|
3654
|
+
|
|
3655
|
+
/**
|
|
3656
|
+
* Calls CreateUser.
|
|
3657
|
+
* @function createUser
|
|
3658
|
+
* @memberof com.headspace.userdomain.grpc.user.UserService
|
|
3659
|
+
* @instance
|
|
3660
|
+
* @param {com.headspace.userdomain.grpc.user.IUser} request User message or plain object
|
|
3661
|
+
* @param {com.headspace.userdomain.grpc.user.UserService.CreateUserCallback} callback Node-style callback called with the error, if any, and User
|
|
3662
|
+
* @returns {undefined}
|
|
3663
|
+
* @variation 1
|
|
3664
|
+
*/
|
|
3665
|
+
Object.defineProperty(UserService.prototype.createUser = function createUser(request, callback) {
|
|
3666
|
+
return this.rpcCall(createUser, $root.com.headspace.userdomain.grpc.user.User, $root.com.headspace.userdomain.grpc.user.User, request, callback);
|
|
3667
|
+
}, "name", { value: "CreateUser" });
|
|
3668
|
+
|
|
3669
|
+
/**
|
|
3670
|
+
* Calls CreateUser.
|
|
3671
|
+
* @function createUser
|
|
3672
|
+
* @memberof com.headspace.userdomain.grpc.user.UserService
|
|
3673
|
+
* @instance
|
|
3674
|
+
* @param {com.headspace.userdomain.grpc.user.IUser} request User message or plain object
|
|
3675
|
+
* @returns {Promise<com.headspace.userdomain.grpc.user.User>} Promise
|
|
3676
|
+
* @variation 2
|
|
3677
|
+
*/
|
|
3678
|
+
|
|
3679
|
+
/**
|
|
3680
|
+
* Callback as used by {@link com.headspace.userdomain.grpc.user.UserService#deleteUser}.
|
|
3681
|
+
* @memberof com.headspace.userdomain.grpc.user.UserService
|
|
3682
|
+
* @typedef DeleteUserCallback
|
|
3683
|
+
* @type {function}
|
|
3684
|
+
* @param {Error|null} error Error, if any
|
|
3685
|
+
* @param {com.headspace.userdomain.grpc.user.DeleteUserResponse} [response] DeleteUserResponse
|
|
3686
|
+
*/
|
|
3687
|
+
|
|
3688
|
+
/**
|
|
3689
|
+
* Calls DeleteUser.
|
|
3690
|
+
* @function deleteUser
|
|
3691
|
+
* @memberof com.headspace.userdomain.grpc.user.UserService
|
|
3692
|
+
* @instance
|
|
3693
|
+
* @param {com.headspace.userdomain.grpc.user.IDeleteUserRequest} request DeleteUserRequest message or plain object
|
|
3694
|
+
* @param {com.headspace.userdomain.grpc.user.UserService.DeleteUserCallback} callback Node-style callback called with the error, if any, and DeleteUserResponse
|
|
3695
|
+
* @returns {undefined}
|
|
3696
|
+
* @variation 1
|
|
3697
|
+
*/
|
|
3698
|
+
Object.defineProperty(UserService.prototype.deleteUser = function deleteUser(request, callback) {
|
|
3699
|
+
return this.rpcCall(deleteUser, $root.com.headspace.userdomain.grpc.user.DeleteUserRequest, $root.com.headspace.userdomain.grpc.user.DeleteUserResponse, request, callback);
|
|
3700
|
+
}, "name", { value: "DeleteUser" });
|
|
3701
|
+
|
|
3702
|
+
/**
|
|
3703
|
+
* Calls DeleteUser.
|
|
3704
|
+
* @function deleteUser
|
|
3705
|
+
* @memberof com.headspace.userdomain.grpc.user.UserService
|
|
3706
|
+
* @instance
|
|
3707
|
+
* @param {com.headspace.userdomain.grpc.user.IDeleteUserRequest} request DeleteUserRequest message or plain object
|
|
3708
|
+
* @returns {Promise<com.headspace.userdomain.grpc.user.DeleteUserResponse>} Promise
|
|
3709
|
+
* @variation 2
|
|
3710
|
+
*/
|
|
3711
|
+
|
|
3712
|
+
/**
|
|
3713
|
+
* Callback as used by {@link com.headspace.userdomain.grpc.user.UserService#updateUser}.
|
|
3714
|
+
* @memberof com.headspace.userdomain.grpc.user.UserService
|
|
3715
|
+
* @typedef UpdateUserCallback
|
|
3716
|
+
* @type {function}
|
|
3717
|
+
* @param {Error|null} error Error, if any
|
|
3718
|
+
* @param {com.headspace.userdomain.grpc.user.User} [response] User
|
|
3719
|
+
*/
|
|
3720
|
+
|
|
3721
|
+
/**
|
|
3722
|
+
* Calls UpdateUser.
|
|
3723
|
+
* @function updateUser
|
|
3724
|
+
* @memberof com.headspace.userdomain.grpc.user.UserService
|
|
3725
|
+
* @instance
|
|
3726
|
+
* @param {com.headspace.userdomain.grpc.user.IUser} request User message or plain object
|
|
3727
|
+
* @param {com.headspace.userdomain.grpc.user.UserService.UpdateUserCallback} callback Node-style callback called with the error, if any, and User
|
|
3728
|
+
* @returns {undefined}
|
|
3729
|
+
* @variation 1
|
|
3730
|
+
*/
|
|
3731
|
+
Object.defineProperty(UserService.prototype.updateUser = function updateUser(request, callback) {
|
|
3732
|
+
return this.rpcCall(updateUser, $root.com.headspace.userdomain.grpc.user.User, $root.com.headspace.userdomain.grpc.user.User, request, callback);
|
|
3733
|
+
}, "name", { value: "UpdateUser" });
|
|
3734
|
+
|
|
3735
|
+
/**
|
|
3736
|
+
* Calls UpdateUser.
|
|
3737
|
+
* @function updateUser
|
|
3738
|
+
* @memberof com.headspace.userdomain.grpc.user.UserService
|
|
3739
|
+
* @instance
|
|
3740
|
+
* @param {com.headspace.userdomain.grpc.user.IUser} request User message or plain object
|
|
3741
|
+
* @returns {Promise<com.headspace.userdomain.grpc.user.User>} Promise
|
|
3742
|
+
* @variation 2
|
|
3743
|
+
*/
|
|
3744
|
+
|
|
3745
|
+
/**
|
|
3746
|
+
* Callback as used by {@link com.headspace.userdomain.grpc.user.UserService#findUser}.
|
|
3747
|
+
* @memberof com.headspace.userdomain.grpc.user.UserService
|
|
3748
|
+
* @typedef FindUserCallback
|
|
3749
|
+
* @type {function}
|
|
3750
|
+
* @param {Error|null} error Error, if any
|
|
3751
|
+
* @param {com.headspace.userdomain.grpc.user.User} [response] User
|
|
3752
|
+
*/
|
|
3753
|
+
|
|
3754
|
+
/**
|
|
3755
|
+
* Calls FindUser.
|
|
3756
|
+
* @function findUser
|
|
3757
|
+
* @memberof com.headspace.userdomain.grpc.user.UserService
|
|
3758
|
+
* @instance
|
|
3759
|
+
* @param {com.headspace.userdomain.grpc.user.IFindUserRequest} request FindUserRequest message or plain object
|
|
3760
|
+
* @param {com.headspace.userdomain.grpc.user.UserService.FindUserCallback} callback Node-style callback called with the error, if any, and User
|
|
3761
|
+
* @returns {undefined}
|
|
3762
|
+
* @variation 1
|
|
3763
|
+
*/
|
|
3764
|
+
Object.defineProperty(UserService.prototype.findUser = function findUser(request, callback) {
|
|
3765
|
+
return this.rpcCall(findUser, $root.com.headspace.userdomain.grpc.user.FindUserRequest, $root.com.headspace.userdomain.grpc.user.User, request, callback);
|
|
3766
|
+
}, "name", { value: "FindUser" });
|
|
3767
|
+
|
|
3768
|
+
/**
|
|
3769
|
+
* Calls FindUser.
|
|
3770
|
+
* @function findUser
|
|
3771
|
+
* @memberof com.headspace.userdomain.grpc.user.UserService
|
|
3772
|
+
* @instance
|
|
3773
|
+
* @param {com.headspace.userdomain.grpc.user.IFindUserRequest} request FindUserRequest message or plain object
|
|
3774
|
+
* @returns {Promise<com.headspace.userdomain.grpc.user.User>} Promise
|
|
3775
|
+
* @variation 2
|
|
3776
|
+
*/
|
|
3777
|
+
|
|
3778
|
+
return UserService;
|
|
3779
|
+
})();
|
|
3780
|
+
|
|
3781
|
+
user.events = (function() {
|
|
3782
|
+
|
|
3783
|
+
/**
|
|
3784
|
+
* Namespace events.
|
|
3785
|
+
* @memberof com.headspace.userdomain.grpc.user
|
|
3786
|
+
* @namespace
|
|
3787
|
+
*/
|
|
3788
|
+
var events = {};
|
|
3789
|
+
|
|
3790
|
+
events.UserCreated = (function() {
|
|
3791
|
+
|
|
3792
|
+
/**
|
|
3793
|
+
* Properties of a UserCreated.
|
|
3794
|
+
* @memberof com.headspace.userdomain.grpc.user.events
|
|
3795
|
+
* @interface IUserCreated
|
|
3796
|
+
* @property {com.headspace.userdomain.grpc.user.IUser|null} [user] UserCreated user
|
|
3797
|
+
*/
|
|
3798
|
+
|
|
3799
|
+
/**
|
|
3800
|
+
* Constructs a new UserCreated.
|
|
3801
|
+
* @memberof com.headspace.userdomain.grpc.user.events
|
|
3802
|
+
* @classdesc Represents a UserCreated.
|
|
3803
|
+
* @implements IUserCreated
|
|
3804
|
+
* @constructor
|
|
3805
|
+
* @param {com.headspace.userdomain.grpc.user.events.IUserCreated=} [properties] Properties to set
|
|
3806
|
+
*/
|
|
3807
|
+
function UserCreated(properties) {
|
|
3808
|
+
if (properties)
|
|
3809
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
3810
|
+
if (properties[keys[i]] != null)
|
|
3811
|
+
this[keys[i]] = properties[keys[i]];
|
|
3812
|
+
}
|
|
3813
|
+
|
|
3814
|
+
/**
|
|
3815
|
+
* UserCreated user.
|
|
3816
|
+
* @member {com.headspace.userdomain.grpc.user.IUser|null|undefined} user
|
|
3817
|
+
* @memberof com.headspace.userdomain.grpc.user.events.UserCreated
|
|
3818
|
+
* @instance
|
|
3819
|
+
*/
|
|
3820
|
+
UserCreated.prototype.user = null;
|
|
3821
|
+
|
|
3822
|
+
/**
|
|
3823
|
+
* Creates a new UserCreated instance using the specified properties.
|
|
3824
|
+
* @function create
|
|
3825
|
+
* @memberof com.headspace.userdomain.grpc.user.events.UserCreated
|
|
3826
|
+
* @static
|
|
3827
|
+
* @param {com.headspace.userdomain.grpc.user.events.IUserCreated=} [properties] Properties to set
|
|
3828
|
+
* @returns {com.headspace.userdomain.grpc.user.events.UserCreated} UserCreated instance
|
|
3829
|
+
*/
|
|
3830
|
+
UserCreated.create = function create(properties) {
|
|
3831
|
+
return new UserCreated(properties);
|
|
3832
|
+
};
|
|
3833
|
+
|
|
3834
|
+
/**
|
|
3835
|
+
* Encodes the specified UserCreated message. Does not implicitly {@link com.headspace.userdomain.grpc.user.events.UserCreated.verify|verify} messages.
|
|
3836
|
+
* @function encode
|
|
3837
|
+
* @memberof com.headspace.userdomain.grpc.user.events.UserCreated
|
|
3838
|
+
* @static
|
|
3839
|
+
* @param {com.headspace.userdomain.grpc.user.events.IUserCreated} message UserCreated message or plain object to encode
|
|
3840
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
3841
|
+
* @returns {$protobuf.Writer} Writer
|
|
3842
|
+
*/
|
|
3843
|
+
UserCreated.encode = function encode(message, writer) {
|
|
3844
|
+
if (!writer)
|
|
3845
|
+
writer = $Writer.create();
|
|
3846
|
+
if (message.user != null && message.hasOwnProperty("user"))
|
|
3847
|
+
$root.com.headspace.userdomain.grpc.user.User.encode(message.user, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
3848
|
+
return writer;
|
|
3849
|
+
};
|
|
3850
|
+
|
|
3851
|
+
/**
|
|
3852
|
+
* Encodes the specified UserCreated message, length delimited. Does not implicitly {@link com.headspace.userdomain.grpc.user.events.UserCreated.verify|verify} messages.
|
|
3853
|
+
* @function encodeDelimited
|
|
3854
|
+
* @memberof com.headspace.userdomain.grpc.user.events.UserCreated
|
|
3855
|
+
* @static
|
|
3856
|
+
* @param {com.headspace.userdomain.grpc.user.events.IUserCreated} message UserCreated message or plain object to encode
|
|
3857
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
3858
|
+
* @returns {$protobuf.Writer} Writer
|
|
3859
|
+
*/
|
|
3860
|
+
UserCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
3861
|
+
return this.encode(message, writer).ldelim();
|
|
3862
|
+
};
|
|
3863
|
+
|
|
3864
|
+
/**
|
|
3865
|
+
* Decodes a UserCreated message from the specified reader or buffer.
|
|
3866
|
+
* @function decode
|
|
3867
|
+
* @memberof com.headspace.userdomain.grpc.user.events.UserCreated
|
|
3868
|
+
* @static
|
|
3869
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
3870
|
+
* @param {number} [length] Message length if known beforehand
|
|
3871
|
+
* @returns {com.headspace.userdomain.grpc.user.events.UserCreated} UserCreated
|
|
3872
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3873
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3874
|
+
*/
|
|
3875
|
+
UserCreated.decode = function decode(reader, length) {
|
|
3876
|
+
if (!(reader instanceof $Reader))
|
|
3877
|
+
reader = $Reader.create(reader);
|
|
3878
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.com.headspace.userdomain.grpc.user.events.UserCreated();
|
|
3879
|
+
while (reader.pos < end) {
|
|
3880
|
+
var tag = reader.uint32();
|
|
3881
|
+
switch (tag >>> 3) {
|
|
3882
|
+
case 1:
|
|
3883
|
+
message.user = $root.com.headspace.userdomain.grpc.user.User.decode(reader, reader.uint32());
|
|
3884
|
+
break;
|
|
3885
|
+
default:
|
|
3886
|
+
reader.skipType(tag & 7);
|
|
3887
|
+
break;
|
|
3888
|
+
}
|
|
3889
|
+
}
|
|
3890
|
+
return message;
|
|
3891
|
+
};
|
|
3892
|
+
|
|
3893
|
+
/**
|
|
3894
|
+
* Decodes a UserCreated message from the specified reader or buffer, length delimited.
|
|
3895
|
+
* @function decodeDelimited
|
|
3896
|
+
* @memberof com.headspace.userdomain.grpc.user.events.UserCreated
|
|
3897
|
+
* @static
|
|
3898
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
3899
|
+
* @returns {com.headspace.userdomain.grpc.user.events.UserCreated} UserCreated
|
|
3900
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3901
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3902
|
+
*/
|
|
3903
|
+
UserCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
3904
|
+
if (!(reader instanceof $Reader))
|
|
3905
|
+
reader = new $Reader(reader);
|
|
3906
|
+
return this.decode(reader, reader.uint32());
|
|
3907
|
+
};
|
|
3908
|
+
|
|
3909
|
+
/**
|
|
3910
|
+
* Verifies a UserCreated message.
|
|
3911
|
+
* @function verify
|
|
3912
|
+
* @memberof com.headspace.userdomain.grpc.user.events.UserCreated
|
|
3913
|
+
* @static
|
|
3914
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
3915
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
3916
|
+
*/
|
|
3917
|
+
UserCreated.verify = function verify(message) {
|
|
3918
|
+
if (typeof message !== "object" || message === null)
|
|
3919
|
+
return "object expected";
|
|
3920
|
+
if (message.user != null && message.hasOwnProperty("user")) {
|
|
3921
|
+
var error = $root.com.headspace.userdomain.grpc.user.User.verify(message.user);
|
|
3922
|
+
if (error)
|
|
3923
|
+
return "user." + error;
|
|
3924
|
+
}
|
|
3925
|
+
return null;
|
|
3926
|
+
};
|
|
3927
|
+
|
|
3928
|
+
/**
|
|
3929
|
+
* Creates a UserCreated message from a plain object. Also converts values to their respective internal types.
|
|
3930
|
+
* @function fromObject
|
|
3931
|
+
* @memberof com.headspace.userdomain.grpc.user.events.UserCreated
|
|
3932
|
+
* @static
|
|
3933
|
+
* @param {Object.<string,*>} object Plain object
|
|
3934
|
+
* @returns {com.headspace.userdomain.grpc.user.events.UserCreated} UserCreated
|
|
3935
|
+
*/
|
|
3936
|
+
UserCreated.fromObject = function fromObject(object) {
|
|
3937
|
+
if (object instanceof $root.com.headspace.userdomain.grpc.user.events.UserCreated)
|
|
3938
|
+
return object;
|
|
3939
|
+
var message = new $root.com.headspace.userdomain.grpc.user.events.UserCreated();
|
|
3940
|
+
if (object.user != null) {
|
|
3941
|
+
if (typeof object.user !== "object")
|
|
3942
|
+
throw TypeError(".com.headspace.userdomain.grpc.user.events.UserCreated.user: object expected");
|
|
3943
|
+
message.user = $root.com.headspace.userdomain.grpc.user.User.fromObject(object.user);
|
|
3944
|
+
}
|
|
3945
|
+
return message;
|
|
3946
|
+
};
|
|
3947
|
+
|
|
3948
|
+
/**
|
|
3949
|
+
* Creates a plain object from a UserCreated message. Also converts values to other types if specified.
|
|
3950
|
+
* @function toObject
|
|
3951
|
+
* @memberof com.headspace.userdomain.grpc.user.events.UserCreated
|
|
3952
|
+
* @static
|
|
3953
|
+
* @param {com.headspace.userdomain.grpc.user.events.UserCreated} message UserCreated
|
|
3954
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
3955
|
+
* @returns {Object.<string,*>} Plain object
|
|
3956
|
+
*/
|
|
3957
|
+
UserCreated.toObject = function toObject(message, options) {
|
|
3958
|
+
if (!options)
|
|
3959
|
+
options = {};
|
|
3960
|
+
var object = {};
|
|
3961
|
+
if (options.defaults)
|
|
3962
|
+
object.user = null;
|
|
3963
|
+
if (message.user != null && message.hasOwnProperty("user"))
|
|
3964
|
+
object.user = $root.com.headspace.userdomain.grpc.user.User.toObject(message.user, options);
|
|
3965
|
+
return object;
|
|
3966
|
+
};
|
|
3967
|
+
|
|
3968
|
+
/**
|
|
3969
|
+
* Converts this UserCreated to JSON.
|
|
3970
|
+
* @function toJSON
|
|
3971
|
+
* @memberof com.headspace.userdomain.grpc.user.events.UserCreated
|
|
3972
|
+
* @instance
|
|
3973
|
+
* @returns {Object.<string,*>} JSON object
|
|
3974
|
+
*/
|
|
3975
|
+
UserCreated.prototype.toJSON = function toJSON() {
|
|
3976
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
3977
|
+
};
|
|
3978
|
+
|
|
3979
|
+
return UserCreated;
|
|
3980
|
+
})();
|
|
3981
|
+
|
|
3982
|
+
events.UserUpdated = (function() {
|
|
3983
|
+
|
|
3984
|
+
/**
|
|
3985
|
+
* Properties of a UserUpdated.
|
|
3986
|
+
* @memberof com.headspace.userdomain.grpc.user.events
|
|
3987
|
+
* @interface IUserUpdated
|
|
3988
|
+
* @property {string|null} [hsId] UserUpdated hsId
|
|
3989
|
+
* @property {number|Long|null} [updatedAt] UserUpdated updatedAt
|
|
3990
|
+
* @property {com.headspace.userdomain.grpc.user.IUser|null} [updatedAttributes] UserUpdated updatedAttributes
|
|
3991
|
+
*/
|
|
3992
|
+
|
|
3993
|
+
/**
|
|
3994
|
+
* Constructs a new UserUpdated.
|
|
3995
|
+
* @memberof com.headspace.userdomain.grpc.user.events
|
|
3996
|
+
* @classdesc Represents a UserUpdated.
|
|
3997
|
+
* @implements IUserUpdated
|
|
3998
|
+
* @constructor
|
|
3999
|
+
* @param {com.headspace.userdomain.grpc.user.events.IUserUpdated=} [properties] Properties to set
|
|
4000
|
+
*/
|
|
4001
|
+
function UserUpdated(properties) {
|
|
4002
|
+
if (properties)
|
|
4003
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
4004
|
+
if (properties[keys[i]] != null)
|
|
4005
|
+
this[keys[i]] = properties[keys[i]];
|
|
4006
|
+
}
|
|
4007
|
+
|
|
4008
|
+
/**
|
|
4009
|
+
* UserUpdated hsId.
|
|
4010
|
+
* @member {string} hsId
|
|
4011
|
+
* @memberof com.headspace.userdomain.grpc.user.events.UserUpdated
|
|
4012
|
+
* @instance
|
|
4013
|
+
*/
|
|
4014
|
+
UserUpdated.prototype.hsId = "";
|
|
4015
|
+
|
|
4016
|
+
/**
|
|
4017
|
+
* UserUpdated updatedAt.
|
|
4018
|
+
* @member {number|Long} updatedAt
|
|
4019
|
+
* @memberof com.headspace.userdomain.grpc.user.events.UserUpdated
|
|
4020
|
+
* @instance
|
|
4021
|
+
*/
|
|
4022
|
+
UserUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
4023
|
+
|
|
4024
|
+
/**
|
|
4025
|
+
* UserUpdated updatedAttributes.
|
|
4026
|
+
* @member {com.headspace.userdomain.grpc.user.IUser|null|undefined} updatedAttributes
|
|
4027
|
+
* @memberof com.headspace.userdomain.grpc.user.events.UserUpdated
|
|
4028
|
+
* @instance
|
|
4029
|
+
*/
|
|
4030
|
+
UserUpdated.prototype.updatedAttributes = null;
|
|
4031
|
+
|
|
4032
|
+
/**
|
|
4033
|
+
* Creates a new UserUpdated instance using the specified properties.
|
|
4034
|
+
* @function create
|
|
4035
|
+
* @memberof com.headspace.userdomain.grpc.user.events.UserUpdated
|
|
4036
|
+
* @static
|
|
4037
|
+
* @param {com.headspace.userdomain.grpc.user.events.IUserUpdated=} [properties] Properties to set
|
|
4038
|
+
* @returns {com.headspace.userdomain.grpc.user.events.UserUpdated} UserUpdated instance
|
|
4039
|
+
*/
|
|
4040
|
+
UserUpdated.create = function create(properties) {
|
|
4041
|
+
return new UserUpdated(properties);
|
|
4042
|
+
};
|
|
4043
|
+
|
|
4044
|
+
/**
|
|
4045
|
+
* Encodes the specified UserUpdated message. Does not implicitly {@link com.headspace.userdomain.grpc.user.events.UserUpdated.verify|verify} messages.
|
|
4046
|
+
* @function encode
|
|
4047
|
+
* @memberof com.headspace.userdomain.grpc.user.events.UserUpdated
|
|
4048
|
+
* @static
|
|
4049
|
+
* @param {com.headspace.userdomain.grpc.user.events.IUserUpdated} message UserUpdated message or plain object to encode
|
|
4050
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
4051
|
+
* @returns {$protobuf.Writer} Writer
|
|
4052
|
+
*/
|
|
4053
|
+
UserUpdated.encode = function encode(message, writer) {
|
|
4054
|
+
if (!writer)
|
|
4055
|
+
writer = $Writer.create();
|
|
4056
|
+
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
4057
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsId);
|
|
4058
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
4059
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.updatedAt);
|
|
4060
|
+
if (message.updatedAttributes != null && message.hasOwnProperty("updatedAttributes"))
|
|
4061
|
+
$root.com.headspace.userdomain.grpc.user.User.encode(message.updatedAttributes, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
4062
|
+
return writer;
|
|
4063
|
+
};
|
|
4064
|
+
|
|
4065
|
+
/**
|
|
4066
|
+
* Encodes the specified UserUpdated message, length delimited. Does not implicitly {@link com.headspace.userdomain.grpc.user.events.UserUpdated.verify|verify} messages.
|
|
4067
|
+
* @function encodeDelimited
|
|
4068
|
+
* @memberof com.headspace.userdomain.grpc.user.events.UserUpdated
|
|
4069
|
+
* @static
|
|
4070
|
+
* @param {com.headspace.userdomain.grpc.user.events.IUserUpdated} message UserUpdated message or plain object to encode
|
|
4071
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
4072
|
+
* @returns {$protobuf.Writer} Writer
|
|
4073
|
+
*/
|
|
4074
|
+
UserUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
4075
|
+
return this.encode(message, writer).ldelim();
|
|
4076
|
+
};
|
|
4077
|
+
|
|
4078
|
+
/**
|
|
4079
|
+
* Decodes a UserUpdated message from the specified reader or buffer.
|
|
4080
|
+
* @function decode
|
|
4081
|
+
* @memberof com.headspace.userdomain.grpc.user.events.UserUpdated
|
|
4082
|
+
* @static
|
|
4083
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
4084
|
+
* @param {number} [length] Message length if known beforehand
|
|
4085
|
+
* @returns {com.headspace.userdomain.grpc.user.events.UserUpdated} UserUpdated
|
|
4086
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4087
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4088
|
+
*/
|
|
4089
|
+
UserUpdated.decode = function decode(reader, length) {
|
|
4090
|
+
if (!(reader instanceof $Reader))
|
|
4091
|
+
reader = $Reader.create(reader);
|
|
4092
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.com.headspace.userdomain.grpc.user.events.UserUpdated();
|
|
4093
|
+
while (reader.pos < end) {
|
|
4094
|
+
var tag = reader.uint32();
|
|
4095
|
+
switch (tag >>> 3) {
|
|
4096
|
+
case 1:
|
|
4097
|
+
message.hsId = reader.string();
|
|
4098
|
+
break;
|
|
4099
|
+
case 2:
|
|
4100
|
+
message.updatedAt = reader.uint64();
|
|
4101
|
+
break;
|
|
4102
|
+
case 3:
|
|
4103
|
+
message.updatedAttributes = $root.com.headspace.userdomain.grpc.user.User.decode(reader, reader.uint32());
|
|
4104
|
+
break;
|
|
4105
|
+
default:
|
|
4106
|
+
reader.skipType(tag & 7);
|
|
4107
|
+
break;
|
|
4108
|
+
}
|
|
4109
|
+
}
|
|
4110
|
+
return message;
|
|
4111
|
+
};
|
|
4112
|
+
|
|
4113
|
+
/**
|
|
4114
|
+
* Decodes a UserUpdated message from the specified reader or buffer, length delimited.
|
|
4115
|
+
* @function decodeDelimited
|
|
4116
|
+
* @memberof com.headspace.userdomain.grpc.user.events.UserUpdated
|
|
4117
|
+
* @static
|
|
4118
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
4119
|
+
* @returns {com.headspace.userdomain.grpc.user.events.UserUpdated} UserUpdated
|
|
4120
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4121
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4122
|
+
*/
|
|
4123
|
+
UserUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
4124
|
+
if (!(reader instanceof $Reader))
|
|
4125
|
+
reader = new $Reader(reader);
|
|
4126
|
+
return this.decode(reader, reader.uint32());
|
|
4127
|
+
};
|
|
4128
|
+
|
|
4129
|
+
/**
|
|
4130
|
+
* Verifies a UserUpdated message.
|
|
4131
|
+
* @function verify
|
|
4132
|
+
* @memberof com.headspace.userdomain.grpc.user.events.UserUpdated
|
|
4133
|
+
* @static
|
|
4134
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
4135
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
4136
|
+
*/
|
|
4137
|
+
UserUpdated.verify = function verify(message) {
|
|
4138
|
+
if (typeof message !== "object" || message === null)
|
|
4139
|
+
return "object expected";
|
|
4140
|
+
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
4141
|
+
if (!$util.isString(message.hsId))
|
|
4142
|
+
return "hsId: string expected";
|
|
4143
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
4144
|
+
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
4145
|
+
return "updatedAt: integer|Long expected";
|
|
4146
|
+
if (message.updatedAttributes != null && message.hasOwnProperty("updatedAttributes")) {
|
|
4147
|
+
var error = $root.com.headspace.userdomain.grpc.user.User.verify(message.updatedAttributes);
|
|
4148
|
+
if (error)
|
|
4149
|
+
return "updatedAttributes." + error;
|
|
4150
|
+
}
|
|
4151
|
+
return null;
|
|
4152
|
+
};
|
|
4153
|
+
|
|
4154
|
+
/**
|
|
4155
|
+
* Creates a UserUpdated message from a plain object. Also converts values to their respective internal types.
|
|
4156
|
+
* @function fromObject
|
|
4157
|
+
* @memberof com.headspace.userdomain.grpc.user.events.UserUpdated
|
|
4158
|
+
* @static
|
|
4159
|
+
* @param {Object.<string,*>} object Plain object
|
|
4160
|
+
* @returns {com.headspace.userdomain.grpc.user.events.UserUpdated} UserUpdated
|
|
4161
|
+
*/
|
|
4162
|
+
UserUpdated.fromObject = function fromObject(object) {
|
|
4163
|
+
if (object instanceof $root.com.headspace.userdomain.grpc.user.events.UserUpdated)
|
|
4164
|
+
return object;
|
|
4165
|
+
var message = new $root.com.headspace.userdomain.grpc.user.events.UserUpdated();
|
|
4166
|
+
if (object.hsId != null)
|
|
4167
|
+
message.hsId = String(object.hsId);
|
|
4168
|
+
if (object.updatedAt != null)
|
|
4169
|
+
if ($util.Long)
|
|
4170
|
+
(message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
|
|
4171
|
+
else if (typeof object.updatedAt === "string")
|
|
4172
|
+
message.updatedAt = parseInt(object.updatedAt, 10);
|
|
4173
|
+
else if (typeof object.updatedAt === "number")
|
|
4174
|
+
message.updatedAt = object.updatedAt;
|
|
4175
|
+
else if (typeof object.updatedAt === "object")
|
|
4176
|
+
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
4177
|
+
if (object.updatedAttributes != null) {
|
|
4178
|
+
if (typeof object.updatedAttributes !== "object")
|
|
4179
|
+
throw TypeError(".com.headspace.userdomain.grpc.user.events.UserUpdated.updatedAttributes: object expected");
|
|
4180
|
+
message.updatedAttributes = $root.com.headspace.userdomain.grpc.user.User.fromObject(object.updatedAttributes);
|
|
4181
|
+
}
|
|
4182
|
+
return message;
|
|
4183
|
+
};
|
|
4184
|
+
|
|
4185
|
+
/**
|
|
4186
|
+
* Creates a plain object from a UserUpdated message. Also converts values to other types if specified.
|
|
4187
|
+
* @function toObject
|
|
4188
|
+
* @memberof com.headspace.userdomain.grpc.user.events.UserUpdated
|
|
4189
|
+
* @static
|
|
4190
|
+
* @param {com.headspace.userdomain.grpc.user.events.UserUpdated} message UserUpdated
|
|
4191
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
4192
|
+
* @returns {Object.<string,*>} Plain object
|
|
4193
|
+
*/
|
|
4194
|
+
UserUpdated.toObject = function toObject(message, options) {
|
|
4195
|
+
if (!options)
|
|
4196
|
+
options = {};
|
|
4197
|
+
var object = {};
|
|
4198
|
+
if (options.defaults) {
|
|
4199
|
+
object.hsId = "";
|
|
4200
|
+
if ($util.Long) {
|
|
4201
|
+
var long = new $util.Long(0, 0, true);
|
|
4202
|
+
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
4203
|
+
} else
|
|
4204
|
+
object.updatedAt = options.longs === String ? "0" : 0;
|
|
4205
|
+
object.updatedAttributes = null;
|
|
4206
|
+
}
|
|
4207
|
+
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
4208
|
+
object.hsId = message.hsId;
|
|
4209
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
4210
|
+
if (typeof message.updatedAt === "number")
|
|
4211
|
+
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
4212
|
+
else
|
|
4213
|
+
object.updatedAt = options.longs === String ? $util.Long.prototype.toString.call(message.updatedAt) : options.longs === Number ? new $util.LongBits(message.updatedAt.low >>> 0, message.updatedAt.high >>> 0).toNumber(true) : message.updatedAt;
|
|
4214
|
+
if (message.updatedAttributes != null && message.hasOwnProperty("updatedAttributes"))
|
|
4215
|
+
object.updatedAttributes = $root.com.headspace.userdomain.grpc.user.User.toObject(message.updatedAttributes, options);
|
|
4216
|
+
return object;
|
|
4217
|
+
};
|
|
4218
|
+
|
|
4219
|
+
/**
|
|
4220
|
+
* Converts this UserUpdated to JSON.
|
|
4221
|
+
* @function toJSON
|
|
4222
|
+
* @memberof com.headspace.userdomain.grpc.user.events.UserUpdated
|
|
4223
|
+
* @instance
|
|
4224
|
+
* @returns {Object.<string,*>} JSON object
|
|
4225
|
+
*/
|
|
4226
|
+
UserUpdated.prototype.toJSON = function toJSON() {
|
|
4227
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
4228
|
+
};
|
|
4229
|
+
|
|
4230
|
+
return UserUpdated;
|
|
4231
|
+
})();
|
|
4232
|
+
|
|
4233
|
+
events.UserDeleted = (function() {
|
|
4234
|
+
|
|
4235
|
+
/**
|
|
4236
|
+
* Properties of a UserDeleted.
|
|
4237
|
+
* @memberof com.headspace.userdomain.grpc.user.events
|
|
4238
|
+
* @interface IUserDeleted
|
|
4239
|
+
* @property {string|null} [hsId] UserDeleted hsId
|
|
4240
|
+
* @property {number|Long|null} [deletedAt] UserDeleted deletedAt
|
|
4241
|
+
*/
|
|
4242
|
+
|
|
4243
|
+
/**
|
|
4244
|
+
* Constructs a new UserDeleted.
|
|
4245
|
+
* @memberof com.headspace.userdomain.grpc.user.events
|
|
4246
|
+
* @classdesc Represents a UserDeleted.
|
|
4247
|
+
* @implements IUserDeleted
|
|
4248
|
+
* @constructor
|
|
4249
|
+
* @param {com.headspace.userdomain.grpc.user.events.IUserDeleted=} [properties] Properties to set
|
|
4250
|
+
*/
|
|
4251
|
+
function UserDeleted(properties) {
|
|
4252
|
+
if (properties)
|
|
4253
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
4254
|
+
if (properties[keys[i]] != null)
|
|
4255
|
+
this[keys[i]] = properties[keys[i]];
|
|
4256
|
+
}
|
|
4257
|
+
|
|
4258
|
+
/**
|
|
4259
|
+
* UserDeleted hsId.
|
|
4260
|
+
* @member {string} hsId
|
|
4261
|
+
* @memberof com.headspace.userdomain.grpc.user.events.UserDeleted
|
|
4262
|
+
* @instance
|
|
4263
|
+
*/
|
|
4264
|
+
UserDeleted.prototype.hsId = "";
|
|
4265
|
+
|
|
4266
|
+
/**
|
|
4267
|
+
* UserDeleted deletedAt.
|
|
4268
|
+
* @member {number|Long} deletedAt
|
|
4269
|
+
* @memberof com.headspace.userdomain.grpc.user.events.UserDeleted
|
|
4270
|
+
* @instance
|
|
4271
|
+
*/
|
|
4272
|
+
UserDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
4273
|
+
|
|
4274
|
+
/**
|
|
4275
|
+
* Creates a new UserDeleted instance using the specified properties.
|
|
4276
|
+
* @function create
|
|
4277
|
+
* @memberof com.headspace.userdomain.grpc.user.events.UserDeleted
|
|
4278
|
+
* @static
|
|
4279
|
+
* @param {com.headspace.userdomain.grpc.user.events.IUserDeleted=} [properties] Properties to set
|
|
4280
|
+
* @returns {com.headspace.userdomain.grpc.user.events.UserDeleted} UserDeleted instance
|
|
4281
|
+
*/
|
|
4282
|
+
UserDeleted.create = function create(properties) {
|
|
4283
|
+
return new UserDeleted(properties);
|
|
4284
|
+
};
|
|
4285
|
+
|
|
4286
|
+
/**
|
|
4287
|
+
* Encodes the specified UserDeleted message. Does not implicitly {@link com.headspace.userdomain.grpc.user.events.UserDeleted.verify|verify} messages.
|
|
4288
|
+
* @function encode
|
|
4289
|
+
* @memberof com.headspace.userdomain.grpc.user.events.UserDeleted
|
|
4290
|
+
* @static
|
|
4291
|
+
* @param {com.headspace.userdomain.grpc.user.events.IUserDeleted} message UserDeleted message or plain object to encode
|
|
4292
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
4293
|
+
* @returns {$protobuf.Writer} Writer
|
|
4294
|
+
*/
|
|
4295
|
+
UserDeleted.encode = function encode(message, writer) {
|
|
4296
|
+
if (!writer)
|
|
4297
|
+
writer = $Writer.create();
|
|
4298
|
+
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
4299
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsId);
|
|
4300
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
4301
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.deletedAt);
|
|
4302
|
+
return writer;
|
|
4303
|
+
};
|
|
4304
|
+
|
|
4305
|
+
/**
|
|
4306
|
+
* Encodes the specified UserDeleted message, length delimited. Does not implicitly {@link com.headspace.userdomain.grpc.user.events.UserDeleted.verify|verify} messages.
|
|
4307
|
+
* @function encodeDelimited
|
|
4308
|
+
* @memberof com.headspace.userdomain.grpc.user.events.UserDeleted
|
|
4309
|
+
* @static
|
|
4310
|
+
* @param {com.headspace.userdomain.grpc.user.events.IUserDeleted} message UserDeleted message or plain object to encode
|
|
4311
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
4312
|
+
* @returns {$protobuf.Writer} Writer
|
|
4313
|
+
*/
|
|
4314
|
+
UserDeleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
4315
|
+
return this.encode(message, writer).ldelim();
|
|
4316
|
+
};
|
|
4317
|
+
|
|
4318
|
+
/**
|
|
4319
|
+
* Decodes a UserDeleted message from the specified reader or buffer.
|
|
4320
|
+
* @function decode
|
|
4321
|
+
* @memberof com.headspace.userdomain.grpc.user.events.UserDeleted
|
|
4322
|
+
* @static
|
|
4323
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
4324
|
+
* @param {number} [length] Message length if known beforehand
|
|
4325
|
+
* @returns {com.headspace.userdomain.grpc.user.events.UserDeleted} UserDeleted
|
|
4326
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4327
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4328
|
+
*/
|
|
4329
|
+
UserDeleted.decode = function decode(reader, length) {
|
|
4330
|
+
if (!(reader instanceof $Reader))
|
|
4331
|
+
reader = $Reader.create(reader);
|
|
4332
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.com.headspace.userdomain.grpc.user.events.UserDeleted();
|
|
4333
|
+
while (reader.pos < end) {
|
|
4334
|
+
var tag = reader.uint32();
|
|
4335
|
+
switch (tag >>> 3) {
|
|
4336
|
+
case 1:
|
|
4337
|
+
message.hsId = reader.string();
|
|
4338
|
+
break;
|
|
4339
|
+
case 2:
|
|
4340
|
+
message.deletedAt = reader.uint64();
|
|
4341
|
+
break;
|
|
4342
|
+
default:
|
|
4343
|
+
reader.skipType(tag & 7);
|
|
4344
|
+
break;
|
|
4345
|
+
}
|
|
4346
|
+
}
|
|
4347
|
+
return message;
|
|
4348
|
+
};
|
|
4349
|
+
|
|
4350
|
+
/**
|
|
4351
|
+
* Decodes a UserDeleted message from the specified reader or buffer, length delimited.
|
|
4352
|
+
* @function decodeDelimited
|
|
4353
|
+
* @memberof com.headspace.userdomain.grpc.user.events.UserDeleted
|
|
4354
|
+
* @static
|
|
4355
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
4356
|
+
* @returns {com.headspace.userdomain.grpc.user.events.UserDeleted} UserDeleted
|
|
4357
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4358
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4359
|
+
*/
|
|
4360
|
+
UserDeleted.decodeDelimited = function decodeDelimited(reader) {
|
|
4361
|
+
if (!(reader instanceof $Reader))
|
|
4362
|
+
reader = new $Reader(reader);
|
|
4363
|
+
return this.decode(reader, reader.uint32());
|
|
4364
|
+
};
|
|
4365
|
+
|
|
4366
|
+
/**
|
|
4367
|
+
* Verifies a UserDeleted message.
|
|
4368
|
+
* @function verify
|
|
4369
|
+
* @memberof com.headspace.userdomain.grpc.user.events.UserDeleted
|
|
4370
|
+
* @static
|
|
4371
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
4372
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
4373
|
+
*/
|
|
4374
|
+
UserDeleted.verify = function verify(message) {
|
|
4375
|
+
if (typeof message !== "object" || message === null)
|
|
4376
|
+
return "object expected";
|
|
4377
|
+
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
4378
|
+
if (!$util.isString(message.hsId))
|
|
4379
|
+
return "hsId: string expected";
|
|
4380
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
4381
|
+
if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
|
|
4382
|
+
return "deletedAt: integer|Long expected";
|
|
4383
|
+
return null;
|
|
4384
|
+
};
|
|
4385
|
+
|
|
4386
|
+
/**
|
|
4387
|
+
* Creates a UserDeleted message from a plain object. Also converts values to their respective internal types.
|
|
4388
|
+
* @function fromObject
|
|
4389
|
+
* @memberof com.headspace.userdomain.grpc.user.events.UserDeleted
|
|
4390
|
+
* @static
|
|
4391
|
+
* @param {Object.<string,*>} object Plain object
|
|
4392
|
+
* @returns {com.headspace.userdomain.grpc.user.events.UserDeleted} UserDeleted
|
|
4393
|
+
*/
|
|
4394
|
+
UserDeleted.fromObject = function fromObject(object) {
|
|
4395
|
+
if (object instanceof $root.com.headspace.userdomain.grpc.user.events.UserDeleted)
|
|
4396
|
+
return object;
|
|
4397
|
+
var message = new $root.com.headspace.userdomain.grpc.user.events.UserDeleted();
|
|
4398
|
+
if (object.hsId != null)
|
|
4399
|
+
message.hsId = String(object.hsId);
|
|
4400
|
+
if (object.deletedAt != null)
|
|
4401
|
+
if ($util.Long)
|
|
4402
|
+
(message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
|
|
4403
|
+
else if (typeof object.deletedAt === "string")
|
|
4404
|
+
message.deletedAt = parseInt(object.deletedAt, 10);
|
|
4405
|
+
else if (typeof object.deletedAt === "number")
|
|
4406
|
+
message.deletedAt = object.deletedAt;
|
|
4407
|
+
else if (typeof object.deletedAt === "object")
|
|
4408
|
+
message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
|
|
4409
|
+
return message;
|
|
4410
|
+
};
|
|
4411
|
+
|
|
4412
|
+
/**
|
|
4413
|
+
* Creates a plain object from a UserDeleted message. Also converts values to other types if specified.
|
|
4414
|
+
* @function toObject
|
|
4415
|
+
* @memberof com.headspace.userdomain.grpc.user.events.UserDeleted
|
|
4416
|
+
* @static
|
|
4417
|
+
* @param {com.headspace.userdomain.grpc.user.events.UserDeleted} message UserDeleted
|
|
4418
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
4419
|
+
* @returns {Object.<string,*>} Plain object
|
|
4420
|
+
*/
|
|
4421
|
+
UserDeleted.toObject = function toObject(message, options) {
|
|
4422
|
+
if (!options)
|
|
4423
|
+
options = {};
|
|
4424
|
+
var object = {};
|
|
4425
|
+
if (options.defaults) {
|
|
4426
|
+
object.hsId = "";
|
|
4427
|
+
if ($util.Long) {
|
|
4428
|
+
var long = new $util.Long(0, 0, true);
|
|
4429
|
+
object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
4430
|
+
} else
|
|
4431
|
+
object.deletedAt = options.longs === String ? "0" : 0;
|
|
4432
|
+
}
|
|
4433
|
+
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
4434
|
+
object.hsId = message.hsId;
|
|
4435
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
4436
|
+
if (typeof message.deletedAt === "number")
|
|
4437
|
+
object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
|
|
4438
|
+
else
|
|
4439
|
+
object.deletedAt = options.longs === String ? $util.Long.prototype.toString.call(message.deletedAt) : options.longs === Number ? new $util.LongBits(message.deletedAt.low >>> 0, message.deletedAt.high >>> 0).toNumber(true) : message.deletedAt;
|
|
4440
|
+
return object;
|
|
4441
|
+
};
|
|
4442
|
+
|
|
4443
|
+
/**
|
|
4444
|
+
* Converts this UserDeleted to JSON.
|
|
4445
|
+
* @function toJSON
|
|
4446
|
+
* @memberof com.headspace.userdomain.grpc.user.events.UserDeleted
|
|
4447
|
+
* @instance
|
|
4448
|
+
* @returns {Object.<string,*>} JSON object
|
|
4449
|
+
*/
|
|
4450
|
+
UserDeleted.prototype.toJSON = function toJSON() {
|
|
4451
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
4452
|
+
};
|
|
4453
|
+
|
|
4454
|
+
return UserDeleted;
|
|
4455
|
+
})();
|
|
4456
|
+
|
|
4457
|
+
return events;
|
|
4458
|
+
})();
|
|
4459
|
+
|
|
4460
|
+
return user;
|
|
4461
|
+
})();
|
|
4462
|
+
|
|
4463
|
+
grpc.auth = (function() {
|
|
4464
|
+
|
|
4465
|
+
/**
|
|
4466
|
+
* Namespace auth.
|
|
4467
|
+
* @memberof com.headspace.userdomain.grpc
|
|
4468
|
+
* @namespace
|
|
4469
|
+
*/
|
|
4470
|
+
var auth = {};
|
|
4471
|
+
|
|
4472
|
+
auth.events = (function() {
|
|
4473
|
+
|
|
4474
|
+
/**
|
|
4475
|
+
* Namespace events.
|
|
4476
|
+
* @memberof com.headspace.userdomain.grpc.auth
|
|
4477
|
+
* @namespace
|
|
4478
|
+
*/
|
|
4479
|
+
var events = {};
|
|
4480
|
+
|
|
4481
|
+
events.UserPasswordResetCreated = (function() {
|
|
4482
|
+
|
|
4483
|
+
/**
|
|
4484
|
+
* Properties of a UserPasswordResetCreated.
|
|
4485
|
+
* @memberof com.headspace.userdomain.grpc.auth.events
|
|
4486
|
+
* @interface IUserPasswordResetCreated
|
|
4487
|
+
* @property {string|null} [email] UserPasswordResetCreated email
|
|
4488
|
+
* @property {string|null} [ticket] UserPasswordResetCreated ticket
|
|
4489
|
+
*/
|
|
4490
|
+
|
|
4491
|
+
/**
|
|
4492
|
+
* Constructs a new UserPasswordResetCreated.
|
|
4493
|
+
* @memberof com.headspace.userdomain.grpc.auth.events
|
|
4494
|
+
* @classdesc Represents a UserPasswordResetCreated.
|
|
4495
|
+
* @implements IUserPasswordResetCreated
|
|
4496
|
+
* @constructor
|
|
4497
|
+
* @param {com.headspace.userdomain.grpc.auth.events.IUserPasswordResetCreated=} [properties] Properties to set
|
|
4498
|
+
*/
|
|
4499
|
+
function UserPasswordResetCreated(properties) {
|
|
4500
|
+
if (properties)
|
|
4501
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
4502
|
+
if (properties[keys[i]] != null)
|
|
4503
|
+
this[keys[i]] = properties[keys[i]];
|
|
4504
|
+
}
|
|
4505
|
+
|
|
4506
|
+
/**
|
|
4507
|
+
* UserPasswordResetCreated email.
|
|
4508
|
+
* @member {string} email
|
|
4509
|
+
* @memberof com.headspace.userdomain.grpc.auth.events.UserPasswordResetCreated
|
|
4510
|
+
* @instance
|
|
4511
|
+
*/
|
|
4512
|
+
UserPasswordResetCreated.prototype.email = "";
|
|
4513
|
+
|
|
4514
|
+
/**
|
|
4515
|
+
* UserPasswordResetCreated ticket.
|
|
4516
|
+
* @member {string} ticket
|
|
4517
|
+
* @memberof com.headspace.userdomain.grpc.auth.events.UserPasswordResetCreated
|
|
4518
|
+
* @instance
|
|
4519
|
+
*/
|
|
4520
|
+
UserPasswordResetCreated.prototype.ticket = "";
|
|
4521
|
+
|
|
4522
|
+
/**
|
|
4523
|
+
* Creates a new UserPasswordResetCreated instance using the specified properties.
|
|
4524
|
+
* @function create
|
|
4525
|
+
* @memberof com.headspace.userdomain.grpc.auth.events.UserPasswordResetCreated
|
|
4526
|
+
* @static
|
|
4527
|
+
* @param {com.headspace.userdomain.grpc.auth.events.IUserPasswordResetCreated=} [properties] Properties to set
|
|
4528
|
+
* @returns {com.headspace.userdomain.grpc.auth.events.UserPasswordResetCreated} UserPasswordResetCreated instance
|
|
4529
|
+
*/
|
|
4530
|
+
UserPasswordResetCreated.create = function create(properties) {
|
|
4531
|
+
return new UserPasswordResetCreated(properties);
|
|
4532
|
+
};
|
|
4533
|
+
|
|
4534
|
+
/**
|
|
4535
|
+
* Encodes the specified UserPasswordResetCreated message. Does not implicitly {@link com.headspace.userdomain.grpc.auth.events.UserPasswordResetCreated.verify|verify} messages.
|
|
4536
|
+
* @function encode
|
|
4537
|
+
* @memberof com.headspace.userdomain.grpc.auth.events.UserPasswordResetCreated
|
|
4538
|
+
* @static
|
|
4539
|
+
* @param {com.headspace.userdomain.grpc.auth.events.IUserPasswordResetCreated} message UserPasswordResetCreated message or plain object to encode
|
|
4540
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
4541
|
+
* @returns {$protobuf.Writer} Writer
|
|
4542
|
+
*/
|
|
4543
|
+
UserPasswordResetCreated.encode = function encode(message, writer) {
|
|
4544
|
+
if (!writer)
|
|
4545
|
+
writer = $Writer.create();
|
|
4546
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
4547
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.email);
|
|
4548
|
+
if (message.ticket != null && message.hasOwnProperty("ticket"))
|
|
4549
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.ticket);
|
|
4550
|
+
return writer;
|
|
4551
|
+
};
|
|
4552
|
+
|
|
4553
|
+
/**
|
|
4554
|
+
* Encodes the specified UserPasswordResetCreated message, length delimited. Does not implicitly {@link com.headspace.userdomain.grpc.auth.events.UserPasswordResetCreated.verify|verify} messages.
|
|
4555
|
+
* @function encodeDelimited
|
|
4556
|
+
* @memberof com.headspace.userdomain.grpc.auth.events.UserPasswordResetCreated
|
|
4557
|
+
* @static
|
|
4558
|
+
* @param {com.headspace.userdomain.grpc.auth.events.IUserPasswordResetCreated} message UserPasswordResetCreated message or plain object to encode
|
|
4559
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
4560
|
+
* @returns {$protobuf.Writer} Writer
|
|
4561
|
+
*/
|
|
4562
|
+
UserPasswordResetCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
4563
|
+
return this.encode(message, writer).ldelim();
|
|
4564
|
+
};
|
|
4565
|
+
|
|
4566
|
+
/**
|
|
4567
|
+
* Decodes a UserPasswordResetCreated message from the specified reader or buffer.
|
|
4568
|
+
* @function decode
|
|
4569
|
+
* @memberof com.headspace.userdomain.grpc.auth.events.UserPasswordResetCreated
|
|
4570
|
+
* @static
|
|
4571
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
4572
|
+
* @param {number} [length] Message length if known beforehand
|
|
4573
|
+
* @returns {com.headspace.userdomain.grpc.auth.events.UserPasswordResetCreated} UserPasswordResetCreated
|
|
4574
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4575
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4576
|
+
*/
|
|
4577
|
+
UserPasswordResetCreated.decode = function decode(reader, length) {
|
|
4578
|
+
if (!(reader instanceof $Reader))
|
|
4579
|
+
reader = $Reader.create(reader);
|
|
4580
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.com.headspace.userdomain.grpc.auth.events.UserPasswordResetCreated();
|
|
4581
|
+
while (reader.pos < end) {
|
|
4582
|
+
var tag = reader.uint32();
|
|
4583
|
+
switch (tag >>> 3) {
|
|
4584
|
+
case 1:
|
|
4585
|
+
message.email = reader.string();
|
|
4586
|
+
break;
|
|
4587
|
+
case 2:
|
|
4588
|
+
message.ticket = reader.string();
|
|
4589
|
+
break;
|
|
4590
|
+
default:
|
|
4591
|
+
reader.skipType(tag & 7);
|
|
4592
|
+
break;
|
|
4593
|
+
}
|
|
4594
|
+
}
|
|
4595
|
+
return message;
|
|
4596
|
+
};
|
|
4597
|
+
|
|
4598
|
+
/**
|
|
4599
|
+
* Decodes a UserPasswordResetCreated message from the specified reader or buffer, length delimited.
|
|
4600
|
+
* @function decodeDelimited
|
|
4601
|
+
* @memberof com.headspace.userdomain.grpc.auth.events.UserPasswordResetCreated
|
|
4602
|
+
* @static
|
|
4603
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
4604
|
+
* @returns {com.headspace.userdomain.grpc.auth.events.UserPasswordResetCreated} UserPasswordResetCreated
|
|
4605
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4606
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4607
|
+
*/
|
|
4608
|
+
UserPasswordResetCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
4609
|
+
if (!(reader instanceof $Reader))
|
|
4610
|
+
reader = new $Reader(reader);
|
|
4611
|
+
return this.decode(reader, reader.uint32());
|
|
4612
|
+
};
|
|
4613
|
+
|
|
4614
|
+
/**
|
|
4615
|
+
* Verifies a UserPasswordResetCreated message.
|
|
4616
|
+
* @function verify
|
|
4617
|
+
* @memberof com.headspace.userdomain.grpc.auth.events.UserPasswordResetCreated
|
|
4618
|
+
* @static
|
|
4619
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
4620
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
4621
|
+
*/
|
|
4622
|
+
UserPasswordResetCreated.verify = function verify(message) {
|
|
4623
|
+
if (typeof message !== "object" || message === null)
|
|
4624
|
+
return "object expected";
|
|
4625
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
4626
|
+
if (!$util.isString(message.email))
|
|
4627
|
+
return "email: string expected";
|
|
4628
|
+
if (message.ticket != null && message.hasOwnProperty("ticket"))
|
|
4629
|
+
if (!$util.isString(message.ticket))
|
|
4630
|
+
return "ticket: string expected";
|
|
4631
|
+
return null;
|
|
4632
|
+
};
|
|
4633
|
+
|
|
4634
|
+
/**
|
|
4635
|
+
* Creates a UserPasswordResetCreated message from a plain object. Also converts values to their respective internal types.
|
|
4636
|
+
* @function fromObject
|
|
4637
|
+
* @memberof com.headspace.userdomain.grpc.auth.events.UserPasswordResetCreated
|
|
4638
|
+
* @static
|
|
4639
|
+
* @param {Object.<string,*>} object Plain object
|
|
4640
|
+
* @returns {com.headspace.userdomain.grpc.auth.events.UserPasswordResetCreated} UserPasswordResetCreated
|
|
4641
|
+
*/
|
|
4642
|
+
UserPasswordResetCreated.fromObject = function fromObject(object) {
|
|
4643
|
+
if (object instanceof $root.com.headspace.userdomain.grpc.auth.events.UserPasswordResetCreated)
|
|
4644
|
+
return object;
|
|
4645
|
+
var message = new $root.com.headspace.userdomain.grpc.auth.events.UserPasswordResetCreated();
|
|
4646
|
+
if (object.email != null)
|
|
4647
|
+
message.email = String(object.email);
|
|
4648
|
+
if (object.ticket != null)
|
|
4649
|
+
message.ticket = String(object.ticket);
|
|
4650
|
+
return message;
|
|
4651
|
+
};
|
|
4652
|
+
|
|
4653
|
+
/**
|
|
4654
|
+
* Creates a plain object from a UserPasswordResetCreated message. Also converts values to other types if specified.
|
|
4655
|
+
* @function toObject
|
|
4656
|
+
* @memberof com.headspace.userdomain.grpc.auth.events.UserPasswordResetCreated
|
|
4657
|
+
* @static
|
|
4658
|
+
* @param {com.headspace.userdomain.grpc.auth.events.UserPasswordResetCreated} message UserPasswordResetCreated
|
|
4659
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
4660
|
+
* @returns {Object.<string,*>} Plain object
|
|
4661
|
+
*/
|
|
4662
|
+
UserPasswordResetCreated.toObject = function toObject(message, options) {
|
|
4663
|
+
if (!options)
|
|
4664
|
+
options = {};
|
|
4665
|
+
var object = {};
|
|
4666
|
+
if (options.defaults) {
|
|
4667
|
+
object.email = "";
|
|
4668
|
+
object.ticket = "";
|
|
4669
|
+
}
|
|
4670
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
4671
|
+
object.email = message.email;
|
|
4672
|
+
if (message.ticket != null && message.hasOwnProperty("ticket"))
|
|
4673
|
+
object.ticket = message.ticket;
|
|
4674
|
+
return object;
|
|
4675
|
+
};
|
|
4676
|
+
|
|
4677
|
+
/**
|
|
4678
|
+
* Converts this UserPasswordResetCreated to JSON.
|
|
4679
|
+
* @function toJSON
|
|
4680
|
+
* @memberof com.headspace.userdomain.grpc.auth.events.UserPasswordResetCreated
|
|
4681
|
+
* @instance
|
|
4682
|
+
* @returns {Object.<string,*>} JSON object
|
|
4683
|
+
*/
|
|
4684
|
+
UserPasswordResetCreated.prototype.toJSON = function toJSON() {
|
|
4685
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
4686
|
+
};
|
|
4687
|
+
|
|
4688
|
+
return UserPasswordResetCreated;
|
|
4689
|
+
})();
|
|
4690
|
+
|
|
4691
|
+
return events;
|
|
4692
|
+
})();
|
|
4693
|
+
|
|
4694
|
+
return auth;
|
|
4695
|
+
})();
|
|
4696
|
+
|
|
4697
|
+
return grpc;
|
|
4698
|
+
})();
|
|
4699
|
+
|
|
4700
|
+
return userdomain;
|
|
4701
|
+
})();
|
|
4702
|
+
|
|
4703
|
+
return headspace;
|
|
4704
|
+
})();
|
|
4705
|
+
|
|
4706
|
+
return com;
|
|
4707
|
+
})();
|
|
4708
|
+
|
|
2550
4709
|
$root.FamilyMemberAdded = (function() {
|
|
2551
4710
|
|
|
2552
4711
|
/**
|