@headspace/protos-events 1.105.0 → 1.106.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
@@ -4059,6 +4059,9 @@ export interface ISurveyQuestion {
4059
4059
 
4060
4060
  /** SurveyQuestion answers */
4061
4061
  answers?: (ISurveyAnswer[]|null);
4062
+
4063
+ /** SurveyQuestion shorthand */
4064
+ shorthand?: (string|null);
4062
4065
  }
4063
4066
 
4064
4067
  /** Represents a SurveyQuestion. */
@@ -4076,6 +4079,9 @@ export class SurveyQuestion implements ISurveyQuestion {
4076
4079
  /** SurveyQuestion answers. */
4077
4080
  public answers: ISurveyAnswer[];
4078
4081
 
4082
+ /** SurveyQuestion shorthand. */
4083
+ public shorthand: string;
4084
+
4079
4085
  /**
4080
4086
  * Creates a new SurveyQuestion instance using the specified properties.
4081
4087
  * @param [properties] Properties to set
package/lib/index.js CHANGED
@@ -10196,6 +10196,7 @@ $root.SurveyQuestion = (function() {
10196
10196
  * @interface ISurveyQuestion
10197
10197
  * @property {string|null} [title] SurveyQuestion title
10198
10198
  * @property {Array.<ISurveyAnswer>|null} [answers] SurveyQuestion answers
10199
+ * @property {string|null} [shorthand] SurveyQuestion shorthand
10199
10200
  */
10200
10201
 
10201
10202
  /**
@@ -10230,6 +10231,14 @@ $root.SurveyQuestion = (function() {
10230
10231
  */
10231
10232
  SurveyQuestion.prototype.answers = $util.emptyArray;
10232
10233
 
10234
+ /**
10235
+ * SurveyQuestion shorthand.
10236
+ * @member {string} shorthand
10237
+ * @memberof SurveyQuestion
10238
+ * @instance
10239
+ */
10240
+ SurveyQuestion.prototype.shorthand = "";
10241
+
10233
10242
  /**
10234
10243
  * Creates a new SurveyQuestion instance using the specified properties.
10235
10244
  * @function create
@@ -10259,6 +10268,8 @@ $root.SurveyQuestion = (function() {
10259
10268
  if (message.answers != null && message.answers.length)
10260
10269
  for (var i = 0; i < message.answers.length; ++i)
10261
10270
  $root.SurveyAnswer.encode(message.answers[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
10271
+ if (message.shorthand != null && message.hasOwnProperty("shorthand"))
10272
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.shorthand);
10262
10273
  return writer;
10263
10274
  };
10264
10275
 
@@ -10301,6 +10312,9 @@ $root.SurveyQuestion = (function() {
10301
10312
  message.answers = [];
10302
10313
  message.answers.push($root.SurveyAnswer.decode(reader, reader.uint32()));
10303
10314
  break;
10315
+ case 3:
10316
+ message.shorthand = reader.string();
10317
+ break;
10304
10318
  default:
10305
10319
  reader.skipType(tag & 7);
10306
10320
  break;
@@ -10348,6 +10362,9 @@ $root.SurveyQuestion = (function() {
10348
10362
  return "answers." + error;
10349
10363
  }
10350
10364
  }
10365
+ if (message.shorthand != null && message.hasOwnProperty("shorthand"))
10366
+ if (!$util.isString(message.shorthand))
10367
+ return "shorthand: string expected";
10351
10368
  return null;
10352
10369
  };
10353
10370
 
@@ -10375,6 +10392,8 @@ $root.SurveyQuestion = (function() {
10375
10392
  message.answers[i] = $root.SurveyAnswer.fromObject(object.answers[i]);
10376
10393
  }
10377
10394
  }
10395
+ if (object.shorthand != null)
10396
+ message.shorthand = String(object.shorthand);
10378
10397
  return message;
10379
10398
  };
10380
10399
 
@@ -10393,8 +10412,10 @@ $root.SurveyQuestion = (function() {
10393
10412
  var object = {};
10394
10413
  if (options.arrays || options.defaults)
10395
10414
  object.answers = [];
10396
- if (options.defaults)
10415
+ if (options.defaults) {
10397
10416
  object.title = "";
10417
+ object.shorthand = "";
10418
+ }
10398
10419
  if (message.title != null && message.hasOwnProperty("title"))
10399
10420
  object.title = message.title;
10400
10421
  if (message.answers && message.answers.length) {
@@ -10402,6 +10423,8 @@ $root.SurveyQuestion = (function() {
10402
10423
  for (var j = 0; j < message.answers.length; ++j)
10403
10424
  object.answers[j] = $root.SurveyAnswer.toObject(message.answers[j], options);
10404
10425
  }
10426
+ if (message.shorthand != null && message.hasOwnProperty("shorthand"))
10427
+ object.shorthand = message.shorthand;
10405
10428
  return object;
10406
10429
  };
10407
10430
 
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.105.0"
19
+ "version": "1.106.0"
20
20
  }