@headspace/protos-events 1.668.0 → 1.669.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
@@ -59018,6 +59018,114 @@ export class GoogleSubscriptionExpired implements IGoogleSubscriptionExpired {
59018
59018
  public toJSON(): { [k: string]: any };
59019
59019
  }
59020
59020
 
59021
+ /** NoteType enum. */
59022
+ export enum NoteType {
59023
+ NOTE_TYPE_UNKNOWN = 0,
59024
+ NOTE_TYPE_THERAPY_INTAKE = 1
59025
+ }
59026
+
59027
+ /** Properties of a HealthRecordAiNoteAccepted. */
59028
+ export interface IHealthRecordAiNoteAccepted {
59029
+
59030
+ /** HealthRecordAiNoteAccepted appointmentId */
59031
+ appointmentId?: (number|null);
59032
+
59033
+ /** HealthRecordAiNoteAccepted noteType */
59034
+ noteType?: (NoteType|null);
59035
+
59036
+ /** HealthRecordAiNoteAccepted timestamp */
59037
+ timestamp?: (number|Long|null);
59038
+ }
59039
+
59040
+ /** Represents a HealthRecordAiNoteAccepted. */
59041
+ export class HealthRecordAiNoteAccepted implements IHealthRecordAiNoteAccepted {
59042
+
59043
+ /**
59044
+ * Constructs a new HealthRecordAiNoteAccepted.
59045
+ * @param [properties] Properties to set
59046
+ */
59047
+ constructor(properties?: IHealthRecordAiNoteAccepted);
59048
+
59049
+ /** HealthRecordAiNoteAccepted appointmentId. */
59050
+ public appointmentId: number;
59051
+
59052
+ /** HealthRecordAiNoteAccepted noteType. */
59053
+ public noteType: NoteType;
59054
+
59055
+ /** HealthRecordAiNoteAccepted timestamp. */
59056
+ public timestamp: (number|Long);
59057
+
59058
+ /**
59059
+ * Creates a new HealthRecordAiNoteAccepted instance using the specified properties.
59060
+ * @param [properties] Properties to set
59061
+ * @returns HealthRecordAiNoteAccepted instance
59062
+ */
59063
+ public static create(properties?: IHealthRecordAiNoteAccepted): HealthRecordAiNoteAccepted;
59064
+
59065
+ /**
59066
+ * Encodes the specified HealthRecordAiNoteAccepted message. Does not implicitly {@link HealthRecordAiNoteAccepted.verify|verify} messages.
59067
+ * @param message HealthRecordAiNoteAccepted message or plain object to encode
59068
+ * @param [writer] Writer to encode to
59069
+ * @returns Writer
59070
+ */
59071
+ public static encode(message: IHealthRecordAiNoteAccepted, writer?: $protobuf.Writer): $protobuf.Writer;
59072
+
59073
+ /**
59074
+ * Encodes the specified HealthRecordAiNoteAccepted message, length delimited. Does not implicitly {@link HealthRecordAiNoteAccepted.verify|verify} messages.
59075
+ * @param message HealthRecordAiNoteAccepted message or plain object to encode
59076
+ * @param [writer] Writer to encode to
59077
+ * @returns Writer
59078
+ */
59079
+ public static encodeDelimited(message: IHealthRecordAiNoteAccepted, writer?: $protobuf.Writer): $protobuf.Writer;
59080
+
59081
+ /**
59082
+ * Decodes a HealthRecordAiNoteAccepted message from the specified reader or buffer.
59083
+ * @param reader Reader or buffer to decode from
59084
+ * @param [length] Message length if known beforehand
59085
+ * @returns HealthRecordAiNoteAccepted
59086
+ * @throws {Error} If the payload is not a reader or valid buffer
59087
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
59088
+ */
59089
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): HealthRecordAiNoteAccepted;
59090
+
59091
+ /**
59092
+ * Decodes a HealthRecordAiNoteAccepted message from the specified reader or buffer, length delimited.
59093
+ * @param reader Reader or buffer to decode from
59094
+ * @returns HealthRecordAiNoteAccepted
59095
+ * @throws {Error} If the payload is not a reader or valid buffer
59096
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
59097
+ */
59098
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): HealthRecordAiNoteAccepted;
59099
+
59100
+ /**
59101
+ * Verifies a HealthRecordAiNoteAccepted message.
59102
+ * @param message Plain object to verify
59103
+ * @returns `null` if valid, otherwise the reason why it is not
59104
+ */
59105
+ public static verify(message: { [k: string]: any }): (string|null);
59106
+
59107
+ /**
59108
+ * Creates a HealthRecordAiNoteAccepted message from a plain object. Also converts values to their respective internal types.
59109
+ * @param object Plain object
59110
+ * @returns HealthRecordAiNoteAccepted
59111
+ */
59112
+ public static fromObject(object: { [k: string]: any }): HealthRecordAiNoteAccepted;
59113
+
59114
+ /**
59115
+ * Creates a plain object from a HealthRecordAiNoteAccepted message. Also converts values to other types if specified.
59116
+ * @param message HealthRecordAiNoteAccepted
59117
+ * @param [options] Conversion options
59118
+ * @returns Plain object
59119
+ */
59120
+ public static toObject(message: HealthRecordAiNoteAccepted, options?: $protobuf.IConversionOptions): { [k: string]: any };
59121
+
59122
+ /**
59123
+ * Converts this HealthRecordAiNoteAccepted to JSON.
59124
+ * @returns JSON object
59125
+ */
59126
+ public toJSON(): { [k: string]: any };
59127
+ }
59128
+
59021
59129
  /** Properties of an InteractiveJournalingParticipant. */
59022
59130
  export interface IInteractiveJournalingParticipant {
59023
59131
 
package/lib/index.js CHANGED
@@ -165665,6 +165665,279 @@ $root.GoogleSubscriptionExpired = (function() {
165665
165665
  return GoogleSubscriptionExpired;
165666
165666
  })();
165667
165667
 
165668
+ /**
165669
+ * NoteType enum.
165670
+ * @name NoteType
165671
+ * @enum {string}
165672
+ * @property {number} NOTE_TYPE_UNKNOWN=0 NOTE_TYPE_UNKNOWN value
165673
+ * @property {number} NOTE_TYPE_THERAPY_INTAKE=1 NOTE_TYPE_THERAPY_INTAKE value
165674
+ */
165675
+ $root.NoteType = (function() {
165676
+ var valuesById = {}, values = Object.create(valuesById);
165677
+ values[valuesById[0] = "NOTE_TYPE_UNKNOWN"] = 0;
165678
+ values[valuesById[1] = "NOTE_TYPE_THERAPY_INTAKE"] = 1;
165679
+ return values;
165680
+ })();
165681
+
165682
+ $root.HealthRecordAiNoteAccepted = (function() {
165683
+
165684
+ /**
165685
+ * Properties of a HealthRecordAiNoteAccepted.
165686
+ * @name IHealthRecordAiNoteAccepted
165687
+ * @interface IHealthRecordAiNoteAccepted
165688
+ * @property {number|null} [appointmentId] HealthRecordAiNoteAccepted appointmentId
165689
+ * @property {NoteType|null} [noteType] HealthRecordAiNoteAccepted noteType
165690
+ * @property {number|Long|null} [timestamp] HealthRecordAiNoteAccepted timestamp
165691
+ */
165692
+
165693
+ /**
165694
+ * Constructs a new HealthRecordAiNoteAccepted.
165695
+ * @name HealthRecordAiNoteAccepted
165696
+ * @classdesc Represents a HealthRecordAiNoteAccepted.
165697
+ * @implements IHealthRecordAiNoteAccepted
165698
+ * @constructor
165699
+ * @param {IHealthRecordAiNoteAccepted=} [properties] Properties to set
165700
+ */
165701
+ function HealthRecordAiNoteAccepted(properties) {
165702
+ if (properties)
165703
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
165704
+ if (properties[keys[i]] != null)
165705
+ this[keys[i]] = properties[keys[i]];
165706
+ }
165707
+
165708
+ /**
165709
+ * HealthRecordAiNoteAccepted appointmentId.
165710
+ * @member {number} appointmentId
165711
+ * @memberof HealthRecordAiNoteAccepted
165712
+ * @instance
165713
+ */
165714
+ HealthRecordAiNoteAccepted.prototype.appointmentId = 0;
165715
+
165716
+ /**
165717
+ * HealthRecordAiNoteAccepted noteType.
165718
+ * @member {NoteType} noteType
165719
+ * @memberof HealthRecordAiNoteAccepted
165720
+ * @instance
165721
+ */
165722
+ HealthRecordAiNoteAccepted.prototype.noteType = 0;
165723
+
165724
+ /**
165725
+ * HealthRecordAiNoteAccepted timestamp.
165726
+ * @member {number|Long} timestamp
165727
+ * @memberof HealthRecordAiNoteAccepted
165728
+ * @instance
165729
+ */
165730
+ HealthRecordAiNoteAccepted.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
165731
+
165732
+ /**
165733
+ * Creates a new HealthRecordAiNoteAccepted instance using the specified properties.
165734
+ * @function create
165735
+ * @memberof HealthRecordAiNoteAccepted
165736
+ * @static
165737
+ * @param {IHealthRecordAiNoteAccepted=} [properties] Properties to set
165738
+ * @returns {HealthRecordAiNoteAccepted} HealthRecordAiNoteAccepted instance
165739
+ */
165740
+ HealthRecordAiNoteAccepted.create = function create(properties) {
165741
+ return new HealthRecordAiNoteAccepted(properties);
165742
+ };
165743
+
165744
+ /**
165745
+ * Encodes the specified HealthRecordAiNoteAccepted message. Does not implicitly {@link HealthRecordAiNoteAccepted.verify|verify} messages.
165746
+ * @function encode
165747
+ * @memberof HealthRecordAiNoteAccepted
165748
+ * @static
165749
+ * @param {IHealthRecordAiNoteAccepted} message HealthRecordAiNoteAccepted message or plain object to encode
165750
+ * @param {$protobuf.Writer} [writer] Writer to encode to
165751
+ * @returns {$protobuf.Writer} Writer
165752
+ */
165753
+ HealthRecordAiNoteAccepted.encode = function encode(message, writer) {
165754
+ if (!writer)
165755
+ writer = $Writer.create();
165756
+ if (message.appointmentId != null && message.hasOwnProperty("appointmentId"))
165757
+ writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.appointmentId);
165758
+ if (message.noteType != null && message.hasOwnProperty("noteType"))
165759
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.noteType);
165760
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
165761
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp);
165762
+ return writer;
165763
+ };
165764
+
165765
+ /**
165766
+ * Encodes the specified HealthRecordAiNoteAccepted message, length delimited. Does not implicitly {@link HealthRecordAiNoteAccepted.verify|verify} messages.
165767
+ * @function encodeDelimited
165768
+ * @memberof HealthRecordAiNoteAccepted
165769
+ * @static
165770
+ * @param {IHealthRecordAiNoteAccepted} message HealthRecordAiNoteAccepted message or plain object to encode
165771
+ * @param {$protobuf.Writer} [writer] Writer to encode to
165772
+ * @returns {$protobuf.Writer} Writer
165773
+ */
165774
+ HealthRecordAiNoteAccepted.encodeDelimited = function encodeDelimited(message, writer) {
165775
+ return this.encode(message, writer).ldelim();
165776
+ };
165777
+
165778
+ /**
165779
+ * Decodes a HealthRecordAiNoteAccepted message from the specified reader or buffer.
165780
+ * @function decode
165781
+ * @memberof HealthRecordAiNoteAccepted
165782
+ * @static
165783
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
165784
+ * @param {number} [length] Message length if known beforehand
165785
+ * @returns {HealthRecordAiNoteAccepted} HealthRecordAiNoteAccepted
165786
+ * @throws {Error} If the payload is not a reader or valid buffer
165787
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
165788
+ */
165789
+ HealthRecordAiNoteAccepted.decode = function decode(reader, length) {
165790
+ if (!(reader instanceof $Reader))
165791
+ reader = $Reader.create(reader);
165792
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.HealthRecordAiNoteAccepted();
165793
+ while (reader.pos < end) {
165794
+ var tag = reader.uint32();
165795
+ switch (tag >>> 3) {
165796
+ case 1:
165797
+ message.appointmentId = reader.uint32();
165798
+ break;
165799
+ case 2:
165800
+ message.noteType = reader.int32();
165801
+ break;
165802
+ case 3:
165803
+ message.timestamp = reader.uint64();
165804
+ break;
165805
+ default:
165806
+ reader.skipType(tag & 7);
165807
+ break;
165808
+ }
165809
+ }
165810
+ return message;
165811
+ };
165812
+
165813
+ /**
165814
+ * Decodes a HealthRecordAiNoteAccepted message from the specified reader or buffer, length delimited.
165815
+ * @function decodeDelimited
165816
+ * @memberof HealthRecordAiNoteAccepted
165817
+ * @static
165818
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
165819
+ * @returns {HealthRecordAiNoteAccepted} HealthRecordAiNoteAccepted
165820
+ * @throws {Error} If the payload is not a reader or valid buffer
165821
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
165822
+ */
165823
+ HealthRecordAiNoteAccepted.decodeDelimited = function decodeDelimited(reader) {
165824
+ if (!(reader instanceof $Reader))
165825
+ reader = new $Reader(reader);
165826
+ return this.decode(reader, reader.uint32());
165827
+ };
165828
+
165829
+ /**
165830
+ * Verifies a HealthRecordAiNoteAccepted message.
165831
+ * @function verify
165832
+ * @memberof HealthRecordAiNoteAccepted
165833
+ * @static
165834
+ * @param {Object.<string,*>} message Plain object to verify
165835
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
165836
+ */
165837
+ HealthRecordAiNoteAccepted.verify = function verify(message) {
165838
+ if (typeof message !== "object" || message === null)
165839
+ return "object expected";
165840
+ if (message.appointmentId != null && message.hasOwnProperty("appointmentId"))
165841
+ if (!$util.isInteger(message.appointmentId))
165842
+ return "appointmentId: integer expected";
165843
+ if (message.noteType != null && message.hasOwnProperty("noteType"))
165844
+ switch (message.noteType) {
165845
+ default:
165846
+ return "noteType: enum value expected";
165847
+ case 0:
165848
+ case 1:
165849
+ break;
165850
+ }
165851
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
165852
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
165853
+ return "timestamp: integer|Long expected";
165854
+ return null;
165855
+ };
165856
+
165857
+ /**
165858
+ * Creates a HealthRecordAiNoteAccepted message from a plain object. Also converts values to their respective internal types.
165859
+ * @function fromObject
165860
+ * @memberof HealthRecordAiNoteAccepted
165861
+ * @static
165862
+ * @param {Object.<string,*>} object Plain object
165863
+ * @returns {HealthRecordAiNoteAccepted} HealthRecordAiNoteAccepted
165864
+ */
165865
+ HealthRecordAiNoteAccepted.fromObject = function fromObject(object) {
165866
+ if (object instanceof $root.HealthRecordAiNoteAccepted)
165867
+ return object;
165868
+ var message = new $root.HealthRecordAiNoteAccepted();
165869
+ if (object.appointmentId != null)
165870
+ message.appointmentId = object.appointmentId >>> 0;
165871
+ switch (object.noteType) {
165872
+ case "NOTE_TYPE_UNKNOWN":
165873
+ case 0:
165874
+ message.noteType = 0;
165875
+ break;
165876
+ case "NOTE_TYPE_THERAPY_INTAKE":
165877
+ case 1:
165878
+ message.noteType = 1;
165879
+ break;
165880
+ }
165881
+ if (object.timestamp != null)
165882
+ if ($util.Long)
165883
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
165884
+ else if (typeof object.timestamp === "string")
165885
+ message.timestamp = parseInt(object.timestamp, 10);
165886
+ else if (typeof object.timestamp === "number")
165887
+ message.timestamp = object.timestamp;
165888
+ else if (typeof object.timestamp === "object")
165889
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
165890
+ return message;
165891
+ };
165892
+
165893
+ /**
165894
+ * Creates a plain object from a HealthRecordAiNoteAccepted message. Also converts values to other types if specified.
165895
+ * @function toObject
165896
+ * @memberof HealthRecordAiNoteAccepted
165897
+ * @static
165898
+ * @param {HealthRecordAiNoteAccepted} message HealthRecordAiNoteAccepted
165899
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
165900
+ * @returns {Object.<string,*>} Plain object
165901
+ */
165902
+ HealthRecordAiNoteAccepted.toObject = function toObject(message, options) {
165903
+ if (!options)
165904
+ options = {};
165905
+ var object = {};
165906
+ if (options.defaults) {
165907
+ object.appointmentId = 0;
165908
+ object.noteType = options.enums === String ? "NOTE_TYPE_UNKNOWN" : 0;
165909
+ if ($util.Long) {
165910
+ var long = new $util.Long(0, 0, true);
165911
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
165912
+ } else
165913
+ object.timestamp = options.longs === String ? "0" : 0;
165914
+ }
165915
+ if (message.appointmentId != null && message.hasOwnProperty("appointmentId"))
165916
+ object.appointmentId = message.appointmentId;
165917
+ if (message.noteType != null && message.hasOwnProperty("noteType"))
165918
+ object.noteType = options.enums === String ? $root.NoteType[message.noteType] : message.noteType;
165919
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
165920
+ if (typeof message.timestamp === "number")
165921
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
165922
+ else
165923
+ 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;
165924
+ return object;
165925
+ };
165926
+
165927
+ /**
165928
+ * Converts this HealthRecordAiNoteAccepted to JSON.
165929
+ * @function toJSON
165930
+ * @memberof HealthRecordAiNoteAccepted
165931
+ * @instance
165932
+ * @returns {Object.<string,*>} JSON object
165933
+ */
165934
+ HealthRecordAiNoteAccepted.prototype.toJSON = function toJSON() {
165935
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
165936
+ };
165937
+
165938
+ return HealthRecordAiNoteAccepted;
165939
+ })();
165940
+
165668
165941
  $root.InteractiveJournalingParticipant = (function() {
165669
165942
 
165670
165943
  /**
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.668.0"
19
+ "version": "1.669.0"
20
20
  }