@headspace/protos-events 1.288.0 → 1.290.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.d.ts CHANGED
@@ -14287,6 +14287,24 @@ export interface IContentfulCollectionCreated {
14287
14287
 
14288
14288
  /** ContentfulCollectionCreated collectionContent */
14289
14289
  collectionContent?: (contentful.ISlugReference[]|null);
14290
+
14291
+ /** ContentfulCollectionCreated enabled */
14292
+ enabled?: (boolean|null);
14293
+
14294
+ /** ContentfulCollectionCreated isInternationalOnly */
14295
+ isInternationalOnly?: (boolean|null);
14296
+
14297
+ /** ContentfulCollectionCreated accessGroups */
14298
+ accessGroups?: (contentful.ISlugReference[]|null);
14299
+
14300
+ /** ContentfulCollectionCreated tags */
14301
+ tags?: ({ [k: string]: contentful.ITags }|null);
14302
+
14303
+ /** ContentfulCollectionCreated techniques */
14304
+ techniques?: (contentful.ISlugReference[]|null);
14305
+
14306
+ /** ContentfulCollectionCreated related */
14307
+ related?: (contentful.ISlugReference[]|null);
14290
14308
  }
14291
14309
 
14292
14310
  /** Represents a ContentfulCollectionCreated. */
@@ -14322,6 +14340,24 @@ export class ContentfulCollectionCreated implements IContentfulCollectionCreated
14322
14340
  /** ContentfulCollectionCreated collectionContent. */
14323
14341
  public collectionContent: contentful.ISlugReference[];
14324
14342
 
14343
+ /** ContentfulCollectionCreated enabled. */
14344
+ public enabled: boolean;
14345
+
14346
+ /** ContentfulCollectionCreated isInternationalOnly. */
14347
+ public isInternationalOnly: boolean;
14348
+
14349
+ /** ContentfulCollectionCreated accessGroups. */
14350
+ public accessGroups: contentful.ISlugReference[];
14351
+
14352
+ /** ContentfulCollectionCreated tags. */
14353
+ public tags: { [k: string]: contentful.ITags };
14354
+
14355
+ /** ContentfulCollectionCreated techniques. */
14356
+ public techniques: contentful.ISlugReference[];
14357
+
14358
+ /** ContentfulCollectionCreated related. */
14359
+ public related: contentful.ISlugReference[];
14360
+
14325
14361
  /**
14326
14362
  * Creates a new ContentfulCollectionCreated instance using the specified properties.
14327
14363
  * @param [properties] Properties to set
@@ -14419,6 +14455,24 @@ export interface IContentfulCollectionUpdated {
14419
14455
 
14420
14456
  /** ContentfulCollectionUpdated collectionContent */
14421
14457
  collectionContent?: (contentful.ISlugReference[]|null);
14458
+
14459
+ /** ContentfulCollectionUpdated enabled */
14460
+ enabled?: (boolean|null);
14461
+
14462
+ /** ContentfulCollectionUpdated isInternationalOnly */
14463
+ isInternationalOnly?: (boolean|null);
14464
+
14465
+ /** ContentfulCollectionUpdated accessGroups */
14466
+ accessGroups?: (contentful.ISlugReference[]|null);
14467
+
14468
+ /** ContentfulCollectionUpdated tags */
14469
+ tags?: ({ [k: string]: contentful.ITags }|null);
14470
+
14471
+ /** ContentfulCollectionUpdated techniques */
14472
+ techniques?: (contentful.ISlugReference[]|null);
14473
+
14474
+ /** ContentfulCollectionUpdated related */
14475
+ related?: (contentful.ISlugReference[]|null);
14422
14476
  }
14423
14477
 
14424
14478
  /** Represents a ContentfulCollectionUpdated. */
@@ -14454,6 +14508,24 @@ export class ContentfulCollectionUpdated implements IContentfulCollectionUpdated
14454
14508
  /** ContentfulCollectionUpdated collectionContent. */
14455
14509
  public collectionContent: contentful.ISlugReference[];
14456
14510
 
14511
+ /** ContentfulCollectionUpdated enabled. */
14512
+ public enabled: boolean;
14513
+
14514
+ /** ContentfulCollectionUpdated isInternationalOnly. */
14515
+ public isInternationalOnly: boolean;
14516
+
14517
+ /** ContentfulCollectionUpdated accessGroups. */
14518
+ public accessGroups: contentful.ISlugReference[];
14519
+
14520
+ /** ContentfulCollectionUpdated tags. */
14521
+ public tags: { [k: string]: contentful.ITags };
14522
+
14523
+ /** ContentfulCollectionUpdated techniques. */
14524
+ public techniques: contentful.ISlugReference[];
14525
+
14526
+ /** ContentfulCollectionUpdated related. */
14527
+ public related: contentful.ISlugReference[];
14528
+
14457
14529
  /**
14458
14530
  * Creates a new ContentfulCollectionUpdated instance using the specified properties.
14459
14531
  * @param [properties] Properties to set
package/lib/index.js CHANGED
@@ -36355,6 +36355,12 @@ $root.ContentfulCollectionCreated = (function() {
36355
36355
  * @property {ContentCollectionType|null} [collectionType] ContentfulCollectionCreated collectionType
36356
36356
  * @property {Object.<string,contentful.IIdReference>|null} [tileMedia] ContentfulCollectionCreated tileMedia
36357
36357
  * @property {Array.<contentful.ISlugReference>|null} [collectionContent] ContentfulCollectionCreated collectionContent
36358
+ * @property {boolean|null} [enabled] ContentfulCollectionCreated enabled
36359
+ * @property {boolean|null} [isInternationalOnly] ContentfulCollectionCreated isInternationalOnly
36360
+ * @property {Array.<contentful.ISlugReference>|null} [accessGroups] ContentfulCollectionCreated accessGroups
36361
+ * @property {Object.<string,contentful.ITags>|null} [tags] ContentfulCollectionCreated tags
36362
+ * @property {Array.<contentful.ISlugReference>|null} [techniques] ContentfulCollectionCreated techniques
36363
+ * @property {Array.<contentful.ISlugReference>|null} [related] ContentfulCollectionCreated related
36358
36364
  */
36359
36365
 
36360
36366
  /**
@@ -36371,6 +36377,10 @@ $root.ContentfulCollectionCreated = (function() {
36371
36377
  this.description = {};
36372
36378
  this.tileMedia = {};
36373
36379
  this.collectionContent = [];
36380
+ this.accessGroups = [];
36381
+ this.tags = {};
36382
+ this.techniques = [];
36383
+ this.related = [];
36374
36384
  if (properties)
36375
36385
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
36376
36386
  if (properties[keys[i]] != null)
@@ -36441,6 +36451,54 @@ $root.ContentfulCollectionCreated = (function() {
36441
36451
  */
36442
36452
  ContentfulCollectionCreated.prototype.collectionContent = $util.emptyArray;
36443
36453
 
36454
+ /**
36455
+ * ContentfulCollectionCreated enabled.
36456
+ * @member {boolean} enabled
36457
+ * @memberof ContentfulCollectionCreated
36458
+ * @instance
36459
+ */
36460
+ ContentfulCollectionCreated.prototype.enabled = false;
36461
+
36462
+ /**
36463
+ * ContentfulCollectionCreated isInternationalOnly.
36464
+ * @member {boolean} isInternationalOnly
36465
+ * @memberof ContentfulCollectionCreated
36466
+ * @instance
36467
+ */
36468
+ ContentfulCollectionCreated.prototype.isInternationalOnly = false;
36469
+
36470
+ /**
36471
+ * ContentfulCollectionCreated accessGroups.
36472
+ * @member {Array.<contentful.ISlugReference>} accessGroups
36473
+ * @memberof ContentfulCollectionCreated
36474
+ * @instance
36475
+ */
36476
+ ContentfulCollectionCreated.prototype.accessGroups = $util.emptyArray;
36477
+
36478
+ /**
36479
+ * ContentfulCollectionCreated tags.
36480
+ * @member {Object.<string,contentful.ITags>} tags
36481
+ * @memberof ContentfulCollectionCreated
36482
+ * @instance
36483
+ */
36484
+ ContentfulCollectionCreated.prototype.tags = $util.emptyObject;
36485
+
36486
+ /**
36487
+ * ContentfulCollectionCreated techniques.
36488
+ * @member {Array.<contentful.ISlugReference>} techniques
36489
+ * @memberof ContentfulCollectionCreated
36490
+ * @instance
36491
+ */
36492
+ ContentfulCollectionCreated.prototype.techniques = $util.emptyArray;
36493
+
36494
+ /**
36495
+ * ContentfulCollectionCreated related.
36496
+ * @member {Array.<contentful.ISlugReference>} related
36497
+ * @memberof ContentfulCollectionCreated
36498
+ * @instance
36499
+ */
36500
+ ContentfulCollectionCreated.prototype.related = $util.emptyArray;
36501
+
36444
36502
  /**
36445
36503
  * Creates a new ContentfulCollectionCreated instance using the specified properties.
36446
36504
  * @function create
@@ -36488,6 +36546,24 @@ $root.ContentfulCollectionCreated = (function() {
36488
36546
  if (message.collectionContent != null && message.collectionContent.length)
36489
36547
  for (var i = 0; i < message.collectionContent.length; ++i)
36490
36548
  $root.contentful.SlugReference.encode(message.collectionContent[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
36549
+ if (message.enabled != null && message.hasOwnProperty("enabled"))
36550
+ writer.uint32(/* id 9, wireType 0 =*/72).bool(message.enabled);
36551
+ if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
36552
+ writer.uint32(/* id 10, wireType 0 =*/80).bool(message.isInternationalOnly);
36553
+ if (message.accessGroups != null && message.accessGroups.length)
36554
+ for (var i = 0; i < message.accessGroups.length; ++i)
36555
+ $root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
36556
+ if (message.tags != null && message.hasOwnProperty("tags"))
36557
+ for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) {
36558
+ writer.uint32(/* id 12, wireType 2 =*/98).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
36559
+ $root.contentful.Tags.encode(message.tags[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
36560
+ }
36561
+ if (message.techniques != null && message.techniques.length)
36562
+ for (var i = 0; i < message.techniques.length; ++i)
36563
+ $root.contentful.SlugReference.encode(message.techniques[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
36564
+ if (message.related != null && message.related.length)
36565
+ for (var i = 0; i < message.related.length; ++i)
36566
+ $root.contentful.SlugReference.encode(message.related[i], writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim();
36491
36567
  return writer;
36492
36568
  };
36493
36569
 
@@ -36568,6 +36644,35 @@ $root.ContentfulCollectionCreated = (function() {
36568
36644
  message.collectionContent = [];
36569
36645
  message.collectionContent.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
36570
36646
  break;
36647
+ case 9:
36648
+ message.enabled = reader.bool();
36649
+ break;
36650
+ case 10:
36651
+ message.isInternationalOnly = reader.bool();
36652
+ break;
36653
+ case 11:
36654
+ if (!(message.accessGroups && message.accessGroups.length))
36655
+ message.accessGroups = [];
36656
+ message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
36657
+ break;
36658
+ case 12:
36659
+ reader.skip().pos++;
36660
+ if (message.tags === $util.emptyObject)
36661
+ message.tags = {};
36662
+ key = reader.string();
36663
+ reader.pos++;
36664
+ message.tags[key] = $root.contentful.Tags.decode(reader, reader.uint32());
36665
+ break;
36666
+ case 13:
36667
+ if (!(message.techniques && message.techniques.length))
36668
+ message.techniques = [];
36669
+ message.techniques.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
36670
+ break;
36671
+ case 14:
36672
+ if (!(message.related && message.related.length))
36673
+ message.related = [];
36674
+ message.related.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
36675
+ break;
36571
36676
  default:
36572
36677
  reader.skipType(tag & 7);
36573
36678
  break;
@@ -36660,6 +36765,49 @@ $root.ContentfulCollectionCreated = (function() {
36660
36765
  return "collectionContent." + error;
36661
36766
  }
36662
36767
  }
36768
+ if (message.enabled != null && message.hasOwnProperty("enabled"))
36769
+ if (typeof message.enabled !== "boolean")
36770
+ return "enabled: boolean expected";
36771
+ if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
36772
+ if (typeof message.isInternationalOnly !== "boolean")
36773
+ return "isInternationalOnly: boolean expected";
36774
+ if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
36775
+ if (!Array.isArray(message.accessGroups))
36776
+ return "accessGroups: array expected";
36777
+ for (var i = 0; i < message.accessGroups.length; ++i) {
36778
+ var error = $root.contentful.SlugReference.verify(message.accessGroups[i]);
36779
+ if (error)
36780
+ return "accessGroups." + error;
36781
+ }
36782
+ }
36783
+ if (message.tags != null && message.hasOwnProperty("tags")) {
36784
+ if (!$util.isObject(message.tags))
36785
+ return "tags: object expected";
36786
+ var key = Object.keys(message.tags);
36787
+ for (var i = 0; i < key.length; ++i) {
36788
+ var error = $root.contentful.Tags.verify(message.tags[key[i]]);
36789
+ if (error)
36790
+ return "tags." + error;
36791
+ }
36792
+ }
36793
+ if (message.techniques != null && message.hasOwnProperty("techniques")) {
36794
+ if (!Array.isArray(message.techniques))
36795
+ return "techniques: array expected";
36796
+ for (var i = 0; i < message.techniques.length; ++i) {
36797
+ var error = $root.contentful.SlugReference.verify(message.techniques[i]);
36798
+ if (error)
36799
+ return "techniques." + error;
36800
+ }
36801
+ }
36802
+ if (message.related != null && message.hasOwnProperty("related")) {
36803
+ if (!Array.isArray(message.related))
36804
+ return "related: array expected";
36805
+ for (var i = 0; i < message.related.length; ++i) {
36806
+ var error = $root.contentful.SlugReference.verify(message.related[i]);
36807
+ if (error)
36808
+ return "related." + error;
36809
+ }
36810
+ }
36663
36811
  return null;
36664
36812
  };
36665
36813
 
@@ -36737,6 +36885,50 @@ $root.ContentfulCollectionCreated = (function() {
36737
36885
  message.collectionContent[i] = $root.contentful.SlugReference.fromObject(object.collectionContent[i]);
36738
36886
  }
36739
36887
  }
36888
+ if (object.enabled != null)
36889
+ message.enabled = Boolean(object.enabled);
36890
+ if (object.isInternationalOnly != null)
36891
+ message.isInternationalOnly = Boolean(object.isInternationalOnly);
36892
+ if (object.accessGroups) {
36893
+ if (!Array.isArray(object.accessGroups))
36894
+ throw TypeError(".ContentfulCollectionCreated.accessGroups: array expected");
36895
+ message.accessGroups = [];
36896
+ for (var i = 0; i < object.accessGroups.length; ++i) {
36897
+ if (typeof object.accessGroups[i] !== "object")
36898
+ throw TypeError(".ContentfulCollectionCreated.accessGroups: object expected");
36899
+ message.accessGroups[i] = $root.contentful.SlugReference.fromObject(object.accessGroups[i]);
36900
+ }
36901
+ }
36902
+ if (object.tags) {
36903
+ if (typeof object.tags !== "object")
36904
+ throw TypeError(".ContentfulCollectionCreated.tags: object expected");
36905
+ message.tags = {};
36906
+ for (var keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) {
36907
+ if (typeof object.tags[keys[i]] !== "object")
36908
+ throw TypeError(".ContentfulCollectionCreated.tags: object expected");
36909
+ message.tags[keys[i]] = $root.contentful.Tags.fromObject(object.tags[keys[i]]);
36910
+ }
36911
+ }
36912
+ if (object.techniques) {
36913
+ if (!Array.isArray(object.techniques))
36914
+ throw TypeError(".ContentfulCollectionCreated.techniques: array expected");
36915
+ message.techniques = [];
36916
+ for (var i = 0; i < object.techniques.length; ++i) {
36917
+ if (typeof object.techniques[i] !== "object")
36918
+ throw TypeError(".ContentfulCollectionCreated.techniques: object expected");
36919
+ message.techniques[i] = $root.contentful.SlugReference.fromObject(object.techniques[i]);
36920
+ }
36921
+ }
36922
+ if (object.related) {
36923
+ if (!Array.isArray(object.related))
36924
+ throw TypeError(".ContentfulCollectionCreated.related: array expected");
36925
+ message.related = [];
36926
+ for (var i = 0; i < object.related.length; ++i) {
36927
+ if (typeof object.related[i] !== "object")
36928
+ throw TypeError(".ContentfulCollectionCreated.related: object expected");
36929
+ message.related[i] = $root.contentful.SlugReference.fromObject(object.related[i]);
36930
+ }
36931
+ }
36740
36932
  return message;
36741
36933
  };
36742
36934
 
@@ -36753,13 +36945,18 @@ $root.ContentfulCollectionCreated = (function() {
36753
36945
  if (!options)
36754
36946
  options = {};
36755
36947
  var object = {};
36756
- if (options.arrays || options.defaults)
36948
+ if (options.arrays || options.defaults) {
36757
36949
  object.collectionContent = [];
36950
+ object.accessGroups = [];
36951
+ object.techniques = [];
36952
+ object.related = [];
36953
+ }
36758
36954
  if (options.objects || options.defaults) {
36759
36955
  object.name = {};
36760
36956
  object.teaser = {};
36761
36957
  object.description = {};
36762
36958
  object.tileMedia = {};
36959
+ object.tags = {};
36763
36960
  }
36764
36961
  if (options.defaults) {
36765
36962
  object.slug = "";
@@ -36769,6 +36966,8 @@ $root.ContentfulCollectionCreated = (function() {
36769
36966
  } else
36770
36967
  object.createdAt = options.longs === String ? "0" : 0;
36771
36968
  object.collectionType = options.enums === String ? "CONTENT_COLLECTION_TYPE_UNRECOGNIZED" : 0;
36969
+ object.enabled = false;
36970
+ object.isInternationalOnly = false;
36772
36971
  }
36773
36972
  var keys2;
36774
36973
  if (message.name && (keys2 = Object.keys(message.name)).length) {
@@ -36805,6 +37004,30 @@ $root.ContentfulCollectionCreated = (function() {
36805
37004
  for (var j = 0; j < message.collectionContent.length; ++j)
36806
37005
  object.collectionContent[j] = $root.contentful.SlugReference.toObject(message.collectionContent[j], options);
36807
37006
  }
37007
+ if (message.enabled != null && message.hasOwnProperty("enabled"))
37008
+ object.enabled = message.enabled;
37009
+ if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
37010
+ object.isInternationalOnly = message.isInternationalOnly;
37011
+ if (message.accessGroups && message.accessGroups.length) {
37012
+ object.accessGroups = [];
37013
+ for (var j = 0; j < message.accessGroups.length; ++j)
37014
+ object.accessGroups[j] = $root.contentful.SlugReference.toObject(message.accessGroups[j], options);
37015
+ }
37016
+ if (message.tags && (keys2 = Object.keys(message.tags)).length) {
37017
+ object.tags = {};
37018
+ for (var j = 0; j < keys2.length; ++j)
37019
+ object.tags[keys2[j]] = $root.contentful.Tags.toObject(message.tags[keys2[j]], options);
37020
+ }
37021
+ if (message.techniques && message.techniques.length) {
37022
+ object.techniques = [];
37023
+ for (var j = 0; j < message.techniques.length; ++j)
37024
+ object.techniques[j] = $root.contentful.SlugReference.toObject(message.techniques[j], options);
37025
+ }
37026
+ if (message.related && message.related.length) {
37027
+ object.related = [];
37028
+ for (var j = 0; j < message.related.length; ++j)
37029
+ object.related[j] = $root.contentful.SlugReference.toObject(message.related[j], options);
37030
+ }
36808
37031
  return object;
36809
37032
  };
36810
37033
 
@@ -36836,6 +37059,12 @@ $root.ContentfulCollectionUpdated = (function() {
36836
37059
  * @property {ContentCollectionType|null} [collectionType] ContentfulCollectionUpdated collectionType
36837
37060
  * @property {Object.<string,contentful.IIdReference>|null} [tileMedia] ContentfulCollectionUpdated tileMedia
36838
37061
  * @property {Array.<contentful.ISlugReference>|null} [collectionContent] ContentfulCollectionUpdated collectionContent
37062
+ * @property {boolean|null} [enabled] ContentfulCollectionUpdated enabled
37063
+ * @property {boolean|null} [isInternationalOnly] ContentfulCollectionUpdated isInternationalOnly
37064
+ * @property {Array.<contentful.ISlugReference>|null} [accessGroups] ContentfulCollectionUpdated accessGroups
37065
+ * @property {Object.<string,contentful.ITags>|null} [tags] ContentfulCollectionUpdated tags
37066
+ * @property {Array.<contentful.ISlugReference>|null} [techniques] ContentfulCollectionUpdated techniques
37067
+ * @property {Array.<contentful.ISlugReference>|null} [related] ContentfulCollectionUpdated related
36839
37068
  */
36840
37069
 
36841
37070
  /**
@@ -36852,6 +37081,10 @@ $root.ContentfulCollectionUpdated = (function() {
36852
37081
  this.description = {};
36853
37082
  this.tileMedia = {};
36854
37083
  this.collectionContent = [];
37084
+ this.accessGroups = [];
37085
+ this.tags = {};
37086
+ this.techniques = [];
37087
+ this.related = [];
36855
37088
  if (properties)
36856
37089
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
36857
37090
  if (properties[keys[i]] != null)
@@ -36922,6 +37155,54 @@ $root.ContentfulCollectionUpdated = (function() {
36922
37155
  */
36923
37156
  ContentfulCollectionUpdated.prototype.collectionContent = $util.emptyArray;
36924
37157
 
37158
+ /**
37159
+ * ContentfulCollectionUpdated enabled.
37160
+ * @member {boolean} enabled
37161
+ * @memberof ContentfulCollectionUpdated
37162
+ * @instance
37163
+ */
37164
+ ContentfulCollectionUpdated.prototype.enabled = false;
37165
+
37166
+ /**
37167
+ * ContentfulCollectionUpdated isInternationalOnly.
37168
+ * @member {boolean} isInternationalOnly
37169
+ * @memberof ContentfulCollectionUpdated
37170
+ * @instance
37171
+ */
37172
+ ContentfulCollectionUpdated.prototype.isInternationalOnly = false;
37173
+
37174
+ /**
37175
+ * ContentfulCollectionUpdated accessGroups.
37176
+ * @member {Array.<contentful.ISlugReference>} accessGroups
37177
+ * @memberof ContentfulCollectionUpdated
37178
+ * @instance
37179
+ */
37180
+ ContentfulCollectionUpdated.prototype.accessGroups = $util.emptyArray;
37181
+
37182
+ /**
37183
+ * ContentfulCollectionUpdated tags.
37184
+ * @member {Object.<string,contentful.ITags>} tags
37185
+ * @memberof ContentfulCollectionUpdated
37186
+ * @instance
37187
+ */
37188
+ ContentfulCollectionUpdated.prototype.tags = $util.emptyObject;
37189
+
37190
+ /**
37191
+ * ContentfulCollectionUpdated techniques.
37192
+ * @member {Array.<contentful.ISlugReference>} techniques
37193
+ * @memberof ContentfulCollectionUpdated
37194
+ * @instance
37195
+ */
37196
+ ContentfulCollectionUpdated.prototype.techniques = $util.emptyArray;
37197
+
37198
+ /**
37199
+ * ContentfulCollectionUpdated related.
37200
+ * @member {Array.<contentful.ISlugReference>} related
37201
+ * @memberof ContentfulCollectionUpdated
37202
+ * @instance
37203
+ */
37204
+ ContentfulCollectionUpdated.prototype.related = $util.emptyArray;
37205
+
36925
37206
  /**
36926
37207
  * Creates a new ContentfulCollectionUpdated instance using the specified properties.
36927
37208
  * @function create
@@ -36969,6 +37250,24 @@ $root.ContentfulCollectionUpdated = (function() {
36969
37250
  if (message.collectionContent != null && message.collectionContent.length)
36970
37251
  for (var i = 0; i < message.collectionContent.length; ++i)
36971
37252
  $root.contentful.SlugReference.encode(message.collectionContent[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
37253
+ if (message.enabled != null && message.hasOwnProperty("enabled"))
37254
+ writer.uint32(/* id 9, wireType 0 =*/72).bool(message.enabled);
37255
+ if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
37256
+ writer.uint32(/* id 10, wireType 0 =*/80).bool(message.isInternationalOnly);
37257
+ if (message.accessGroups != null && message.accessGroups.length)
37258
+ for (var i = 0; i < message.accessGroups.length; ++i)
37259
+ $root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
37260
+ if (message.tags != null && message.hasOwnProperty("tags"))
37261
+ for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) {
37262
+ writer.uint32(/* id 12, wireType 2 =*/98).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
37263
+ $root.contentful.Tags.encode(message.tags[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
37264
+ }
37265
+ if (message.techniques != null && message.techniques.length)
37266
+ for (var i = 0; i < message.techniques.length; ++i)
37267
+ $root.contentful.SlugReference.encode(message.techniques[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
37268
+ if (message.related != null && message.related.length)
37269
+ for (var i = 0; i < message.related.length; ++i)
37270
+ $root.contentful.SlugReference.encode(message.related[i], writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim();
36972
37271
  return writer;
36973
37272
  };
36974
37273
 
@@ -37049,6 +37348,35 @@ $root.ContentfulCollectionUpdated = (function() {
37049
37348
  message.collectionContent = [];
37050
37349
  message.collectionContent.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
37051
37350
  break;
37351
+ case 9:
37352
+ message.enabled = reader.bool();
37353
+ break;
37354
+ case 10:
37355
+ message.isInternationalOnly = reader.bool();
37356
+ break;
37357
+ case 11:
37358
+ if (!(message.accessGroups && message.accessGroups.length))
37359
+ message.accessGroups = [];
37360
+ message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
37361
+ break;
37362
+ case 12:
37363
+ reader.skip().pos++;
37364
+ if (message.tags === $util.emptyObject)
37365
+ message.tags = {};
37366
+ key = reader.string();
37367
+ reader.pos++;
37368
+ message.tags[key] = $root.contentful.Tags.decode(reader, reader.uint32());
37369
+ break;
37370
+ case 13:
37371
+ if (!(message.techniques && message.techniques.length))
37372
+ message.techniques = [];
37373
+ message.techniques.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
37374
+ break;
37375
+ case 14:
37376
+ if (!(message.related && message.related.length))
37377
+ message.related = [];
37378
+ message.related.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
37379
+ break;
37052
37380
  default:
37053
37381
  reader.skipType(tag & 7);
37054
37382
  break;
@@ -37141,6 +37469,49 @@ $root.ContentfulCollectionUpdated = (function() {
37141
37469
  return "collectionContent." + error;
37142
37470
  }
37143
37471
  }
37472
+ if (message.enabled != null && message.hasOwnProperty("enabled"))
37473
+ if (typeof message.enabled !== "boolean")
37474
+ return "enabled: boolean expected";
37475
+ if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
37476
+ if (typeof message.isInternationalOnly !== "boolean")
37477
+ return "isInternationalOnly: boolean expected";
37478
+ if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
37479
+ if (!Array.isArray(message.accessGroups))
37480
+ return "accessGroups: array expected";
37481
+ for (var i = 0; i < message.accessGroups.length; ++i) {
37482
+ var error = $root.contentful.SlugReference.verify(message.accessGroups[i]);
37483
+ if (error)
37484
+ return "accessGroups." + error;
37485
+ }
37486
+ }
37487
+ if (message.tags != null && message.hasOwnProperty("tags")) {
37488
+ if (!$util.isObject(message.tags))
37489
+ return "tags: object expected";
37490
+ var key = Object.keys(message.tags);
37491
+ for (var i = 0; i < key.length; ++i) {
37492
+ var error = $root.contentful.Tags.verify(message.tags[key[i]]);
37493
+ if (error)
37494
+ return "tags." + error;
37495
+ }
37496
+ }
37497
+ if (message.techniques != null && message.hasOwnProperty("techniques")) {
37498
+ if (!Array.isArray(message.techniques))
37499
+ return "techniques: array expected";
37500
+ for (var i = 0; i < message.techniques.length; ++i) {
37501
+ var error = $root.contentful.SlugReference.verify(message.techniques[i]);
37502
+ if (error)
37503
+ return "techniques." + error;
37504
+ }
37505
+ }
37506
+ if (message.related != null && message.hasOwnProperty("related")) {
37507
+ if (!Array.isArray(message.related))
37508
+ return "related: array expected";
37509
+ for (var i = 0; i < message.related.length; ++i) {
37510
+ var error = $root.contentful.SlugReference.verify(message.related[i]);
37511
+ if (error)
37512
+ return "related." + error;
37513
+ }
37514
+ }
37144
37515
  return null;
37145
37516
  };
37146
37517
 
@@ -37218,6 +37589,50 @@ $root.ContentfulCollectionUpdated = (function() {
37218
37589
  message.collectionContent[i] = $root.contentful.SlugReference.fromObject(object.collectionContent[i]);
37219
37590
  }
37220
37591
  }
37592
+ if (object.enabled != null)
37593
+ message.enabled = Boolean(object.enabled);
37594
+ if (object.isInternationalOnly != null)
37595
+ message.isInternationalOnly = Boolean(object.isInternationalOnly);
37596
+ if (object.accessGroups) {
37597
+ if (!Array.isArray(object.accessGroups))
37598
+ throw TypeError(".ContentfulCollectionUpdated.accessGroups: array expected");
37599
+ message.accessGroups = [];
37600
+ for (var i = 0; i < object.accessGroups.length; ++i) {
37601
+ if (typeof object.accessGroups[i] !== "object")
37602
+ throw TypeError(".ContentfulCollectionUpdated.accessGroups: object expected");
37603
+ message.accessGroups[i] = $root.contentful.SlugReference.fromObject(object.accessGroups[i]);
37604
+ }
37605
+ }
37606
+ if (object.tags) {
37607
+ if (typeof object.tags !== "object")
37608
+ throw TypeError(".ContentfulCollectionUpdated.tags: object expected");
37609
+ message.tags = {};
37610
+ for (var keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) {
37611
+ if (typeof object.tags[keys[i]] !== "object")
37612
+ throw TypeError(".ContentfulCollectionUpdated.tags: object expected");
37613
+ message.tags[keys[i]] = $root.contentful.Tags.fromObject(object.tags[keys[i]]);
37614
+ }
37615
+ }
37616
+ if (object.techniques) {
37617
+ if (!Array.isArray(object.techniques))
37618
+ throw TypeError(".ContentfulCollectionUpdated.techniques: array expected");
37619
+ message.techniques = [];
37620
+ for (var i = 0; i < object.techniques.length; ++i) {
37621
+ if (typeof object.techniques[i] !== "object")
37622
+ throw TypeError(".ContentfulCollectionUpdated.techniques: object expected");
37623
+ message.techniques[i] = $root.contentful.SlugReference.fromObject(object.techniques[i]);
37624
+ }
37625
+ }
37626
+ if (object.related) {
37627
+ if (!Array.isArray(object.related))
37628
+ throw TypeError(".ContentfulCollectionUpdated.related: array expected");
37629
+ message.related = [];
37630
+ for (var i = 0; i < object.related.length; ++i) {
37631
+ if (typeof object.related[i] !== "object")
37632
+ throw TypeError(".ContentfulCollectionUpdated.related: object expected");
37633
+ message.related[i] = $root.contentful.SlugReference.fromObject(object.related[i]);
37634
+ }
37635
+ }
37221
37636
  return message;
37222
37637
  };
37223
37638
 
@@ -37234,13 +37649,18 @@ $root.ContentfulCollectionUpdated = (function() {
37234
37649
  if (!options)
37235
37650
  options = {};
37236
37651
  var object = {};
37237
- if (options.arrays || options.defaults)
37652
+ if (options.arrays || options.defaults) {
37238
37653
  object.collectionContent = [];
37654
+ object.accessGroups = [];
37655
+ object.techniques = [];
37656
+ object.related = [];
37657
+ }
37239
37658
  if (options.objects || options.defaults) {
37240
37659
  object.name = {};
37241
37660
  object.teaser = {};
37242
37661
  object.description = {};
37243
37662
  object.tileMedia = {};
37663
+ object.tags = {};
37244
37664
  }
37245
37665
  if (options.defaults) {
37246
37666
  object.slug = "";
@@ -37250,6 +37670,8 @@ $root.ContentfulCollectionUpdated = (function() {
37250
37670
  } else
37251
37671
  object.updatedAt = options.longs === String ? "0" : 0;
37252
37672
  object.collectionType = options.enums === String ? "CONTENT_COLLECTION_TYPE_UNRECOGNIZED" : 0;
37673
+ object.enabled = false;
37674
+ object.isInternationalOnly = false;
37253
37675
  }
37254
37676
  var keys2;
37255
37677
  if (message.name && (keys2 = Object.keys(message.name)).length) {
@@ -37286,6 +37708,30 @@ $root.ContentfulCollectionUpdated = (function() {
37286
37708
  for (var j = 0; j < message.collectionContent.length; ++j)
37287
37709
  object.collectionContent[j] = $root.contentful.SlugReference.toObject(message.collectionContent[j], options);
37288
37710
  }
37711
+ if (message.enabled != null && message.hasOwnProperty("enabled"))
37712
+ object.enabled = message.enabled;
37713
+ if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
37714
+ object.isInternationalOnly = message.isInternationalOnly;
37715
+ if (message.accessGroups && message.accessGroups.length) {
37716
+ object.accessGroups = [];
37717
+ for (var j = 0; j < message.accessGroups.length; ++j)
37718
+ object.accessGroups[j] = $root.contentful.SlugReference.toObject(message.accessGroups[j], options);
37719
+ }
37720
+ if (message.tags && (keys2 = Object.keys(message.tags)).length) {
37721
+ object.tags = {};
37722
+ for (var j = 0; j < keys2.length; ++j)
37723
+ object.tags[keys2[j]] = $root.contentful.Tags.toObject(message.tags[keys2[j]], options);
37724
+ }
37725
+ if (message.techniques && message.techniques.length) {
37726
+ object.techniques = [];
37727
+ for (var j = 0; j < message.techniques.length; ++j)
37728
+ object.techniques[j] = $root.contentful.SlugReference.toObject(message.techniques[j], options);
37729
+ }
37730
+ if (message.related && message.related.length) {
37731
+ object.related = [];
37732
+ for (var j = 0; j < message.related.length; ++j)
37733
+ object.related[j] = $root.contentful.SlugReference.toObject(message.related[j], options);
37734
+ }
37289
37735
  return object;
37290
37736
  };
37291
37737
 
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.288.0"
19
+ "version": "1.290.0"
20
20
  }