@headspace/protos-events 1.298.0 → 1.299.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
@@ -23075,6 +23075,9 @@ export interface ICollectionCreated {
23075
23075
 
23076
23076
  /** CollectionCreated related */
23077
23077
  related?: (contentful.ISlugReference[]|null);
23078
+
23079
+ /** CollectionCreated entityId */
23080
+ entityId?: (number|Long|null);
23078
23081
  }
23079
23082
 
23080
23083
  /** Represents a CollectionCreated. */
@@ -23131,6 +23134,9 @@ export class CollectionCreated implements ICollectionCreated {
23131
23134
  /** CollectionCreated related. */
23132
23135
  public related: contentful.ISlugReference[];
23133
23136
 
23137
+ /** CollectionCreated entityId. */
23138
+ public entityId: (number|Long);
23139
+
23134
23140
  /**
23135
23141
  * Creates a new CollectionCreated instance using the specified properties.
23136
23142
  * @param [properties] Properties to set
@@ -23249,6 +23255,9 @@ export interface ICollectionUpdated {
23249
23255
 
23250
23256
  /** CollectionUpdated related */
23251
23257
  related?: (contentful.ISlugReference[]|null);
23258
+
23259
+ /** CollectionUpdated entityId */
23260
+ entityId?: (number|Long|null);
23252
23261
  }
23253
23262
 
23254
23263
  /** Represents a CollectionUpdated. */
@@ -23305,6 +23314,9 @@ export class CollectionUpdated implements ICollectionUpdated {
23305
23314
  /** CollectionUpdated related. */
23306
23315
  public related: contentful.ISlugReference[];
23307
23316
 
23317
+ /** CollectionUpdated entityId. */
23318
+ public entityId: (number|Long);
23319
+
23308
23320
  /**
23309
23321
  * Creates a new CollectionUpdated instance using the specified properties.
23310
23322
  * @param [properties] Properties to set
package/lib/index.js CHANGED
@@ -62576,6 +62576,7 @@ $root.CollectionCreated = (function() {
62576
62576
  * @property {Object.<string,contentful.ITags>|null} [tags] CollectionCreated tags
62577
62577
  * @property {Array.<contentful.ISlugReference>|null} [techniques] CollectionCreated techniques
62578
62578
  * @property {Array.<contentful.ISlugReference>|null} [related] CollectionCreated related
62579
+ * @property {number|Long|null} [entityId] CollectionCreated entityId
62579
62580
  */
62580
62581
 
62581
62582
  /**
@@ -62722,6 +62723,14 @@ $root.CollectionCreated = (function() {
62722
62723
  */
62723
62724
  CollectionCreated.prototype.related = $util.emptyArray;
62724
62725
 
62726
+ /**
62727
+ * CollectionCreated entityId.
62728
+ * @member {number|Long} entityId
62729
+ * @memberof CollectionCreated
62730
+ * @instance
62731
+ */
62732
+ CollectionCreated.prototype.entityId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
62733
+
62725
62734
  /**
62726
62735
  * Creates a new CollectionCreated instance using the specified properties.
62727
62736
  * @function create
@@ -62789,6 +62798,8 @@ $root.CollectionCreated = (function() {
62789
62798
  if (message.related != null && message.related.length)
62790
62799
  for (var i = 0; i < message.related.length; ++i)
62791
62800
  $root.contentful.SlugReference.encode(message.related[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
62801
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
62802
+ writer.uint32(/* id 16, wireType 0 =*/128).int64(message.entityId);
62792
62803
  return writer;
62793
62804
  };
62794
62805
 
@@ -62901,6 +62912,9 @@ $root.CollectionCreated = (function() {
62901
62912
  message.related = [];
62902
62913
  message.related.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
62903
62914
  break;
62915
+ case 16:
62916
+ message.entityId = reader.int64();
62917
+ break;
62904
62918
  default:
62905
62919
  reader.skipType(tag & 7);
62906
62920
  break;
@@ -63039,6 +63053,9 @@ $root.CollectionCreated = (function() {
63039
63053
  return "related." + error;
63040
63054
  }
63041
63055
  }
63056
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
63057
+ if (!$util.isInteger(message.entityId) && !(message.entityId && $util.isInteger(message.entityId.low) && $util.isInteger(message.entityId.high)))
63058
+ return "entityId: integer|Long expected";
63042
63059
  return null;
63043
63060
  };
63044
63061
 
@@ -63162,6 +63179,15 @@ $root.CollectionCreated = (function() {
63162
63179
  message.related[i] = $root.contentful.SlugReference.fromObject(object.related[i]);
63163
63180
  }
63164
63181
  }
63182
+ if (object.entityId != null)
63183
+ if ($util.Long)
63184
+ (message.entityId = $util.Long.fromValue(object.entityId)).unsigned = false;
63185
+ else if (typeof object.entityId === "string")
63186
+ message.entityId = parseInt(object.entityId, 10);
63187
+ else if (typeof object.entityId === "number")
63188
+ message.entityId = object.entityId;
63189
+ else if (typeof object.entityId === "object")
63190
+ message.entityId = new $util.LongBits(object.entityId.low >>> 0, object.entityId.high >>> 0).toNumber();
63165
63191
  return message;
63166
63192
  };
63167
63193
 
@@ -63202,6 +63228,11 @@ $root.CollectionCreated = (function() {
63202
63228
  object.createdAt = options.longs === String ? "0" : 0;
63203
63229
  object.enabled = false;
63204
63230
  object.isInternationalOnly = false;
63231
+ if ($util.Long) {
63232
+ var long = new $util.Long(0, 0, false);
63233
+ object.entityId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
63234
+ } else
63235
+ object.entityId = options.longs === String ? "0" : 0;
63205
63236
  }
63206
63237
  if (message.slug != null && message.hasOwnProperty("slug"))
63207
63238
  object.slug = message.slug;
@@ -63264,6 +63295,11 @@ $root.CollectionCreated = (function() {
63264
63295
  for (var j = 0; j < message.related.length; ++j)
63265
63296
  object.related[j] = $root.contentful.SlugReference.toObject(message.related[j], options);
63266
63297
  }
63298
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
63299
+ if (typeof message.entityId === "number")
63300
+ object.entityId = options.longs === String ? String(message.entityId) : message.entityId;
63301
+ else
63302
+ object.entityId = options.longs === String ? $util.Long.prototype.toString.call(message.entityId) : options.longs === Number ? new $util.LongBits(message.entityId.low >>> 0, message.entityId.high >>> 0).toNumber() : message.entityId;
63267
63303
  return object;
63268
63304
  };
63269
63305
 
@@ -63302,6 +63338,7 @@ $root.CollectionUpdated = (function() {
63302
63338
  * @property {Object.<string,contentful.ITags>|null} [tags] CollectionUpdated tags
63303
63339
  * @property {Array.<contentful.ISlugReference>|null} [techniques] CollectionUpdated techniques
63304
63340
  * @property {Array.<contentful.ISlugReference>|null} [related] CollectionUpdated related
63341
+ * @property {number|Long|null} [entityId] CollectionUpdated entityId
63305
63342
  */
63306
63343
 
63307
63344
  /**
@@ -63448,6 +63485,14 @@ $root.CollectionUpdated = (function() {
63448
63485
  */
63449
63486
  CollectionUpdated.prototype.related = $util.emptyArray;
63450
63487
 
63488
+ /**
63489
+ * CollectionUpdated entityId.
63490
+ * @member {number|Long} entityId
63491
+ * @memberof CollectionUpdated
63492
+ * @instance
63493
+ */
63494
+ CollectionUpdated.prototype.entityId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
63495
+
63451
63496
  /**
63452
63497
  * Creates a new CollectionUpdated instance using the specified properties.
63453
63498
  * @function create
@@ -63515,6 +63560,8 @@ $root.CollectionUpdated = (function() {
63515
63560
  if (message.related != null && message.related.length)
63516
63561
  for (var i = 0; i < message.related.length; ++i)
63517
63562
  $root.contentful.SlugReference.encode(message.related[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
63563
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
63564
+ writer.uint32(/* id 16, wireType 0 =*/128).int64(message.entityId);
63518
63565
  return writer;
63519
63566
  };
63520
63567
 
@@ -63627,6 +63674,9 @@ $root.CollectionUpdated = (function() {
63627
63674
  message.related = [];
63628
63675
  message.related.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
63629
63676
  break;
63677
+ case 16:
63678
+ message.entityId = reader.int64();
63679
+ break;
63630
63680
  default:
63631
63681
  reader.skipType(tag & 7);
63632
63682
  break;
@@ -63765,6 +63815,9 @@ $root.CollectionUpdated = (function() {
63765
63815
  return "related." + error;
63766
63816
  }
63767
63817
  }
63818
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
63819
+ if (!$util.isInteger(message.entityId) && !(message.entityId && $util.isInteger(message.entityId.low) && $util.isInteger(message.entityId.high)))
63820
+ return "entityId: integer|Long expected";
63768
63821
  return null;
63769
63822
  };
63770
63823
 
@@ -63888,6 +63941,15 @@ $root.CollectionUpdated = (function() {
63888
63941
  message.related[i] = $root.contentful.SlugReference.fromObject(object.related[i]);
63889
63942
  }
63890
63943
  }
63944
+ if (object.entityId != null)
63945
+ if ($util.Long)
63946
+ (message.entityId = $util.Long.fromValue(object.entityId)).unsigned = false;
63947
+ else if (typeof object.entityId === "string")
63948
+ message.entityId = parseInt(object.entityId, 10);
63949
+ else if (typeof object.entityId === "number")
63950
+ message.entityId = object.entityId;
63951
+ else if (typeof object.entityId === "object")
63952
+ message.entityId = new $util.LongBits(object.entityId.low >>> 0, object.entityId.high >>> 0).toNumber();
63891
63953
  return message;
63892
63954
  };
63893
63955
 
@@ -63928,6 +63990,11 @@ $root.CollectionUpdated = (function() {
63928
63990
  object.updatedAt = options.longs === String ? "0" : 0;
63929
63991
  object.enabled = false;
63930
63992
  object.isInternationalOnly = false;
63993
+ if ($util.Long) {
63994
+ var long = new $util.Long(0, 0, false);
63995
+ object.entityId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
63996
+ } else
63997
+ object.entityId = options.longs === String ? "0" : 0;
63931
63998
  }
63932
63999
  if (message.slug != null && message.hasOwnProperty("slug"))
63933
64000
  object.slug = message.slug;
@@ -63990,6 +64057,11 @@ $root.CollectionUpdated = (function() {
63990
64057
  for (var j = 0; j < message.related.length; ++j)
63991
64058
  object.related[j] = $root.contentful.SlugReference.toObject(message.related[j], options);
63992
64059
  }
64060
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
64061
+ if (typeof message.entityId === "number")
64062
+ object.entityId = options.longs === String ? String(message.entityId) : message.entityId;
64063
+ else
64064
+ object.entityId = options.longs === String ? $util.Long.prototype.toString.call(message.entityId) : options.longs === Number ? new $util.LongBits(message.entityId.low >>> 0, message.entityId.high >>> 0).toNumber() : message.entityId;
63993
64065
  return object;
63994
64066
  };
63995
64067
 
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.298.0"
19
+ "version": "1.299.0"
20
20
  }