@headspace/protos-events 1.781.0 → 1.783.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
@@ -42078,6 +42078,108 @@ export class TaggedCustomField implements ITaggedCustomField {
42078
42078
  public toJSON(): { [k: string]: any };
42079
42079
  }
42080
42080
 
42081
+ /** Properties of an UtmParams. */
42082
+ export interface IUtmParams {
42083
+
42084
+ /** UtmParams source */
42085
+ source?: (string|null);
42086
+
42087
+ /** UtmParams medium */
42088
+ medium?: (string|null);
42089
+
42090
+ /** UtmParams campaign */
42091
+ campaign?: (string|null);
42092
+ }
42093
+
42094
+ /** Represents an UtmParams. */
42095
+ export class UtmParams implements IUtmParams {
42096
+
42097
+ /**
42098
+ * Constructs a new UtmParams.
42099
+ * @param [properties] Properties to set
42100
+ */
42101
+ constructor(properties?: IUtmParams);
42102
+
42103
+ /** UtmParams source. */
42104
+ public source: string;
42105
+
42106
+ /** UtmParams medium. */
42107
+ public medium: string;
42108
+
42109
+ /** UtmParams campaign. */
42110
+ public campaign: string;
42111
+
42112
+ /**
42113
+ * Creates a new UtmParams instance using the specified properties.
42114
+ * @param [properties] Properties to set
42115
+ * @returns UtmParams instance
42116
+ */
42117
+ public static create(properties?: IUtmParams): UtmParams;
42118
+
42119
+ /**
42120
+ * Encodes the specified UtmParams message. Does not implicitly {@link UtmParams.verify|verify} messages.
42121
+ * @param message UtmParams message or plain object to encode
42122
+ * @param [writer] Writer to encode to
42123
+ * @returns Writer
42124
+ */
42125
+ public static encode(message: IUtmParams, writer?: $protobuf.Writer): $protobuf.Writer;
42126
+
42127
+ /**
42128
+ * Encodes the specified UtmParams message, length delimited. Does not implicitly {@link UtmParams.verify|verify} messages.
42129
+ * @param message UtmParams message or plain object to encode
42130
+ * @param [writer] Writer to encode to
42131
+ * @returns Writer
42132
+ */
42133
+ public static encodeDelimited(message: IUtmParams, writer?: $protobuf.Writer): $protobuf.Writer;
42134
+
42135
+ /**
42136
+ * Decodes an UtmParams message from the specified reader or buffer.
42137
+ * @param reader Reader or buffer to decode from
42138
+ * @param [length] Message length if known beforehand
42139
+ * @returns UtmParams
42140
+ * @throws {Error} If the payload is not a reader or valid buffer
42141
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
42142
+ */
42143
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UtmParams;
42144
+
42145
+ /**
42146
+ * Decodes an UtmParams message from the specified reader or buffer, length delimited.
42147
+ * @param reader Reader or buffer to decode from
42148
+ * @returns UtmParams
42149
+ * @throws {Error} If the payload is not a reader or valid buffer
42150
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
42151
+ */
42152
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UtmParams;
42153
+
42154
+ /**
42155
+ * Verifies an UtmParams message.
42156
+ * @param message Plain object to verify
42157
+ * @returns `null` if valid, otherwise the reason why it is not
42158
+ */
42159
+ public static verify(message: { [k: string]: any }): (string|null);
42160
+
42161
+ /**
42162
+ * Creates an UtmParams message from a plain object. Also converts values to their respective internal types.
42163
+ * @param object Plain object
42164
+ * @returns UtmParams
42165
+ */
42166
+ public static fromObject(object: { [k: string]: any }): UtmParams;
42167
+
42168
+ /**
42169
+ * Creates a plain object from an UtmParams message. Also converts values to other types if specified.
42170
+ * @param message UtmParams
42171
+ * @param [options] Conversion options
42172
+ * @returns Plain object
42173
+ */
42174
+ public static toObject(message: UtmParams, options?: $protobuf.IConversionOptions): { [k: string]: any };
42175
+
42176
+ /**
42177
+ * Converts this UtmParams to JSON.
42178
+ * @returns JSON object
42179
+ */
42180
+ public toJSON(): { [k: string]: any };
42181
+ }
42182
+
42081
42183
  /** Properties of an EnterpriseUserOnboarded. */
42082
42184
  export interface IEnterpriseUserOnboarded {
42083
42185
 
@@ -42380,6 +42482,9 @@ export interface IEnterpriseUserEnrollmentCreated {
42380
42482
 
42381
42483
  /** EnterpriseUserEnrollmentCreated isTextCoachingDisabled */
42382
42484
  isTextCoachingDisabled?: (boolean|null);
42485
+
42486
+ /** EnterpriseUserEnrollmentCreated utmParams */
42487
+ utmParams?: (IUtmParams|null);
42383
42488
  }
42384
42489
 
42385
42490
  /** Represents an EnterpriseUserEnrollmentCreated. */
@@ -42559,6 +42664,9 @@ export class EnterpriseUserEnrollmentCreated implements IEnterpriseUserEnrollmen
42559
42664
  /** EnterpriseUserEnrollmentCreated isTextCoachingDisabled. */
42560
42665
  public isTextCoachingDisabled: boolean;
42561
42666
 
42667
+ /** EnterpriseUserEnrollmentCreated utmParams. */
42668
+ public utmParams?: (IUtmParams|null);
42669
+
42562
42670
  /**
42563
42671
  * Creates a new EnterpriseUserEnrollmentCreated instance using the specified properties.
42564
42672
  * @param [properties] Properties to set
@@ -66460,6 +66568,15 @@ export namespace coaching {
66460
66568
 
66461
66569
  /** CoachingAvailability allowanceCount */
66462
66570
  allowanceCount?: (number|null);
66571
+
66572
+ /** CoachingAvailability updatedAt */
66573
+ updatedAt?: (number|Long|null);
66574
+
66575
+ /** CoachingAvailability status */
66576
+ status?: (coaching.CoachingAvailabilityStatus|null);
66577
+
66578
+ /** CoachingAvailability source */
66579
+ source?: (coaching.CoachingAvailabilitySource|null);
66463
66580
  }
66464
66581
 
66465
66582
  /** Represents a CoachingAvailability. */
@@ -66486,6 +66603,15 @@ export namespace coaching {
66486
66603
  /** CoachingAvailability allowanceCount. */
66487
66604
  public allowanceCount: number;
66488
66605
 
66606
+ /** CoachingAvailability updatedAt. */
66607
+ public updatedAt: (number|Long);
66608
+
66609
+ /** CoachingAvailability status. */
66610
+ public status: coaching.CoachingAvailabilityStatus;
66611
+
66612
+ /** CoachingAvailability source. */
66613
+ public source: coaching.CoachingAvailabilitySource;
66614
+
66489
66615
  /**
66490
66616
  * Creates a new CoachingAvailability instance using the specified properties.
66491
66617
  * @param [properties] Properties to set
@@ -67068,6 +67194,22 @@ export namespace coaching {
67068
67194
  COACHING_SHIFT_STATUS_VIDEO = 5
67069
67195
  }
67070
67196
 
67197
+ /** CoachingAvailabilityStatus enum. */
67198
+ enum CoachingAvailabilityStatus {
67199
+ COACHING_AVAILABILITY_STATUS_UNKNOWN = 0,
67200
+ COACHING_AVAILABILITY_STATUS_OPEN = 1,
67201
+ COACHING_AVAILABILITY_STATUS_CANCELLED = 2
67202
+ }
67203
+
67204
+ /** CoachingAvailabilitySource enum. */
67205
+ enum CoachingAvailabilitySource {
67206
+ COACHING_AVAILABILITY_SOURCE_UNKNOWN = 0,
67207
+ COACHING_AVAILABILITY_SOURCE_ADMIN = 1,
67208
+ COACHING_AVAILABILITY_SOURCE_GOOGLE_CALENDAR = 2,
67209
+ COACHING_AVAILABILITY_SOURCE_SERVICENOW = 3,
67210
+ COACHING_AVAILABILITY_SOURCE_UNTETHER = 4
67211
+ }
67212
+
67071
67213
  /** Properties of a ScheduledCoachingSession. */
67072
67214
  interface IScheduledCoachingSession {
67073
67215
 
package/lib/index.js CHANGED
@@ -118328,6 +118328,238 @@ $root.TaggedCustomField = (function() {
118328
118328
  return TaggedCustomField;
118329
118329
  })();
118330
118330
 
118331
+ $root.UtmParams = (function() {
118332
+
118333
+ /**
118334
+ * Properties of an UtmParams.
118335
+ * @name IUtmParams
118336
+ * @interface IUtmParams
118337
+ * @property {string|null} [source] UtmParams source
118338
+ * @property {string|null} [medium] UtmParams medium
118339
+ * @property {string|null} [campaign] UtmParams campaign
118340
+ */
118341
+
118342
+ /**
118343
+ * Constructs a new UtmParams.
118344
+ * @name UtmParams
118345
+ * @classdesc Represents an UtmParams.
118346
+ * @implements IUtmParams
118347
+ * @constructor
118348
+ * @param {IUtmParams=} [properties] Properties to set
118349
+ */
118350
+ function UtmParams(properties) {
118351
+ if (properties)
118352
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
118353
+ if (properties[keys[i]] != null)
118354
+ this[keys[i]] = properties[keys[i]];
118355
+ }
118356
+
118357
+ /**
118358
+ * UtmParams source.
118359
+ * @member {string} source
118360
+ * @memberof UtmParams
118361
+ * @instance
118362
+ */
118363
+ UtmParams.prototype.source = "";
118364
+
118365
+ /**
118366
+ * UtmParams medium.
118367
+ * @member {string} medium
118368
+ * @memberof UtmParams
118369
+ * @instance
118370
+ */
118371
+ UtmParams.prototype.medium = "";
118372
+
118373
+ /**
118374
+ * UtmParams campaign.
118375
+ * @member {string} campaign
118376
+ * @memberof UtmParams
118377
+ * @instance
118378
+ */
118379
+ UtmParams.prototype.campaign = "";
118380
+
118381
+ /**
118382
+ * Creates a new UtmParams instance using the specified properties.
118383
+ * @function create
118384
+ * @memberof UtmParams
118385
+ * @static
118386
+ * @param {IUtmParams=} [properties] Properties to set
118387
+ * @returns {UtmParams} UtmParams instance
118388
+ */
118389
+ UtmParams.create = function create(properties) {
118390
+ return new UtmParams(properties);
118391
+ };
118392
+
118393
+ /**
118394
+ * Encodes the specified UtmParams message. Does not implicitly {@link UtmParams.verify|verify} messages.
118395
+ * @function encode
118396
+ * @memberof UtmParams
118397
+ * @static
118398
+ * @param {IUtmParams} message UtmParams message or plain object to encode
118399
+ * @param {$protobuf.Writer} [writer] Writer to encode to
118400
+ * @returns {$protobuf.Writer} Writer
118401
+ */
118402
+ UtmParams.encode = function encode(message, writer) {
118403
+ if (!writer)
118404
+ writer = $Writer.create();
118405
+ if (message.source != null && message.hasOwnProperty("source"))
118406
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.source);
118407
+ if (message.medium != null && message.hasOwnProperty("medium"))
118408
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.medium);
118409
+ if (message.campaign != null && message.hasOwnProperty("campaign"))
118410
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.campaign);
118411
+ return writer;
118412
+ };
118413
+
118414
+ /**
118415
+ * Encodes the specified UtmParams message, length delimited. Does not implicitly {@link UtmParams.verify|verify} messages.
118416
+ * @function encodeDelimited
118417
+ * @memberof UtmParams
118418
+ * @static
118419
+ * @param {IUtmParams} message UtmParams message or plain object to encode
118420
+ * @param {$protobuf.Writer} [writer] Writer to encode to
118421
+ * @returns {$protobuf.Writer} Writer
118422
+ */
118423
+ UtmParams.encodeDelimited = function encodeDelimited(message, writer) {
118424
+ return this.encode(message, writer).ldelim();
118425
+ };
118426
+
118427
+ /**
118428
+ * Decodes an UtmParams message from the specified reader or buffer.
118429
+ * @function decode
118430
+ * @memberof UtmParams
118431
+ * @static
118432
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
118433
+ * @param {number} [length] Message length if known beforehand
118434
+ * @returns {UtmParams} UtmParams
118435
+ * @throws {Error} If the payload is not a reader or valid buffer
118436
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
118437
+ */
118438
+ UtmParams.decode = function decode(reader, length) {
118439
+ if (!(reader instanceof $Reader))
118440
+ reader = $Reader.create(reader);
118441
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UtmParams();
118442
+ while (reader.pos < end) {
118443
+ var tag = reader.uint32();
118444
+ switch (tag >>> 3) {
118445
+ case 1:
118446
+ message.source = reader.string();
118447
+ break;
118448
+ case 2:
118449
+ message.medium = reader.string();
118450
+ break;
118451
+ case 3:
118452
+ message.campaign = reader.string();
118453
+ break;
118454
+ default:
118455
+ reader.skipType(tag & 7);
118456
+ break;
118457
+ }
118458
+ }
118459
+ return message;
118460
+ };
118461
+
118462
+ /**
118463
+ * Decodes an UtmParams message from the specified reader or buffer, length delimited.
118464
+ * @function decodeDelimited
118465
+ * @memberof UtmParams
118466
+ * @static
118467
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
118468
+ * @returns {UtmParams} UtmParams
118469
+ * @throws {Error} If the payload is not a reader or valid buffer
118470
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
118471
+ */
118472
+ UtmParams.decodeDelimited = function decodeDelimited(reader) {
118473
+ if (!(reader instanceof $Reader))
118474
+ reader = new $Reader(reader);
118475
+ return this.decode(reader, reader.uint32());
118476
+ };
118477
+
118478
+ /**
118479
+ * Verifies an UtmParams message.
118480
+ * @function verify
118481
+ * @memberof UtmParams
118482
+ * @static
118483
+ * @param {Object.<string,*>} message Plain object to verify
118484
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
118485
+ */
118486
+ UtmParams.verify = function verify(message) {
118487
+ if (typeof message !== "object" || message === null)
118488
+ return "object expected";
118489
+ if (message.source != null && message.hasOwnProperty("source"))
118490
+ if (!$util.isString(message.source))
118491
+ return "source: string expected";
118492
+ if (message.medium != null && message.hasOwnProperty("medium"))
118493
+ if (!$util.isString(message.medium))
118494
+ return "medium: string expected";
118495
+ if (message.campaign != null && message.hasOwnProperty("campaign"))
118496
+ if (!$util.isString(message.campaign))
118497
+ return "campaign: string expected";
118498
+ return null;
118499
+ };
118500
+
118501
+ /**
118502
+ * Creates an UtmParams message from a plain object. Also converts values to their respective internal types.
118503
+ * @function fromObject
118504
+ * @memberof UtmParams
118505
+ * @static
118506
+ * @param {Object.<string,*>} object Plain object
118507
+ * @returns {UtmParams} UtmParams
118508
+ */
118509
+ UtmParams.fromObject = function fromObject(object) {
118510
+ if (object instanceof $root.UtmParams)
118511
+ return object;
118512
+ var message = new $root.UtmParams();
118513
+ if (object.source != null)
118514
+ message.source = String(object.source);
118515
+ if (object.medium != null)
118516
+ message.medium = String(object.medium);
118517
+ if (object.campaign != null)
118518
+ message.campaign = String(object.campaign);
118519
+ return message;
118520
+ };
118521
+
118522
+ /**
118523
+ * Creates a plain object from an UtmParams message. Also converts values to other types if specified.
118524
+ * @function toObject
118525
+ * @memberof UtmParams
118526
+ * @static
118527
+ * @param {UtmParams} message UtmParams
118528
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
118529
+ * @returns {Object.<string,*>} Plain object
118530
+ */
118531
+ UtmParams.toObject = function toObject(message, options) {
118532
+ if (!options)
118533
+ options = {};
118534
+ var object = {};
118535
+ if (options.defaults) {
118536
+ object.source = "";
118537
+ object.medium = "";
118538
+ object.campaign = "";
118539
+ }
118540
+ if (message.source != null && message.hasOwnProperty("source"))
118541
+ object.source = message.source;
118542
+ if (message.medium != null && message.hasOwnProperty("medium"))
118543
+ object.medium = message.medium;
118544
+ if (message.campaign != null && message.hasOwnProperty("campaign"))
118545
+ object.campaign = message.campaign;
118546
+ return object;
118547
+ };
118548
+
118549
+ /**
118550
+ * Converts this UtmParams to JSON.
118551
+ * @function toJSON
118552
+ * @memberof UtmParams
118553
+ * @instance
118554
+ * @returns {Object.<string,*>} JSON object
118555
+ */
118556
+ UtmParams.prototype.toJSON = function toJSON() {
118557
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
118558
+ };
118559
+
118560
+ return UtmParams;
118561
+ })();
118562
+
118331
118563
  $root.EnterpriseUserOnboarded = (function() {
118332
118564
 
118333
118565
  /**
@@ -118777,6 +119009,7 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
118777
119009
  * @property {string|null} [brandLogoUrl] EnterpriseUserEnrollmentCreated brandLogoUrl
118778
119010
  * @property {Array.<ITaggedCustomField>|null} [taggedCustomFields] EnterpriseUserEnrollmentCreated taggedCustomFields
118779
119011
  * @property {boolean|null} [isTextCoachingDisabled] EnterpriseUserEnrollmentCreated isTextCoachingDisabled
119012
+ * @property {IUtmParams|null} [utmParams] EnterpriseUserEnrollmentCreated utmParams
118780
119013
  */
118781
119014
 
118782
119015
  /**
@@ -119243,6 +119476,14 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
119243
119476
  */
119244
119477
  EnterpriseUserEnrollmentCreated.prototype.isTextCoachingDisabled = false;
119245
119478
 
119479
+ /**
119480
+ * EnterpriseUserEnrollmentCreated utmParams.
119481
+ * @member {IUtmParams|null|undefined} utmParams
119482
+ * @memberof EnterpriseUserEnrollmentCreated
119483
+ * @instance
119484
+ */
119485
+ EnterpriseUserEnrollmentCreated.prototype.utmParams = null;
119486
+
119246
119487
  /**
119247
119488
  * Creates a new EnterpriseUserEnrollmentCreated instance using the specified properties.
119248
119489
  * @function create
@@ -119380,6 +119621,8 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
119380
119621
  $root.TaggedCustomField.encode(message.taggedCustomFields[i], writer.uint32(/* id 60, wireType 2 =*/482).fork()).ldelim();
119381
119622
  if (message.isTextCoachingDisabled != null && message.hasOwnProperty("isTextCoachingDisabled"))
119382
119623
  writer.uint32(/* id 61, wireType 0 =*/488).bool(message.isTextCoachingDisabled);
119624
+ if (message.utmParams != null && message.hasOwnProperty("utmParams"))
119625
+ $root.UtmParams.encode(message.utmParams, writer.uint32(/* id 62, wireType 2 =*/498).fork()).ldelim();
119383
119626
  return writer;
119384
119627
  };
119385
119628
 
@@ -119584,6 +119827,9 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
119584
119827
  case 61:
119585
119828
  message.isTextCoachingDisabled = reader.bool();
119586
119829
  break;
119830
+ case 62:
119831
+ message.utmParams = $root.UtmParams.decode(reader, reader.uint32());
119832
+ break;
119587
119833
  default:
119588
119834
  reader.skipType(tag & 7);
119589
119835
  break;
@@ -119868,6 +120114,11 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
119868
120114
  if (message.isTextCoachingDisabled != null && message.hasOwnProperty("isTextCoachingDisabled"))
119869
120115
  if (typeof message.isTextCoachingDisabled !== "boolean")
119870
120116
  return "isTextCoachingDisabled: boolean expected";
120117
+ if (message.utmParams != null && message.hasOwnProperty("utmParams")) {
120118
+ var error = $root.UtmParams.verify(message.utmParams);
120119
+ if (error)
120120
+ return "utmParams." + error;
120121
+ }
119871
120122
  return null;
119872
120123
  };
119873
120124
 
@@ -120218,6 +120469,11 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
120218
120469
  }
120219
120470
  if (object.isTextCoachingDisabled != null)
120220
120471
  message.isTextCoachingDisabled = Boolean(object.isTextCoachingDisabled);
120472
+ if (object.utmParams != null) {
120473
+ if (typeof object.utmParams !== "object")
120474
+ throw TypeError(".EnterpriseUserEnrollmentCreated.utmParams: object expected");
120475
+ message.utmParams = $root.UtmParams.fromObject(object.utmParams);
120476
+ }
120221
120477
  return message;
120222
120478
  };
120223
120479
 
@@ -120312,6 +120568,7 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
120312
120568
  object.externalClientId = "";
120313
120569
  object.brandLogoUrl = "";
120314
120570
  object.isTextCoachingDisabled = false;
120571
+ object.utmParams = null;
120315
120572
  }
120316
120573
  if (message.userId != null && message.hasOwnProperty("userId"))
120317
120574
  object.userId = message.userId;
@@ -120443,6 +120700,8 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
120443
120700
  }
120444
120701
  if (message.isTextCoachingDisabled != null && message.hasOwnProperty("isTextCoachingDisabled"))
120445
120702
  object.isTextCoachingDisabled = message.isTextCoachingDisabled;
120703
+ if (message.utmParams != null && message.hasOwnProperty("utmParams"))
120704
+ object.utmParams = $root.UtmParams.toObject(message.utmParams, options);
120446
120705
  return object;
120447
120706
  };
120448
120707
 
@@ -191467,6 +191726,9 @@ $root.coaching = (function() {
191467
191726
  * @property {number|Long|null} [startedAt] CoachingAvailability startedAt
191468
191727
  * @property {number|Long|null} [endedAt] CoachingAvailability endedAt
191469
191728
  * @property {number|null} [allowanceCount] CoachingAvailability allowanceCount
191729
+ * @property {number|Long|null} [updatedAt] CoachingAvailability updatedAt
191730
+ * @property {coaching.CoachingAvailabilityStatus|null} [status] CoachingAvailability status
191731
+ * @property {coaching.CoachingAvailabilitySource|null} [source] CoachingAvailability source
191470
191732
  */
191471
191733
 
191472
191734
  /**
@@ -191524,6 +191786,30 @@ $root.coaching = (function() {
191524
191786
  */
191525
191787
  CoachingAvailability.prototype.allowanceCount = 0;
191526
191788
 
191789
+ /**
191790
+ * CoachingAvailability updatedAt.
191791
+ * @member {number|Long} updatedAt
191792
+ * @memberof coaching.CoachingAvailability
191793
+ * @instance
191794
+ */
191795
+ CoachingAvailability.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
191796
+
191797
+ /**
191798
+ * CoachingAvailability status.
191799
+ * @member {coaching.CoachingAvailabilityStatus} status
191800
+ * @memberof coaching.CoachingAvailability
191801
+ * @instance
191802
+ */
191803
+ CoachingAvailability.prototype.status = 0;
191804
+
191805
+ /**
191806
+ * CoachingAvailability source.
191807
+ * @member {coaching.CoachingAvailabilitySource} source
191808
+ * @memberof coaching.CoachingAvailability
191809
+ * @instance
191810
+ */
191811
+ CoachingAvailability.prototype.source = 0;
191812
+
191527
191813
  /**
191528
191814
  * Creates a new CoachingAvailability instance using the specified properties.
191529
191815
  * @function create
@@ -191558,6 +191844,12 @@ $root.coaching = (function() {
191558
191844
  writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.endedAt);
191559
191845
  if (message.allowanceCount != null && message.hasOwnProperty("allowanceCount"))
191560
191846
  writer.uint32(/* id 5, wireType 0 =*/40).int32(message.allowanceCount);
191847
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
191848
+ writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.updatedAt);
191849
+ if (message.status != null && message.hasOwnProperty("status"))
191850
+ writer.uint32(/* id 7, wireType 0 =*/56).int32(message.status);
191851
+ if (message.source != null && message.hasOwnProperty("source"))
191852
+ writer.uint32(/* id 8, wireType 0 =*/64).int32(message.source);
191561
191853
  return writer;
191562
191854
  };
191563
191855
 
@@ -191607,6 +191899,15 @@ $root.coaching = (function() {
191607
191899
  case 5:
191608
191900
  message.allowanceCount = reader.int32();
191609
191901
  break;
191902
+ case 6:
191903
+ message.updatedAt = reader.uint64();
191904
+ break;
191905
+ case 7:
191906
+ message.status = reader.int32();
191907
+ break;
191908
+ case 8:
191909
+ message.source = reader.int32();
191910
+ break;
191610
191911
  default:
191611
191912
  reader.skipType(tag & 7);
191612
191913
  break;
@@ -191657,6 +191958,29 @@ $root.coaching = (function() {
191657
191958
  if (message.allowanceCount != null && message.hasOwnProperty("allowanceCount"))
191658
191959
  if (!$util.isInteger(message.allowanceCount))
191659
191960
  return "allowanceCount: integer expected";
191961
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
191962
+ if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
191963
+ return "updatedAt: integer|Long expected";
191964
+ if (message.status != null && message.hasOwnProperty("status"))
191965
+ switch (message.status) {
191966
+ default:
191967
+ return "status: enum value expected";
191968
+ case 0:
191969
+ case 1:
191970
+ case 2:
191971
+ break;
191972
+ }
191973
+ if (message.source != null && message.hasOwnProperty("source"))
191974
+ switch (message.source) {
191975
+ default:
191976
+ return "source: enum value expected";
191977
+ case 0:
191978
+ case 1:
191979
+ case 2:
191980
+ case 3:
191981
+ case 4:
191982
+ break;
191983
+ }
191660
191984
  return null;
191661
191985
  };
191662
191986
 
@@ -191696,6 +192020,51 @@ $root.coaching = (function() {
191696
192020
  message.endedAt = new $util.LongBits(object.endedAt.low >>> 0, object.endedAt.high >>> 0).toNumber(true);
191697
192021
  if (object.allowanceCount != null)
191698
192022
  message.allowanceCount = object.allowanceCount | 0;
192023
+ if (object.updatedAt != null)
192024
+ if ($util.Long)
192025
+ (message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
192026
+ else if (typeof object.updatedAt === "string")
192027
+ message.updatedAt = parseInt(object.updatedAt, 10);
192028
+ else if (typeof object.updatedAt === "number")
192029
+ message.updatedAt = object.updatedAt;
192030
+ else if (typeof object.updatedAt === "object")
192031
+ message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
192032
+ switch (object.status) {
192033
+ case "COACHING_AVAILABILITY_STATUS_UNKNOWN":
192034
+ case 0:
192035
+ message.status = 0;
192036
+ break;
192037
+ case "COACHING_AVAILABILITY_STATUS_OPEN":
192038
+ case 1:
192039
+ message.status = 1;
192040
+ break;
192041
+ case "COACHING_AVAILABILITY_STATUS_CANCELLED":
192042
+ case 2:
192043
+ message.status = 2;
192044
+ break;
192045
+ }
192046
+ switch (object.source) {
192047
+ case "COACHING_AVAILABILITY_SOURCE_UNKNOWN":
192048
+ case 0:
192049
+ message.source = 0;
192050
+ break;
192051
+ case "COACHING_AVAILABILITY_SOURCE_ADMIN":
192052
+ case 1:
192053
+ message.source = 1;
192054
+ break;
192055
+ case "COACHING_AVAILABILITY_SOURCE_GOOGLE_CALENDAR":
192056
+ case 2:
192057
+ message.source = 2;
192058
+ break;
192059
+ case "COACHING_AVAILABILITY_SOURCE_SERVICENOW":
192060
+ case 3:
192061
+ message.source = 3;
192062
+ break;
192063
+ case "COACHING_AVAILABILITY_SOURCE_UNTETHER":
192064
+ case 4:
192065
+ message.source = 4;
192066
+ break;
192067
+ }
191699
192068
  return message;
191700
192069
  };
191701
192070
 
@@ -191726,6 +192095,13 @@ $root.coaching = (function() {
191726
192095
  } else
191727
192096
  object.endedAt = options.longs === String ? "0" : 0;
191728
192097
  object.allowanceCount = 0;
192098
+ if ($util.Long) {
192099
+ var long = new $util.Long(0, 0, true);
192100
+ object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
192101
+ } else
192102
+ object.updatedAt = options.longs === String ? "0" : 0;
192103
+ object.status = options.enums === String ? "COACHING_AVAILABILITY_STATUS_UNKNOWN" : 0;
192104
+ object.source = options.enums === String ? "COACHING_AVAILABILITY_SOURCE_UNKNOWN" : 0;
191729
192105
  }
191730
192106
  if (message.id != null && message.hasOwnProperty("id"))
191731
192107
  object.id = message.id;
@@ -191743,6 +192119,15 @@ $root.coaching = (function() {
191743
192119
  object.endedAt = options.longs === String ? $util.Long.prototype.toString.call(message.endedAt) : options.longs === Number ? new $util.LongBits(message.endedAt.low >>> 0, message.endedAt.high >>> 0).toNumber(true) : message.endedAt;
191744
192120
  if (message.allowanceCount != null && message.hasOwnProperty("allowanceCount"))
191745
192121
  object.allowanceCount = message.allowanceCount;
192122
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
192123
+ if (typeof message.updatedAt === "number")
192124
+ object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
192125
+ else
192126
+ object.updatedAt = options.longs === String ? $util.Long.prototype.toString.call(message.updatedAt) : options.longs === Number ? new $util.LongBits(message.updatedAt.low >>> 0, message.updatedAt.high >>> 0).toNumber(true) : message.updatedAt;
192127
+ if (message.status != null && message.hasOwnProperty("status"))
192128
+ object.status = options.enums === String ? $root.coaching.CoachingAvailabilityStatus[message.status] : message.status;
192129
+ if (message.source != null && message.hasOwnProperty("source"))
192130
+ object.source = options.enums === String ? $root.coaching.CoachingAvailabilitySource[message.source] : message.source;
191746
192131
  return object;
191747
192132
  };
191748
192133
 
@@ -193357,6 +193742,42 @@ $root.coaching = (function() {
193357
193742
  return values;
193358
193743
  })();
193359
193744
 
193745
+ /**
193746
+ * CoachingAvailabilityStatus enum.
193747
+ * @name coaching.CoachingAvailabilityStatus
193748
+ * @enum {string}
193749
+ * @property {number} COACHING_AVAILABILITY_STATUS_UNKNOWN=0 COACHING_AVAILABILITY_STATUS_UNKNOWN value
193750
+ * @property {number} COACHING_AVAILABILITY_STATUS_OPEN=1 COACHING_AVAILABILITY_STATUS_OPEN value
193751
+ * @property {number} COACHING_AVAILABILITY_STATUS_CANCELLED=2 COACHING_AVAILABILITY_STATUS_CANCELLED value
193752
+ */
193753
+ coaching.CoachingAvailabilityStatus = (function() {
193754
+ var valuesById = {}, values = Object.create(valuesById);
193755
+ values[valuesById[0] = "COACHING_AVAILABILITY_STATUS_UNKNOWN"] = 0;
193756
+ values[valuesById[1] = "COACHING_AVAILABILITY_STATUS_OPEN"] = 1;
193757
+ values[valuesById[2] = "COACHING_AVAILABILITY_STATUS_CANCELLED"] = 2;
193758
+ return values;
193759
+ })();
193760
+
193761
+ /**
193762
+ * CoachingAvailabilitySource enum.
193763
+ * @name coaching.CoachingAvailabilitySource
193764
+ * @enum {string}
193765
+ * @property {number} COACHING_AVAILABILITY_SOURCE_UNKNOWN=0 COACHING_AVAILABILITY_SOURCE_UNKNOWN value
193766
+ * @property {number} COACHING_AVAILABILITY_SOURCE_ADMIN=1 COACHING_AVAILABILITY_SOURCE_ADMIN value
193767
+ * @property {number} COACHING_AVAILABILITY_SOURCE_GOOGLE_CALENDAR=2 COACHING_AVAILABILITY_SOURCE_GOOGLE_CALENDAR value
193768
+ * @property {number} COACHING_AVAILABILITY_SOURCE_SERVICENOW=3 COACHING_AVAILABILITY_SOURCE_SERVICENOW value
193769
+ * @property {number} COACHING_AVAILABILITY_SOURCE_UNTETHER=4 COACHING_AVAILABILITY_SOURCE_UNTETHER value
193770
+ */
193771
+ coaching.CoachingAvailabilitySource = (function() {
193772
+ var valuesById = {}, values = Object.create(valuesById);
193773
+ values[valuesById[0] = "COACHING_AVAILABILITY_SOURCE_UNKNOWN"] = 0;
193774
+ values[valuesById[1] = "COACHING_AVAILABILITY_SOURCE_ADMIN"] = 1;
193775
+ values[valuesById[2] = "COACHING_AVAILABILITY_SOURCE_GOOGLE_CALENDAR"] = 2;
193776
+ values[valuesById[3] = "COACHING_AVAILABILITY_SOURCE_SERVICENOW"] = 3;
193777
+ values[valuesById[4] = "COACHING_AVAILABILITY_SOURCE_UNTETHER"] = 4;
193778
+ return values;
193779
+ })();
193780
+
193360
193781
  coaching.ScheduledCoachingSession = (function() {
193361
193782
 
193362
193783
  /**
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.781.0"
19
+ "version": "1.783.0"
20
20
  }