@headspace/protos-events 1.446.0 → 1.448.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
@@ -26355,6 +26355,9 @@ export interface ISurveyResponse {
26355
26355
 
26356
26356
  /** SurveyResponse reflectionNote */
26357
26357
  reflectionNote?: (string|null);
26358
+
26359
+ /** SurveyResponse id */
26360
+ id?: (string|null);
26358
26361
  }
26359
26362
 
26360
26363
  /** Represents a SurveyResponse. */
@@ -26384,6 +26387,9 @@ export class SurveyResponse implements ISurveyResponse {
26384
26387
  /** SurveyResponse reflectionNote. */
26385
26388
  public reflectionNote: string;
26386
26389
 
26390
+ /** SurveyResponse id. */
26391
+ public id: string;
26392
+
26387
26393
  /**
26388
26394
  * Creates a new SurveyResponse instance using the specified properties.
26389
26395
  * @param [properties] Properties to set
@@ -26466,6 +26472,9 @@ export interface ISurveyQuestion {
26466
26472
 
26467
26473
  /** SurveyQuestion shorthand */
26468
26474
  shorthand?: (string|null);
26475
+
26476
+ /** SurveyQuestion id */
26477
+ id?: (string|null);
26469
26478
  }
26470
26479
 
26471
26480
  /** Represents a SurveyQuestion. */
@@ -26486,6 +26495,9 @@ export class SurveyQuestion implements ISurveyQuestion {
26486
26495
  /** SurveyQuestion shorthand. */
26487
26496
  public shorthand: string;
26488
26497
 
26498
+ /** SurveyQuestion id. */
26499
+ public id: string;
26500
+
26489
26501
  /**
26490
26502
  * Creates a new SurveyQuestion instance using the specified properties.
26491
26503
  * @param [properties] Properties to set
@@ -26568,6 +26580,9 @@ export interface ISurveyAnswer {
26568
26580
 
26569
26581
  /** SurveyAnswer score */
26570
26582
  score?: (number|null);
26583
+
26584
+ /** SurveyAnswer id */
26585
+ id?: (string|null);
26571
26586
  }
26572
26587
 
26573
26588
  /** Represents a SurveyAnswer. */
@@ -26588,6 +26603,9 @@ export class SurveyAnswer implements ISurveyAnswer {
26588
26603
  /** SurveyAnswer score. */
26589
26604
  public score: number;
26590
26605
 
26606
+ /** SurveyAnswer id. */
26607
+ public id: string;
26608
+
26591
26609
  /** SurveyAnswer answer. */
26592
26610
  public answer?: ("text"|"choice");
26593
26611
 
@@ -37898,6 +37916,12 @@ export interface IModerationActionPerformed {
37898
37916
 
37899
37917
  /** ModerationActionPerformed moderationSource */
37900
37918
  moderationSource?: (ModerationActionPerformed.ModerationSource|null);
37919
+
37920
+ /** ModerationActionPerformed contentId */
37921
+ contentId?: (string|null);
37922
+
37923
+ /** ModerationActionPerformed contentAuthorId */
37924
+ contentAuthorId?: (string|null);
37901
37925
  }
37902
37926
 
37903
37927
  /** Represents a ModerationActionPerformed. */
@@ -37930,6 +37954,12 @@ export class ModerationActionPerformed implements IModerationActionPerformed {
37930
37954
  /** ModerationActionPerformed moderationSource. */
37931
37955
  public moderationSource: ModerationActionPerformed.ModerationSource;
37932
37956
 
37957
+ /** ModerationActionPerformed contentId. */
37958
+ public contentId: string;
37959
+
37960
+ /** ModerationActionPerformed contentAuthorId. */
37961
+ public contentAuthorId: string;
37962
+
37933
37963
  /**
37934
37964
  * Creates a new ModerationActionPerformed instance using the specified properties.
37935
37965
  * @param [properties] Properties to set
package/lib/index.js CHANGED
@@ -73309,6 +73309,7 @@ $root.SurveyResponse = (function() {
73309
73309
  * @property {string|null} [createdAtIsoDate] SurveyResponse createdAtIsoDate
73310
73310
  * @property {string|null} [surveyType] SurveyResponse surveyType
73311
73311
  * @property {string|null} [reflectionNote] SurveyResponse reflectionNote
73312
+ * @property {string|null} [id] SurveyResponse id
73312
73313
  */
73313
73314
 
73314
73315
  /**
@@ -73375,6 +73376,14 @@ $root.SurveyResponse = (function() {
73375
73376
  */
73376
73377
  SurveyResponse.prototype.reflectionNote = "";
73377
73378
 
73379
+ /**
73380
+ * SurveyResponse id.
73381
+ * @member {string} id
73382
+ * @memberof SurveyResponse
73383
+ * @instance
73384
+ */
73385
+ SurveyResponse.prototype.id = "";
73386
+
73378
73387
  /**
73379
73388
  * Creates a new SurveyResponse instance using the specified properties.
73380
73389
  * @function create
@@ -73412,6 +73421,8 @@ $root.SurveyResponse = (function() {
73412
73421
  writer.uint32(/* id 5, wireType 2 =*/42).string(message.surveyType);
73413
73422
  if (message.reflectionNote != null && message.hasOwnProperty("reflectionNote"))
73414
73423
  writer.uint32(/* id 6, wireType 2 =*/50).string(message.reflectionNote);
73424
+ if (message.id != null && message.hasOwnProperty("id"))
73425
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.id);
73415
73426
  return writer;
73416
73427
  };
73417
73428
 
@@ -73466,6 +73477,9 @@ $root.SurveyResponse = (function() {
73466
73477
  case 6:
73467
73478
  message.reflectionNote = reader.string();
73468
73479
  break;
73480
+ case 7:
73481
+ message.id = reader.string();
73482
+ break;
73469
73483
  default:
73470
73484
  reader.skipType(tag & 7);
73471
73485
  break;
@@ -73525,6 +73539,9 @@ $root.SurveyResponse = (function() {
73525
73539
  if (message.reflectionNote != null && message.hasOwnProperty("reflectionNote"))
73526
73540
  if (!$util.isString(message.reflectionNote))
73527
73541
  return "reflectionNote: string expected";
73542
+ if (message.id != null && message.hasOwnProperty("id"))
73543
+ if (!$util.isString(message.id))
73544
+ return "id: string expected";
73528
73545
  return null;
73529
73546
  };
73530
73547
 
@@ -73560,6 +73577,8 @@ $root.SurveyResponse = (function() {
73560
73577
  message.surveyType = String(object.surveyType);
73561
73578
  if (object.reflectionNote != null)
73562
73579
  message.reflectionNote = String(object.reflectionNote);
73580
+ if (object.id != null)
73581
+ message.id = String(object.id);
73563
73582
  return message;
73564
73583
  };
73565
73584
 
@@ -73584,6 +73603,7 @@ $root.SurveyResponse = (function() {
73584
73603
  object.createdAtIsoDate = "";
73585
73604
  object.surveyType = "";
73586
73605
  object.reflectionNote = "";
73606
+ object.id = "";
73587
73607
  }
73588
73608
  if (message.userId != null && message.hasOwnProperty("userId"))
73589
73609
  object.userId = message.userId;
@@ -73600,6 +73620,8 @@ $root.SurveyResponse = (function() {
73600
73620
  object.surveyType = message.surveyType;
73601
73621
  if (message.reflectionNote != null && message.hasOwnProperty("reflectionNote"))
73602
73622
  object.reflectionNote = message.reflectionNote;
73623
+ if (message.id != null && message.hasOwnProperty("id"))
73624
+ object.id = message.id;
73603
73625
  return object;
73604
73626
  };
73605
73627
 
@@ -73626,6 +73648,7 @@ $root.SurveyQuestion = (function() {
73626
73648
  * @property {string|null} [title] SurveyQuestion title
73627
73649
  * @property {Array.<ISurveyAnswer>|null} [answers] SurveyQuestion answers
73628
73650
  * @property {string|null} [shorthand] SurveyQuestion shorthand
73651
+ * @property {string|null} [id] SurveyQuestion id
73629
73652
  */
73630
73653
 
73631
73654
  /**
@@ -73668,6 +73691,14 @@ $root.SurveyQuestion = (function() {
73668
73691
  */
73669
73692
  SurveyQuestion.prototype.shorthand = "";
73670
73693
 
73694
+ /**
73695
+ * SurveyQuestion id.
73696
+ * @member {string} id
73697
+ * @memberof SurveyQuestion
73698
+ * @instance
73699
+ */
73700
+ SurveyQuestion.prototype.id = "";
73701
+
73671
73702
  /**
73672
73703
  * Creates a new SurveyQuestion instance using the specified properties.
73673
73704
  * @function create
@@ -73699,6 +73730,8 @@ $root.SurveyQuestion = (function() {
73699
73730
  $root.SurveyAnswer.encode(message.answers[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
73700
73731
  if (message.shorthand != null && message.hasOwnProperty("shorthand"))
73701
73732
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.shorthand);
73733
+ if (message.id != null && message.hasOwnProperty("id"))
73734
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.id);
73702
73735
  return writer;
73703
73736
  };
73704
73737
 
@@ -73744,6 +73777,9 @@ $root.SurveyQuestion = (function() {
73744
73777
  case 3:
73745
73778
  message.shorthand = reader.string();
73746
73779
  break;
73780
+ case 4:
73781
+ message.id = reader.string();
73782
+ break;
73747
73783
  default:
73748
73784
  reader.skipType(tag & 7);
73749
73785
  break;
@@ -73794,6 +73830,9 @@ $root.SurveyQuestion = (function() {
73794
73830
  if (message.shorthand != null && message.hasOwnProperty("shorthand"))
73795
73831
  if (!$util.isString(message.shorthand))
73796
73832
  return "shorthand: string expected";
73833
+ if (message.id != null && message.hasOwnProperty("id"))
73834
+ if (!$util.isString(message.id))
73835
+ return "id: string expected";
73797
73836
  return null;
73798
73837
  };
73799
73838
 
@@ -73823,6 +73862,8 @@ $root.SurveyQuestion = (function() {
73823
73862
  }
73824
73863
  if (object.shorthand != null)
73825
73864
  message.shorthand = String(object.shorthand);
73865
+ if (object.id != null)
73866
+ message.id = String(object.id);
73826
73867
  return message;
73827
73868
  };
73828
73869
 
@@ -73844,6 +73885,7 @@ $root.SurveyQuestion = (function() {
73844
73885
  if (options.defaults) {
73845
73886
  object.title = "";
73846
73887
  object.shorthand = "";
73888
+ object.id = "";
73847
73889
  }
73848
73890
  if (message.title != null && message.hasOwnProperty("title"))
73849
73891
  object.title = message.title;
@@ -73854,6 +73896,8 @@ $root.SurveyQuestion = (function() {
73854
73896
  }
73855
73897
  if (message.shorthand != null && message.hasOwnProperty("shorthand"))
73856
73898
  object.shorthand = message.shorthand;
73899
+ if (message.id != null && message.hasOwnProperty("id"))
73900
+ object.id = message.id;
73857
73901
  return object;
73858
73902
  };
73859
73903
 
@@ -73880,6 +73924,7 @@ $root.SurveyAnswer = (function() {
73880
73924
  * @property {string|null} [text] SurveyAnswer text
73881
73925
  * @property {string|null} [choice] SurveyAnswer choice
73882
73926
  * @property {number|null} [score] SurveyAnswer score
73927
+ * @property {string|null} [id] SurveyAnswer id
73883
73928
  */
73884
73929
 
73885
73930
  /**
@@ -73921,6 +73966,14 @@ $root.SurveyAnswer = (function() {
73921
73966
  */
73922
73967
  SurveyAnswer.prototype.score = 0;
73923
73968
 
73969
+ /**
73970
+ * SurveyAnswer id.
73971
+ * @member {string} id
73972
+ * @memberof SurveyAnswer
73973
+ * @instance
73974
+ */
73975
+ SurveyAnswer.prototype.id = "";
73976
+
73924
73977
  // OneOf field names bound to virtual getters and setters
73925
73978
  var $oneOfFields;
73926
73979
 
@@ -73965,6 +74018,8 @@ $root.SurveyAnswer = (function() {
73965
74018
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.choice);
73966
74019
  if (message.score != null && message.hasOwnProperty("score"))
73967
74020
  writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.score);
74021
+ if (message.id != null && message.hasOwnProperty("id"))
74022
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.id);
73968
74023
  return writer;
73969
74024
  };
73970
74025
 
@@ -74008,6 +74063,9 @@ $root.SurveyAnswer = (function() {
74008
74063
  case 3:
74009
74064
  message.score = reader.uint32();
74010
74065
  break;
74066
+ case 4:
74067
+ message.id = reader.string();
74068
+ break;
74011
74069
  default:
74012
74070
  reader.skipType(tag & 7);
74013
74071
  break;
@@ -74059,6 +74117,9 @@ $root.SurveyAnswer = (function() {
74059
74117
  if (message.score != null && message.hasOwnProperty("score"))
74060
74118
  if (!$util.isInteger(message.score))
74061
74119
  return "score: integer expected";
74120
+ if (message.id != null && message.hasOwnProperty("id"))
74121
+ if (!$util.isString(message.id))
74122
+ return "id: string expected";
74062
74123
  return null;
74063
74124
  };
74064
74125
 
@@ -74080,6 +74141,8 @@ $root.SurveyAnswer = (function() {
74080
74141
  message.choice = String(object.choice);
74081
74142
  if (object.score != null)
74082
74143
  message.score = object.score >>> 0;
74144
+ if (object.id != null)
74145
+ message.id = String(object.id);
74083
74146
  return message;
74084
74147
  };
74085
74148
 
@@ -74096,8 +74159,10 @@ $root.SurveyAnswer = (function() {
74096
74159
  if (!options)
74097
74160
  options = {};
74098
74161
  var object = {};
74099
- if (options.defaults)
74162
+ if (options.defaults) {
74100
74163
  object.score = 0;
74164
+ object.id = "";
74165
+ }
74101
74166
  if (message.text != null && message.hasOwnProperty("text")) {
74102
74167
  object.text = message.text;
74103
74168
  if (options.oneofs)
@@ -74110,6 +74175,8 @@ $root.SurveyAnswer = (function() {
74110
74175
  }
74111
74176
  if (message.score != null && message.hasOwnProperty("score"))
74112
74177
  object.score = message.score;
74178
+ if (message.id != null && message.hasOwnProperty("id"))
74179
+ object.id = message.id;
74113
74180
  return object;
74114
74181
  };
74115
74182
 
@@ -106355,6 +106422,8 @@ $root.ModerationActionPerformed = (function() {
106355
106422
  * @property {Array.<ModerationActionPerformed.ReportCategory>|null} [proposedReportCategories] ModerationActionPerformed proposedReportCategories
106356
106423
  * @property {number|Long|null} [createdAt] ModerationActionPerformed createdAt
106357
106424
  * @property {ModerationActionPerformed.ModerationSource|null} [moderationSource] ModerationActionPerformed moderationSource
106425
+ * @property {string|null} [contentId] ModerationActionPerformed contentId
106426
+ * @property {string|null} [contentAuthorId] ModerationActionPerformed contentAuthorId
106358
106427
  */
106359
106428
 
106360
106429
  /**
@@ -106429,6 +106498,22 @@ $root.ModerationActionPerformed = (function() {
106429
106498
  */
106430
106499
  ModerationActionPerformed.prototype.moderationSource = 0;
106431
106500
 
106501
+ /**
106502
+ * ModerationActionPerformed contentId.
106503
+ * @member {string} contentId
106504
+ * @memberof ModerationActionPerformed
106505
+ * @instance
106506
+ */
106507
+ ModerationActionPerformed.prototype.contentId = "";
106508
+
106509
+ /**
106510
+ * ModerationActionPerformed contentAuthorId.
106511
+ * @member {string} contentAuthorId
106512
+ * @memberof ModerationActionPerformed
106513
+ * @instance
106514
+ */
106515
+ ModerationActionPerformed.prototype.contentAuthorId = "";
106516
+
106432
106517
  /**
106433
106518
  * Creates a new ModerationActionPerformed instance using the specified properties.
106434
106519
  * @function create
@@ -106471,6 +106556,10 @@ $root.ModerationActionPerformed = (function() {
106471
106556
  writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.createdAt);
106472
106557
  if (message.moderationSource != null && message.hasOwnProperty("moderationSource"))
106473
106558
  writer.uint32(/* id 7, wireType 0 =*/56).int32(message.moderationSource);
106559
+ if (message.contentId != null && message.hasOwnProperty("contentId"))
106560
+ writer.uint32(/* id 8, wireType 2 =*/66).string(message.contentId);
106561
+ if (message.contentAuthorId != null && message.hasOwnProperty("contentAuthorId"))
106562
+ writer.uint32(/* id 9, wireType 2 =*/74).string(message.contentAuthorId);
106474
106563
  return writer;
106475
106564
  };
106476
106565
 
@@ -106533,6 +106622,12 @@ $root.ModerationActionPerformed = (function() {
106533
106622
  case 7:
106534
106623
  message.moderationSource = reader.int32();
106535
106624
  break;
106625
+ case 8:
106626
+ message.contentId = reader.string();
106627
+ break;
106628
+ case 9:
106629
+ message.contentAuthorId = reader.string();
106630
+ break;
106536
106631
  default:
106537
106632
  reader.skipType(tag & 7);
106538
106633
  break;
@@ -106623,6 +106718,12 @@ $root.ModerationActionPerformed = (function() {
106623
106718
  case 2:
106624
106719
  break;
106625
106720
  }
106721
+ if (message.contentId != null && message.hasOwnProperty("contentId"))
106722
+ if (!$util.isString(message.contentId))
106723
+ return "contentId: string expected";
106724
+ if (message.contentAuthorId != null && message.hasOwnProperty("contentAuthorId"))
106725
+ if (!$util.isString(message.contentAuthorId))
106726
+ return "contentAuthorId: string expected";
106626
106727
  return null;
106627
106728
  };
106628
106729
 
@@ -106750,6 +106851,10 @@ $root.ModerationActionPerformed = (function() {
106750
106851
  message.moderationSource = 2;
106751
106852
  break;
106752
106853
  }
106854
+ if (object.contentId != null)
106855
+ message.contentId = String(object.contentId);
106856
+ if (object.contentAuthorId != null)
106857
+ message.contentAuthorId = String(object.contentAuthorId);
106753
106858
  return message;
106754
106859
  };
106755
106860
 
@@ -106779,6 +106884,8 @@ $root.ModerationActionPerformed = (function() {
106779
106884
  } else
106780
106885
  object.createdAt = options.longs === String ? "0" : 0;
106781
106886
  object.moderationSource = options.enums === String ? "MODERATION_SOURCE_UNKNOWN" : 0;
106887
+ object.contentId = "";
106888
+ object.contentAuthorId = "";
106782
106889
  }
106783
106890
  if (message.reportId != null && message.hasOwnProperty("reportId"))
106784
106891
  object.reportId = message.reportId;
@@ -106800,6 +106907,10 @@ $root.ModerationActionPerformed = (function() {
106800
106907
  object.createdAt = options.longs === String ? $util.Long.prototype.toString.call(message.createdAt) : options.longs === Number ? new $util.LongBits(message.createdAt.low >>> 0, message.createdAt.high >>> 0).toNumber(true) : message.createdAt;
106801
106908
  if (message.moderationSource != null && message.hasOwnProperty("moderationSource"))
106802
106909
  object.moderationSource = options.enums === String ? $root.ModerationActionPerformed.ModerationSource[message.moderationSource] : message.moderationSource;
106910
+ if (message.contentId != null && message.hasOwnProperty("contentId"))
106911
+ object.contentId = message.contentId;
106912
+ if (message.contentAuthorId != null && message.hasOwnProperty("contentAuthorId"))
106913
+ object.contentAuthorId = message.contentAuthorId;
106803
106914
  return object;
106804
106915
  };
106805
106916
 
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.446.0"
19
+ "version": "1.448.0"
20
20
  }