@headspace/protos-events 1.141.0 → 1.142.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 +16 -16
  2. package/lib/index.js +120 -120
  3. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -8585,8 +8585,8 @@ export interface IActivityGroupCreated {
8585
8585
  /** ActivityGroupCreated slug */
8586
8586
  slug?: (string|null);
8587
8587
 
8588
- /** ActivityGroupCreated accessGroups */
8589
- accessGroups?: (contentful.ISlugReference[]|null);
8588
+ /** ActivityGroupCreated accessGroup */
8589
+ accessGroup?: (contentful.ISlugReference[]|null);
8590
8590
 
8591
8591
  /** ActivityGroupCreated createdAt */
8592
8592
  createdAt?: (number|Long|null);
@@ -8604,8 +8604,8 @@ export class ActivityGroupCreated implements IActivityGroupCreated {
8604
8604
  /** ActivityGroupCreated slug. */
8605
8605
  public slug: string;
8606
8606
 
8607
- /** ActivityGroupCreated accessGroups. */
8608
- public accessGroups: contentful.ISlugReference[];
8607
+ /** ActivityGroupCreated accessGroup. */
8608
+ public accessGroup: contentful.ISlugReference[];
8609
8609
 
8610
8610
  /** ActivityGroupCreated createdAt. */
8611
8611
  public createdAt: (number|Long);
@@ -8687,8 +8687,8 @@ export interface IActivityGroupUpdated {
8687
8687
  /** ActivityGroupUpdated slug */
8688
8688
  slug?: (string|null);
8689
8689
 
8690
- /** ActivityGroupUpdated accessGroups */
8691
- accessGroups?: (contentful.ISlugReference[]|null);
8690
+ /** ActivityGroupUpdated accessGroup */
8691
+ accessGroup?: (contentful.ISlugReference[]|null);
8692
8692
 
8693
8693
  /** ActivityGroupUpdated updatedAt */
8694
8694
  updatedAt?: (number|Long|null);
@@ -8706,8 +8706,8 @@ export class ActivityGroupUpdated implements IActivityGroupUpdated {
8706
8706
  /** ActivityGroupUpdated slug. */
8707
8707
  public slug: string;
8708
8708
 
8709
- /** ActivityGroupUpdated accessGroups. */
8710
- public accessGroups: contentful.ISlugReference[];
8709
+ /** ActivityGroupUpdated accessGroup. */
8710
+ public accessGroup: contentful.ISlugReference[];
8711
8711
 
8712
8712
  /** ActivityGroupUpdated updatedAt. */
8713
8713
  public updatedAt: (number|Long);
@@ -9095,8 +9095,8 @@ export interface IActivityCreated {
9095
9095
  /** ActivityCreated slug */
9096
9096
  slug?: (string|null);
9097
9097
 
9098
- /** ActivityCreated accessGroups */
9099
- accessGroups?: (contentful.ISlugReference[]|null);
9098
+ /** ActivityCreated accessGroup */
9099
+ accessGroup?: (contentful.ISlugReference[]|null);
9100
9100
 
9101
9101
  /** ActivityCreated createdAt */
9102
9102
  createdAt?: (number|Long|null);
@@ -9114,8 +9114,8 @@ export class ActivityCreated implements IActivityCreated {
9114
9114
  /** ActivityCreated slug. */
9115
9115
  public slug: string;
9116
9116
 
9117
- /** ActivityCreated accessGroups. */
9118
- public accessGroups: contentful.ISlugReference[];
9117
+ /** ActivityCreated accessGroup. */
9118
+ public accessGroup: contentful.ISlugReference[];
9119
9119
 
9120
9120
  /** ActivityCreated createdAt. */
9121
9121
  public createdAt: (number|Long);
@@ -9197,8 +9197,8 @@ export interface IActivityUpdated {
9197
9197
  /** ActivityUpdated slug */
9198
9198
  slug?: (string|null);
9199
9199
 
9200
- /** ActivityUpdated accessGroups */
9201
- accessGroups?: (contentful.ISlugReference[]|null);
9200
+ /** ActivityUpdated accessGroup */
9201
+ accessGroup?: (contentful.ISlugReference[]|null);
9202
9202
 
9203
9203
  /** ActivityUpdated updatedAt */
9204
9204
  updatedAt?: (number|Long|null);
@@ -9216,8 +9216,8 @@ export class ActivityUpdated implements IActivityUpdated {
9216
9216
  /** ActivityUpdated slug. */
9217
9217
  public slug: string;
9218
9218
 
9219
- /** ActivityUpdated accessGroups. */
9220
- public accessGroups: contentful.ISlugReference[];
9219
+ /** ActivityUpdated accessGroup. */
9220
+ public accessGroup: contentful.ISlugReference[];
9221
9221
 
9222
9222
  /** ActivityUpdated updatedAt. */
9223
9223
  public updatedAt: (number|Long);
package/lib/index.js CHANGED
@@ -23834,7 +23834,7 @@ $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 {Array.<contentful.ISlugReference>|null} [accessGroup] ActivityGroupCreated accessGroup
23838
23838
  * @property {number|Long|null} [createdAt] ActivityGroupCreated createdAt
23839
23839
  */
23840
23840
 
@@ -23847,7 +23847,7 @@ $root.ActivityGroupCreated = (function() {
23847
23847
  * @param {IActivityGroupCreated=} [properties] Properties to set
23848
23848
  */
23849
23849
  function ActivityGroupCreated(properties) {
23850
- this.accessGroups = [];
23850
+ this.accessGroup = [];
23851
23851
  if (properties)
23852
23852
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
23853
23853
  if (properties[keys[i]] != null)
@@ -23863,12 +23863,12 @@ $root.ActivityGroupCreated = (function() {
23863
23863
  ActivityGroupCreated.prototype.slug = "";
23864
23864
 
23865
23865
  /**
23866
- * ActivityGroupCreated accessGroups.
23867
- * @member {Array.<contentful.ISlugReference>} accessGroups
23866
+ * ActivityGroupCreated accessGroup.
23867
+ * @member {Array.<contentful.ISlugReference>} accessGroup
23868
23868
  * @memberof ActivityGroupCreated
23869
23869
  * @instance
23870
23870
  */
23871
- ActivityGroupCreated.prototype.accessGroups = $util.emptyArray;
23871
+ ActivityGroupCreated.prototype.accessGroup = $util.emptyArray;
23872
23872
 
23873
23873
  /**
23874
23874
  * ActivityGroupCreated createdAt.
@@ -23904,9 +23904,9 @@ $root.ActivityGroupCreated = (function() {
23904
23904
  writer = $Writer.create();
23905
23905
  if (message.slug != null && message.hasOwnProperty("slug"))
23906
23906
  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();
23907
+ if (message.accessGroup != null && message.accessGroup.length)
23908
+ for (var i = 0; i < message.accessGroup.length; ++i)
23909
+ $root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
23910
23910
  if (message.createdAt != null && message.hasOwnProperty("createdAt"))
23911
23911
  writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.createdAt);
23912
23912
  return writer;
@@ -23947,9 +23947,9 @@ $root.ActivityGroupCreated = (function() {
23947
23947
  message.slug = reader.string();
23948
23948
  break;
23949
23949
  case 2:
23950
- if (!(message.accessGroups && message.accessGroups.length))
23951
- message.accessGroups = [];
23952
- message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
23950
+ if (!(message.accessGroup && message.accessGroup.length))
23951
+ message.accessGroup = [];
23952
+ message.accessGroup.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
23953
23953
  break;
23954
23954
  case 3:
23955
23955
  message.createdAt = reader.uint64();
@@ -23992,13 +23992,13 @@ $root.ActivityGroupCreated = (function() {
23992
23992
  if (message.slug != null && message.hasOwnProperty("slug"))
23993
23993
  if (!$util.isString(message.slug))
23994
23994
  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]);
23995
+ if (message.accessGroup != null && message.hasOwnProperty("accessGroup")) {
23996
+ if (!Array.isArray(message.accessGroup))
23997
+ return "accessGroup: array expected";
23998
+ for (var i = 0; i < message.accessGroup.length; ++i) {
23999
+ var error = $root.contentful.SlugReference.verify(message.accessGroup[i]);
24000
24000
  if (error)
24001
- return "accessGroups." + error;
24001
+ return "accessGroup." + error;
24002
24002
  }
24003
24003
  }
24004
24004
  if (message.createdAt != null && message.hasOwnProperty("createdAt"))
@@ -24021,14 +24021,14 @@ $root.ActivityGroupCreated = (function() {
24021
24021
  var message = new $root.ActivityGroupCreated();
24022
24022
  if (object.slug != null)
24023
24023
  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]);
24024
+ if (object.accessGroup) {
24025
+ if (!Array.isArray(object.accessGroup))
24026
+ throw TypeError(".ActivityGroupCreated.accessGroup: array expected");
24027
+ message.accessGroup = [];
24028
+ for (var i = 0; i < object.accessGroup.length; ++i) {
24029
+ if (typeof object.accessGroup[i] !== "object")
24030
+ throw TypeError(".ActivityGroupCreated.accessGroup: object expected");
24031
+ message.accessGroup[i] = $root.contentful.SlugReference.fromObject(object.accessGroup[i]);
24032
24032
  }
24033
24033
  }
24034
24034
  if (object.createdAt != null)
@@ -24057,7 +24057,7 @@ $root.ActivityGroupCreated = (function() {
24057
24057
  options = {};
24058
24058
  var object = {};
24059
24059
  if (options.arrays || options.defaults)
24060
- object.accessGroups = [];
24060
+ object.accessGroup = [];
24061
24061
  if (options.defaults) {
24062
24062
  object.slug = "";
24063
24063
  if ($util.Long) {
@@ -24068,10 +24068,10 @@ $root.ActivityGroupCreated = (function() {
24068
24068
  }
24069
24069
  if (message.slug != null && message.hasOwnProperty("slug"))
24070
24070
  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);
24071
+ if (message.accessGroup && message.accessGroup.length) {
24072
+ object.accessGroup = [];
24073
+ for (var j = 0; j < message.accessGroup.length; ++j)
24074
+ object.accessGroup[j] = $root.contentful.SlugReference.toObject(message.accessGroup[j], options);
24075
24075
  }
24076
24076
  if (message.createdAt != null && message.hasOwnProperty("createdAt"))
24077
24077
  if (typeof message.createdAt === "number")
@@ -24102,7 +24102,7 @@ $root.ActivityGroupUpdated = (function() {
24102
24102
  * @exports IActivityGroupUpdated
24103
24103
  * @interface IActivityGroupUpdated
24104
24104
  * @property {string|null} [slug] ActivityGroupUpdated slug
24105
- * @property {Array.<contentful.ISlugReference>|null} [accessGroups] ActivityGroupUpdated accessGroups
24105
+ * @property {Array.<contentful.ISlugReference>|null} [accessGroup] ActivityGroupUpdated accessGroup
24106
24106
  * @property {number|Long|null} [updatedAt] ActivityGroupUpdated updatedAt
24107
24107
  */
24108
24108
 
@@ -24115,7 +24115,7 @@ $root.ActivityGroupUpdated = (function() {
24115
24115
  * @param {IActivityGroupUpdated=} [properties] Properties to set
24116
24116
  */
24117
24117
  function ActivityGroupUpdated(properties) {
24118
- this.accessGroups = [];
24118
+ this.accessGroup = [];
24119
24119
  if (properties)
24120
24120
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
24121
24121
  if (properties[keys[i]] != null)
@@ -24131,12 +24131,12 @@ $root.ActivityGroupUpdated = (function() {
24131
24131
  ActivityGroupUpdated.prototype.slug = "";
24132
24132
 
24133
24133
  /**
24134
- * ActivityGroupUpdated accessGroups.
24135
- * @member {Array.<contentful.ISlugReference>} accessGroups
24134
+ * ActivityGroupUpdated accessGroup.
24135
+ * @member {Array.<contentful.ISlugReference>} accessGroup
24136
24136
  * @memberof ActivityGroupUpdated
24137
24137
  * @instance
24138
24138
  */
24139
- ActivityGroupUpdated.prototype.accessGroups = $util.emptyArray;
24139
+ ActivityGroupUpdated.prototype.accessGroup = $util.emptyArray;
24140
24140
 
24141
24141
  /**
24142
24142
  * ActivityGroupUpdated updatedAt.
@@ -24172,9 +24172,9 @@ $root.ActivityGroupUpdated = (function() {
24172
24172
  writer = $Writer.create();
24173
24173
  if (message.slug != null && message.hasOwnProperty("slug"))
24174
24174
  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();
24175
+ if (message.accessGroup != null && message.accessGroup.length)
24176
+ for (var i = 0; i < message.accessGroup.length; ++i)
24177
+ $root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
24178
24178
  if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
24179
24179
  writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.updatedAt);
24180
24180
  return writer;
@@ -24215,9 +24215,9 @@ $root.ActivityGroupUpdated = (function() {
24215
24215
  message.slug = reader.string();
24216
24216
  break;
24217
24217
  case 2:
24218
- if (!(message.accessGroups && message.accessGroups.length))
24219
- message.accessGroups = [];
24220
- message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
24218
+ if (!(message.accessGroup && message.accessGroup.length))
24219
+ message.accessGroup = [];
24220
+ message.accessGroup.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
24221
24221
  break;
24222
24222
  case 3:
24223
24223
  message.updatedAt = reader.uint64();
@@ -24260,13 +24260,13 @@ $root.ActivityGroupUpdated = (function() {
24260
24260
  if (message.slug != null && message.hasOwnProperty("slug"))
24261
24261
  if (!$util.isString(message.slug))
24262
24262
  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]);
24263
+ if (message.accessGroup != null && message.hasOwnProperty("accessGroup")) {
24264
+ if (!Array.isArray(message.accessGroup))
24265
+ return "accessGroup: array expected";
24266
+ for (var i = 0; i < message.accessGroup.length; ++i) {
24267
+ var error = $root.contentful.SlugReference.verify(message.accessGroup[i]);
24268
24268
  if (error)
24269
- return "accessGroups." + error;
24269
+ return "accessGroup." + error;
24270
24270
  }
24271
24271
  }
24272
24272
  if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
@@ -24289,14 +24289,14 @@ $root.ActivityGroupUpdated = (function() {
24289
24289
  var message = new $root.ActivityGroupUpdated();
24290
24290
  if (object.slug != null)
24291
24291
  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]);
24292
+ if (object.accessGroup) {
24293
+ if (!Array.isArray(object.accessGroup))
24294
+ throw TypeError(".ActivityGroupUpdated.accessGroup: array expected");
24295
+ message.accessGroup = [];
24296
+ for (var i = 0; i < object.accessGroup.length; ++i) {
24297
+ if (typeof object.accessGroup[i] !== "object")
24298
+ throw TypeError(".ActivityGroupUpdated.accessGroup: object expected");
24299
+ message.accessGroup[i] = $root.contentful.SlugReference.fromObject(object.accessGroup[i]);
24300
24300
  }
24301
24301
  }
24302
24302
  if (object.updatedAt != null)
@@ -24325,7 +24325,7 @@ $root.ActivityGroupUpdated = (function() {
24325
24325
  options = {};
24326
24326
  var object = {};
24327
24327
  if (options.arrays || options.defaults)
24328
- object.accessGroups = [];
24328
+ object.accessGroup = [];
24329
24329
  if (options.defaults) {
24330
24330
  object.slug = "";
24331
24331
  if ($util.Long) {
@@ -24336,10 +24336,10 @@ $root.ActivityGroupUpdated = (function() {
24336
24336
  }
24337
24337
  if (message.slug != null && message.hasOwnProperty("slug"))
24338
24338
  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);
24339
+ if (message.accessGroup && message.accessGroup.length) {
24340
+ object.accessGroup = [];
24341
+ for (var j = 0; j < message.accessGroup.length; ++j)
24342
+ object.accessGroup[j] = $root.contentful.SlugReference.toObject(message.accessGroup[j], options);
24343
24343
  }
24344
24344
  if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
24345
24345
  if (typeof message.updatedAt === "number")
@@ -25100,7 +25100,7 @@ $root.ActivityCreated = (function() {
25100
25100
  * @exports IActivityCreated
25101
25101
  * @interface IActivityCreated
25102
25102
  * @property {string|null} [slug] ActivityCreated slug
25103
- * @property {Array.<contentful.ISlugReference>|null} [accessGroups] ActivityCreated accessGroups
25103
+ * @property {Array.<contentful.ISlugReference>|null} [accessGroup] ActivityCreated accessGroup
25104
25104
  * @property {number|Long|null} [createdAt] ActivityCreated createdAt
25105
25105
  */
25106
25106
 
@@ -25113,7 +25113,7 @@ $root.ActivityCreated = (function() {
25113
25113
  * @param {IActivityCreated=} [properties] Properties to set
25114
25114
  */
25115
25115
  function ActivityCreated(properties) {
25116
- this.accessGroups = [];
25116
+ this.accessGroup = [];
25117
25117
  if (properties)
25118
25118
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
25119
25119
  if (properties[keys[i]] != null)
@@ -25129,12 +25129,12 @@ $root.ActivityCreated = (function() {
25129
25129
  ActivityCreated.prototype.slug = "";
25130
25130
 
25131
25131
  /**
25132
- * ActivityCreated accessGroups.
25133
- * @member {Array.<contentful.ISlugReference>} accessGroups
25132
+ * ActivityCreated accessGroup.
25133
+ * @member {Array.<contentful.ISlugReference>} accessGroup
25134
25134
  * @memberof ActivityCreated
25135
25135
  * @instance
25136
25136
  */
25137
- ActivityCreated.prototype.accessGroups = $util.emptyArray;
25137
+ ActivityCreated.prototype.accessGroup = $util.emptyArray;
25138
25138
 
25139
25139
  /**
25140
25140
  * ActivityCreated createdAt.
@@ -25170,9 +25170,9 @@ $root.ActivityCreated = (function() {
25170
25170
  writer = $Writer.create();
25171
25171
  if (message.slug != null && message.hasOwnProperty("slug"))
25172
25172
  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();
25173
+ if (message.accessGroup != null && message.accessGroup.length)
25174
+ for (var i = 0; i < message.accessGroup.length; ++i)
25175
+ $root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
25176
25176
  if (message.createdAt != null && message.hasOwnProperty("createdAt"))
25177
25177
  writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.createdAt);
25178
25178
  return writer;
@@ -25213,9 +25213,9 @@ $root.ActivityCreated = (function() {
25213
25213
  message.slug = reader.string();
25214
25214
  break;
25215
25215
  case 2:
25216
- if (!(message.accessGroups && message.accessGroups.length))
25217
- message.accessGroups = [];
25218
- message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
25216
+ if (!(message.accessGroup && message.accessGroup.length))
25217
+ message.accessGroup = [];
25218
+ message.accessGroup.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
25219
25219
  break;
25220
25220
  case 3:
25221
25221
  message.createdAt = reader.uint64();
@@ -25258,13 +25258,13 @@ $root.ActivityCreated = (function() {
25258
25258
  if (message.slug != null && message.hasOwnProperty("slug"))
25259
25259
  if (!$util.isString(message.slug))
25260
25260
  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]);
25261
+ if (message.accessGroup != null && message.hasOwnProperty("accessGroup")) {
25262
+ if (!Array.isArray(message.accessGroup))
25263
+ return "accessGroup: array expected";
25264
+ for (var i = 0; i < message.accessGroup.length; ++i) {
25265
+ var error = $root.contentful.SlugReference.verify(message.accessGroup[i]);
25266
25266
  if (error)
25267
- return "accessGroups." + error;
25267
+ return "accessGroup." + error;
25268
25268
  }
25269
25269
  }
25270
25270
  if (message.createdAt != null && message.hasOwnProperty("createdAt"))
@@ -25287,14 +25287,14 @@ $root.ActivityCreated = (function() {
25287
25287
  var message = new $root.ActivityCreated();
25288
25288
  if (object.slug != null)
25289
25289
  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]);
25290
+ if (object.accessGroup) {
25291
+ if (!Array.isArray(object.accessGroup))
25292
+ throw TypeError(".ActivityCreated.accessGroup: array expected");
25293
+ message.accessGroup = [];
25294
+ for (var i = 0; i < object.accessGroup.length; ++i) {
25295
+ if (typeof object.accessGroup[i] !== "object")
25296
+ throw TypeError(".ActivityCreated.accessGroup: object expected");
25297
+ message.accessGroup[i] = $root.contentful.SlugReference.fromObject(object.accessGroup[i]);
25298
25298
  }
25299
25299
  }
25300
25300
  if (object.createdAt != null)
@@ -25323,7 +25323,7 @@ $root.ActivityCreated = (function() {
25323
25323
  options = {};
25324
25324
  var object = {};
25325
25325
  if (options.arrays || options.defaults)
25326
- object.accessGroups = [];
25326
+ object.accessGroup = [];
25327
25327
  if (options.defaults) {
25328
25328
  object.slug = "";
25329
25329
  if ($util.Long) {
@@ -25334,10 +25334,10 @@ $root.ActivityCreated = (function() {
25334
25334
  }
25335
25335
  if (message.slug != null && message.hasOwnProperty("slug"))
25336
25336
  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);
25337
+ if (message.accessGroup && message.accessGroup.length) {
25338
+ object.accessGroup = [];
25339
+ for (var j = 0; j < message.accessGroup.length; ++j)
25340
+ object.accessGroup[j] = $root.contentful.SlugReference.toObject(message.accessGroup[j], options);
25341
25341
  }
25342
25342
  if (message.createdAt != null && message.hasOwnProperty("createdAt"))
25343
25343
  if (typeof message.createdAt === "number")
@@ -25368,7 +25368,7 @@ $root.ActivityUpdated = (function() {
25368
25368
  * @exports IActivityUpdated
25369
25369
  * @interface IActivityUpdated
25370
25370
  * @property {string|null} [slug] ActivityUpdated slug
25371
- * @property {Array.<contentful.ISlugReference>|null} [accessGroups] ActivityUpdated accessGroups
25371
+ * @property {Array.<contentful.ISlugReference>|null} [accessGroup] ActivityUpdated accessGroup
25372
25372
  * @property {number|Long|null} [updatedAt] ActivityUpdated updatedAt
25373
25373
  */
25374
25374
 
@@ -25381,7 +25381,7 @@ $root.ActivityUpdated = (function() {
25381
25381
  * @param {IActivityUpdated=} [properties] Properties to set
25382
25382
  */
25383
25383
  function ActivityUpdated(properties) {
25384
- this.accessGroups = [];
25384
+ this.accessGroup = [];
25385
25385
  if (properties)
25386
25386
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
25387
25387
  if (properties[keys[i]] != null)
@@ -25397,12 +25397,12 @@ $root.ActivityUpdated = (function() {
25397
25397
  ActivityUpdated.prototype.slug = "";
25398
25398
 
25399
25399
  /**
25400
- * ActivityUpdated accessGroups.
25401
- * @member {Array.<contentful.ISlugReference>} accessGroups
25400
+ * ActivityUpdated accessGroup.
25401
+ * @member {Array.<contentful.ISlugReference>} accessGroup
25402
25402
  * @memberof ActivityUpdated
25403
25403
  * @instance
25404
25404
  */
25405
- ActivityUpdated.prototype.accessGroups = $util.emptyArray;
25405
+ ActivityUpdated.prototype.accessGroup = $util.emptyArray;
25406
25406
 
25407
25407
  /**
25408
25408
  * ActivityUpdated updatedAt.
@@ -25438,9 +25438,9 @@ $root.ActivityUpdated = (function() {
25438
25438
  writer = $Writer.create();
25439
25439
  if (message.slug != null && message.hasOwnProperty("slug"))
25440
25440
  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();
25441
+ if (message.accessGroup != null && message.accessGroup.length)
25442
+ for (var i = 0; i < message.accessGroup.length; ++i)
25443
+ $root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
25444
25444
  if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
25445
25445
  writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.updatedAt);
25446
25446
  return writer;
@@ -25481,9 +25481,9 @@ $root.ActivityUpdated = (function() {
25481
25481
  message.slug = reader.string();
25482
25482
  break;
25483
25483
  case 2:
25484
- if (!(message.accessGroups && message.accessGroups.length))
25485
- message.accessGroups = [];
25486
- message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
25484
+ if (!(message.accessGroup && message.accessGroup.length))
25485
+ message.accessGroup = [];
25486
+ message.accessGroup.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
25487
25487
  break;
25488
25488
  case 3:
25489
25489
  message.updatedAt = reader.uint64();
@@ -25526,13 +25526,13 @@ $root.ActivityUpdated = (function() {
25526
25526
  if (message.slug != null && message.hasOwnProperty("slug"))
25527
25527
  if (!$util.isString(message.slug))
25528
25528
  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]);
25529
+ if (message.accessGroup != null && message.hasOwnProperty("accessGroup")) {
25530
+ if (!Array.isArray(message.accessGroup))
25531
+ return "accessGroup: array expected";
25532
+ for (var i = 0; i < message.accessGroup.length; ++i) {
25533
+ var error = $root.contentful.SlugReference.verify(message.accessGroup[i]);
25534
25534
  if (error)
25535
- return "accessGroups." + error;
25535
+ return "accessGroup." + error;
25536
25536
  }
25537
25537
  }
25538
25538
  if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
@@ -25555,14 +25555,14 @@ $root.ActivityUpdated = (function() {
25555
25555
  var message = new $root.ActivityUpdated();
25556
25556
  if (object.slug != null)
25557
25557
  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]);
25558
+ if (object.accessGroup) {
25559
+ if (!Array.isArray(object.accessGroup))
25560
+ throw TypeError(".ActivityUpdated.accessGroup: array expected");
25561
+ message.accessGroup = [];
25562
+ for (var i = 0; i < object.accessGroup.length; ++i) {
25563
+ if (typeof object.accessGroup[i] !== "object")
25564
+ throw TypeError(".ActivityUpdated.accessGroup: object expected");
25565
+ message.accessGroup[i] = $root.contentful.SlugReference.fromObject(object.accessGroup[i]);
25566
25566
  }
25567
25567
  }
25568
25568
  if (object.updatedAt != null)
@@ -25591,7 +25591,7 @@ $root.ActivityUpdated = (function() {
25591
25591
  options = {};
25592
25592
  var object = {};
25593
25593
  if (options.arrays || options.defaults)
25594
- object.accessGroups = [];
25594
+ object.accessGroup = [];
25595
25595
  if (options.defaults) {
25596
25596
  object.slug = "";
25597
25597
  if ($util.Long) {
@@ -25602,10 +25602,10 @@ $root.ActivityUpdated = (function() {
25602
25602
  }
25603
25603
  if (message.slug != null && message.hasOwnProperty("slug"))
25604
25604
  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);
25605
+ if (message.accessGroup && message.accessGroup.length) {
25606
+ object.accessGroup = [];
25607
+ for (var j = 0; j < message.accessGroup.length; ++j)
25608
+ object.accessGroup[j] = $root.contentful.SlugReference.toObject(message.accessGroup[j], options);
25609
25609
  }
25610
25610
  if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
25611
25611
  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.142.0"
20
20
  }