@headspace/protos-events 1.159.0 → 1.160.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.
Files changed (3) hide show
  1. package/lib/index.d.ts +12 -12
  2. package/lib/index.js +106 -72
  3. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -6387,9 +6387,6 @@ export interface IContentfulCategoryCreated {
6387
6387
  /** ContentfulCategoryCreated slug */
6388
6388
  slug?: (string|null);
6389
6389
 
6390
- /** ContentfulCategoryCreated topic */
6391
- topic?: (contentful.ISlugReference|null);
6392
-
6393
6390
  /** ContentfulCategoryCreated type */
6394
6391
  type?: (string|null);
6395
6392
 
@@ -6415,9 +6412,6 @@ export class ContentfulCategoryCreated implements IContentfulCategoryCreated {
6415
6412
  /** ContentfulCategoryCreated slug. */
6416
6413
  public slug: string;
6417
6414
 
6418
- /** ContentfulCategoryCreated topic. */
6419
- public topic?: (contentful.ISlugReference|null);
6420
-
6421
6415
  /** ContentfulCategoryCreated type. */
6422
6416
  public type: string;
6423
6417
 
@@ -6507,9 +6501,6 @@ export interface IContentfulCategoryUpdated {
6507
6501
  /** ContentfulCategoryUpdated slug */
6508
6502
  slug?: (string|null);
6509
6503
 
6510
- /** ContentfulCategoryUpdated topic */
6511
- topic?: (contentful.ISlugReference|null);
6512
-
6513
6504
  /** ContentfulCategoryUpdated type */
6514
6505
  type?: (string|null);
6515
6506
 
@@ -6535,9 +6526,6 @@ export class ContentfulCategoryUpdated implements IContentfulCategoryUpdated {
6535
6526
  /** ContentfulCategoryUpdated slug. */
6536
6527
  public slug: string;
6537
6528
 
6538
- /** ContentfulCategoryUpdated topic. */
6539
- public topic?: (contentful.ISlugReference|null);
6540
-
6541
6529
  /** ContentfulCategoryUpdated type. */
6542
6530
  public type: string;
6543
6531
 
@@ -6747,6 +6735,9 @@ export interface IContentfulTopicCreated {
6747
6735
  /** ContentfulTopicCreated menuPatternMedia */
6748
6736
  menuPatternMedia?: ({ [k: string]: contentful.IIdReference }|null);
6749
6737
 
6738
+ /** ContentfulTopicCreated categories */
6739
+ categories?: (contentful.ISlugReference[]|null);
6740
+
6750
6741
  /** ContentfulTopicCreated accessGroups */
6751
6742
  accessGroups?: (contentful.ISlugReference[]|null);
6752
6743
 
@@ -6793,6 +6784,9 @@ export class ContentfulTopicCreated implements IContentfulTopicCreated {
6793
6784
  /** ContentfulTopicCreated menuPatternMedia. */
6794
6785
  public menuPatternMedia: { [k: string]: contentful.IIdReference };
6795
6786
 
6787
+ /** ContentfulTopicCreated categories. */
6788
+ public categories: contentful.ISlugReference[];
6789
+
6796
6790
  /** ContentfulTopicCreated accessGroups. */
6797
6791
  public accessGroups: contentful.ISlugReference[];
6798
6792
 
@@ -6903,6 +6897,9 @@ export interface IContentfulTopicUpdated {
6903
6897
  /** ContentfulTopicUpdated menuPatternMedia */
6904
6898
  menuPatternMedia?: ({ [k: string]: contentful.IIdReference }|null);
6905
6899
 
6900
+ /** ContentfulTopicUpdated categories */
6901
+ categories?: (contentful.ISlugReference[]|null);
6902
+
6906
6903
  /** ContentfulTopicUpdated accessGroups */
6907
6904
  accessGroups?: (contentful.ISlugReference[]|null);
6908
6905
 
@@ -6949,6 +6946,9 @@ export class ContentfulTopicUpdated implements IContentfulTopicUpdated {
6949
6946
  /** ContentfulTopicUpdated menuPatternMedia. */
6950
6947
  public menuPatternMedia: { [k: string]: contentful.IIdReference };
6951
6948
 
6949
+ /** ContentfulTopicUpdated categories. */
6950
+ public categories: contentful.ISlugReference[];
6951
+
6952
6952
  /** ContentfulTopicUpdated accessGroups. */
6953
6953
  public accessGroups: contentful.ISlugReference[];
6954
6954
 
package/lib/index.js CHANGED
@@ -16473,7 +16473,6 @@ $root.ContentfulCategoryCreated = (function() {
16473
16473
  * @interface IContentfulCategoryCreated
16474
16474
  * @property {Object.<string,string>|null} [name] ContentfulCategoryCreated name
16475
16475
  * @property {string|null} [slug] ContentfulCategoryCreated slug
16476
- * @property {contentful.ISlugReference|null} [topic] ContentfulCategoryCreated topic
16477
16476
  * @property {string|null} [type] ContentfulCategoryCreated type
16478
16477
  * @property {Array.<contentful.ISlugReference>|null} [content] ContentfulCategoryCreated content
16479
16478
  * @property {number|Long|null} [createdAt] ContentfulCategoryCreated createdAt
@@ -16512,14 +16511,6 @@ $root.ContentfulCategoryCreated = (function() {
16512
16511
  */
16513
16512
  ContentfulCategoryCreated.prototype.slug = "";
16514
16513
 
16515
- /**
16516
- * ContentfulCategoryCreated topic.
16517
- * @member {contentful.ISlugReference|null|undefined} topic
16518
- * @memberof ContentfulCategoryCreated
16519
- * @instance
16520
- */
16521
- ContentfulCategoryCreated.prototype.topic = null;
16522
-
16523
16514
  /**
16524
16515
  * ContentfulCategoryCreated type.
16525
16516
  * @member {string} type
@@ -16573,15 +16564,13 @@ $root.ContentfulCategoryCreated = (function() {
16573
16564
  writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.name[keys[i]]).ldelim();
16574
16565
  if (message.slug != null && message.hasOwnProperty("slug"))
16575
16566
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
16576
- if (message.topic != null && message.hasOwnProperty("topic"))
16577
- $root.contentful.SlugReference.encode(message.topic, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
16578
16567
  if (message.type != null && message.hasOwnProperty("type"))
16579
- writer.uint32(/* id 4, wireType 2 =*/34).string(message.type);
16568
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.type);
16580
16569
  if (message.content != null && message.content.length)
16581
16570
  for (var i = 0; i < message.content.length; ++i)
16582
- $root.contentful.SlugReference.encode(message.content[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
16571
+ $root.contentful.SlugReference.encode(message.content[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
16583
16572
  if (message.createdAt != null && message.hasOwnProperty("createdAt"))
16584
- writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.createdAt);
16573
+ writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.createdAt);
16585
16574
  return writer;
16586
16575
  };
16587
16576
 
@@ -16628,17 +16617,14 @@ $root.ContentfulCategoryCreated = (function() {
16628
16617
  message.slug = reader.string();
16629
16618
  break;
16630
16619
  case 3:
16631
- message.topic = $root.contentful.SlugReference.decode(reader, reader.uint32());
16632
- break;
16633
- case 4:
16634
16620
  message.type = reader.string();
16635
16621
  break;
16636
- case 5:
16622
+ case 4:
16637
16623
  if (!(message.content && message.content.length))
16638
16624
  message.content = [];
16639
16625
  message.content.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
16640
16626
  break;
16641
- case 6:
16627
+ case 5:
16642
16628
  message.createdAt = reader.uint64();
16643
16629
  break;
16644
16630
  default:
@@ -16687,11 +16673,6 @@ $root.ContentfulCategoryCreated = (function() {
16687
16673
  if (message.slug != null && message.hasOwnProperty("slug"))
16688
16674
  if (!$util.isString(message.slug))
16689
16675
  return "slug: string expected";
16690
- if (message.topic != null && message.hasOwnProperty("topic")) {
16691
- var error = $root.contentful.SlugReference.verify(message.topic);
16692
- if (error)
16693
- return "topic." + error;
16694
- }
16695
16676
  if (message.type != null && message.hasOwnProperty("type"))
16696
16677
  if (!$util.isString(message.type))
16697
16678
  return "type: string expected";
@@ -16731,11 +16712,6 @@ $root.ContentfulCategoryCreated = (function() {
16731
16712
  }
16732
16713
  if (object.slug != null)
16733
16714
  message.slug = String(object.slug);
16734
- if (object.topic != null) {
16735
- if (typeof object.topic !== "object")
16736
- throw TypeError(".ContentfulCategoryCreated.topic: object expected");
16737
- message.topic = $root.contentful.SlugReference.fromObject(object.topic);
16738
- }
16739
16715
  if (object.type != null)
16740
16716
  message.type = String(object.type);
16741
16717
  if (object.content) {
@@ -16779,7 +16755,6 @@ $root.ContentfulCategoryCreated = (function() {
16779
16755
  object.name = {};
16780
16756
  if (options.defaults) {
16781
16757
  object.slug = "";
16782
- object.topic = null;
16783
16758
  object.type = "";
16784
16759
  if ($util.Long) {
16785
16760
  var long = new $util.Long(0, 0, true);
@@ -16795,8 +16770,6 @@ $root.ContentfulCategoryCreated = (function() {
16795
16770
  }
16796
16771
  if (message.slug != null && message.hasOwnProperty("slug"))
16797
16772
  object.slug = message.slug;
16798
- if (message.topic != null && message.hasOwnProperty("topic"))
16799
- object.topic = $root.contentful.SlugReference.toObject(message.topic, options);
16800
16773
  if (message.type != null && message.hasOwnProperty("type"))
16801
16774
  object.type = message.type;
16802
16775
  if (message.content && message.content.length) {
@@ -16834,7 +16807,6 @@ $root.ContentfulCategoryUpdated = (function() {
16834
16807
  * @interface IContentfulCategoryUpdated
16835
16808
  * @property {Object.<string,string>|null} [name] ContentfulCategoryUpdated name
16836
16809
  * @property {string|null} [slug] ContentfulCategoryUpdated slug
16837
- * @property {contentful.ISlugReference|null} [topic] ContentfulCategoryUpdated topic
16838
16810
  * @property {string|null} [type] ContentfulCategoryUpdated type
16839
16811
  * @property {Array.<contentful.ISlugReference>|null} [content] ContentfulCategoryUpdated content
16840
16812
  * @property {number|Long|null} [updatedAt] ContentfulCategoryUpdated updatedAt
@@ -16873,14 +16845,6 @@ $root.ContentfulCategoryUpdated = (function() {
16873
16845
  */
16874
16846
  ContentfulCategoryUpdated.prototype.slug = "";
16875
16847
 
16876
- /**
16877
- * ContentfulCategoryUpdated topic.
16878
- * @member {contentful.ISlugReference|null|undefined} topic
16879
- * @memberof ContentfulCategoryUpdated
16880
- * @instance
16881
- */
16882
- ContentfulCategoryUpdated.prototype.topic = null;
16883
-
16884
16848
  /**
16885
16849
  * ContentfulCategoryUpdated type.
16886
16850
  * @member {string} type
@@ -16934,15 +16898,13 @@ $root.ContentfulCategoryUpdated = (function() {
16934
16898
  writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.name[keys[i]]).ldelim();
16935
16899
  if (message.slug != null && message.hasOwnProperty("slug"))
16936
16900
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
16937
- if (message.topic != null && message.hasOwnProperty("topic"))
16938
- $root.contentful.SlugReference.encode(message.topic, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
16939
16901
  if (message.type != null && message.hasOwnProperty("type"))
16940
- writer.uint32(/* id 4, wireType 2 =*/34).string(message.type);
16902
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.type);
16941
16903
  if (message.content != null && message.content.length)
16942
16904
  for (var i = 0; i < message.content.length; ++i)
16943
- $root.contentful.SlugReference.encode(message.content[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
16905
+ $root.contentful.SlugReference.encode(message.content[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
16944
16906
  if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
16945
- writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.updatedAt);
16907
+ writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.updatedAt);
16946
16908
  return writer;
16947
16909
  };
16948
16910
 
@@ -16989,17 +16951,14 @@ $root.ContentfulCategoryUpdated = (function() {
16989
16951
  message.slug = reader.string();
16990
16952
  break;
16991
16953
  case 3:
16992
- message.topic = $root.contentful.SlugReference.decode(reader, reader.uint32());
16993
- break;
16994
- case 4:
16995
16954
  message.type = reader.string();
16996
16955
  break;
16997
- case 5:
16956
+ case 4:
16998
16957
  if (!(message.content && message.content.length))
16999
16958
  message.content = [];
17000
16959
  message.content.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
17001
16960
  break;
17002
- case 6:
16961
+ case 5:
17003
16962
  message.updatedAt = reader.uint64();
17004
16963
  break;
17005
16964
  default:
@@ -17048,11 +17007,6 @@ $root.ContentfulCategoryUpdated = (function() {
17048
17007
  if (message.slug != null && message.hasOwnProperty("slug"))
17049
17008
  if (!$util.isString(message.slug))
17050
17009
  return "slug: string expected";
17051
- if (message.topic != null && message.hasOwnProperty("topic")) {
17052
- var error = $root.contentful.SlugReference.verify(message.topic);
17053
- if (error)
17054
- return "topic." + error;
17055
- }
17056
17010
  if (message.type != null && message.hasOwnProperty("type"))
17057
17011
  if (!$util.isString(message.type))
17058
17012
  return "type: string expected";
@@ -17092,11 +17046,6 @@ $root.ContentfulCategoryUpdated = (function() {
17092
17046
  }
17093
17047
  if (object.slug != null)
17094
17048
  message.slug = String(object.slug);
17095
- if (object.topic != null) {
17096
- if (typeof object.topic !== "object")
17097
- throw TypeError(".ContentfulCategoryUpdated.topic: object expected");
17098
- message.topic = $root.contentful.SlugReference.fromObject(object.topic);
17099
- }
17100
17049
  if (object.type != null)
17101
17050
  message.type = String(object.type);
17102
17051
  if (object.content) {
@@ -17140,7 +17089,6 @@ $root.ContentfulCategoryUpdated = (function() {
17140
17089
  object.name = {};
17141
17090
  if (options.defaults) {
17142
17091
  object.slug = "";
17143
- object.topic = null;
17144
17092
  object.type = "";
17145
17093
  if ($util.Long) {
17146
17094
  var long = new $util.Long(0, 0, true);
@@ -17156,8 +17104,6 @@ $root.ContentfulCategoryUpdated = (function() {
17156
17104
  }
17157
17105
  if (message.slug != null && message.hasOwnProperty("slug"))
17158
17106
  object.slug = message.slug;
17159
- if (message.topic != null && message.hasOwnProperty("topic"))
17160
- object.topic = $root.contentful.SlugReference.toObject(message.topic, options);
17161
17107
  if (message.type != null && message.hasOwnProperty("type"))
17162
17108
  object.type = message.type;
17163
17109
  if (message.content && message.content.length) {
@@ -17427,6 +17373,7 @@ $root.ContentfulTopicCreated = (function() {
17427
17373
  * @property {Object.<string,contentful.IIdReference>|null} [iconMedia] ContentfulTopicCreated iconMedia
17428
17374
  * @property {Object.<string,contentful.IIdReference>|null} [headerPatternMedia] ContentfulTopicCreated headerPatternMedia
17429
17375
  * @property {Object.<string,contentful.IIdReference>|null} [menuPatternMedia] ContentfulTopicCreated menuPatternMedia
17376
+ * @property {Array.<contentful.ISlugReference>|null} [categories] ContentfulTopicCreated categories
17430
17377
  * @property {Array.<contentful.ISlugReference>|null} [accessGroups] ContentfulTopicCreated accessGroups
17431
17378
  * @property {number|Long|null} [createdAt] ContentfulTopicCreated createdAt
17432
17379
  */
@@ -17445,6 +17392,7 @@ $root.ContentfulTopicCreated = (function() {
17445
17392
  this.iconMedia = {};
17446
17393
  this.headerPatternMedia = {};
17447
17394
  this.menuPatternMedia = {};
17395
+ this.categories = [];
17448
17396
  this.accessGroups = [];
17449
17397
  if (properties)
17450
17398
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
@@ -17532,6 +17480,14 @@ $root.ContentfulTopicCreated = (function() {
17532
17480
  */
17533
17481
  ContentfulTopicCreated.prototype.menuPatternMedia = $util.emptyObject;
17534
17482
 
17483
+ /**
17484
+ * ContentfulTopicCreated categories.
17485
+ * @member {Array.<contentful.ISlugReference>} categories
17486
+ * @memberof ContentfulTopicCreated
17487
+ * @instance
17488
+ */
17489
+ ContentfulTopicCreated.prototype.categories = $util.emptyArray;
17490
+
17535
17491
  /**
17536
17492
  * ContentfulTopicCreated accessGroups.
17537
17493
  * @member {Array.<contentful.ISlugReference>} accessGroups
@@ -17603,11 +17559,14 @@ $root.ContentfulTopicCreated = (function() {
17603
17559
  writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
17604
17560
  $root.contentful.IdReference.encode(message.menuPatternMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
17605
17561
  }
17562
+ if (message.categories != null && message.categories.length)
17563
+ for (var i = 0; i < message.categories.length; ++i)
17564
+ $root.contentful.SlugReference.encode(message.categories[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
17606
17565
  if (message.accessGroups != null && message.accessGroups.length)
17607
17566
  for (var i = 0; i < message.accessGroups.length; ++i)
17608
- $root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
17567
+ $root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
17609
17568
  if (message.createdAt != null && message.hasOwnProperty("createdAt"))
17610
- writer.uint32(/* id 12, wireType 0 =*/96).uint64(message.createdAt);
17569
+ writer.uint32(/* id 13, wireType 0 =*/104).uint64(message.createdAt);
17611
17570
  return writer;
17612
17571
  };
17613
17572
 
@@ -17698,11 +17657,16 @@ $root.ContentfulTopicCreated = (function() {
17698
17657
  message.menuPatternMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
17699
17658
  break;
17700
17659
  case 11:
17660
+ if (!(message.categories && message.categories.length))
17661
+ message.categories = [];
17662
+ message.categories.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
17663
+ break;
17664
+ case 12:
17701
17665
  if (!(message.accessGroups && message.accessGroups.length))
17702
17666
  message.accessGroups = [];
17703
17667
  message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
17704
17668
  break;
17705
- case 12:
17669
+ case 13:
17706
17670
  message.createdAt = reader.uint64();
17707
17671
  break;
17708
17672
  default:
@@ -17801,6 +17765,15 @@ $root.ContentfulTopicCreated = (function() {
17801
17765
  return "menuPatternMedia." + error;
17802
17766
  }
17803
17767
  }
17768
+ if (message.categories != null && message.hasOwnProperty("categories")) {
17769
+ if (!Array.isArray(message.categories))
17770
+ return "categories: array expected";
17771
+ for (var i = 0; i < message.categories.length; ++i) {
17772
+ var error = $root.contentful.SlugReference.verify(message.categories[i]);
17773
+ if (error)
17774
+ return "categories." + error;
17775
+ }
17776
+ }
17804
17777
  if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
17805
17778
  if (!Array.isArray(message.accessGroups))
17806
17779
  return "accessGroups: array expected";
@@ -17882,6 +17855,16 @@ $root.ContentfulTopicCreated = (function() {
17882
17855
  message.menuPatternMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.menuPatternMedia[keys[i]]);
17883
17856
  }
17884
17857
  }
17858
+ if (object.categories) {
17859
+ if (!Array.isArray(object.categories))
17860
+ throw TypeError(".ContentfulTopicCreated.categories: array expected");
17861
+ message.categories = [];
17862
+ for (var i = 0; i < object.categories.length; ++i) {
17863
+ if (typeof object.categories[i] !== "object")
17864
+ throw TypeError(".ContentfulTopicCreated.categories: object expected");
17865
+ message.categories[i] = $root.contentful.SlugReference.fromObject(object.categories[i]);
17866
+ }
17867
+ }
17885
17868
  if (object.accessGroups) {
17886
17869
  if (!Array.isArray(object.accessGroups))
17887
17870
  throw TypeError(".ContentfulTopicCreated.accessGroups: array expected");
@@ -17917,8 +17900,10 @@ $root.ContentfulTopicCreated = (function() {
17917
17900
  if (!options)
17918
17901
  options = {};
17919
17902
  var object = {};
17920
- if (options.arrays || options.defaults)
17903
+ if (options.arrays || options.defaults) {
17904
+ object.categories = [];
17921
17905
  object.accessGroups = [];
17906
+ }
17922
17907
  if (options.objects || options.defaults) {
17923
17908
  object.name = {};
17924
17909
  object.description = {};
@@ -17974,6 +17959,11 @@ $root.ContentfulTopicCreated = (function() {
17974
17959
  for (var j = 0; j < keys2.length; ++j)
17975
17960
  object.menuPatternMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.menuPatternMedia[keys2[j]], options);
17976
17961
  }
17962
+ if (message.categories && message.categories.length) {
17963
+ object.categories = [];
17964
+ for (var j = 0; j < message.categories.length; ++j)
17965
+ object.categories[j] = $root.contentful.SlugReference.toObject(message.categories[j], options);
17966
+ }
17977
17967
  if (message.accessGroups && message.accessGroups.length) {
17978
17968
  object.accessGroups = [];
17979
17969
  for (var j = 0; j < message.accessGroups.length; ++j)
@@ -18017,6 +18007,7 @@ $root.ContentfulTopicUpdated = (function() {
18017
18007
  * @property {Object.<string,contentful.IIdReference>|null} [iconMedia] ContentfulTopicUpdated iconMedia
18018
18008
  * @property {Object.<string,contentful.IIdReference>|null} [headerPatternMedia] ContentfulTopicUpdated headerPatternMedia
18019
18009
  * @property {Object.<string,contentful.IIdReference>|null} [menuPatternMedia] ContentfulTopicUpdated menuPatternMedia
18010
+ * @property {Array.<contentful.ISlugReference>|null} [categories] ContentfulTopicUpdated categories
18020
18011
  * @property {Array.<contentful.ISlugReference>|null} [accessGroups] ContentfulTopicUpdated accessGroups
18021
18012
  * @property {number|Long|null} [updatedAt] ContentfulTopicUpdated updatedAt
18022
18013
  */
@@ -18035,6 +18026,7 @@ $root.ContentfulTopicUpdated = (function() {
18035
18026
  this.iconMedia = {};
18036
18027
  this.headerPatternMedia = {};
18037
18028
  this.menuPatternMedia = {};
18029
+ this.categories = [];
18038
18030
  this.accessGroups = [];
18039
18031
  if (properties)
18040
18032
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
@@ -18122,6 +18114,14 @@ $root.ContentfulTopicUpdated = (function() {
18122
18114
  */
18123
18115
  ContentfulTopicUpdated.prototype.menuPatternMedia = $util.emptyObject;
18124
18116
 
18117
+ /**
18118
+ * ContentfulTopicUpdated categories.
18119
+ * @member {Array.<contentful.ISlugReference>} categories
18120
+ * @memberof ContentfulTopicUpdated
18121
+ * @instance
18122
+ */
18123
+ ContentfulTopicUpdated.prototype.categories = $util.emptyArray;
18124
+
18125
18125
  /**
18126
18126
  * ContentfulTopicUpdated accessGroups.
18127
18127
  * @member {Array.<contentful.ISlugReference>} accessGroups
@@ -18193,11 +18193,14 @@ $root.ContentfulTopicUpdated = (function() {
18193
18193
  writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
18194
18194
  $root.contentful.IdReference.encode(message.menuPatternMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
18195
18195
  }
18196
+ if (message.categories != null && message.categories.length)
18197
+ for (var i = 0; i < message.categories.length; ++i)
18198
+ $root.contentful.SlugReference.encode(message.categories[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
18196
18199
  if (message.accessGroups != null && message.accessGroups.length)
18197
18200
  for (var i = 0; i < message.accessGroups.length; ++i)
18198
- $root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
18201
+ $root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
18199
18202
  if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
18200
- writer.uint32(/* id 12, wireType 0 =*/96).uint64(message.updatedAt);
18203
+ writer.uint32(/* id 13, wireType 0 =*/104).uint64(message.updatedAt);
18201
18204
  return writer;
18202
18205
  };
18203
18206
 
@@ -18288,11 +18291,16 @@ $root.ContentfulTopicUpdated = (function() {
18288
18291
  message.menuPatternMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
18289
18292
  break;
18290
18293
  case 11:
18294
+ if (!(message.categories && message.categories.length))
18295
+ message.categories = [];
18296
+ message.categories.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
18297
+ break;
18298
+ case 12:
18291
18299
  if (!(message.accessGroups && message.accessGroups.length))
18292
18300
  message.accessGroups = [];
18293
18301
  message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
18294
18302
  break;
18295
- case 12:
18303
+ case 13:
18296
18304
  message.updatedAt = reader.uint64();
18297
18305
  break;
18298
18306
  default:
@@ -18391,6 +18399,15 @@ $root.ContentfulTopicUpdated = (function() {
18391
18399
  return "menuPatternMedia." + error;
18392
18400
  }
18393
18401
  }
18402
+ if (message.categories != null && message.hasOwnProperty("categories")) {
18403
+ if (!Array.isArray(message.categories))
18404
+ return "categories: array expected";
18405
+ for (var i = 0; i < message.categories.length; ++i) {
18406
+ var error = $root.contentful.SlugReference.verify(message.categories[i]);
18407
+ if (error)
18408
+ return "categories." + error;
18409
+ }
18410
+ }
18394
18411
  if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
18395
18412
  if (!Array.isArray(message.accessGroups))
18396
18413
  return "accessGroups: array expected";
@@ -18472,6 +18489,16 @@ $root.ContentfulTopicUpdated = (function() {
18472
18489
  message.menuPatternMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.menuPatternMedia[keys[i]]);
18473
18490
  }
18474
18491
  }
18492
+ if (object.categories) {
18493
+ if (!Array.isArray(object.categories))
18494
+ throw TypeError(".ContentfulTopicUpdated.categories: array expected");
18495
+ message.categories = [];
18496
+ for (var i = 0; i < object.categories.length; ++i) {
18497
+ if (typeof object.categories[i] !== "object")
18498
+ throw TypeError(".ContentfulTopicUpdated.categories: object expected");
18499
+ message.categories[i] = $root.contentful.SlugReference.fromObject(object.categories[i]);
18500
+ }
18501
+ }
18475
18502
  if (object.accessGroups) {
18476
18503
  if (!Array.isArray(object.accessGroups))
18477
18504
  throw TypeError(".ContentfulTopicUpdated.accessGroups: array expected");
@@ -18507,8 +18534,10 @@ $root.ContentfulTopicUpdated = (function() {
18507
18534
  if (!options)
18508
18535
  options = {};
18509
18536
  var object = {};
18510
- if (options.arrays || options.defaults)
18537
+ if (options.arrays || options.defaults) {
18538
+ object.categories = [];
18511
18539
  object.accessGroups = [];
18540
+ }
18512
18541
  if (options.objects || options.defaults) {
18513
18542
  object.name = {};
18514
18543
  object.description = {};
@@ -18564,6 +18593,11 @@ $root.ContentfulTopicUpdated = (function() {
18564
18593
  for (var j = 0; j < keys2.length; ++j)
18565
18594
  object.menuPatternMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.menuPatternMedia[keys2[j]], options);
18566
18595
  }
18596
+ if (message.categories && message.categories.length) {
18597
+ object.categories = [];
18598
+ for (var j = 0; j < message.categories.length; ++j)
18599
+ object.categories[j] = $root.contentful.SlugReference.toObject(message.categories[j], options);
18600
+ }
18567
18601
  if (message.accessGroups && message.accessGroups.length) {
18568
18602
  object.accessGroups = [];
18569
18603
  for (var j = 0; j < message.accessGroups.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.159.0"
19
+ "version": "1.160.0"
20
20
  }