@headspace/protos-events 1.694.0 → 1.696.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 +161 -0
- package/lib/index.js +485 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -39742,6 +39742,167 @@ export class GingerEligibilityRecordReactivated implements IGingerEligibilityRec
|
|
|
39742
39742
|
public toJSON(): { [k: string]: any };
|
|
39743
39743
|
}
|
|
39744
39744
|
|
|
39745
|
+
/** Properties of a PossibleStaleCareMemberSelected. */
|
|
39746
|
+
export interface IPossibleStaleCareMemberSelected {
|
|
39747
|
+
|
|
39748
|
+
/** PossibleStaleCareMemberSelected gingerId */
|
|
39749
|
+
gingerId?: (number|null);
|
|
39750
|
+
|
|
39751
|
+
/** PossibleStaleCareMemberSelected headspaceUserId */
|
|
39752
|
+
headspaceUserId?: (string|null);
|
|
39753
|
+
|
|
39754
|
+
/** PossibleStaleCareMemberSelected deviceModel */
|
|
39755
|
+
deviceModel?: (string|null);
|
|
39756
|
+
|
|
39757
|
+
/** PossibleStaleCareMemberSelected deviceOsKind */
|
|
39758
|
+
deviceOsKind?: (string|null);
|
|
39759
|
+
|
|
39760
|
+
/** PossibleStaleCareMemberSelected deviceOsVersion */
|
|
39761
|
+
deviceOsVersion?: (string|null);
|
|
39762
|
+
|
|
39763
|
+
/** PossibleStaleCareMemberSelected deviceLanguage */
|
|
39764
|
+
deviceLanguage?: (string|null);
|
|
39765
|
+
|
|
39766
|
+
/** PossibleStaleCareMemberSelected appVersion */
|
|
39767
|
+
appVersion?: (string|null);
|
|
39768
|
+
|
|
39769
|
+
/** PossibleStaleCareMemberSelected enrollmentTimestamp */
|
|
39770
|
+
enrollmentTimestamp?: (number|Long|null);
|
|
39771
|
+
|
|
39772
|
+
/** PossibleStaleCareMemberSelected lastLoginTimestamp */
|
|
39773
|
+
lastLoginTimestamp?: (number|Long|null);
|
|
39774
|
+
|
|
39775
|
+
/** PossibleStaleCareMemberSelected organization */
|
|
39776
|
+
organization?: (IOrganizationIdentifier|null);
|
|
39777
|
+
|
|
39778
|
+
/** PossibleStaleCareMemberSelected rootOrganization */
|
|
39779
|
+
rootOrganization?: (IOrganizationIdentifier|null);
|
|
39780
|
+
|
|
39781
|
+
/** PossibleStaleCareMemberSelected eventTimestamp */
|
|
39782
|
+
eventTimestamp?: (number|Long|null);
|
|
39783
|
+
}
|
|
39784
|
+
|
|
39785
|
+
/**
|
|
39786
|
+
* A care member that falls into our stale conditions has been selected for a possible automatic coach
|
|
39787
|
+
* outreach. This event will be picked up by listener service, which will then determine if the care
|
|
39788
|
+
* member is actually stale and, if so, will start a coach automatic outreach.
|
|
39789
|
+
* Emitted by the ginger-web service.
|
|
39790
|
+
*/
|
|
39791
|
+
export class PossibleStaleCareMemberSelected implements IPossibleStaleCareMemberSelected {
|
|
39792
|
+
|
|
39793
|
+
/**
|
|
39794
|
+
* Constructs a new PossibleStaleCareMemberSelected.
|
|
39795
|
+
* @param [properties] Properties to set
|
|
39796
|
+
*/
|
|
39797
|
+
constructor(properties?: IPossibleStaleCareMemberSelected);
|
|
39798
|
+
|
|
39799
|
+
/** PossibleStaleCareMemberSelected gingerId. */
|
|
39800
|
+
public gingerId: number;
|
|
39801
|
+
|
|
39802
|
+
/** PossibleStaleCareMemberSelected headspaceUserId. */
|
|
39803
|
+
public headspaceUserId: string;
|
|
39804
|
+
|
|
39805
|
+
/** PossibleStaleCareMemberSelected deviceModel. */
|
|
39806
|
+
public deviceModel: string;
|
|
39807
|
+
|
|
39808
|
+
/** PossibleStaleCareMemberSelected deviceOsKind. */
|
|
39809
|
+
public deviceOsKind: string;
|
|
39810
|
+
|
|
39811
|
+
/** PossibleStaleCareMemberSelected deviceOsVersion. */
|
|
39812
|
+
public deviceOsVersion: string;
|
|
39813
|
+
|
|
39814
|
+
/** PossibleStaleCareMemberSelected deviceLanguage. */
|
|
39815
|
+
public deviceLanguage: string;
|
|
39816
|
+
|
|
39817
|
+
/** PossibleStaleCareMemberSelected appVersion. */
|
|
39818
|
+
public appVersion: string;
|
|
39819
|
+
|
|
39820
|
+
/** PossibleStaleCareMemberSelected enrollmentTimestamp. */
|
|
39821
|
+
public enrollmentTimestamp: (number|Long);
|
|
39822
|
+
|
|
39823
|
+
/** PossibleStaleCareMemberSelected lastLoginTimestamp. */
|
|
39824
|
+
public lastLoginTimestamp: (number|Long);
|
|
39825
|
+
|
|
39826
|
+
/** PossibleStaleCareMemberSelected organization. */
|
|
39827
|
+
public organization?: (IOrganizationIdentifier|null);
|
|
39828
|
+
|
|
39829
|
+
/** PossibleStaleCareMemberSelected rootOrganization. */
|
|
39830
|
+
public rootOrganization?: (IOrganizationIdentifier|null);
|
|
39831
|
+
|
|
39832
|
+
/** PossibleStaleCareMemberSelected eventTimestamp. */
|
|
39833
|
+
public eventTimestamp: (number|Long);
|
|
39834
|
+
|
|
39835
|
+
/**
|
|
39836
|
+
* Creates a new PossibleStaleCareMemberSelected instance using the specified properties.
|
|
39837
|
+
* @param [properties] Properties to set
|
|
39838
|
+
* @returns PossibleStaleCareMemberSelected instance
|
|
39839
|
+
*/
|
|
39840
|
+
public static create(properties?: IPossibleStaleCareMemberSelected): PossibleStaleCareMemberSelected;
|
|
39841
|
+
|
|
39842
|
+
/**
|
|
39843
|
+
* Encodes the specified PossibleStaleCareMemberSelected message. Does not implicitly {@link PossibleStaleCareMemberSelected.verify|verify} messages.
|
|
39844
|
+
* @param message PossibleStaleCareMemberSelected message or plain object to encode
|
|
39845
|
+
* @param [writer] Writer to encode to
|
|
39846
|
+
* @returns Writer
|
|
39847
|
+
*/
|
|
39848
|
+
public static encode(message: IPossibleStaleCareMemberSelected, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
39849
|
+
|
|
39850
|
+
/**
|
|
39851
|
+
* Encodes the specified PossibleStaleCareMemberSelected message, length delimited. Does not implicitly {@link PossibleStaleCareMemberSelected.verify|verify} messages.
|
|
39852
|
+
* @param message PossibleStaleCareMemberSelected message or plain object to encode
|
|
39853
|
+
* @param [writer] Writer to encode to
|
|
39854
|
+
* @returns Writer
|
|
39855
|
+
*/
|
|
39856
|
+
public static encodeDelimited(message: IPossibleStaleCareMemberSelected, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
39857
|
+
|
|
39858
|
+
/**
|
|
39859
|
+
* Decodes a PossibleStaleCareMemberSelected message from the specified reader or buffer.
|
|
39860
|
+
* @param reader Reader or buffer to decode from
|
|
39861
|
+
* @param [length] Message length if known beforehand
|
|
39862
|
+
* @returns PossibleStaleCareMemberSelected
|
|
39863
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
39864
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
39865
|
+
*/
|
|
39866
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PossibleStaleCareMemberSelected;
|
|
39867
|
+
|
|
39868
|
+
/**
|
|
39869
|
+
* Decodes a PossibleStaleCareMemberSelected message from the specified reader or buffer, length delimited.
|
|
39870
|
+
* @param reader Reader or buffer to decode from
|
|
39871
|
+
* @returns PossibleStaleCareMemberSelected
|
|
39872
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
39873
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
39874
|
+
*/
|
|
39875
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PossibleStaleCareMemberSelected;
|
|
39876
|
+
|
|
39877
|
+
/**
|
|
39878
|
+
* Verifies a PossibleStaleCareMemberSelected message.
|
|
39879
|
+
* @param message Plain object to verify
|
|
39880
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
39881
|
+
*/
|
|
39882
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
39883
|
+
|
|
39884
|
+
/**
|
|
39885
|
+
* Creates a PossibleStaleCareMemberSelected message from a plain object. Also converts values to their respective internal types.
|
|
39886
|
+
* @param object Plain object
|
|
39887
|
+
* @returns PossibleStaleCareMemberSelected
|
|
39888
|
+
*/
|
|
39889
|
+
public static fromObject(object: { [k: string]: any }): PossibleStaleCareMemberSelected;
|
|
39890
|
+
|
|
39891
|
+
/**
|
|
39892
|
+
* Creates a plain object from a PossibleStaleCareMemberSelected message. Also converts values to other types if specified.
|
|
39893
|
+
* @param message PossibleStaleCareMemberSelected
|
|
39894
|
+
* @param [options] Conversion options
|
|
39895
|
+
* @returns Plain object
|
|
39896
|
+
*/
|
|
39897
|
+
public static toObject(message: PossibleStaleCareMemberSelected, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
39898
|
+
|
|
39899
|
+
/**
|
|
39900
|
+
* Converts this PossibleStaleCareMemberSelected to JSON.
|
|
39901
|
+
* @returns JSON object
|
|
39902
|
+
*/
|
|
39903
|
+
public toJSON(): { [k: string]: any };
|
|
39904
|
+
}
|
|
39905
|
+
|
|
39745
39906
|
/** Properties of a GoalSet. */
|
|
39746
39907
|
export interface IGoalSet {
|
|
39747
39908
|
|
package/lib/index.js
CHANGED
|
@@ -113520,6 +113520,491 @@ $root.GingerEligibilityRecordReactivated = (function() {
|
|
|
113520
113520
|
return GingerEligibilityRecordReactivated;
|
|
113521
113521
|
})();
|
|
113522
113522
|
|
|
113523
|
+
$root.PossibleStaleCareMemberSelected = (function() {
|
|
113524
|
+
|
|
113525
|
+
/**
|
|
113526
|
+
* Properties of a PossibleStaleCareMemberSelected.
|
|
113527
|
+
* @name IPossibleStaleCareMemberSelected
|
|
113528
|
+
* @interface IPossibleStaleCareMemberSelected
|
|
113529
|
+
* @property {number|null} [gingerId] PossibleStaleCareMemberSelected gingerId
|
|
113530
|
+
* @property {string|null} [headspaceUserId] PossibleStaleCareMemberSelected headspaceUserId
|
|
113531
|
+
* @property {string|null} [deviceModel] PossibleStaleCareMemberSelected deviceModel
|
|
113532
|
+
* @property {string|null} [deviceOsKind] PossibleStaleCareMemberSelected deviceOsKind
|
|
113533
|
+
* @property {string|null} [deviceOsVersion] PossibleStaleCareMemberSelected deviceOsVersion
|
|
113534
|
+
* @property {string|null} [deviceLanguage] PossibleStaleCareMemberSelected deviceLanguage
|
|
113535
|
+
* @property {string|null} [appVersion] PossibleStaleCareMemberSelected appVersion
|
|
113536
|
+
* @property {number|Long|null} [enrollmentTimestamp] PossibleStaleCareMemberSelected enrollmentTimestamp
|
|
113537
|
+
* @property {number|Long|null} [lastLoginTimestamp] PossibleStaleCareMemberSelected lastLoginTimestamp
|
|
113538
|
+
* @property {IOrganizationIdentifier|null} [organization] PossibleStaleCareMemberSelected organization
|
|
113539
|
+
* @property {IOrganizationIdentifier|null} [rootOrganization] PossibleStaleCareMemberSelected rootOrganization
|
|
113540
|
+
* @property {number|Long|null} [eventTimestamp] PossibleStaleCareMemberSelected eventTimestamp
|
|
113541
|
+
*/
|
|
113542
|
+
|
|
113543
|
+
/**
|
|
113544
|
+
* Constructs a new PossibleStaleCareMemberSelected.
|
|
113545
|
+
* @name PossibleStaleCareMemberSelected
|
|
113546
|
+
* @classdesc A care member that falls into our stale conditions has been selected for a possible automatic coach
|
|
113547
|
+
* outreach. This event will be picked up by listener service, which will then determine if the care
|
|
113548
|
+
* member is actually stale and, if so, will start a coach automatic outreach.
|
|
113549
|
+
* Emitted by the ginger-web service.
|
|
113550
|
+
* @implements IPossibleStaleCareMemberSelected
|
|
113551
|
+
* @constructor
|
|
113552
|
+
* @param {IPossibleStaleCareMemberSelected=} [properties] Properties to set
|
|
113553
|
+
*/
|
|
113554
|
+
function PossibleStaleCareMemberSelected(properties) {
|
|
113555
|
+
if (properties)
|
|
113556
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
113557
|
+
if (properties[keys[i]] != null)
|
|
113558
|
+
this[keys[i]] = properties[keys[i]];
|
|
113559
|
+
}
|
|
113560
|
+
|
|
113561
|
+
/**
|
|
113562
|
+
* PossibleStaleCareMemberSelected gingerId.
|
|
113563
|
+
* @member {number} gingerId
|
|
113564
|
+
* @memberof PossibleStaleCareMemberSelected
|
|
113565
|
+
* @instance
|
|
113566
|
+
*/
|
|
113567
|
+
PossibleStaleCareMemberSelected.prototype.gingerId = 0;
|
|
113568
|
+
|
|
113569
|
+
/**
|
|
113570
|
+
* PossibleStaleCareMemberSelected headspaceUserId.
|
|
113571
|
+
* @member {string} headspaceUserId
|
|
113572
|
+
* @memberof PossibleStaleCareMemberSelected
|
|
113573
|
+
* @instance
|
|
113574
|
+
*/
|
|
113575
|
+
PossibleStaleCareMemberSelected.prototype.headspaceUserId = "";
|
|
113576
|
+
|
|
113577
|
+
/**
|
|
113578
|
+
* PossibleStaleCareMemberSelected deviceModel.
|
|
113579
|
+
* @member {string} deviceModel
|
|
113580
|
+
* @memberof PossibleStaleCareMemberSelected
|
|
113581
|
+
* @instance
|
|
113582
|
+
*/
|
|
113583
|
+
PossibleStaleCareMemberSelected.prototype.deviceModel = "";
|
|
113584
|
+
|
|
113585
|
+
/**
|
|
113586
|
+
* PossibleStaleCareMemberSelected deviceOsKind.
|
|
113587
|
+
* @member {string} deviceOsKind
|
|
113588
|
+
* @memberof PossibleStaleCareMemberSelected
|
|
113589
|
+
* @instance
|
|
113590
|
+
*/
|
|
113591
|
+
PossibleStaleCareMemberSelected.prototype.deviceOsKind = "";
|
|
113592
|
+
|
|
113593
|
+
/**
|
|
113594
|
+
* PossibleStaleCareMemberSelected deviceOsVersion.
|
|
113595
|
+
* @member {string} deviceOsVersion
|
|
113596
|
+
* @memberof PossibleStaleCareMemberSelected
|
|
113597
|
+
* @instance
|
|
113598
|
+
*/
|
|
113599
|
+
PossibleStaleCareMemberSelected.prototype.deviceOsVersion = "";
|
|
113600
|
+
|
|
113601
|
+
/**
|
|
113602
|
+
* PossibleStaleCareMemberSelected deviceLanguage.
|
|
113603
|
+
* @member {string} deviceLanguage
|
|
113604
|
+
* @memberof PossibleStaleCareMemberSelected
|
|
113605
|
+
* @instance
|
|
113606
|
+
*/
|
|
113607
|
+
PossibleStaleCareMemberSelected.prototype.deviceLanguage = "";
|
|
113608
|
+
|
|
113609
|
+
/**
|
|
113610
|
+
* PossibleStaleCareMemberSelected appVersion.
|
|
113611
|
+
* @member {string} appVersion
|
|
113612
|
+
* @memberof PossibleStaleCareMemberSelected
|
|
113613
|
+
* @instance
|
|
113614
|
+
*/
|
|
113615
|
+
PossibleStaleCareMemberSelected.prototype.appVersion = "";
|
|
113616
|
+
|
|
113617
|
+
/**
|
|
113618
|
+
* PossibleStaleCareMemberSelected enrollmentTimestamp.
|
|
113619
|
+
* @member {number|Long} enrollmentTimestamp
|
|
113620
|
+
* @memberof PossibleStaleCareMemberSelected
|
|
113621
|
+
* @instance
|
|
113622
|
+
*/
|
|
113623
|
+
PossibleStaleCareMemberSelected.prototype.enrollmentTimestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
113624
|
+
|
|
113625
|
+
/**
|
|
113626
|
+
* PossibleStaleCareMemberSelected lastLoginTimestamp.
|
|
113627
|
+
* @member {number|Long} lastLoginTimestamp
|
|
113628
|
+
* @memberof PossibleStaleCareMemberSelected
|
|
113629
|
+
* @instance
|
|
113630
|
+
*/
|
|
113631
|
+
PossibleStaleCareMemberSelected.prototype.lastLoginTimestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
113632
|
+
|
|
113633
|
+
/**
|
|
113634
|
+
* PossibleStaleCareMemberSelected organization.
|
|
113635
|
+
* @member {IOrganizationIdentifier|null|undefined} organization
|
|
113636
|
+
* @memberof PossibleStaleCareMemberSelected
|
|
113637
|
+
* @instance
|
|
113638
|
+
*/
|
|
113639
|
+
PossibleStaleCareMemberSelected.prototype.organization = null;
|
|
113640
|
+
|
|
113641
|
+
/**
|
|
113642
|
+
* PossibleStaleCareMemberSelected rootOrganization.
|
|
113643
|
+
* @member {IOrganizationIdentifier|null|undefined} rootOrganization
|
|
113644
|
+
* @memberof PossibleStaleCareMemberSelected
|
|
113645
|
+
* @instance
|
|
113646
|
+
*/
|
|
113647
|
+
PossibleStaleCareMemberSelected.prototype.rootOrganization = null;
|
|
113648
|
+
|
|
113649
|
+
/**
|
|
113650
|
+
* PossibleStaleCareMemberSelected eventTimestamp.
|
|
113651
|
+
* @member {number|Long} eventTimestamp
|
|
113652
|
+
* @memberof PossibleStaleCareMemberSelected
|
|
113653
|
+
* @instance
|
|
113654
|
+
*/
|
|
113655
|
+
PossibleStaleCareMemberSelected.prototype.eventTimestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
113656
|
+
|
|
113657
|
+
/**
|
|
113658
|
+
* Creates a new PossibleStaleCareMemberSelected instance using the specified properties.
|
|
113659
|
+
* @function create
|
|
113660
|
+
* @memberof PossibleStaleCareMemberSelected
|
|
113661
|
+
* @static
|
|
113662
|
+
* @param {IPossibleStaleCareMemberSelected=} [properties] Properties to set
|
|
113663
|
+
* @returns {PossibleStaleCareMemberSelected} PossibleStaleCareMemberSelected instance
|
|
113664
|
+
*/
|
|
113665
|
+
PossibleStaleCareMemberSelected.create = function create(properties) {
|
|
113666
|
+
return new PossibleStaleCareMemberSelected(properties);
|
|
113667
|
+
};
|
|
113668
|
+
|
|
113669
|
+
/**
|
|
113670
|
+
* Encodes the specified PossibleStaleCareMemberSelected message. Does not implicitly {@link PossibleStaleCareMemberSelected.verify|verify} messages.
|
|
113671
|
+
* @function encode
|
|
113672
|
+
* @memberof PossibleStaleCareMemberSelected
|
|
113673
|
+
* @static
|
|
113674
|
+
* @param {IPossibleStaleCareMemberSelected} message PossibleStaleCareMemberSelected message or plain object to encode
|
|
113675
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
113676
|
+
* @returns {$protobuf.Writer} Writer
|
|
113677
|
+
*/
|
|
113678
|
+
PossibleStaleCareMemberSelected.encode = function encode(message, writer) {
|
|
113679
|
+
if (!writer)
|
|
113680
|
+
writer = $Writer.create();
|
|
113681
|
+
if (message.gingerId != null && message.hasOwnProperty("gingerId"))
|
|
113682
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.gingerId);
|
|
113683
|
+
if (message.headspaceUserId != null && message.hasOwnProperty("headspaceUserId"))
|
|
113684
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.headspaceUserId);
|
|
113685
|
+
if (message.deviceModel != null && message.hasOwnProperty("deviceModel"))
|
|
113686
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.deviceModel);
|
|
113687
|
+
if (message.deviceOsKind != null && message.hasOwnProperty("deviceOsKind"))
|
|
113688
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.deviceOsKind);
|
|
113689
|
+
if (message.deviceOsVersion != null && message.hasOwnProperty("deviceOsVersion"))
|
|
113690
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.deviceOsVersion);
|
|
113691
|
+
if (message.deviceLanguage != null && message.hasOwnProperty("deviceLanguage"))
|
|
113692
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.deviceLanguage);
|
|
113693
|
+
if (message.appVersion != null && message.hasOwnProperty("appVersion"))
|
|
113694
|
+
writer.uint32(/* id 7, wireType 2 =*/58).string(message.appVersion);
|
|
113695
|
+
if (message.enrollmentTimestamp != null && message.hasOwnProperty("enrollmentTimestamp"))
|
|
113696
|
+
writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.enrollmentTimestamp);
|
|
113697
|
+
if (message.lastLoginTimestamp != null && message.hasOwnProperty("lastLoginTimestamp"))
|
|
113698
|
+
writer.uint32(/* id 9, wireType 0 =*/72).uint64(message.lastLoginTimestamp);
|
|
113699
|
+
if (message.organization != null && message.hasOwnProperty("organization"))
|
|
113700
|
+
$root.OrganizationIdentifier.encode(message.organization, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
113701
|
+
if (message.rootOrganization != null && message.hasOwnProperty("rootOrganization"))
|
|
113702
|
+
$root.OrganizationIdentifier.encode(message.rootOrganization, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
|
|
113703
|
+
if (message.eventTimestamp != null && message.hasOwnProperty("eventTimestamp"))
|
|
113704
|
+
writer.uint32(/* id 12, wireType 0 =*/96).uint64(message.eventTimestamp);
|
|
113705
|
+
return writer;
|
|
113706
|
+
};
|
|
113707
|
+
|
|
113708
|
+
/**
|
|
113709
|
+
* Encodes the specified PossibleStaleCareMemberSelected message, length delimited. Does not implicitly {@link PossibleStaleCareMemberSelected.verify|verify} messages.
|
|
113710
|
+
* @function encodeDelimited
|
|
113711
|
+
* @memberof PossibleStaleCareMemberSelected
|
|
113712
|
+
* @static
|
|
113713
|
+
* @param {IPossibleStaleCareMemberSelected} message PossibleStaleCareMemberSelected message or plain object to encode
|
|
113714
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
113715
|
+
* @returns {$protobuf.Writer} Writer
|
|
113716
|
+
*/
|
|
113717
|
+
PossibleStaleCareMemberSelected.encodeDelimited = function encodeDelimited(message, writer) {
|
|
113718
|
+
return this.encode(message, writer).ldelim();
|
|
113719
|
+
};
|
|
113720
|
+
|
|
113721
|
+
/**
|
|
113722
|
+
* Decodes a PossibleStaleCareMemberSelected message from the specified reader or buffer.
|
|
113723
|
+
* @function decode
|
|
113724
|
+
* @memberof PossibleStaleCareMemberSelected
|
|
113725
|
+
* @static
|
|
113726
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
113727
|
+
* @param {number} [length] Message length if known beforehand
|
|
113728
|
+
* @returns {PossibleStaleCareMemberSelected} PossibleStaleCareMemberSelected
|
|
113729
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
113730
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
113731
|
+
*/
|
|
113732
|
+
PossibleStaleCareMemberSelected.decode = function decode(reader, length) {
|
|
113733
|
+
if (!(reader instanceof $Reader))
|
|
113734
|
+
reader = $Reader.create(reader);
|
|
113735
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.PossibleStaleCareMemberSelected();
|
|
113736
|
+
while (reader.pos < end) {
|
|
113737
|
+
var tag = reader.uint32();
|
|
113738
|
+
switch (tag >>> 3) {
|
|
113739
|
+
case 1:
|
|
113740
|
+
message.gingerId = reader.int32();
|
|
113741
|
+
break;
|
|
113742
|
+
case 2:
|
|
113743
|
+
message.headspaceUserId = reader.string();
|
|
113744
|
+
break;
|
|
113745
|
+
case 3:
|
|
113746
|
+
message.deviceModel = reader.string();
|
|
113747
|
+
break;
|
|
113748
|
+
case 4:
|
|
113749
|
+
message.deviceOsKind = reader.string();
|
|
113750
|
+
break;
|
|
113751
|
+
case 5:
|
|
113752
|
+
message.deviceOsVersion = reader.string();
|
|
113753
|
+
break;
|
|
113754
|
+
case 6:
|
|
113755
|
+
message.deviceLanguage = reader.string();
|
|
113756
|
+
break;
|
|
113757
|
+
case 7:
|
|
113758
|
+
message.appVersion = reader.string();
|
|
113759
|
+
break;
|
|
113760
|
+
case 8:
|
|
113761
|
+
message.enrollmentTimestamp = reader.uint64();
|
|
113762
|
+
break;
|
|
113763
|
+
case 9:
|
|
113764
|
+
message.lastLoginTimestamp = reader.uint64();
|
|
113765
|
+
break;
|
|
113766
|
+
case 10:
|
|
113767
|
+
message.organization = $root.OrganizationIdentifier.decode(reader, reader.uint32());
|
|
113768
|
+
break;
|
|
113769
|
+
case 11:
|
|
113770
|
+
message.rootOrganization = $root.OrganizationIdentifier.decode(reader, reader.uint32());
|
|
113771
|
+
break;
|
|
113772
|
+
case 12:
|
|
113773
|
+
message.eventTimestamp = reader.uint64();
|
|
113774
|
+
break;
|
|
113775
|
+
default:
|
|
113776
|
+
reader.skipType(tag & 7);
|
|
113777
|
+
break;
|
|
113778
|
+
}
|
|
113779
|
+
}
|
|
113780
|
+
return message;
|
|
113781
|
+
};
|
|
113782
|
+
|
|
113783
|
+
/**
|
|
113784
|
+
* Decodes a PossibleStaleCareMemberSelected message from the specified reader or buffer, length delimited.
|
|
113785
|
+
* @function decodeDelimited
|
|
113786
|
+
* @memberof PossibleStaleCareMemberSelected
|
|
113787
|
+
* @static
|
|
113788
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
113789
|
+
* @returns {PossibleStaleCareMemberSelected} PossibleStaleCareMemberSelected
|
|
113790
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
113791
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
113792
|
+
*/
|
|
113793
|
+
PossibleStaleCareMemberSelected.decodeDelimited = function decodeDelimited(reader) {
|
|
113794
|
+
if (!(reader instanceof $Reader))
|
|
113795
|
+
reader = new $Reader(reader);
|
|
113796
|
+
return this.decode(reader, reader.uint32());
|
|
113797
|
+
};
|
|
113798
|
+
|
|
113799
|
+
/**
|
|
113800
|
+
* Verifies a PossibleStaleCareMemberSelected message.
|
|
113801
|
+
* @function verify
|
|
113802
|
+
* @memberof PossibleStaleCareMemberSelected
|
|
113803
|
+
* @static
|
|
113804
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
113805
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
113806
|
+
*/
|
|
113807
|
+
PossibleStaleCareMemberSelected.verify = function verify(message) {
|
|
113808
|
+
if (typeof message !== "object" || message === null)
|
|
113809
|
+
return "object expected";
|
|
113810
|
+
if (message.gingerId != null && message.hasOwnProperty("gingerId"))
|
|
113811
|
+
if (!$util.isInteger(message.gingerId))
|
|
113812
|
+
return "gingerId: integer expected";
|
|
113813
|
+
if (message.headspaceUserId != null && message.hasOwnProperty("headspaceUserId"))
|
|
113814
|
+
if (!$util.isString(message.headspaceUserId))
|
|
113815
|
+
return "headspaceUserId: string expected";
|
|
113816
|
+
if (message.deviceModel != null && message.hasOwnProperty("deviceModel"))
|
|
113817
|
+
if (!$util.isString(message.deviceModel))
|
|
113818
|
+
return "deviceModel: string expected";
|
|
113819
|
+
if (message.deviceOsKind != null && message.hasOwnProperty("deviceOsKind"))
|
|
113820
|
+
if (!$util.isString(message.deviceOsKind))
|
|
113821
|
+
return "deviceOsKind: string expected";
|
|
113822
|
+
if (message.deviceOsVersion != null && message.hasOwnProperty("deviceOsVersion"))
|
|
113823
|
+
if (!$util.isString(message.deviceOsVersion))
|
|
113824
|
+
return "deviceOsVersion: string expected";
|
|
113825
|
+
if (message.deviceLanguage != null && message.hasOwnProperty("deviceLanguage"))
|
|
113826
|
+
if (!$util.isString(message.deviceLanguage))
|
|
113827
|
+
return "deviceLanguage: string expected";
|
|
113828
|
+
if (message.appVersion != null && message.hasOwnProperty("appVersion"))
|
|
113829
|
+
if (!$util.isString(message.appVersion))
|
|
113830
|
+
return "appVersion: string expected";
|
|
113831
|
+
if (message.enrollmentTimestamp != null && message.hasOwnProperty("enrollmentTimestamp"))
|
|
113832
|
+
if (!$util.isInteger(message.enrollmentTimestamp) && !(message.enrollmentTimestamp && $util.isInteger(message.enrollmentTimestamp.low) && $util.isInteger(message.enrollmentTimestamp.high)))
|
|
113833
|
+
return "enrollmentTimestamp: integer|Long expected";
|
|
113834
|
+
if (message.lastLoginTimestamp != null && message.hasOwnProperty("lastLoginTimestamp"))
|
|
113835
|
+
if (!$util.isInteger(message.lastLoginTimestamp) && !(message.lastLoginTimestamp && $util.isInteger(message.lastLoginTimestamp.low) && $util.isInteger(message.lastLoginTimestamp.high)))
|
|
113836
|
+
return "lastLoginTimestamp: integer|Long expected";
|
|
113837
|
+
if (message.organization != null && message.hasOwnProperty("organization")) {
|
|
113838
|
+
var error = $root.OrganizationIdentifier.verify(message.organization);
|
|
113839
|
+
if (error)
|
|
113840
|
+
return "organization." + error;
|
|
113841
|
+
}
|
|
113842
|
+
if (message.rootOrganization != null && message.hasOwnProperty("rootOrganization")) {
|
|
113843
|
+
var error = $root.OrganizationIdentifier.verify(message.rootOrganization);
|
|
113844
|
+
if (error)
|
|
113845
|
+
return "rootOrganization." + error;
|
|
113846
|
+
}
|
|
113847
|
+
if (message.eventTimestamp != null && message.hasOwnProperty("eventTimestamp"))
|
|
113848
|
+
if (!$util.isInteger(message.eventTimestamp) && !(message.eventTimestamp && $util.isInteger(message.eventTimestamp.low) && $util.isInteger(message.eventTimestamp.high)))
|
|
113849
|
+
return "eventTimestamp: integer|Long expected";
|
|
113850
|
+
return null;
|
|
113851
|
+
};
|
|
113852
|
+
|
|
113853
|
+
/**
|
|
113854
|
+
* Creates a PossibleStaleCareMemberSelected message from a plain object. Also converts values to their respective internal types.
|
|
113855
|
+
* @function fromObject
|
|
113856
|
+
* @memberof PossibleStaleCareMemberSelected
|
|
113857
|
+
* @static
|
|
113858
|
+
* @param {Object.<string,*>} object Plain object
|
|
113859
|
+
* @returns {PossibleStaleCareMemberSelected} PossibleStaleCareMemberSelected
|
|
113860
|
+
*/
|
|
113861
|
+
PossibleStaleCareMemberSelected.fromObject = function fromObject(object) {
|
|
113862
|
+
if (object instanceof $root.PossibleStaleCareMemberSelected)
|
|
113863
|
+
return object;
|
|
113864
|
+
var message = new $root.PossibleStaleCareMemberSelected();
|
|
113865
|
+
if (object.gingerId != null)
|
|
113866
|
+
message.gingerId = object.gingerId | 0;
|
|
113867
|
+
if (object.headspaceUserId != null)
|
|
113868
|
+
message.headspaceUserId = String(object.headspaceUserId);
|
|
113869
|
+
if (object.deviceModel != null)
|
|
113870
|
+
message.deviceModel = String(object.deviceModel);
|
|
113871
|
+
if (object.deviceOsKind != null)
|
|
113872
|
+
message.deviceOsKind = String(object.deviceOsKind);
|
|
113873
|
+
if (object.deviceOsVersion != null)
|
|
113874
|
+
message.deviceOsVersion = String(object.deviceOsVersion);
|
|
113875
|
+
if (object.deviceLanguage != null)
|
|
113876
|
+
message.deviceLanguage = String(object.deviceLanguage);
|
|
113877
|
+
if (object.appVersion != null)
|
|
113878
|
+
message.appVersion = String(object.appVersion);
|
|
113879
|
+
if (object.enrollmentTimestamp != null)
|
|
113880
|
+
if ($util.Long)
|
|
113881
|
+
(message.enrollmentTimestamp = $util.Long.fromValue(object.enrollmentTimestamp)).unsigned = true;
|
|
113882
|
+
else if (typeof object.enrollmentTimestamp === "string")
|
|
113883
|
+
message.enrollmentTimestamp = parseInt(object.enrollmentTimestamp, 10);
|
|
113884
|
+
else if (typeof object.enrollmentTimestamp === "number")
|
|
113885
|
+
message.enrollmentTimestamp = object.enrollmentTimestamp;
|
|
113886
|
+
else if (typeof object.enrollmentTimestamp === "object")
|
|
113887
|
+
message.enrollmentTimestamp = new $util.LongBits(object.enrollmentTimestamp.low >>> 0, object.enrollmentTimestamp.high >>> 0).toNumber(true);
|
|
113888
|
+
if (object.lastLoginTimestamp != null)
|
|
113889
|
+
if ($util.Long)
|
|
113890
|
+
(message.lastLoginTimestamp = $util.Long.fromValue(object.lastLoginTimestamp)).unsigned = true;
|
|
113891
|
+
else if (typeof object.lastLoginTimestamp === "string")
|
|
113892
|
+
message.lastLoginTimestamp = parseInt(object.lastLoginTimestamp, 10);
|
|
113893
|
+
else if (typeof object.lastLoginTimestamp === "number")
|
|
113894
|
+
message.lastLoginTimestamp = object.lastLoginTimestamp;
|
|
113895
|
+
else if (typeof object.lastLoginTimestamp === "object")
|
|
113896
|
+
message.lastLoginTimestamp = new $util.LongBits(object.lastLoginTimestamp.low >>> 0, object.lastLoginTimestamp.high >>> 0).toNumber(true);
|
|
113897
|
+
if (object.organization != null) {
|
|
113898
|
+
if (typeof object.organization !== "object")
|
|
113899
|
+
throw TypeError(".PossibleStaleCareMemberSelected.organization: object expected");
|
|
113900
|
+
message.organization = $root.OrganizationIdentifier.fromObject(object.organization);
|
|
113901
|
+
}
|
|
113902
|
+
if (object.rootOrganization != null) {
|
|
113903
|
+
if (typeof object.rootOrganization !== "object")
|
|
113904
|
+
throw TypeError(".PossibleStaleCareMemberSelected.rootOrganization: object expected");
|
|
113905
|
+
message.rootOrganization = $root.OrganizationIdentifier.fromObject(object.rootOrganization);
|
|
113906
|
+
}
|
|
113907
|
+
if (object.eventTimestamp != null)
|
|
113908
|
+
if ($util.Long)
|
|
113909
|
+
(message.eventTimestamp = $util.Long.fromValue(object.eventTimestamp)).unsigned = true;
|
|
113910
|
+
else if (typeof object.eventTimestamp === "string")
|
|
113911
|
+
message.eventTimestamp = parseInt(object.eventTimestamp, 10);
|
|
113912
|
+
else if (typeof object.eventTimestamp === "number")
|
|
113913
|
+
message.eventTimestamp = object.eventTimestamp;
|
|
113914
|
+
else if (typeof object.eventTimestamp === "object")
|
|
113915
|
+
message.eventTimestamp = new $util.LongBits(object.eventTimestamp.low >>> 0, object.eventTimestamp.high >>> 0).toNumber(true);
|
|
113916
|
+
return message;
|
|
113917
|
+
};
|
|
113918
|
+
|
|
113919
|
+
/**
|
|
113920
|
+
* Creates a plain object from a PossibleStaleCareMemberSelected message. Also converts values to other types if specified.
|
|
113921
|
+
* @function toObject
|
|
113922
|
+
* @memberof PossibleStaleCareMemberSelected
|
|
113923
|
+
* @static
|
|
113924
|
+
* @param {PossibleStaleCareMemberSelected} message PossibleStaleCareMemberSelected
|
|
113925
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
113926
|
+
* @returns {Object.<string,*>} Plain object
|
|
113927
|
+
*/
|
|
113928
|
+
PossibleStaleCareMemberSelected.toObject = function toObject(message, options) {
|
|
113929
|
+
if (!options)
|
|
113930
|
+
options = {};
|
|
113931
|
+
var object = {};
|
|
113932
|
+
if (options.defaults) {
|
|
113933
|
+
object.gingerId = 0;
|
|
113934
|
+
object.headspaceUserId = "";
|
|
113935
|
+
object.deviceModel = "";
|
|
113936
|
+
object.deviceOsKind = "";
|
|
113937
|
+
object.deviceOsVersion = "";
|
|
113938
|
+
object.deviceLanguage = "";
|
|
113939
|
+
object.appVersion = "";
|
|
113940
|
+
if ($util.Long) {
|
|
113941
|
+
var long = new $util.Long(0, 0, true);
|
|
113942
|
+
object.enrollmentTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
113943
|
+
} else
|
|
113944
|
+
object.enrollmentTimestamp = options.longs === String ? "0" : 0;
|
|
113945
|
+
if ($util.Long) {
|
|
113946
|
+
var long = new $util.Long(0, 0, true);
|
|
113947
|
+
object.lastLoginTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
113948
|
+
} else
|
|
113949
|
+
object.lastLoginTimestamp = options.longs === String ? "0" : 0;
|
|
113950
|
+
object.organization = null;
|
|
113951
|
+
object.rootOrganization = null;
|
|
113952
|
+
if ($util.Long) {
|
|
113953
|
+
var long = new $util.Long(0, 0, true);
|
|
113954
|
+
object.eventTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
113955
|
+
} else
|
|
113956
|
+
object.eventTimestamp = options.longs === String ? "0" : 0;
|
|
113957
|
+
}
|
|
113958
|
+
if (message.gingerId != null && message.hasOwnProperty("gingerId"))
|
|
113959
|
+
object.gingerId = message.gingerId;
|
|
113960
|
+
if (message.headspaceUserId != null && message.hasOwnProperty("headspaceUserId"))
|
|
113961
|
+
object.headspaceUserId = message.headspaceUserId;
|
|
113962
|
+
if (message.deviceModel != null && message.hasOwnProperty("deviceModel"))
|
|
113963
|
+
object.deviceModel = message.deviceModel;
|
|
113964
|
+
if (message.deviceOsKind != null && message.hasOwnProperty("deviceOsKind"))
|
|
113965
|
+
object.deviceOsKind = message.deviceOsKind;
|
|
113966
|
+
if (message.deviceOsVersion != null && message.hasOwnProperty("deviceOsVersion"))
|
|
113967
|
+
object.deviceOsVersion = message.deviceOsVersion;
|
|
113968
|
+
if (message.deviceLanguage != null && message.hasOwnProperty("deviceLanguage"))
|
|
113969
|
+
object.deviceLanguage = message.deviceLanguage;
|
|
113970
|
+
if (message.appVersion != null && message.hasOwnProperty("appVersion"))
|
|
113971
|
+
object.appVersion = message.appVersion;
|
|
113972
|
+
if (message.enrollmentTimestamp != null && message.hasOwnProperty("enrollmentTimestamp"))
|
|
113973
|
+
if (typeof message.enrollmentTimestamp === "number")
|
|
113974
|
+
object.enrollmentTimestamp = options.longs === String ? String(message.enrollmentTimestamp) : message.enrollmentTimestamp;
|
|
113975
|
+
else
|
|
113976
|
+
object.enrollmentTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.enrollmentTimestamp) : options.longs === Number ? new $util.LongBits(message.enrollmentTimestamp.low >>> 0, message.enrollmentTimestamp.high >>> 0).toNumber(true) : message.enrollmentTimestamp;
|
|
113977
|
+
if (message.lastLoginTimestamp != null && message.hasOwnProperty("lastLoginTimestamp"))
|
|
113978
|
+
if (typeof message.lastLoginTimestamp === "number")
|
|
113979
|
+
object.lastLoginTimestamp = options.longs === String ? String(message.lastLoginTimestamp) : message.lastLoginTimestamp;
|
|
113980
|
+
else
|
|
113981
|
+
object.lastLoginTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.lastLoginTimestamp) : options.longs === Number ? new $util.LongBits(message.lastLoginTimestamp.low >>> 0, message.lastLoginTimestamp.high >>> 0).toNumber(true) : message.lastLoginTimestamp;
|
|
113982
|
+
if (message.organization != null && message.hasOwnProperty("organization"))
|
|
113983
|
+
object.organization = $root.OrganizationIdentifier.toObject(message.organization, options);
|
|
113984
|
+
if (message.rootOrganization != null && message.hasOwnProperty("rootOrganization"))
|
|
113985
|
+
object.rootOrganization = $root.OrganizationIdentifier.toObject(message.rootOrganization, options);
|
|
113986
|
+
if (message.eventTimestamp != null && message.hasOwnProperty("eventTimestamp"))
|
|
113987
|
+
if (typeof message.eventTimestamp === "number")
|
|
113988
|
+
object.eventTimestamp = options.longs === String ? String(message.eventTimestamp) : message.eventTimestamp;
|
|
113989
|
+
else
|
|
113990
|
+
object.eventTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.eventTimestamp) : options.longs === Number ? new $util.LongBits(message.eventTimestamp.low >>> 0, message.eventTimestamp.high >>> 0).toNumber(true) : message.eventTimestamp;
|
|
113991
|
+
return object;
|
|
113992
|
+
};
|
|
113993
|
+
|
|
113994
|
+
/**
|
|
113995
|
+
* Converts this PossibleStaleCareMemberSelected to JSON.
|
|
113996
|
+
* @function toJSON
|
|
113997
|
+
* @memberof PossibleStaleCareMemberSelected
|
|
113998
|
+
* @instance
|
|
113999
|
+
* @returns {Object.<string,*>} JSON object
|
|
114000
|
+
*/
|
|
114001
|
+
PossibleStaleCareMemberSelected.prototype.toJSON = function toJSON() {
|
|
114002
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
114003
|
+
};
|
|
114004
|
+
|
|
114005
|
+
return PossibleStaleCareMemberSelected;
|
|
114006
|
+
})();
|
|
114007
|
+
|
|
113523
114008
|
$root.GoalSet = (function() {
|
|
113524
114009
|
|
|
113525
114010
|
/**
|
package/package.json
CHANGED