@headspace/protos-events 1.433.0 → 1.434.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
@@ -37176,6 +37176,9 @@ export interface IModerationActionPerformed {
37176
37176
 
37177
37177
  /** ModerationActionPerformed createdAt */
37178
37178
  createdAt?: (number|Long|null);
37179
+
37180
+ /** ModerationActionPerformed moderationSource */
37181
+ moderationSource?: (ModerationActionPerformed.ModerationSource|null);
37179
37182
  }
37180
37183
 
37181
37184
  /** Represents a ModerationActionPerformed. */
@@ -37205,6 +37208,9 @@ export class ModerationActionPerformed implements IModerationActionPerformed {
37205
37208
  /** ModerationActionPerformed createdAt. */
37206
37209
  public createdAt: (number|Long);
37207
37210
 
37211
+ /** ModerationActionPerformed moderationSource. */
37212
+ public moderationSource: ModerationActionPerformed.ModerationSource;
37213
+
37208
37214
  /**
37209
37215
  * Creates a new ModerationActionPerformed instance using the specified properties.
37210
37216
  * @param [properties] Properties to set
@@ -37303,6 +37309,13 @@ export namespace ModerationActionPerformed {
37303
37309
  REPORT_CATEGORY_VIOLENCE = 10,
37304
37310
  REPORT_CATEGORY_VIOLENCE_GRAPHIC = 11
37305
37311
  }
37312
+
37313
+ /** ModerationSource enum. */
37314
+ enum ModerationSource {
37315
+ MODERATION_SOURCE_UNKNOWN = 0,
37316
+ MODERATION_SOURCE_DISCUSSION_POST = 1,
37317
+ MODERATION_SOURCE_COMMUNITY_USER_NAME = 2
37318
+ }
37306
37319
  }
37307
37320
 
37308
37321
  /** Properties of a WakeupPlaylistCreated. */
package/lib/index.js CHANGED
@@ -104585,6 +104585,7 @@ $root.ModerationActionPerformed = (function() {
104585
104585
  * @property {string|null} [actionDescription] ModerationActionPerformed actionDescription
104586
104586
  * @property {Array.<ModerationActionPerformed.ReportCategory>|null} [proposedReportCategories] ModerationActionPerformed proposedReportCategories
104587
104587
  * @property {number|Long|null} [createdAt] ModerationActionPerformed createdAt
104588
+ * @property {ModerationActionPerformed.ModerationSource|null} [moderationSource] ModerationActionPerformed moderationSource
104588
104589
  */
104589
104590
 
104590
104591
  /**
@@ -104651,6 +104652,14 @@ $root.ModerationActionPerformed = (function() {
104651
104652
  */
104652
104653
  ModerationActionPerformed.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
104653
104654
 
104655
+ /**
104656
+ * ModerationActionPerformed moderationSource.
104657
+ * @member {ModerationActionPerformed.ModerationSource} moderationSource
104658
+ * @memberof ModerationActionPerformed
104659
+ * @instance
104660
+ */
104661
+ ModerationActionPerformed.prototype.moderationSource = 0;
104662
+
104654
104663
  /**
104655
104664
  * Creates a new ModerationActionPerformed instance using the specified properties.
104656
104665
  * @function create
@@ -104691,6 +104700,8 @@ $root.ModerationActionPerformed = (function() {
104691
104700
  }
104692
104701
  if (message.createdAt != null && message.hasOwnProperty("createdAt"))
104693
104702
  writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.createdAt);
104703
+ if (message.moderationSource != null && message.hasOwnProperty("moderationSource"))
104704
+ writer.uint32(/* id 7, wireType 0 =*/56).int32(message.moderationSource);
104694
104705
  return writer;
104695
104706
  };
104696
104707
 
@@ -104750,6 +104761,9 @@ $root.ModerationActionPerformed = (function() {
104750
104761
  case 6:
104751
104762
  message.createdAt = reader.uint64();
104752
104763
  break;
104764
+ case 7:
104765
+ message.moderationSource = reader.int32();
104766
+ break;
104753
104767
  default:
104754
104768
  reader.skipType(tag & 7);
104755
104769
  break;
@@ -104831,6 +104845,15 @@ $root.ModerationActionPerformed = (function() {
104831
104845
  if (message.createdAt != null && message.hasOwnProperty("createdAt"))
104832
104846
  if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
104833
104847
  return "createdAt: integer|Long expected";
104848
+ if (message.moderationSource != null && message.hasOwnProperty("moderationSource"))
104849
+ switch (message.moderationSource) {
104850
+ default:
104851
+ return "moderationSource: enum value expected";
104852
+ case 0:
104853
+ case 1:
104854
+ case 2:
104855
+ break;
104856
+ }
104834
104857
  return null;
104835
104858
  };
104836
104859
 
@@ -104944,6 +104967,20 @@ $root.ModerationActionPerformed = (function() {
104944
104967
  message.createdAt = object.createdAt;
104945
104968
  else if (typeof object.createdAt === "object")
104946
104969
  message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
104970
+ switch (object.moderationSource) {
104971
+ case "MODERATION_SOURCE_UNKNOWN":
104972
+ case 0:
104973
+ message.moderationSource = 0;
104974
+ break;
104975
+ case "MODERATION_SOURCE_DISCUSSION_POST":
104976
+ case 1:
104977
+ message.moderationSource = 1;
104978
+ break;
104979
+ case "MODERATION_SOURCE_COMMUNITY_USER_NAME":
104980
+ case 2:
104981
+ message.moderationSource = 2;
104982
+ break;
104983
+ }
104947
104984
  return message;
104948
104985
  };
104949
104986
 
@@ -104972,6 +105009,7 @@ $root.ModerationActionPerformed = (function() {
104972
105009
  object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
104973
105010
  } else
104974
105011
  object.createdAt = options.longs === String ? "0" : 0;
105012
+ object.moderationSource = options.enums === String ? "MODERATION_SOURCE_UNKNOWN" : 0;
104975
105013
  }
104976
105014
  if (message.reportId != null && message.hasOwnProperty("reportId"))
104977
105015
  object.reportId = message.reportId;
@@ -104991,6 +105029,8 @@ $root.ModerationActionPerformed = (function() {
104991
105029
  object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
104992
105030
  else
104993
105031
  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;
105032
+ if (message.moderationSource != null && message.hasOwnProperty("moderationSource"))
105033
+ object.moderationSource = options.enums === String ? $root.ModerationActionPerformed.ModerationSource[message.moderationSource] : message.moderationSource;
104994
105034
  return object;
104995
105035
  };
104996
105036
 
@@ -105061,6 +105101,22 @@ $root.ModerationActionPerformed = (function() {
105061
105101
  return values;
105062
105102
  })();
105063
105103
 
105104
+ /**
105105
+ * ModerationSource enum.
105106
+ * @name ModerationActionPerformed.ModerationSource
105107
+ * @enum {string}
105108
+ * @property {number} MODERATION_SOURCE_UNKNOWN=0 MODERATION_SOURCE_UNKNOWN value
105109
+ * @property {number} MODERATION_SOURCE_DISCUSSION_POST=1 MODERATION_SOURCE_DISCUSSION_POST value
105110
+ * @property {number} MODERATION_SOURCE_COMMUNITY_USER_NAME=2 MODERATION_SOURCE_COMMUNITY_USER_NAME value
105111
+ */
105112
+ ModerationActionPerformed.ModerationSource = (function() {
105113
+ var valuesById = {}, values = Object.create(valuesById);
105114
+ values[valuesById[0] = "MODERATION_SOURCE_UNKNOWN"] = 0;
105115
+ values[valuesById[1] = "MODERATION_SOURCE_DISCUSSION_POST"] = 1;
105116
+ values[valuesById[2] = "MODERATION_SOURCE_COMMUNITY_USER_NAME"] = 2;
105117
+ return values;
105118
+ })();
105119
+
105064
105120
  return ModerationActionPerformed;
105065
105121
  })();
105066
105122
 
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.433.0"
19
+ "version": "1.434.0"
20
20
  }