@headspace/protos-events 1.779.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 +283 -0
- package/lib/index.js +940 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -6669,6 +6669,132 @@ export class GracefulExitCompleted implements IGracefulExitCompleted {
|
|
|
6669
6669
|
public toJSON(): { [k: string]: any };
|
|
6670
6670
|
}
|
|
6671
6671
|
|
|
6672
|
+
/** Properties of a B2BOrgMembersTerminated. */
|
|
6673
|
+
export interface IB2BOrgMembersTerminated {
|
|
6674
|
+
|
|
6675
|
+
/** B2BOrgMembersTerminated orgId */
|
|
6676
|
+
orgId?: (number|Long|null);
|
|
6677
|
+
|
|
6678
|
+
/** B2BOrgMembersTerminated orgName */
|
|
6679
|
+
orgName?: (string|null);
|
|
6680
|
+
|
|
6681
|
+
/** B2BOrgMembersTerminated removalReason */
|
|
6682
|
+
removalReason?: (b2b.OrgMemberRemovalReason|null);
|
|
6683
|
+
|
|
6684
|
+
/** B2BOrgMembersTerminated eligibilityCollectiveUuid */
|
|
6685
|
+
eligibilityCollectiveUuid?: (string|null);
|
|
6686
|
+
|
|
6687
|
+
/** B2BOrgMembersTerminated hsUserIds */
|
|
6688
|
+
hsUserIds?: (string[]|null);
|
|
6689
|
+
|
|
6690
|
+
/** B2BOrgMembersTerminated timestamp */
|
|
6691
|
+
timestamp?: (number|Long|null);
|
|
6692
|
+
|
|
6693
|
+
/** B2BOrgMembersTerminated forceLogout */
|
|
6694
|
+
forceLogout?: (boolean|null);
|
|
6695
|
+
}
|
|
6696
|
+
|
|
6697
|
+
/** Represents a B2BOrgMembersTerminated. */
|
|
6698
|
+
export class B2BOrgMembersTerminated implements IB2BOrgMembersTerminated {
|
|
6699
|
+
|
|
6700
|
+
/**
|
|
6701
|
+
* Constructs a new B2BOrgMembersTerminated.
|
|
6702
|
+
* @param [properties] Properties to set
|
|
6703
|
+
*/
|
|
6704
|
+
constructor(properties?: IB2BOrgMembersTerminated);
|
|
6705
|
+
|
|
6706
|
+
/** B2BOrgMembersTerminated orgId. */
|
|
6707
|
+
public orgId: (number|Long);
|
|
6708
|
+
|
|
6709
|
+
/** B2BOrgMembersTerminated orgName. */
|
|
6710
|
+
public orgName: string;
|
|
6711
|
+
|
|
6712
|
+
/** B2BOrgMembersTerminated removalReason. */
|
|
6713
|
+
public removalReason: b2b.OrgMemberRemovalReason;
|
|
6714
|
+
|
|
6715
|
+
/** B2BOrgMembersTerminated eligibilityCollectiveUuid. */
|
|
6716
|
+
public eligibilityCollectiveUuid: string;
|
|
6717
|
+
|
|
6718
|
+
/** B2BOrgMembersTerminated hsUserIds. */
|
|
6719
|
+
public hsUserIds: string[];
|
|
6720
|
+
|
|
6721
|
+
/** B2BOrgMembersTerminated timestamp. */
|
|
6722
|
+
public timestamp: (number|Long);
|
|
6723
|
+
|
|
6724
|
+
/** B2BOrgMembersTerminated forceLogout. */
|
|
6725
|
+
public forceLogout: boolean;
|
|
6726
|
+
|
|
6727
|
+
/**
|
|
6728
|
+
* Creates a new B2BOrgMembersTerminated instance using the specified properties.
|
|
6729
|
+
* @param [properties] Properties to set
|
|
6730
|
+
* @returns B2BOrgMembersTerminated instance
|
|
6731
|
+
*/
|
|
6732
|
+
public static create(properties?: IB2BOrgMembersTerminated): B2BOrgMembersTerminated;
|
|
6733
|
+
|
|
6734
|
+
/**
|
|
6735
|
+
* Encodes the specified B2BOrgMembersTerminated message. Does not implicitly {@link B2BOrgMembersTerminated.verify|verify} messages.
|
|
6736
|
+
* @param message B2BOrgMembersTerminated message or plain object to encode
|
|
6737
|
+
* @param [writer] Writer to encode to
|
|
6738
|
+
* @returns Writer
|
|
6739
|
+
*/
|
|
6740
|
+
public static encode(message: IB2BOrgMembersTerminated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
6741
|
+
|
|
6742
|
+
/**
|
|
6743
|
+
* Encodes the specified B2BOrgMembersTerminated message, length delimited. Does not implicitly {@link B2BOrgMembersTerminated.verify|verify} messages.
|
|
6744
|
+
* @param message B2BOrgMembersTerminated message or plain object to encode
|
|
6745
|
+
* @param [writer] Writer to encode to
|
|
6746
|
+
* @returns Writer
|
|
6747
|
+
*/
|
|
6748
|
+
public static encodeDelimited(message: IB2BOrgMembersTerminated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
6749
|
+
|
|
6750
|
+
/**
|
|
6751
|
+
* Decodes a B2BOrgMembersTerminated message from the specified reader or buffer.
|
|
6752
|
+
* @param reader Reader or buffer to decode from
|
|
6753
|
+
* @param [length] Message length if known beforehand
|
|
6754
|
+
* @returns B2BOrgMembersTerminated
|
|
6755
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
6756
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
6757
|
+
*/
|
|
6758
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): B2BOrgMembersTerminated;
|
|
6759
|
+
|
|
6760
|
+
/**
|
|
6761
|
+
* Decodes a B2BOrgMembersTerminated message from the specified reader or buffer, length delimited.
|
|
6762
|
+
* @param reader Reader or buffer to decode from
|
|
6763
|
+
* @returns B2BOrgMembersTerminated
|
|
6764
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
6765
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
6766
|
+
*/
|
|
6767
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): B2BOrgMembersTerminated;
|
|
6768
|
+
|
|
6769
|
+
/**
|
|
6770
|
+
* Verifies a B2BOrgMembersTerminated message.
|
|
6771
|
+
* @param message Plain object to verify
|
|
6772
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
6773
|
+
*/
|
|
6774
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
6775
|
+
|
|
6776
|
+
/**
|
|
6777
|
+
* Creates a B2BOrgMembersTerminated message from a plain object. Also converts values to their respective internal types.
|
|
6778
|
+
* @param object Plain object
|
|
6779
|
+
* @returns B2BOrgMembersTerminated
|
|
6780
|
+
*/
|
|
6781
|
+
public static fromObject(object: { [k: string]: any }): B2BOrgMembersTerminated;
|
|
6782
|
+
|
|
6783
|
+
/**
|
|
6784
|
+
* Creates a plain object from a B2BOrgMembersTerminated message. Also converts values to other types if specified.
|
|
6785
|
+
* @param message B2BOrgMembersTerminated
|
|
6786
|
+
* @param [options] Conversion options
|
|
6787
|
+
* @returns Plain object
|
|
6788
|
+
*/
|
|
6789
|
+
public static toObject(message: B2BOrgMembersTerminated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
6790
|
+
|
|
6791
|
+
/**
|
|
6792
|
+
* Converts this B2BOrgMembersTerminated to JSON.
|
|
6793
|
+
* @returns JSON object
|
|
6794
|
+
*/
|
|
6795
|
+
public toJSON(): { [k: string]: any };
|
|
6796
|
+
}
|
|
6797
|
+
|
|
6672
6798
|
/** Properties of a B2BMemberPartnerConsentRequested. */
|
|
6673
6799
|
export interface IB2BMemberPartnerConsentRequested {
|
|
6674
6800
|
|
|
@@ -16640,6 +16766,163 @@ export class CoachingRatingSubmitted implements ICoachingRatingSubmitted {
|
|
|
16640
16766
|
public toJSON(): { [k: string]: any };
|
|
16641
16767
|
}
|
|
16642
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
|
+
|
|
16643
16926
|
/** Properties of a CompletedActivity. */
|
|
16644
16927
|
export interface ICompletedActivity {
|
|
16645
16928
|
|
package/lib/index.js
CHANGED
|
@@ -19357,6 +19357,434 @@ $root.GracefulExitCompleted = (function() {
|
|
|
19357
19357
|
return GracefulExitCompleted;
|
|
19358
19358
|
})();
|
|
19359
19359
|
|
|
19360
|
+
$root.B2BOrgMembersTerminated = (function() {
|
|
19361
|
+
|
|
19362
|
+
/**
|
|
19363
|
+
* Properties of a B2BOrgMembersTerminated.
|
|
19364
|
+
* @name IB2BOrgMembersTerminated
|
|
19365
|
+
* @interface IB2BOrgMembersTerminated
|
|
19366
|
+
* @property {number|Long|null} [orgId] B2BOrgMembersTerminated orgId
|
|
19367
|
+
* @property {string|null} [orgName] B2BOrgMembersTerminated orgName
|
|
19368
|
+
* @property {b2b.OrgMemberRemovalReason|null} [removalReason] B2BOrgMembersTerminated removalReason
|
|
19369
|
+
* @property {string|null} [eligibilityCollectiveUuid] B2BOrgMembersTerminated eligibilityCollectiveUuid
|
|
19370
|
+
* @property {Array.<string>|null} [hsUserIds] B2BOrgMembersTerminated hsUserIds
|
|
19371
|
+
* @property {number|Long|null} [timestamp] B2BOrgMembersTerminated timestamp
|
|
19372
|
+
* @property {boolean|null} [forceLogout] B2BOrgMembersTerminated forceLogout
|
|
19373
|
+
*/
|
|
19374
|
+
|
|
19375
|
+
/**
|
|
19376
|
+
* Constructs a new B2BOrgMembersTerminated.
|
|
19377
|
+
* @name B2BOrgMembersTerminated
|
|
19378
|
+
* @classdesc Represents a B2BOrgMembersTerminated.
|
|
19379
|
+
* @implements IB2BOrgMembersTerminated
|
|
19380
|
+
* @constructor
|
|
19381
|
+
* @param {IB2BOrgMembersTerminated=} [properties] Properties to set
|
|
19382
|
+
*/
|
|
19383
|
+
function B2BOrgMembersTerminated(properties) {
|
|
19384
|
+
this.hsUserIds = [];
|
|
19385
|
+
if (properties)
|
|
19386
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
19387
|
+
if (properties[keys[i]] != null)
|
|
19388
|
+
this[keys[i]] = properties[keys[i]];
|
|
19389
|
+
}
|
|
19390
|
+
|
|
19391
|
+
/**
|
|
19392
|
+
* B2BOrgMembersTerminated orgId.
|
|
19393
|
+
* @member {number|Long} orgId
|
|
19394
|
+
* @memberof B2BOrgMembersTerminated
|
|
19395
|
+
* @instance
|
|
19396
|
+
*/
|
|
19397
|
+
B2BOrgMembersTerminated.prototype.orgId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
19398
|
+
|
|
19399
|
+
/**
|
|
19400
|
+
* B2BOrgMembersTerminated orgName.
|
|
19401
|
+
* @member {string} orgName
|
|
19402
|
+
* @memberof B2BOrgMembersTerminated
|
|
19403
|
+
* @instance
|
|
19404
|
+
*/
|
|
19405
|
+
B2BOrgMembersTerminated.prototype.orgName = "";
|
|
19406
|
+
|
|
19407
|
+
/**
|
|
19408
|
+
* B2BOrgMembersTerminated removalReason.
|
|
19409
|
+
* @member {b2b.OrgMemberRemovalReason} removalReason
|
|
19410
|
+
* @memberof B2BOrgMembersTerminated
|
|
19411
|
+
* @instance
|
|
19412
|
+
*/
|
|
19413
|
+
B2BOrgMembersTerminated.prototype.removalReason = 0;
|
|
19414
|
+
|
|
19415
|
+
/**
|
|
19416
|
+
* B2BOrgMembersTerminated eligibilityCollectiveUuid.
|
|
19417
|
+
* @member {string} eligibilityCollectiveUuid
|
|
19418
|
+
* @memberof B2BOrgMembersTerminated
|
|
19419
|
+
* @instance
|
|
19420
|
+
*/
|
|
19421
|
+
B2BOrgMembersTerminated.prototype.eligibilityCollectiveUuid = "";
|
|
19422
|
+
|
|
19423
|
+
/**
|
|
19424
|
+
* B2BOrgMembersTerminated hsUserIds.
|
|
19425
|
+
* @member {Array.<string>} hsUserIds
|
|
19426
|
+
* @memberof B2BOrgMembersTerminated
|
|
19427
|
+
* @instance
|
|
19428
|
+
*/
|
|
19429
|
+
B2BOrgMembersTerminated.prototype.hsUserIds = $util.emptyArray;
|
|
19430
|
+
|
|
19431
|
+
/**
|
|
19432
|
+
* B2BOrgMembersTerminated timestamp.
|
|
19433
|
+
* @member {number|Long} timestamp
|
|
19434
|
+
* @memberof B2BOrgMembersTerminated
|
|
19435
|
+
* @instance
|
|
19436
|
+
*/
|
|
19437
|
+
B2BOrgMembersTerminated.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
19438
|
+
|
|
19439
|
+
/**
|
|
19440
|
+
* B2BOrgMembersTerminated forceLogout.
|
|
19441
|
+
* @member {boolean} forceLogout
|
|
19442
|
+
* @memberof B2BOrgMembersTerminated
|
|
19443
|
+
* @instance
|
|
19444
|
+
*/
|
|
19445
|
+
B2BOrgMembersTerminated.prototype.forceLogout = false;
|
|
19446
|
+
|
|
19447
|
+
/**
|
|
19448
|
+
* Creates a new B2BOrgMembersTerminated instance using the specified properties.
|
|
19449
|
+
* @function create
|
|
19450
|
+
* @memberof B2BOrgMembersTerminated
|
|
19451
|
+
* @static
|
|
19452
|
+
* @param {IB2BOrgMembersTerminated=} [properties] Properties to set
|
|
19453
|
+
* @returns {B2BOrgMembersTerminated} B2BOrgMembersTerminated instance
|
|
19454
|
+
*/
|
|
19455
|
+
B2BOrgMembersTerminated.create = function create(properties) {
|
|
19456
|
+
return new B2BOrgMembersTerminated(properties);
|
|
19457
|
+
};
|
|
19458
|
+
|
|
19459
|
+
/**
|
|
19460
|
+
* Encodes the specified B2BOrgMembersTerminated message. Does not implicitly {@link B2BOrgMembersTerminated.verify|verify} messages.
|
|
19461
|
+
* @function encode
|
|
19462
|
+
* @memberof B2BOrgMembersTerminated
|
|
19463
|
+
* @static
|
|
19464
|
+
* @param {IB2BOrgMembersTerminated} message B2BOrgMembersTerminated message or plain object to encode
|
|
19465
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
19466
|
+
* @returns {$protobuf.Writer} Writer
|
|
19467
|
+
*/
|
|
19468
|
+
B2BOrgMembersTerminated.encode = function encode(message, writer) {
|
|
19469
|
+
if (!writer)
|
|
19470
|
+
writer = $Writer.create();
|
|
19471
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
19472
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.orgId);
|
|
19473
|
+
if (message.orgName != null && message.hasOwnProperty("orgName"))
|
|
19474
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.orgName);
|
|
19475
|
+
if (message.removalReason != null && message.hasOwnProperty("removalReason"))
|
|
19476
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.removalReason);
|
|
19477
|
+
if (message.eligibilityCollectiveUuid != null && message.hasOwnProperty("eligibilityCollectiveUuid"))
|
|
19478
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.eligibilityCollectiveUuid);
|
|
19479
|
+
if (message.hsUserIds != null && message.hsUserIds.length)
|
|
19480
|
+
for (var i = 0; i < message.hsUserIds.length; ++i)
|
|
19481
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.hsUserIds[i]);
|
|
19482
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
19483
|
+
writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.timestamp);
|
|
19484
|
+
if (message.forceLogout != null && message.hasOwnProperty("forceLogout"))
|
|
19485
|
+
writer.uint32(/* id 7, wireType 0 =*/56).bool(message.forceLogout);
|
|
19486
|
+
return writer;
|
|
19487
|
+
};
|
|
19488
|
+
|
|
19489
|
+
/**
|
|
19490
|
+
* Encodes the specified B2BOrgMembersTerminated message, length delimited. Does not implicitly {@link B2BOrgMembersTerminated.verify|verify} messages.
|
|
19491
|
+
* @function encodeDelimited
|
|
19492
|
+
* @memberof B2BOrgMembersTerminated
|
|
19493
|
+
* @static
|
|
19494
|
+
* @param {IB2BOrgMembersTerminated} message B2BOrgMembersTerminated message or plain object to encode
|
|
19495
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
19496
|
+
* @returns {$protobuf.Writer} Writer
|
|
19497
|
+
*/
|
|
19498
|
+
B2BOrgMembersTerminated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
19499
|
+
return this.encode(message, writer).ldelim();
|
|
19500
|
+
};
|
|
19501
|
+
|
|
19502
|
+
/**
|
|
19503
|
+
* Decodes a B2BOrgMembersTerminated message from the specified reader or buffer.
|
|
19504
|
+
* @function decode
|
|
19505
|
+
* @memberof B2BOrgMembersTerminated
|
|
19506
|
+
* @static
|
|
19507
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
19508
|
+
* @param {number} [length] Message length if known beforehand
|
|
19509
|
+
* @returns {B2BOrgMembersTerminated} B2BOrgMembersTerminated
|
|
19510
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
19511
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
19512
|
+
*/
|
|
19513
|
+
B2BOrgMembersTerminated.decode = function decode(reader, length) {
|
|
19514
|
+
if (!(reader instanceof $Reader))
|
|
19515
|
+
reader = $Reader.create(reader);
|
|
19516
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.B2BOrgMembersTerminated();
|
|
19517
|
+
while (reader.pos < end) {
|
|
19518
|
+
var tag = reader.uint32();
|
|
19519
|
+
switch (tag >>> 3) {
|
|
19520
|
+
case 1:
|
|
19521
|
+
message.orgId = reader.uint64();
|
|
19522
|
+
break;
|
|
19523
|
+
case 2:
|
|
19524
|
+
message.orgName = reader.string();
|
|
19525
|
+
break;
|
|
19526
|
+
case 3:
|
|
19527
|
+
message.removalReason = reader.int32();
|
|
19528
|
+
break;
|
|
19529
|
+
case 4:
|
|
19530
|
+
message.eligibilityCollectiveUuid = reader.string();
|
|
19531
|
+
break;
|
|
19532
|
+
case 5:
|
|
19533
|
+
if (!(message.hsUserIds && message.hsUserIds.length))
|
|
19534
|
+
message.hsUserIds = [];
|
|
19535
|
+
message.hsUserIds.push(reader.string());
|
|
19536
|
+
break;
|
|
19537
|
+
case 6:
|
|
19538
|
+
message.timestamp = reader.uint64();
|
|
19539
|
+
break;
|
|
19540
|
+
case 7:
|
|
19541
|
+
message.forceLogout = reader.bool();
|
|
19542
|
+
break;
|
|
19543
|
+
default:
|
|
19544
|
+
reader.skipType(tag & 7);
|
|
19545
|
+
break;
|
|
19546
|
+
}
|
|
19547
|
+
}
|
|
19548
|
+
return message;
|
|
19549
|
+
};
|
|
19550
|
+
|
|
19551
|
+
/**
|
|
19552
|
+
* Decodes a B2BOrgMembersTerminated message from the specified reader or buffer, length delimited.
|
|
19553
|
+
* @function decodeDelimited
|
|
19554
|
+
* @memberof B2BOrgMembersTerminated
|
|
19555
|
+
* @static
|
|
19556
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
19557
|
+
* @returns {B2BOrgMembersTerminated} B2BOrgMembersTerminated
|
|
19558
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
19559
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
19560
|
+
*/
|
|
19561
|
+
B2BOrgMembersTerminated.decodeDelimited = function decodeDelimited(reader) {
|
|
19562
|
+
if (!(reader instanceof $Reader))
|
|
19563
|
+
reader = new $Reader(reader);
|
|
19564
|
+
return this.decode(reader, reader.uint32());
|
|
19565
|
+
};
|
|
19566
|
+
|
|
19567
|
+
/**
|
|
19568
|
+
* Verifies a B2BOrgMembersTerminated message.
|
|
19569
|
+
* @function verify
|
|
19570
|
+
* @memberof B2BOrgMembersTerminated
|
|
19571
|
+
* @static
|
|
19572
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
19573
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
19574
|
+
*/
|
|
19575
|
+
B2BOrgMembersTerminated.verify = function verify(message) {
|
|
19576
|
+
if (typeof message !== "object" || message === null)
|
|
19577
|
+
return "object expected";
|
|
19578
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
19579
|
+
if (!$util.isInteger(message.orgId) && !(message.orgId && $util.isInteger(message.orgId.low) && $util.isInteger(message.orgId.high)))
|
|
19580
|
+
return "orgId: integer|Long expected";
|
|
19581
|
+
if (message.orgName != null && message.hasOwnProperty("orgName"))
|
|
19582
|
+
if (!$util.isString(message.orgName))
|
|
19583
|
+
return "orgName: string expected";
|
|
19584
|
+
if (message.removalReason != null && message.hasOwnProperty("removalReason"))
|
|
19585
|
+
switch (message.removalReason) {
|
|
19586
|
+
default:
|
|
19587
|
+
return "removalReason: enum value expected";
|
|
19588
|
+
case 0:
|
|
19589
|
+
case 1:
|
|
19590
|
+
case 2:
|
|
19591
|
+
case 3:
|
|
19592
|
+
case 4:
|
|
19593
|
+
case 5:
|
|
19594
|
+
case 6:
|
|
19595
|
+
case 7:
|
|
19596
|
+
case 8:
|
|
19597
|
+
case 9:
|
|
19598
|
+
case 10:
|
|
19599
|
+
case 11:
|
|
19600
|
+
break;
|
|
19601
|
+
}
|
|
19602
|
+
if (message.eligibilityCollectiveUuid != null && message.hasOwnProperty("eligibilityCollectiveUuid"))
|
|
19603
|
+
if (!$util.isString(message.eligibilityCollectiveUuid))
|
|
19604
|
+
return "eligibilityCollectiveUuid: string expected";
|
|
19605
|
+
if (message.hsUserIds != null && message.hasOwnProperty("hsUserIds")) {
|
|
19606
|
+
if (!Array.isArray(message.hsUserIds))
|
|
19607
|
+
return "hsUserIds: array expected";
|
|
19608
|
+
for (var i = 0; i < message.hsUserIds.length; ++i)
|
|
19609
|
+
if (!$util.isString(message.hsUserIds[i]))
|
|
19610
|
+
return "hsUserIds: string[] expected";
|
|
19611
|
+
}
|
|
19612
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
19613
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
19614
|
+
return "timestamp: integer|Long expected";
|
|
19615
|
+
if (message.forceLogout != null && message.hasOwnProperty("forceLogout"))
|
|
19616
|
+
if (typeof message.forceLogout !== "boolean")
|
|
19617
|
+
return "forceLogout: boolean expected";
|
|
19618
|
+
return null;
|
|
19619
|
+
};
|
|
19620
|
+
|
|
19621
|
+
/**
|
|
19622
|
+
* Creates a B2BOrgMembersTerminated message from a plain object. Also converts values to their respective internal types.
|
|
19623
|
+
* @function fromObject
|
|
19624
|
+
* @memberof B2BOrgMembersTerminated
|
|
19625
|
+
* @static
|
|
19626
|
+
* @param {Object.<string,*>} object Plain object
|
|
19627
|
+
* @returns {B2BOrgMembersTerminated} B2BOrgMembersTerminated
|
|
19628
|
+
*/
|
|
19629
|
+
B2BOrgMembersTerminated.fromObject = function fromObject(object) {
|
|
19630
|
+
if (object instanceof $root.B2BOrgMembersTerminated)
|
|
19631
|
+
return object;
|
|
19632
|
+
var message = new $root.B2BOrgMembersTerminated();
|
|
19633
|
+
if (object.orgId != null)
|
|
19634
|
+
if ($util.Long)
|
|
19635
|
+
(message.orgId = $util.Long.fromValue(object.orgId)).unsigned = true;
|
|
19636
|
+
else if (typeof object.orgId === "string")
|
|
19637
|
+
message.orgId = parseInt(object.orgId, 10);
|
|
19638
|
+
else if (typeof object.orgId === "number")
|
|
19639
|
+
message.orgId = object.orgId;
|
|
19640
|
+
else if (typeof object.orgId === "object")
|
|
19641
|
+
message.orgId = new $util.LongBits(object.orgId.low >>> 0, object.orgId.high >>> 0).toNumber(true);
|
|
19642
|
+
if (object.orgName != null)
|
|
19643
|
+
message.orgName = String(object.orgName);
|
|
19644
|
+
switch (object.removalReason) {
|
|
19645
|
+
case "REMOVAL_REASON_UNKNOWN":
|
|
19646
|
+
case 0:
|
|
19647
|
+
message.removalReason = 0;
|
|
19648
|
+
break;
|
|
19649
|
+
case "REMOVAL_REASON_GRACEFUL_EXIT":
|
|
19650
|
+
case 1:
|
|
19651
|
+
message.removalReason = 1;
|
|
19652
|
+
break;
|
|
19653
|
+
case "REMOVAL_REASON_MANUAL":
|
|
19654
|
+
case 2:
|
|
19655
|
+
message.removalReason = 2;
|
|
19656
|
+
break;
|
|
19657
|
+
case "REMOVAL_REASON_EXPIRATION":
|
|
19658
|
+
case 3:
|
|
19659
|
+
message.removalReason = 3;
|
|
19660
|
+
break;
|
|
19661
|
+
case "REMOVAL_REASON_MERGE_ORGS":
|
|
19662
|
+
case 4:
|
|
19663
|
+
message.removalReason = 4;
|
|
19664
|
+
break;
|
|
19665
|
+
case "REMOVAL_REASON_ROLLOVER":
|
|
19666
|
+
case 5:
|
|
19667
|
+
message.removalReason = 5;
|
|
19668
|
+
break;
|
|
19669
|
+
case "REMOVAL_REASON_SSO_DEPROVISION":
|
|
19670
|
+
case 6:
|
|
19671
|
+
message.removalReason = 6;
|
|
19672
|
+
break;
|
|
19673
|
+
case "REMOVAL_REASON_SSO_ACCOUNT_UNLINK":
|
|
19674
|
+
case 7:
|
|
19675
|
+
message.removalReason = 7;
|
|
19676
|
+
break;
|
|
19677
|
+
case "REMOVAL_REASON_USER_DOMAIN_REMOVAL":
|
|
19678
|
+
case 8:
|
|
19679
|
+
message.removalReason = 8;
|
|
19680
|
+
break;
|
|
19681
|
+
case "REMOVAL_REASON_NEVER_LINKED_SSO":
|
|
19682
|
+
case 9:
|
|
19683
|
+
message.removalReason = 9;
|
|
19684
|
+
break;
|
|
19685
|
+
case "REMOVAL_REASON_ORGANIZATION_DELETED":
|
|
19686
|
+
case 10:
|
|
19687
|
+
message.removalReason = 10;
|
|
19688
|
+
break;
|
|
19689
|
+
case "HARD_DELETE_ORG_DATA":
|
|
19690
|
+
case 11:
|
|
19691
|
+
message.removalReason = 11;
|
|
19692
|
+
break;
|
|
19693
|
+
}
|
|
19694
|
+
if (object.eligibilityCollectiveUuid != null)
|
|
19695
|
+
message.eligibilityCollectiveUuid = String(object.eligibilityCollectiveUuid);
|
|
19696
|
+
if (object.hsUserIds) {
|
|
19697
|
+
if (!Array.isArray(object.hsUserIds))
|
|
19698
|
+
throw TypeError(".B2BOrgMembersTerminated.hsUserIds: array expected");
|
|
19699
|
+
message.hsUserIds = [];
|
|
19700
|
+
for (var i = 0; i < object.hsUserIds.length; ++i)
|
|
19701
|
+
message.hsUserIds[i] = String(object.hsUserIds[i]);
|
|
19702
|
+
}
|
|
19703
|
+
if (object.timestamp != null)
|
|
19704
|
+
if ($util.Long)
|
|
19705
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
19706
|
+
else if (typeof object.timestamp === "string")
|
|
19707
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
19708
|
+
else if (typeof object.timestamp === "number")
|
|
19709
|
+
message.timestamp = object.timestamp;
|
|
19710
|
+
else if (typeof object.timestamp === "object")
|
|
19711
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
19712
|
+
if (object.forceLogout != null)
|
|
19713
|
+
message.forceLogout = Boolean(object.forceLogout);
|
|
19714
|
+
return message;
|
|
19715
|
+
};
|
|
19716
|
+
|
|
19717
|
+
/**
|
|
19718
|
+
* Creates a plain object from a B2BOrgMembersTerminated message. Also converts values to other types if specified.
|
|
19719
|
+
* @function toObject
|
|
19720
|
+
* @memberof B2BOrgMembersTerminated
|
|
19721
|
+
* @static
|
|
19722
|
+
* @param {B2BOrgMembersTerminated} message B2BOrgMembersTerminated
|
|
19723
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
19724
|
+
* @returns {Object.<string,*>} Plain object
|
|
19725
|
+
*/
|
|
19726
|
+
B2BOrgMembersTerminated.toObject = function toObject(message, options) {
|
|
19727
|
+
if (!options)
|
|
19728
|
+
options = {};
|
|
19729
|
+
var object = {};
|
|
19730
|
+
if (options.arrays || options.defaults)
|
|
19731
|
+
object.hsUserIds = [];
|
|
19732
|
+
if (options.defaults) {
|
|
19733
|
+
if ($util.Long) {
|
|
19734
|
+
var long = new $util.Long(0, 0, true);
|
|
19735
|
+
object.orgId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
19736
|
+
} else
|
|
19737
|
+
object.orgId = options.longs === String ? "0" : 0;
|
|
19738
|
+
object.orgName = "";
|
|
19739
|
+
object.removalReason = options.enums === String ? "REMOVAL_REASON_UNKNOWN" : 0;
|
|
19740
|
+
object.eligibilityCollectiveUuid = "";
|
|
19741
|
+
if ($util.Long) {
|
|
19742
|
+
var long = new $util.Long(0, 0, true);
|
|
19743
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
19744
|
+
} else
|
|
19745
|
+
object.timestamp = options.longs === String ? "0" : 0;
|
|
19746
|
+
object.forceLogout = false;
|
|
19747
|
+
}
|
|
19748
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
19749
|
+
if (typeof message.orgId === "number")
|
|
19750
|
+
object.orgId = options.longs === String ? String(message.orgId) : message.orgId;
|
|
19751
|
+
else
|
|
19752
|
+
object.orgId = options.longs === String ? $util.Long.prototype.toString.call(message.orgId) : options.longs === Number ? new $util.LongBits(message.orgId.low >>> 0, message.orgId.high >>> 0).toNumber(true) : message.orgId;
|
|
19753
|
+
if (message.orgName != null && message.hasOwnProperty("orgName"))
|
|
19754
|
+
object.orgName = message.orgName;
|
|
19755
|
+
if (message.removalReason != null && message.hasOwnProperty("removalReason"))
|
|
19756
|
+
object.removalReason = options.enums === String ? $root.b2b.OrgMemberRemovalReason[message.removalReason] : message.removalReason;
|
|
19757
|
+
if (message.eligibilityCollectiveUuid != null && message.hasOwnProperty("eligibilityCollectiveUuid"))
|
|
19758
|
+
object.eligibilityCollectiveUuid = message.eligibilityCollectiveUuid;
|
|
19759
|
+
if (message.hsUserIds && message.hsUserIds.length) {
|
|
19760
|
+
object.hsUserIds = [];
|
|
19761
|
+
for (var j = 0; j < message.hsUserIds.length; ++j)
|
|
19762
|
+
object.hsUserIds[j] = message.hsUserIds[j];
|
|
19763
|
+
}
|
|
19764
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
19765
|
+
if (typeof message.timestamp === "number")
|
|
19766
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
19767
|
+
else
|
|
19768
|
+
object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
|
|
19769
|
+
if (message.forceLogout != null && message.hasOwnProperty("forceLogout"))
|
|
19770
|
+
object.forceLogout = message.forceLogout;
|
|
19771
|
+
return object;
|
|
19772
|
+
};
|
|
19773
|
+
|
|
19774
|
+
/**
|
|
19775
|
+
* Converts this B2BOrgMembersTerminated to JSON.
|
|
19776
|
+
* @function toJSON
|
|
19777
|
+
* @memberof B2BOrgMembersTerminated
|
|
19778
|
+
* @instance
|
|
19779
|
+
* @returns {Object.<string,*>} JSON object
|
|
19780
|
+
*/
|
|
19781
|
+
B2BOrgMembersTerminated.prototype.toJSON = function toJSON() {
|
|
19782
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
19783
|
+
};
|
|
19784
|
+
|
|
19785
|
+
return B2BOrgMembersTerminated;
|
|
19786
|
+
})();
|
|
19787
|
+
|
|
19360
19788
|
$root.B2BMemberPartnerConsentRequested = (function() {
|
|
19361
19789
|
|
|
19362
19790
|
/**
|
|
@@ -43123,6 +43551,518 @@ $root.CoachingRatingSubmitted = (function() {
|
|
|
43123
43551
|
return CoachingRatingSubmitted;
|
|
43124
43552
|
})();
|
|
43125
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
|
+
|
|
43126
44066
|
$root.CompletedActivity = (function() {
|
|
43127
44067
|
|
|
43128
44068
|
/**
|
package/package.json
CHANGED