@headspace/protos-events 1.98.0 → 1.100.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 +10 -1
- package/lib/index.js +46 -2
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -3794,7 +3794,10 @@ export enum ContentType {
|
|
|
3794
3794
|
CONTENT_TYPE_PODCAST = 10,
|
|
3795
3795
|
CONTENT_TYPE_EDHS = 11,
|
|
3796
3796
|
CONTENT_TYPE_GROUP_MEDITATION = 12,
|
|
3797
|
-
CONTENT_TYPE_INTERVIEW = 13
|
|
3797
|
+
CONTENT_TYPE_INTERVIEW = 13,
|
|
3798
|
+
CONTENT_TYPE_TECHNIQUE = 14,
|
|
3799
|
+
CONTENT_TYPE_COURSE_ACTIVITY = 15,
|
|
3800
|
+
CONTENT_TYPE_INTEGRATED_AUDIO = 16
|
|
3798
3801
|
}
|
|
3799
3802
|
|
|
3800
3803
|
/** Mode enum. */
|
|
@@ -4041,6 +4044,9 @@ export interface ISurveyQuestion {
|
|
|
4041
4044
|
/** SurveyQuestion title */
|
|
4042
4045
|
title?: (string|null);
|
|
4043
4046
|
|
|
4047
|
+
/** SurveyQuestion shorthand */
|
|
4048
|
+
shorthand?: (string|null);
|
|
4049
|
+
|
|
4044
4050
|
/** SurveyQuestion answers */
|
|
4045
4051
|
answers?: (ISurveyAnswer[]|null);
|
|
4046
4052
|
}
|
|
@@ -4057,6 +4063,9 @@ export class SurveyQuestion implements ISurveyQuestion {
|
|
|
4057
4063
|
/** SurveyQuestion title. */
|
|
4058
4064
|
public title: string;
|
|
4059
4065
|
|
|
4066
|
+
/** SurveyQuestion shorthand. */
|
|
4067
|
+
public shorthand: string;
|
|
4068
|
+
|
|
4060
4069
|
/** SurveyQuestion answers. */
|
|
4061
4070
|
public answers: ISurveyAnswer[];
|
|
4062
4071
|
|
package/lib/index.js
CHANGED
|
@@ -9068,6 +9068,9 @@ $root.ContentPlayed = (function() {
|
|
|
9068
9068
|
case 11:
|
|
9069
9069
|
case 12:
|
|
9070
9070
|
case 13:
|
|
9071
|
+
case 14:
|
|
9072
|
+
case 15:
|
|
9073
|
+
case 16:
|
|
9071
9074
|
break;
|
|
9072
9075
|
}
|
|
9073
9076
|
if (message.mode != null && message.hasOwnProperty("mode"))
|
|
@@ -9172,6 +9175,18 @@ $root.ContentPlayed = (function() {
|
|
|
9172
9175
|
case 13:
|
|
9173
9176
|
message.contentType = 13;
|
|
9174
9177
|
break;
|
|
9178
|
+
case "CONTENT_TYPE_TECHNIQUE":
|
|
9179
|
+
case 14:
|
|
9180
|
+
message.contentType = 14;
|
|
9181
|
+
break;
|
|
9182
|
+
case "CONTENT_TYPE_COURSE_ACTIVITY":
|
|
9183
|
+
case 15:
|
|
9184
|
+
message.contentType = 15;
|
|
9185
|
+
break;
|
|
9186
|
+
case "CONTENT_TYPE_INTEGRATED_AUDIO":
|
|
9187
|
+
case 16:
|
|
9188
|
+
message.contentType = 16;
|
|
9189
|
+
break;
|
|
9175
9190
|
}
|
|
9176
9191
|
switch (object.mode) {
|
|
9177
9192
|
case "MODE_UNRECOGNIZED":
|
|
@@ -9513,6 +9528,9 @@ $root.ContentPlayedBatch = (function() {
|
|
|
9513
9528
|
* @property {number} CONTENT_TYPE_EDHS=11 CONTENT_TYPE_EDHS value
|
|
9514
9529
|
* @property {number} CONTENT_TYPE_GROUP_MEDITATION=12 CONTENT_TYPE_GROUP_MEDITATION value
|
|
9515
9530
|
* @property {number} CONTENT_TYPE_INTERVIEW=13 CONTENT_TYPE_INTERVIEW value
|
|
9531
|
+
* @property {number} CONTENT_TYPE_TECHNIQUE=14 CONTENT_TYPE_TECHNIQUE value
|
|
9532
|
+
* @property {number} CONTENT_TYPE_COURSE_ACTIVITY=15 CONTENT_TYPE_COURSE_ACTIVITY value
|
|
9533
|
+
* @property {number} CONTENT_TYPE_INTEGRATED_AUDIO=16 CONTENT_TYPE_INTEGRATED_AUDIO value
|
|
9516
9534
|
*/
|
|
9517
9535
|
$root.ContentType = (function() {
|
|
9518
9536
|
var valuesById = {}, values = Object.create(valuesById);
|
|
@@ -9530,6 +9548,9 @@ $root.ContentType = (function() {
|
|
|
9530
9548
|
values[valuesById[11] = "CONTENT_TYPE_EDHS"] = 11;
|
|
9531
9549
|
values[valuesById[12] = "CONTENT_TYPE_GROUP_MEDITATION"] = 12;
|
|
9532
9550
|
values[valuesById[13] = "CONTENT_TYPE_INTERVIEW"] = 13;
|
|
9551
|
+
values[valuesById[14] = "CONTENT_TYPE_TECHNIQUE"] = 14;
|
|
9552
|
+
values[valuesById[15] = "CONTENT_TYPE_COURSE_ACTIVITY"] = 15;
|
|
9553
|
+
values[valuesById[16] = "CONTENT_TYPE_INTEGRATED_AUDIO"] = 16;
|
|
9533
9554
|
return values;
|
|
9534
9555
|
})();
|
|
9535
9556
|
|
|
@@ -10136,6 +10157,7 @@ $root.SurveyQuestion = (function() {
|
|
|
10136
10157
|
* @exports ISurveyQuestion
|
|
10137
10158
|
* @interface ISurveyQuestion
|
|
10138
10159
|
* @property {string|null} [title] SurveyQuestion title
|
|
10160
|
+
* @property {string|null} [shorthand] SurveyQuestion shorthand
|
|
10139
10161
|
* @property {Array.<ISurveyAnswer>|null} [answers] SurveyQuestion answers
|
|
10140
10162
|
*/
|
|
10141
10163
|
|
|
@@ -10163,6 +10185,14 @@ $root.SurveyQuestion = (function() {
|
|
|
10163
10185
|
*/
|
|
10164
10186
|
SurveyQuestion.prototype.title = "";
|
|
10165
10187
|
|
|
10188
|
+
/**
|
|
10189
|
+
* SurveyQuestion shorthand.
|
|
10190
|
+
* @member {string} shorthand
|
|
10191
|
+
* @memberof SurveyQuestion
|
|
10192
|
+
* @instance
|
|
10193
|
+
*/
|
|
10194
|
+
SurveyQuestion.prototype.shorthand = "";
|
|
10195
|
+
|
|
10166
10196
|
/**
|
|
10167
10197
|
* SurveyQuestion answers.
|
|
10168
10198
|
* @member {Array.<ISurveyAnswer>} answers
|
|
@@ -10197,9 +10227,11 @@ $root.SurveyQuestion = (function() {
|
|
|
10197
10227
|
writer = $Writer.create();
|
|
10198
10228
|
if (message.title != null && message.hasOwnProperty("title"))
|
|
10199
10229
|
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);
|
|
10200
10232
|
if (message.answers != null && message.answers.length)
|
|
10201
10233
|
for (var i = 0; i < message.answers.length; ++i)
|
|
10202
|
-
$root.SurveyAnswer.encode(message.answers[i], writer.uint32(/* id
|
|
10234
|
+
$root.SurveyAnswer.encode(message.answers[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
10203
10235
|
return writer;
|
|
10204
10236
|
};
|
|
10205
10237
|
|
|
@@ -10238,6 +10270,9 @@ $root.SurveyQuestion = (function() {
|
|
|
10238
10270
|
message.title = reader.string();
|
|
10239
10271
|
break;
|
|
10240
10272
|
case 2:
|
|
10273
|
+
message.shorthand = reader.string();
|
|
10274
|
+
break;
|
|
10275
|
+
case 3:
|
|
10241
10276
|
if (!(message.answers && message.answers.length))
|
|
10242
10277
|
message.answers = [];
|
|
10243
10278
|
message.answers.push($root.SurveyAnswer.decode(reader, reader.uint32()));
|
|
@@ -10280,6 +10315,9 @@ $root.SurveyQuestion = (function() {
|
|
|
10280
10315
|
if (message.title != null && message.hasOwnProperty("title"))
|
|
10281
10316
|
if (!$util.isString(message.title))
|
|
10282
10317
|
return "title: string expected";
|
|
10318
|
+
if (message.shorthand != null && message.hasOwnProperty("shorthand"))
|
|
10319
|
+
if (!$util.isString(message.shorthand))
|
|
10320
|
+
return "shorthand: string expected";
|
|
10283
10321
|
if (message.answers != null && message.hasOwnProperty("answers")) {
|
|
10284
10322
|
if (!Array.isArray(message.answers))
|
|
10285
10323
|
return "answers: array expected";
|
|
@@ -10306,6 +10344,8 @@ $root.SurveyQuestion = (function() {
|
|
|
10306
10344
|
var message = new $root.SurveyQuestion();
|
|
10307
10345
|
if (object.title != null)
|
|
10308
10346
|
message.title = String(object.title);
|
|
10347
|
+
if (object.shorthand != null)
|
|
10348
|
+
message.shorthand = String(object.shorthand);
|
|
10309
10349
|
if (object.answers) {
|
|
10310
10350
|
if (!Array.isArray(object.answers))
|
|
10311
10351
|
throw TypeError(".SurveyQuestion.answers: array expected");
|
|
@@ -10334,10 +10374,14 @@ $root.SurveyQuestion = (function() {
|
|
|
10334
10374
|
var object = {};
|
|
10335
10375
|
if (options.arrays || options.defaults)
|
|
10336
10376
|
object.answers = [];
|
|
10337
|
-
if (options.defaults)
|
|
10377
|
+
if (options.defaults) {
|
|
10338
10378
|
object.title = "";
|
|
10379
|
+
object.shorthand = "";
|
|
10380
|
+
}
|
|
10339
10381
|
if (message.title != null && message.hasOwnProperty("title"))
|
|
10340
10382
|
object.title = message.title;
|
|
10383
|
+
if (message.shorthand != null && message.hasOwnProperty("shorthand"))
|
|
10384
|
+
object.shorthand = message.shorthand;
|
|
10341
10385
|
if (message.answers && message.answers.length) {
|
|
10342
10386
|
object.answers = [];
|
|
10343
10387
|
for (var j = 0; j < message.answers.length; ++j)
|
package/package.json
CHANGED