@headspace/protos-events 1.284.0 → 1.286.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
@@ -14255,6 +14255,11 @@ export class ContentfulCategoryDeleted implements IContentfulCategoryDeleted {
14255
14255
  public toJSON(): { [k: string]: any };
14256
14256
  }
14257
14257
 
14258
+ /** ContentCollectionType enum. */
14259
+ export enum ContentCollectionType {
14260
+ CONTENT_COLLECTION_TYPE_GENERIC = 0
14261
+ }
14262
+
14258
14263
  /** Properties of a ContentfulCollectionCreated. */
14259
14264
  export interface IContentfulCollectionCreated {
14260
14265
 
@@ -14272,6 +14277,15 @@ export interface IContentfulCollectionCreated {
14272
14277
 
14273
14278
  /** ContentfulCollectionCreated createdAt */
14274
14279
  createdAt?: (number|Long|null);
14280
+
14281
+ /** ContentfulCollectionCreated collectionType */
14282
+ collectionType?: (ContentCollectionType|null);
14283
+
14284
+ /** ContentfulCollectionCreated tileMediaId */
14285
+ tileMediaId?: (number|null);
14286
+
14287
+ /** ContentfulCollectionCreated collectionContent */
14288
+ collectionContent?: (contentful.ISlugReference[]|null);
14275
14289
  }
14276
14290
 
14277
14291
  /** Represents a ContentfulCollectionCreated. */
@@ -14298,6 +14312,15 @@ export class ContentfulCollectionCreated implements IContentfulCollectionCreated
14298
14312
  /** ContentfulCollectionCreated createdAt. */
14299
14313
  public createdAt: (number|Long);
14300
14314
 
14315
+ /** ContentfulCollectionCreated collectionType. */
14316
+ public collectionType: ContentCollectionType;
14317
+
14318
+ /** ContentfulCollectionCreated tileMediaId. */
14319
+ public tileMediaId: number;
14320
+
14321
+ /** ContentfulCollectionCreated collectionContent. */
14322
+ public collectionContent: contentful.ISlugReference[];
14323
+
14301
14324
  /**
14302
14325
  * Creates a new ContentfulCollectionCreated instance using the specified properties.
14303
14326
  * @param [properties] Properties to set
@@ -14386,6 +14409,15 @@ export interface IContentfulCollectionUpdated {
14386
14409
 
14387
14410
  /** ContentfulCollectionUpdated updatedAt */
14388
14411
  updatedAt?: (number|Long|null);
14412
+
14413
+ /** ContentfulCollectionUpdated collectionType */
14414
+ collectionType?: (ContentCollectionType|null);
14415
+
14416
+ /** ContentfulCollectionUpdated tileMediaId */
14417
+ tileMediaId?: (number|null);
14418
+
14419
+ /** ContentfulCollectionUpdated collectionContent */
14420
+ collectionContent?: (contentful.ISlugReference[]|null);
14389
14421
  }
14390
14422
 
14391
14423
  /** Represents a ContentfulCollectionUpdated. */
@@ -14412,6 +14444,15 @@ export class ContentfulCollectionUpdated implements IContentfulCollectionUpdated
14412
14444
  /** ContentfulCollectionUpdated updatedAt. */
14413
14445
  public updatedAt: (number|Long);
14414
14446
 
14447
+ /** ContentfulCollectionUpdated collectionType. */
14448
+ public collectionType: ContentCollectionType;
14449
+
14450
+ /** ContentfulCollectionUpdated tileMediaId. */
14451
+ public tileMediaId: number;
14452
+
14453
+ /** ContentfulCollectionUpdated collectionContent. */
14454
+ public collectionContent: contentful.ISlugReference[];
14455
+
14415
14456
  /**
14416
14457
  * Creates a new ContentfulCollectionUpdated instance using the specified properties.
14417
14458
  * @param [properties] Properties to set
@@ -22800,7 +22841,8 @@ export enum ContentType {
22800
22841
  CONTENT_TYPE_TECHNIQUE = 14,
22801
22842
  CONTENT_TYPE_COURSE_ACTIVITY = 15,
22802
22843
  CONTENT_TYPE_INTEGRATED_AUDIO = 16,
22803
- CONTENT_TYPE_ACTIVITY = 17
22844
+ CONTENT_TYPE_ACTIVITY = 17,
22845
+ CONTENT_TYPE_COLLECTION = 18
22804
22846
  }
22805
22847
 
22806
22848
  /** Mode enum. */
@@ -22846,7 +22888,8 @@ export enum ContentTypeDisplayValue {
22846
22888
  CONTENT_TYPE_DISPLAY_VALUE_JOURNAL = 21,
22847
22889
  CONTENT_TYPE_DISPLAY_VALUE_STRETCH = 22,
22848
22890
  CONTENT_TYPE_DISPLAY_VALUE_THE_WIND_DOWN = 23,
22849
- CONTENT_TYPE_DISPLAY_VALUE_SESSION = 24
22891
+ CONTENT_TYPE_DISPLAY_VALUE_SESSION = 24,
22892
+ CONTENT_TYPE_DISPLAY_VALUE_COLLECTION = 25
22850
22893
  }
22851
22894
 
22852
22895
  /** Properties of a ContentPlayedMetadata. */
@@ -26077,6 +26120,132 @@ export class RecommendationMindsetUpdated implements IRecommendationMindsetUpdat
26077
26120
  public toJSON(): { [k: string]: any };
26078
26121
  }
26079
26122
 
26123
+ /** Properties of a B2BAdminCreated. */
26124
+ export interface IB2BAdminCreated {
26125
+
26126
+ /** B2BAdminCreated adminId */
26127
+ adminId?: (number|null);
26128
+
26129
+ /** B2BAdminCreated orgId */
26130
+ orgId?: (number|null);
26131
+
26132
+ /** B2BAdminCreated orgName */
26133
+ orgName?: (string|null);
26134
+
26135
+ /** B2BAdminCreated email */
26136
+ email?: (string|null);
26137
+
26138
+ /** B2BAdminCreated resetPasswordLink */
26139
+ resetPasswordLink?: (string|null);
26140
+
26141
+ /** B2BAdminCreated shouldSendEmail */
26142
+ shouldSendEmail?: (boolean|null);
26143
+
26144
+ /** B2BAdminCreated timestampEpochMs */
26145
+ timestampEpochMs?: (number|Long|null);
26146
+ }
26147
+
26148
+ /** Represents a B2BAdminCreated. */
26149
+ export class B2BAdminCreated implements IB2BAdminCreated {
26150
+
26151
+ /**
26152
+ * Constructs a new B2BAdminCreated.
26153
+ * @param [properties] Properties to set
26154
+ */
26155
+ constructor(properties?: IB2BAdminCreated);
26156
+
26157
+ /** B2BAdminCreated adminId. */
26158
+ public adminId: number;
26159
+
26160
+ /** B2BAdminCreated orgId. */
26161
+ public orgId: number;
26162
+
26163
+ /** B2BAdminCreated orgName. */
26164
+ public orgName: string;
26165
+
26166
+ /** B2BAdminCreated email. */
26167
+ public email: string;
26168
+
26169
+ /** B2BAdminCreated resetPasswordLink. */
26170
+ public resetPasswordLink: string;
26171
+
26172
+ /** B2BAdminCreated shouldSendEmail. */
26173
+ public shouldSendEmail: boolean;
26174
+
26175
+ /** B2BAdminCreated timestampEpochMs. */
26176
+ public timestampEpochMs: (number|Long);
26177
+
26178
+ /**
26179
+ * Creates a new B2BAdminCreated instance using the specified properties.
26180
+ * @param [properties] Properties to set
26181
+ * @returns B2BAdminCreated instance
26182
+ */
26183
+ public static create(properties?: IB2BAdminCreated): B2BAdminCreated;
26184
+
26185
+ /**
26186
+ * Encodes the specified B2BAdminCreated message. Does not implicitly {@link B2BAdminCreated.verify|verify} messages.
26187
+ * @param message B2BAdminCreated message or plain object to encode
26188
+ * @param [writer] Writer to encode to
26189
+ * @returns Writer
26190
+ */
26191
+ public static encode(message: IB2BAdminCreated, writer?: $protobuf.Writer): $protobuf.Writer;
26192
+
26193
+ /**
26194
+ * Encodes the specified B2BAdminCreated message, length delimited. Does not implicitly {@link B2BAdminCreated.verify|verify} messages.
26195
+ * @param message B2BAdminCreated message or plain object to encode
26196
+ * @param [writer] Writer to encode to
26197
+ * @returns Writer
26198
+ */
26199
+ public static encodeDelimited(message: IB2BAdminCreated, writer?: $protobuf.Writer): $protobuf.Writer;
26200
+
26201
+ /**
26202
+ * Decodes a B2BAdminCreated message from the specified reader or buffer.
26203
+ * @param reader Reader or buffer to decode from
26204
+ * @param [length] Message length if known beforehand
26205
+ * @returns B2BAdminCreated
26206
+ * @throws {Error} If the payload is not a reader or valid buffer
26207
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
26208
+ */
26209
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): B2BAdminCreated;
26210
+
26211
+ /**
26212
+ * Decodes a B2BAdminCreated message from the specified reader or buffer, length delimited.
26213
+ * @param reader Reader or buffer to decode from
26214
+ * @returns B2BAdminCreated
26215
+ * @throws {Error} If the payload is not a reader or valid buffer
26216
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
26217
+ */
26218
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): B2BAdminCreated;
26219
+
26220
+ /**
26221
+ * Verifies a B2BAdminCreated message.
26222
+ * @param message Plain object to verify
26223
+ * @returns `null` if valid, otherwise the reason why it is not
26224
+ */
26225
+ public static verify(message: { [k: string]: any }): (string|null);
26226
+
26227
+ /**
26228
+ * Creates a B2BAdminCreated message from a plain object. Also converts values to their respective internal types.
26229
+ * @param object Plain object
26230
+ * @returns B2BAdminCreated
26231
+ */
26232
+ public static fromObject(object: { [k: string]: any }): B2BAdminCreated;
26233
+
26234
+ /**
26235
+ * Creates a plain object from a B2BAdminCreated message. Also converts values to other types if specified.
26236
+ * @param message B2BAdminCreated
26237
+ * @param [options] Conversion options
26238
+ * @returns Plain object
26239
+ */
26240
+ public static toObject(message: B2BAdminCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
26241
+
26242
+ /**
26243
+ * Converts this B2BAdminCreated to JSON.
26244
+ * @returns JSON object
26245
+ */
26246
+ public toJSON(): { [k: string]: any };
26247
+ }
26248
+
26080
26249
  /** Properties of an EligibilityFileProcessed. */
26081
26250
  export interface IEligibilityFileProcessed {
26082
26251
 
package/lib/index.js CHANGED
@@ -36327,6 +36327,18 @@ $root.ContentfulCategoryDeleted = (function() {
36327
36327
  return ContentfulCategoryDeleted;
36328
36328
  })();
36329
36329
 
36330
+ /**
36331
+ * ContentCollectionType enum.
36332
+ * @exports ContentCollectionType
36333
+ * @enum {string}
36334
+ * @property {number} CONTENT_COLLECTION_TYPE_GENERIC=0 CONTENT_COLLECTION_TYPE_GENERIC value
36335
+ */
36336
+ $root.ContentCollectionType = (function() {
36337
+ var valuesById = {}, values = Object.create(valuesById);
36338
+ values[valuesById[0] = "CONTENT_COLLECTION_TYPE_GENERIC"] = 0;
36339
+ return values;
36340
+ })();
36341
+
36330
36342
  $root.ContentfulCollectionCreated = (function() {
36331
36343
 
36332
36344
  /**
@@ -36338,6 +36350,9 @@ $root.ContentfulCollectionCreated = (function() {
36338
36350
  * @property {Object.<string,string>|null} [teaser] ContentfulCollectionCreated teaser
36339
36351
  * @property {Object.<string,string>|null} [description] ContentfulCollectionCreated description
36340
36352
  * @property {number|Long|null} [createdAt] ContentfulCollectionCreated createdAt
36353
+ * @property {ContentCollectionType|null} [collectionType] ContentfulCollectionCreated collectionType
36354
+ * @property {number|null} [tileMediaId] ContentfulCollectionCreated tileMediaId
36355
+ * @property {Array.<contentful.ISlugReference>|null} [collectionContent] ContentfulCollectionCreated collectionContent
36341
36356
  */
36342
36357
 
36343
36358
  /**
@@ -36352,6 +36367,7 @@ $root.ContentfulCollectionCreated = (function() {
36352
36367
  this.name = {};
36353
36368
  this.teaser = {};
36354
36369
  this.description = {};
36370
+ this.collectionContent = [];
36355
36371
  if (properties)
36356
36372
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
36357
36373
  if (properties[keys[i]] != null)
@@ -36398,6 +36414,30 @@ $root.ContentfulCollectionCreated = (function() {
36398
36414
  */
36399
36415
  ContentfulCollectionCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
36400
36416
 
36417
+ /**
36418
+ * ContentfulCollectionCreated collectionType.
36419
+ * @member {ContentCollectionType} collectionType
36420
+ * @memberof ContentfulCollectionCreated
36421
+ * @instance
36422
+ */
36423
+ ContentfulCollectionCreated.prototype.collectionType = 0;
36424
+
36425
+ /**
36426
+ * ContentfulCollectionCreated tileMediaId.
36427
+ * @member {number} tileMediaId
36428
+ * @memberof ContentfulCollectionCreated
36429
+ * @instance
36430
+ */
36431
+ ContentfulCollectionCreated.prototype.tileMediaId = 0;
36432
+
36433
+ /**
36434
+ * ContentfulCollectionCreated collectionContent.
36435
+ * @member {Array.<contentful.ISlugReference>} collectionContent
36436
+ * @memberof ContentfulCollectionCreated
36437
+ * @instance
36438
+ */
36439
+ ContentfulCollectionCreated.prototype.collectionContent = $util.emptyArray;
36440
+
36401
36441
  /**
36402
36442
  * Creates a new ContentfulCollectionCreated instance using the specified properties.
36403
36443
  * @function create
@@ -36435,6 +36475,13 @@ $root.ContentfulCollectionCreated = (function() {
36435
36475
  writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.description[keys[i]]).ldelim();
36436
36476
  if (message.createdAt != null && message.hasOwnProperty("createdAt"))
36437
36477
  writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.createdAt);
36478
+ if (message.collectionType != null && message.hasOwnProperty("collectionType"))
36479
+ writer.uint32(/* id 6, wireType 0 =*/48).int32(message.collectionType);
36480
+ if (message.tileMediaId != null && message.hasOwnProperty("tileMediaId"))
36481
+ writer.uint32(/* id 7, wireType 0 =*/56).uint32(message.tileMediaId);
36482
+ if (message.collectionContent != null && message.collectionContent.length)
36483
+ for (var i = 0; i < message.collectionContent.length; ++i)
36484
+ $root.contentful.SlugReference.encode(message.collectionContent[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
36438
36485
  return writer;
36439
36486
  };
36440
36487
 
@@ -36499,6 +36546,17 @@ $root.ContentfulCollectionCreated = (function() {
36499
36546
  case 5:
36500
36547
  message.createdAt = reader.uint64();
36501
36548
  break;
36549
+ case 6:
36550
+ message.collectionType = reader.int32();
36551
+ break;
36552
+ case 7:
36553
+ message.tileMediaId = reader.uint32();
36554
+ break;
36555
+ case 8:
36556
+ if (!(message.collectionContent && message.collectionContent.length))
36557
+ message.collectionContent = [];
36558
+ message.collectionContent.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
36559
+ break;
36502
36560
  default:
36503
36561
  reader.skipType(tag & 7);
36504
36562
  break;
@@ -36564,6 +36622,25 @@ $root.ContentfulCollectionCreated = (function() {
36564
36622
  if (message.createdAt != null && message.hasOwnProperty("createdAt"))
36565
36623
  if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
36566
36624
  return "createdAt: integer|Long expected";
36625
+ if (message.collectionType != null && message.hasOwnProperty("collectionType"))
36626
+ switch (message.collectionType) {
36627
+ default:
36628
+ return "collectionType: enum value expected";
36629
+ case 0:
36630
+ break;
36631
+ }
36632
+ if (message.tileMediaId != null && message.hasOwnProperty("tileMediaId"))
36633
+ if (!$util.isInteger(message.tileMediaId))
36634
+ return "tileMediaId: integer expected";
36635
+ if (message.collectionContent != null && message.hasOwnProperty("collectionContent")) {
36636
+ if (!Array.isArray(message.collectionContent))
36637
+ return "collectionContent: array expected";
36638
+ for (var i = 0; i < message.collectionContent.length; ++i) {
36639
+ var error = $root.contentful.SlugReference.verify(message.collectionContent[i]);
36640
+ if (error)
36641
+ return "collectionContent." + error;
36642
+ }
36643
+ }
36567
36644
  return null;
36568
36645
  };
36569
36646
 
@@ -36611,6 +36688,24 @@ $root.ContentfulCollectionCreated = (function() {
36611
36688
  message.createdAt = object.createdAt;
36612
36689
  else if (typeof object.createdAt === "object")
36613
36690
  message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
36691
+ switch (object.collectionType) {
36692
+ case "CONTENT_COLLECTION_TYPE_GENERIC":
36693
+ case 0:
36694
+ message.collectionType = 0;
36695
+ break;
36696
+ }
36697
+ if (object.tileMediaId != null)
36698
+ message.tileMediaId = object.tileMediaId >>> 0;
36699
+ if (object.collectionContent) {
36700
+ if (!Array.isArray(object.collectionContent))
36701
+ throw TypeError(".ContentfulCollectionCreated.collectionContent: array expected");
36702
+ message.collectionContent = [];
36703
+ for (var i = 0; i < object.collectionContent.length; ++i) {
36704
+ if (typeof object.collectionContent[i] !== "object")
36705
+ throw TypeError(".ContentfulCollectionCreated.collectionContent: object expected");
36706
+ message.collectionContent[i] = $root.contentful.SlugReference.fromObject(object.collectionContent[i]);
36707
+ }
36708
+ }
36614
36709
  return message;
36615
36710
  };
36616
36711
 
@@ -36627,6 +36722,8 @@ $root.ContentfulCollectionCreated = (function() {
36627
36722
  if (!options)
36628
36723
  options = {};
36629
36724
  var object = {};
36725
+ if (options.arrays || options.defaults)
36726
+ object.collectionContent = [];
36630
36727
  if (options.objects || options.defaults) {
36631
36728
  object.name = {};
36632
36729
  object.teaser = {};
@@ -36639,6 +36736,8 @@ $root.ContentfulCollectionCreated = (function() {
36639
36736
  object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
36640
36737
  } else
36641
36738
  object.createdAt = options.longs === String ? "0" : 0;
36739
+ object.collectionType = options.enums === String ? "CONTENT_COLLECTION_TYPE_GENERIC" : 0;
36740
+ object.tileMediaId = 0;
36642
36741
  }
36643
36742
  var keys2;
36644
36743
  if (message.name && (keys2 = Object.keys(message.name)).length) {
@@ -36663,6 +36762,15 @@ $root.ContentfulCollectionCreated = (function() {
36663
36762
  object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
36664
36763
  else
36665
36764
  object.createdAt = options.longs === String ? $util.Long.prototype.toString.call(message.createdAt) : options.longs === Number ? new $util.LongBits(message.createdAt.low >>> 0, message.createdAt.high >>> 0).toNumber(true) : message.createdAt;
36765
+ if (message.collectionType != null && message.hasOwnProperty("collectionType"))
36766
+ object.collectionType = options.enums === String ? $root.ContentCollectionType[message.collectionType] : message.collectionType;
36767
+ if (message.tileMediaId != null && message.hasOwnProperty("tileMediaId"))
36768
+ object.tileMediaId = message.tileMediaId;
36769
+ if (message.collectionContent && message.collectionContent.length) {
36770
+ object.collectionContent = [];
36771
+ for (var j = 0; j < message.collectionContent.length; ++j)
36772
+ object.collectionContent[j] = $root.contentful.SlugReference.toObject(message.collectionContent[j], options);
36773
+ }
36666
36774
  return object;
36667
36775
  };
36668
36776
 
@@ -36691,6 +36799,9 @@ $root.ContentfulCollectionUpdated = (function() {
36691
36799
  * @property {Object.<string,string>|null} [teaser] ContentfulCollectionUpdated teaser
36692
36800
  * @property {Object.<string,string>|null} [description] ContentfulCollectionUpdated description
36693
36801
  * @property {number|Long|null} [updatedAt] ContentfulCollectionUpdated updatedAt
36802
+ * @property {ContentCollectionType|null} [collectionType] ContentfulCollectionUpdated collectionType
36803
+ * @property {number|null} [tileMediaId] ContentfulCollectionUpdated tileMediaId
36804
+ * @property {Array.<contentful.ISlugReference>|null} [collectionContent] ContentfulCollectionUpdated collectionContent
36694
36805
  */
36695
36806
 
36696
36807
  /**
@@ -36705,6 +36816,7 @@ $root.ContentfulCollectionUpdated = (function() {
36705
36816
  this.name = {};
36706
36817
  this.teaser = {};
36707
36818
  this.description = {};
36819
+ this.collectionContent = [];
36708
36820
  if (properties)
36709
36821
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
36710
36822
  if (properties[keys[i]] != null)
@@ -36751,6 +36863,30 @@ $root.ContentfulCollectionUpdated = (function() {
36751
36863
  */
36752
36864
  ContentfulCollectionUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
36753
36865
 
36866
+ /**
36867
+ * ContentfulCollectionUpdated collectionType.
36868
+ * @member {ContentCollectionType} collectionType
36869
+ * @memberof ContentfulCollectionUpdated
36870
+ * @instance
36871
+ */
36872
+ ContentfulCollectionUpdated.prototype.collectionType = 0;
36873
+
36874
+ /**
36875
+ * ContentfulCollectionUpdated tileMediaId.
36876
+ * @member {number} tileMediaId
36877
+ * @memberof ContentfulCollectionUpdated
36878
+ * @instance
36879
+ */
36880
+ ContentfulCollectionUpdated.prototype.tileMediaId = 0;
36881
+
36882
+ /**
36883
+ * ContentfulCollectionUpdated collectionContent.
36884
+ * @member {Array.<contentful.ISlugReference>} collectionContent
36885
+ * @memberof ContentfulCollectionUpdated
36886
+ * @instance
36887
+ */
36888
+ ContentfulCollectionUpdated.prototype.collectionContent = $util.emptyArray;
36889
+
36754
36890
  /**
36755
36891
  * Creates a new ContentfulCollectionUpdated instance using the specified properties.
36756
36892
  * @function create
@@ -36788,6 +36924,13 @@ $root.ContentfulCollectionUpdated = (function() {
36788
36924
  writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.description[keys[i]]).ldelim();
36789
36925
  if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
36790
36926
  writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.updatedAt);
36927
+ if (message.collectionType != null && message.hasOwnProperty("collectionType"))
36928
+ writer.uint32(/* id 6, wireType 0 =*/48).int32(message.collectionType);
36929
+ if (message.tileMediaId != null && message.hasOwnProperty("tileMediaId"))
36930
+ writer.uint32(/* id 7, wireType 0 =*/56).uint32(message.tileMediaId);
36931
+ if (message.collectionContent != null && message.collectionContent.length)
36932
+ for (var i = 0; i < message.collectionContent.length; ++i)
36933
+ $root.contentful.SlugReference.encode(message.collectionContent[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
36791
36934
  return writer;
36792
36935
  };
36793
36936
 
@@ -36852,6 +36995,17 @@ $root.ContentfulCollectionUpdated = (function() {
36852
36995
  case 5:
36853
36996
  message.updatedAt = reader.uint64();
36854
36997
  break;
36998
+ case 6:
36999
+ message.collectionType = reader.int32();
37000
+ break;
37001
+ case 7:
37002
+ message.tileMediaId = reader.uint32();
37003
+ break;
37004
+ case 8:
37005
+ if (!(message.collectionContent && message.collectionContent.length))
37006
+ message.collectionContent = [];
37007
+ message.collectionContent.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
37008
+ break;
36855
37009
  default:
36856
37010
  reader.skipType(tag & 7);
36857
37011
  break;
@@ -36917,6 +37071,25 @@ $root.ContentfulCollectionUpdated = (function() {
36917
37071
  if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
36918
37072
  if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
36919
37073
  return "updatedAt: integer|Long expected";
37074
+ if (message.collectionType != null && message.hasOwnProperty("collectionType"))
37075
+ switch (message.collectionType) {
37076
+ default:
37077
+ return "collectionType: enum value expected";
37078
+ case 0:
37079
+ break;
37080
+ }
37081
+ if (message.tileMediaId != null && message.hasOwnProperty("tileMediaId"))
37082
+ if (!$util.isInteger(message.tileMediaId))
37083
+ return "tileMediaId: integer expected";
37084
+ if (message.collectionContent != null && message.hasOwnProperty("collectionContent")) {
37085
+ if (!Array.isArray(message.collectionContent))
37086
+ return "collectionContent: array expected";
37087
+ for (var i = 0; i < message.collectionContent.length; ++i) {
37088
+ var error = $root.contentful.SlugReference.verify(message.collectionContent[i]);
37089
+ if (error)
37090
+ return "collectionContent." + error;
37091
+ }
37092
+ }
36920
37093
  return null;
36921
37094
  };
36922
37095
 
@@ -36964,6 +37137,24 @@ $root.ContentfulCollectionUpdated = (function() {
36964
37137
  message.updatedAt = object.updatedAt;
36965
37138
  else if (typeof object.updatedAt === "object")
36966
37139
  message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
37140
+ switch (object.collectionType) {
37141
+ case "CONTENT_COLLECTION_TYPE_GENERIC":
37142
+ case 0:
37143
+ message.collectionType = 0;
37144
+ break;
37145
+ }
37146
+ if (object.tileMediaId != null)
37147
+ message.tileMediaId = object.tileMediaId >>> 0;
37148
+ if (object.collectionContent) {
37149
+ if (!Array.isArray(object.collectionContent))
37150
+ throw TypeError(".ContentfulCollectionUpdated.collectionContent: array expected");
37151
+ message.collectionContent = [];
37152
+ for (var i = 0; i < object.collectionContent.length; ++i) {
37153
+ if (typeof object.collectionContent[i] !== "object")
37154
+ throw TypeError(".ContentfulCollectionUpdated.collectionContent: object expected");
37155
+ message.collectionContent[i] = $root.contentful.SlugReference.fromObject(object.collectionContent[i]);
37156
+ }
37157
+ }
36967
37158
  return message;
36968
37159
  };
36969
37160
 
@@ -36980,6 +37171,8 @@ $root.ContentfulCollectionUpdated = (function() {
36980
37171
  if (!options)
36981
37172
  options = {};
36982
37173
  var object = {};
37174
+ if (options.arrays || options.defaults)
37175
+ object.collectionContent = [];
36983
37176
  if (options.objects || options.defaults) {
36984
37177
  object.name = {};
36985
37178
  object.teaser = {};
@@ -36992,6 +37185,8 @@ $root.ContentfulCollectionUpdated = (function() {
36992
37185
  object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
36993
37186
  } else
36994
37187
  object.updatedAt = options.longs === String ? "0" : 0;
37188
+ object.collectionType = options.enums === String ? "CONTENT_COLLECTION_TYPE_GENERIC" : 0;
37189
+ object.tileMediaId = 0;
36995
37190
  }
36996
37191
  var keys2;
36997
37192
  if (message.name && (keys2 = Object.keys(message.name)).length) {
@@ -37016,6 +37211,15 @@ $root.ContentfulCollectionUpdated = (function() {
37016
37211
  object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
37017
37212
  else
37018
37213
  object.updatedAt = options.longs === String ? $util.Long.prototype.toString.call(message.updatedAt) : options.longs === Number ? new $util.LongBits(message.updatedAt.low >>> 0, message.updatedAt.high >>> 0).toNumber(true) : message.updatedAt;
37214
+ if (message.collectionType != null && message.hasOwnProperty("collectionType"))
37215
+ object.collectionType = options.enums === String ? $root.ContentCollectionType[message.collectionType] : message.collectionType;
37216
+ if (message.tileMediaId != null && message.hasOwnProperty("tileMediaId"))
37217
+ object.tileMediaId = message.tileMediaId;
37218
+ if (message.collectionContent && message.collectionContent.length) {
37219
+ object.collectionContent = [];
37220
+ for (var j = 0; j < message.collectionContent.length; ++j)
37221
+ object.collectionContent[j] = $root.contentful.SlugReference.toObject(message.collectionContent[j], options);
37222
+ }
37019
37223
  return object;
37020
37224
  };
37021
37225
 
@@ -61088,6 +61292,7 @@ $root.ContentPlayed = (function() {
61088
61292
  case 15:
61089
61293
  case 16:
61090
61294
  case 17:
61295
+ case 18:
61091
61296
  break;
61092
61297
  }
61093
61298
  if (message.mode != null && message.hasOwnProperty("mode"))
@@ -61208,6 +61413,10 @@ $root.ContentPlayed = (function() {
61208
61413
  case 17:
61209
61414
  message.contentType = 17;
61210
61415
  break;
61416
+ case "CONTENT_TYPE_COLLECTION":
61417
+ case 18:
61418
+ message.contentType = 18;
61419
+ break;
61211
61420
  }
61212
61421
  switch (object.mode) {
61213
61422
  case "MODE_UNRECOGNIZED":
@@ -61553,6 +61762,7 @@ $root.ContentPlayedBatch = (function() {
61553
61762
  * @property {number} CONTENT_TYPE_COURSE_ACTIVITY=15 CONTENT_TYPE_COURSE_ACTIVITY value
61554
61763
  * @property {number} CONTENT_TYPE_INTEGRATED_AUDIO=16 CONTENT_TYPE_INTEGRATED_AUDIO value
61555
61764
  * @property {number} CONTENT_TYPE_ACTIVITY=17 CONTENT_TYPE_ACTIVITY value
61765
+ * @property {number} CONTENT_TYPE_COLLECTION=18 CONTENT_TYPE_COLLECTION value
61556
61766
  */
61557
61767
  $root.ContentType = (function() {
61558
61768
  var valuesById = {}, values = Object.create(valuesById);
@@ -61574,6 +61784,7 @@ $root.ContentType = (function() {
61574
61784
  values[valuesById[15] = "CONTENT_TYPE_COURSE_ACTIVITY"] = 15;
61575
61785
  values[valuesById[16] = "CONTENT_TYPE_INTEGRATED_AUDIO"] = 16;
61576
61786
  values[valuesById[17] = "CONTENT_TYPE_ACTIVITY"] = 17;
61787
+ values[valuesById[18] = "CONTENT_TYPE_COLLECTION"] = 18;
61577
61788
  return values;
61578
61789
  })();
61579
61790
 
@@ -61644,6 +61855,7 @@ $root.ColorTheme = (function() {
61644
61855
  * @property {number} CONTENT_TYPE_DISPLAY_VALUE_STRETCH=22 CONTENT_TYPE_DISPLAY_VALUE_STRETCH value
61645
61856
  * @property {number} CONTENT_TYPE_DISPLAY_VALUE_THE_WIND_DOWN=23 CONTENT_TYPE_DISPLAY_VALUE_THE_WIND_DOWN value
61646
61857
  * @property {number} CONTENT_TYPE_DISPLAY_VALUE_SESSION=24 CONTENT_TYPE_DISPLAY_VALUE_SESSION value
61858
+ * @property {number} CONTENT_TYPE_DISPLAY_VALUE_COLLECTION=25 CONTENT_TYPE_DISPLAY_VALUE_COLLECTION value
61647
61859
  */
61648
61860
  $root.ContentTypeDisplayValue = (function() {
61649
61861
  var valuesById = {}, values = Object.create(valuesById);
@@ -61672,6 +61884,7 @@ $root.ContentTypeDisplayValue = (function() {
61672
61884
  values[valuesById[22] = "CONTENT_TYPE_DISPLAY_VALUE_STRETCH"] = 22;
61673
61885
  values[valuesById[23] = "CONTENT_TYPE_DISPLAY_VALUE_THE_WIND_DOWN"] = 23;
61674
61886
  values[valuesById[24] = "CONTENT_TYPE_DISPLAY_VALUE_SESSION"] = 24;
61887
+ values[valuesById[25] = "CONTENT_TYPE_DISPLAY_VALUE_COLLECTION"] = 25;
61675
61888
  return values;
61676
61889
  })();
61677
61890
 
@@ -62252,6 +62465,7 @@ $root.ContentEntityCreated = (function() {
62252
62465
  case 15:
62253
62466
  case 16:
62254
62467
  case 17:
62468
+ case 18:
62255
62469
  break;
62256
62470
  }
62257
62471
  if (message.colorTheme != null && message.hasOwnProperty("colorTheme"))
@@ -62301,6 +62515,7 @@ $root.ContentEntityCreated = (function() {
62301
62515
  case 22:
62302
62516
  case 23:
62303
62517
  case 24:
62518
+ case 25:
62304
62519
  break;
62305
62520
  }
62306
62521
  if (message.contentInfoScreenTheme != null && message.hasOwnProperty("contentInfoScreenTheme"))
@@ -62417,6 +62632,10 @@ $root.ContentEntityCreated = (function() {
62417
62632
  case 17:
62418
62633
  message.contentType = 17;
62419
62634
  break;
62635
+ case "CONTENT_TYPE_COLLECTION":
62636
+ case 18:
62637
+ message.contentType = 18;
62638
+ break;
62420
62639
  }
62421
62640
  switch (object.colorTheme) {
62422
62641
  case "COLOR_THEME_UNRECOGNIZED":
@@ -62539,6 +62758,10 @@ $root.ContentEntityCreated = (function() {
62539
62758
  case 24:
62540
62759
  message.contentTypeDisplayValue = 24;
62541
62760
  break;
62761
+ case "CONTENT_TYPE_DISPLAY_VALUE_COLLECTION":
62762
+ case 25:
62763
+ message.contentTypeDisplayValue = 25;
62764
+ break;
62542
62765
  }
62543
62766
  switch (object.contentInfoScreenTheme) {
62544
62767
  case "COLOR_THEME_UNRECOGNIZED":
@@ -62989,6 +63212,7 @@ $root.ContentEntityUpdated = (function() {
62989
63212
  case 15:
62990
63213
  case 16:
62991
63214
  case 17:
63215
+ case 18:
62992
63216
  break;
62993
63217
  }
62994
63218
  if (message.colorTheme != null && message.hasOwnProperty("colorTheme"))
@@ -63038,6 +63262,7 @@ $root.ContentEntityUpdated = (function() {
63038
63262
  case 22:
63039
63263
  case 23:
63040
63264
  case 24:
63265
+ case 25:
63041
63266
  break;
63042
63267
  }
63043
63268
  if (message.contentInfoScreenTheme != null && message.hasOwnProperty("contentInfoScreenTheme"))
@@ -63154,6 +63379,10 @@ $root.ContentEntityUpdated = (function() {
63154
63379
  case 17:
63155
63380
  message.contentType = 17;
63156
63381
  break;
63382
+ case "CONTENT_TYPE_COLLECTION":
63383
+ case 18:
63384
+ message.contentType = 18;
63385
+ break;
63157
63386
  }
63158
63387
  switch (object.colorTheme) {
63159
63388
  case "COLOR_THEME_UNRECOGNIZED":
@@ -63276,6 +63505,10 @@ $root.ContentEntityUpdated = (function() {
63276
63505
  case 24:
63277
63506
  message.contentTypeDisplayValue = 24;
63278
63507
  break;
63508
+ case "CONTENT_TYPE_DISPLAY_VALUE_COLLECTION":
63509
+ case 25:
63510
+ message.contentTypeDisplayValue = 25;
63511
+ break;
63279
63512
  }
63280
63513
  switch (object.contentInfoScreenTheme) {
63281
63514
  case "COLOR_THEME_UNRECOGNIZED":
@@ -63726,6 +63959,7 @@ $root.ContentEntityDeleted = (function() {
63726
63959
  case 15:
63727
63960
  case 16:
63728
63961
  case 17:
63962
+ case 18:
63729
63963
  break;
63730
63964
  }
63731
63965
  if (message.colorTheme != null && message.hasOwnProperty("colorTheme"))
@@ -63775,6 +64009,7 @@ $root.ContentEntityDeleted = (function() {
63775
64009
  case 22:
63776
64010
  case 23:
63777
64011
  case 24:
64012
+ case 25:
63778
64013
  break;
63779
64014
  }
63780
64015
  if (message.contentInfoScreenTheme != null && message.hasOwnProperty("contentInfoScreenTheme"))
@@ -63891,6 +64126,10 @@ $root.ContentEntityDeleted = (function() {
63891
64126
  case 17:
63892
64127
  message.contentType = 17;
63893
64128
  break;
64129
+ case "CONTENT_TYPE_COLLECTION":
64130
+ case 18:
64131
+ message.contentType = 18;
64132
+ break;
63894
64133
  }
63895
64134
  switch (object.colorTheme) {
63896
64135
  case "COLOR_THEME_UNRECOGNIZED":
@@ -64013,6 +64252,10 @@ $root.ContentEntityDeleted = (function() {
64013
64252
  case 24:
64014
64253
  message.contentTypeDisplayValue = 24;
64015
64254
  break;
64255
+ case "CONTENT_TYPE_DISPLAY_VALUE_COLLECTION":
64256
+ case 25:
64257
+ message.contentTypeDisplayValue = 25;
64258
+ break;
64016
64259
  }
64017
64260
  switch (object.contentInfoScreenTheme) {
64018
64261
  case "COLOR_THEME_UNRECOGNIZED":
@@ -70892,6 +71135,340 @@ $root.RecommendationMindsetUpdated = (function() {
70892
71135
  return RecommendationMindsetUpdated;
70893
71136
  })();
70894
71137
 
71138
+ $root.B2BAdminCreated = (function() {
71139
+
71140
+ /**
71141
+ * Properties of a B2BAdminCreated.
71142
+ * @exports IB2BAdminCreated
71143
+ * @interface IB2BAdminCreated
71144
+ * @property {number|null} [adminId] B2BAdminCreated adminId
71145
+ * @property {number|null} [orgId] B2BAdminCreated orgId
71146
+ * @property {string|null} [orgName] B2BAdminCreated orgName
71147
+ * @property {string|null} [email] B2BAdminCreated email
71148
+ * @property {string|null} [resetPasswordLink] B2BAdminCreated resetPasswordLink
71149
+ * @property {boolean|null} [shouldSendEmail] B2BAdminCreated shouldSendEmail
71150
+ * @property {number|Long|null} [timestampEpochMs] B2BAdminCreated timestampEpochMs
71151
+ */
71152
+
71153
+ /**
71154
+ * Constructs a new B2BAdminCreated.
71155
+ * @exports B2BAdminCreated
71156
+ * @classdesc Represents a B2BAdminCreated.
71157
+ * @implements IB2BAdminCreated
71158
+ * @constructor
71159
+ * @param {IB2BAdminCreated=} [properties] Properties to set
71160
+ */
71161
+ function B2BAdminCreated(properties) {
71162
+ if (properties)
71163
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
71164
+ if (properties[keys[i]] != null)
71165
+ this[keys[i]] = properties[keys[i]];
71166
+ }
71167
+
71168
+ /**
71169
+ * B2BAdminCreated adminId.
71170
+ * @member {number} adminId
71171
+ * @memberof B2BAdminCreated
71172
+ * @instance
71173
+ */
71174
+ B2BAdminCreated.prototype.adminId = 0;
71175
+
71176
+ /**
71177
+ * B2BAdminCreated orgId.
71178
+ * @member {number} orgId
71179
+ * @memberof B2BAdminCreated
71180
+ * @instance
71181
+ */
71182
+ B2BAdminCreated.prototype.orgId = 0;
71183
+
71184
+ /**
71185
+ * B2BAdminCreated orgName.
71186
+ * @member {string} orgName
71187
+ * @memberof B2BAdminCreated
71188
+ * @instance
71189
+ */
71190
+ B2BAdminCreated.prototype.orgName = "";
71191
+
71192
+ /**
71193
+ * B2BAdminCreated email.
71194
+ * @member {string} email
71195
+ * @memberof B2BAdminCreated
71196
+ * @instance
71197
+ */
71198
+ B2BAdminCreated.prototype.email = "";
71199
+
71200
+ /**
71201
+ * B2BAdminCreated resetPasswordLink.
71202
+ * @member {string} resetPasswordLink
71203
+ * @memberof B2BAdminCreated
71204
+ * @instance
71205
+ */
71206
+ B2BAdminCreated.prototype.resetPasswordLink = "";
71207
+
71208
+ /**
71209
+ * B2BAdminCreated shouldSendEmail.
71210
+ * @member {boolean} shouldSendEmail
71211
+ * @memberof B2BAdminCreated
71212
+ * @instance
71213
+ */
71214
+ B2BAdminCreated.prototype.shouldSendEmail = false;
71215
+
71216
+ /**
71217
+ * B2BAdminCreated timestampEpochMs.
71218
+ * @member {number|Long} timestampEpochMs
71219
+ * @memberof B2BAdminCreated
71220
+ * @instance
71221
+ */
71222
+ B2BAdminCreated.prototype.timestampEpochMs = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
71223
+
71224
+ /**
71225
+ * Creates a new B2BAdminCreated instance using the specified properties.
71226
+ * @function create
71227
+ * @memberof B2BAdminCreated
71228
+ * @static
71229
+ * @param {IB2BAdminCreated=} [properties] Properties to set
71230
+ * @returns {B2BAdminCreated} B2BAdminCreated instance
71231
+ */
71232
+ B2BAdminCreated.create = function create(properties) {
71233
+ return new B2BAdminCreated(properties);
71234
+ };
71235
+
71236
+ /**
71237
+ * Encodes the specified B2BAdminCreated message. Does not implicitly {@link B2BAdminCreated.verify|verify} messages.
71238
+ * @function encode
71239
+ * @memberof B2BAdminCreated
71240
+ * @static
71241
+ * @param {IB2BAdminCreated} message B2BAdminCreated message or plain object to encode
71242
+ * @param {$protobuf.Writer} [writer] Writer to encode to
71243
+ * @returns {$protobuf.Writer} Writer
71244
+ */
71245
+ B2BAdminCreated.encode = function encode(message, writer) {
71246
+ if (!writer)
71247
+ writer = $Writer.create();
71248
+ if (message.adminId != null && message.hasOwnProperty("adminId"))
71249
+ writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.adminId);
71250
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
71251
+ writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.orgId);
71252
+ if (message.orgName != null && message.hasOwnProperty("orgName"))
71253
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.orgName);
71254
+ if (message.email != null && message.hasOwnProperty("email"))
71255
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.email);
71256
+ if (message.resetPasswordLink != null && message.hasOwnProperty("resetPasswordLink"))
71257
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.resetPasswordLink);
71258
+ if (message.shouldSendEmail != null && message.hasOwnProperty("shouldSendEmail"))
71259
+ writer.uint32(/* id 6, wireType 0 =*/48).bool(message.shouldSendEmail);
71260
+ if (message.timestampEpochMs != null && message.hasOwnProperty("timestampEpochMs"))
71261
+ writer.uint32(/* id 7, wireType 0 =*/56).uint64(message.timestampEpochMs);
71262
+ return writer;
71263
+ };
71264
+
71265
+ /**
71266
+ * Encodes the specified B2BAdminCreated message, length delimited. Does not implicitly {@link B2BAdminCreated.verify|verify} messages.
71267
+ * @function encodeDelimited
71268
+ * @memberof B2BAdminCreated
71269
+ * @static
71270
+ * @param {IB2BAdminCreated} message B2BAdminCreated message or plain object to encode
71271
+ * @param {$protobuf.Writer} [writer] Writer to encode to
71272
+ * @returns {$protobuf.Writer} Writer
71273
+ */
71274
+ B2BAdminCreated.encodeDelimited = function encodeDelimited(message, writer) {
71275
+ return this.encode(message, writer).ldelim();
71276
+ };
71277
+
71278
+ /**
71279
+ * Decodes a B2BAdminCreated message from the specified reader or buffer.
71280
+ * @function decode
71281
+ * @memberof B2BAdminCreated
71282
+ * @static
71283
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
71284
+ * @param {number} [length] Message length if known beforehand
71285
+ * @returns {B2BAdminCreated} B2BAdminCreated
71286
+ * @throws {Error} If the payload is not a reader or valid buffer
71287
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
71288
+ */
71289
+ B2BAdminCreated.decode = function decode(reader, length) {
71290
+ if (!(reader instanceof $Reader))
71291
+ reader = $Reader.create(reader);
71292
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.B2BAdminCreated();
71293
+ while (reader.pos < end) {
71294
+ var tag = reader.uint32();
71295
+ switch (tag >>> 3) {
71296
+ case 1:
71297
+ message.adminId = reader.uint32();
71298
+ break;
71299
+ case 2:
71300
+ message.orgId = reader.uint32();
71301
+ break;
71302
+ case 3:
71303
+ message.orgName = reader.string();
71304
+ break;
71305
+ case 4:
71306
+ message.email = reader.string();
71307
+ break;
71308
+ case 5:
71309
+ message.resetPasswordLink = reader.string();
71310
+ break;
71311
+ case 6:
71312
+ message.shouldSendEmail = reader.bool();
71313
+ break;
71314
+ case 7:
71315
+ message.timestampEpochMs = reader.uint64();
71316
+ break;
71317
+ default:
71318
+ reader.skipType(tag & 7);
71319
+ break;
71320
+ }
71321
+ }
71322
+ return message;
71323
+ };
71324
+
71325
+ /**
71326
+ * Decodes a B2BAdminCreated message from the specified reader or buffer, length delimited.
71327
+ * @function decodeDelimited
71328
+ * @memberof B2BAdminCreated
71329
+ * @static
71330
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
71331
+ * @returns {B2BAdminCreated} B2BAdminCreated
71332
+ * @throws {Error} If the payload is not a reader or valid buffer
71333
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
71334
+ */
71335
+ B2BAdminCreated.decodeDelimited = function decodeDelimited(reader) {
71336
+ if (!(reader instanceof $Reader))
71337
+ reader = new $Reader(reader);
71338
+ return this.decode(reader, reader.uint32());
71339
+ };
71340
+
71341
+ /**
71342
+ * Verifies a B2BAdminCreated message.
71343
+ * @function verify
71344
+ * @memberof B2BAdminCreated
71345
+ * @static
71346
+ * @param {Object.<string,*>} message Plain object to verify
71347
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
71348
+ */
71349
+ B2BAdminCreated.verify = function verify(message) {
71350
+ if (typeof message !== "object" || message === null)
71351
+ return "object expected";
71352
+ if (message.adminId != null && message.hasOwnProperty("adminId"))
71353
+ if (!$util.isInteger(message.adminId))
71354
+ return "adminId: integer expected";
71355
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
71356
+ if (!$util.isInteger(message.orgId))
71357
+ return "orgId: integer expected";
71358
+ if (message.orgName != null && message.hasOwnProperty("orgName"))
71359
+ if (!$util.isString(message.orgName))
71360
+ return "orgName: string expected";
71361
+ if (message.email != null && message.hasOwnProperty("email"))
71362
+ if (!$util.isString(message.email))
71363
+ return "email: string expected";
71364
+ if (message.resetPasswordLink != null && message.hasOwnProperty("resetPasswordLink"))
71365
+ if (!$util.isString(message.resetPasswordLink))
71366
+ return "resetPasswordLink: string expected";
71367
+ if (message.shouldSendEmail != null && message.hasOwnProperty("shouldSendEmail"))
71368
+ if (typeof message.shouldSendEmail !== "boolean")
71369
+ return "shouldSendEmail: boolean expected";
71370
+ if (message.timestampEpochMs != null && message.hasOwnProperty("timestampEpochMs"))
71371
+ if (!$util.isInteger(message.timestampEpochMs) && !(message.timestampEpochMs && $util.isInteger(message.timestampEpochMs.low) && $util.isInteger(message.timestampEpochMs.high)))
71372
+ return "timestampEpochMs: integer|Long expected";
71373
+ return null;
71374
+ };
71375
+
71376
+ /**
71377
+ * Creates a B2BAdminCreated message from a plain object. Also converts values to their respective internal types.
71378
+ * @function fromObject
71379
+ * @memberof B2BAdminCreated
71380
+ * @static
71381
+ * @param {Object.<string,*>} object Plain object
71382
+ * @returns {B2BAdminCreated} B2BAdminCreated
71383
+ */
71384
+ B2BAdminCreated.fromObject = function fromObject(object) {
71385
+ if (object instanceof $root.B2BAdminCreated)
71386
+ return object;
71387
+ var message = new $root.B2BAdminCreated();
71388
+ if (object.adminId != null)
71389
+ message.adminId = object.adminId >>> 0;
71390
+ if (object.orgId != null)
71391
+ message.orgId = object.orgId >>> 0;
71392
+ if (object.orgName != null)
71393
+ message.orgName = String(object.orgName);
71394
+ if (object.email != null)
71395
+ message.email = String(object.email);
71396
+ if (object.resetPasswordLink != null)
71397
+ message.resetPasswordLink = String(object.resetPasswordLink);
71398
+ if (object.shouldSendEmail != null)
71399
+ message.shouldSendEmail = Boolean(object.shouldSendEmail);
71400
+ if (object.timestampEpochMs != null)
71401
+ if ($util.Long)
71402
+ (message.timestampEpochMs = $util.Long.fromValue(object.timestampEpochMs)).unsigned = true;
71403
+ else if (typeof object.timestampEpochMs === "string")
71404
+ message.timestampEpochMs = parseInt(object.timestampEpochMs, 10);
71405
+ else if (typeof object.timestampEpochMs === "number")
71406
+ message.timestampEpochMs = object.timestampEpochMs;
71407
+ else if (typeof object.timestampEpochMs === "object")
71408
+ message.timestampEpochMs = new $util.LongBits(object.timestampEpochMs.low >>> 0, object.timestampEpochMs.high >>> 0).toNumber(true);
71409
+ return message;
71410
+ };
71411
+
71412
+ /**
71413
+ * Creates a plain object from a B2BAdminCreated message. Also converts values to other types if specified.
71414
+ * @function toObject
71415
+ * @memberof B2BAdminCreated
71416
+ * @static
71417
+ * @param {B2BAdminCreated} message B2BAdminCreated
71418
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
71419
+ * @returns {Object.<string,*>} Plain object
71420
+ */
71421
+ B2BAdminCreated.toObject = function toObject(message, options) {
71422
+ if (!options)
71423
+ options = {};
71424
+ var object = {};
71425
+ if (options.defaults) {
71426
+ object.adminId = 0;
71427
+ object.orgId = 0;
71428
+ object.orgName = "";
71429
+ object.email = "";
71430
+ object.resetPasswordLink = "";
71431
+ object.shouldSendEmail = false;
71432
+ if ($util.Long) {
71433
+ var long = new $util.Long(0, 0, true);
71434
+ object.timestampEpochMs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
71435
+ } else
71436
+ object.timestampEpochMs = options.longs === String ? "0" : 0;
71437
+ }
71438
+ if (message.adminId != null && message.hasOwnProperty("adminId"))
71439
+ object.adminId = message.adminId;
71440
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
71441
+ object.orgId = message.orgId;
71442
+ if (message.orgName != null && message.hasOwnProperty("orgName"))
71443
+ object.orgName = message.orgName;
71444
+ if (message.email != null && message.hasOwnProperty("email"))
71445
+ object.email = message.email;
71446
+ if (message.resetPasswordLink != null && message.hasOwnProperty("resetPasswordLink"))
71447
+ object.resetPasswordLink = message.resetPasswordLink;
71448
+ if (message.shouldSendEmail != null && message.hasOwnProperty("shouldSendEmail"))
71449
+ object.shouldSendEmail = message.shouldSendEmail;
71450
+ if (message.timestampEpochMs != null && message.hasOwnProperty("timestampEpochMs"))
71451
+ if (typeof message.timestampEpochMs === "number")
71452
+ object.timestampEpochMs = options.longs === String ? String(message.timestampEpochMs) : message.timestampEpochMs;
71453
+ else
71454
+ object.timestampEpochMs = options.longs === String ? $util.Long.prototype.toString.call(message.timestampEpochMs) : options.longs === Number ? new $util.LongBits(message.timestampEpochMs.low >>> 0, message.timestampEpochMs.high >>> 0).toNumber(true) : message.timestampEpochMs;
71455
+ return object;
71456
+ };
71457
+
71458
+ /**
71459
+ * Converts this B2BAdminCreated to JSON.
71460
+ * @function toJSON
71461
+ * @memberof B2BAdminCreated
71462
+ * @instance
71463
+ * @returns {Object.<string,*>} JSON object
71464
+ */
71465
+ B2BAdminCreated.prototype.toJSON = function toJSON() {
71466
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
71467
+ };
71468
+
71469
+ return B2BAdminCreated;
71470
+ })();
71471
+
70895
71472
  $root.EligibilityFileProcessed = (function() {
70896
71473
 
70897
71474
  /**
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.284.0"
19
+ "version": "1.286.0"
20
20
  }