@headspace/protos-events 1.780.0 → 1.781.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 +157 -0
- package/lib/index.js +512 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -16766,6 +16766,163 @@ export class CoachingRatingSubmitted implements ICoachingRatingSubmitted {
|
|
|
16766
16766
|
public toJSON(): { [k: string]: any };
|
|
16767
16767
|
}
|
|
16768
16768
|
|
|
16769
|
+
/** Properties of a CoachAvailabilityOffered. */
|
|
16770
|
+
export interface ICoachAvailabilityOffered {
|
|
16771
|
+
|
|
16772
|
+
/** CoachAvailabilityOffered listenerId */
|
|
16773
|
+
listenerId?: (number|Long|null);
|
|
16774
|
+
|
|
16775
|
+
/** CoachAvailabilityOffered careWebUserId */
|
|
16776
|
+
careWebUserId?: (string|null);
|
|
16777
|
+
|
|
16778
|
+
/** CoachAvailabilityOffered hsUserId */
|
|
16779
|
+
hsUserId?: (string|null);
|
|
16780
|
+
|
|
16781
|
+
/** CoachAvailabilityOffered searchStart */
|
|
16782
|
+
searchStart?: (number|Long|null);
|
|
16783
|
+
|
|
16784
|
+
/** CoachAvailabilityOffered searchEnd */
|
|
16785
|
+
searchEnd?: (number|Long|null);
|
|
16786
|
+
|
|
16787
|
+
/** CoachAvailabilityOffered availabilityType */
|
|
16788
|
+
availabilityType?: (AvailabilityType|null);
|
|
16789
|
+
|
|
16790
|
+
/** CoachAvailabilityOffered availabilitySlotCount */
|
|
16791
|
+
availabilitySlotCount?: (number|null);
|
|
16792
|
+
|
|
16793
|
+
/** CoachAvailabilityOffered earliestAvailability */
|
|
16794
|
+
earliestAvailability?: (number|Long|null);
|
|
16795
|
+
|
|
16796
|
+
/** CoachAvailabilityOffered latestAvailability */
|
|
16797
|
+
latestAvailability?: (number|Long|null);
|
|
16798
|
+
|
|
16799
|
+
/** CoachAvailabilityOffered earliestAvailabilityHoursAhead */
|
|
16800
|
+
earliestAvailabilityHoursAhead?: (number|null);
|
|
16801
|
+
|
|
16802
|
+
/** CoachAvailabilityOffered latestAvailabilityHoursAhead */
|
|
16803
|
+
latestAvailabilityHoursAhead?: (number|null);
|
|
16804
|
+
}
|
|
16805
|
+
|
|
16806
|
+
/** Represents a CoachAvailabilityOffered. */
|
|
16807
|
+
export class CoachAvailabilityOffered implements ICoachAvailabilityOffered {
|
|
16808
|
+
|
|
16809
|
+
/**
|
|
16810
|
+
* Constructs a new CoachAvailabilityOffered.
|
|
16811
|
+
* @param [properties] Properties to set
|
|
16812
|
+
*/
|
|
16813
|
+
constructor(properties?: ICoachAvailabilityOffered);
|
|
16814
|
+
|
|
16815
|
+
/** CoachAvailabilityOffered listenerId. */
|
|
16816
|
+
public listenerId: (number|Long);
|
|
16817
|
+
|
|
16818
|
+
/** CoachAvailabilityOffered careWebUserId. */
|
|
16819
|
+
public careWebUserId: string;
|
|
16820
|
+
|
|
16821
|
+
/** CoachAvailabilityOffered hsUserId. */
|
|
16822
|
+
public hsUserId: string;
|
|
16823
|
+
|
|
16824
|
+
/** CoachAvailabilityOffered searchStart. */
|
|
16825
|
+
public searchStart: (number|Long);
|
|
16826
|
+
|
|
16827
|
+
/** CoachAvailabilityOffered searchEnd. */
|
|
16828
|
+
public searchEnd: (number|Long);
|
|
16829
|
+
|
|
16830
|
+
/** CoachAvailabilityOffered availabilityType. */
|
|
16831
|
+
public availabilityType: AvailabilityType;
|
|
16832
|
+
|
|
16833
|
+
/** CoachAvailabilityOffered availabilitySlotCount. */
|
|
16834
|
+
public availabilitySlotCount: number;
|
|
16835
|
+
|
|
16836
|
+
/** CoachAvailabilityOffered earliestAvailability. */
|
|
16837
|
+
public earliestAvailability: (number|Long);
|
|
16838
|
+
|
|
16839
|
+
/** CoachAvailabilityOffered latestAvailability. */
|
|
16840
|
+
public latestAvailability: (number|Long);
|
|
16841
|
+
|
|
16842
|
+
/** CoachAvailabilityOffered earliestAvailabilityHoursAhead. */
|
|
16843
|
+
public earliestAvailabilityHoursAhead: number;
|
|
16844
|
+
|
|
16845
|
+
/** CoachAvailabilityOffered latestAvailabilityHoursAhead. */
|
|
16846
|
+
public latestAvailabilityHoursAhead: number;
|
|
16847
|
+
|
|
16848
|
+
/**
|
|
16849
|
+
* Creates a new CoachAvailabilityOffered instance using the specified properties.
|
|
16850
|
+
* @param [properties] Properties to set
|
|
16851
|
+
* @returns CoachAvailabilityOffered instance
|
|
16852
|
+
*/
|
|
16853
|
+
public static create(properties?: ICoachAvailabilityOffered): CoachAvailabilityOffered;
|
|
16854
|
+
|
|
16855
|
+
/**
|
|
16856
|
+
* Encodes the specified CoachAvailabilityOffered message. Does not implicitly {@link CoachAvailabilityOffered.verify|verify} messages.
|
|
16857
|
+
* @param message CoachAvailabilityOffered message or plain object to encode
|
|
16858
|
+
* @param [writer] Writer to encode to
|
|
16859
|
+
* @returns Writer
|
|
16860
|
+
*/
|
|
16861
|
+
public static encode(message: ICoachAvailabilityOffered, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
16862
|
+
|
|
16863
|
+
/**
|
|
16864
|
+
* Encodes the specified CoachAvailabilityOffered message, length delimited. Does not implicitly {@link CoachAvailabilityOffered.verify|verify} messages.
|
|
16865
|
+
* @param message CoachAvailabilityOffered message or plain object to encode
|
|
16866
|
+
* @param [writer] Writer to encode to
|
|
16867
|
+
* @returns Writer
|
|
16868
|
+
*/
|
|
16869
|
+
public static encodeDelimited(message: ICoachAvailabilityOffered, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
16870
|
+
|
|
16871
|
+
/**
|
|
16872
|
+
* Decodes a CoachAvailabilityOffered message from the specified reader or buffer.
|
|
16873
|
+
* @param reader Reader or buffer to decode from
|
|
16874
|
+
* @param [length] Message length if known beforehand
|
|
16875
|
+
* @returns CoachAvailabilityOffered
|
|
16876
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
16877
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
16878
|
+
*/
|
|
16879
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): CoachAvailabilityOffered;
|
|
16880
|
+
|
|
16881
|
+
/**
|
|
16882
|
+
* Decodes a CoachAvailabilityOffered message from the specified reader or buffer, length delimited.
|
|
16883
|
+
* @param reader Reader or buffer to decode from
|
|
16884
|
+
* @returns CoachAvailabilityOffered
|
|
16885
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
16886
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
16887
|
+
*/
|
|
16888
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): CoachAvailabilityOffered;
|
|
16889
|
+
|
|
16890
|
+
/**
|
|
16891
|
+
* Verifies a CoachAvailabilityOffered message.
|
|
16892
|
+
* @param message Plain object to verify
|
|
16893
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
16894
|
+
*/
|
|
16895
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
16896
|
+
|
|
16897
|
+
/**
|
|
16898
|
+
* Creates a CoachAvailabilityOffered message from a plain object. Also converts values to their respective internal types.
|
|
16899
|
+
* @param object Plain object
|
|
16900
|
+
* @returns CoachAvailabilityOffered
|
|
16901
|
+
*/
|
|
16902
|
+
public static fromObject(object: { [k: string]: any }): CoachAvailabilityOffered;
|
|
16903
|
+
|
|
16904
|
+
/**
|
|
16905
|
+
* Creates a plain object from a CoachAvailabilityOffered message. Also converts values to other types if specified.
|
|
16906
|
+
* @param message CoachAvailabilityOffered
|
|
16907
|
+
* @param [options] Conversion options
|
|
16908
|
+
* @returns Plain object
|
|
16909
|
+
*/
|
|
16910
|
+
public static toObject(message: CoachAvailabilityOffered, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
16911
|
+
|
|
16912
|
+
/**
|
|
16913
|
+
* Converts this CoachAvailabilityOffered to JSON.
|
|
16914
|
+
* @returns JSON object
|
|
16915
|
+
*/
|
|
16916
|
+
public toJSON(): { [k: string]: any };
|
|
16917
|
+
}
|
|
16918
|
+
|
|
16919
|
+
/** AvailabilityType enum. */
|
|
16920
|
+
export enum AvailabilityType {
|
|
16921
|
+
AVAILABILITY_TYPE_UNKNOWN = 0,
|
|
16922
|
+
AVAILABILITY_TYPE_CHAT = 1,
|
|
16923
|
+
AVAILABILITY_TYPE_VIDEO = 2
|
|
16924
|
+
}
|
|
16925
|
+
|
|
16769
16926
|
/** Properties of a CompletedActivity. */
|
|
16770
16927
|
export interface ICompletedActivity {
|
|
16771
16928
|
|
package/lib/index.js
CHANGED
|
@@ -43551,6 +43551,518 @@ $root.CoachingRatingSubmitted = (function() {
|
|
|
43551
43551
|
return CoachingRatingSubmitted;
|
|
43552
43552
|
})();
|
|
43553
43553
|
|
|
43554
|
+
$root.CoachAvailabilityOffered = (function() {
|
|
43555
|
+
|
|
43556
|
+
/**
|
|
43557
|
+
* Properties of a CoachAvailabilityOffered.
|
|
43558
|
+
* @name ICoachAvailabilityOffered
|
|
43559
|
+
* @interface ICoachAvailabilityOffered
|
|
43560
|
+
* @property {number|Long|null} [listenerId] CoachAvailabilityOffered listenerId
|
|
43561
|
+
* @property {string|null} [careWebUserId] CoachAvailabilityOffered careWebUserId
|
|
43562
|
+
* @property {string|null} [hsUserId] CoachAvailabilityOffered hsUserId
|
|
43563
|
+
* @property {number|Long|null} [searchStart] CoachAvailabilityOffered searchStart
|
|
43564
|
+
* @property {number|Long|null} [searchEnd] CoachAvailabilityOffered searchEnd
|
|
43565
|
+
* @property {AvailabilityType|null} [availabilityType] CoachAvailabilityOffered availabilityType
|
|
43566
|
+
* @property {number|null} [availabilitySlotCount] CoachAvailabilityOffered availabilitySlotCount
|
|
43567
|
+
* @property {number|Long|null} [earliestAvailability] CoachAvailabilityOffered earliestAvailability
|
|
43568
|
+
* @property {number|Long|null} [latestAvailability] CoachAvailabilityOffered latestAvailability
|
|
43569
|
+
* @property {number|null} [earliestAvailabilityHoursAhead] CoachAvailabilityOffered earliestAvailabilityHoursAhead
|
|
43570
|
+
* @property {number|null} [latestAvailabilityHoursAhead] CoachAvailabilityOffered latestAvailabilityHoursAhead
|
|
43571
|
+
*/
|
|
43572
|
+
|
|
43573
|
+
/**
|
|
43574
|
+
* Constructs a new CoachAvailabilityOffered.
|
|
43575
|
+
* @name CoachAvailabilityOffered
|
|
43576
|
+
* @classdesc Represents a CoachAvailabilityOffered.
|
|
43577
|
+
* @implements ICoachAvailabilityOffered
|
|
43578
|
+
* @constructor
|
|
43579
|
+
* @param {ICoachAvailabilityOffered=} [properties] Properties to set
|
|
43580
|
+
*/
|
|
43581
|
+
function CoachAvailabilityOffered(properties) {
|
|
43582
|
+
if (properties)
|
|
43583
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
43584
|
+
if (properties[keys[i]] != null)
|
|
43585
|
+
this[keys[i]] = properties[keys[i]];
|
|
43586
|
+
}
|
|
43587
|
+
|
|
43588
|
+
/**
|
|
43589
|
+
* CoachAvailabilityOffered listenerId.
|
|
43590
|
+
* @member {number|Long} listenerId
|
|
43591
|
+
* @memberof CoachAvailabilityOffered
|
|
43592
|
+
* @instance
|
|
43593
|
+
*/
|
|
43594
|
+
CoachAvailabilityOffered.prototype.listenerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
43595
|
+
|
|
43596
|
+
/**
|
|
43597
|
+
* CoachAvailabilityOffered careWebUserId.
|
|
43598
|
+
* @member {string} careWebUserId
|
|
43599
|
+
* @memberof CoachAvailabilityOffered
|
|
43600
|
+
* @instance
|
|
43601
|
+
*/
|
|
43602
|
+
CoachAvailabilityOffered.prototype.careWebUserId = "";
|
|
43603
|
+
|
|
43604
|
+
/**
|
|
43605
|
+
* CoachAvailabilityOffered hsUserId.
|
|
43606
|
+
* @member {string} hsUserId
|
|
43607
|
+
* @memberof CoachAvailabilityOffered
|
|
43608
|
+
* @instance
|
|
43609
|
+
*/
|
|
43610
|
+
CoachAvailabilityOffered.prototype.hsUserId = "";
|
|
43611
|
+
|
|
43612
|
+
/**
|
|
43613
|
+
* CoachAvailabilityOffered searchStart.
|
|
43614
|
+
* @member {number|Long} searchStart
|
|
43615
|
+
* @memberof CoachAvailabilityOffered
|
|
43616
|
+
* @instance
|
|
43617
|
+
*/
|
|
43618
|
+
CoachAvailabilityOffered.prototype.searchStart = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
43619
|
+
|
|
43620
|
+
/**
|
|
43621
|
+
* CoachAvailabilityOffered searchEnd.
|
|
43622
|
+
* @member {number|Long} searchEnd
|
|
43623
|
+
* @memberof CoachAvailabilityOffered
|
|
43624
|
+
* @instance
|
|
43625
|
+
*/
|
|
43626
|
+
CoachAvailabilityOffered.prototype.searchEnd = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
43627
|
+
|
|
43628
|
+
/**
|
|
43629
|
+
* CoachAvailabilityOffered availabilityType.
|
|
43630
|
+
* @member {AvailabilityType} availabilityType
|
|
43631
|
+
* @memberof CoachAvailabilityOffered
|
|
43632
|
+
* @instance
|
|
43633
|
+
*/
|
|
43634
|
+
CoachAvailabilityOffered.prototype.availabilityType = 0;
|
|
43635
|
+
|
|
43636
|
+
/**
|
|
43637
|
+
* CoachAvailabilityOffered availabilitySlotCount.
|
|
43638
|
+
* @member {number} availabilitySlotCount
|
|
43639
|
+
* @memberof CoachAvailabilityOffered
|
|
43640
|
+
* @instance
|
|
43641
|
+
*/
|
|
43642
|
+
CoachAvailabilityOffered.prototype.availabilitySlotCount = 0;
|
|
43643
|
+
|
|
43644
|
+
/**
|
|
43645
|
+
* CoachAvailabilityOffered earliestAvailability.
|
|
43646
|
+
* @member {number|Long} earliestAvailability
|
|
43647
|
+
* @memberof CoachAvailabilityOffered
|
|
43648
|
+
* @instance
|
|
43649
|
+
*/
|
|
43650
|
+
CoachAvailabilityOffered.prototype.earliestAvailability = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
43651
|
+
|
|
43652
|
+
/**
|
|
43653
|
+
* CoachAvailabilityOffered latestAvailability.
|
|
43654
|
+
* @member {number|Long} latestAvailability
|
|
43655
|
+
* @memberof CoachAvailabilityOffered
|
|
43656
|
+
* @instance
|
|
43657
|
+
*/
|
|
43658
|
+
CoachAvailabilityOffered.prototype.latestAvailability = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
43659
|
+
|
|
43660
|
+
/**
|
|
43661
|
+
* CoachAvailabilityOffered earliestAvailabilityHoursAhead.
|
|
43662
|
+
* @member {number} earliestAvailabilityHoursAhead
|
|
43663
|
+
* @memberof CoachAvailabilityOffered
|
|
43664
|
+
* @instance
|
|
43665
|
+
*/
|
|
43666
|
+
CoachAvailabilityOffered.prototype.earliestAvailabilityHoursAhead = 0;
|
|
43667
|
+
|
|
43668
|
+
/**
|
|
43669
|
+
* CoachAvailabilityOffered latestAvailabilityHoursAhead.
|
|
43670
|
+
* @member {number} latestAvailabilityHoursAhead
|
|
43671
|
+
* @memberof CoachAvailabilityOffered
|
|
43672
|
+
* @instance
|
|
43673
|
+
*/
|
|
43674
|
+
CoachAvailabilityOffered.prototype.latestAvailabilityHoursAhead = 0;
|
|
43675
|
+
|
|
43676
|
+
/**
|
|
43677
|
+
* Creates a new CoachAvailabilityOffered instance using the specified properties.
|
|
43678
|
+
* @function create
|
|
43679
|
+
* @memberof CoachAvailabilityOffered
|
|
43680
|
+
* @static
|
|
43681
|
+
* @param {ICoachAvailabilityOffered=} [properties] Properties to set
|
|
43682
|
+
* @returns {CoachAvailabilityOffered} CoachAvailabilityOffered instance
|
|
43683
|
+
*/
|
|
43684
|
+
CoachAvailabilityOffered.create = function create(properties) {
|
|
43685
|
+
return new CoachAvailabilityOffered(properties);
|
|
43686
|
+
};
|
|
43687
|
+
|
|
43688
|
+
/**
|
|
43689
|
+
* Encodes the specified CoachAvailabilityOffered message. Does not implicitly {@link CoachAvailabilityOffered.verify|verify} messages.
|
|
43690
|
+
* @function encode
|
|
43691
|
+
* @memberof CoachAvailabilityOffered
|
|
43692
|
+
* @static
|
|
43693
|
+
* @param {ICoachAvailabilityOffered} message CoachAvailabilityOffered message or plain object to encode
|
|
43694
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
43695
|
+
* @returns {$protobuf.Writer} Writer
|
|
43696
|
+
*/
|
|
43697
|
+
CoachAvailabilityOffered.encode = function encode(message, writer) {
|
|
43698
|
+
if (!writer)
|
|
43699
|
+
writer = $Writer.create();
|
|
43700
|
+
if (message.listenerId != null && message.hasOwnProperty("listenerId"))
|
|
43701
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int64(message.listenerId);
|
|
43702
|
+
if (message.careWebUserId != null && message.hasOwnProperty("careWebUserId"))
|
|
43703
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.careWebUserId);
|
|
43704
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
43705
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.hsUserId);
|
|
43706
|
+
if (message.searchStart != null && message.hasOwnProperty("searchStart"))
|
|
43707
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.searchStart);
|
|
43708
|
+
if (message.searchEnd != null && message.hasOwnProperty("searchEnd"))
|
|
43709
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.searchEnd);
|
|
43710
|
+
if (message.availabilityType != null && message.hasOwnProperty("availabilityType"))
|
|
43711
|
+
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.availabilityType);
|
|
43712
|
+
if (message.availabilitySlotCount != null && message.hasOwnProperty("availabilitySlotCount"))
|
|
43713
|
+
writer.uint32(/* id 7, wireType 0 =*/56).int32(message.availabilitySlotCount);
|
|
43714
|
+
if (message.earliestAvailability != null && message.hasOwnProperty("earliestAvailability"))
|
|
43715
|
+
writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.earliestAvailability);
|
|
43716
|
+
if (message.latestAvailability != null && message.hasOwnProperty("latestAvailability"))
|
|
43717
|
+
writer.uint32(/* id 9, wireType 0 =*/72).uint64(message.latestAvailability);
|
|
43718
|
+
if (message.earliestAvailabilityHoursAhead != null && message.hasOwnProperty("earliestAvailabilityHoursAhead"))
|
|
43719
|
+
writer.uint32(/* id 10, wireType 5 =*/85).float(message.earliestAvailabilityHoursAhead);
|
|
43720
|
+
if (message.latestAvailabilityHoursAhead != null && message.hasOwnProperty("latestAvailabilityHoursAhead"))
|
|
43721
|
+
writer.uint32(/* id 11, wireType 5 =*/93).float(message.latestAvailabilityHoursAhead);
|
|
43722
|
+
return writer;
|
|
43723
|
+
};
|
|
43724
|
+
|
|
43725
|
+
/**
|
|
43726
|
+
* Encodes the specified CoachAvailabilityOffered message, length delimited. Does not implicitly {@link CoachAvailabilityOffered.verify|verify} messages.
|
|
43727
|
+
* @function encodeDelimited
|
|
43728
|
+
* @memberof CoachAvailabilityOffered
|
|
43729
|
+
* @static
|
|
43730
|
+
* @param {ICoachAvailabilityOffered} message CoachAvailabilityOffered message or plain object to encode
|
|
43731
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
43732
|
+
* @returns {$protobuf.Writer} Writer
|
|
43733
|
+
*/
|
|
43734
|
+
CoachAvailabilityOffered.encodeDelimited = function encodeDelimited(message, writer) {
|
|
43735
|
+
return this.encode(message, writer).ldelim();
|
|
43736
|
+
};
|
|
43737
|
+
|
|
43738
|
+
/**
|
|
43739
|
+
* Decodes a CoachAvailabilityOffered message from the specified reader or buffer.
|
|
43740
|
+
* @function decode
|
|
43741
|
+
* @memberof CoachAvailabilityOffered
|
|
43742
|
+
* @static
|
|
43743
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
43744
|
+
* @param {number} [length] Message length if known beforehand
|
|
43745
|
+
* @returns {CoachAvailabilityOffered} CoachAvailabilityOffered
|
|
43746
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
43747
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
43748
|
+
*/
|
|
43749
|
+
CoachAvailabilityOffered.decode = function decode(reader, length) {
|
|
43750
|
+
if (!(reader instanceof $Reader))
|
|
43751
|
+
reader = $Reader.create(reader);
|
|
43752
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CoachAvailabilityOffered();
|
|
43753
|
+
while (reader.pos < end) {
|
|
43754
|
+
var tag = reader.uint32();
|
|
43755
|
+
switch (tag >>> 3) {
|
|
43756
|
+
case 1:
|
|
43757
|
+
message.listenerId = reader.int64();
|
|
43758
|
+
break;
|
|
43759
|
+
case 2:
|
|
43760
|
+
message.careWebUserId = reader.string();
|
|
43761
|
+
break;
|
|
43762
|
+
case 3:
|
|
43763
|
+
message.hsUserId = reader.string();
|
|
43764
|
+
break;
|
|
43765
|
+
case 4:
|
|
43766
|
+
message.searchStart = reader.uint64();
|
|
43767
|
+
break;
|
|
43768
|
+
case 5:
|
|
43769
|
+
message.searchEnd = reader.uint64();
|
|
43770
|
+
break;
|
|
43771
|
+
case 6:
|
|
43772
|
+
message.availabilityType = reader.int32();
|
|
43773
|
+
break;
|
|
43774
|
+
case 7:
|
|
43775
|
+
message.availabilitySlotCount = reader.int32();
|
|
43776
|
+
break;
|
|
43777
|
+
case 8:
|
|
43778
|
+
message.earliestAvailability = reader.uint64();
|
|
43779
|
+
break;
|
|
43780
|
+
case 9:
|
|
43781
|
+
message.latestAvailability = reader.uint64();
|
|
43782
|
+
break;
|
|
43783
|
+
case 10:
|
|
43784
|
+
message.earliestAvailabilityHoursAhead = reader.float();
|
|
43785
|
+
break;
|
|
43786
|
+
case 11:
|
|
43787
|
+
message.latestAvailabilityHoursAhead = reader.float();
|
|
43788
|
+
break;
|
|
43789
|
+
default:
|
|
43790
|
+
reader.skipType(tag & 7);
|
|
43791
|
+
break;
|
|
43792
|
+
}
|
|
43793
|
+
}
|
|
43794
|
+
return message;
|
|
43795
|
+
};
|
|
43796
|
+
|
|
43797
|
+
/**
|
|
43798
|
+
* Decodes a CoachAvailabilityOffered message from the specified reader or buffer, length delimited.
|
|
43799
|
+
* @function decodeDelimited
|
|
43800
|
+
* @memberof CoachAvailabilityOffered
|
|
43801
|
+
* @static
|
|
43802
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
43803
|
+
* @returns {CoachAvailabilityOffered} CoachAvailabilityOffered
|
|
43804
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
43805
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
43806
|
+
*/
|
|
43807
|
+
CoachAvailabilityOffered.decodeDelimited = function decodeDelimited(reader) {
|
|
43808
|
+
if (!(reader instanceof $Reader))
|
|
43809
|
+
reader = new $Reader(reader);
|
|
43810
|
+
return this.decode(reader, reader.uint32());
|
|
43811
|
+
};
|
|
43812
|
+
|
|
43813
|
+
/**
|
|
43814
|
+
* Verifies a CoachAvailabilityOffered message.
|
|
43815
|
+
* @function verify
|
|
43816
|
+
* @memberof CoachAvailabilityOffered
|
|
43817
|
+
* @static
|
|
43818
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
43819
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
43820
|
+
*/
|
|
43821
|
+
CoachAvailabilityOffered.verify = function verify(message) {
|
|
43822
|
+
if (typeof message !== "object" || message === null)
|
|
43823
|
+
return "object expected";
|
|
43824
|
+
if (message.listenerId != null && message.hasOwnProperty("listenerId"))
|
|
43825
|
+
if (!$util.isInteger(message.listenerId) && !(message.listenerId && $util.isInteger(message.listenerId.low) && $util.isInteger(message.listenerId.high)))
|
|
43826
|
+
return "listenerId: integer|Long expected";
|
|
43827
|
+
if (message.careWebUserId != null && message.hasOwnProperty("careWebUserId"))
|
|
43828
|
+
if (!$util.isString(message.careWebUserId))
|
|
43829
|
+
return "careWebUserId: string expected";
|
|
43830
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
43831
|
+
if (!$util.isString(message.hsUserId))
|
|
43832
|
+
return "hsUserId: string expected";
|
|
43833
|
+
if (message.searchStart != null && message.hasOwnProperty("searchStart"))
|
|
43834
|
+
if (!$util.isInteger(message.searchStart) && !(message.searchStart && $util.isInteger(message.searchStart.low) && $util.isInteger(message.searchStart.high)))
|
|
43835
|
+
return "searchStart: integer|Long expected";
|
|
43836
|
+
if (message.searchEnd != null && message.hasOwnProperty("searchEnd"))
|
|
43837
|
+
if (!$util.isInteger(message.searchEnd) && !(message.searchEnd && $util.isInteger(message.searchEnd.low) && $util.isInteger(message.searchEnd.high)))
|
|
43838
|
+
return "searchEnd: integer|Long expected";
|
|
43839
|
+
if (message.availabilityType != null && message.hasOwnProperty("availabilityType"))
|
|
43840
|
+
switch (message.availabilityType) {
|
|
43841
|
+
default:
|
|
43842
|
+
return "availabilityType: enum value expected";
|
|
43843
|
+
case 0:
|
|
43844
|
+
case 1:
|
|
43845
|
+
case 2:
|
|
43846
|
+
break;
|
|
43847
|
+
}
|
|
43848
|
+
if (message.availabilitySlotCount != null && message.hasOwnProperty("availabilitySlotCount"))
|
|
43849
|
+
if (!$util.isInteger(message.availabilitySlotCount))
|
|
43850
|
+
return "availabilitySlotCount: integer expected";
|
|
43851
|
+
if (message.earliestAvailability != null && message.hasOwnProperty("earliestAvailability"))
|
|
43852
|
+
if (!$util.isInteger(message.earliestAvailability) && !(message.earliestAvailability && $util.isInteger(message.earliestAvailability.low) && $util.isInteger(message.earliestAvailability.high)))
|
|
43853
|
+
return "earliestAvailability: integer|Long expected";
|
|
43854
|
+
if (message.latestAvailability != null && message.hasOwnProperty("latestAvailability"))
|
|
43855
|
+
if (!$util.isInteger(message.latestAvailability) && !(message.latestAvailability && $util.isInteger(message.latestAvailability.low) && $util.isInteger(message.latestAvailability.high)))
|
|
43856
|
+
return "latestAvailability: integer|Long expected";
|
|
43857
|
+
if (message.earliestAvailabilityHoursAhead != null && message.hasOwnProperty("earliestAvailabilityHoursAhead"))
|
|
43858
|
+
if (typeof message.earliestAvailabilityHoursAhead !== "number")
|
|
43859
|
+
return "earliestAvailabilityHoursAhead: number expected";
|
|
43860
|
+
if (message.latestAvailabilityHoursAhead != null && message.hasOwnProperty("latestAvailabilityHoursAhead"))
|
|
43861
|
+
if (typeof message.latestAvailabilityHoursAhead !== "number")
|
|
43862
|
+
return "latestAvailabilityHoursAhead: number expected";
|
|
43863
|
+
return null;
|
|
43864
|
+
};
|
|
43865
|
+
|
|
43866
|
+
/**
|
|
43867
|
+
* Creates a CoachAvailabilityOffered message from a plain object. Also converts values to their respective internal types.
|
|
43868
|
+
* @function fromObject
|
|
43869
|
+
* @memberof CoachAvailabilityOffered
|
|
43870
|
+
* @static
|
|
43871
|
+
* @param {Object.<string,*>} object Plain object
|
|
43872
|
+
* @returns {CoachAvailabilityOffered} CoachAvailabilityOffered
|
|
43873
|
+
*/
|
|
43874
|
+
CoachAvailabilityOffered.fromObject = function fromObject(object) {
|
|
43875
|
+
if (object instanceof $root.CoachAvailabilityOffered)
|
|
43876
|
+
return object;
|
|
43877
|
+
var message = new $root.CoachAvailabilityOffered();
|
|
43878
|
+
if (object.listenerId != null)
|
|
43879
|
+
if ($util.Long)
|
|
43880
|
+
(message.listenerId = $util.Long.fromValue(object.listenerId)).unsigned = false;
|
|
43881
|
+
else if (typeof object.listenerId === "string")
|
|
43882
|
+
message.listenerId = parseInt(object.listenerId, 10);
|
|
43883
|
+
else if (typeof object.listenerId === "number")
|
|
43884
|
+
message.listenerId = object.listenerId;
|
|
43885
|
+
else if (typeof object.listenerId === "object")
|
|
43886
|
+
message.listenerId = new $util.LongBits(object.listenerId.low >>> 0, object.listenerId.high >>> 0).toNumber();
|
|
43887
|
+
if (object.careWebUserId != null)
|
|
43888
|
+
message.careWebUserId = String(object.careWebUserId);
|
|
43889
|
+
if (object.hsUserId != null)
|
|
43890
|
+
message.hsUserId = String(object.hsUserId);
|
|
43891
|
+
if (object.searchStart != null)
|
|
43892
|
+
if ($util.Long)
|
|
43893
|
+
(message.searchStart = $util.Long.fromValue(object.searchStart)).unsigned = true;
|
|
43894
|
+
else if (typeof object.searchStart === "string")
|
|
43895
|
+
message.searchStart = parseInt(object.searchStart, 10);
|
|
43896
|
+
else if (typeof object.searchStart === "number")
|
|
43897
|
+
message.searchStart = object.searchStart;
|
|
43898
|
+
else if (typeof object.searchStart === "object")
|
|
43899
|
+
message.searchStart = new $util.LongBits(object.searchStart.low >>> 0, object.searchStart.high >>> 0).toNumber(true);
|
|
43900
|
+
if (object.searchEnd != null)
|
|
43901
|
+
if ($util.Long)
|
|
43902
|
+
(message.searchEnd = $util.Long.fromValue(object.searchEnd)).unsigned = true;
|
|
43903
|
+
else if (typeof object.searchEnd === "string")
|
|
43904
|
+
message.searchEnd = parseInt(object.searchEnd, 10);
|
|
43905
|
+
else if (typeof object.searchEnd === "number")
|
|
43906
|
+
message.searchEnd = object.searchEnd;
|
|
43907
|
+
else if (typeof object.searchEnd === "object")
|
|
43908
|
+
message.searchEnd = new $util.LongBits(object.searchEnd.low >>> 0, object.searchEnd.high >>> 0).toNumber(true);
|
|
43909
|
+
switch (object.availabilityType) {
|
|
43910
|
+
case "AVAILABILITY_TYPE_UNKNOWN":
|
|
43911
|
+
case 0:
|
|
43912
|
+
message.availabilityType = 0;
|
|
43913
|
+
break;
|
|
43914
|
+
case "AVAILABILITY_TYPE_CHAT":
|
|
43915
|
+
case 1:
|
|
43916
|
+
message.availabilityType = 1;
|
|
43917
|
+
break;
|
|
43918
|
+
case "AVAILABILITY_TYPE_VIDEO":
|
|
43919
|
+
case 2:
|
|
43920
|
+
message.availabilityType = 2;
|
|
43921
|
+
break;
|
|
43922
|
+
}
|
|
43923
|
+
if (object.availabilitySlotCount != null)
|
|
43924
|
+
message.availabilitySlotCount = object.availabilitySlotCount | 0;
|
|
43925
|
+
if (object.earliestAvailability != null)
|
|
43926
|
+
if ($util.Long)
|
|
43927
|
+
(message.earliestAvailability = $util.Long.fromValue(object.earliestAvailability)).unsigned = true;
|
|
43928
|
+
else if (typeof object.earliestAvailability === "string")
|
|
43929
|
+
message.earliestAvailability = parseInt(object.earliestAvailability, 10);
|
|
43930
|
+
else if (typeof object.earliestAvailability === "number")
|
|
43931
|
+
message.earliestAvailability = object.earliestAvailability;
|
|
43932
|
+
else if (typeof object.earliestAvailability === "object")
|
|
43933
|
+
message.earliestAvailability = new $util.LongBits(object.earliestAvailability.low >>> 0, object.earliestAvailability.high >>> 0).toNumber(true);
|
|
43934
|
+
if (object.latestAvailability != null)
|
|
43935
|
+
if ($util.Long)
|
|
43936
|
+
(message.latestAvailability = $util.Long.fromValue(object.latestAvailability)).unsigned = true;
|
|
43937
|
+
else if (typeof object.latestAvailability === "string")
|
|
43938
|
+
message.latestAvailability = parseInt(object.latestAvailability, 10);
|
|
43939
|
+
else if (typeof object.latestAvailability === "number")
|
|
43940
|
+
message.latestAvailability = object.latestAvailability;
|
|
43941
|
+
else if (typeof object.latestAvailability === "object")
|
|
43942
|
+
message.latestAvailability = new $util.LongBits(object.latestAvailability.low >>> 0, object.latestAvailability.high >>> 0).toNumber(true);
|
|
43943
|
+
if (object.earliestAvailabilityHoursAhead != null)
|
|
43944
|
+
message.earliestAvailabilityHoursAhead = Number(object.earliestAvailabilityHoursAhead);
|
|
43945
|
+
if (object.latestAvailabilityHoursAhead != null)
|
|
43946
|
+
message.latestAvailabilityHoursAhead = Number(object.latestAvailabilityHoursAhead);
|
|
43947
|
+
return message;
|
|
43948
|
+
};
|
|
43949
|
+
|
|
43950
|
+
/**
|
|
43951
|
+
* Creates a plain object from a CoachAvailabilityOffered message. Also converts values to other types if specified.
|
|
43952
|
+
* @function toObject
|
|
43953
|
+
* @memberof CoachAvailabilityOffered
|
|
43954
|
+
* @static
|
|
43955
|
+
* @param {CoachAvailabilityOffered} message CoachAvailabilityOffered
|
|
43956
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
43957
|
+
* @returns {Object.<string,*>} Plain object
|
|
43958
|
+
*/
|
|
43959
|
+
CoachAvailabilityOffered.toObject = function toObject(message, options) {
|
|
43960
|
+
if (!options)
|
|
43961
|
+
options = {};
|
|
43962
|
+
var object = {};
|
|
43963
|
+
if (options.defaults) {
|
|
43964
|
+
if ($util.Long) {
|
|
43965
|
+
var long = new $util.Long(0, 0, false);
|
|
43966
|
+
object.listenerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
43967
|
+
} else
|
|
43968
|
+
object.listenerId = options.longs === String ? "0" : 0;
|
|
43969
|
+
object.careWebUserId = "";
|
|
43970
|
+
object.hsUserId = "";
|
|
43971
|
+
if ($util.Long) {
|
|
43972
|
+
var long = new $util.Long(0, 0, true);
|
|
43973
|
+
object.searchStart = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
43974
|
+
} else
|
|
43975
|
+
object.searchStart = options.longs === String ? "0" : 0;
|
|
43976
|
+
if ($util.Long) {
|
|
43977
|
+
var long = new $util.Long(0, 0, true);
|
|
43978
|
+
object.searchEnd = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
43979
|
+
} else
|
|
43980
|
+
object.searchEnd = options.longs === String ? "0" : 0;
|
|
43981
|
+
object.availabilityType = options.enums === String ? "AVAILABILITY_TYPE_UNKNOWN" : 0;
|
|
43982
|
+
object.availabilitySlotCount = 0;
|
|
43983
|
+
if ($util.Long) {
|
|
43984
|
+
var long = new $util.Long(0, 0, true);
|
|
43985
|
+
object.earliestAvailability = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
43986
|
+
} else
|
|
43987
|
+
object.earliestAvailability = options.longs === String ? "0" : 0;
|
|
43988
|
+
if ($util.Long) {
|
|
43989
|
+
var long = new $util.Long(0, 0, true);
|
|
43990
|
+
object.latestAvailability = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
43991
|
+
} else
|
|
43992
|
+
object.latestAvailability = options.longs === String ? "0" : 0;
|
|
43993
|
+
object.earliestAvailabilityHoursAhead = 0;
|
|
43994
|
+
object.latestAvailabilityHoursAhead = 0;
|
|
43995
|
+
}
|
|
43996
|
+
if (message.listenerId != null && message.hasOwnProperty("listenerId"))
|
|
43997
|
+
if (typeof message.listenerId === "number")
|
|
43998
|
+
object.listenerId = options.longs === String ? String(message.listenerId) : message.listenerId;
|
|
43999
|
+
else
|
|
44000
|
+
object.listenerId = options.longs === String ? $util.Long.prototype.toString.call(message.listenerId) : options.longs === Number ? new $util.LongBits(message.listenerId.low >>> 0, message.listenerId.high >>> 0).toNumber() : message.listenerId;
|
|
44001
|
+
if (message.careWebUserId != null && message.hasOwnProperty("careWebUserId"))
|
|
44002
|
+
object.careWebUserId = message.careWebUserId;
|
|
44003
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
44004
|
+
object.hsUserId = message.hsUserId;
|
|
44005
|
+
if (message.searchStart != null && message.hasOwnProperty("searchStart"))
|
|
44006
|
+
if (typeof message.searchStart === "number")
|
|
44007
|
+
object.searchStart = options.longs === String ? String(message.searchStart) : message.searchStart;
|
|
44008
|
+
else
|
|
44009
|
+
object.searchStart = options.longs === String ? $util.Long.prototype.toString.call(message.searchStart) : options.longs === Number ? new $util.LongBits(message.searchStart.low >>> 0, message.searchStart.high >>> 0).toNumber(true) : message.searchStart;
|
|
44010
|
+
if (message.searchEnd != null && message.hasOwnProperty("searchEnd"))
|
|
44011
|
+
if (typeof message.searchEnd === "number")
|
|
44012
|
+
object.searchEnd = options.longs === String ? String(message.searchEnd) : message.searchEnd;
|
|
44013
|
+
else
|
|
44014
|
+
object.searchEnd = options.longs === String ? $util.Long.prototype.toString.call(message.searchEnd) : options.longs === Number ? new $util.LongBits(message.searchEnd.low >>> 0, message.searchEnd.high >>> 0).toNumber(true) : message.searchEnd;
|
|
44015
|
+
if (message.availabilityType != null && message.hasOwnProperty("availabilityType"))
|
|
44016
|
+
object.availabilityType = options.enums === String ? $root.AvailabilityType[message.availabilityType] : message.availabilityType;
|
|
44017
|
+
if (message.availabilitySlotCount != null && message.hasOwnProperty("availabilitySlotCount"))
|
|
44018
|
+
object.availabilitySlotCount = message.availabilitySlotCount;
|
|
44019
|
+
if (message.earliestAvailability != null && message.hasOwnProperty("earliestAvailability"))
|
|
44020
|
+
if (typeof message.earliestAvailability === "number")
|
|
44021
|
+
object.earliestAvailability = options.longs === String ? String(message.earliestAvailability) : message.earliestAvailability;
|
|
44022
|
+
else
|
|
44023
|
+
object.earliestAvailability = options.longs === String ? $util.Long.prototype.toString.call(message.earliestAvailability) : options.longs === Number ? new $util.LongBits(message.earliestAvailability.low >>> 0, message.earliestAvailability.high >>> 0).toNumber(true) : message.earliestAvailability;
|
|
44024
|
+
if (message.latestAvailability != null && message.hasOwnProperty("latestAvailability"))
|
|
44025
|
+
if (typeof message.latestAvailability === "number")
|
|
44026
|
+
object.latestAvailability = options.longs === String ? String(message.latestAvailability) : message.latestAvailability;
|
|
44027
|
+
else
|
|
44028
|
+
object.latestAvailability = options.longs === String ? $util.Long.prototype.toString.call(message.latestAvailability) : options.longs === Number ? new $util.LongBits(message.latestAvailability.low >>> 0, message.latestAvailability.high >>> 0).toNumber(true) : message.latestAvailability;
|
|
44029
|
+
if (message.earliestAvailabilityHoursAhead != null && message.hasOwnProperty("earliestAvailabilityHoursAhead"))
|
|
44030
|
+
object.earliestAvailabilityHoursAhead = options.json && !isFinite(message.earliestAvailabilityHoursAhead) ? String(message.earliestAvailabilityHoursAhead) : message.earliestAvailabilityHoursAhead;
|
|
44031
|
+
if (message.latestAvailabilityHoursAhead != null && message.hasOwnProperty("latestAvailabilityHoursAhead"))
|
|
44032
|
+
object.latestAvailabilityHoursAhead = options.json && !isFinite(message.latestAvailabilityHoursAhead) ? String(message.latestAvailabilityHoursAhead) : message.latestAvailabilityHoursAhead;
|
|
44033
|
+
return object;
|
|
44034
|
+
};
|
|
44035
|
+
|
|
44036
|
+
/**
|
|
44037
|
+
* Converts this CoachAvailabilityOffered to JSON.
|
|
44038
|
+
* @function toJSON
|
|
44039
|
+
* @memberof CoachAvailabilityOffered
|
|
44040
|
+
* @instance
|
|
44041
|
+
* @returns {Object.<string,*>} JSON object
|
|
44042
|
+
*/
|
|
44043
|
+
CoachAvailabilityOffered.prototype.toJSON = function toJSON() {
|
|
44044
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
44045
|
+
};
|
|
44046
|
+
|
|
44047
|
+
return CoachAvailabilityOffered;
|
|
44048
|
+
})();
|
|
44049
|
+
|
|
44050
|
+
/**
|
|
44051
|
+
* AvailabilityType enum.
|
|
44052
|
+
* @name AvailabilityType
|
|
44053
|
+
* @enum {string}
|
|
44054
|
+
* @property {number} AVAILABILITY_TYPE_UNKNOWN=0 AVAILABILITY_TYPE_UNKNOWN value
|
|
44055
|
+
* @property {number} AVAILABILITY_TYPE_CHAT=1 AVAILABILITY_TYPE_CHAT value
|
|
44056
|
+
* @property {number} AVAILABILITY_TYPE_VIDEO=2 AVAILABILITY_TYPE_VIDEO value
|
|
44057
|
+
*/
|
|
44058
|
+
$root.AvailabilityType = (function() {
|
|
44059
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
44060
|
+
values[valuesById[0] = "AVAILABILITY_TYPE_UNKNOWN"] = 0;
|
|
44061
|
+
values[valuesById[1] = "AVAILABILITY_TYPE_CHAT"] = 1;
|
|
44062
|
+
values[valuesById[2] = "AVAILABILITY_TYPE_VIDEO"] = 2;
|
|
44063
|
+
return values;
|
|
44064
|
+
})();
|
|
44065
|
+
|
|
43554
44066
|
$root.CompletedActivity = (function() {
|
|
43555
44067
|
|
|
43556
44068
|
/**
|
package/package.json
CHANGED