@headspace/protos-events 1.781.0 → 1.782.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 +34 -0
- package/lib/index.js +162 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -66460,6 +66460,15 @@ export namespace coaching {
|
|
|
66460
66460
|
|
|
66461
66461
|
/** CoachingAvailability allowanceCount */
|
|
66462
66462
|
allowanceCount?: (number|null);
|
|
66463
|
+
|
|
66464
|
+
/** CoachingAvailability updatedAt */
|
|
66465
|
+
updatedAt?: (number|Long|null);
|
|
66466
|
+
|
|
66467
|
+
/** CoachingAvailability status */
|
|
66468
|
+
status?: (coaching.CoachingAvailabilityStatus|null);
|
|
66469
|
+
|
|
66470
|
+
/** CoachingAvailability source */
|
|
66471
|
+
source?: (coaching.CoachingAvailabilitySource|null);
|
|
66463
66472
|
}
|
|
66464
66473
|
|
|
66465
66474
|
/** Represents a CoachingAvailability. */
|
|
@@ -66486,6 +66495,15 @@ export namespace coaching {
|
|
|
66486
66495
|
/** CoachingAvailability allowanceCount. */
|
|
66487
66496
|
public allowanceCount: number;
|
|
66488
66497
|
|
|
66498
|
+
/** CoachingAvailability updatedAt. */
|
|
66499
|
+
public updatedAt: (number|Long);
|
|
66500
|
+
|
|
66501
|
+
/** CoachingAvailability status. */
|
|
66502
|
+
public status: coaching.CoachingAvailabilityStatus;
|
|
66503
|
+
|
|
66504
|
+
/** CoachingAvailability source. */
|
|
66505
|
+
public source: coaching.CoachingAvailabilitySource;
|
|
66506
|
+
|
|
66489
66507
|
/**
|
|
66490
66508
|
* Creates a new CoachingAvailability instance using the specified properties.
|
|
66491
66509
|
* @param [properties] Properties to set
|
|
@@ -67068,6 +67086,22 @@ export namespace coaching {
|
|
|
67068
67086
|
COACHING_SHIFT_STATUS_VIDEO = 5
|
|
67069
67087
|
}
|
|
67070
67088
|
|
|
67089
|
+
/** CoachingAvailabilityStatus enum. */
|
|
67090
|
+
enum CoachingAvailabilityStatus {
|
|
67091
|
+
COACHING_AVAILABILITY_STATUS_UNKNOWN = 0,
|
|
67092
|
+
COACHING_AVAILABILITY_STATUS_OPEN = 1,
|
|
67093
|
+
COACHING_AVAILABILITY_STATUS_CANCELLED = 2
|
|
67094
|
+
}
|
|
67095
|
+
|
|
67096
|
+
/** CoachingAvailabilitySource enum. */
|
|
67097
|
+
enum CoachingAvailabilitySource {
|
|
67098
|
+
COACHING_AVAILABILITY_SOURCE_UNKNOWN = 0,
|
|
67099
|
+
COACHING_AVAILABILITY_SOURCE_ADMIN = 1,
|
|
67100
|
+
COACHING_AVAILABILITY_SOURCE_GOOGLE_CALENDAR = 2,
|
|
67101
|
+
COACHING_AVAILABILITY_SOURCE_SERVICENOW = 3,
|
|
67102
|
+
COACHING_AVAILABILITY_SOURCE_UNTETHER = 4
|
|
67103
|
+
}
|
|
67104
|
+
|
|
67071
67105
|
/** Properties of a ScheduledCoachingSession. */
|
|
67072
67106
|
interface IScheduledCoachingSession {
|
|
67073
67107
|
|
package/lib/index.js
CHANGED
|
@@ -191467,6 +191467,9 @@ $root.coaching = (function() {
|
|
|
191467
191467
|
* @property {number|Long|null} [startedAt] CoachingAvailability startedAt
|
|
191468
191468
|
* @property {number|Long|null} [endedAt] CoachingAvailability endedAt
|
|
191469
191469
|
* @property {number|null} [allowanceCount] CoachingAvailability allowanceCount
|
|
191470
|
+
* @property {number|Long|null} [updatedAt] CoachingAvailability updatedAt
|
|
191471
|
+
* @property {coaching.CoachingAvailabilityStatus|null} [status] CoachingAvailability status
|
|
191472
|
+
* @property {coaching.CoachingAvailabilitySource|null} [source] CoachingAvailability source
|
|
191470
191473
|
*/
|
|
191471
191474
|
|
|
191472
191475
|
/**
|
|
@@ -191524,6 +191527,30 @@ $root.coaching = (function() {
|
|
|
191524
191527
|
*/
|
|
191525
191528
|
CoachingAvailability.prototype.allowanceCount = 0;
|
|
191526
191529
|
|
|
191530
|
+
/**
|
|
191531
|
+
* CoachingAvailability updatedAt.
|
|
191532
|
+
* @member {number|Long} updatedAt
|
|
191533
|
+
* @memberof coaching.CoachingAvailability
|
|
191534
|
+
* @instance
|
|
191535
|
+
*/
|
|
191536
|
+
CoachingAvailability.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
191537
|
+
|
|
191538
|
+
/**
|
|
191539
|
+
* CoachingAvailability status.
|
|
191540
|
+
* @member {coaching.CoachingAvailabilityStatus} status
|
|
191541
|
+
* @memberof coaching.CoachingAvailability
|
|
191542
|
+
* @instance
|
|
191543
|
+
*/
|
|
191544
|
+
CoachingAvailability.prototype.status = 0;
|
|
191545
|
+
|
|
191546
|
+
/**
|
|
191547
|
+
* CoachingAvailability source.
|
|
191548
|
+
* @member {coaching.CoachingAvailabilitySource} source
|
|
191549
|
+
* @memberof coaching.CoachingAvailability
|
|
191550
|
+
* @instance
|
|
191551
|
+
*/
|
|
191552
|
+
CoachingAvailability.prototype.source = 0;
|
|
191553
|
+
|
|
191527
191554
|
/**
|
|
191528
191555
|
* Creates a new CoachingAvailability instance using the specified properties.
|
|
191529
191556
|
* @function create
|
|
@@ -191558,6 +191585,12 @@ $root.coaching = (function() {
|
|
|
191558
191585
|
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.endedAt);
|
|
191559
191586
|
if (message.allowanceCount != null && message.hasOwnProperty("allowanceCount"))
|
|
191560
191587
|
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.allowanceCount);
|
|
191588
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
191589
|
+
writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.updatedAt);
|
|
191590
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
191591
|
+
writer.uint32(/* id 7, wireType 0 =*/56).int32(message.status);
|
|
191592
|
+
if (message.source != null && message.hasOwnProperty("source"))
|
|
191593
|
+
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.source);
|
|
191561
191594
|
return writer;
|
|
191562
191595
|
};
|
|
191563
191596
|
|
|
@@ -191607,6 +191640,15 @@ $root.coaching = (function() {
|
|
|
191607
191640
|
case 5:
|
|
191608
191641
|
message.allowanceCount = reader.int32();
|
|
191609
191642
|
break;
|
|
191643
|
+
case 6:
|
|
191644
|
+
message.updatedAt = reader.uint64();
|
|
191645
|
+
break;
|
|
191646
|
+
case 7:
|
|
191647
|
+
message.status = reader.int32();
|
|
191648
|
+
break;
|
|
191649
|
+
case 8:
|
|
191650
|
+
message.source = reader.int32();
|
|
191651
|
+
break;
|
|
191610
191652
|
default:
|
|
191611
191653
|
reader.skipType(tag & 7);
|
|
191612
191654
|
break;
|
|
@@ -191657,6 +191699,29 @@ $root.coaching = (function() {
|
|
|
191657
191699
|
if (message.allowanceCount != null && message.hasOwnProperty("allowanceCount"))
|
|
191658
191700
|
if (!$util.isInteger(message.allowanceCount))
|
|
191659
191701
|
return "allowanceCount: integer expected";
|
|
191702
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
191703
|
+
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
191704
|
+
return "updatedAt: integer|Long expected";
|
|
191705
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
191706
|
+
switch (message.status) {
|
|
191707
|
+
default:
|
|
191708
|
+
return "status: enum value expected";
|
|
191709
|
+
case 0:
|
|
191710
|
+
case 1:
|
|
191711
|
+
case 2:
|
|
191712
|
+
break;
|
|
191713
|
+
}
|
|
191714
|
+
if (message.source != null && message.hasOwnProperty("source"))
|
|
191715
|
+
switch (message.source) {
|
|
191716
|
+
default:
|
|
191717
|
+
return "source: enum value expected";
|
|
191718
|
+
case 0:
|
|
191719
|
+
case 1:
|
|
191720
|
+
case 2:
|
|
191721
|
+
case 3:
|
|
191722
|
+
case 4:
|
|
191723
|
+
break;
|
|
191724
|
+
}
|
|
191660
191725
|
return null;
|
|
191661
191726
|
};
|
|
191662
191727
|
|
|
@@ -191696,6 +191761,51 @@ $root.coaching = (function() {
|
|
|
191696
191761
|
message.endedAt = new $util.LongBits(object.endedAt.low >>> 0, object.endedAt.high >>> 0).toNumber(true);
|
|
191697
191762
|
if (object.allowanceCount != null)
|
|
191698
191763
|
message.allowanceCount = object.allowanceCount | 0;
|
|
191764
|
+
if (object.updatedAt != null)
|
|
191765
|
+
if ($util.Long)
|
|
191766
|
+
(message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
|
|
191767
|
+
else if (typeof object.updatedAt === "string")
|
|
191768
|
+
message.updatedAt = parseInt(object.updatedAt, 10);
|
|
191769
|
+
else if (typeof object.updatedAt === "number")
|
|
191770
|
+
message.updatedAt = object.updatedAt;
|
|
191771
|
+
else if (typeof object.updatedAt === "object")
|
|
191772
|
+
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
191773
|
+
switch (object.status) {
|
|
191774
|
+
case "COACHING_AVAILABILITY_STATUS_UNKNOWN":
|
|
191775
|
+
case 0:
|
|
191776
|
+
message.status = 0;
|
|
191777
|
+
break;
|
|
191778
|
+
case "COACHING_AVAILABILITY_STATUS_OPEN":
|
|
191779
|
+
case 1:
|
|
191780
|
+
message.status = 1;
|
|
191781
|
+
break;
|
|
191782
|
+
case "COACHING_AVAILABILITY_STATUS_CANCELLED":
|
|
191783
|
+
case 2:
|
|
191784
|
+
message.status = 2;
|
|
191785
|
+
break;
|
|
191786
|
+
}
|
|
191787
|
+
switch (object.source) {
|
|
191788
|
+
case "COACHING_AVAILABILITY_SOURCE_UNKNOWN":
|
|
191789
|
+
case 0:
|
|
191790
|
+
message.source = 0;
|
|
191791
|
+
break;
|
|
191792
|
+
case "COACHING_AVAILABILITY_SOURCE_ADMIN":
|
|
191793
|
+
case 1:
|
|
191794
|
+
message.source = 1;
|
|
191795
|
+
break;
|
|
191796
|
+
case "COACHING_AVAILABILITY_SOURCE_GOOGLE_CALENDAR":
|
|
191797
|
+
case 2:
|
|
191798
|
+
message.source = 2;
|
|
191799
|
+
break;
|
|
191800
|
+
case "COACHING_AVAILABILITY_SOURCE_SERVICENOW":
|
|
191801
|
+
case 3:
|
|
191802
|
+
message.source = 3;
|
|
191803
|
+
break;
|
|
191804
|
+
case "COACHING_AVAILABILITY_SOURCE_UNTETHER":
|
|
191805
|
+
case 4:
|
|
191806
|
+
message.source = 4;
|
|
191807
|
+
break;
|
|
191808
|
+
}
|
|
191699
191809
|
return message;
|
|
191700
191810
|
};
|
|
191701
191811
|
|
|
@@ -191726,6 +191836,13 @@ $root.coaching = (function() {
|
|
|
191726
191836
|
} else
|
|
191727
191837
|
object.endedAt = options.longs === String ? "0" : 0;
|
|
191728
191838
|
object.allowanceCount = 0;
|
|
191839
|
+
if ($util.Long) {
|
|
191840
|
+
var long = new $util.Long(0, 0, true);
|
|
191841
|
+
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
191842
|
+
} else
|
|
191843
|
+
object.updatedAt = options.longs === String ? "0" : 0;
|
|
191844
|
+
object.status = options.enums === String ? "COACHING_AVAILABILITY_STATUS_UNKNOWN" : 0;
|
|
191845
|
+
object.source = options.enums === String ? "COACHING_AVAILABILITY_SOURCE_UNKNOWN" : 0;
|
|
191729
191846
|
}
|
|
191730
191847
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
191731
191848
|
object.id = message.id;
|
|
@@ -191743,6 +191860,15 @@ $root.coaching = (function() {
|
|
|
191743
191860
|
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
191861
|
if (message.allowanceCount != null && message.hasOwnProperty("allowanceCount"))
|
|
191745
191862
|
object.allowanceCount = message.allowanceCount;
|
|
191863
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
191864
|
+
if (typeof message.updatedAt === "number")
|
|
191865
|
+
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
191866
|
+
else
|
|
191867
|
+
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;
|
|
191868
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
191869
|
+
object.status = options.enums === String ? $root.coaching.CoachingAvailabilityStatus[message.status] : message.status;
|
|
191870
|
+
if (message.source != null && message.hasOwnProperty("source"))
|
|
191871
|
+
object.source = options.enums === String ? $root.coaching.CoachingAvailabilitySource[message.source] : message.source;
|
|
191746
191872
|
return object;
|
|
191747
191873
|
};
|
|
191748
191874
|
|
|
@@ -193357,6 +193483,42 @@ $root.coaching = (function() {
|
|
|
193357
193483
|
return values;
|
|
193358
193484
|
})();
|
|
193359
193485
|
|
|
193486
|
+
/**
|
|
193487
|
+
* CoachingAvailabilityStatus enum.
|
|
193488
|
+
* @name coaching.CoachingAvailabilityStatus
|
|
193489
|
+
* @enum {string}
|
|
193490
|
+
* @property {number} COACHING_AVAILABILITY_STATUS_UNKNOWN=0 COACHING_AVAILABILITY_STATUS_UNKNOWN value
|
|
193491
|
+
* @property {number} COACHING_AVAILABILITY_STATUS_OPEN=1 COACHING_AVAILABILITY_STATUS_OPEN value
|
|
193492
|
+
* @property {number} COACHING_AVAILABILITY_STATUS_CANCELLED=2 COACHING_AVAILABILITY_STATUS_CANCELLED value
|
|
193493
|
+
*/
|
|
193494
|
+
coaching.CoachingAvailabilityStatus = (function() {
|
|
193495
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
193496
|
+
values[valuesById[0] = "COACHING_AVAILABILITY_STATUS_UNKNOWN"] = 0;
|
|
193497
|
+
values[valuesById[1] = "COACHING_AVAILABILITY_STATUS_OPEN"] = 1;
|
|
193498
|
+
values[valuesById[2] = "COACHING_AVAILABILITY_STATUS_CANCELLED"] = 2;
|
|
193499
|
+
return values;
|
|
193500
|
+
})();
|
|
193501
|
+
|
|
193502
|
+
/**
|
|
193503
|
+
* CoachingAvailabilitySource enum.
|
|
193504
|
+
* @name coaching.CoachingAvailabilitySource
|
|
193505
|
+
* @enum {string}
|
|
193506
|
+
* @property {number} COACHING_AVAILABILITY_SOURCE_UNKNOWN=0 COACHING_AVAILABILITY_SOURCE_UNKNOWN value
|
|
193507
|
+
* @property {number} COACHING_AVAILABILITY_SOURCE_ADMIN=1 COACHING_AVAILABILITY_SOURCE_ADMIN value
|
|
193508
|
+
* @property {number} COACHING_AVAILABILITY_SOURCE_GOOGLE_CALENDAR=2 COACHING_AVAILABILITY_SOURCE_GOOGLE_CALENDAR value
|
|
193509
|
+
* @property {number} COACHING_AVAILABILITY_SOURCE_SERVICENOW=3 COACHING_AVAILABILITY_SOURCE_SERVICENOW value
|
|
193510
|
+
* @property {number} COACHING_AVAILABILITY_SOURCE_UNTETHER=4 COACHING_AVAILABILITY_SOURCE_UNTETHER value
|
|
193511
|
+
*/
|
|
193512
|
+
coaching.CoachingAvailabilitySource = (function() {
|
|
193513
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
193514
|
+
values[valuesById[0] = "COACHING_AVAILABILITY_SOURCE_UNKNOWN"] = 0;
|
|
193515
|
+
values[valuesById[1] = "COACHING_AVAILABILITY_SOURCE_ADMIN"] = 1;
|
|
193516
|
+
values[valuesById[2] = "COACHING_AVAILABILITY_SOURCE_GOOGLE_CALENDAR"] = 2;
|
|
193517
|
+
values[valuesById[3] = "COACHING_AVAILABILITY_SOURCE_SERVICENOW"] = 3;
|
|
193518
|
+
values[valuesById[4] = "COACHING_AVAILABILITY_SOURCE_UNTETHER"] = 4;
|
|
193519
|
+
return values;
|
|
193520
|
+
})();
|
|
193521
|
+
|
|
193360
193522
|
coaching.ScheduledCoachingSession = (function() {
|
|
193361
193523
|
|
|
193362
193524
|
/**
|
package/package.json
CHANGED