@headspace/protos-events 1.100.0 → 1.101.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 +6 -6
- package/lib/index.js +24 -25
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -3376,6 +3376,9 @@ export interface ICompletedActivity {
|
|
|
3376
3376
|
|
|
3377
3377
|
/** CompletedActivity completedAtIsoDate */
|
|
3378
3378
|
completedAtIsoDate?: (string|null);
|
|
3379
|
+
|
|
3380
|
+
/** CompletedActivity isFirstEdhsCompletion */
|
|
3381
|
+
isFirstEdhsCompletion?: (boolean|null);
|
|
3379
3382
|
}
|
|
3380
3383
|
|
|
3381
3384
|
/** Represents a CompletedActivity. */
|
|
@@ -3402,6 +3405,9 @@ export class CompletedActivity implements ICompletedActivity {
|
|
|
3402
3405
|
/** CompletedActivity completedAtIsoDate. */
|
|
3403
3406
|
public completedAtIsoDate: string;
|
|
3404
3407
|
|
|
3408
|
+
/** CompletedActivity isFirstEdhsCompletion. */
|
|
3409
|
+
public isFirstEdhsCompletion: boolean;
|
|
3410
|
+
|
|
3405
3411
|
/**
|
|
3406
3412
|
* Creates a new CompletedActivity instance using the specified properties.
|
|
3407
3413
|
* @param [properties] Properties to set
|
|
@@ -4044,9 +4050,6 @@ export interface ISurveyQuestion {
|
|
|
4044
4050
|
/** SurveyQuestion title */
|
|
4045
4051
|
title?: (string|null);
|
|
4046
4052
|
|
|
4047
|
-
/** SurveyQuestion shorthand */
|
|
4048
|
-
shorthand?: (string|null);
|
|
4049
|
-
|
|
4050
4053
|
/** SurveyQuestion answers */
|
|
4051
4054
|
answers?: (ISurveyAnswer[]|null);
|
|
4052
4055
|
}
|
|
@@ -4063,9 +4066,6 @@ export class SurveyQuestion implements ISurveyQuestion {
|
|
|
4063
4066
|
/** SurveyQuestion title. */
|
|
4064
4067
|
public title: string;
|
|
4065
4068
|
|
|
4066
|
-
/** SurveyQuestion shorthand. */
|
|
4067
|
-
public shorthand: string;
|
|
4068
|
-
|
|
4069
4069
|
/** SurveyQuestion answers. */
|
|
4070
4070
|
public answers: ISurveyAnswer[];
|
|
4071
4071
|
|
package/lib/index.js
CHANGED
|
@@ -8368,6 +8368,7 @@ $root.CompletedActivity = (function() {
|
|
|
8368
8368
|
* @property {number|null} [activityId] CompletedActivity activityId
|
|
8369
8369
|
* @property {number|null} [activityVariationId] CompletedActivity activityVariationId
|
|
8370
8370
|
* @property {string|null} [completedAtIsoDate] CompletedActivity completedAtIsoDate
|
|
8371
|
+
* @property {boolean|null} [isFirstEdhsCompletion] CompletedActivity isFirstEdhsCompletion
|
|
8371
8372
|
*/
|
|
8372
8373
|
|
|
8373
8374
|
/**
|
|
@@ -8425,6 +8426,14 @@ $root.CompletedActivity = (function() {
|
|
|
8425
8426
|
*/
|
|
8426
8427
|
CompletedActivity.prototype.completedAtIsoDate = "";
|
|
8427
8428
|
|
|
8429
|
+
/**
|
|
8430
|
+
* CompletedActivity isFirstEdhsCompletion.
|
|
8431
|
+
* @member {boolean} isFirstEdhsCompletion
|
|
8432
|
+
* @memberof CompletedActivity
|
|
8433
|
+
* @instance
|
|
8434
|
+
*/
|
|
8435
|
+
CompletedActivity.prototype.isFirstEdhsCompletion = false;
|
|
8436
|
+
|
|
8428
8437
|
/**
|
|
8429
8438
|
* Creates a new CompletedActivity instance using the specified properties.
|
|
8430
8439
|
* @function create
|
|
@@ -8459,6 +8468,8 @@ $root.CompletedActivity = (function() {
|
|
|
8459
8468
|
writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.activityVariationId);
|
|
8460
8469
|
if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
|
|
8461
8470
|
writer.uint32(/* id 5, wireType 2 =*/42).string(message.completedAtIsoDate);
|
|
8471
|
+
if (message.isFirstEdhsCompletion != null && message.hasOwnProperty("isFirstEdhsCompletion"))
|
|
8472
|
+
writer.uint32(/* id 6, wireType 0 =*/48).bool(message.isFirstEdhsCompletion);
|
|
8462
8473
|
return writer;
|
|
8463
8474
|
};
|
|
8464
8475
|
|
|
@@ -8508,6 +8519,9 @@ $root.CompletedActivity = (function() {
|
|
|
8508
8519
|
case 5:
|
|
8509
8520
|
message.completedAtIsoDate = reader.string();
|
|
8510
8521
|
break;
|
|
8522
|
+
case 6:
|
|
8523
|
+
message.isFirstEdhsCompletion = reader.bool();
|
|
8524
|
+
break;
|
|
8511
8525
|
default:
|
|
8512
8526
|
reader.skipType(tag & 7);
|
|
8513
8527
|
break;
|
|
@@ -8558,6 +8572,9 @@ $root.CompletedActivity = (function() {
|
|
|
8558
8572
|
if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
|
|
8559
8573
|
if (!$util.isString(message.completedAtIsoDate))
|
|
8560
8574
|
return "completedAtIsoDate: string expected";
|
|
8575
|
+
if (message.isFirstEdhsCompletion != null && message.hasOwnProperty("isFirstEdhsCompletion"))
|
|
8576
|
+
if (typeof message.isFirstEdhsCompletion !== "boolean")
|
|
8577
|
+
return "isFirstEdhsCompletion: boolean expected";
|
|
8561
8578
|
return null;
|
|
8562
8579
|
};
|
|
8563
8580
|
|
|
@@ -8583,6 +8600,8 @@ $root.CompletedActivity = (function() {
|
|
|
8583
8600
|
message.activityVariationId = object.activityVariationId >>> 0;
|
|
8584
8601
|
if (object.completedAtIsoDate != null)
|
|
8585
8602
|
message.completedAtIsoDate = String(object.completedAtIsoDate);
|
|
8603
|
+
if (object.isFirstEdhsCompletion != null)
|
|
8604
|
+
message.isFirstEdhsCompletion = Boolean(object.isFirstEdhsCompletion);
|
|
8586
8605
|
return message;
|
|
8587
8606
|
};
|
|
8588
8607
|
|
|
@@ -8605,6 +8624,7 @@ $root.CompletedActivity = (function() {
|
|
|
8605
8624
|
object.activityId = 0;
|
|
8606
8625
|
object.activityVariationId = 0;
|
|
8607
8626
|
object.completedAtIsoDate = "";
|
|
8627
|
+
object.isFirstEdhsCompletion = false;
|
|
8608
8628
|
}
|
|
8609
8629
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
8610
8630
|
object.userId = message.userId;
|
|
@@ -8616,6 +8636,8 @@ $root.CompletedActivity = (function() {
|
|
|
8616
8636
|
object.activityVariationId = message.activityVariationId;
|
|
8617
8637
|
if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
|
|
8618
8638
|
object.completedAtIsoDate = message.completedAtIsoDate;
|
|
8639
|
+
if (message.isFirstEdhsCompletion != null && message.hasOwnProperty("isFirstEdhsCompletion"))
|
|
8640
|
+
object.isFirstEdhsCompletion = message.isFirstEdhsCompletion;
|
|
8619
8641
|
return object;
|
|
8620
8642
|
};
|
|
8621
8643
|
|
|
@@ -10157,7 +10179,6 @@ $root.SurveyQuestion = (function() {
|
|
|
10157
10179
|
* @exports ISurveyQuestion
|
|
10158
10180
|
* @interface ISurveyQuestion
|
|
10159
10181
|
* @property {string|null} [title] SurveyQuestion title
|
|
10160
|
-
* @property {string|null} [shorthand] SurveyQuestion shorthand
|
|
10161
10182
|
* @property {Array.<ISurveyAnswer>|null} [answers] SurveyQuestion answers
|
|
10162
10183
|
*/
|
|
10163
10184
|
|
|
@@ -10185,14 +10206,6 @@ $root.SurveyQuestion = (function() {
|
|
|
10185
10206
|
*/
|
|
10186
10207
|
SurveyQuestion.prototype.title = "";
|
|
10187
10208
|
|
|
10188
|
-
/**
|
|
10189
|
-
* SurveyQuestion shorthand.
|
|
10190
|
-
* @member {string} shorthand
|
|
10191
|
-
* @memberof SurveyQuestion
|
|
10192
|
-
* @instance
|
|
10193
|
-
*/
|
|
10194
|
-
SurveyQuestion.prototype.shorthand = "";
|
|
10195
|
-
|
|
10196
10209
|
/**
|
|
10197
10210
|
* SurveyQuestion answers.
|
|
10198
10211
|
* @member {Array.<ISurveyAnswer>} answers
|
|
@@ -10227,11 +10240,9 @@ $root.SurveyQuestion = (function() {
|
|
|
10227
10240
|
writer = $Writer.create();
|
|
10228
10241
|
if (message.title != null && message.hasOwnProperty("title"))
|
|
10229
10242
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.title);
|
|
10230
|
-
if (message.shorthand != null && message.hasOwnProperty("shorthand"))
|
|
10231
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.shorthand);
|
|
10232
10243
|
if (message.answers != null && message.answers.length)
|
|
10233
10244
|
for (var i = 0; i < message.answers.length; ++i)
|
|
10234
|
-
$root.SurveyAnswer.encode(message.answers[i], writer.uint32(/* id
|
|
10245
|
+
$root.SurveyAnswer.encode(message.answers[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
10235
10246
|
return writer;
|
|
10236
10247
|
};
|
|
10237
10248
|
|
|
@@ -10270,9 +10281,6 @@ $root.SurveyQuestion = (function() {
|
|
|
10270
10281
|
message.title = reader.string();
|
|
10271
10282
|
break;
|
|
10272
10283
|
case 2:
|
|
10273
|
-
message.shorthand = reader.string();
|
|
10274
|
-
break;
|
|
10275
|
-
case 3:
|
|
10276
10284
|
if (!(message.answers && message.answers.length))
|
|
10277
10285
|
message.answers = [];
|
|
10278
10286
|
message.answers.push($root.SurveyAnswer.decode(reader, reader.uint32()));
|
|
@@ -10315,9 +10323,6 @@ $root.SurveyQuestion = (function() {
|
|
|
10315
10323
|
if (message.title != null && message.hasOwnProperty("title"))
|
|
10316
10324
|
if (!$util.isString(message.title))
|
|
10317
10325
|
return "title: string expected";
|
|
10318
|
-
if (message.shorthand != null && message.hasOwnProperty("shorthand"))
|
|
10319
|
-
if (!$util.isString(message.shorthand))
|
|
10320
|
-
return "shorthand: string expected";
|
|
10321
10326
|
if (message.answers != null && message.hasOwnProperty("answers")) {
|
|
10322
10327
|
if (!Array.isArray(message.answers))
|
|
10323
10328
|
return "answers: array expected";
|
|
@@ -10344,8 +10349,6 @@ $root.SurveyQuestion = (function() {
|
|
|
10344
10349
|
var message = new $root.SurveyQuestion();
|
|
10345
10350
|
if (object.title != null)
|
|
10346
10351
|
message.title = String(object.title);
|
|
10347
|
-
if (object.shorthand != null)
|
|
10348
|
-
message.shorthand = String(object.shorthand);
|
|
10349
10352
|
if (object.answers) {
|
|
10350
10353
|
if (!Array.isArray(object.answers))
|
|
10351
10354
|
throw TypeError(".SurveyQuestion.answers: array expected");
|
|
@@ -10374,14 +10377,10 @@ $root.SurveyQuestion = (function() {
|
|
|
10374
10377
|
var object = {};
|
|
10375
10378
|
if (options.arrays || options.defaults)
|
|
10376
10379
|
object.answers = [];
|
|
10377
|
-
if (options.defaults)
|
|
10380
|
+
if (options.defaults)
|
|
10378
10381
|
object.title = "";
|
|
10379
|
-
object.shorthand = "";
|
|
10380
|
-
}
|
|
10381
10382
|
if (message.title != null && message.hasOwnProperty("title"))
|
|
10382
10383
|
object.title = message.title;
|
|
10383
|
-
if (message.shorthand != null && message.hasOwnProperty("shorthand"))
|
|
10384
|
-
object.shorthand = message.shorthand;
|
|
10385
10384
|
if (message.answers && message.answers.length) {
|
|
10386
10385
|
object.answers = [];
|
|
10387
10386
|
for (var j = 0; j < message.answers.length; ++j)
|
package/package.json
CHANGED