@headspace/protos-events 1.847.0 → 1.848.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 +25 -0
- package/lib/index.js +128 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -5753,6 +5753,12 @@ export class AssessmentScore {
|
|
|
5753
5753
|
/** AssessmentScore reflectionNote. */
|
|
5754
5754
|
reflectionNote: string;
|
|
5755
5755
|
|
|
5756
|
+
/** AssessmentScore assignmentId. */
|
|
5757
|
+
assignmentId?: (number|Long|null);
|
|
5758
|
+
|
|
5759
|
+
/** AssessmentScore assessmentPlatform. */
|
|
5760
|
+
assessmentPlatform?: (AssessmentPlatform|null);
|
|
5761
|
+
|
|
5756
5762
|
/**
|
|
5757
5763
|
* Creates a new AssessmentScore instance using the specified properties.
|
|
5758
5764
|
* @param [properties] Properties to set
|
|
@@ -5852,6 +5858,12 @@ export namespace AssessmentScore {
|
|
|
5852
5858
|
/** AssessmentScore reflectionNote */
|
|
5853
5859
|
reflectionNote?: (string|null);
|
|
5854
5860
|
|
|
5861
|
+
/** AssessmentScore assignmentId */
|
|
5862
|
+
assignmentId?: (number|Long|null);
|
|
5863
|
+
|
|
5864
|
+
/** AssessmentScore assessmentPlatform */
|
|
5865
|
+
assessmentPlatform?: (AssessmentPlatform|null);
|
|
5866
|
+
|
|
5855
5867
|
/** Unknown fields preserved while decoding */
|
|
5856
5868
|
$unknowns?: Uint8Array[];
|
|
5857
5869
|
}
|
|
@@ -5860,6 +5872,19 @@ export namespace AssessmentScore {
|
|
|
5860
5872
|
type $Shape = AssessmentScore.$Properties;
|
|
5861
5873
|
}
|
|
5862
5874
|
|
|
5875
|
+
/** AssessmentPlatform enum. */
|
|
5876
|
+
export enum AssessmentPlatform {
|
|
5877
|
+
|
|
5878
|
+
/** ASSESSMENT_PLATFORM_UNKNOWN value */
|
|
5879
|
+
ASSESSMENT_PLATFORM_UNKNOWN = 0,
|
|
5880
|
+
|
|
5881
|
+
/** ASSESSMENT_PLATFORM_HS_SURVEY_SERVICE value */
|
|
5882
|
+
ASSESSMENT_PLATFORM_HS_SURVEY_SERVICE = 1,
|
|
5883
|
+
|
|
5884
|
+
/** ASSESSMENT_PLATFORM_GINGER_WEB value */
|
|
5885
|
+
ASSESSMENT_PLATFORM_GINGER_WEB = 2
|
|
5886
|
+
}
|
|
5887
|
+
|
|
5863
5888
|
/** AssessmentType enum. */
|
|
5864
5889
|
export enum AssessmentType {
|
|
5865
5890
|
|
package/lib/index.js
CHANGED
|
@@ -16112,6 +16112,8 @@ $root.AssessmentScore = (function() {
|
|
|
16112
16112
|
* @property {number|null} [score] AssessmentScore score
|
|
16113
16113
|
* @property {string|null} [completedAtIsoDate] AssessmentScore completedAtIsoDate
|
|
16114
16114
|
* @property {string|null} [reflectionNote] AssessmentScore reflectionNote
|
|
16115
|
+
* @property {number|Long|null} [assignmentId] AssessmentScore assignmentId
|
|
16116
|
+
* @property {AssessmentPlatform|null} [assessmentPlatform] AssessmentScore assessmentPlatform
|
|
16115
16117
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
16116
16118
|
*/
|
|
16117
16119
|
|
|
@@ -16183,6 +16185,37 @@ $root.AssessmentScore = (function() {
|
|
|
16183
16185
|
*/
|
|
16184
16186
|
AssessmentScore.prototype.reflectionNote = "";
|
|
16185
16187
|
|
|
16188
|
+
/**
|
|
16189
|
+
* AssessmentScore assignmentId.
|
|
16190
|
+
* @member {number|Long|null|undefined} assignmentId
|
|
16191
|
+
* @memberof AssessmentScore
|
|
16192
|
+
* @instance
|
|
16193
|
+
*/
|
|
16194
|
+
AssessmentScore.prototype.assignmentId = null;
|
|
16195
|
+
|
|
16196
|
+
/**
|
|
16197
|
+
* AssessmentScore assessmentPlatform.
|
|
16198
|
+
* @member {AssessmentPlatform|null|undefined} assessmentPlatform
|
|
16199
|
+
* @memberof AssessmentScore
|
|
16200
|
+
* @instance
|
|
16201
|
+
*/
|
|
16202
|
+
AssessmentScore.prototype.assessmentPlatform = null;
|
|
16203
|
+
|
|
16204
|
+
// OneOf field names bound to virtual getters and setters
|
|
16205
|
+
var $oneOfFields;
|
|
16206
|
+
|
|
16207
|
+
// Virtual OneOf for proto3 optional field
|
|
16208
|
+
Object.defineProperty(AssessmentScore.prototype, "_assignmentId", {
|
|
16209
|
+
get: $util.oneOfGetter($oneOfFields = ["assignmentId"]),
|
|
16210
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
16211
|
+
});
|
|
16212
|
+
|
|
16213
|
+
// Virtual OneOf for proto3 optional field
|
|
16214
|
+
Object.defineProperty(AssessmentScore.prototype, "_assessmentPlatform", {
|
|
16215
|
+
get: $util.oneOfGetter($oneOfFields = ["assessmentPlatform"]),
|
|
16216
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
16217
|
+
});
|
|
16218
|
+
|
|
16186
16219
|
/**
|
|
16187
16220
|
* Creates a new AssessmentScore instance using the specified properties.
|
|
16188
16221
|
* @function create
|
|
@@ -16221,6 +16254,10 @@ $root.AssessmentScore = (function() {
|
|
|
16221
16254
|
writer.uint32(/* id 4, wireType 2 =*/34).string(message.completedAtIsoDate);
|
|
16222
16255
|
if (message.reflectionNote != null && Object.hasOwnProperty.call(message, "reflectionNote"))
|
|
16223
16256
|
writer.uint32(/* id 5, wireType 2 =*/42).string(message.reflectionNote);
|
|
16257
|
+
if (message.assignmentId != null && Object.hasOwnProperty.call(message, "assignmentId"))
|
|
16258
|
+
writer.uint32(/* id 6, wireType 0 =*/48).int64(message.assignmentId);
|
|
16259
|
+
if (message.assessmentPlatform != null && Object.hasOwnProperty.call(message, "assessmentPlatform"))
|
|
16260
|
+
writer.uint32(/* id 7, wireType 0 =*/56).int32(message.assessmentPlatform);
|
|
16224
16261
|
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
16225
16262
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
16226
16263
|
writer.raw(message.$unknowns[i]);
|
|
@@ -16313,6 +16350,20 @@ $root.AssessmentScore = (function() {
|
|
|
16313
16350
|
delete message.reflectionNote;
|
|
16314
16351
|
continue;
|
|
16315
16352
|
}
|
|
16353
|
+
case 6: {
|
|
16354
|
+
if (wireType !== 0)
|
|
16355
|
+
break;
|
|
16356
|
+
message.assignmentId = reader.int64();
|
|
16357
|
+
message._assignmentId = "assignmentId";
|
|
16358
|
+
continue;
|
|
16359
|
+
}
|
|
16360
|
+
case 7: {
|
|
16361
|
+
if (wireType !== 0)
|
|
16362
|
+
break;
|
|
16363
|
+
message.assessmentPlatform = reader.int32();
|
|
16364
|
+
message._assessmentPlatform = "assessmentPlatform";
|
|
16365
|
+
continue;
|
|
16366
|
+
}
|
|
16316
16367
|
}
|
|
16317
16368
|
reader.skipType(wireType, _depth, tag);
|
|
16318
16369
|
$util.makeProp(message, "$unknowns", false);
|
|
@@ -16354,6 +16405,7 @@ $root.AssessmentScore = (function() {
|
|
|
16354
16405
|
_depth = 0;
|
|
16355
16406
|
if (_depth > $util.recursionLimit)
|
|
16356
16407
|
return "max depth exceeded";
|
|
16408
|
+
var properties = {};
|
|
16357
16409
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
16358
16410
|
if (!$util.isString(message.userId))
|
|
16359
16411
|
return "userId: string expected";
|
|
@@ -16369,6 +16421,22 @@ $root.AssessmentScore = (function() {
|
|
|
16369
16421
|
if (message.reflectionNote != null && message.hasOwnProperty("reflectionNote"))
|
|
16370
16422
|
if (!$util.isString(message.reflectionNote))
|
|
16371
16423
|
return "reflectionNote: string expected";
|
|
16424
|
+
if (message.assignmentId != null && message.hasOwnProperty("assignmentId")) {
|
|
16425
|
+
properties._assignmentId = 1;
|
|
16426
|
+
if (!$util.isInteger(message.assignmentId) && !(message.assignmentId && $util.isInteger(message.assignmentId.low) && $util.isInteger(message.assignmentId.high)))
|
|
16427
|
+
return "assignmentId: integer|Long expected";
|
|
16428
|
+
}
|
|
16429
|
+
if (message.assessmentPlatform != null && message.hasOwnProperty("assessmentPlatform")) {
|
|
16430
|
+
properties._assessmentPlatform = 1;
|
|
16431
|
+
switch (message.assessmentPlatform) {
|
|
16432
|
+
default:
|
|
16433
|
+
return "assessmentPlatform: enum value expected";
|
|
16434
|
+
case 0:
|
|
16435
|
+
case 1:
|
|
16436
|
+
case 2:
|
|
16437
|
+
break;
|
|
16438
|
+
}
|
|
16439
|
+
}
|
|
16372
16440
|
return null;
|
|
16373
16441
|
};
|
|
16374
16442
|
|
|
@@ -16403,6 +16471,35 @@ $root.AssessmentScore = (function() {
|
|
|
16403
16471
|
if (object.reflectionNote != null)
|
|
16404
16472
|
if (typeof object.reflectionNote !== "string" || object.reflectionNote.length)
|
|
16405
16473
|
message.reflectionNote = String(object.reflectionNote);
|
|
16474
|
+
if (object.assignmentId != null)
|
|
16475
|
+
if ($util.Long)
|
|
16476
|
+
(message.assignmentId = $util.Long.fromValue(object.assignmentId)).unsigned = false;
|
|
16477
|
+
else if (typeof object.assignmentId === "string")
|
|
16478
|
+
message.assignmentId = parseInt(object.assignmentId, 10);
|
|
16479
|
+
else if (typeof object.assignmentId === "number")
|
|
16480
|
+
message.assignmentId = object.assignmentId;
|
|
16481
|
+
else if (typeof object.assignmentId === "object")
|
|
16482
|
+
message.assignmentId = new $util.LongBits(object.assignmentId.low >>> 0, object.assignmentId.high >>> 0).toNumber();
|
|
16483
|
+
switch (object.assessmentPlatform) {
|
|
16484
|
+
default:
|
|
16485
|
+
if (typeof object.assessmentPlatform === "number") {
|
|
16486
|
+
message.assessmentPlatform = object.assessmentPlatform;
|
|
16487
|
+
break;
|
|
16488
|
+
}
|
|
16489
|
+
break;
|
|
16490
|
+
case "ASSESSMENT_PLATFORM_UNKNOWN":
|
|
16491
|
+
case 0:
|
|
16492
|
+
message.assessmentPlatform = 0;
|
|
16493
|
+
break;
|
|
16494
|
+
case "ASSESSMENT_PLATFORM_HS_SURVEY_SERVICE":
|
|
16495
|
+
case 1:
|
|
16496
|
+
message.assessmentPlatform = 1;
|
|
16497
|
+
break;
|
|
16498
|
+
case "ASSESSMENT_PLATFORM_GINGER_WEB":
|
|
16499
|
+
case 2:
|
|
16500
|
+
message.assessmentPlatform = 2;
|
|
16501
|
+
break;
|
|
16502
|
+
}
|
|
16406
16503
|
return message;
|
|
16407
16504
|
};
|
|
16408
16505
|
|
|
@@ -16436,6 +16533,21 @@ $root.AssessmentScore = (function() {
|
|
|
16436
16533
|
object.completedAtIsoDate = message.completedAtIsoDate;
|
|
16437
16534
|
if (message.reflectionNote != null && message.hasOwnProperty("reflectionNote"))
|
|
16438
16535
|
object.reflectionNote = message.reflectionNote;
|
|
16536
|
+
if (message.assignmentId != null && message.hasOwnProperty("assignmentId")) {
|
|
16537
|
+
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
16538
|
+
object.assignmentId = typeof message.assignmentId === "number" ? BigInt(message.assignmentId) : $util.Long.fromBits(message.assignmentId.low >>> 0, message.assignmentId.high >>> 0, false).toBigInt();
|
|
16539
|
+
else if (typeof message.assignmentId === "number")
|
|
16540
|
+
object.assignmentId = options.longs === String ? String(message.assignmentId) : message.assignmentId;
|
|
16541
|
+
else
|
|
16542
|
+
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;
|
|
16543
|
+
if (options.oneofs)
|
|
16544
|
+
object._assignmentId = "assignmentId";
|
|
16545
|
+
}
|
|
16546
|
+
if (message.assessmentPlatform != null && message.hasOwnProperty("assessmentPlatform")) {
|
|
16547
|
+
object.assessmentPlatform = options.enums === String ? $root.AssessmentPlatform[message.assessmentPlatform] === undefined ? message.assessmentPlatform : $root.AssessmentPlatform[message.assessmentPlatform] : message.assessmentPlatform;
|
|
16548
|
+
if (options.oneofs)
|
|
16549
|
+
object._assessmentPlatform = "assessmentPlatform";
|
|
16550
|
+
}
|
|
16439
16551
|
return object;
|
|
16440
16552
|
};
|
|
16441
16553
|
|
|
@@ -16467,6 +16579,22 @@ $root.AssessmentScore = (function() {
|
|
|
16467
16579
|
return AssessmentScore;
|
|
16468
16580
|
})();
|
|
16469
16581
|
|
|
16582
|
+
/**
|
|
16583
|
+
* AssessmentPlatform enum.
|
|
16584
|
+
* @name AssessmentPlatform
|
|
16585
|
+
* @enum {number}
|
|
16586
|
+
* @property {number} ASSESSMENT_PLATFORM_UNKNOWN=0 ASSESSMENT_PLATFORM_UNKNOWN value
|
|
16587
|
+
* @property {number} ASSESSMENT_PLATFORM_HS_SURVEY_SERVICE=1 ASSESSMENT_PLATFORM_HS_SURVEY_SERVICE value
|
|
16588
|
+
* @property {number} ASSESSMENT_PLATFORM_GINGER_WEB=2 ASSESSMENT_PLATFORM_GINGER_WEB value
|
|
16589
|
+
*/
|
|
16590
|
+
$root.AssessmentPlatform = (function() {
|
|
16591
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
16592
|
+
values[valuesById[0] = "ASSESSMENT_PLATFORM_UNKNOWN"] = 0;
|
|
16593
|
+
values[valuesById[1] = "ASSESSMENT_PLATFORM_HS_SURVEY_SERVICE"] = 1;
|
|
16594
|
+
values[valuesById[2] = "ASSESSMENT_PLATFORM_GINGER_WEB"] = 2;
|
|
16595
|
+
return values;
|
|
16596
|
+
})();
|
|
16597
|
+
|
|
16470
16598
|
/**
|
|
16471
16599
|
* AssessmentType enum.
|
|
16472
16600
|
* @name AssessmentType
|
package/package.json
CHANGED