@headspace/protos-events 1.289.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
@@ -14299,6 +14299,12 @@ export interface IContentfulCollectionCreated {
14299
14299
 
14300
14300
  /** ContentfulCollectionCreated tags */
14301
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);
14302
14308
  }
14303
14309
 
14304
14310
  /** Represents a ContentfulCollectionCreated. */
@@ -14346,6 +14352,12 @@ export class ContentfulCollectionCreated implements IContentfulCollectionCreated
14346
14352
  /** ContentfulCollectionCreated tags. */
14347
14353
  public tags: { [k: string]: contentful.ITags };
14348
14354
 
14355
+ /** ContentfulCollectionCreated techniques. */
14356
+ public techniques: contentful.ISlugReference[];
14357
+
14358
+ /** ContentfulCollectionCreated related. */
14359
+ public related: contentful.ISlugReference[];
14360
+
14349
14361
  /**
14350
14362
  * Creates a new ContentfulCollectionCreated instance using the specified properties.
14351
14363
  * @param [properties] Properties to set
@@ -14455,6 +14467,12 @@ export interface IContentfulCollectionUpdated {
14455
14467
 
14456
14468
  /** ContentfulCollectionUpdated tags */
14457
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);
14458
14476
  }
14459
14477
 
14460
14478
  /** Represents a ContentfulCollectionUpdated. */
@@ -14502,6 +14520,12 @@ export class ContentfulCollectionUpdated implements IContentfulCollectionUpdated
14502
14520
  /** ContentfulCollectionUpdated tags. */
14503
14521
  public tags: { [k: string]: contentful.ITags };
14504
14522
 
14523
+ /** ContentfulCollectionUpdated techniques. */
14524
+ public techniques: contentful.ISlugReference[];
14525
+
14526
+ /** ContentfulCollectionUpdated related. */
14527
+ public related: contentful.ISlugReference[];
14528
+
14505
14529
  /**
14506
14530
  * Creates a new ContentfulCollectionUpdated instance using the specified properties.
14507
14531
  * @param [properties] Properties to set
package/lib/index.js CHANGED
@@ -36359,6 +36359,8 @@ $root.ContentfulCollectionCreated = (function() {
36359
36359
  * @property {boolean|null} [isInternationalOnly] ContentfulCollectionCreated isInternationalOnly
36360
36360
  * @property {Array.<contentful.ISlugReference>|null} [accessGroups] ContentfulCollectionCreated accessGroups
36361
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
36362
36364
  */
36363
36365
 
36364
36366
  /**
@@ -36377,6 +36379,8 @@ $root.ContentfulCollectionCreated = (function() {
36377
36379
  this.collectionContent = [];
36378
36380
  this.accessGroups = [];
36379
36381
  this.tags = {};
36382
+ this.techniques = [];
36383
+ this.related = [];
36380
36384
  if (properties)
36381
36385
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
36382
36386
  if (properties[keys[i]] != null)
@@ -36479,6 +36483,22 @@ $root.ContentfulCollectionCreated = (function() {
36479
36483
  */
36480
36484
  ContentfulCollectionCreated.prototype.tags = $util.emptyObject;
36481
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
+
36482
36502
  /**
36483
36503
  * Creates a new ContentfulCollectionCreated instance using the specified properties.
36484
36504
  * @function create
@@ -36538,6 +36558,12 @@ $root.ContentfulCollectionCreated = (function() {
36538
36558
  writer.uint32(/* id 12, wireType 2 =*/98).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
36539
36559
  $root.contentful.Tags.encode(message.tags[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
36540
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();
36541
36567
  return writer;
36542
36568
  };
36543
36569
 
@@ -36637,6 +36663,16 @@ $root.ContentfulCollectionCreated = (function() {
36637
36663
  reader.pos++;
36638
36664
  message.tags[key] = $root.contentful.Tags.decode(reader, reader.uint32());
36639
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;
36640
36676
  default:
36641
36677
  reader.skipType(tag & 7);
36642
36678
  break;
@@ -36754,6 +36790,24 @@ $root.ContentfulCollectionCreated = (function() {
36754
36790
  return "tags." + error;
36755
36791
  }
36756
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
+ }
36757
36811
  return null;
36758
36812
  };
36759
36813
 
@@ -36855,6 +36909,26 @@ $root.ContentfulCollectionCreated = (function() {
36855
36909
  message.tags[keys[i]] = $root.contentful.Tags.fromObject(object.tags[keys[i]]);
36856
36910
  }
36857
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
+ }
36858
36932
  return message;
36859
36933
  };
36860
36934
 
@@ -36874,6 +36948,8 @@ $root.ContentfulCollectionCreated = (function() {
36874
36948
  if (options.arrays || options.defaults) {
36875
36949
  object.collectionContent = [];
36876
36950
  object.accessGroups = [];
36951
+ object.techniques = [];
36952
+ object.related = [];
36877
36953
  }
36878
36954
  if (options.objects || options.defaults) {
36879
36955
  object.name = {};
@@ -36942,6 +37018,16 @@ $root.ContentfulCollectionCreated = (function() {
36942
37018
  for (var j = 0; j < keys2.length; ++j)
36943
37019
  object.tags[keys2[j]] = $root.contentful.Tags.toObject(message.tags[keys2[j]], options);
36944
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
+ }
36945
37031
  return object;
36946
37032
  };
36947
37033
 
@@ -36977,6 +37063,8 @@ $root.ContentfulCollectionUpdated = (function() {
36977
37063
  * @property {boolean|null} [isInternationalOnly] ContentfulCollectionUpdated isInternationalOnly
36978
37064
  * @property {Array.<contentful.ISlugReference>|null} [accessGroups] ContentfulCollectionUpdated accessGroups
36979
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
36980
37068
  */
36981
37069
 
36982
37070
  /**
@@ -36995,6 +37083,8 @@ $root.ContentfulCollectionUpdated = (function() {
36995
37083
  this.collectionContent = [];
36996
37084
  this.accessGroups = [];
36997
37085
  this.tags = {};
37086
+ this.techniques = [];
37087
+ this.related = [];
36998
37088
  if (properties)
36999
37089
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
37000
37090
  if (properties[keys[i]] != null)
@@ -37097,6 +37187,22 @@ $root.ContentfulCollectionUpdated = (function() {
37097
37187
  */
37098
37188
  ContentfulCollectionUpdated.prototype.tags = $util.emptyObject;
37099
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
+
37100
37206
  /**
37101
37207
  * Creates a new ContentfulCollectionUpdated instance using the specified properties.
37102
37208
  * @function create
@@ -37156,6 +37262,12 @@ $root.ContentfulCollectionUpdated = (function() {
37156
37262
  writer.uint32(/* id 12, wireType 2 =*/98).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
37157
37263
  $root.contentful.Tags.encode(message.tags[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
37158
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();
37159
37271
  return writer;
37160
37272
  };
37161
37273
 
@@ -37255,6 +37367,16 @@ $root.ContentfulCollectionUpdated = (function() {
37255
37367
  reader.pos++;
37256
37368
  message.tags[key] = $root.contentful.Tags.decode(reader, reader.uint32());
37257
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;
37258
37380
  default:
37259
37381
  reader.skipType(tag & 7);
37260
37382
  break;
@@ -37372,6 +37494,24 @@ $root.ContentfulCollectionUpdated = (function() {
37372
37494
  return "tags." + error;
37373
37495
  }
37374
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
+ }
37375
37515
  return null;
37376
37516
  };
37377
37517
 
@@ -37473,6 +37613,26 @@ $root.ContentfulCollectionUpdated = (function() {
37473
37613
  message.tags[keys[i]] = $root.contentful.Tags.fromObject(object.tags[keys[i]]);
37474
37614
  }
37475
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
+ }
37476
37636
  return message;
37477
37637
  };
37478
37638
 
@@ -37492,6 +37652,8 @@ $root.ContentfulCollectionUpdated = (function() {
37492
37652
  if (options.arrays || options.defaults) {
37493
37653
  object.collectionContent = [];
37494
37654
  object.accessGroups = [];
37655
+ object.techniques = [];
37656
+ object.related = [];
37495
37657
  }
37496
37658
  if (options.objects || options.defaults) {
37497
37659
  object.name = {};
@@ -37560,6 +37722,16 @@ $root.ContentfulCollectionUpdated = (function() {
37560
37722
  for (var j = 0; j < keys2.length; ++j)
37561
37723
  object.tags[keys2[j]] = $root.contentful.Tags.toObject(message.tags[keys2[j]], options);
37562
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
+ }
37563
37735
  return object;
37564
37736
  };
37565
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.289.0"
19
+ "version": "1.290.0"
20
20
  }