@headspace/protos-events 1.664.0 → 1.665.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
@@ -33563,6 +33563,102 @@ export class ClinicalAppointmentCreated implements IClinicalAppointmentCreated {
33563
33563
  public toJSON(): { [k: string]: any };
33564
33564
  }
33565
33565
 
33566
+ /** Properties of a ClinicalAppointmentScheduled. */
33567
+ export interface IClinicalAppointmentScheduled {
33568
+
33569
+ /** ClinicalAppointmentScheduled timestamp */
33570
+ timestamp?: (number|Long|null);
33571
+
33572
+ /** ClinicalAppointmentScheduled clinicalAppointment */
33573
+ clinicalAppointment?: (IClinicalAppointment|null);
33574
+ }
33575
+
33576
+ /** Represents a ClinicalAppointmentScheduled. */
33577
+ export class ClinicalAppointmentScheduled implements IClinicalAppointmentScheduled {
33578
+
33579
+ /**
33580
+ * Constructs a new ClinicalAppointmentScheduled.
33581
+ * @param [properties] Properties to set
33582
+ */
33583
+ constructor(properties?: IClinicalAppointmentScheduled);
33584
+
33585
+ /** ClinicalAppointmentScheduled timestamp. */
33586
+ public timestamp: (number|Long);
33587
+
33588
+ /** ClinicalAppointmentScheduled clinicalAppointment. */
33589
+ public clinicalAppointment?: (IClinicalAppointment|null);
33590
+
33591
+ /**
33592
+ * Creates a new ClinicalAppointmentScheduled instance using the specified properties.
33593
+ * @param [properties] Properties to set
33594
+ * @returns ClinicalAppointmentScheduled instance
33595
+ */
33596
+ public static create(properties?: IClinicalAppointmentScheduled): ClinicalAppointmentScheduled;
33597
+
33598
+ /**
33599
+ * Encodes the specified ClinicalAppointmentScheduled message. Does not implicitly {@link ClinicalAppointmentScheduled.verify|verify} messages.
33600
+ * @param message ClinicalAppointmentScheduled message or plain object to encode
33601
+ * @param [writer] Writer to encode to
33602
+ * @returns Writer
33603
+ */
33604
+ public static encode(message: IClinicalAppointmentScheduled, writer?: $protobuf.Writer): $protobuf.Writer;
33605
+
33606
+ /**
33607
+ * Encodes the specified ClinicalAppointmentScheduled message, length delimited. Does not implicitly {@link ClinicalAppointmentScheduled.verify|verify} messages.
33608
+ * @param message ClinicalAppointmentScheduled message or plain object to encode
33609
+ * @param [writer] Writer to encode to
33610
+ * @returns Writer
33611
+ */
33612
+ public static encodeDelimited(message: IClinicalAppointmentScheduled, writer?: $protobuf.Writer): $protobuf.Writer;
33613
+
33614
+ /**
33615
+ * Decodes a ClinicalAppointmentScheduled message from the specified reader or buffer.
33616
+ * @param reader Reader or buffer to decode from
33617
+ * @param [length] Message length if known beforehand
33618
+ * @returns ClinicalAppointmentScheduled
33619
+ * @throws {Error} If the payload is not a reader or valid buffer
33620
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
33621
+ */
33622
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ClinicalAppointmentScheduled;
33623
+
33624
+ /**
33625
+ * Decodes a ClinicalAppointmentScheduled message from the specified reader or buffer, length delimited.
33626
+ * @param reader Reader or buffer to decode from
33627
+ * @returns ClinicalAppointmentScheduled
33628
+ * @throws {Error} If the payload is not a reader or valid buffer
33629
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
33630
+ */
33631
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ClinicalAppointmentScheduled;
33632
+
33633
+ /**
33634
+ * Verifies a ClinicalAppointmentScheduled message.
33635
+ * @param message Plain object to verify
33636
+ * @returns `null` if valid, otherwise the reason why it is not
33637
+ */
33638
+ public static verify(message: { [k: string]: any }): (string|null);
33639
+
33640
+ /**
33641
+ * Creates a ClinicalAppointmentScheduled message from a plain object. Also converts values to their respective internal types.
33642
+ * @param object Plain object
33643
+ * @returns ClinicalAppointmentScheduled
33644
+ */
33645
+ public static fromObject(object: { [k: string]: any }): ClinicalAppointmentScheduled;
33646
+
33647
+ /**
33648
+ * Creates a plain object from a ClinicalAppointmentScheduled message. Also converts values to other types if specified.
33649
+ * @param message ClinicalAppointmentScheduled
33650
+ * @param [options] Conversion options
33651
+ * @returns Plain object
33652
+ */
33653
+ public static toObject(message: ClinicalAppointmentScheduled, options?: $protobuf.IConversionOptions): { [k: string]: any };
33654
+
33655
+ /**
33656
+ * Converts this ClinicalAppointmentScheduled to JSON.
33657
+ * @returns JSON object
33658
+ */
33659
+ public toJSON(): { [k: string]: any };
33660
+ }
33661
+
33566
33662
  /** Properties of a ClinicalAppointmentUpdated. */
33567
33663
  export interface IClinicalAppointmentUpdated {
33568
33664
 
package/lib/index.js CHANGED
@@ -96166,6 +96166,235 @@ $root.ClinicalAppointmentCreated = (function() {
96166
96166
  return ClinicalAppointmentCreated;
96167
96167
  })();
96168
96168
 
96169
+ $root.ClinicalAppointmentScheduled = (function() {
96170
+
96171
+ /**
96172
+ * Properties of a ClinicalAppointmentScheduled.
96173
+ * @name IClinicalAppointmentScheduled
96174
+ * @interface IClinicalAppointmentScheduled
96175
+ * @property {number|Long|null} [timestamp] ClinicalAppointmentScheduled timestamp
96176
+ * @property {IClinicalAppointment|null} [clinicalAppointment] ClinicalAppointmentScheduled clinicalAppointment
96177
+ */
96178
+
96179
+ /**
96180
+ * Constructs a new ClinicalAppointmentScheduled.
96181
+ * @name ClinicalAppointmentScheduled
96182
+ * @classdesc Represents a ClinicalAppointmentScheduled.
96183
+ * @implements IClinicalAppointmentScheduled
96184
+ * @constructor
96185
+ * @param {IClinicalAppointmentScheduled=} [properties] Properties to set
96186
+ */
96187
+ function ClinicalAppointmentScheduled(properties) {
96188
+ if (properties)
96189
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
96190
+ if (properties[keys[i]] != null)
96191
+ this[keys[i]] = properties[keys[i]];
96192
+ }
96193
+
96194
+ /**
96195
+ * ClinicalAppointmentScheduled timestamp.
96196
+ * @member {number|Long} timestamp
96197
+ * @memberof ClinicalAppointmentScheduled
96198
+ * @instance
96199
+ */
96200
+ ClinicalAppointmentScheduled.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
96201
+
96202
+ /**
96203
+ * ClinicalAppointmentScheduled clinicalAppointment.
96204
+ * @member {IClinicalAppointment|null|undefined} clinicalAppointment
96205
+ * @memberof ClinicalAppointmentScheduled
96206
+ * @instance
96207
+ */
96208
+ ClinicalAppointmentScheduled.prototype.clinicalAppointment = null;
96209
+
96210
+ /**
96211
+ * Creates a new ClinicalAppointmentScheduled instance using the specified properties.
96212
+ * @function create
96213
+ * @memberof ClinicalAppointmentScheduled
96214
+ * @static
96215
+ * @param {IClinicalAppointmentScheduled=} [properties] Properties to set
96216
+ * @returns {ClinicalAppointmentScheduled} ClinicalAppointmentScheduled instance
96217
+ */
96218
+ ClinicalAppointmentScheduled.create = function create(properties) {
96219
+ return new ClinicalAppointmentScheduled(properties);
96220
+ };
96221
+
96222
+ /**
96223
+ * Encodes the specified ClinicalAppointmentScheduled message. Does not implicitly {@link ClinicalAppointmentScheduled.verify|verify} messages.
96224
+ * @function encode
96225
+ * @memberof ClinicalAppointmentScheduled
96226
+ * @static
96227
+ * @param {IClinicalAppointmentScheduled} message ClinicalAppointmentScheduled message or plain object to encode
96228
+ * @param {$protobuf.Writer} [writer] Writer to encode to
96229
+ * @returns {$protobuf.Writer} Writer
96230
+ */
96231
+ ClinicalAppointmentScheduled.encode = function encode(message, writer) {
96232
+ if (!writer)
96233
+ writer = $Writer.create();
96234
+ if (message.clinicalAppointment != null && message.hasOwnProperty("clinicalAppointment"))
96235
+ $root.ClinicalAppointment.encode(message.clinicalAppointment, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
96236
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
96237
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp);
96238
+ return writer;
96239
+ };
96240
+
96241
+ /**
96242
+ * Encodes the specified ClinicalAppointmentScheduled message, length delimited. Does not implicitly {@link ClinicalAppointmentScheduled.verify|verify} messages.
96243
+ * @function encodeDelimited
96244
+ * @memberof ClinicalAppointmentScheduled
96245
+ * @static
96246
+ * @param {IClinicalAppointmentScheduled} message ClinicalAppointmentScheduled message or plain object to encode
96247
+ * @param {$protobuf.Writer} [writer] Writer to encode to
96248
+ * @returns {$protobuf.Writer} Writer
96249
+ */
96250
+ ClinicalAppointmentScheduled.encodeDelimited = function encodeDelimited(message, writer) {
96251
+ return this.encode(message, writer).ldelim();
96252
+ };
96253
+
96254
+ /**
96255
+ * Decodes a ClinicalAppointmentScheduled message from the specified reader or buffer.
96256
+ * @function decode
96257
+ * @memberof ClinicalAppointmentScheduled
96258
+ * @static
96259
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
96260
+ * @param {number} [length] Message length if known beforehand
96261
+ * @returns {ClinicalAppointmentScheduled} ClinicalAppointmentScheduled
96262
+ * @throws {Error} If the payload is not a reader or valid buffer
96263
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
96264
+ */
96265
+ ClinicalAppointmentScheduled.decode = function decode(reader, length) {
96266
+ if (!(reader instanceof $Reader))
96267
+ reader = $Reader.create(reader);
96268
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ClinicalAppointmentScheduled();
96269
+ while (reader.pos < end) {
96270
+ var tag = reader.uint32();
96271
+ switch (tag >>> 3) {
96272
+ case 2:
96273
+ message.timestamp = reader.uint64();
96274
+ break;
96275
+ case 1:
96276
+ message.clinicalAppointment = $root.ClinicalAppointment.decode(reader, reader.uint32());
96277
+ break;
96278
+ default:
96279
+ reader.skipType(tag & 7);
96280
+ break;
96281
+ }
96282
+ }
96283
+ return message;
96284
+ };
96285
+
96286
+ /**
96287
+ * Decodes a ClinicalAppointmentScheduled message from the specified reader or buffer, length delimited.
96288
+ * @function decodeDelimited
96289
+ * @memberof ClinicalAppointmentScheduled
96290
+ * @static
96291
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
96292
+ * @returns {ClinicalAppointmentScheduled} ClinicalAppointmentScheduled
96293
+ * @throws {Error} If the payload is not a reader or valid buffer
96294
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
96295
+ */
96296
+ ClinicalAppointmentScheduled.decodeDelimited = function decodeDelimited(reader) {
96297
+ if (!(reader instanceof $Reader))
96298
+ reader = new $Reader(reader);
96299
+ return this.decode(reader, reader.uint32());
96300
+ };
96301
+
96302
+ /**
96303
+ * Verifies a ClinicalAppointmentScheduled message.
96304
+ * @function verify
96305
+ * @memberof ClinicalAppointmentScheduled
96306
+ * @static
96307
+ * @param {Object.<string,*>} message Plain object to verify
96308
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
96309
+ */
96310
+ ClinicalAppointmentScheduled.verify = function verify(message) {
96311
+ if (typeof message !== "object" || message === null)
96312
+ return "object expected";
96313
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
96314
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
96315
+ return "timestamp: integer|Long expected";
96316
+ if (message.clinicalAppointment != null && message.hasOwnProperty("clinicalAppointment")) {
96317
+ var error = $root.ClinicalAppointment.verify(message.clinicalAppointment);
96318
+ if (error)
96319
+ return "clinicalAppointment." + error;
96320
+ }
96321
+ return null;
96322
+ };
96323
+
96324
+ /**
96325
+ * Creates a ClinicalAppointmentScheduled message from a plain object. Also converts values to their respective internal types.
96326
+ * @function fromObject
96327
+ * @memberof ClinicalAppointmentScheduled
96328
+ * @static
96329
+ * @param {Object.<string,*>} object Plain object
96330
+ * @returns {ClinicalAppointmentScheduled} ClinicalAppointmentScheduled
96331
+ */
96332
+ ClinicalAppointmentScheduled.fromObject = function fromObject(object) {
96333
+ if (object instanceof $root.ClinicalAppointmentScheduled)
96334
+ return object;
96335
+ var message = new $root.ClinicalAppointmentScheduled();
96336
+ if (object.timestamp != null)
96337
+ if ($util.Long)
96338
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
96339
+ else if (typeof object.timestamp === "string")
96340
+ message.timestamp = parseInt(object.timestamp, 10);
96341
+ else if (typeof object.timestamp === "number")
96342
+ message.timestamp = object.timestamp;
96343
+ else if (typeof object.timestamp === "object")
96344
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
96345
+ if (object.clinicalAppointment != null) {
96346
+ if (typeof object.clinicalAppointment !== "object")
96347
+ throw TypeError(".ClinicalAppointmentScheduled.clinicalAppointment: object expected");
96348
+ message.clinicalAppointment = $root.ClinicalAppointment.fromObject(object.clinicalAppointment);
96349
+ }
96350
+ return message;
96351
+ };
96352
+
96353
+ /**
96354
+ * Creates a plain object from a ClinicalAppointmentScheduled message. Also converts values to other types if specified.
96355
+ * @function toObject
96356
+ * @memberof ClinicalAppointmentScheduled
96357
+ * @static
96358
+ * @param {ClinicalAppointmentScheduled} message ClinicalAppointmentScheduled
96359
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
96360
+ * @returns {Object.<string,*>} Plain object
96361
+ */
96362
+ ClinicalAppointmentScheduled.toObject = function toObject(message, options) {
96363
+ if (!options)
96364
+ options = {};
96365
+ var object = {};
96366
+ if (options.defaults) {
96367
+ object.clinicalAppointment = null;
96368
+ if ($util.Long) {
96369
+ var long = new $util.Long(0, 0, true);
96370
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
96371
+ } else
96372
+ object.timestamp = options.longs === String ? "0" : 0;
96373
+ }
96374
+ if (message.clinicalAppointment != null && message.hasOwnProperty("clinicalAppointment"))
96375
+ object.clinicalAppointment = $root.ClinicalAppointment.toObject(message.clinicalAppointment, options);
96376
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
96377
+ if (typeof message.timestamp === "number")
96378
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
96379
+ else
96380
+ 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;
96381
+ return object;
96382
+ };
96383
+
96384
+ /**
96385
+ * Converts this ClinicalAppointmentScheduled to JSON.
96386
+ * @function toJSON
96387
+ * @memberof ClinicalAppointmentScheduled
96388
+ * @instance
96389
+ * @returns {Object.<string,*>} JSON object
96390
+ */
96391
+ ClinicalAppointmentScheduled.prototype.toJSON = function toJSON() {
96392
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
96393
+ };
96394
+
96395
+ return ClinicalAppointmentScheduled;
96396
+ })();
96397
+
96169
96398
  $root.ClinicalAppointmentUpdated = (function() {
96170
96399
 
96171
96400
  /**
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.664.0"
19
+ "version": "1.665.0"
20
20
  }