@headspace/protos-events 1.99.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 CHANGED
@@ -4044,6 +4044,9 @@ export interface ISurveyQuestion {
4044
4044
  /** SurveyQuestion title */
4045
4045
  title?: (string|null);
4046
4046
 
4047
+ /** SurveyQuestion shorthand */
4048
+ shorthand?: (string|null);
4049
+
4047
4050
  /** SurveyQuestion answers */
4048
4051
  answers?: (ISurveyAnswer[]|null);
4049
4052
  }
@@ -4060,6 +4063,9 @@ export class SurveyQuestion implements ISurveyQuestion {
4060
4063
  /** SurveyQuestion title. */
4061
4064
  public title: string;
4062
4065
 
4066
+ /** SurveyQuestion shorthand. */
4067
+ public shorthand: string;
4068
+
4063
4069
  /** SurveyQuestion answers. */
4064
4070
  public answers: ISurveyAnswer[];
4065
4071
 
package/lib/index.js CHANGED
@@ -10157,6 +10157,7 @@ $root.SurveyQuestion = (function() {
10157
10157
  * @exports ISurveyQuestion
10158
10158
  * @interface ISurveyQuestion
10159
10159
  * @property {string|null} [title] SurveyQuestion title
10160
+ * @property {string|null} [shorthand] SurveyQuestion shorthand
10160
10161
  * @property {Array.<ISurveyAnswer>|null} [answers] SurveyQuestion answers
10161
10162
  */
10162
10163
 
@@ -10184,6 +10185,14 @@ $root.SurveyQuestion = (function() {
10184
10185
  */
10185
10186
  SurveyQuestion.prototype.title = "";
10186
10187
 
10188
+ /**
10189
+ * SurveyQuestion shorthand.
10190
+ * @member {string} shorthand
10191
+ * @memberof SurveyQuestion
10192
+ * @instance
10193
+ */
10194
+ SurveyQuestion.prototype.shorthand = "";
10195
+
10187
10196
  /**
10188
10197
  * SurveyQuestion answers.
10189
10198
  * @member {Array.<ISurveyAnswer>} answers
@@ -10218,9 +10227,11 @@ $root.SurveyQuestion = (function() {
10218
10227
  writer = $Writer.create();
10219
10228
  if (message.title != null && message.hasOwnProperty("title"))
10220
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);
10221
10232
  if (message.answers != null && message.answers.length)
10222
10233
  for (var i = 0; i < message.answers.length; ++i)
10223
- $root.SurveyAnswer.encode(message.answers[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
10234
+ $root.SurveyAnswer.encode(message.answers[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
10224
10235
  return writer;
10225
10236
  };
10226
10237
 
@@ -10259,6 +10270,9 @@ $root.SurveyQuestion = (function() {
10259
10270
  message.title = reader.string();
10260
10271
  break;
10261
10272
  case 2:
10273
+ message.shorthand = reader.string();
10274
+ break;
10275
+ case 3:
10262
10276
  if (!(message.answers && message.answers.length))
10263
10277
  message.answers = [];
10264
10278
  message.answers.push($root.SurveyAnswer.decode(reader, reader.uint32()));
@@ -10301,6 +10315,9 @@ $root.SurveyQuestion = (function() {
10301
10315
  if (message.title != null && message.hasOwnProperty("title"))
10302
10316
  if (!$util.isString(message.title))
10303
10317
  return "title: string expected";
10318
+ if (message.shorthand != null && message.hasOwnProperty("shorthand"))
10319
+ if (!$util.isString(message.shorthand))
10320
+ return "shorthand: string expected";
10304
10321
  if (message.answers != null && message.hasOwnProperty("answers")) {
10305
10322
  if (!Array.isArray(message.answers))
10306
10323
  return "answers: array expected";
@@ -10327,6 +10344,8 @@ $root.SurveyQuestion = (function() {
10327
10344
  var message = new $root.SurveyQuestion();
10328
10345
  if (object.title != null)
10329
10346
  message.title = String(object.title);
10347
+ if (object.shorthand != null)
10348
+ message.shorthand = String(object.shorthand);
10330
10349
  if (object.answers) {
10331
10350
  if (!Array.isArray(object.answers))
10332
10351
  throw TypeError(".SurveyQuestion.answers: array expected");
@@ -10355,10 +10374,14 @@ $root.SurveyQuestion = (function() {
10355
10374
  var object = {};
10356
10375
  if (options.arrays || options.defaults)
10357
10376
  object.answers = [];
10358
- if (options.defaults)
10377
+ if (options.defaults) {
10359
10378
  object.title = "";
10379
+ object.shorthand = "";
10380
+ }
10360
10381
  if (message.title != null && message.hasOwnProperty("title"))
10361
10382
  object.title = message.title;
10383
+ if (message.shorthand != null && message.hasOwnProperty("shorthand"))
10384
+ object.shorthand = message.shorthand;
10362
10385
  if (message.answers && message.answers.length) {
10363
10386
  object.answers = [];
10364
10387
  for (var j = 0; j < message.answers.length; ++j)
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.99.0"
19
+ "version": "1.100.0"
20
20
  }