@headspace/protos-events 1.127.0 → 1.129.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 +312 -12
  2. package/lib/index.js +966 -82
  3. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -11503,7 +11503,7 @@ $root.ContentfulCategoryCreated = (function() {
11503
11503
  * Properties of a ContentfulCategoryCreated.
11504
11504
  * @exports IContentfulCategoryCreated
11505
11505
  * @interface IContentfulCategoryCreated
11506
- * @property {string|null} [name] ContentfulCategoryCreated name
11506
+ * @property {Object.<string,string>|null} [name] ContentfulCategoryCreated name
11507
11507
  * @property {string|null} [slug] ContentfulCategoryCreated slug
11508
11508
  * @property {contentful.ISlugReference|null} [topic] ContentfulCategoryCreated topic
11509
11509
  * @property {string|null} [type] ContentfulCategoryCreated type
@@ -11520,6 +11520,7 @@ $root.ContentfulCategoryCreated = (function() {
11520
11520
  * @param {IContentfulCategoryCreated=} [properties] Properties to set
11521
11521
  */
11522
11522
  function ContentfulCategoryCreated(properties) {
11523
+ this.name = {};
11523
11524
  this.content = [];
11524
11525
  if (properties)
11525
11526
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
@@ -11529,11 +11530,11 @@ $root.ContentfulCategoryCreated = (function() {
11529
11530
 
11530
11531
  /**
11531
11532
  * ContentfulCategoryCreated name.
11532
- * @member {string} name
11533
+ * @member {Object.<string,string>} name
11533
11534
  * @memberof ContentfulCategoryCreated
11534
11535
  * @instance
11535
11536
  */
11536
- ContentfulCategoryCreated.prototype.name = "";
11537
+ ContentfulCategoryCreated.prototype.name = $util.emptyObject;
11537
11538
 
11538
11539
  /**
11539
11540
  * ContentfulCategoryCreated slug.
@@ -11600,7 +11601,8 @@ $root.ContentfulCategoryCreated = (function() {
11600
11601
  if (!writer)
11601
11602
  writer = $Writer.create();
11602
11603
  if (message.name != null && message.hasOwnProperty("name"))
11603
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
11604
+ for (var keys = Object.keys(message.name), i = 0; i < keys.length; ++i)
11605
+ 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();
11604
11606
  if (message.slug != null && message.hasOwnProperty("slug"))
11605
11607
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
11606
11608
  if (message.topic != null && message.hasOwnProperty("topic"))
@@ -11642,12 +11644,17 @@ $root.ContentfulCategoryCreated = (function() {
11642
11644
  ContentfulCategoryCreated.decode = function decode(reader, length) {
11643
11645
  if (!(reader instanceof $Reader))
11644
11646
  reader = $Reader.create(reader);
11645
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulCategoryCreated();
11647
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulCategoryCreated(), key;
11646
11648
  while (reader.pos < end) {
11647
11649
  var tag = reader.uint32();
11648
11650
  switch (tag >>> 3) {
11649
11651
  case 1:
11650
- message.name = reader.string();
11652
+ reader.skip().pos++;
11653
+ if (message.name === $util.emptyObject)
11654
+ message.name = {};
11655
+ key = reader.string();
11656
+ reader.pos++;
11657
+ message.name[key] = reader.string();
11651
11658
  break;
11652
11659
  case 2:
11653
11660
  message.slug = reader.string();
@@ -11701,9 +11708,14 @@ $root.ContentfulCategoryCreated = (function() {
11701
11708
  ContentfulCategoryCreated.verify = function verify(message) {
11702
11709
  if (typeof message !== "object" || message === null)
11703
11710
  return "object expected";
11704
- if (message.name != null && message.hasOwnProperty("name"))
11705
- if (!$util.isString(message.name))
11706
- return "name: string expected";
11711
+ if (message.name != null && message.hasOwnProperty("name")) {
11712
+ if (!$util.isObject(message.name))
11713
+ return "name: object expected";
11714
+ var key = Object.keys(message.name);
11715
+ for (var i = 0; i < key.length; ++i)
11716
+ if (!$util.isString(message.name[key[i]]))
11717
+ return "name: string{k:string} expected";
11718
+ }
11707
11719
  if (message.slug != null && message.hasOwnProperty("slug"))
11708
11720
  if (!$util.isString(message.slug))
11709
11721
  return "slug: string expected";
@@ -11742,8 +11754,13 @@ $root.ContentfulCategoryCreated = (function() {
11742
11754
  if (object instanceof $root.ContentfulCategoryCreated)
11743
11755
  return object;
11744
11756
  var message = new $root.ContentfulCategoryCreated();
11745
- if (object.name != null)
11746
- message.name = String(object.name);
11757
+ if (object.name) {
11758
+ if (typeof object.name !== "object")
11759
+ throw TypeError(".ContentfulCategoryCreated.name: object expected");
11760
+ message.name = {};
11761
+ for (var keys = Object.keys(object.name), i = 0; i < keys.length; ++i)
11762
+ message.name[keys[i]] = String(object.name[keys[i]]);
11763
+ }
11747
11764
  if (object.slug != null)
11748
11765
  message.slug = String(object.slug);
11749
11766
  if (object.topic != null) {
@@ -11790,8 +11807,9 @@ $root.ContentfulCategoryCreated = (function() {
11790
11807
  var object = {};
11791
11808
  if (options.arrays || options.defaults)
11792
11809
  object.content = [];
11810
+ if (options.objects || options.defaults)
11811
+ object.name = {};
11793
11812
  if (options.defaults) {
11794
- object.name = "";
11795
11813
  object.slug = "";
11796
11814
  object.topic = null;
11797
11815
  object.type = "";
@@ -11801,8 +11819,12 @@ $root.ContentfulCategoryCreated = (function() {
11801
11819
  } else
11802
11820
  object.createdAt = options.longs === String ? "0" : 0;
11803
11821
  }
11804
- if (message.name != null && message.hasOwnProperty("name"))
11805
- object.name = message.name;
11822
+ var keys2;
11823
+ if (message.name && (keys2 = Object.keys(message.name)).length) {
11824
+ object.name = {};
11825
+ for (var j = 0; j < keys2.length; ++j)
11826
+ object.name[keys2[j]] = message.name[keys2[j]];
11827
+ }
11806
11828
  if (message.slug != null && message.hasOwnProperty("slug"))
11807
11829
  object.slug = message.slug;
11808
11830
  if (message.topic != null && message.hasOwnProperty("topic"))
@@ -11842,7 +11864,7 @@ $root.ContentfulCategoryUpdated = (function() {
11842
11864
  * Properties of a ContentfulCategoryUpdated.
11843
11865
  * @exports IContentfulCategoryUpdated
11844
11866
  * @interface IContentfulCategoryUpdated
11845
- * @property {string|null} [name] ContentfulCategoryUpdated name
11867
+ * @property {Object.<string,string>|null} [name] ContentfulCategoryUpdated name
11846
11868
  * @property {string|null} [slug] ContentfulCategoryUpdated slug
11847
11869
  * @property {contentful.ISlugReference|null} [topic] ContentfulCategoryUpdated topic
11848
11870
  * @property {string|null} [type] ContentfulCategoryUpdated type
@@ -11859,6 +11881,7 @@ $root.ContentfulCategoryUpdated = (function() {
11859
11881
  * @param {IContentfulCategoryUpdated=} [properties] Properties to set
11860
11882
  */
11861
11883
  function ContentfulCategoryUpdated(properties) {
11884
+ this.name = {};
11862
11885
  this.content = [];
11863
11886
  if (properties)
11864
11887
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
@@ -11868,11 +11891,11 @@ $root.ContentfulCategoryUpdated = (function() {
11868
11891
 
11869
11892
  /**
11870
11893
  * ContentfulCategoryUpdated name.
11871
- * @member {string} name
11894
+ * @member {Object.<string,string>} name
11872
11895
  * @memberof ContentfulCategoryUpdated
11873
11896
  * @instance
11874
11897
  */
11875
- ContentfulCategoryUpdated.prototype.name = "";
11898
+ ContentfulCategoryUpdated.prototype.name = $util.emptyObject;
11876
11899
 
11877
11900
  /**
11878
11901
  * ContentfulCategoryUpdated slug.
@@ -11939,7 +11962,8 @@ $root.ContentfulCategoryUpdated = (function() {
11939
11962
  if (!writer)
11940
11963
  writer = $Writer.create();
11941
11964
  if (message.name != null && message.hasOwnProperty("name"))
11942
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
11965
+ for (var keys = Object.keys(message.name), i = 0; i < keys.length; ++i)
11966
+ 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();
11943
11967
  if (message.slug != null && message.hasOwnProperty("slug"))
11944
11968
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
11945
11969
  if (message.topic != null && message.hasOwnProperty("topic"))
@@ -11981,12 +12005,17 @@ $root.ContentfulCategoryUpdated = (function() {
11981
12005
  ContentfulCategoryUpdated.decode = function decode(reader, length) {
11982
12006
  if (!(reader instanceof $Reader))
11983
12007
  reader = $Reader.create(reader);
11984
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulCategoryUpdated();
12008
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulCategoryUpdated(), key;
11985
12009
  while (reader.pos < end) {
11986
12010
  var tag = reader.uint32();
11987
12011
  switch (tag >>> 3) {
11988
12012
  case 1:
11989
- message.name = reader.string();
12013
+ reader.skip().pos++;
12014
+ if (message.name === $util.emptyObject)
12015
+ message.name = {};
12016
+ key = reader.string();
12017
+ reader.pos++;
12018
+ message.name[key] = reader.string();
11990
12019
  break;
11991
12020
  case 2:
11992
12021
  message.slug = reader.string();
@@ -12040,9 +12069,14 @@ $root.ContentfulCategoryUpdated = (function() {
12040
12069
  ContentfulCategoryUpdated.verify = function verify(message) {
12041
12070
  if (typeof message !== "object" || message === null)
12042
12071
  return "object expected";
12043
- if (message.name != null && message.hasOwnProperty("name"))
12044
- if (!$util.isString(message.name))
12045
- return "name: string expected";
12072
+ if (message.name != null && message.hasOwnProperty("name")) {
12073
+ if (!$util.isObject(message.name))
12074
+ return "name: object expected";
12075
+ var key = Object.keys(message.name);
12076
+ for (var i = 0; i < key.length; ++i)
12077
+ if (!$util.isString(message.name[key[i]]))
12078
+ return "name: string{k:string} expected";
12079
+ }
12046
12080
  if (message.slug != null && message.hasOwnProperty("slug"))
12047
12081
  if (!$util.isString(message.slug))
12048
12082
  return "slug: string expected";
@@ -12081,8 +12115,13 @@ $root.ContentfulCategoryUpdated = (function() {
12081
12115
  if (object instanceof $root.ContentfulCategoryUpdated)
12082
12116
  return object;
12083
12117
  var message = new $root.ContentfulCategoryUpdated();
12084
- if (object.name != null)
12085
- message.name = String(object.name);
12118
+ if (object.name) {
12119
+ if (typeof object.name !== "object")
12120
+ throw TypeError(".ContentfulCategoryUpdated.name: object expected");
12121
+ message.name = {};
12122
+ for (var keys = Object.keys(object.name), i = 0; i < keys.length; ++i)
12123
+ message.name[keys[i]] = String(object.name[keys[i]]);
12124
+ }
12086
12125
  if (object.slug != null)
12087
12126
  message.slug = String(object.slug);
12088
12127
  if (object.topic != null) {
@@ -12129,8 +12168,9 @@ $root.ContentfulCategoryUpdated = (function() {
12129
12168
  var object = {};
12130
12169
  if (options.arrays || options.defaults)
12131
12170
  object.content = [];
12171
+ if (options.objects || options.defaults)
12172
+ object.name = {};
12132
12173
  if (options.defaults) {
12133
- object.name = "";
12134
12174
  object.slug = "";
12135
12175
  object.topic = null;
12136
12176
  object.type = "";
@@ -12140,8 +12180,12 @@ $root.ContentfulCategoryUpdated = (function() {
12140
12180
  } else
12141
12181
  object.updatedAt = options.longs === String ? "0" : 0;
12142
12182
  }
12143
- if (message.name != null && message.hasOwnProperty("name"))
12144
- object.name = message.name;
12183
+ var keys2;
12184
+ if (message.name && (keys2 = Object.keys(message.name)).length) {
12185
+ object.name = {};
12186
+ for (var j = 0; j < keys2.length; ++j)
12187
+ object.name[keys2[j]] = message.name[keys2[j]];
12188
+ }
12145
12189
  if (message.slug != null && message.hasOwnProperty("slug"))
12146
12190
  object.slug = message.slug;
12147
12191
  if (message.topic != null && message.hasOwnProperty("topic"))
@@ -12405,9 +12449,9 @@ $root.ContentfulTopicCreated = (function() {
12405
12449
  * Properties of a ContentfulTopicCreated.
12406
12450
  * @exports IContentfulTopicCreated
12407
12451
  * @interface IContentfulTopicCreated
12408
- * @property {string|null} [name] ContentfulTopicCreated name
12452
+ * @property {Object.<string,string>|null} [name] ContentfulTopicCreated name
12409
12453
  * @property {string|null} [slug] ContentfulTopicCreated slug
12410
- * @property {string|null} [description] ContentfulTopicCreated description
12454
+ * @property {Object.<string,string>|null} [description] ContentfulTopicCreated description
12411
12455
  * @property {string|null} [location] ContentfulTopicCreated location
12412
12456
  * @property {string|null} [primaryColor] ContentfulTopicCreated primaryColor
12413
12457
  * @property {string|null} [secondaryColor] ContentfulTopicCreated secondaryColor
@@ -12428,6 +12472,8 @@ $root.ContentfulTopicCreated = (function() {
12428
12472
  * @param {IContentfulTopicCreated=} [properties] Properties to set
12429
12473
  */
12430
12474
  function ContentfulTopicCreated(properties) {
12475
+ this.name = {};
12476
+ this.description = {};
12431
12477
  this.iconMedia = {};
12432
12478
  this.headerPatternMedia = {};
12433
12479
  this.menuPatternMedia = {};
@@ -12440,11 +12486,11 @@ $root.ContentfulTopicCreated = (function() {
12440
12486
 
12441
12487
  /**
12442
12488
  * ContentfulTopicCreated name.
12443
- * @member {string} name
12489
+ * @member {Object.<string,string>} name
12444
12490
  * @memberof ContentfulTopicCreated
12445
12491
  * @instance
12446
12492
  */
12447
- ContentfulTopicCreated.prototype.name = "";
12493
+ ContentfulTopicCreated.prototype.name = $util.emptyObject;
12448
12494
 
12449
12495
  /**
12450
12496
  * ContentfulTopicCreated slug.
@@ -12456,11 +12502,11 @@ $root.ContentfulTopicCreated = (function() {
12456
12502
 
12457
12503
  /**
12458
12504
  * ContentfulTopicCreated description.
12459
- * @member {string} description
12505
+ * @member {Object.<string,string>} description
12460
12506
  * @memberof ContentfulTopicCreated
12461
12507
  * @instance
12462
12508
  */
12463
- ContentfulTopicCreated.prototype.description = "";
12509
+ ContentfulTopicCreated.prototype.description = $util.emptyObject;
12464
12510
 
12465
12511
  /**
12466
12512
  * ContentfulTopicCreated location.
@@ -12559,11 +12605,13 @@ $root.ContentfulTopicCreated = (function() {
12559
12605
  if (!writer)
12560
12606
  writer = $Writer.create();
12561
12607
  if (message.name != null && message.hasOwnProperty("name"))
12562
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
12608
+ for (var keys = Object.keys(message.name), i = 0; i < keys.length; ++i)
12609
+ 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();
12563
12610
  if (message.slug != null && message.hasOwnProperty("slug"))
12564
12611
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
12565
12612
  if (message.description != null && message.hasOwnProperty("description"))
12566
- writer.uint32(/* id 3, wireType 2 =*/26).string(message.description);
12613
+ for (var keys = Object.keys(message.description), i = 0; i < keys.length; ++i)
12614
+ writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.description[keys[i]]).ldelim();
12567
12615
  if (message.location != null && message.hasOwnProperty("location"))
12568
12616
  writer.uint32(/* id 4, wireType 2 =*/34).string(message.location);
12569
12617
  if (message.primaryColor != null && message.hasOwnProperty("primaryColor"))
@@ -12627,13 +12675,23 @@ $root.ContentfulTopicCreated = (function() {
12627
12675
  var tag = reader.uint32();
12628
12676
  switch (tag >>> 3) {
12629
12677
  case 1:
12630
- message.name = reader.string();
12678
+ reader.skip().pos++;
12679
+ if (message.name === $util.emptyObject)
12680
+ message.name = {};
12681
+ key = reader.string();
12682
+ reader.pos++;
12683
+ message.name[key] = reader.string();
12631
12684
  break;
12632
12685
  case 2:
12633
12686
  message.slug = reader.string();
12634
12687
  break;
12635
12688
  case 3:
12636
- message.description = reader.string();
12689
+ reader.skip().pos++;
12690
+ if (message.description === $util.emptyObject)
12691
+ message.description = {};
12692
+ key = reader.string();
12693
+ reader.pos++;
12694
+ message.description[key] = reader.string();
12637
12695
  break;
12638
12696
  case 4:
12639
12697
  message.location = reader.string();
@@ -12714,15 +12772,25 @@ $root.ContentfulTopicCreated = (function() {
12714
12772
  ContentfulTopicCreated.verify = function verify(message) {
12715
12773
  if (typeof message !== "object" || message === null)
12716
12774
  return "object expected";
12717
- if (message.name != null && message.hasOwnProperty("name"))
12718
- if (!$util.isString(message.name))
12719
- return "name: string expected";
12775
+ if (message.name != null && message.hasOwnProperty("name")) {
12776
+ if (!$util.isObject(message.name))
12777
+ return "name: object expected";
12778
+ var key = Object.keys(message.name);
12779
+ for (var i = 0; i < key.length; ++i)
12780
+ if (!$util.isString(message.name[key[i]]))
12781
+ return "name: string{k:string} expected";
12782
+ }
12720
12783
  if (message.slug != null && message.hasOwnProperty("slug"))
12721
12784
  if (!$util.isString(message.slug))
12722
12785
  return "slug: string expected";
12723
- if (message.description != null && message.hasOwnProperty("description"))
12724
- if (!$util.isString(message.description))
12725
- return "description: string expected";
12786
+ if (message.description != null && message.hasOwnProperty("description")) {
12787
+ if (!$util.isObject(message.description))
12788
+ return "description: object expected";
12789
+ var key = Object.keys(message.description);
12790
+ for (var i = 0; i < key.length; ++i)
12791
+ if (!$util.isString(message.description[key[i]]))
12792
+ return "description: string{k:string} expected";
12793
+ }
12726
12794
  if (message.location != null && message.hasOwnProperty("location"))
12727
12795
  if (!$util.isString(message.location))
12728
12796
  return "location: string expected";
@@ -12792,12 +12860,22 @@ $root.ContentfulTopicCreated = (function() {
12792
12860
  if (object instanceof $root.ContentfulTopicCreated)
12793
12861
  return object;
12794
12862
  var message = new $root.ContentfulTopicCreated();
12795
- if (object.name != null)
12796
- message.name = String(object.name);
12863
+ if (object.name) {
12864
+ if (typeof object.name !== "object")
12865
+ throw TypeError(".ContentfulTopicCreated.name: object expected");
12866
+ message.name = {};
12867
+ for (var keys = Object.keys(object.name), i = 0; i < keys.length; ++i)
12868
+ message.name[keys[i]] = String(object.name[keys[i]]);
12869
+ }
12797
12870
  if (object.slug != null)
12798
12871
  message.slug = String(object.slug);
12799
- if (object.description != null)
12800
- message.description = String(object.description);
12872
+ if (object.description) {
12873
+ if (typeof object.description !== "object")
12874
+ throw TypeError(".ContentfulTopicCreated.description: object expected");
12875
+ message.description = {};
12876
+ for (var keys = Object.keys(object.description), i = 0; i < keys.length; ++i)
12877
+ message.description[keys[i]] = String(object.description[keys[i]]);
12878
+ }
12801
12879
  if (object.location != null)
12802
12880
  message.location = String(object.location);
12803
12881
  if (object.primaryColor != null)
@@ -12874,14 +12952,14 @@ $root.ContentfulTopicCreated = (function() {
12874
12952
  if (options.arrays || options.defaults)
12875
12953
  object.accessGroups = [];
12876
12954
  if (options.objects || options.defaults) {
12955
+ object.name = {};
12956
+ object.description = {};
12877
12957
  object.iconMedia = {};
12878
12958
  object.headerPatternMedia = {};
12879
12959
  object.menuPatternMedia = {};
12880
12960
  }
12881
12961
  if (options.defaults) {
12882
- object.name = "";
12883
12962
  object.slug = "";
12884
- object.description = "";
12885
12963
  object.location = "";
12886
12964
  object.primaryColor = "";
12887
12965
  object.secondaryColor = "";
@@ -12892,12 +12970,19 @@ $root.ContentfulTopicCreated = (function() {
12892
12970
  } else
12893
12971
  object.createdAt = options.longs === String ? "0" : 0;
12894
12972
  }
12895
- if (message.name != null && message.hasOwnProperty("name"))
12896
- object.name = message.name;
12973
+ var keys2;
12974
+ if (message.name && (keys2 = Object.keys(message.name)).length) {
12975
+ object.name = {};
12976
+ for (var j = 0; j < keys2.length; ++j)
12977
+ object.name[keys2[j]] = message.name[keys2[j]];
12978
+ }
12897
12979
  if (message.slug != null && message.hasOwnProperty("slug"))
12898
12980
  object.slug = message.slug;
12899
- if (message.description != null && message.hasOwnProperty("description"))
12900
- object.description = message.description;
12981
+ if (message.description && (keys2 = Object.keys(message.description)).length) {
12982
+ object.description = {};
12983
+ for (var j = 0; j < keys2.length; ++j)
12984
+ object.description[keys2[j]] = message.description[keys2[j]];
12985
+ }
12901
12986
  if (message.location != null && message.hasOwnProperty("location"))
12902
12987
  object.location = message.location;
12903
12988
  if (message.primaryColor != null && message.hasOwnProperty("primaryColor"))
@@ -12906,7 +12991,6 @@ $root.ContentfulTopicCreated = (function() {
12906
12991
  object.secondaryColor = message.secondaryColor;
12907
12992
  if (message.tertiaryColor != null && message.hasOwnProperty("tertiaryColor"))
12908
12993
  object.tertiaryColor = message.tertiaryColor;
12909
- var keys2;
12910
12994
  if (message.iconMedia && (keys2 = Object.keys(message.iconMedia)).length) {
12911
12995
  object.iconMedia = {};
12912
12996
  for (var j = 0; j < keys2.length; ++j)
@@ -12955,9 +13039,9 @@ $root.ContentfulTopicUpdated = (function() {
12955
13039
  * Properties of a ContentfulTopicUpdated.
12956
13040
  * @exports IContentfulTopicUpdated
12957
13041
  * @interface IContentfulTopicUpdated
12958
- * @property {string|null} [name] ContentfulTopicUpdated name
13042
+ * @property {Object.<string,string>|null} [name] ContentfulTopicUpdated name
12959
13043
  * @property {string|null} [slug] ContentfulTopicUpdated slug
12960
- * @property {string|null} [description] ContentfulTopicUpdated description
13044
+ * @property {Object.<string,string>|null} [description] ContentfulTopicUpdated description
12961
13045
  * @property {string|null} [location] ContentfulTopicUpdated location
12962
13046
  * @property {string|null} [primaryColor] ContentfulTopicUpdated primaryColor
12963
13047
  * @property {string|null} [secondaryColor] ContentfulTopicUpdated secondaryColor
@@ -12978,6 +13062,8 @@ $root.ContentfulTopicUpdated = (function() {
12978
13062
  * @param {IContentfulTopicUpdated=} [properties] Properties to set
12979
13063
  */
12980
13064
  function ContentfulTopicUpdated(properties) {
13065
+ this.name = {};
13066
+ this.description = {};
12981
13067
  this.iconMedia = {};
12982
13068
  this.headerPatternMedia = {};
12983
13069
  this.menuPatternMedia = {};
@@ -12990,11 +13076,11 @@ $root.ContentfulTopicUpdated = (function() {
12990
13076
 
12991
13077
  /**
12992
13078
  * ContentfulTopicUpdated name.
12993
- * @member {string} name
13079
+ * @member {Object.<string,string>} name
12994
13080
  * @memberof ContentfulTopicUpdated
12995
13081
  * @instance
12996
13082
  */
12997
- ContentfulTopicUpdated.prototype.name = "";
13083
+ ContentfulTopicUpdated.prototype.name = $util.emptyObject;
12998
13084
 
12999
13085
  /**
13000
13086
  * ContentfulTopicUpdated slug.
@@ -13006,11 +13092,11 @@ $root.ContentfulTopicUpdated = (function() {
13006
13092
 
13007
13093
  /**
13008
13094
  * ContentfulTopicUpdated description.
13009
- * @member {string} description
13095
+ * @member {Object.<string,string>} description
13010
13096
  * @memberof ContentfulTopicUpdated
13011
13097
  * @instance
13012
13098
  */
13013
- ContentfulTopicUpdated.prototype.description = "";
13099
+ ContentfulTopicUpdated.prototype.description = $util.emptyObject;
13014
13100
 
13015
13101
  /**
13016
13102
  * ContentfulTopicUpdated location.
@@ -13109,11 +13195,13 @@ $root.ContentfulTopicUpdated = (function() {
13109
13195
  if (!writer)
13110
13196
  writer = $Writer.create();
13111
13197
  if (message.name != null && message.hasOwnProperty("name"))
13112
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
13198
+ for (var keys = Object.keys(message.name), i = 0; i < keys.length; ++i)
13199
+ 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();
13113
13200
  if (message.slug != null && message.hasOwnProperty("slug"))
13114
13201
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
13115
13202
  if (message.description != null && message.hasOwnProperty("description"))
13116
- writer.uint32(/* id 3, wireType 2 =*/26).string(message.description);
13203
+ for (var keys = Object.keys(message.description), i = 0; i < keys.length; ++i)
13204
+ writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.description[keys[i]]).ldelim();
13117
13205
  if (message.location != null && message.hasOwnProperty("location"))
13118
13206
  writer.uint32(/* id 4, wireType 2 =*/34).string(message.location);
13119
13207
  if (message.primaryColor != null && message.hasOwnProperty("primaryColor"))
@@ -13177,13 +13265,23 @@ $root.ContentfulTopicUpdated = (function() {
13177
13265
  var tag = reader.uint32();
13178
13266
  switch (tag >>> 3) {
13179
13267
  case 1:
13180
- message.name = reader.string();
13268
+ reader.skip().pos++;
13269
+ if (message.name === $util.emptyObject)
13270
+ message.name = {};
13271
+ key = reader.string();
13272
+ reader.pos++;
13273
+ message.name[key] = reader.string();
13181
13274
  break;
13182
13275
  case 2:
13183
13276
  message.slug = reader.string();
13184
13277
  break;
13185
13278
  case 3:
13186
- message.description = reader.string();
13279
+ reader.skip().pos++;
13280
+ if (message.description === $util.emptyObject)
13281
+ message.description = {};
13282
+ key = reader.string();
13283
+ reader.pos++;
13284
+ message.description[key] = reader.string();
13187
13285
  break;
13188
13286
  case 4:
13189
13287
  message.location = reader.string();
@@ -13264,15 +13362,25 @@ $root.ContentfulTopicUpdated = (function() {
13264
13362
  ContentfulTopicUpdated.verify = function verify(message) {
13265
13363
  if (typeof message !== "object" || message === null)
13266
13364
  return "object expected";
13267
- if (message.name != null && message.hasOwnProperty("name"))
13268
- if (!$util.isString(message.name))
13269
- return "name: string expected";
13365
+ if (message.name != null && message.hasOwnProperty("name")) {
13366
+ if (!$util.isObject(message.name))
13367
+ return "name: object expected";
13368
+ var key = Object.keys(message.name);
13369
+ for (var i = 0; i < key.length; ++i)
13370
+ if (!$util.isString(message.name[key[i]]))
13371
+ return "name: string{k:string} expected";
13372
+ }
13270
13373
  if (message.slug != null && message.hasOwnProperty("slug"))
13271
13374
  if (!$util.isString(message.slug))
13272
13375
  return "slug: string expected";
13273
- if (message.description != null && message.hasOwnProperty("description"))
13274
- if (!$util.isString(message.description))
13275
- return "description: string expected";
13376
+ if (message.description != null && message.hasOwnProperty("description")) {
13377
+ if (!$util.isObject(message.description))
13378
+ return "description: object expected";
13379
+ var key = Object.keys(message.description);
13380
+ for (var i = 0; i < key.length; ++i)
13381
+ if (!$util.isString(message.description[key[i]]))
13382
+ return "description: string{k:string} expected";
13383
+ }
13276
13384
  if (message.location != null && message.hasOwnProperty("location"))
13277
13385
  if (!$util.isString(message.location))
13278
13386
  return "location: string expected";
@@ -13342,12 +13450,22 @@ $root.ContentfulTopicUpdated = (function() {
13342
13450
  if (object instanceof $root.ContentfulTopicUpdated)
13343
13451
  return object;
13344
13452
  var message = new $root.ContentfulTopicUpdated();
13345
- if (object.name != null)
13346
- message.name = String(object.name);
13453
+ if (object.name) {
13454
+ if (typeof object.name !== "object")
13455
+ throw TypeError(".ContentfulTopicUpdated.name: object expected");
13456
+ message.name = {};
13457
+ for (var keys = Object.keys(object.name), i = 0; i < keys.length; ++i)
13458
+ message.name[keys[i]] = String(object.name[keys[i]]);
13459
+ }
13347
13460
  if (object.slug != null)
13348
13461
  message.slug = String(object.slug);
13349
- if (object.description != null)
13350
- message.description = String(object.description);
13462
+ if (object.description) {
13463
+ if (typeof object.description !== "object")
13464
+ throw TypeError(".ContentfulTopicUpdated.description: object expected");
13465
+ message.description = {};
13466
+ for (var keys = Object.keys(object.description), i = 0; i < keys.length; ++i)
13467
+ message.description[keys[i]] = String(object.description[keys[i]]);
13468
+ }
13351
13469
  if (object.location != null)
13352
13470
  message.location = String(object.location);
13353
13471
  if (object.primaryColor != null)
@@ -13424,14 +13542,14 @@ $root.ContentfulTopicUpdated = (function() {
13424
13542
  if (options.arrays || options.defaults)
13425
13543
  object.accessGroups = [];
13426
13544
  if (options.objects || options.defaults) {
13545
+ object.name = {};
13546
+ object.description = {};
13427
13547
  object.iconMedia = {};
13428
13548
  object.headerPatternMedia = {};
13429
13549
  object.menuPatternMedia = {};
13430
13550
  }
13431
13551
  if (options.defaults) {
13432
- object.name = "";
13433
13552
  object.slug = "";
13434
- object.description = "";
13435
13553
  object.location = "";
13436
13554
  object.primaryColor = "";
13437
13555
  object.secondaryColor = "";
@@ -13442,12 +13560,19 @@ $root.ContentfulTopicUpdated = (function() {
13442
13560
  } else
13443
13561
  object.updatedAt = options.longs === String ? "0" : 0;
13444
13562
  }
13445
- if (message.name != null && message.hasOwnProperty("name"))
13446
- object.name = message.name;
13563
+ var keys2;
13564
+ if (message.name && (keys2 = Object.keys(message.name)).length) {
13565
+ object.name = {};
13566
+ for (var j = 0; j < keys2.length; ++j)
13567
+ object.name[keys2[j]] = message.name[keys2[j]];
13568
+ }
13447
13569
  if (message.slug != null && message.hasOwnProperty("slug"))
13448
13570
  object.slug = message.slug;
13449
- if (message.description != null && message.hasOwnProperty("description"))
13450
- object.description = message.description;
13571
+ if (message.description && (keys2 = Object.keys(message.description)).length) {
13572
+ object.description = {};
13573
+ for (var j = 0; j < keys2.length; ++j)
13574
+ object.description[keys2[j]] = message.description[keys2[j]];
13575
+ }
13451
13576
  if (message.location != null && message.hasOwnProperty("location"))
13452
13577
  object.location = message.location;
13453
13578
  if (message.primaryColor != null && message.hasOwnProperty("primaryColor"))
@@ -13456,7 +13581,6 @@ $root.ContentfulTopicUpdated = (function() {
13456
13581
  object.secondaryColor = message.secondaryColor;
13457
13582
  if (message.tertiaryColor != null && message.hasOwnProperty("tertiaryColor"))
13458
13583
  object.tertiaryColor = message.tertiaryColor;
13459
- var keys2;
13460
13584
  if (message.iconMedia && (keys2 = Object.keys(message.iconMedia)).length) {
13461
13585
  object.iconMedia = {};
13462
13586
  for (var j = 0; j < keys2.length; ++j)
@@ -18330,6 +18454,766 @@ $root.ContentPlayedMetadata = (function() {
18330
18454
  return ContentPlayedMetadata;
18331
18455
  })();
18332
18456
 
18457
+ $root.TopicCreated = (function() {
18458
+
18459
+ /**
18460
+ * Properties of a TopicCreated.
18461
+ * @exports ITopicCreated
18462
+ * @interface ITopicCreated
18463
+ * @property {string|null} [slug] TopicCreated slug
18464
+ * @property {Array.<contentful.ISlugReference>|null} [accessGroups] TopicCreated accessGroups
18465
+ * @property {number|Long|null} [createdAt] TopicCreated createdAt
18466
+ */
18467
+
18468
+ /**
18469
+ * Constructs a new TopicCreated.
18470
+ * @exports TopicCreated
18471
+ * @classdesc Represents a TopicCreated.
18472
+ * @implements ITopicCreated
18473
+ * @constructor
18474
+ * @param {ITopicCreated=} [properties] Properties to set
18475
+ */
18476
+ function TopicCreated(properties) {
18477
+ this.accessGroups = [];
18478
+ if (properties)
18479
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
18480
+ if (properties[keys[i]] != null)
18481
+ this[keys[i]] = properties[keys[i]];
18482
+ }
18483
+
18484
+ /**
18485
+ * TopicCreated slug.
18486
+ * @member {string} slug
18487
+ * @memberof TopicCreated
18488
+ * @instance
18489
+ */
18490
+ TopicCreated.prototype.slug = "";
18491
+
18492
+ /**
18493
+ * TopicCreated accessGroups.
18494
+ * @member {Array.<contentful.ISlugReference>} accessGroups
18495
+ * @memberof TopicCreated
18496
+ * @instance
18497
+ */
18498
+ TopicCreated.prototype.accessGroups = $util.emptyArray;
18499
+
18500
+ /**
18501
+ * TopicCreated createdAt.
18502
+ * @member {number|Long} createdAt
18503
+ * @memberof TopicCreated
18504
+ * @instance
18505
+ */
18506
+ TopicCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
18507
+
18508
+ /**
18509
+ * Creates a new TopicCreated instance using the specified properties.
18510
+ * @function create
18511
+ * @memberof TopicCreated
18512
+ * @static
18513
+ * @param {ITopicCreated=} [properties] Properties to set
18514
+ * @returns {TopicCreated} TopicCreated instance
18515
+ */
18516
+ TopicCreated.create = function create(properties) {
18517
+ return new TopicCreated(properties);
18518
+ };
18519
+
18520
+ /**
18521
+ * Encodes the specified TopicCreated message. Does not implicitly {@link TopicCreated.verify|verify} messages.
18522
+ * @function encode
18523
+ * @memberof TopicCreated
18524
+ * @static
18525
+ * @param {ITopicCreated} message TopicCreated message or plain object to encode
18526
+ * @param {$protobuf.Writer} [writer] Writer to encode to
18527
+ * @returns {$protobuf.Writer} Writer
18528
+ */
18529
+ TopicCreated.encode = function encode(message, writer) {
18530
+ if (!writer)
18531
+ writer = $Writer.create();
18532
+ if (message.slug != null && message.hasOwnProperty("slug"))
18533
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
18534
+ if (message.accessGroups != null && message.accessGroups.length)
18535
+ for (var i = 0; i < message.accessGroups.length; ++i)
18536
+ $root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
18537
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
18538
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.createdAt);
18539
+ return writer;
18540
+ };
18541
+
18542
+ /**
18543
+ * Encodes the specified TopicCreated message, length delimited. Does not implicitly {@link TopicCreated.verify|verify} messages.
18544
+ * @function encodeDelimited
18545
+ * @memberof TopicCreated
18546
+ * @static
18547
+ * @param {ITopicCreated} message TopicCreated message or plain object to encode
18548
+ * @param {$protobuf.Writer} [writer] Writer to encode to
18549
+ * @returns {$protobuf.Writer} Writer
18550
+ */
18551
+ TopicCreated.encodeDelimited = function encodeDelimited(message, writer) {
18552
+ return this.encode(message, writer).ldelim();
18553
+ };
18554
+
18555
+ /**
18556
+ * Decodes a TopicCreated message from the specified reader or buffer.
18557
+ * @function decode
18558
+ * @memberof TopicCreated
18559
+ * @static
18560
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
18561
+ * @param {number} [length] Message length if known beforehand
18562
+ * @returns {TopicCreated} TopicCreated
18563
+ * @throws {Error} If the payload is not a reader or valid buffer
18564
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
18565
+ */
18566
+ TopicCreated.decode = function decode(reader, length) {
18567
+ if (!(reader instanceof $Reader))
18568
+ reader = $Reader.create(reader);
18569
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TopicCreated();
18570
+ while (reader.pos < end) {
18571
+ var tag = reader.uint32();
18572
+ switch (tag >>> 3) {
18573
+ case 1:
18574
+ message.slug = reader.string();
18575
+ break;
18576
+ case 2:
18577
+ if (!(message.accessGroups && message.accessGroups.length))
18578
+ message.accessGroups = [];
18579
+ message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
18580
+ break;
18581
+ case 3:
18582
+ message.createdAt = reader.uint64();
18583
+ break;
18584
+ default:
18585
+ reader.skipType(tag & 7);
18586
+ break;
18587
+ }
18588
+ }
18589
+ return message;
18590
+ };
18591
+
18592
+ /**
18593
+ * Decodes a TopicCreated message from the specified reader or buffer, length delimited.
18594
+ * @function decodeDelimited
18595
+ * @memberof TopicCreated
18596
+ * @static
18597
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
18598
+ * @returns {TopicCreated} TopicCreated
18599
+ * @throws {Error} If the payload is not a reader or valid buffer
18600
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
18601
+ */
18602
+ TopicCreated.decodeDelimited = function decodeDelimited(reader) {
18603
+ if (!(reader instanceof $Reader))
18604
+ reader = new $Reader(reader);
18605
+ return this.decode(reader, reader.uint32());
18606
+ };
18607
+
18608
+ /**
18609
+ * Verifies a TopicCreated message.
18610
+ * @function verify
18611
+ * @memberof TopicCreated
18612
+ * @static
18613
+ * @param {Object.<string,*>} message Plain object to verify
18614
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
18615
+ */
18616
+ TopicCreated.verify = function verify(message) {
18617
+ if (typeof message !== "object" || message === null)
18618
+ return "object expected";
18619
+ if (message.slug != null && message.hasOwnProperty("slug"))
18620
+ if (!$util.isString(message.slug))
18621
+ return "slug: string expected";
18622
+ if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
18623
+ if (!Array.isArray(message.accessGroups))
18624
+ return "accessGroups: array expected";
18625
+ for (var i = 0; i < message.accessGroups.length; ++i) {
18626
+ var error = $root.contentful.SlugReference.verify(message.accessGroups[i]);
18627
+ if (error)
18628
+ return "accessGroups." + error;
18629
+ }
18630
+ }
18631
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
18632
+ if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
18633
+ return "createdAt: integer|Long expected";
18634
+ return null;
18635
+ };
18636
+
18637
+ /**
18638
+ * Creates a TopicCreated message from a plain object. Also converts values to their respective internal types.
18639
+ * @function fromObject
18640
+ * @memberof TopicCreated
18641
+ * @static
18642
+ * @param {Object.<string,*>} object Plain object
18643
+ * @returns {TopicCreated} TopicCreated
18644
+ */
18645
+ TopicCreated.fromObject = function fromObject(object) {
18646
+ if (object instanceof $root.TopicCreated)
18647
+ return object;
18648
+ var message = new $root.TopicCreated();
18649
+ if (object.slug != null)
18650
+ message.slug = String(object.slug);
18651
+ if (object.accessGroups) {
18652
+ if (!Array.isArray(object.accessGroups))
18653
+ throw TypeError(".TopicCreated.accessGroups: array expected");
18654
+ message.accessGroups = [];
18655
+ for (var i = 0; i < object.accessGroups.length; ++i) {
18656
+ if (typeof object.accessGroups[i] !== "object")
18657
+ throw TypeError(".TopicCreated.accessGroups: object expected");
18658
+ message.accessGroups[i] = $root.contentful.SlugReference.fromObject(object.accessGroups[i]);
18659
+ }
18660
+ }
18661
+ if (object.createdAt != null)
18662
+ if ($util.Long)
18663
+ (message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
18664
+ else if (typeof object.createdAt === "string")
18665
+ message.createdAt = parseInt(object.createdAt, 10);
18666
+ else if (typeof object.createdAt === "number")
18667
+ message.createdAt = object.createdAt;
18668
+ else if (typeof object.createdAt === "object")
18669
+ message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
18670
+ return message;
18671
+ };
18672
+
18673
+ /**
18674
+ * Creates a plain object from a TopicCreated message. Also converts values to other types if specified.
18675
+ * @function toObject
18676
+ * @memberof TopicCreated
18677
+ * @static
18678
+ * @param {TopicCreated} message TopicCreated
18679
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
18680
+ * @returns {Object.<string,*>} Plain object
18681
+ */
18682
+ TopicCreated.toObject = function toObject(message, options) {
18683
+ if (!options)
18684
+ options = {};
18685
+ var object = {};
18686
+ if (options.arrays || options.defaults)
18687
+ object.accessGroups = [];
18688
+ if (options.defaults) {
18689
+ object.slug = "";
18690
+ if ($util.Long) {
18691
+ var long = new $util.Long(0, 0, true);
18692
+ object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
18693
+ } else
18694
+ object.createdAt = options.longs === String ? "0" : 0;
18695
+ }
18696
+ if (message.slug != null && message.hasOwnProperty("slug"))
18697
+ object.slug = message.slug;
18698
+ if (message.accessGroups && message.accessGroups.length) {
18699
+ object.accessGroups = [];
18700
+ for (var j = 0; j < message.accessGroups.length; ++j)
18701
+ object.accessGroups[j] = $root.contentful.SlugReference.toObject(message.accessGroups[j], options);
18702
+ }
18703
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
18704
+ if (typeof message.createdAt === "number")
18705
+ object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
18706
+ else
18707
+ 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;
18708
+ return object;
18709
+ };
18710
+
18711
+ /**
18712
+ * Converts this TopicCreated to JSON.
18713
+ * @function toJSON
18714
+ * @memberof TopicCreated
18715
+ * @instance
18716
+ * @returns {Object.<string,*>} JSON object
18717
+ */
18718
+ TopicCreated.prototype.toJSON = function toJSON() {
18719
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
18720
+ };
18721
+
18722
+ return TopicCreated;
18723
+ })();
18724
+
18725
+ $root.TopicUpdated = (function() {
18726
+
18727
+ /**
18728
+ * Properties of a TopicUpdated.
18729
+ * @exports ITopicUpdated
18730
+ * @interface ITopicUpdated
18731
+ * @property {string|null} [slug] TopicUpdated slug
18732
+ * @property {Array.<contentful.ISlugReference>|null} [accessGroups] TopicUpdated accessGroups
18733
+ * @property {number|Long|null} [updatedAt] TopicUpdated updatedAt
18734
+ */
18735
+
18736
+ /**
18737
+ * Constructs a new TopicUpdated.
18738
+ * @exports TopicUpdated
18739
+ * @classdesc Represents a TopicUpdated.
18740
+ * @implements ITopicUpdated
18741
+ * @constructor
18742
+ * @param {ITopicUpdated=} [properties] Properties to set
18743
+ */
18744
+ function TopicUpdated(properties) {
18745
+ this.accessGroups = [];
18746
+ if (properties)
18747
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
18748
+ if (properties[keys[i]] != null)
18749
+ this[keys[i]] = properties[keys[i]];
18750
+ }
18751
+
18752
+ /**
18753
+ * TopicUpdated slug.
18754
+ * @member {string} slug
18755
+ * @memberof TopicUpdated
18756
+ * @instance
18757
+ */
18758
+ TopicUpdated.prototype.slug = "";
18759
+
18760
+ /**
18761
+ * TopicUpdated accessGroups.
18762
+ * @member {Array.<contentful.ISlugReference>} accessGroups
18763
+ * @memberof TopicUpdated
18764
+ * @instance
18765
+ */
18766
+ TopicUpdated.prototype.accessGroups = $util.emptyArray;
18767
+
18768
+ /**
18769
+ * TopicUpdated updatedAt.
18770
+ * @member {number|Long} updatedAt
18771
+ * @memberof TopicUpdated
18772
+ * @instance
18773
+ */
18774
+ TopicUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
18775
+
18776
+ /**
18777
+ * Creates a new TopicUpdated instance using the specified properties.
18778
+ * @function create
18779
+ * @memberof TopicUpdated
18780
+ * @static
18781
+ * @param {ITopicUpdated=} [properties] Properties to set
18782
+ * @returns {TopicUpdated} TopicUpdated instance
18783
+ */
18784
+ TopicUpdated.create = function create(properties) {
18785
+ return new TopicUpdated(properties);
18786
+ };
18787
+
18788
+ /**
18789
+ * Encodes the specified TopicUpdated message. Does not implicitly {@link TopicUpdated.verify|verify} messages.
18790
+ * @function encode
18791
+ * @memberof TopicUpdated
18792
+ * @static
18793
+ * @param {ITopicUpdated} message TopicUpdated message or plain object to encode
18794
+ * @param {$protobuf.Writer} [writer] Writer to encode to
18795
+ * @returns {$protobuf.Writer} Writer
18796
+ */
18797
+ TopicUpdated.encode = function encode(message, writer) {
18798
+ if (!writer)
18799
+ writer = $Writer.create();
18800
+ if (message.slug != null && message.hasOwnProperty("slug"))
18801
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
18802
+ if (message.accessGroups != null && message.accessGroups.length)
18803
+ for (var i = 0; i < message.accessGroups.length; ++i)
18804
+ $root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
18805
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
18806
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.updatedAt);
18807
+ return writer;
18808
+ };
18809
+
18810
+ /**
18811
+ * Encodes the specified TopicUpdated message, length delimited. Does not implicitly {@link TopicUpdated.verify|verify} messages.
18812
+ * @function encodeDelimited
18813
+ * @memberof TopicUpdated
18814
+ * @static
18815
+ * @param {ITopicUpdated} message TopicUpdated message or plain object to encode
18816
+ * @param {$protobuf.Writer} [writer] Writer to encode to
18817
+ * @returns {$protobuf.Writer} Writer
18818
+ */
18819
+ TopicUpdated.encodeDelimited = function encodeDelimited(message, writer) {
18820
+ return this.encode(message, writer).ldelim();
18821
+ };
18822
+
18823
+ /**
18824
+ * Decodes a TopicUpdated message from the specified reader or buffer.
18825
+ * @function decode
18826
+ * @memberof TopicUpdated
18827
+ * @static
18828
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
18829
+ * @param {number} [length] Message length if known beforehand
18830
+ * @returns {TopicUpdated} TopicUpdated
18831
+ * @throws {Error} If the payload is not a reader or valid buffer
18832
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
18833
+ */
18834
+ TopicUpdated.decode = function decode(reader, length) {
18835
+ if (!(reader instanceof $Reader))
18836
+ reader = $Reader.create(reader);
18837
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TopicUpdated();
18838
+ while (reader.pos < end) {
18839
+ var tag = reader.uint32();
18840
+ switch (tag >>> 3) {
18841
+ case 1:
18842
+ message.slug = reader.string();
18843
+ break;
18844
+ case 2:
18845
+ if (!(message.accessGroups && message.accessGroups.length))
18846
+ message.accessGroups = [];
18847
+ message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
18848
+ break;
18849
+ case 3:
18850
+ message.updatedAt = reader.uint64();
18851
+ break;
18852
+ default:
18853
+ reader.skipType(tag & 7);
18854
+ break;
18855
+ }
18856
+ }
18857
+ return message;
18858
+ };
18859
+
18860
+ /**
18861
+ * Decodes a TopicUpdated message from the specified reader or buffer, length delimited.
18862
+ * @function decodeDelimited
18863
+ * @memberof TopicUpdated
18864
+ * @static
18865
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
18866
+ * @returns {TopicUpdated} TopicUpdated
18867
+ * @throws {Error} If the payload is not a reader or valid buffer
18868
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
18869
+ */
18870
+ TopicUpdated.decodeDelimited = function decodeDelimited(reader) {
18871
+ if (!(reader instanceof $Reader))
18872
+ reader = new $Reader(reader);
18873
+ return this.decode(reader, reader.uint32());
18874
+ };
18875
+
18876
+ /**
18877
+ * Verifies a TopicUpdated message.
18878
+ * @function verify
18879
+ * @memberof TopicUpdated
18880
+ * @static
18881
+ * @param {Object.<string,*>} message Plain object to verify
18882
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
18883
+ */
18884
+ TopicUpdated.verify = function verify(message) {
18885
+ if (typeof message !== "object" || message === null)
18886
+ return "object expected";
18887
+ if (message.slug != null && message.hasOwnProperty("slug"))
18888
+ if (!$util.isString(message.slug))
18889
+ return "slug: string expected";
18890
+ if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
18891
+ if (!Array.isArray(message.accessGroups))
18892
+ return "accessGroups: array expected";
18893
+ for (var i = 0; i < message.accessGroups.length; ++i) {
18894
+ var error = $root.contentful.SlugReference.verify(message.accessGroups[i]);
18895
+ if (error)
18896
+ return "accessGroups." + error;
18897
+ }
18898
+ }
18899
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
18900
+ if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
18901
+ return "updatedAt: integer|Long expected";
18902
+ return null;
18903
+ };
18904
+
18905
+ /**
18906
+ * Creates a TopicUpdated message from a plain object. Also converts values to their respective internal types.
18907
+ * @function fromObject
18908
+ * @memberof TopicUpdated
18909
+ * @static
18910
+ * @param {Object.<string,*>} object Plain object
18911
+ * @returns {TopicUpdated} TopicUpdated
18912
+ */
18913
+ TopicUpdated.fromObject = function fromObject(object) {
18914
+ if (object instanceof $root.TopicUpdated)
18915
+ return object;
18916
+ var message = new $root.TopicUpdated();
18917
+ if (object.slug != null)
18918
+ message.slug = String(object.slug);
18919
+ if (object.accessGroups) {
18920
+ if (!Array.isArray(object.accessGroups))
18921
+ throw TypeError(".TopicUpdated.accessGroups: array expected");
18922
+ message.accessGroups = [];
18923
+ for (var i = 0; i < object.accessGroups.length; ++i) {
18924
+ if (typeof object.accessGroups[i] !== "object")
18925
+ throw TypeError(".TopicUpdated.accessGroups: object expected");
18926
+ message.accessGroups[i] = $root.contentful.SlugReference.fromObject(object.accessGroups[i]);
18927
+ }
18928
+ }
18929
+ if (object.updatedAt != null)
18930
+ if ($util.Long)
18931
+ (message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
18932
+ else if (typeof object.updatedAt === "string")
18933
+ message.updatedAt = parseInt(object.updatedAt, 10);
18934
+ else if (typeof object.updatedAt === "number")
18935
+ message.updatedAt = object.updatedAt;
18936
+ else if (typeof object.updatedAt === "object")
18937
+ message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
18938
+ return message;
18939
+ };
18940
+
18941
+ /**
18942
+ * Creates a plain object from a TopicUpdated message. Also converts values to other types if specified.
18943
+ * @function toObject
18944
+ * @memberof TopicUpdated
18945
+ * @static
18946
+ * @param {TopicUpdated} message TopicUpdated
18947
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
18948
+ * @returns {Object.<string,*>} Plain object
18949
+ */
18950
+ TopicUpdated.toObject = function toObject(message, options) {
18951
+ if (!options)
18952
+ options = {};
18953
+ var object = {};
18954
+ if (options.arrays || options.defaults)
18955
+ object.accessGroups = [];
18956
+ if (options.defaults) {
18957
+ object.slug = "";
18958
+ if ($util.Long) {
18959
+ var long = new $util.Long(0, 0, true);
18960
+ object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
18961
+ } else
18962
+ object.updatedAt = options.longs === String ? "0" : 0;
18963
+ }
18964
+ if (message.slug != null && message.hasOwnProperty("slug"))
18965
+ object.slug = message.slug;
18966
+ if (message.accessGroups && message.accessGroups.length) {
18967
+ object.accessGroups = [];
18968
+ for (var j = 0; j < message.accessGroups.length; ++j)
18969
+ object.accessGroups[j] = $root.contentful.SlugReference.toObject(message.accessGroups[j], options);
18970
+ }
18971
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
18972
+ if (typeof message.updatedAt === "number")
18973
+ object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
18974
+ else
18975
+ object.updatedAt = options.longs === String ? $util.Long.prototype.toString.call(message.updatedAt) : options.longs === Number ? new $util.LongBits(message.updatedAt.low >>> 0, message.updatedAt.high >>> 0).toNumber(true) : message.updatedAt;
18976
+ return object;
18977
+ };
18978
+
18979
+ /**
18980
+ * Converts this TopicUpdated to JSON.
18981
+ * @function toJSON
18982
+ * @memberof TopicUpdated
18983
+ * @instance
18984
+ * @returns {Object.<string,*>} JSON object
18985
+ */
18986
+ TopicUpdated.prototype.toJSON = function toJSON() {
18987
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
18988
+ };
18989
+
18990
+ return TopicUpdated;
18991
+ })();
18992
+
18993
+ $root.TopicDeleted = (function() {
18994
+
18995
+ /**
18996
+ * Properties of a TopicDeleted.
18997
+ * @exports ITopicDeleted
18998
+ * @interface ITopicDeleted
18999
+ * @property {string|null} [slug] TopicDeleted slug
19000
+ * @property {number|Long|null} [deletedAt] TopicDeleted deletedAt
19001
+ */
19002
+
19003
+ /**
19004
+ * Constructs a new TopicDeleted.
19005
+ * @exports TopicDeleted
19006
+ * @classdesc Represents a TopicDeleted.
19007
+ * @implements ITopicDeleted
19008
+ * @constructor
19009
+ * @param {ITopicDeleted=} [properties] Properties to set
19010
+ */
19011
+ function TopicDeleted(properties) {
19012
+ if (properties)
19013
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
19014
+ if (properties[keys[i]] != null)
19015
+ this[keys[i]] = properties[keys[i]];
19016
+ }
19017
+
19018
+ /**
19019
+ * TopicDeleted slug.
19020
+ * @member {string} slug
19021
+ * @memberof TopicDeleted
19022
+ * @instance
19023
+ */
19024
+ TopicDeleted.prototype.slug = "";
19025
+
19026
+ /**
19027
+ * TopicDeleted deletedAt.
19028
+ * @member {number|Long} deletedAt
19029
+ * @memberof TopicDeleted
19030
+ * @instance
19031
+ */
19032
+ TopicDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
19033
+
19034
+ /**
19035
+ * Creates a new TopicDeleted instance using the specified properties.
19036
+ * @function create
19037
+ * @memberof TopicDeleted
19038
+ * @static
19039
+ * @param {ITopicDeleted=} [properties] Properties to set
19040
+ * @returns {TopicDeleted} TopicDeleted instance
19041
+ */
19042
+ TopicDeleted.create = function create(properties) {
19043
+ return new TopicDeleted(properties);
19044
+ };
19045
+
19046
+ /**
19047
+ * Encodes the specified TopicDeleted message. Does not implicitly {@link TopicDeleted.verify|verify} messages.
19048
+ * @function encode
19049
+ * @memberof TopicDeleted
19050
+ * @static
19051
+ * @param {ITopicDeleted} message TopicDeleted message or plain object to encode
19052
+ * @param {$protobuf.Writer} [writer] Writer to encode to
19053
+ * @returns {$protobuf.Writer} Writer
19054
+ */
19055
+ TopicDeleted.encode = function encode(message, writer) {
19056
+ if (!writer)
19057
+ writer = $Writer.create();
19058
+ if (message.slug != null && message.hasOwnProperty("slug"))
19059
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
19060
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
19061
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.deletedAt);
19062
+ return writer;
19063
+ };
19064
+
19065
+ /**
19066
+ * Encodes the specified TopicDeleted message, length delimited. Does not implicitly {@link TopicDeleted.verify|verify} messages.
19067
+ * @function encodeDelimited
19068
+ * @memberof TopicDeleted
19069
+ * @static
19070
+ * @param {ITopicDeleted} message TopicDeleted message or plain object to encode
19071
+ * @param {$protobuf.Writer} [writer] Writer to encode to
19072
+ * @returns {$protobuf.Writer} Writer
19073
+ */
19074
+ TopicDeleted.encodeDelimited = function encodeDelimited(message, writer) {
19075
+ return this.encode(message, writer).ldelim();
19076
+ };
19077
+
19078
+ /**
19079
+ * Decodes a TopicDeleted message from the specified reader or buffer.
19080
+ * @function decode
19081
+ * @memberof TopicDeleted
19082
+ * @static
19083
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
19084
+ * @param {number} [length] Message length if known beforehand
19085
+ * @returns {TopicDeleted} TopicDeleted
19086
+ * @throws {Error} If the payload is not a reader or valid buffer
19087
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
19088
+ */
19089
+ TopicDeleted.decode = function decode(reader, length) {
19090
+ if (!(reader instanceof $Reader))
19091
+ reader = $Reader.create(reader);
19092
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TopicDeleted();
19093
+ while (reader.pos < end) {
19094
+ var tag = reader.uint32();
19095
+ switch (tag >>> 3) {
19096
+ case 1:
19097
+ message.slug = reader.string();
19098
+ break;
19099
+ case 2:
19100
+ message.deletedAt = reader.uint64();
19101
+ break;
19102
+ default:
19103
+ reader.skipType(tag & 7);
19104
+ break;
19105
+ }
19106
+ }
19107
+ return message;
19108
+ };
19109
+
19110
+ /**
19111
+ * Decodes a TopicDeleted message from the specified reader or buffer, length delimited.
19112
+ * @function decodeDelimited
19113
+ * @memberof TopicDeleted
19114
+ * @static
19115
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
19116
+ * @returns {TopicDeleted} TopicDeleted
19117
+ * @throws {Error} If the payload is not a reader or valid buffer
19118
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
19119
+ */
19120
+ TopicDeleted.decodeDelimited = function decodeDelimited(reader) {
19121
+ if (!(reader instanceof $Reader))
19122
+ reader = new $Reader(reader);
19123
+ return this.decode(reader, reader.uint32());
19124
+ };
19125
+
19126
+ /**
19127
+ * Verifies a TopicDeleted message.
19128
+ * @function verify
19129
+ * @memberof TopicDeleted
19130
+ * @static
19131
+ * @param {Object.<string,*>} message Plain object to verify
19132
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
19133
+ */
19134
+ TopicDeleted.verify = function verify(message) {
19135
+ if (typeof message !== "object" || message === null)
19136
+ return "object expected";
19137
+ if (message.slug != null && message.hasOwnProperty("slug"))
19138
+ if (!$util.isString(message.slug))
19139
+ return "slug: string expected";
19140
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
19141
+ if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
19142
+ return "deletedAt: integer|Long expected";
19143
+ return null;
19144
+ };
19145
+
19146
+ /**
19147
+ * Creates a TopicDeleted message from a plain object. Also converts values to their respective internal types.
19148
+ * @function fromObject
19149
+ * @memberof TopicDeleted
19150
+ * @static
19151
+ * @param {Object.<string,*>} object Plain object
19152
+ * @returns {TopicDeleted} TopicDeleted
19153
+ */
19154
+ TopicDeleted.fromObject = function fromObject(object) {
19155
+ if (object instanceof $root.TopicDeleted)
19156
+ return object;
19157
+ var message = new $root.TopicDeleted();
19158
+ if (object.slug != null)
19159
+ message.slug = String(object.slug);
19160
+ if (object.deletedAt != null)
19161
+ if ($util.Long)
19162
+ (message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
19163
+ else if (typeof object.deletedAt === "string")
19164
+ message.deletedAt = parseInt(object.deletedAt, 10);
19165
+ else if (typeof object.deletedAt === "number")
19166
+ message.deletedAt = object.deletedAt;
19167
+ else if (typeof object.deletedAt === "object")
19168
+ message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
19169
+ return message;
19170
+ };
19171
+
19172
+ /**
19173
+ * Creates a plain object from a TopicDeleted message. Also converts values to other types if specified.
19174
+ * @function toObject
19175
+ * @memberof TopicDeleted
19176
+ * @static
19177
+ * @param {TopicDeleted} message TopicDeleted
19178
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
19179
+ * @returns {Object.<string,*>} Plain object
19180
+ */
19181
+ TopicDeleted.toObject = function toObject(message, options) {
19182
+ if (!options)
19183
+ options = {};
19184
+ var object = {};
19185
+ if (options.defaults) {
19186
+ object.slug = "";
19187
+ if ($util.Long) {
19188
+ var long = new $util.Long(0, 0, true);
19189
+ object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
19190
+ } else
19191
+ object.deletedAt = options.longs === String ? "0" : 0;
19192
+ }
19193
+ if (message.slug != null && message.hasOwnProperty("slug"))
19194
+ object.slug = message.slug;
19195
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
19196
+ if (typeof message.deletedAt === "number")
19197
+ object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
19198
+ else
19199
+ object.deletedAt = options.longs === String ? $util.Long.prototype.toString.call(message.deletedAt) : options.longs === Number ? new $util.LongBits(message.deletedAt.low >>> 0, message.deletedAt.high >>> 0).toNumber(true) : message.deletedAt;
19200
+ return object;
19201
+ };
19202
+
19203
+ /**
19204
+ * Converts this TopicDeleted to JSON.
19205
+ * @function toJSON
19206
+ * @memberof TopicDeleted
19207
+ * @instance
19208
+ * @returns {Object.<string,*>} JSON object
19209
+ */
19210
+ TopicDeleted.prototype.toJSON = function toJSON() {
19211
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
19212
+ };
19213
+
19214
+ return TopicDeleted;
19215
+ })();
19216
+
18333
19217
  $root.SurveyResponse = (function() {
18334
19218
 
18335
19219
  /**