@headspace/protos-events 1.843.0 → 1.844.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 CHANGED
@@ -101713,6 +101713,255 @@ export namespace ReferralSignedUp {
101713
101713
  type $Shape = ReferralSignedUp.$Properties;
101714
101714
  }
101715
101715
 
101716
+ /** SafetyRiskTriggerPoint enum. */
101717
+ export enum SafetyRiskTriggerPoint {
101718
+
101719
+ /** SAFETY_RISK_TRIGGER_POINT_UNKNOWN value */
101720
+ SAFETY_RISK_TRIGGER_POINT_UNKNOWN = 0,
101721
+
101722
+ /** SAFETY_RISK_TRIGGER_POINT_ASSESSMENT value */
101723
+ SAFETY_RISK_TRIGGER_POINT_ASSESSMENT = 1,
101724
+
101725
+ /** SAFETY_RISK_TRIGGER_POINT_EBB value */
101726
+ SAFETY_RISK_TRIGGER_POINT_EBB = 2,
101727
+
101728
+ /** SAFETY_RISK_TRIGGER_POINT_COACHING_CHAT value */
101729
+ SAFETY_RISK_TRIGGER_POINT_COACHING_CHAT = 3
101730
+ }
101731
+
101732
+ /** SafetyRiskDetectionMethod enum. */
101733
+ export enum SafetyRiskDetectionMethod {
101734
+
101735
+ /** SAFETY_RISK_DETECTION_METHOD_UNKNOWN value */
101736
+ SAFETY_RISK_DETECTION_METHOD_UNKNOWN = 0,
101737
+
101738
+ /** SAFETY_RISK_DETECTION_METHOD_PHQ9_ITEM value */
101739
+ SAFETY_RISK_DETECTION_METHOD_PHQ9_ITEM = 1,
101740
+
101741
+ /** SAFETY_RISK_DETECTION_METHOD_EBB_HAWK value */
101742
+ SAFETY_RISK_DETECTION_METHOD_EBB_HAWK = 2,
101743
+
101744
+ /** SAFETY_RISK_DETECTION_METHOD_EBB_CRISIS_KEYWORD value */
101745
+ SAFETY_RISK_DETECTION_METHOD_EBB_CRISIS_KEYWORD = 3,
101746
+
101747
+ /** SAFETY_RISK_DETECTION_METHOD_COACHING_CHAT_NLP value */
101748
+ SAFETY_RISK_DETECTION_METHOD_COACHING_CHAT_NLP = 4,
101749
+
101750
+ /** SAFETY_RISK_DETECTION_METHOD_EBB_VOICE_SAGEMAKER value */
101751
+ SAFETY_RISK_DETECTION_METHOD_EBB_VOICE_SAGEMAKER = 5
101752
+ }
101753
+
101754
+ /** SafetyRiskCategory enum. */
101755
+ export enum SafetyRiskCategory {
101756
+
101757
+ /** SAFETY_RISK_CATEGORY_UNKNOWN value */
101758
+ SAFETY_RISK_CATEGORY_UNKNOWN = 0,
101759
+
101760
+ /** SAFETY_RISK_CATEGORY_SUICIDAL_IDEATION value */
101761
+ SAFETY_RISK_CATEGORY_SUICIDAL_IDEATION = 1,
101762
+
101763
+ /** SAFETY_RISK_CATEGORY_HOMICIDAL_IDEATION value */
101764
+ SAFETY_RISK_CATEGORY_HOMICIDAL_IDEATION = 2,
101765
+
101766
+ /** SAFETY_RISK_CATEGORY_SELF_HARM value */
101767
+ SAFETY_RISK_CATEGORY_SELF_HARM = 3,
101768
+
101769
+ /** SAFETY_RISK_CATEGORY_DOMESTIC_ABUSE value */
101770
+ SAFETY_RISK_CATEGORY_DOMESTIC_ABUSE = 4,
101771
+
101772
+ /** SAFETY_RISK_CATEGORY_SUBSTANCE_ABUSE value */
101773
+ SAFETY_RISK_CATEGORY_SUBSTANCE_ABUSE = 5,
101774
+
101775
+ /** SAFETY_RISK_CATEGORY_EATING_DISORDERS value */
101776
+ SAFETY_RISK_CATEGORY_EATING_DISORDERS = 6,
101777
+
101778
+ /** SAFETY_RISK_CATEGORY_ABUSE_OF_VULNERABLE_POPULATIONS value */
101779
+ SAFETY_RISK_CATEGORY_ABUSE_OF_VULNERABLE_POPULATIONS = 7
101780
+ }
101781
+
101782
+ /**
101783
+ * Properties of a SafetyRiskFlagged.
101784
+ * @deprecated Use SafetyRiskFlagged.$Properties instead.
101785
+ */
101786
+ export interface ISafetyRiskFlagged extends SafetyRiskFlagged.$Properties {
101787
+ }
101788
+
101789
+ /** Represents a SafetyRiskFlagged. */
101790
+ export class SafetyRiskFlagged {
101791
+
101792
+ /**
101793
+ * Constructs a new SafetyRiskFlagged.
101794
+ * @param [properties] Properties to set
101795
+ */
101796
+ constructor(properties?: SafetyRiskFlagged.$Properties);
101797
+
101798
+ /** Unknown fields preserved while decoding */
101799
+ $unknowns?: Uint8Array[];
101800
+
101801
+ /** SafetyRiskFlagged hsUserId. */
101802
+ hsUserId: string;
101803
+
101804
+ /** SafetyRiskFlagged gingerUserId. */
101805
+ gingerUserId: number;
101806
+
101807
+ /** SafetyRiskFlagged triggerPoint. */
101808
+ triggerPoint: SafetyRiskTriggerPoint;
101809
+
101810
+ /** SafetyRiskFlagged flaggedAtIsoDate. */
101811
+ flaggedAtIsoDate: string;
101812
+
101813
+ /** SafetyRiskFlagged detectionMethod. */
101814
+ detectionMethod: SafetyRiskDetectionMethod;
101815
+
101816
+ /** SafetyRiskFlagged category. */
101817
+ category: SafetyRiskCategory;
101818
+
101819
+ /** SafetyRiskFlagged activityId. */
101820
+ activityId?: (string|null);
101821
+
101822
+ /** SafetyRiskFlagged assignmentId. */
101823
+ assignmentId?: (number|Long|null);
101824
+
101825
+ /** SafetyRiskFlagged ebbConversationId. */
101826
+ ebbConversationId?: (string|null);
101827
+
101828
+ /** SafetyRiskFlagged ebbMessageId. */
101829
+ ebbMessageId?: (string|null);
101830
+
101831
+ /** SafetyRiskFlagged phqQ9Endorsed. */
101832
+ phqQ9Endorsed?: (boolean|null);
101833
+
101834
+ /** SafetyRiskFlagged phqQ10Endorsed. */
101835
+ phqQ10Endorsed?: (boolean|null);
101836
+
101837
+ /**
101838
+ * Creates a new SafetyRiskFlagged instance using the specified properties.
101839
+ * @param [properties] Properties to set
101840
+ * @returns SafetyRiskFlagged instance
101841
+ */
101842
+ static create(properties: SafetyRiskFlagged.$Shape): SafetyRiskFlagged & SafetyRiskFlagged.$Shape;
101843
+ static create(properties?: SafetyRiskFlagged.$Properties): SafetyRiskFlagged;
101844
+
101845
+ /**
101846
+ * Encodes the specified SafetyRiskFlagged message. Does not implicitly {@link SafetyRiskFlagged.verify|verify} messages.
101847
+ * @param message SafetyRiskFlagged message or plain object to encode
101848
+ * @param [writer] Writer to encode to
101849
+ * @returns Writer
101850
+ */
101851
+ static encode(message: SafetyRiskFlagged.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
101852
+
101853
+ /**
101854
+ * Encodes the specified SafetyRiskFlagged message, length delimited. Does not implicitly {@link SafetyRiskFlagged.verify|verify} messages.
101855
+ * @param message SafetyRiskFlagged message or plain object to encode
101856
+ * @param [writer] Writer to encode to
101857
+ * @returns Writer
101858
+ */
101859
+ static encodeDelimited(message: SafetyRiskFlagged.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
101860
+
101861
+ /**
101862
+ * Decodes a SafetyRiskFlagged message from the specified reader or buffer.
101863
+ * @param reader Reader or buffer to decode from
101864
+ * @param [length] Message length if known beforehand
101865
+ * @returns {SafetyRiskFlagged & SafetyRiskFlagged.$Shape} SafetyRiskFlagged
101866
+ * @throws {Error} If the payload is not a reader or valid buffer
101867
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
101868
+ */
101869
+ static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SafetyRiskFlagged & SafetyRiskFlagged.$Shape;
101870
+
101871
+ /**
101872
+ * Decodes a SafetyRiskFlagged message from the specified reader or buffer, length delimited.
101873
+ * @param reader Reader or buffer to decode from
101874
+ * @returns {SafetyRiskFlagged & SafetyRiskFlagged.$Shape} SafetyRiskFlagged
101875
+ * @throws {Error} If the payload is not a reader or valid buffer
101876
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
101877
+ */
101878
+ static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SafetyRiskFlagged & SafetyRiskFlagged.$Shape;
101879
+
101880
+ /**
101881
+ * Verifies a SafetyRiskFlagged message.
101882
+ * @param message Plain object to verify
101883
+ * @returns `null` if valid, otherwise the reason why it is not
101884
+ */
101885
+ static verify(message: { [k: string]: any }): (string|null);
101886
+
101887
+ /**
101888
+ * Creates a SafetyRiskFlagged message from a plain object. Also converts values to their respective internal types.
101889
+ * @param object Plain object
101890
+ * @returns SafetyRiskFlagged
101891
+ */
101892
+ static fromObject(object: { [k: string]: any }): SafetyRiskFlagged;
101893
+
101894
+ /**
101895
+ * Creates a plain object from a SafetyRiskFlagged message. Also converts values to other types if specified.
101896
+ * @param message SafetyRiskFlagged
101897
+ * @param [options] Conversion options
101898
+ * @returns Plain object
101899
+ */
101900
+ static toObject(message: SafetyRiskFlagged, options?: $protobuf.IConversionOptions): { [k: string]: any };
101901
+
101902
+ /**
101903
+ * Converts this SafetyRiskFlagged to JSON.
101904
+ * @returns JSON object
101905
+ */
101906
+ toJSON(): { [k: string]: any };
101907
+
101908
+ /**
101909
+ * Gets the type url for SafetyRiskFlagged
101910
+ * @param [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
101911
+ * @returns The type url
101912
+ */
101913
+ static getTypeUrl(prefix?: string): string;
101914
+ }
101915
+
101916
+ export namespace SafetyRiskFlagged {
101917
+
101918
+ /** Properties of a SafetyRiskFlagged. */
101919
+ interface $Properties {
101920
+
101921
+ /** SafetyRiskFlagged hsUserId */
101922
+ hsUserId?: (string|null);
101923
+
101924
+ /** SafetyRiskFlagged gingerUserId */
101925
+ gingerUserId?: (number|null);
101926
+
101927
+ /** SafetyRiskFlagged triggerPoint */
101928
+ triggerPoint?: (SafetyRiskTriggerPoint|null);
101929
+
101930
+ /** SafetyRiskFlagged flaggedAtIsoDate */
101931
+ flaggedAtIsoDate?: (string|null);
101932
+
101933
+ /** SafetyRiskFlagged detectionMethod */
101934
+ detectionMethod?: (SafetyRiskDetectionMethod|null);
101935
+
101936
+ /** SafetyRiskFlagged category */
101937
+ category?: (SafetyRiskCategory|null);
101938
+
101939
+ /** SafetyRiskFlagged activityId */
101940
+ activityId?: (string|null);
101941
+
101942
+ /** SafetyRiskFlagged assignmentId */
101943
+ assignmentId?: (number|Long|null);
101944
+
101945
+ /** SafetyRiskFlagged ebbConversationId */
101946
+ ebbConversationId?: (string|null);
101947
+
101948
+ /** SafetyRiskFlagged ebbMessageId */
101949
+ ebbMessageId?: (string|null);
101950
+
101951
+ /** SafetyRiskFlagged phqQ9Endorsed */
101952
+ phqQ9Endorsed?: (boolean|null);
101953
+
101954
+ /** SafetyRiskFlagged phqQ10Endorsed */
101955
+ phqQ10Endorsed?: (boolean|null);
101956
+
101957
+ /** Unknown fields preserved while decoding */
101958
+ $unknowns?: Uint8Array[];
101959
+ }
101960
+
101961
+ /** Shape of a SafetyRiskFlagged. */
101962
+ type $Shape = SafetyRiskFlagged.$Properties;
101963
+ }
101964
+
101716
101965
  /**
101717
101966
  * Properties of a SikaMemberLmnRejected.
101718
101967
  * @deprecated Use SikaMemberLmnRejected.$Properties instead.
package/lib/index.js CHANGED
@@ -297483,6 +297483,815 @@ $root.ReferralSignedUp = (function() {
297483
297483
  return ReferralSignedUp;
297484
297484
  })();
297485
297485
 
297486
+ /**
297487
+ * SafetyRiskTriggerPoint enum.
297488
+ * @name SafetyRiskTriggerPoint
297489
+ * @enum {number}
297490
+ * @property {number} SAFETY_RISK_TRIGGER_POINT_UNKNOWN=0 SAFETY_RISK_TRIGGER_POINT_UNKNOWN value
297491
+ * @property {number} SAFETY_RISK_TRIGGER_POINT_ASSESSMENT=1 SAFETY_RISK_TRIGGER_POINT_ASSESSMENT value
297492
+ * @property {number} SAFETY_RISK_TRIGGER_POINT_EBB=2 SAFETY_RISK_TRIGGER_POINT_EBB value
297493
+ * @property {number} SAFETY_RISK_TRIGGER_POINT_COACHING_CHAT=3 SAFETY_RISK_TRIGGER_POINT_COACHING_CHAT value
297494
+ */
297495
+ $root.SafetyRiskTriggerPoint = (function() {
297496
+ var valuesById = {}, values = Object.create(valuesById);
297497
+ values[valuesById[0] = "SAFETY_RISK_TRIGGER_POINT_UNKNOWN"] = 0;
297498
+ values[valuesById[1] = "SAFETY_RISK_TRIGGER_POINT_ASSESSMENT"] = 1;
297499
+ values[valuesById[2] = "SAFETY_RISK_TRIGGER_POINT_EBB"] = 2;
297500
+ values[valuesById[3] = "SAFETY_RISK_TRIGGER_POINT_COACHING_CHAT"] = 3;
297501
+ return values;
297502
+ })();
297503
+
297504
+ /**
297505
+ * SafetyRiskDetectionMethod enum.
297506
+ * @name SafetyRiskDetectionMethod
297507
+ * @enum {number}
297508
+ * @property {number} SAFETY_RISK_DETECTION_METHOD_UNKNOWN=0 SAFETY_RISK_DETECTION_METHOD_UNKNOWN value
297509
+ * @property {number} SAFETY_RISK_DETECTION_METHOD_PHQ9_ITEM=1 SAFETY_RISK_DETECTION_METHOD_PHQ9_ITEM value
297510
+ * @property {number} SAFETY_RISK_DETECTION_METHOD_EBB_HAWK=2 SAFETY_RISK_DETECTION_METHOD_EBB_HAWK value
297511
+ * @property {number} SAFETY_RISK_DETECTION_METHOD_EBB_CRISIS_KEYWORD=3 SAFETY_RISK_DETECTION_METHOD_EBB_CRISIS_KEYWORD value
297512
+ * @property {number} SAFETY_RISK_DETECTION_METHOD_COACHING_CHAT_NLP=4 SAFETY_RISK_DETECTION_METHOD_COACHING_CHAT_NLP value
297513
+ * @property {number} SAFETY_RISK_DETECTION_METHOD_EBB_VOICE_SAGEMAKER=5 SAFETY_RISK_DETECTION_METHOD_EBB_VOICE_SAGEMAKER value
297514
+ */
297515
+ $root.SafetyRiskDetectionMethod = (function() {
297516
+ var valuesById = {}, values = Object.create(valuesById);
297517
+ values[valuesById[0] = "SAFETY_RISK_DETECTION_METHOD_UNKNOWN"] = 0;
297518
+ values[valuesById[1] = "SAFETY_RISK_DETECTION_METHOD_PHQ9_ITEM"] = 1;
297519
+ values[valuesById[2] = "SAFETY_RISK_DETECTION_METHOD_EBB_HAWK"] = 2;
297520
+ values[valuesById[3] = "SAFETY_RISK_DETECTION_METHOD_EBB_CRISIS_KEYWORD"] = 3;
297521
+ values[valuesById[4] = "SAFETY_RISK_DETECTION_METHOD_COACHING_CHAT_NLP"] = 4;
297522
+ values[valuesById[5] = "SAFETY_RISK_DETECTION_METHOD_EBB_VOICE_SAGEMAKER"] = 5;
297523
+ return values;
297524
+ })();
297525
+
297526
+ /**
297527
+ * SafetyRiskCategory enum.
297528
+ * @name SafetyRiskCategory
297529
+ * @enum {number}
297530
+ * @property {number} SAFETY_RISK_CATEGORY_UNKNOWN=0 SAFETY_RISK_CATEGORY_UNKNOWN value
297531
+ * @property {number} SAFETY_RISK_CATEGORY_SUICIDAL_IDEATION=1 SAFETY_RISK_CATEGORY_SUICIDAL_IDEATION value
297532
+ * @property {number} SAFETY_RISK_CATEGORY_HOMICIDAL_IDEATION=2 SAFETY_RISK_CATEGORY_HOMICIDAL_IDEATION value
297533
+ * @property {number} SAFETY_RISK_CATEGORY_SELF_HARM=3 SAFETY_RISK_CATEGORY_SELF_HARM value
297534
+ * @property {number} SAFETY_RISK_CATEGORY_DOMESTIC_ABUSE=4 SAFETY_RISK_CATEGORY_DOMESTIC_ABUSE value
297535
+ * @property {number} SAFETY_RISK_CATEGORY_SUBSTANCE_ABUSE=5 SAFETY_RISK_CATEGORY_SUBSTANCE_ABUSE value
297536
+ * @property {number} SAFETY_RISK_CATEGORY_EATING_DISORDERS=6 SAFETY_RISK_CATEGORY_EATING_DISORDERS value
297537
+ * @property {number} SAFETY_RISK_CATEGORY_ABUSE_OF_VULNERABLE_POPULATIONS=7 SAFETY_RISK_CATEGORY_ABUSE_OF_VULNERABLE_POPULATIONS value
297538
+ */
297539
+ $root.SafetyRiskCategory = (function() {
297540
+ var valuesById = {}, values = Object.create(valuesById);
297541
+ values[valuesById[0] = "SAFETY_RISK_CATEGORY_UNKNOWN"] = 0;
297542
+ values[valuesById[1] = "SAFETY_RISK_CATEGORY_SUICIDAL_IDEATION"] = 1;
297543
+ values[valuesById[2] = "SAFETY_RISK_CATEGORY_HOMICIDAL_IDEATION"] = 2;
297544
+ values[valuesById[3] = "SAFETY_RISK_CATEGORY_SELF_HARM"] = 3;
297545
+ values[valuesById[4] = "SAFETY_RISK_CATEGORY_DOMESTIC_ABUSE"] = 4;
297546
+ values[valuesById[5] = "SAFETY_RISK_CATEGORY_SUBSTANCE_ABUSE"] = 5;
297547
+ values[valuesById[6] = "SAFETY_RISK_CATEGORY_EATING_DISORDERS"] = 6;
297548
+ values[valuesById[7] = "SAFETY_RISK_CATEGORY_ABUSE_OF_VULNERABLE_POPULATIONS"] = 7;
297549
+ return values;
297550
+ })();
297551
+
297552
+ $root.SafetyRiskFlagged = (function() {
297553
+
297554
+ /**
297555
+ * Properties of a SafetyRiskFlagged.
297556
+ * @typedef {Object} SafetyRiskFlagged.$Properties
297557
+ * @property {string|null} [hsUserId] SafetyRiskFlagged hsUserId
297558
+ * @property {number|null} [gingerUserId] SafetyRiskFlagged gingerUserId
297559
+ * @property {SafetyRiskTriggerPoint|null} [triggerPoint] SafetyRiskFlagged triggerPoint
297560
+ * @property {string|null} [flaggedAtIsoDate] SafetyRiskFlagged flaggedAtIsoDate
297561
+ * @property {SafetyRiskDetectionMethod|null} [detectionMethod] SafetyRiskFlagged detectionMethod
297562
+ * @property {SafetyRiskCategory|null} [category] SafetyRiskFlagged category
297563
+ * @property {string|null} [activityId] SafetyRiskFlagged activityId
297564
+ * @property {number|Long|null} [assignmentId] SafetyRiskFlagged assignmentId
297565
+ * @property {string|null} [ebbConversationId] SafetyRiskFlagged ebbConversationId
297566
+ * @property {string|null} [ebbMessageId] SafetyRiskFlagged ebbMessageId
297567
+ * @property {boolean|null} [phqQ9Endorsed] SafetyRiskFlagged phqQ9Endorsed
297568
+ * @property {boolean|null} [phqQ10Endorsed] SafetyRiskFlagged phqQ10Endorsed
297569
+ * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
297570
+ */
297571
+
297572
+ /**
297573
+ * Properties of a SafetyRiskFlagged.
297574
+ * @name ISafetyRiskFlagged
297575
+ * @interface ISafetyRiskFlagged
297576
+ * @augments SafetyRiskFlagged.$Properties
297577
+ * @deprecated Use SafetyRiskFlagged.$Properties instead.
297578
+ */
297579
+
297580
+ /**
297581
+ * Shape of a SafetyRiskFlagged.
297582
+ * @typedef {SafetyRiskFlagged.$Properties} SafetyRiskFlagged.$Shape
297583
+ */
297584
+
297585
+ /**
297586
+ * Constructs a new SafetyRiskFlagged.
297587
+ * @name SafetyRiskFlagged
297588
+ * @classdesc Represents a SafetyRiskFlagged.
297589
+ * @constructor
297590
+ * @param {SafetyRiskFlagged.$Properties=} [properties] Properties to set
297591
+ * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
297592
+ */
297593
+ function SafetyRiskFlagged(properties) {
297594
+ if (properties)
297595
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
297596
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
297597
+ this[keys[i]] = properties[keys[i]];
297598
+ }
297599
+
297600
+ /**
297601
+ * SafetyRiskFlagged hsUserId.
297602
+ * @member {string} hsUserId
297603
+ * @memberof SafetyRiskFlagged
297604
+ * @instance
297605
+ */
297606
+ SafetyRiskFlagged.prototype.hsUserId = "";
297607
+
297608
+ /**
297609
+ * SafetyRiskFlagged gingerUserId.
297610
+ * @member {number} gingerUserId
297611
+ * @memberof SafetyRiskFlagged
297612
+ * @instance
297613
+ */
297614
+ SafetyRiskFlagged.prototype.gingerUserId = 0;
297615
+
297616
+ /**
297617
+ * SafetyRiskFlagged triggerPoint.
297618
+ * @member {SafetyRiskTriggerPoint} triggerPoint
297619
+ * @memberof SafetyRiskFlagged
297620
+ * @instance
297621
+ */
297622
+ SafetyRiskFlagged.prototype.triggerPoint = 0;
297623
+
297624
+ /**
297625
+ * SafetyRiskFlagged flaggedAtIsoDate.
297626
+ * @member {string} flaggedAtIsoDate
297627
+ * @memberof SafetyRiskFlagged
297628
+ * @instance
297629
+ */
297630
+ SafetyRiskFlagged.prototype.flaggedAtIsoDate = "";
297631
+
297632
+ /**
297633
+ * SafetyRiskFlagged detectionMethod.
297634
+ * @member {SafetyRiskDetectionMethod} detectionMethod
297635
+ * @memberof SafetyRiskFlagged
297636
+ * @instance
297637
+ */
297638
+ SafetyRiskFlagged.prototype.detectionMethod = 0;
297639
+
297640
+ /**
297641
+ * SafetyRiskFlagged category.
297642
+ * @member {SafetyRiskCategory} category
297643
+ * @memberof SafetyRiskFlagged
297644
+ * @instance
297645
+ */
297646
+ SafetyRiskFlagged.prototype.category = 0;
297647
+
297648
+ /**
297649
+ * SafetyRiskFlagged activityId.
297650
+ * @member {string|null|undefined} activityId
297651
+ * @memberof SafetyRiskFlagged
297652
+ * @instance
297653
+ */
297654
+ SafetyRiskFlagged.prototype.activityId = null;
297655
+
297656
+ /**
297657
+ * SafetyRiskFlagged assignmentId.
297658
+ * @member {number|Long|null|undefined} assignmentId
297659
+ * @memberof SafetyRiskFlagged
297660
+ * @instance
297661
+ */
297662
+ SafetyRiskFlagged.prototype.assignmentId = null;
297663
+
297664
+ /**
297665
+ * SafetyRiskFlagged ebbConversationId.
297666
+ * @member {string|null|undefined} ebbConversationId
297667
+ * @memberof SafetyRiskFlagged
297668
+ * @instance
297669
+ */
297670
+ SafetyRiskFlagged.prototype.ebbConversationId = null;
297671
+
297672
+ /**
297673
+ * SafetyRiskFlagged ebbMessageId.
297674
+ * @member {string|null|undefined} ebbMessageId
297675
+ * @memberof SafetyRiskFlagged
297676
+ * @instance
297677
+ */
297678
+ SafetyRiskFlagged.prototype.ebbMessageId = null;
297679
+
297680
+ /**
297681
+ * SafetyRiskFlagged phqQ9Endorsed.
297682
+ * @member {boolean|null|undefined} phqQ9Endorsed
297683
+ * @memberof SafetyRiskFlagged
297684
+ * @instance
297685
+ */
297686
+ SafetyRiskFlagged.prototype.phqQ9Endorsed = null;
297687
+
297688
+ /**
297689
+ * SafetyRiskFlagged phqQ10Endorsed.
297690
+ * @member {boolean|null|undefined} phqQ10Endorsed
297691
+ * @memberof SafetyRiskFlagged
297692
+ * @instance
297693
+ */
297694
+ SafetyRiskFlagged.prototype.phqQ10Endorsed = null;
297695
+
297696
+ // OneOf field names bound to virtual getters and setters
297697
+ var $oneOfFields;
297698
+
297699
+ // Virtual OneOf for proto3 optional field
297700
+ Object.defineProperty(SafetyRiskFlagged.prototype, "_activityId", {
297701
+ get: $util.oneOfGetter($oneOfFields = ["activityId"]),
297702
+ set: $util.oneOfSetter($oneOfFields)
297703
+ });
297704
+
297705
+ // Virtual OneOf for proto3 optional field
297706
+ Object.defineProperty(SafetyRiskFlagged.prototype, "_assignmentId", {
297707
+ get: $util.oneOfGetter($oneOfFields = ["assignmentId"]),
297708
+ set: $util.oneOfSetter($oneOfFields)
297709
+ });
297710
+
297711
+ // Virtual OneOf for proto3 optional field
297712
+ Object.defineProperty(SafetyRiskFlagged.prototype, "_ebbConversationId", {
297713
+ get: $util.oneOfGetter($oneOfFields = ["ebbConversationId"]),
297714
+ set: $util.oneOfSetter($oneOfFields)
297715
+ });
297716
+
297717
+ // Virtual OneOf for proto3 optional field
297718
+ Object.defineProperty(SafetyRiskFlagged.prototype, "_ebbMessageId", {
297719
+ get: $util.oneOfGetter($oneOfFields = ["ebbMessageId"]),
297720
+ set: $util.oneOfSetter($oneOfFields)
297721
+ });
297722
+
297723
+ // Virtual OneOf for proto3 optional field
297724
+ Object.defineProperty(SafetyRiskFlagged.prototype, "_phqQ9Endorsed", {
297725
+ get: $util.oneOfGetter($oneOfFields = ["phqQ9Endorsed"]),
297726
+ set: $util.oneOfSetter($oneOfFields)
297727
+ });
297728
+
297729
+ // Virtual OneOf for proto3 optional field
297730
+ Object.defineProperty(SafetyRiskFlagged.prototype, "_phqQ10Endorsed", {
297731
+ get: $util.oneOfGetter($oneOfFields = ["phqQ10Endorsed"]),
297732
+ set: $util.oneOfSetter($oneOfFields)
297733
+ });
297734
+
297735
+ /**
297736
+ * Creates a new SafetyRiskFlagged instance using the specified properties.
297737
+ * @function create
297738
+ * @memberof SafetyRiskFlagged
297739
+ * @static
297740
+ * @param {SafetyRiskFlagged.$Properties=} [properties] Properties to set
297741
+ * @returns {SafetyRiskFlagged} SafetyRiskFlagged instance
297742
+ * @type {{
297743
+ * (properties: SafetyRiskFlagged.$Shape): SafetyRiskFlagged & SafetyRiskFlagged.$Shape;
297744
+ * (properties?: SafetyRiskFlagged.$Properties): SafetyRiskFlagged;
297745
+ * }}
297746
+ */
297747
+ SafetyRiskFlagged.create = function create(properties) {
297748
+ return new SafetyRiskFlagged(properties);
297749
+ };
297750
+
297751
+ /**
297752
+ * Encodes the specified SafetyRiskFlagged message. Does not implicitly {@link SafetyRiskFlagged.verify|verify} messages.
297753
+ * @function encode
297754
+ * @memberof SafetyRiskFlagged
297755
+ * @static
297756
+ * @param {SafetyRiskFlagged.$Properties} message SafetyRiskFlagged message or plain object to encode
297757
+ * @param {$protobuf.Writer} [writer] Writer to encode to
297758
+ * @returns {$protobuf.Writer} Writer
297759
+ */
297760
+ SafetyRiskFlagged.encode = function encode(message, writer) {
297761
+ if (!writer)
297762
+ writer = $Writer.create();
297763
+ if (message.hsUserId != null && Object.hasOwnProperty.call(message, "hsUserId"))
297764
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
297765
+ if (message.gingerUserId != null && Object.hasOwnProperty.call(message, "gingerUserId"))
297766
+ writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.gingerUserId);
297767
+ if (message.triggerPoint != null && Object.hasOwnProperty.call(message, "triggerPoint"))
297768
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.triggerPoint);
297769
+ if (message.flaggedAtIsoDate != null && Object.hasOwnProperty.call(message, "flaggedAtIsoDate"))
297770
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.flaggedAtIsoDate);
297771
+ if (message.detectionMethod != null && Object.hasOwnProperty.call(message, "detectionMethod"))
297772
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.detectionMethod);
297773
+ if (message.category != null && Object.hasOwnProperty.call(message, "category"))
297774
+ writer.uint32(/* id 6, wireType 0 =*/48).int32(message.category);
297775
+ if (message.activityId != null && Object.hasOwnProperty.call(message, "activityId"))
297776
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.activityId);
297777
+ if (message.assignmentId != null && Object.hasOwnProperty.call(message, "assignmentId"))
297778
+ writer.uint32(/* id 8, wireType 0 =*/64).int64(message.assignmentId);
297779
+ if (message.ebbConversationId != null && Object.hasOwnProperty.call(message, "ebbConversationId"))
297780
+ writer.uint32(/* id 9, wireType 2 =*/74).string(message.ebbConversationId);
297781
+ if (message.ebbMessageId != null && Object.hasOwnProperty.call(message, "ebbMessageId"))
297782
+ writer.uint32(/* id 10, wireType 2 =*/82).string(message.ebbMessageId);
297783
+ if (message.phqQ9Endorsed != null && Object.hasOwnProperty.call(message, "phqQ9Endorsed"))
297784
+ writer.uint32(/* id 11, wireType 0 =*/88).bool(message.phqQ9Endorsed);
297785
+ if (message.phqQ10Endorsed != null && Object.hasOwnProperty.call(message, "phqQ10Endorsed"))
297786
+ writer.uint32(/* id 12, wireType 0 =*/96).bool(message.phqQ10Endorsed);
297787
+ if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
297788
+ for (var i = 0; i < message.$unknowns.length; ++i)
297789
+ writer.raw(message.$unknowns[i]);
297790
+ return writer;
297791
+ };
297792
+
297793
+ /**
297794
+ * Encodes the specified SafetyRiskFlagged message, length delimited. Does not implicitly {@link SafetyRiskFlagged.verify|verify} messages.
297795
+ * @function encodeDelimited
297796
+ * @memberof SafetyRiskFlagged
297797
+ * @static
297798
+ * @param {SafetyRiskFlagged.$Properties} message SafetyRiskFlagged message or plain object to encode
297799
+ * @param {$protobuf.Writer} [writer] Writer to encode to
297800
+ * @returns {$protobuf.Writer} Writer
297801
+ */
297802
+ SafetyRiskFlagged.encodeDelimited = function encodeDelimited(message, writer) {
297803
+ return this.encode(message, writer).ldelim();
297804
+ };
297805
+
297806
+ /**
297807
+ * Decodes a SafetyRiskFlagged message from the specified reader or buffer.
297808
+ * @function decode
297809
+ * @memberof SafetyRiskFlagged
297810
+ * @static
297811
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
297812
+ * @param {number} [length] Message length if known beforehand
297813
+ * @returns {SafetyRiskFlagged & SafetyRiskFlagged.$Shape} SafetyRiskFlagged
297814
+ * @throws {Error} If the payload is not a reader or valid buffer
297815
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
297816
+ */
297817
+ SafetyRiskFlagged.decode = function decode(reader, length, _end, _depth, _target) {
297818
+ if (!(reader instanceof $Reader))
297819
+ reader = $Reader.create(reader);
297820
+ if (_depth === undefined)
297821
+ _depth = 0;
297822
+ if (_depth > $Reader.recursionLimit)
297823
+ throw Error("max depth exceeded");
297824
+ var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.SafetyRiskFlagged(), value;
297825
+ while (reader.pos < end) {
297826
+ var start = reader.pos;
297827
+ var tag = reader.tag();
297828
+ if (tag === _end) {
297829
+ _end = undefined;
297830
+ break;
297831
+ }
297832
+ var wireType = tag & 7;
297833
+ switch (tag >>>= 3) {
297834
+ case 1: {
297835
+ if (wireType !== 2)
297836
+ break;
297837
+ if ((value = reader.string()).length)
297838
+ message.hsUserId = value;
297839
+ else
297840
+ delete message.hsUserId;
297841
+ continue;
297842
+ }
297843
+ case 2: {
297844
+ if (wireType !== 0)
297845
+ break;
297846
+ if (value = reader.uint32())
297847
+ message.gingerUserId = value;
297848
+ else
297849
+ delete message.gingerUserId;
297850
+ continue;
297851
+ }
297852
+ case 3: {
297853
+ if (wireType !== 0)
297854
+ break;
297855
+ if (value = reader.int32())
297856
+ message.triggerPoint = value;
297857
+ else
297858
+ delete message.triggerPoint;
297859
+ continue;
297860
+ }
297861
+ case 4: {
297862
+ if (wireType !== 2)
297863
+ break;
297864
+ if ((value = reader.string()).length)
297865
+ message.flaggedAtIsoDate = value;
297866
+ else
297867
+ delete message.flaggedAtIsoDate;
297868
+ continue;
297869
+ }
297870
+ case 5: {
297871
+ if (wireType !== 0)
297872
+ break;
297873
+ if (value = reader.int32())
297874
+ message.detectionMethod = value;
297875
+ else
297876
+ delete message.detectionMethod;
297877
+ continue;
297878
+ }
297879
+ case 6: {
297880
+ if (wireType !== 0)
297881
+ break;
297882
+ if (value = reader.int32())
297883
+ message.category = value;
297884
+ else
297885
+ delete message.category;
297886
+ continue;
297887
+ }
297888
+ case 7: {
297889
+ if (wireType !== 2)
297890
+ break;
297891
+ message.activityId = reader.string();
297892
+ message._activityId = "activityId";
297893
+ continue;
297894
+ }
297895
+ case 8: {
297896
+ if (wireType !== 0)
297897
+ break;
297898
+ message.assignmentId = reader.int64();
297899
+ message._assignmentId = "assignmentId";
297900
+ continue;
297901
+ }
297902
+ case 9: {
297903
+ if (wireType !== 2)
297904
+ break;
297905
+ message.ebbConversationId = reader.string();
297906
+ message._ebbConversationId = "ebbConversationId";
297907
+ continue;
297908
+ }
297909
+ case 10: {
297910
+ if (wireType !== 2)
297911
+ break;
297912
+ message.ebbMessageId = reader.string();
297913
+ message._ebbMessageId = "ebbMessageId";
297914
+ continue;
297915
+ }
297916
+ case 11: {
297917
+ if (wireType !== 0)
297918
+ break;
297919
+ message.phqQ9Endorsed = reader.bool();
297920
+ message._phqQ9Endorsed = "phqQ9Endorsed";
297921
+ continue;
297922
+ }
297923
+ case 12: {
297924
+ if (wireType !== 0)
297925
+ break;
297926
+ message.phqQ10Endorsed = reader.bool();
297927
+ message._phqQ10Endorsed = "phqQ10Endorsed";
297928
+ continue;
297929
+ }
297930
+ }
297931
+ reader.skipType(wireType, _depth, tag);
297932
+ $util.makeProp(message, "$unknowns", false);
297933
+ (message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
297934
+ }
297935
+ if (_end !== undefined)
297936
+ throw Error("missing end group");
297937
+ return message;
297938
+ };
297939
+
297940
+ /**
297941
+ * Decodes a SafetyRiskFlagged message from the specified reader or buffer, length delimited.
297942
+ * @function decodeDelimited
297943
+ * @memberof SafetyRiskFlagged
297944
+ * @static
297945
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
297946
+ * @returns {SafetyRiskFlagged & SafetyRiskFlagged.$Shape} SafetyRiskFlagged
297947
+ * @throws {Error} If the payload is not a reader or valid buffer
297948
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
297949
+ */
297950
+ SafetyRiskFlagged.decodeDelimited = function decodeDelimited(reader) {
297951
+ if (!(reader instanceof $Reader))
297952
+ reader = new $Reader(reader);
297953
+ return this.decode(reader, reader.uint32());
297954
+ };
297955
+
297956
+ /**
297957
+ * Verifies a SafetyRiskFlagged message.
297958
+ * @function verify
297959
+ * @memberof SafetyRiskFlagged
297960
+ * @static
297961
+ * @param {Object.<string,*>} message Plain object to verify
297962
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
297963
+ */
297964
+ SafetyRiskFlagged.verify = function verify(message, _depth) {
297965
+ if (typeof message !== "object" || message === null)
297966
+ return "object expected";
297967
+ if (_depth === undefined)
297968
+ _depth = 0;
297969
+ if (_depth > $util.recursionLimit)
297970
+ return "max depth exceeded";
297971
+ var properties = {};
297972
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
297973
+ if (!$util.isString(message.hsUserId))
297974
+ return "hsUserId: string expected";
297975
+ if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
297976
+ if (!$util.isInteger(message.gingerUserId))
297977
+ return "gingerUserId: integer expected";
297978
+ if (message.triggerPoint != null && message.hasOwnProperty("triggerPoint"))
297979
+ switch (message.triggerPoint) {
297980
+ default:
297981
+ return "triggerPoint: enum value expected";
297982
+ case 0:
297983
+ case 1:
297984
+ case 2:
297985
+ case 3:
297986
+ break;
297987
+ }
297988
+ if (message.flaggedAtIsoDate != null && message.hasOwnProperty("flaggedAtIsoDate"))
297989
+ if (!$util.isString(message.flaggedAtIsoDate))
297990
+ return "flaggedAtIsoDate: string expected";
297991
+ if (message.detectionMethod != null && message.hasOwnProperty("detectionMethod"))
297992
+ switch (message.detectionMethod) {
297993
+ default:
297994
+ return "detectionMethod: enum value expected";
297995
+ case 0:
297996
+ case 1:
297997
+ case 2:
297998
+ case 3:
297999
+ case 4:
298000
+ case 5:
298001
+ break;
298002
+ }
298003
+ if (message.category != null && message.hasOwnProperty("category"))
298004
+ switch (message.category) {
298005
+ default:
298006
+ return "category: enum value expected";
298007
+ case 0:
298008
+ case 1:
298009
+ case 2:
298010
+ case 3:
298011
+ case 4:
298012
+ case 5:
298013
+ case 6:
298014
+ case 7:
298015
+ break;
298016
+ }
298017
+ if (message.activityId != null && message.hasOwnProperty("activityId")) {
298018
+ properties._activityId = 1;
298019
+ if (!$util.isString(message.activityId))
298020
+ return "activityId: string expected";
298021
+ }
298022
+ if (message.assignmentId != null && message.hasOwnProperty("assignmentId")) {
298023
+ properties._assignmentId = 1;
298024
+ if (!$util.isInteger(message.assignmentId) && !(message.assignmentId && $util.isInteger(message.assignmentId.low) && $util.isInteger(message.assignmentId.high)))
298025
+ return "assignmentId: integer|Long expected";
298026
+ }
298027
+ if (message.ebbConversationId != null && message.hasOwnProperty("ebbConversationId")) {
298028
+ properties._ebbConversationId = 1;
298029
+ if (!$util.isString(message.ebbConversationId))
298030
+ return "ebbConversationId: string expected";
298031
+ }
298032
+ if (message.ebbMessageId != null && message.hasOwnProperty("ebbMessageId")) {
298033
+ properties._ebbMessageId = 1;
298034
+ if (!$util.isString(message.ebbMessageId))
298035
+ return "ebbMessageId: string expected";
298036
+ }
298037
+ if (message.phqQ9Endorsed != null && message.hasOwnProperty("phqQ9Endorsed")) {
298038
+ properties._phqQ9Endorsed = 1;
298039
+ if (typeof message.phqQ9Endorsed !== "boolean")
298040
+ return "phqQ9Endorsed: boolean expected";
298041
+ }
298042
+ if (message.phqQ10Endorsed != null && message.hasOwnProperty("phqQ10Endorsed")) {
298043
+ properties._phqQ10Endorsed = 1;
298044
+ if (typeof message.phqQ10Endorsed !== "boolean")
298045
+ return "phqQ10Endorsed: boolean expected";
298046
+ }
298047
+ return null;
298048
+ };
298049
+
298050
+ /**
298051
+ * Creates a SafetyRiskFlagged message from a plain object. Also converts values to their respective internal types.
298052
+ * @function fromObject
298053
+ * @memberof SafetyRiskFlagged
298054
+ * @static
298055
+ * @param {Object.<string,*>} object Plain object
298056
+ * @returns {SafetyRiskFlagged} SafetyRiskFlagged
298057
+ */
298058
+ SafetyRiskFlagged.fromObject = function fromObject(object, _depth) {
298059
+ if (object instanceof $root.SafetyRiskFlagged)
298060
+ return object;
298061
+ if (_depth === undefined)
298062
+ _depth = 0;
298063
+ if (_depth > $util.recursionLimit)
298064
+ throw Error("max depth exceeded");
298065
+ var message = new $root.SafetyRiskFlagged();
298066
+ if (object.hsUserId != null)
298067
+ if (typeof object.hsUserId !== "string" || object.hsUserId.length)
298068
+ message.hsUserId = String(object.hsUserId);
298069
+ if (object.gingerUserId != null)
298070
+ if (Number(object.gingerUserId) !== 0)
298071
+ message.gingerUserId = object.gingerUserId >>> 0;
298072
+ if (object.triggerPoint !== 0 && (typeof object.triggerPoint !== "string" || $root.SafetyRiskTriggerPoint[object.triggerPoint] !== 0))
298073
+ switch (object.triggerPoint) {
298074
+ default:
298075
+ if (typeof object.triggerPoint === "number") {
298076
+ message.triggerPoint = object.triggerPoint;
298077
+ break;
298078
+ }
298079
+ break;
298080
+ case "SAFETY_RISK_TRIGGER_POINT_UNKNOWN":
298081
+ case 0:
298082
+ message.triggerPoint = 0;
298083
+ break;
298084
+ case "SAFETY_RISK_TRIGGER_POINT_ASSESSMENT":
298085
+ case 1:
298086
+ message.triggerPoint = 1;
298087
+ break;
298088
+ case "SAFETY_RISK_TRIGGER_POINT_EBB":
298089
+ case 2:
298090
+ message.triggerPoint = 2;
298091
+ break;
298092
+ case "SAFETY_RISK_TRIGGER_POINT_COACHING_CHAT":
298093
+ case 3:
298094
+ message.triggerPoint = 3;
298095
+ break;
298096
+ }
298097
+ if (object.flaggedAtIsoDate != null)
298098
+ if (typeof object.flaggedAtIsoDate !== "string" || object.flaggedAtIsoDate.length)
298099
+ message.flaggedAtIsoDate = String(object.flaggedAtIsoDate);
298100
+ if (object.detectionMethod !== 0 && (typeof object.detectionMethod !== "string" || $root.SafetyRiskDetectionMethod[object.detectionMethod] !== 0))
298101
+ switch (object.detectionMethod) {
298102
+ default:
298103
+ if (typeof object.detectionMethod === "number") {
298104
+ message.detectionMethod = object.detectionMethod;
298105
+ break;
298106
+ }
298107
+ break;
298108
+ case "SAFETY_RISK_DETECTION_METHOD_UNKNOWN":
298109
+ case 0:
298110
+ message.detectionMethod = 0;
298111
+ break;
298112
+ case "SAFETY_RISK_DETECTION_METHOD_PHQ9_ITEM":
298113
+ case 1:
298114
+ message.detectionMethod = 1;
298115
+ break;
298116
+ case "SAFETY_RISK_DETECTION_METHOD_EBB_HAWK":
298117
+ case 2:
298118
+ message.detectionMethod = 2;
298119
+ break;
298120
+ case "SAFETY_RISK_DETECTION_METHOD_EBB_CRISIS_KEYWORD":
298121
+ case 3:
298122
+ message.detectionMethod = 3;
298123
+ break;
298124
+ case "SAFETY_RISK_DETECTION_METHOD_COACHING_CHAT_NLP":
298125
+ case 4:
298126
+ message.detectionMethod = 4;
298127
+ break;
298128
+ case "SAFETY_RISK_DETECTION_METHOD_EBB_VOICE_SAGEMAKER":
298129
+ case 5:
298130
+ message.detectionMethod = 5;
298131
+ break;
298132
+ }
298133
+ if (object.category !== 0 && (typeof object.category !== "string" || $root.SafetyRiskCategory[object.category] !== 0))
298134
+ switch (object.category) {
298135
+ default:
298136
+ if (typeof object.category === "number") {
298137
+ message.category = object.category;
298138
+ break;
298139
+ }
298140
+ break;
298141
+ case "SAFETY_RISK_CATEGORY_UNKNOWN":
298142
+ case 0:
298143
+ message.category = 0;
298144
+ break;
298145
+ case "SAFETY_RISK_CATEGORY_SUICIDAL_IDEATION":
298146
+ case 1:
298147
+ message.category = 1;
298148
+ break;
298149
+ case "SAFETY_RISK_CATEGORY_HOMICIDAL_IDEATION":
298150
+ case 2:
298151
+ message.category = 2;
298152
+ break;
298153
+ case "SAFETY_RISK_CATEGORY_SELF_HARM":
298154
+ case 3:
298155
+ message.category = 3;
298156
+ break;
298157
+ case "SAFETY_RISK_CATEGORY_DOMESTIC_ABUSE":
298158
+ case 4:
298159
+ message.category = 4;
298160
+ break;
298161
+ case "SAFETY_RISK_CATEGORY_SUBSTANCE_ABUSE":
298162
+ case 5:
298163
+ message.category = 5;
298164
+ break;
298165
+ case "SAFETY_RISK_CATEGORY_EATING_DISORDERS":
298166
+ case 6:
298167
+ message.category = 6;
298168
+ break;
298169
+ case "SAFETY_RISK_CATEGORY_ABUSE_OF_VULNERABLE_POPULATIONS":
298170
+ case 7:
298171
+ message.category = 7;
298172
+ break;
298173
+ }
298174
+ if (object.activityId != null)
298175
+ message.activityId = String(object.activityId);
298176
+ if (object.assignmentId != null)
298177
+ if ($util.Long)
298178
+ (message.assignmentId = $util.Long.fromValue(object.assignmentId)).unsigned = false;
298179
+ else if (typeof object.assignmentId === "string")
298180
+ message.assignmentId = parseInt(object.assignmentId, 10);
298181
+ else if (typeof object.assignmentId === "number")
298182
+ message.assignmentId = object.assignmentId;
298183
+ else if (typeof object.assignmentId === "object")
298184
+ message.assignmentId = new $util.LongBits(object.assignmentId.low >>> 0, object.assignmentId.high >>> 0).toNumber();
298185
+ if (object.ebbConversationId != null)
298186
+ message.ebbConversationId = String(object.ebbConversationId);
298187
+ if (object.ebbMessageId != null)
298188
+ message.ebbMessageId = String(object.ebbMessageId);
298189
+ if (object.phqQ9Endorsed != null)
298190
+ message.phqQ9Endorsed = Boolean(object.phqQ9Endorsed);
298191
+ if (object.phqQ10Endorsed != null)
298192
+ message.phqQ10Endorsed = Boolean(object.phqQ10Endorsed);
298193
+ return message;
298194
+ };
298195
+
298196
+ /**
298197
+ * Creates a plain object from a SafetyRiskFlagged message. Also converts values to other types if specified.
298198
+ * @function toObject
298199
+ * @memberof SafetyRiskFlagged
298200
+ * @static
298201
+ * @param {SafetyRiskFlagged} message SafetyRiskFlagged
298202
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
298203
+ * @returns {Object.<string,*>} Plain object
298204
+ */
298205
+ SafetyRiskFlagged.toObject = function toObject(message, options) {
298206
+ if (!options)
298207
+ options = {};
298208
+ var object = {};
298209
+ if (options.defaults) {
298210
+ object.hsUserId = "";
298211
+ object.gingerUserId = 0;
298212
+ object.triggerPoint = options.enums === String ? "SAFETY_RISK_TRIGGER_POINT_UNKNOWN" : 0;
298213
+ object.flaggedAtIsoDate = "";
298214
+ object.detectionMethod = options.enums === String ? "SAFETY_RISK_DETECTION_METHOD_UNKNOWN" : 0;
298215
+ object.category = options.enums === String ? "SAFETY_RISK_CATEGORY_UNKNOWN" : 0;
298216
+ }
298217
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
298218
+ object.hsUserId = message.hsUserId;
298219
+ if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
298220
+ object.gingerUserId = message.gingerUserId;
298221
+ if (message.triggerPoint != null && message.hasOwnProperty("triggerPoint"))
298222
+ object.triggerPoint = options.enums === String ? $root.SafetyRiskTriggerPoint[message.triggerPoint] === undefined ? message.triggerPoint : $root.SafetyRiskTriggerPoint[message.triggerPoint] : message.triggerPoint;
298223
+ if (message.flaggedAtIsoDate != null && message.hasOwnProperty("flaggedAtIsoDate"))
298224
+ object.flaggedAtIsoDate = message.flaggedAtIsoDate;
298225
+ if (message.detectionMethod != null && message.hasOwnProperty("detectionMethod"))
298226
+ object.detectionMethod = options.enums === String ? $root.SafetyRiskDetectionMethod[message.detectionMethod] === undefined ? message.detectionMethod : $root.SafetyRiskDetectionMethod[message.detectionMethod] : message.detectionMethod;
298227
+ if (message.category != null && message.hasOwnProperty("category"))
298228
+ object.category = options.enums === String ? $root.SafetyRiskCategory[message.category] === undefined ? message.category : $root.SafetyRiskCategory[message.category] : message.category;
298229
+ if (message.activityId != null && message.hasOwnProperty("activityId")) {
298230
+ object.activityId = message.activityId;
298231
+ if (options.oneofs)
298232
+ object._activityId = "activityId";
298233
+ }
298234
+ if (message.assignmentId != null && message.hasOwnProperty("assignmentId")) {
298235
+ if (typeof BigInt !== "undefined" && options.longs === BigInt)
298236
+ object.assignmentId = typeof message.assignmentId === "number" ? BigInt(message.assignmentId) : $util.Long.fromBits(message.assignmentId.low >>> 0, message.assignmentId.high >>> 0, false).toBigInt();
298237
+ else if (typeof message.assignmentId === "number")
298238
+ object.assignmentId = options.longs === String ? String(message.assignmentId) : message.assignmentId;
298239
+ else
298240
+ object.assignmentId = options.longs === String ? $util.Long.prototype.toString.call(message.assignmentId) : options.longs === Number ? new $util.LongBits(message.assignmentId.low >>> 0, message.assignmentId.high >>> 0).toNumber() : message.assignmentId;
298241
+ if (options.oneofs)
298242
+ object._assignmentId = "assignmentId";
298243
+ }
298244
+ if (message.ebbConversationId != null && message.hasOwnProperty("ebbConversationId")) {
298245
+ object.ebbConversationId = message.ebbConversationId;
298246
+ if (options.oneofs)
298247
+ object._ebbConversationId = "ebbConversationId";
298248
+ }
298249
+ if (message.ebbMessageId != null && message.hasOwnProperty("ebbMessageId")) {
298250
+ object.ebbMessageId = message.ebbMessageId;
298251
+ if (options.oneofs)
298252
+ object._ebbMessageId = "ebbMessageId";
298253
+ }
298254
+ if (message.phqQ9Endorsed != null && message.hasOwnProperty("phqQ9Endorsed")) {
298255
+ object.phqQ9Endorsed = message.phqQ9Endorsed;
298256
+ if (options.oneofs)
298257
+ object._phqQ9Endorsed = "phqQ9Endorsed";
298258
+ }
298259
+ if (message.phqQ10Endorsed != null && message.hasOwnProperty("phqQ10Endorsed")) {
298260
+ object.phqQ10Endorsed = message.phqQ10Endorsed;
298261
+ if (options.oneofs)
298262
+ object._phqQ10Endorsed = "phqQ10Endorsed";
298263
+ }
298264
+ return object;
298265
+ };
298266
+
298267
+ /**
298268
+ * Converts this SafetyRiskFlagged to JSON.
298269
+ * @function toJSON
298270
+ * @memberof SafetyRiskFlagged
298271
+ * @instance
298272
+ * @returns {Object.<string,*>} JSON object
298273
+ */
298274
+ SafetyRiskFlagged.prototype.toJSON = function toJSON() {
298275
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
298276
+ };
298277
+
298278
+ /**
298279
+ * Gets the type url for SafetyRiskFlagged
298280
+ * @function getTypeUrl
298281
+ * @memberof SafetyRiskFlagged
298282
+ * @static
298283
+ * @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
298284
+ * @returns {string} The type url
298285
+ */
298286
+ SafetyRiskFlagged.getTypeUrl = function getTypeUrl(prefix) {
298287
+ if (prefix === undefined)
298288
+ prefix = "type.googleapis.com";
298289
+ return prefix + "/SafetyRiskFlagged";
298290
+ };
298291
+
298292
+ return SafetyRiskFlagged;
298293
+ })();
298294
+
297486
298295
  $root.SikaMemberLmnRejected = (function() {
297487
298296
 
297488
298297
  /**
package/package.json CHANGED
@@ -16,5 +16,5 @@
16
16
  "main": "lib/index.js",
17
17
  "name": "@headspace/protos-events",
18
18
  "typings": "lib/index.d.ts",
19
- "version": "1.843.0"
19
+ "version": "1.844.0"
20
20
  }