@headspace/protos-events 1.84.0 → 1.86.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
@@ -3885,6 +3885,9 @@ export interface ISurveyAnswer {
3885
3885
 
3886
3886
  /** SurveyAnswer choice */
3887
3887
  choice?: (string|null);
3888
+
3889
+ /** SurveyAnswer score */
3890
+ score?: (number|null);
3888
3891
  }
3889
3892
 
3890
3893
  /** Represents a SurveyAnswer. */
@@ -3902,6 +3905,9 @@ export class SurveyAnswer implements ISurveyAnswer {
3902
3905
  /** SurveyAnswer choice. */
3903
3906
  public choice: string;
3904
3907
 
3908
+ /** SurveyAnswer score. */
3909
+ public score: number;
3910
+
3905
3911
  /** SurveyAnswer answer. */
3906
3912
  public answer?: ("text"|"choice");
3907
3913
 
package/lib/index.js CHANGED
@@ -9666,6 +9666,7 @@ $root.SurveyAnswer = (function() {
9666
9666
  * @interface ISurveyAnswer
9667
9667
  * @property {string|null} [text] SurveyAnswer text
9668
9668
  * @property {string|null} [choice] SurveyAnswer choice
9669
+ * @property {number|null} [score] SurveyAnswer score
9669
9670
  */
9670
9671
 
9671
9672
  /**
@@ -9699,6 +9700,14 @@ $root.SurveyAnswer = (function() {
9699
9700
  */
9700
9701
  SurveyAnswer.prototype.choice = "";
9701
9702
 
9703
+ /**
9704
+ * SurveyAnswer score.
9705
+ * @member {number} score
9706
+ * @memberof SurveyAnswer
9707
+ * @instance
9708
+ */
9709
+ SurveyAnswer.prototype.score = 0;
9710
+
9702
9711
  // OneOf field names bound to virtual getters and setters
9703
9712
  var $oneOfFields;
9704
9713
 
@@ -9741,6 +9750,8 @@ $root.SurveyAnswer = (function() {
9741
9750
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.text);
9742
9751
  if (message.choice != null && message.hasOwnProperty("choice"))
9743
9752
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.choice);
9753
+ if (message.score != null && message.hasOwnProperty("score"))
9754
+ writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.score);
9744
9755
  return writer;
9745
9756
  };
9746
9757
 
@@ -9781,6 +9792,9 @@ $root.SurveyAnswer = (function() {
9781
9792
  case 2:
9782
9793
  message.choice = reader.string();
9783
9794
  break;
9795
+ case 3:
9796
+ message.score = reader.uint32();
9797
+ break;
9784
9798
  default:
9785
9799
  reader.skipType(tag & 7);
9786
9800
  break;
@@ -9829,6 +9843,9 @@ $root.SurveyAnswer = (function() {
9829
9843
  if (!$util.isString(message.choice))
9830
9844
  return "choice: string expected";
9831
9845
  }
9846
+ if (message.score != null && message.hasOwnProperty("score"))
9847
+ if (!$util.isInteger(message.score))
9848
+ return "score: integer expected";
9832
9849
  return null;
9833
9850
  };
9834
9851
 
@@ -9848,6 +9865,8 @@ $root.SurveyAnswer = (function() {
9848
9865
  message.text = String(object.text);
9849
9866
  if (object.choice != null)
9850
9867
  message.choice = String(object.choice);
9868
+ if (object.score != null)
9869
+ message.score = object.score >>> 0;
9851
9870
  return message;
9852
9871
  };
9853
9872
 
@@ -9864,6 +9883,8 @@ $root.SurveyAnswer = (function() {
9864
9883
  if (!options)
9865
9884
  options = {};
9866
9885
  var object = {};
9886
+ if (options.defaults)
9887
+ object.score = 0;
9867
9888
  if (message.text != null && message.hasOwnProperty("text")) {
9868
9889
  object.text = message.text;
9869
9890
  if (options.oneofs)
@@ -9874,6 +9895,8 @@ $root.SurveyAnswer = (function() {
9874
9895
  if (options.oneofs)
9875
9896
  object.answer = "choice";
9876
9897
  }
9898
+ if (message.score != null && message.hasOwnProperty("score"))
9899
+ object.score = message.score;
9877
9900
  return object;
9878
9901
  };
9879
9902
 
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.84.0"
19
+ "version": "1.86.0"
20
20
  }