@headspace/protos-events 1.141.0 → 1.143.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 +28 -16
  2. package/lib/index.js +166 -122
  3. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -8585,8 +8585,11 @@ export interface IActivityGroupCreated {
8585
8585
  /** ActivityGroupCreated slug */
8586
8586
  slug?: (string|null);
8587
8587
 
8588
- /** ActivityGroupCreated accessGroups */
8589
- accessGroups?: (contentful.ISlugReference[]|null);
8588
+ /** ActivityGroupCreated contentType */
8589
+ contentType?: (string|null);
8590
+
8591
+ /** ActivityGroupCreated accessGroup */
8592
+ accessGroup?: (contentful.ISlugReference[]|null);
8590
8593
 
8591
8594
  /** ActivityGroupCreated createdAt */
8592
8595
  createdAt?: (number|Long|null);
@@ -8604,8 +8607,11 @@ export class ActivityGroupCreated implements IActivityGroupCreated {
8604
8607
  /** ActivityGroupCreated slug. */
8605
8608
  public slug: string;
8606
8609
 
8607
- /** ActivityGroupCreated accessGroups. */
8608
- public accessGroups: contentful.ISlugReference[];
8610
+ /** ActivityGroupCreated contentType. */
8611
+ public contentType: string;
8612
+
8613
+ /** ActivityGroupCreated accessGroup. */
8614
+ public accessGroup: contentful.ISlugReference[];
8609
8615
 
8610
8616
  /** ActivityGroupCreated createdAt. */
8611
8617
  public createdAt: (number|Long);
@@ -8687,8 +8693,11 @@ export interface IActivityGroupUpdated {
8687
8693
  /** ActivityGroupUpdated slug */
8688
8694
  slug?: (string|null);
8689
8695
 
8690
- /** ActivityGroupUpdated accessGroups */
8691
- accessGroups?: (contentful.ISlugReference[]|null);
8696
+ /** ActivityGroupUpdated contentType */
8697
+ contentType?: (string|null);
8698
+
8699
+ /** ActivityGroupUpdated accessGroup */
8700
+ accessGroup?: (contentful.ISlugReference[]|null);
8692
8701
 
8693
8702
  /** ActivityGroupUpdated updatedAt */
8694
8703
  updatedAt?: (number|Long|null);
@@ -8706,8 +8715,11 @@ export class ActivityGroupUpdated implements IActivityGroupUpdated {
8706
8715
  /** ActivityGroupUpdated slug. */
8707
8716
  public slug: string;
8708
8717
 
8709
- /** ActivityGroupUpdated accessGroups. */
8710
- public accessGroups: contentful.ISlugReference[];
8718
+ /** ActivityGroupUpdated contentType. */
8719
+ public contentType: string;
8720
+
8721
+ /** ActivityGroupUpdated accessGroup. */
8722
+ public accessGroup: contentful.ISlugReference[];
8711
8723
 
8712
8724
  /** ActivityGroupUpdated updatedAt. */
8713
8725
  public updatedAt: (number|Long);
@@ -9095,8 +9107,8 @@ export interface IActivityCreated {
9095
9107
  /** ActivityCreated slug */
9096
9108
  slug?: (string|null);
9097
9109
 
9098
- /** ActivityCreated accessGroups */
9099
- accessGroups?: (contentful.ISlugReference[]|null);
9110
+ /** ActivityCreated accessGroup */
9111
+ accessGroup?: (contentful.ISlugReference[]|null);
9100
9112
 
9101
9113
  /** ActivityCreated createdAt */
9102
9114
  createdAt?: (number|Long|null);
@@ -9114,8 +9126,8 @@ export class ActivityCreated implements IActivityCreated {
9114
9126
  /** ActivityCreated slug. */
9115
9127
  public slug: string;
9116
9128
 
9117
- /** ActivityCreated accessGroups. */
9118
- public accessGroups: contentful.ISlugReference[];
9129
+ /** ActivityCreated accessGroup. */
9130
+ public accessGroup: contentful.ISlugReference[];
9119
9131
 
9120
9132
  /** ActivityCreated createdAt. */
9121
9133
  public createdAt: (number|Long);
@@ -9197,8 +9209,8 @@ export interface IActivityUpdated {
9197
9209
  /** ActivityUpdated slug */
9198
9210
  slug?: (string|null);
9199
9211
 
9200
- /** ActivityUpdated accessGroups */
9201
- accessGroups?: (contentful.ISlugReference[]|null);
9212
+ /** ActivityUpdated accessGroup */
9213
+ accessGroup?: (contentful.ISlugReference[]|null);
9202
9214
 
9203
9215
  /** ActivityUpdated updatedAt */
9204
9216
  updatedAt?: (number|Long|null);
@@ -9216,8 +9228,8 @@ export class ActivityUpdated implements IActivityUpdated {
9216
9228
  /** ActivityUpdated slug. */
9217
9229
  public slug: string;
9218
9230
 
9219
- /** ActivityUpdated accessGroups. */
9220
- public accessGroups: contentful.ISlugReference[];
9231
+ /** ActivityUpdated accessGroup. */
9232
+ public accessGroup: contentful.ISlugReference[];
9221
9233
 
9222
9234
  /** ActivityUpdated updatedAt. */
9223
9235
  public updatedAt: (number|Long);
package/lib/index.js CHANGED
@@ -23834,7 +23834,8 @@ $root.ActivityGroupCreated = (function() {
23834
23834
  * @exports IActivityGroupCreated
23835
23835
  * @interface IActivityGroupCreated
23836
23836
  * @property {string|null} [slug] ActivityGroupCreated slug
23837
- * @property {Array.<contentful.ISlugReference>|null} [accessGroups] ActivityGroupCreated accessGroups
23837
+ * @property {string|null} [contentType] ActivityGroupCreated contentType
23838
+ * @property {Array.<contentful.ISlugReference>|null} [accessGroup] ActivityGroupCreated accessGroup
23838
23839
  * @property {number|Long|null} [createdAt] ActivityGroupCreated createdAt
23839
23840
  */
23840
23841
 
@@ -23847,7 +23848,7 @@ $root.ActivityGroupCreated = (function() {
23847
23848
  * @param {IActivityGroupCreated=} [properties] Properties to set
23848
23849
  */
23849
23850
  function ActivityGroupCreated(properties) {
23850
- this.accessGroups = [];
23851
+ this.accessGroup = [];
23851
23852
  if (properties)
23852
23853
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
23853
23854
  if (properties[keys[i]] != null)
@@ -23863,12 +23864,20 @@ $root.ActivityGroupCreated = (function() {
23863
23864
  ActivityGroupCreated.prototype.slug = "";
23864
23865
 
23865
23866
  /**
23866
- * ActivityGroupCreated accessGroups.
23867
- * @member {Array.<contentful.ISlugReference>} accessGroups
23867
+ * ActivityGroupCreated contentType.
23868
+ * @member {string} contentType
23868
23869
  * @memberof ActivityGroupCreated
23869
23870
  * @instance
23870
23871
  */
23871
- ActivityGroupCreated.prototype.accessGroups = $util.emptyArray;
23872
+ ActivityGroupCreated.prototype.contentType = "";
23873
+
23874
+ /**
23875
+ * ActivityGroupCreated accessGroup.
23876
+ * @member {Array.<contentful.ISlugReference>} accessGroup
23877
+ * @memberof ActivityGroupCreated
23878
+ * @instance
23879
+ */
23880
+ ActivityGroupCreated.prototype.accessGroup = $util.emptyArray;
23872
23881
 
23873
23882
  /**
23874
23883
  * ActivityGroupCreated createdAt.
@@ -23904,11 +23913,13 @@ $root.ActivityGroupCreated = (function() {
23904
23913
  writer = $Writer.create();
23905
23914
  if (message.slug != null && message.hasOwnProperty("slug"))
23906
23915
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
23907
- if (message.accessGroups != null && message.accessGroups.length)
23908
- for (var i = 0; i < message.accessGroups.length; ++i)
23909
- $root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
23916
+ if (message.contentType != null && message.hasOwnProperty("contentType"))
23917
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.contentType);
23918
+ if (message.accessGroup != null && message.accessGroup.length)
23919
+ for (var i = 0; i < message.accessGroup.length; ++i)
23920
+ $root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
23910
23921
  if (message.createdAt != null && message.hasOwnProperty("createdAt"))
23911
- writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.createdAt);
23922
+ writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.createdAt);
23912
23923
  return writer;
23913
23924
  };
23914
23925
 
@@ -23947,11 +23958,14 @@ $root.ActivityGroupCreated = (function() {
23947
23958
  message.slug = reader.string();
23948
23959
  break;
23949
23960
  case 2:
23950
- if (!(message.accessGroups && message.accessGroups.length))
23951
- message.accessGroups = [];
23952
- message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
23961
+ message.contentType = reader.string();
23953
23962
  break;
23954
23963
  case 3:
23964
+ if (!(message.accessGroup && message.accessGroup.length))
23965
+ message.accessGroup = [];
23966
+ message.accessGroup.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
23967
+ break;
23968
+ case 4:
23955
23969
  message.createdAt = reader.uint64();
23956
23970
  break;
23957
23971
  default:
@@ -23992,13 +24006,16 @@ $root.ActivityGroupCreated = (function() {
23992
24006
  if (message.slug != null && message.hasOwnProperty("slug"))
23993
24007
  if (!$util.isString(message.slug))
23994
24008
  return "slug: string expected";
23995
- if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
23996
- if (!Array.isArray(message.accessGroups))
23997
- return "accessGroups: array expected";
23998
- for (var i = 0; i < message.accessGroups.length; ++i) {
23999
- var error = $root.contentful.SlugReference.verify(message.accessGroups[i]);
24009
+ if (message.contentType != null && message.hasOwnProperty("contentType"))
24010
+ if (!$util.isString(message.contentType))
24011
+ return "contentType: string expected";
24012
+ if (message.accessGroup != null && message.hasOwnProperty("accessGroup")) {
24013
+ if (!Array.isArray(message.accessGroup))
24014
+ return "accessGroup: array expected";
24015
+ for (var i = 0; i < message.accessGroup.length; ++i) {
24016
+ var error = $root.contentful.SlugReference.verify(message.accessGroup[i]);
24000
24017
  if (error)
24001
- return "accessGroups." + error;
24018
+ return "accessGroup." + error;
24002
24019
  }
24003
24020
  }
24004
24021
  if (message.createdAt != null && message.hasOwnProperty("createdAt"))
@@ -24021,14 +24038,16 @@ $root.ActivityGroupCreated = (function() {
24021
24038
  var message = new $root.ActivityGroupCreated();
24022
24039
  if (object.slug != null)
24023
24040
  message.slug = String(object.slug);
24024
- if (object.accessGroups) {
24025
- if (!Array.isArray(object.accessGroups))
24026
- throw TypeError(".ActivityGroupCreated.accessGroups: array expected");
24027
- message.accessGroups = [];
24028
- for (var i = 0; i < object.accessGroups.length; ++i) {
24029
- if (typeof object.accessGroups[i] !== "object")
24030
- throw TypeError(".ActivityGroupCreated.accessGroups: object expected");
24031
- message.accessGroups[i] = $root.contentful.SlugReference.fromObject(object.accessGroups[i]);
24041
+ if (object.contentType != null)
24042
+ message.contentType = String(object.contentType);
24043
+ if (object.accessGroup) {
24044
+ if (!Array.isArray(object.accessGroup))
24045
+ throw TypeError(".ActivityGroupCreated.accessGroup: array expected");
24046
+ message.accessGroup = [];
24047
+ for (var i = 0; i < object.accessGroup.length; ++i) {
24048
+ if (typeof object.accessGroup[i] !== "object")
24049
+ throw TypeError(".ActivityGroupCreated.accessGroup: object expected");
24050
+ message.accessGroup[i] = $root.contentful.SlugReference.fromObject(object.accessGroup[i]);
24032
24051
  }
24033
24052
  }
24034
24053
  if (object.createdAt != null)
@@ -24057,9 +24076,10 @@ $root.ActivityGroupCreated = (function() {
24057
24076
  options = {};
24058
24077
  var object = {};
24059
24078
  if (options.arrays || options.defaults)
24060
- object.accessGroups = [];
24079
+ object.accessGroup = [];
24061
24080
  if (options.defaults) {
24062
24081
  object.slug = "";
24082
+ object.contentType = "";
24063
24083
  if ($util.Long) {
24064
24084
  var long = new $util.Long(0, 0, true);
24065
24085
  object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
@@ -24068,10 +24088,12 @@ $root.ActivityGroupCreated = (function() {
24068
24088
  }
24069
24089
  if (message.slug != null && message.hasOwnProperty("slug"))
24070
24090
  object.slug = message.slug;
24071
- if (message.accessGroups && message.accessGroups.length) {
24072
- object.accessGroups = [];
24073
- for (var j = 0; j < message.accessGroups.length; ++j)
24074
- object.accessGroups[j] = $root.contentful.SlugReference.toObject(message.accessGroups[j], options);
24091
+ if (message.contentType != null && message.hasOwnProperty("contentType"))
24092
+ object.contentType = message.contentType;
24093
+ if (message.accessGroup && message.accessGroup.length) {
24094
+ object.accessGroup = [];
24095
+ for (var j = 0; j < message.accessGroup.length; ++j)
24096
+ object.accessGroup[j] = $root.contentful.SlugReference.toObject(message.accessGroup[j], options);
24075
24097
  }
24076
24098
  if (message.createdAt != null && message.hasOwnProperty("createdAt"))
24077
24099
  if (typeof message.createdAt === "number")
@@ -24102,7 +24124,8 @@ $root.ActivityGroupUpdated = (function() {
24102
24124
  * @exports IActivityGroupUpdated
24103
24125
  * @interface IActivityGroupUpdated
24104
24126
  * @property {string|null} [slug] ActivityGroupUpdated slug
24105
- * @property {Array.<contentful.ISlugReference>|null} [accessGroups] ActivityGroupUpdated accessGroups
24127
+ * @property {string|null} [contentType] ActivityGroupUpdated contentType
24128
+ * @property {Array.<contentful.ISlugReference>|null} [accessGroup] ActivityGroupUpdated accessGroup
24106
24129
  * @property {number|Long|null} [updatedAt] ActivityGroupUpdated updatedAt
24107
24130
  */
24108
24131
 
@@ -24115,7 +24138,7 @@ $root.ActivityGroupUpdated = (function() {
24115
24138
  * @param {IActivityGroupUpdated=} [properties] Properties to set
24116
24139
  */
24117
24140
  function ActivityGroupUpdated(properties) {
24118
- this.accessGroups = [];
24141
+ this.accessGroup = [];
24119
24142
  if (properties)
24120
24143
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
24121
24144
  if (properties[keys[i]] != null)
@@ -24131,12 +24154,20 @@ $root.ActivityGroupUpdated = (function() {
24131
24154
  ActivityGroupUpdated.prototype.slug = "";
24132
24155
 
24133
24156
  /**
24134
- * ActivityGroupUpdated accessGroups.
24135
- * @member {Array.<contentful.ISlugReference>} accessGroups
24157
+ * ActivityGroupUpdated contentType.
24158
+ * @member {string} contentType
24159
+ * @memberof ActivityGroupUpdated
24160
+ * @instance
24161
+ */
24162
+ ActivityGroupUpdated.prototype.contentType = "";
24163
+
24164
+ /**
24165
+ * ActivityGroupUpdated accessGroup.
24166
+ * @member {Array.<contentful.ISlugReference>} accessGroup
24136
24167
  * @memberof ActivityGroupUpdated
24137
24168
  * @instance
24138
24169
  */
24139
- ActivityGroupUpdated.prototype.accessGroups = $util.emptyArray;
24170
+ ActivityGroupUpdated.prototype.accessGroup = $util.emptyArray;
24140
24171
 
24141
24172
  /**
24142
24173
  * ActivityGroupUpdated updatedAt.
@@ -24172,11 +24203,13 @@ $root.ActivityGroupUpdated = (function() {
24172
24203
  writer = $Writer.create();
24173
24204
  if (message.slug != null && message.hasOwnProperty("slug"))
24174
24205
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
24175
- if (message.accessGroups != null && message.accessGroups.length)
24176
- for (var i = 0; i < message.accessGroups.length; ++i)
24177
- $root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
24206
+ if (message.contentType != null && message.hasOwnProperty("contentType"))
24207
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.contentType);
24208
+ if (message.accessGroup != null && message.accessGroup.length)
24209
+ for (var i = 0; i < message.accessGroup.length; ++i)
24210
+ $root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
24178
24211
  if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
24179
- writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.updatedAt);
24212
+ writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.updatedAt);
24180
24213
  return writer;
24181
24214
  };
24182
24215
 
@@ -24215,11 +24248,14 @@ $root.ActivityGroupUpdated = (function() {
24215
24248
  message.slug = reader.string();
24216
24249
  break;
24217
24250
  case 2:
24218
- if (!(message.accessGroups && message.accessGroups.length))
24219
- message.accessGroups = [];
24220
- message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
24251
+ message.contentType = reader.string();
24221
24252
  break;
24222
24253
  case 3:
24254
+ if (!(message.accessGroup && message.accessGroup.length))
24255
+ message.accessGroup = [];
24256
+ message.accessGroup.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
24257
+ break;
24258
+ case 4:
24223
24259
  message.updatedAt = reader.uint64();
24224
24260
  break;
24225
24261
  default:
@@ -24260,13 +24296,16 @@ $root.ActivityGroupUpdated = (function() {
24260
24296
  if (message.slug != null && message.hasOwnProperty("slug"))
24261
24297
  if (!$util.isString(message.slug))
24262
24298
  return "slug: string expected";
24263
- if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
24264
- if (!Array.isArray(message.accessGroups))
24265
- return "accessGroups: array expected";
24266
- for (var i = 0; i < message.accessGroups.length; ++i) {
24267
- var error = $root.contentful.SlugReference.verify(message.accessGroups[i]);
24299
+ if (message.contentType != null && message.hasOwnProperty("contentType"))
24300
+ if (!$util.isString(message.contentType))
24301
+ return "contentType: string expected";
24302
+ if (message.accessGroup != null && message.hasOwnProperty("accessGroup")) {
24303
+ if (!Array.isArray(message.accessGroup))
24304
+ return "accessGroup: array expected";
24305
+ for (var i = 0; i < message.accessGroup.length; ++i) {
24306
+ var error = $root.contentful.SlugReference.verify(message.accessGroup[i]);
24268
24307
  if (error)
24269
- return "accessGroups." + error;
24308
+ return "accessGroup." + error;
24270
24309
  }
24271
24310
  }
24272
24311
  if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
@@ -24289,14 +24328,16 @@ $root.ActivityGroupUpdated = (function() {
24289
24328
  var message = new $root.ActivityGroupUpdated();
24290
24329
  if (object.slug != null)
24291
24330
  message.slug = String(object.slug);
24292
- if (object.accessGroups) {
24293
- if (!Array.isArray(object.accessGroups))
24294
- throw TypeError(".ActivityGroupUpdated.accessGroups: array expected");
24295
- message.accessGroups = [];
24296
- for (var i = 0; i < object.accessGroups.length; ++i) {
24297
- if (typeof object.accessGroups[i] !== "object")
24298
- throw TypeError(".ActivityGroupUpdated.accessGroups: object expected");
24299
- message.accessGroups[i] = $root.contentful.SlugReference.fromObject(object.accessGroups[i]);
24331
+ if (object.contentType != null)
24332
+ message.contentType = String(object.contentType);
24333
+ if (object.accessGroup) {
24334
+ if (!Array.isArray(object.accessGroup))
24335
+ throw TypeError(".ActivityGroupUpdated.accessGroup: array expected");
24336
+ message.accessGroup = [];
24337
+ for (var i = 0; i < object.accessGroup.length; ++i) {
24338
+ if (typeof object.accessGroup[i] !== "object")
24339
+ throw TypeError(".ActivityGroupUpdated.accessGroup: object expected");
24340
+ message.accessGroup[i] = $root.contentful.SlugReference.fromObject(object.accessGroup[i]);
24300
24341
  }
24301
24342
  }
24302
24343
  if (object.updatedAt != null)
@@ -24325,9 +24366,10 @@ $root.ActivityGroupUpdated = (function() {
24325
24366
  options = {};
24326
24367
  var object = {};
24327
24368
  if (options.arrays || options.defaults)
24328
- object.accessGroups = [];
24369
+ object.accessGroup = [];
24329
24370
  if (options.defaults) {
24330
24371
  object.slug = "";
24372
+ object.contentType = "";
24331
24373
  if ($util.Long) {
24332
24374
  var long = new $util.Long(0, 0, true);
24333
24375
  object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
@@ -24336,10 +24378,12 @@ $root.ActivityGroupUpdated = (function() {
24336
24378
  }
24337
24379
  if (message.slug != null && message.hasOwnProperty("slug"))
24338
24380
  object.slug = message.slug;
24339
- if (message.accessGroups && message.accessGroups.length) {
24340
- object.accessGroups = [];
24341
- for (var j = 0; j < message.accessGroups.length; ++j)
24342
- object.accessGroups[j] = $root.contentful.SlugReference.toObject(message.accessGroups[j], options);
24381
+ if (message.contentType != null && message.hasOwnProperty("contentType"))
24382
+ object.contentType = message.contentType;
24383
+ if (message.accessGroup && message.accessGroup.length) {
24384
+ object.accessGroup = [];
24385
+ for (var j = 0; j < message.accessGroup.length; ++j)
24386
+ object.accessGroup[j] = $root.contentful.SlugReference.toObject(message.accessGroup[j], options);
24343
24387
  }
24344
24388
  if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
24345
24389
  if (typeof message.updatedAt === "number")
@@ -25100,7 +25144,7 @@ $root.ActivityCreated = (function() {
25100
25144
  * @exports IActivityCreated
25101
25145
  * @interface IActivityCreated
25102
25146
  * @property {string|null} [slug] ActivityCreated slug
25103
- * @property {Array.<contentful.ISlugReference>|null} [accessGroups] ActivityCreated accessGroups
25147
+ * @property {Array.<contentful.ISlugReference>|null} [accessGroup] ActivityCreated accessGroup
25104
25148
  * @property {number|Long|null} [createdAt] ActivityCreated createdAt
25105
25149
  */
25106
25150
 
@@ -25113,7 +25157,7 @@ $root.ActivityCreated = (function() {
25113
25157
  * @param {IActivityCreated=} [properties] Properties to set
25114
25158
  */
25115
25159
  function ActivityCreated(properties) {
25116
- this.accessGroups = [];
25160
+ this.accessGroup = [];
25117
25161
  if (properties)
25118
25162
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
25119
25163
  if (properties[keys[i]] != null)
@@ -25129,12 +25173,12 @@ $root.ActivityCreated = (function() {
25129
25173
  ActivityCreated.prototype.slug = "";
25130
25174
 
25131
25175
  /**
25132
- * ActivityCreated accessGroups.
25133
- * @member {Array.<contentful.ISlugReference>} accessGroups
25176
+ * ActivityCreated accessGroup.
25177
+ * @member {Array.<contentful.ISlugReference>} accessGroup
25134
25178
  * @memberof ActivityCreated
25135
25179
  * @instance
25136
25180
  */
25137
- ActivityCreated.prototype.accessGroups = $util.emptyArray;
25181
+ ActivityCreated.prototype.accessGroup = $util.emptyArray;
25138
25182
 
25139
25183
  /**
25140
25184
  * ActivityCreated createdAt.
@@ -25170,9 +25214,9 @@ $root.ActivityCreated = (function() {
25170
25214
  writer = $Writer.create();
25171
25215
  if (message.slug != null && message.hasOwnProperty("slug"))
25172
25216
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
25173
- if (message.accessGroups != null && message.accessGroups.length)
25174
- for (var i = 0; i < message.accessGroups.length; ++i)
25175
- $root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
25217
+ if (message.accessGroup != null && message.accessGroup.length)
25218
+ for (var i = 0; i < message.accessGroup.length; ++i)
25219
+ $root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
25176
25220
  if (message.createdAt != null && message.hasOwnProperty("createdAt"))
25177
25221
  writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.createdAt);
25178
25222
  return writer;
@@ -25213,9 +25257,9 @@ $root.ActivityCreated = (function() {
25213
25257
  message.slug = reader.string();
25214
25258
  break;
25215
25259
  case 2:
25216
- if (!(message.accessGroups && message.accessGroups.length))
25217
- message.accessGroups = [];
25218
- message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
25260
+ if (!(message.accessGroup && message.accessGroup.length))
25261
+ message.accessGroup = [];
25262
+ message.accessGroup.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
25219
25263
  break;
25220
25264
  case 3:
25221
25265
  message.createdAt = reader.uint64();
@@ -25258,13 +25302,13 @@ $root.ActivityCreated = (function() {
25258
25302
  if (message.slug != null && message.hasOwnProperty("slug"))
25259
25303
  if (!$util.isString(message.slug))
25260
25304
  return "slug: string expected";
25261
- if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
25262
- if (!Array.isArray(message.accessGroups))
25263
- return "accessGroups: array expected";
25264
- for (var i = 0; i < message.accessGroups.length; ++i) {
25265
- var error = $root.contentful.SlugReference.verify(message.accessGroups[i]);
25305
+ if (message.accessGroup != null && message.hasOwnProperty("accessGroup")) {
25306
+ if (!Array.isArray(message.accessGroup))
25307
+ return "accessGroup: array expected";
25308
+ for (var i = 0; i < message.accessGroup.length; ++i) {
25309
+ var error = $root.contentful.SlugReference.verify(message.accessGroup[i]);
25266
25310
  if (error)
25267
- return "accessGroups." + error;
25311
+ return "accessGroup." + error;
25268
25312
  }
25269
25313
  }
25270
25314
  if (message.createdAt != null && message.hasOwnProperty("createdAt"))
@@ -25287,14 +25331,14 @@ $root.ActivityCreated = (function() {
25287
25331
  var message = new $root.ActivityCreated();
25288
25332
  if (object.slug != null)
25289
25333
  message.slug = String(object.slug);
25290
- if (object.accessGroups) {
25291
- if (!Array.isArray(object.accessGroups))
25292
- throw TypeError(".ActivityCreated.accessGroups: array expected");
25293
- message.accessGroups = [];
25294
- for (var i = 0; i < object.accessGroups.length; ++i) {
25295
- if (typeof object.accessGroups[i] !== "object")
25296
- throw TypeError(".ActivityCreated.accessGroups: object expected");
25297
- message.accessGroups[i] = $root.contentful.SlugReference.fromObject(object.accessGroups[i]);
25334
+ if (object.accessGroup) {
25335
+ if (!Array.isArray(object.accessGroup))
25336
+ throw TypeError(".ActivityCreated.accessGroup: array expected");
25337
+ message.accessGroup = [];
25338
+ for (var i = 0; i < object.accessGroup.length; ++i) {
25339
+ if (typeof object.accessGroup[i] !== "object")
25340
+ throw TypeError(".ActivityCreated.accessGroup: object expected");
25341
+ message.accessGroup[i] = $root.contentful.SlugReference.fromObject(object.accessGroup[i]);
25298
25342
  }
25299
25343
  }
25300
25344
  if (object.createdAt != null)
@@ -25323,7 +25367,7 @@ $root.ActivityCreated = (function() {
25323
25367
  options = {};
25324
25368
  var object = {};
25325
25369
  if (options.arrays || options.defaults)
25326
- object.accessGroups = [];
25370
+ object.accessGroup = [];
25327
25371
  if (options.defaults) {
25328
25372
  object.slug = "";
25329
25373
  if ($util.Long) {
@@ -25334,10 +25378,10 @@ $root.ActivityCreated = (function() {
25334
25378
  }
25335
25379
  if (message.slug != null && message.hasOwnProperty("slug"))
25336
25380
  object.slug = message.slug;
25337
- if (message.accessGroups && message.accessGroups.length) {
25338
- object.accessGroups = [];
25339
- for (var j = 0; j < message.accessGroups.length; ++j)
25340
- object.accessGroups[j] = $root.contentful.SlugReference.toObject(message.accessGroups[j], options);
25381
+ if (message.accessGroup && message.accessGroup.length) {
25382
+ object.accessGroup = [];
25383
+ for (var j = 0; j < message.accessGroup.length; ++j)
25384
+ object.accessGroup[j] = $root.contentful.SlugReference.toObject(message.accessGroup[j], options);
25341
25385
  }
25342
25386
  if (message.createdAt != null && message.hasOwnProperty("createdAt"))
25343
25387
  if (typeof message.createdAt === "number")
@@ -25368,7 +25412,7 @@ $root.ActivityUpdated = (function() {
25368
25412
  * @exports IActivityUpdated
25369
25413
  * @interface IActivityUpdated
25370
25414
  * @property {string|null} [slug] ActivityUpdated slug
25371
- * @property {Array.<contentful.ISlugReference>|null} [accessGroups] ActivityUpdated accessGroups
25415
+ * @property {Array.<contentful.ISlugReference>|null} [accessGroup] ActivityUpdated accessGroup
25372
25416
  * @property {number|Long|null} [updatedAt] ActivityUpdated updatedAt
25373
25417
  */
25374
25418
 
@@ -25381,7 +25425,7 @@ $root.ActivityUpdated = (function() {
25381
25425
  * @param {IActivityUpdated=} [properties] Properties to set
25382
25426
  */
25383
25427
  function ActivityUpdated(properties) {
25384
- this.accessGroups = [];
25428
+ this.accessGroup = [];
25385
25429
  if (properties)
25386
25430
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
25387
25431
  if (properties[keys[i]] != null)
@@ -25397,12 +25441,12 @@ $root.ActivityUpdated = (function() {
25397
25441
  ActivityUpdated.prototype.slug = "";
25398
25442
 
25399
25443
  /**
25400
- * ActivityUpdated accessGroups.
25401
- * @member {Array.<contentful.ISlugReference>} accessGroups
25444
+ * ActivityUpdated accessGroup.
25445
+ * @member {Array.<contentful.ISlugReference>} accessGroup
25402
25446
  * @memberof ActivityUpdated
25403
25447
  * @instance
25404
25448
  */
25405
- ActivityUpdated.prototype.accessGroups = $util.emptyArray;
25449
+ ActivityUpdated.prototype.accessGroup = $util.emptyArray;
25406
25450
 
25407
25451
  /**
25408
25452
  * ActivityUpdated updatedAt.
@@ -25438,9 +25482,9 @@ $root.ActivityUpdated = (function() {
25438
25482
  writer = $Writer.create();
25439
25483
  if (message.slug != null && message.hasOwnProperty("slug"))
25440
25484
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
25441
- if (message.accessGroups != null && message.accessGroups.length)
25442
- for (var i = 0; i < message.accessGroups.length; ++i)
25443
- $root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
25485
+ if (message.accessGroup != null && message.accessGroup.length)
25486
+ for (var i = 0; i < message.accessGroup.length; ++i)
25487
+ $root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
25444
25488
  if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
25445
25489
  writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.updatedAt);
25446
25490
  return writer;
@@ -25481,9 +25525,9 @@ $root.ActivityUpdated = (function() {
25481
25525
  message.slug = reader.string();
25482
25526
  break;
25483
25527
  case 2:
25484
- if (!(message.accessGroups && message.accessGroups.length))
25485
- message.accessGroups = [];
25486
- message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
25528
+ if (!(message.accessGroup && message.accessGroup.length))
25529
+ message.accessGroup = [];
25530
+ message.accessGroup.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
25487
25531
  break;
25488
25532
  case 3:
25489
25533
  message.updatedAt = reader.uint64();
@@ -25526,13 +25570,13 @@ $root.ActivityUpdated = (function() {
25526
25570
  if (message.slug != null && message.hasOwnProperty("slug"))
25527
25571
  if (!$util.isString(message.slug))
25528
25572
  return "slug: string expected";
25529
- if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
25530
- if (!Array.isArray(message.accessGroups))
25531
- return "accessGroups: array expected";
25532
- for (var i = 0; i < message.accessGroups.length; ++i) {
25533
- var error = $root.contentful.SlugReference.verify(message.accessGroups[i]);
25573
+ if (message.accessGroup != null && message.hasOwnProperty("accessGroup")) {
25574
+ if (!Array.isArray(message.accessGroup))
25575
+ return "accessGroup: array expected";
25576
+ for (var i = 0; i < message.accessGroup.length; ++i) {
25577
+ var error = $root.contentful.SlugReference.verify(message.accessGroup[i]);
25534
25578
  if (error)
25535
- return "accessGroups." + error;
25579
+ return "accessGroup." + error;
25536
25580
  }
25537
25581
  }
25538
25582
  if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
@@ -25555,14 +25599,14 @@ $root.ActivityUpdated = (function() {
25555
25599
  var message = new $root.ActivityUpdated();
25556
25600
  if (object.slug != null)
25557
25601
  message.slug = String(object.slug);
25558
- if (object.accessGroups) {
25559
- if (!Array.isArray(object.accessGroups))
25560
- throw TypeError(".ActivityUpdated.accessGroups: array expected");
25561
- message.accessGroups = [];
25562
- for (var i = 0; i < object.accessGroups.length; ++i) {
25563
- if (typeof object.accessGroups[i] !== "object")
25564
- throw TypeError(".ActivityUpdated.accessGroups: object expected");
25565
- message.accessGroups[i] = $root.contentful.SlugReference.fromObject(object.accessGroups[i]);
25602
+ if (object.accessGroup) {
25603
+ if (!Array.isArray(object.accessGroup))
25604
+ throw TypeError(".ActivityUpdated.accessGroup: array expected");
25605
+ message.accessGroup = [];
25606
+ for (var i = 0; i < object.accessGroup.length; ++i) {
25607
+ if (typeof object.accessGroup[i] !== "object")
25608
+ throw TypeError(".ActivityUpdated.accessGroup: object expected");
25609
+ message.accessGroup[i] = $root.contentful.SlugReference.fromObject(object.accessGroup[i]);
25566
25610
  }
25567
25611
  }
25568
25612
  if (object.updatedAt != null)
@@ -25591,7 +25635,7 @@ $root.ActivityUpdated = (function() {
25591
25635
  options = {};
25592
25636
  var object = {};
25593
25637
  if (options.arrays || options.defaults)
25594
- object.accessGroups = [];
25638
+ object.accessGroup = [];
25595
25639
  if (options.defaults) {
25596
25640
  object.slug = "";
25597
25641
  if ($util.Long) {
@@ -25602,10 +25646,10 @@ $root.ActivityUpdated = (function() {
25602
25646
  }
25603
25647
  if (message.slug != null && message.hasOwnProperty("slug"))
25604
25648
  object.slug = message.slug;
25605
- if (message.accessGroups && message.accessGroups.length) {
25606
- object.accessGroups = [];
25607
- for (var j = 0; j < message.accessGroups.length; ++j)
25608
- object.accessGroups[j] = $root.contentful.SlugReference.toObject(message.accessGroups[j], options);
25649
+ if (message.accessGroup && message.accessGroup.length) {
25650
+ object.accessGroup = [];
25651
+ for (var j = 0; j < message.accessGroup.length; ++j)
25652
+ object.accessGroup[j] = $root.contentful.SlugReference.toObject(message.accessGroup[j], options);
25609
25653
  }
25610
25654
  if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
25611
25655
  if (typeof message.updatedAt === "number")
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.141.0"
19
+ "version": "1.143.0"
20
20
  }