@headspace/protos-events 1.195.0 → 1.196.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 +68 -44
  2. package/lib/index.js +492 -296
  3. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -28297,12 +28297,14 @@ $root.ContentfulSleepcastRecipeCreated = (function() {
28297
28297
  * @interface IContentfulSleepcastRecipeCreated
28298
28298
  * @property {string|null} [slug] ContentfulSleepcastRecipeCreated slug
28299
28299
  * @property {string|null} [generator] ContentfulSleepcastRecipeCreated generator
28300
+ * @property {Object.<string,contentful.IIdReference>|null} [ambientMedia] ContentfulSleepcastRecipeCreated ambientMedia
28301
+ * @property {Object.<string,contentful.IIdReferences>|null} [beforeIntroMedia] ContentfulSleepcastRecipeCreated beforeIntroMedia
28302
+ * @property {Object.<string,contentful.IIdReferences>|null} [introMedia] ContentfulSleepcastRecipeCreated introMedia
28303
+ * @property {Object.<string,contentful.IIdReferences>|null} [afterIntroMedia] ContentfulSleepcastRecipeCreated afterIntroMedia
28300
28304
  * @property {Object.<string,contentful.IIdReferences>|null} [mainMedia] ContentfulSleepcastRecipeCreated mainMedia
28301
- * @property {Object.<string,contentful.IIdReferences>|null} [windDownMedia] ContentfulSleepcastRecipeCreated windDownMedia
28302
- * @property {Object.<string,contentful.IIdReference>|null} [soundBedMedia] ContentfulSleepcastRecipeCreated soundBedMedia
28303
- * @property {Object.<string,contentful.IIdReference>|null} [introMedia] ContentfulSleepcastRecipeCreated introMedia
28304
- * @property {Object.<string,contentful.IIdReference>|null} [leadInMedia] ContentfulSleepcastRecipeCreated leadInMedia
28305
- * @property {Object.<string,contentful.IIdReference>|null} [outroMedia] ContentfulSleepcastRecipeCreated outroMedia
28305
+ * @property {Object.<string,contentful.IIdReferences>|null} [beforeOutroMedia] ContentfulSleepcastRecipeCreated beforeOutroMedia
28306
+ * @property {Object.<string,contentful.IIdReferences>|null} [outroMedia] ContentfulSleepcastRecipeCreated outroMedia
28307
+ * @property {Object.<string,contentful.IIdReferences>|null} [afterOutroMedia] ContentfulSleepcastRecipeCreated afterOutroMedia
28306
28308
  * @property {number|Long|null} [createdAt] ContentfulSleepcastRecipeCreated createdAt
28307
28309
  */
28308
28310
 
@@ -28315,12 +28317,14 @@ $root.ContentfulSleepcastRecipeCreated = (function() {
28315
28317
  * @param {IContentfulSleepcastRecipeCreated=} [properties] Properties to set
28316
28318
  */
28317
28319
  function ContentfulSleepcastRecipeCreated(properties) {
28318
- this.mainMedia = {};
28319
- this.windDownMedia = {};
28320
- this.soundBedMedia = {};
28320
+ this.ambientMedia = {};
28321
+ this.beforeIntroMedia = {};
28321
28322
  this.introMedia = {};
28322
- this.leadInMedia = {};
28323
+ this.afterIntroMedia = {};
28324
+ this.mainMedia = {};
28325
+ this.beforeOutroMedia = {};
28323
28326
  this.outroMedia = {};
28327
+ this.afterOutroMedia = {};
28324
28328
  if (properties)
28325
28329
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
28326
28330
  if (properties[keys[i]] != null)
@@ -28344,53 +28348,69 @@ $root.ContentfulSleepcastRecipeCreated = (function() {
28344
28348
  ContentfulSleepcastRecipeCreated.prototype.generator = "";
28345
28349
 
28346
28350
  /**
28347
- * ContentfulSleepcastRecipeCreated mainMedia.
28348
- * @member {Object.<string,contentful.IIdReferences>} mainMedia
28351
+ * ContentfulSleepcastRecipeCreated ambientMedia.
28352
+ * @member {Object.<string,contentful.IIdReference>} ambientMedia
28349
28353
  * @memberof ContentfulSleepcastRecipeCreated
28350
28354
  * @instance
28351
28355
  */
28352
- ContentfulSleepcastRecipeCreated.prototype.mainMedia = $util.emptyObject;
28356
+ ContentfulSleepcastRecipeCreated.prototype.ambientMedia = $util.emptyObject;
28353
28357
 
28354
28358
  /**
28355
- * ContentfulSleepcastRecipeCreated windDownMedia.
28356
- * @member {Object.<string,contentful.IIdReferences>} windDownMedia
28359
+ * ContentfulSleepcastRecipeCreated beforeIntroMedia.
28360
+ * @member {Object.<string,contentful.IIdReferences>} beforeIntroMedia
28357
28361
  * @memberof ContentfulSleepcastRecipeCreated
28358
28362
  * @instance
28359
28363
  */
28360
- ContentfulSleepcastRecipeCreated.prototype.windDownMedia = $util.emptyObject;
28364
+ ContentfulSleepcastRecipeCreated.prototype.beforeIntroMedia = $util.emptyObject;
28361
28365
 
28362
28366
  /**
28363
- * ContentfulSleepcastRecipeCreated soundBedMedia.
28364
- * @member {Object.<string,contentful.IIdReference>} soundBedMedia
28367
+ * ContentfulSleepcastRecipeCreated introMedia.
28368
+ * @member {Object.<string,contentful.IIdReferences>} introMedia
28365
28369
  * @memberof ContentfulSleepcastRecipeCreated
28366
28370
  * @instance
28367
28371
  */
28368
- ContentfulSleepcastRecipeCreated.prototype.soundBedMedia = $util.emptyObject;
28372
+ ContentfulSleepcastRecipeCreated.prototype.introMedia = $util.emptyObject;
28369
28373
 
28370
28374
  /**
28371
- * ContentfulSleepcastRecipeCreated introMedia.
28372
- * @member {Object.<string,contentful.IIdReference>} introMedia
28375
+ * ContentfulSleepcastRecipeCreated afterIntroMedia.
28376
+ * @member {Object.<string,contentful.IIdReferences>} afterIntroMedia
28373
28377
  * @memberof ContentfulSleepcastRecipeCreated
28374
28378
  * @instance
28375
28379
  */
28376
- ContentfulSleepcastRecipeCreated.prototype.introMedia = $util.emptyObject;
28380
+ ContentfulSleepcastRecipeCreated.prototype.afterIntroMedia = $util.emptyObject;
28381
+
28382
+ /**
28383
+ * ContentfulSleepcastRecipeCreated mainMedia.
28384
+ * @member {Object.<string,contentful.IIdReferences>} mainMedia
28385
+ * @memberof ContentfulSleepcastRecipeCreated
28386
+ * @instance
28387
+ */
28388
+ ContentfulSleepcastRecipeCreated.prototype.mainMedia = $util.emptyObject;
28377
28389
 
28378
28390
  /**
28379
- * ContentfulSleepcastRecipeCreated leadInMedia.
28380
- * @member {Object.<string,contentful.IIdReference>} leadInMedia
28391
+ * ContentfulSleepcastRecipeCreated beforeOutroMedia.
28392
+ * @member {Object.<string,contentful.IIdReferences>} beforeOutroMedia
28381
28393
  * @memberof ContentfulSleepcastRecipeCreated
28382
28394
  * @instance
28383
28395
  */
28384
- ContentfulSleepcastRecipeCreated.prototype.leadInMedia = $util.emptyObject;
28396
+ ContentfulSleepcastRecipeCreated.prototype.beforeOutroMedia = $util.emptyObject;
28385
28397
 
28386
28398
  /**
28387
28399
  * ContentfulSleepcastRecipeCreated outroMedia.
28388
- * @member {Object.<string,contentful.IIdReference>} outroMedia
28400
+ * @member {Object.<string,contentful.IIdReferences>} outroMedia
28389
28401
  * @memberof ContentfulSleepcastRecipeCreated
28390
28402
  * @instance
28391
28403
  */
28392
28404
  ContentfulSleepcastRecipeCreated.prototype.outroMedia = $util.emptyObject;
28393
28405
 
28406
+ /**
28407
+ * ContentfulSleepcastRecipeCreated afterOutroMedia.
28408
+ * @member {Object.<string,contentful.IIdReferences>} afterOutroMedia
28409
+ * @memberof ContentfulSleepcastRecipeCreated
28410
+ * @instance
28411
+ */
28412
+ ContentfulSleepcastRecipeCreated.prototype.afterOutroMedia = $util.emptyObject;
28413
+
28394
28414
  /**
28395
28415
  * ContentfulSleepcastRecipeCreated createdAt.
28396
28416
  * @member {number|Long} createdAt
@@ -28427,38 +28447,48 @@ $root.ContentfulSleepcastRecipeCreated = (function() {
28427
28447
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
28428
28448
  if (message.generator != null && message.hasOwnProperty("generator"))
28429
28449
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.generator);
28430
- if (message.mainMedia != null && message.hasOwnProperty("mainMedia"))
28431
- for (var keys = Object.keys(message.mainMedia), i = 0; i < keys.length; ++i) {
28450
+ if (message.ambientMedia != null && message.hasOwnProperty("ambientMedia"))
28451
+ for (var keys = Object.keys(message.ambientMedia), i = 0; i < keys.length; ++i) {
28432
28452
  writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28433
- $root.contentful.IdReferences.encode(message.mainMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28453
+ $root.contentful.IdReference.encode(message.ambientMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28434
28454
  }
28435
- if (message.windDownMedia != null && message.hasOwnProperty("windDownMedia"))
28436
- for (var keys = Object.keys(message.windDownMedia), i = 0; i < keys.length; ++i) {
28455
+ if (message.beforeIntroMedia != null && message.hasOwnProperty("beforeIntroMedia"))
28456
+ for (var keys = Object.keys(message.beforeIntroMedia), i = 0; i < keys.length; ++i) {
28437
28457
  writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28438
- $root.contentful.IdReferences.encode(message.windDownMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28439
- }
28440
- if (message.soundBedMedia != null && message.hasOwnProperty("soundBedMedia"))
28441
- for (var keys = Object.keys(message.soundBedMedia), i = 0; i < keys.length; ++i) {
28442
- writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28443
- $root.contentful.IdReference.encode(message.soundBedMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28458
+ $root.contentful.IdReferences.encode(message.beforeIntroMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28444
28459
  }
28445
28460
  if (message.introMedia != null && message.hasOwnProperty("introMedia"))
28446
28461
  for (var keys = Object.keys(message.introMedia), i = 0; i < keys.length; ++i) {
28462
+ writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28463
+ $root.contentful.IdReferences.encode(message.introMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28464
+ }
28465
+ if (message.afterIntroMedia != null && message.hasOwnProperty("afterIntroMedia"))
28466
+ for (var keys = Object.keys(message.afterIntroMedia), i = 0; i < keys.length; ++i) {
28447
28467
  writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28448
- $root.contentful.IdReference.encode(message.introMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28468
+ $root.contentful.IdReferences.encode(message.afterIntroMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28449
28469
  }
28450
- if (message.leadInMedia != null && message.hasOwnProperty("leadInMedia"))
28451
- for (var keys = Object.keys(message.leadInMedia), i = 0; i < keys.length; ++i) {
28470
+ if (message.mainMedia != null && message.hasOwnProperty("mainMedia"))
28471
+ for (var keys = Object.keys(message.mainMedia), i = 0; i < keys.length; ++i) {
28452
28472
  writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28453
- $root.contentful.IdReference.encode(message.leadInMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28473
+ $root.contentful.IdReferences.encode(message.mainMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28474
+ }
28475
+ if (message.beforeOutroMedia != null && message.hasOwnProperty("beforeOutroMedia"))
28476
+ for (var keys = Object.keys(message.beforeOutroMedia), i = 0; i < keys.length; ++i) {
28477
+ writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28478
+ $root.contentful.IdReferences.encode(message.beforeOutroMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28454
28479
  }
28455
28480
  if (message.outroMedia != null && message.hasOwnProperty("outroMedia"))
28456
28481
  for (var keys = Object.keys(message.outroMedia), i = 0; i < keys.length; ++i) {
28457
- writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28458
- $root.contentful.IdReference.encode(message.outroMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28482
+ writer.uint32(/* id 9, wireType 2 =*/74).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28483
+ $root.contentful.IdReferences.encode(message.outroMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28484
+ }
28485
+ if (message.afterOutroMedia != null && message.hasOwnProperty("afterOutroMedia"))
28486
+ for (var keys = Object.keys(message.afterOutroMedia), i = 0; i < keys.length; ++i) {
28487
+ writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28488
+ $root.contentful.IdReferences.encode(message.afterOutroMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28459
28489
  }
28460
28490
  if (message.createdAt != null && message.hasOwnProperty("createdAt"))
28461
- writer.uint32(/* id 9, wireType 0 =*/72).uint64(message.createdAt);
28491
+ writer.uint32(/* id 11, wireType 0 =*/88).uint64(message.createdAt);
28462
28492
  return writer;
28463
28493
  };
28464
28494
 
@@ -28501,53 +28531,69 @@ $root.ContentfulSleepcastRecipeCreated = (function() {
28501
28531
  break;
28502
28532
  case 3:
28503
28533
  reader.skip().pos++;
28504
- if (message.mainMedia === $util.emptyObject)
28505
- message.mainMedia = {};
28534
+ if (message.ambientMedia === $util.emptyObject)
28535
+ message.ambientMedia = {};
28506
28536
  key = reader.string();
28507
28537
  reader.pos++;
28508
- message.mainMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
28538
+ message.ambientMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
28509
28539
  break;
28510
28540
  case 4:
28511
28541
  reader.skip().pos++;
28512
- if (message.windDownMedia === $util.emptyObject)
28513
- message.windDownMedia = {};
28542
+ if (message.beforeIntroMedia === $util.emptyObject)
28543
+ message.beforeIntroMedia = {};
28514
28544
  key = reader.string();
28515
28545
  reader.pos++;
28516
- message.windDownMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
28546
+ message.beforeIntroMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
28517
28547
  break;
28518
28548
  case 5:
28519
28549
  reader.skip().pos++;
28520
- if (message.soundBedMedia === $util.emptyObject)
28521
- message.soundBedMedia = {};
28550
+ if (message.introMedia === $util.emptyObject)
28551
+ message.introMedia = {};
28522
28552
  key = reader.string();
28523
28553
  reader.pos++;
28524
- message.soundBedMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
28554
+ message.introMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
28525
28555
  break;
28526
28556
  case 6:
28527
28557
  reader.skip().pos++;
28528
- if (message.introMedia === $util.emptyObject)
28529
- message.introMedia = {};
28558
+ if (message.afterIntroMedia === $util.emptyObject)
28559
+ message.afterIntroMedia = {};
28530
28560
  key = reader.string();
28531
28561
  reader.pos++;
28532
- message.introMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
28562
+ message.afterIntroMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
28533
28563
  break;
28534
28564
  case 7:
28535
28565
  reader.skip().pos++;
28536
- if (message.leadInMedia === $util.emptyObject)
28537
- message.leadInMedia = {};
28566
+ if (message.mainMedia === $util.emptyObject)
28567
+ message.mainMedia = {};
28538
28568
  key = reader.string();
28539
28569
  reader.pos++;
28540
- message.leadInMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
28570
+ message.mainMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
28541
28571
  break;
28542
28572
  case 8:
28573
+ reader.skip().pos++;
28574
+ if (message.beforeOutroMedia === $util.emptyObject)
28575
+ message.beforeOutroMedia = {};
28576
+ key = reader.string();
28577
+ reader.pos++;
28578
+ message.beforeOutroMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
28579
+ break;
28580
+ case 9:
28543
28581
  reader.skip().pos++;
28544
28582
  if (message.outroMedia === $util.emptyObject)
28545
28583
  message.outroMedia = {};
28546
28584
  key = reader.string();
28547
28585
  reader.pos++;
28548
- message.outroMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
28586
+ message.outroMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
28549
28587
  break;
28550
- case 9:
28588
+ case 10:
28589
+ reader.skip().pos++;
28590
+ if (message.afterOutroMedia === $util.emptyObject)
28591
+ message.afterOutroMedia = {};
28592
+ key = reader.string();
28593
+ reader.pos++;
28594
+ message.afterOutroMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
28595
+ break;
28596
+ case 11:
28551
28597
  message.createdAt = reader.uint64();
28552
28598
  break;
28553
28599
  default:
@@ -28591,34 +28637,24 @@ $root.ContentfulSleepcastRecipeCreated = (function() {
28591
28637
  if (message.generator != null && message.hasOwnProperty("generator"))
28592
28638
  if (!$util.isString(message.generator))
28593
28639
  return "generator: string expected";
28594
- if (message.mainMedia != null && message.hasOwnProperty("mainMedia")) {
28595
- if (!$util.isObject(message.mainMedia))
28596
- return "mainMedia: object expected";
28597
- var key = Object.keys(message.mainMedia);
28598
- for (var i = 0; i < key.length; ++i) {
28599
- var error = $root.contentful.IdReferences.verify(message.mainMedia[key[i]]);
28600
- if (error)
28601
- return "mainMedia." + error;
28602
- }
28603
- }
28604
- if (message.windDownMedia != null && message.hasOwnProperty("windDownMedia")) {
28605
- if (!$util.isObject(message.windDownMedia))
28606
- return "windDownMedia: object expected";
28607
- var key = Object.keys(message.windDownMedia);
28640
+ if (message.ambientMedia != null && message.hasOwnProperty("ambientMedia")) {
28641
+ if (!$util.isObject(message.ambientMedia))
28642
+ return "ambientMedia: object expected";
28643
+ var key = Object.keys(message.ambientMedia);
28608
28644
  for (var i = 0; i < key.length; ++i) {
28609
- var error = $root.contentful.IdReferences.verify(message.windDownMedia[key[i]]);
28645
+ var error = $root.contentful.IdReference.verify(message.ambientMedia[key[i]]);
28610
28646
  if (error)
28611
- return "windDownMedia." + error;
28647
+ return "ambientMedia." + error;
28612
28648
  }
28613
28649
  }
28614
- if (message.soundBedMedia != null && message.hasOwnProperty("soundBedMedia")) {
28615
- if (!$util.isObject(message.soundBedMedia))
28616
- return "soundBedMedia: object expected";
28617
- var key = Object.keys(message.soundBedMedia);
28650
+ if (message.beforeIntroMedia != null && message.hasOwnProperty("beforeIntroMedia")) {
28651
+ if (!$util.isObject(message.beforeIntroMedia))
28652
+ return "beforeIntroMedia: object expected";
28653
+ var key = Object.keys(message.beforeIntroMedia);
28618
28654
  for (var i = 0; i < key.length; ++i) {
28619
- var error = $root.contentful.IdReference.verify(message.soundBedMedia[key[i]]);
28655
+ var error = $root.contentful.IdReferences.verify(message.beforeIntroMedia[key[i]]);
28620
28656
  if (error)
28621
- return "soundBedMedia." + error;
28657
+ return "beforeIntroMedia." + error;
28622
28658
  }
28623
28659
  }
28624
28660
  if (message.introMedia != null && message.hasOwnProperty("introMedia")) {
@@ -28626,19 +28662,39 @@ $root.ContentfulSleepcastRecipeCreated = (function() {
28626
28662
  return "introMedia: object expected";
28627
28663
  var key = Object.keys(message.introMedia);
28628
28664
  for (var i = 0; i < key.length; ++i) {
28629
- var error = $root.contentful.IdReference.verify(message.introMedia[key[i]]);
28665
+ var error = $root.contentful.IdReferences.verify(message.introMedia[key[i]]);
28630
28666
  if (error)
28631
28667
  return "introMedia." + error;
28632
28668
  }
28633
28669
  }
28634
- if (message.leadInMedia != null && message.hasOwnProperty("leadInMedia")) {
28635
- if (!$util.isObject(message.leadInMedia))
28636
- return "leadInMedia: object expected";
28637
- var key = Object.keys(message.leadInMedia);
28670
+ if (message.afterIntroMedia != null && message.hasOwnProperty("afterIntroMedia")) {
28671
+ if (!$util.isObject(message.afterIntroMedia))
28672
+ return "afterIntroMedia: object expected";
28673
+ var key = Object.keys(message.afterIntroMedia);
28638
28674
  for (var i = 0; i < key.length; ++i) {
28639
- var error = $root.contentful.IdReference.verify(message.leadInMedia[key[i]]);
28675
+ var error = $root.contentful.IdReferences.verify(message.afterIntroMedia[key[i]]);
28640
28676
  if (error)
28641
- return "leadInMedia." + error;
28677
+ return "afterIntroMedia." + error;
28678
+ }
28679
+ }
28680
+ if (message.mainMedia != null && message.hasOwnProperty("mainMedia")) {
28681
+ if (!$util.isObject(message.mainMedia))
28682
+ return "mainMedia: object expected";
28683
+ var key = Object.keys(message.mainMedia);
28684
+ for (var i = 0; i < key.length; ++i) {
28685
+ var error = $root.contentful.IdReferences.verify(message.mainMedia[key[i]]);
28686
+ if (error)
28687
+ return "mainMedia." + error;
28688
+ }
28689
+ }
28690
+ if (message.beforeOutroMedia != null && message.hasOwnProperty("beforeOutroMedia")) {
28691
+ if (!$util.isObject(message.beforeOutroMedia))
28692
+ return "beforeOutroMedia: object expected";
28693
+ var key = Object.keys(message.beforeOutroMedia);
28694
+ for (var i = 0; i < key.length; ++i) {
28695
+ var error = $root.contentful.IdReferences.verify(message.beforeOutroMedia[key[i]]);
28696
+ if (error)
28697
+ return "beforeOutroMedia." + error;
28642
28698
  }
28643
28699
  }
28644
28700
  if (message.outroMedia != null && message.hasOwnProperty("outroMedia")) {
@@ -28646,11 +28702,21 @@ $root.ContentfulSleepcastRecipeCreated = (function() {
28646
28702
  return "outroMedia: object expected";
28647
28703
  var key = Object.keys(message.outroMedia);
28648
28704
  for (var i = 0; i < key.length; ++i) {
28649
- var error = $root.contentful.IdReference.verify(message.outroMedia[key[i]]);
28705
+ var error = $root.contentful.IdReferences.verify(message.outroMedia[key[i]]);
28650
28706
  if (error)
28651
28707
  return "outroMedia." + error;
28652
28708
  }
28653
28709
  }
28710
+ if (message.afterOutroMedia != null && message.hasOwnProperty("afterOutroMedia")) {
28711
+ if (!$util.isObject(message.afterOutroMedia))
28712
+ return "afterOutroMedia: object expected";
28713
+ var key = Object.keys(message.afterOutroMedia);
28714
+ for (var i = 0; i < key.length; ++i) {
28715
+ var error = $root.contentful.IdReferences.verify(message.afterOutroMedia[key[i]]);
28716
+ if (error)
28717
+ return "afterOutroMedia." + error;
28718
+ }
28719
+ }
28654
28720
  if (message.createdAt != null && message.hasOwnProperty("createdAt"))
28655
28721
  if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
28656
28722
  return "createdAt: integer|Long expected";
@@ -28673,34 +28739,24 @@ $root.ContentfulSleepcastRecipeCreated = (function() {
28673
28739
  message.slug = String(object.slug);
28674
28740
  if (object.generator != null)
28675
28741
  message.generator = String(object.generator);
28676
- if (object.mainMedia) {
28677
- if (typeof object.mainMedia !== "object")
28678
- throw TypeError(".ContentfulSleepcastRecipeCreated.mainMedia: object expected");
28679
- message.mainMedia = {};
28680
- for (var keys = Object.keys(object.mainMedia), i = 0; i < keys.length; ++i) {
28681
- if (typeof object.mainMedia[keys[i]] !== "object")
28682
- throw TypeError(".ContentfulSleepcastRecipeCreated.mainMedia: object expected");
28683
- message.mainMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.mainMedia[keys[i]]);
28684
- }
28685
- }
28686
- if (object.windDownMedia) {
28687
- if (typeof object.windDownMedia !== "object")
28688
- throw TypeError(".ContentfulSleepcastRecipeCreated.windDownMedia: object expected");
28689
- message.windDownMedia = {};
28690
- for (var keys = Object.keys(object.windDownMedia), i = 0; i < keys.length; ++i) {
28691
- if (typeof object.windDownMedia[keys[i]] !== "object")
28692
- throw TypeError(".ContentfulSleepcastRecipeCreated.windDownMedia: object expected");
28693
- message.windDownMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.windDownMedia[keys[i]]);
28694
- }
28695
- }
28696
- if (object.soundBedMedia) {
28697
- if (typeof object.soundBedMedia !== "object")
28698
- throw TypeError(".ContentfulSleepcastRecipeCreated.soundBedMedia: object expected");
28699
- message.soundBedMedia = {};
28700
- for (var keys = Object.keys(object.soundBedMedia), i = 0; i < keys.length; ++i) {
28701
- if (typeof object.soundBedMedia[keys[i]] !== "object")
28702
- throw TypeError(".ContentfulSleepcastRecipeCreated.soundBedMedia: object expected");
28703
- message.soundBedMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.soundBedMedia[keys[i]]);
28742
+ if (object.ambientMedia) {
28743
+ if (typeof object.ambientMedia !== "object")
28744
+ throw TypeError(".ContentfulSleepcastRecipeCreated.ambientMedia: object expected");
28745
+ message.ambientMedia = {};
28746
+ for (var keys = Object.keys(object.ambientMedia), i = 0; i < keys.length; ++i) {
28747
+ if (typeof object.ambientMedia[keys[i]] !== "object")
28748
+ throw TypeError(".ContentfulSleepcastRecipeCreated.ambientMedia: object expected");
28749
+ message.ambientMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.ambientMedia[keys[i]]);
28750
+ }
28751
+ }
28752
+ if (object.beforeIntroMedia) {
28753
+ if (typeof object.beforeIntroMedia !== "object")
28754
+ throw TypeError(".ContentfulSleepcastRecipeCreated.beforeIntroMedia: object expected");
28755
+ message.beforeIntroMedia = {};
28756
+ for (var keys = Object.keys(object.beforeIntroMedia), i = 0; i < keys.length; ++i) {
28757
+ if (typeof object.beforeIntroMedia[keys[i]] !== "object")
28758
+ throw TypeError(".ContentfulSleepcastRecipeCreated.beforeIntroMedia: object expected");
28759
+ message.beforeIntroMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.beforeIntroMedia[keys[i]]);
28704
28760
  }
28705
28761
  }
28706
28762
  if (object.introMedia) {
@@ -28710,17 +28766,37 @@ $root.ContentfulSleepcastRecipeCreated = (function() {
28710
28766
  for (var keys = Object.keys(object.introMedia), i = 0; i < keys.length; ++i) {
28711
28767
  if (typeof object.introMedia[keys[i]] !== "object")
28712
28768
  throw TypeError(".ContentfulSleepcastRecipeCreated.introMedia: object expected");
28713
- message.introMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.introMedia[keys[i]]);
28769
+ message.introMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.introMedia[keys[i]]);
28770
+ }
28771
+ }
28772
+ if (object.afterIntroMedia) {
28773
+ if (typeof object.afterIntroMedia !== "object")
28774
+ throw TypeError(".ContentfulSleepcastRecipeCreated.afterIntroMedia: object expected");
28775
+ message.afterIntroMedia = {};
28776
+ for (var keys = Object.keys(object.afterIntroMedia), i = 0; i < keys.length; ++i) {
28777
+ if (typeof object.afterIntroMedia[keys[i]] !== "object")
28778
+ throw TypeError(".ContentfulSleepcastRecipeCreated.afterIntroMedia: object expected");
28779
+ message.afterIntroMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.afterIntroMedia[keys[i]]);
28780
+ }
28781
+ }
28782
+ if (object.mainMedia) {
28783
+ if (typeof object.mainMedia !== "object")
28784
+ throw TypeError(".ContentfulSleepcastRecipeCreated.mainMedia: object expected");
28785
+ message.mainMedia = {};
28786
+ for (var keys = Object.keys(object.mainMedia), i = 0; i < keys.length; ++i) {
28787
+ if (typeof object.mainMedia[keys[i]] !== "object")
28788
+ throw TypeError(".ContentfulSleepcastRecipeCreated.mainMedia: object expected");
28789
+ message.mainMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.mainMedia[keys[i]]);
28714
28790
  }
28715
28791
  }
28716
- if (object.leadInMedia) {
28717
- if (typeof object.leadInMedia !== "object")
28718
- throw TypeError(".ContentfulSleepcastRecipeCreated.leadInMedia: object expected");
28719
- message.leadInMedia = {};
28720
- for (var keys = Object.keys(object.leadInMedia), i = 0; i < keys.length; ++i) {
28721
- if (typeof object.leadInMedia[keys[i]] !== "object")
28722
- throw TypeError(".ContentfulSleepcastRecipeCreated.leadInMedia: object expected");
28723
- message.leadInMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.leadInMedia[keys[i]]);
28792
+ if (object.beforeOutroMedia) {
28793
+ if (typeof object.beforeOutroMedia !== "object")
28794
+ throw TypeError(".ContentfulSleepcastRecipeCreated.beforeOutroMedia: object expected");
28795
+ message.beforeOutroMedia = {};
28796
+ for (var keys = Object.keys(object.beforeOutroMedia), i = 0; i < keys.length; ++i) {
28797
+ if (typeof object.beforeOutroMedia[keys[i]] !== "object")
28798
+ throw TypeError(".ContentfulSleepcastRecipeCreated.beforeOutroMedia: object expected");
28799
+ message.beforeOutroMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.beforeOutroMedia[keys[i]]);
28724
28800
  }
28725
28801
  }
28726
28802
  if (object.outroMedia) {
@@ -28730,7 +28806,17 @@ $root.ContentfulSleepcastRecipeCreated = (function() {
28730
28806
  for (var keys = Object.keys(object.outroMedia), i = 0; i < keys.length; ++i) {
28731
28807
  if (typeof object.outroMedia[keys[i]] !== "object")
28732
28808
  throw TypeError(".ContentfulSleepcastRecipeCreated.outroMedia: object expected");
28733
- message.outroMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.outroMedia[keys[i]]);
28809
+ message.outroMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.outroMedia[keys[i]]);
28810
+ }
28811
+ }
28812
+ if (object.afterOutroMedia) {
28813
+ if (typeof object.afterOutroMedia !== "object")
28814
+ throw TypeError(".ContentfulSleepcastRecipeCreated.afterOutroMedia: object expected");
28815
+ message.afterOutroMedia = {};
28816
+ for (var keys = Object.keys(object.afterOutroMedia), i = 0; i < keys.length; ++i) {
28817
+ if (typeof object.afterOutroMedia[keys[i]] !== "object")
28818
+ throw TypeError(".ContentfulSleepcastRecipeCreated.afterOutroMedia: object expected");
28819
+ message.afterOutroMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.afterOutroMedia[keys[i]]);
28734
28820
  }
28735
28821
  }
28736
28822
  if (object.createdAt != null)
@@ -28759,12 +28845,14 @@ $root.ContentfulSleepcastRecipeCreated = (function() {
28759
28845
  options = {};
28760
28846
  var object = {};
28761
28847
  if (options.objects || options.defaults) {
28762
- object.mainMedia = {};
28763
- object.windDownMedia = {};
28764
- object.soundBedMedia = {};
28848
+ object.ambientMedia = {};
28849
+ object.beforeIntroMedia = {};
28765
28850
  object.introMedia = {};
28766
- object.leadInMedia = {};
28851
+ object.afterIntroMedia = {};
28852
+ object.mainMedia = {};
28853
+ object.beforeOutroMedia = {};
28767
28854
  object.outroMedia = {};
28855
+ object.afterOutroMedia = {};
28768
28856
  }
28769
28857
  if (options.defaults) {
28770
28858
  object.slug = "";
@@ -28780,35 +28868,45 @@ $root.ContentfulSleepcastRecipeCreated = (function() {
28780
28868
  if (message.generator != null && message.hasOwnProperty("generator"))
28781
28869
  object.generator = message.generator;
28782
28870
  var keys2;
28783
- if (message.mainMedia && (keys2 = Object.keys(message.mainMedia)).length) {
28784
- object.mainMedia = {};
28871
+ if (message.ambientMedia && (keys2 = Object.keys(message.ambientMedia)).length) {
28872
+ object.ambientMedia = {};
28785
28873
  for (var j = 0; j < keys2.length; ++j)
28786
- object.mainMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.mainMedia[keys2[j]], options);
28787
- }
28788
- if (message.windDownMedia && (keys2 = Object.keys(message.windDownMedia)).length) {
28789
- object.windDownMedia = {};
28790
- for (var j = 0; j < keys2.length; ++j)
28791
- object.windDownMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.windDownMedia[keys2[j]], options);
28874
+ object.ambientMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.ambientMedia[keys2[j]], options);
28792
28875
  }
28793
- if (message.soundBedMedia && (keys2 = Object.keys(message.soundBedMedia)).length) {
28794
- object.soundBedMedia = {};
28876
+ if (message.beforeIntroMedia && (keys2 = Object.keys(message.beforeIntroMedia)).length) {
28877
+ object.beforeIntroMedia = {};
28795
28878
  for (var j = 0; j < keys2.length; ++j)
28796
- object.soundBedMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.soundBedMedia[keys2[j]], options);
28879
+ object.beforeIntroMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.beforeIntroMedia[keys2[j]], options);
28797
28880
  }
28798
28881
  if (message.introMedia && (keys2 = Object.keys(message.introMedia)).length) {
28799
28882
  object.introMedia = {};
28800
28883
  for (var j = 0; j < keys2.length; ++j)
28801
- object.introMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.introMedia[keys2[j]], options);
28884
+ object.introMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.introMedia[keys2[j]], options);
28885
+ }
28886
+ if (message.afterIntroMedia && (keys2 = Object.keys(message.afterIntroMedia)).length) {
28887
+ object.afterIntroMedia = {};
28888
+ for (var j = 0; j < keys2.length; ++j)
28889
+ object.afterIntroMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.afterIntroMedia[keys2[j]], options);
28890
+ }
28891
+ if (message.mainMedia && (keys2 = Object.keys(message.mainMedia)).length) {
28892
+ object.mainMedia = {};
28893
+ for (var j = 0; j < keys2.length; ++j)
28894
+ object.mainMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.mainMedia[keys2[j]], options);
28802
28895
  }
28803
- if (message.leadInMedia && (keys2 = Object.keys(message.leadInMedia)).length) {
28804
- object.leadInMedia = {};
28896
+ if (message.beforeOutroMedia && (keys2 = Object.keys(message.beforeOutroMedia)).length) {
28897
+ object.beforeOutroMedia = {};
28805
28898
  for (var j = 0; j < keys2.length; ++j)
28806
- object.leadInMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.leadInMedia[keys2[j]], options);
28899
+ object.beforeOutroMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.beforeOutroMedia[keys2[j]], options);
28807
28900
  }
28808
28901
  if (message.outroMedia && (keys2 = Object.keys(message.outroMedia)).length) {
28809
28902
  object.outroMedia = {};
28810
28903
  for (var j = 0; j < keys2.length; ++j)
28811
- object.outroMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.outroMedia[keys2[j]], options);
28904
+ object.outroMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.outroMedia[keys2[j]], options);
28905
+ }
28906
+ if (message.afterOutroMedia && (keys2 = Object.keys(message.afterOutroMedia)).length) {
28907
+ object.afterOutroMedia = {};
28908
+ for (var j = 0; j < keys2.length; ++j)
28909
+ object.afterOutroMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.afterOutroMedia[keys2[j]], options);
28812
28910
  }
28813
28911
  if (message.createdAt != null && message.hasOwnProperty("createdAt"))
28814
28912
  if (typeof message.createdAt === "number")
@@ -28840,12 +28938,14 @@ $root.ContentfulSleepcastRecipeUpdated = (function() {
28840
28938
  * @interface IContentfulSleepcastRecipeUpdated
28841
28939
  * @property {string|null} [slug] ContentfulSleepcastRecipeUpdated slug
28842
28940
  * @property {string|null} [generator] ContentfulSleepcastRecipeUpdated generator
28941
+ * @property {Object.<string,contentful.IIdReference>|null} [ambientMedia] ContentfulSleepcastRecipeUpdated ambientMedia
28942
+ * @property {Object.<string,contentful.IIdReferences>|null} [beforeIntroMedia] ContentfulSleepcastRecipeUpdated beforeIntroMedia
28943
+ * @property {Object.<string,contentful.IIdReferences>|null} [introMedia] ContentfulSleepcastRecipeUpdated introMedia
28944
+ * @property {Object.<string,contentful.IIdReferences>|null} [afterIntroMedia] ContentfulSleepcastRecipeUpdated afterIntroMedia
28843
28945
  * @property {Object.<string,contentful.IIdReferences>|null} [mainMedia] ContentfulSleepcastRecipeUpdated mainMedia
28844
- * @property {Object.<string,contentful.IIdReferences>|null} [windDownMedia] ContentfulSleepcastRecipeUpdated windDownMedia
28845
- * @property {Object.<string,contentful.IIdReference>|null} [soundBedMedia] ContentfulSleepcastRecipeUpdated soundBedMedia
28846
- * @property {Object.<string,contentful.IIdReference>|null} [introMedia] ContentfulSleepcastRecipeUpdated introMedia
28847
- * @property {Object.<string,contentful.IIdReference>|null} [leadInMedia] ContentfulSleepcastRecipeUpdated leadInMedia
28848
- * @property {Object.<string,contentful.IIdReference>|null} [outroMedia] ContentfulSleepcastRecipeUpdated outroMedia
28946
+ * @property {Object.<string,contentful.IIdReferences>|null} [beforeOutroMedia] ContentfulSleepcastRecipeUpdated beforeOutroMedia
28947
+ * @property {Object.<string,contentful.IIdReferences>|null} [outroMedia] ContentfulSleepcastRecipeUpdated outroMedia
28948
+ * @property {Object.<string,contentful.IIdReferences>|null} [afterOutroMedia] ContentfulSleepcastRecipeUpdated afterOutroMedia
28849
28949
  * @property {number|Long|null} [updatedAt] ContentfulSleepcastRecipeUpdated updatedAt
28850
28950
  */
28851
28951
 
@@ -28858,12 +28958,14 @@ $root.ContentfulSleepcastRecipeUpdated = (function() {
28858
28958
  * @param {IContentfulSleepcastRecipeUpdated=} [properties] Properties to set
28859
28959
  */
28860
28960
  function ContentfulSleepcastRecipeUpdated(properties) {
28861
- this.mainMedia = {};
28862
- this.windDownMedia = {};
28863
- this.soundBedMedia = {};
28961
+ this.ambientMedia = {};
28962
+ this.beforeIntroMedia = {};
28864
28963
  this.introMedia = {};
28865
- this.leadInMedia = {};
28964
+ this.afterIntroMedia = {};
28965
+ this.mainMedia = {};
28966
+ this.beforeOutroMedia = {};
28866
28967
  this.outroMedia = {};
28968
+ this.afterOutroMedia = {};
28867
28969
  if (properties)
28868
28970
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
28869
28971
  if (properties[keys[i]] != null)
@@ -28887,53 +28989,69 @@ $root.ContentfulSleepcastRecipeUpdated = (function() {
28887
28989
  ContentfulSleepcastRecipeUpdated.prototype.generator = "";
28888
28990
 
28889
28991
  /**
28890
- * ContentfulSleepcastRecipeUpdated mainMedia.
28891
- * @member {Object.<string,contentful.IIdReferences>} mainMedia
28992
+ * ContentfulSleepcastRecipeUpdated ambientMedia.
28993
+ * @member {Object.<string,contentful.IIdReference>} ambientMedia
28892
28994
  * @memberof ContentfulSleepcastRecipeUpdated
28893
28995
  * @instance
28894
28996
  */
28895
- ContentfulSleepcastRecipeUpdated.prototype.mainMedia = $util.emptyObject;
28997
+ ContentfulSleepcastRecipeUpdated.prototype.ambientMedia = $util.emptyObject;
28896
28998
 
28897
28999
  /**
28898
- * ContentfulSleepcastRecipeUpdated windDownMedia.
28899
- * @member {Object.<string,contentful.IIdReferences>} windDownMedia
29000
+ * ContentfulSleepcastRecipeUpdated beforeIntroMedia.
29001
+ * @member {Object.<string,contentful.IIdReferences>} beforeIntroMedia
28900
29002
  * @memberof ContentfulSleepcastRecipeUpdated
28901
29003
  * @instance
28902
29004
  */
28903
- ContentfulSleepcastRecipeUpdated.prototype.windDownMedia = $util.emptyObject;
29005
+ ContentfulSleepcastRecipeUpdated.prototype.beforeIntroMedia = $util.emptyObject;
28904
29006
 
28905
29007
  /**
28906
- * ContentfulSleepcastRecipeUpdated soundBedMedia.
28907
- * @member {Object.<string,contentful.IIdReference>} soundBedMedia
29008
+ * ContentfulSleepcastRecipeUpdated introMedia.
29009
+ * @member {Object.<string,contentful.IIdReferences>} introMedia
28908
29010
  * @memberof ContentfulSleepcastRecipeUpdated
28909
29011
  * @instance
28910
29012
  */
28911
- ContentfulSleepcastRecipeUpdated.prototype.soundBedMedia = $util.emptyObject;
29013
+ ContentfulSleepcastRecipeUpdated.prototype.introMedia = $util.emptyObject;
28912
29014
 
28913
29015
  /**
28914
- * ContentfulSleepcastRecipeUpdated introMedia.
28915
- * @member {Object.<string,contentful.IIdReference>} introMedia
29016
+ * ContentfulSleepcastRecipeUpdated afterIntroMedia.
29017
+ * @member {Object.<string,contentful.IIdReferences>} afterIntroMedia
28916
29018
  * @memberof ContentfulSleepcastRecipeUpdated
28917
29019
  * @instance
28918
29020
  */
28919
- ContentfulSleepcastRecipeUpdated.prototype.introMedia = $util.emptyObject;
29021
+ ContentfulSleepcastRecipeUpdated.prototype.afterIntroMedia = $util.emptyObject;
29022
+
29023
+ /**
29024
+ * ContentfulSleepcastRecipeUpdated mainMedia.
29025
+ * @member {Object.<string,contentful.IIdReferences>} mainMedia
29026
+ * @memberof ContentfulSleepcastRecipeUpdated
29027
+ * @instance
29028
+ */
29029
+ ContentfulSleepcastRecipeUpdated.prototype.mainMedia = $util.emptyObject;
28920
29030
 
28921
29031
  /**
28922
- * ContentfulSleepcastRecipeUpdated leadInMedia.
28923
- * @member {Object.<string,contentful.IIdReference>} leadInMedia
29032
+ * ContentfulSleepcastRecipeUpdated beforeOutroMedia.
29033
+ * @member {Object.<string,contentful.IIdReferences>} beforeOutroMedia
28924
29034
  * @memberof ContentfulSleepcastRecipeUpdated
28925
29035
  * @instance
28926
29036
  */
28927
- ContentfulSleepcastRecipeUpdated.prototype.leadInMedia = $util.emptyObject;
29037
+ ContentfulSleepcastRecipeUpdated.prototype.beforeOutroMedia = $util.emptyObject;
28928
29038
 
28929
29039
  /**
28930
29040
  * ContentfulSleepcastRecipeUpdated outroMedia.
28931
- * @member {Object.<string,contentful.IIdReference>} outroMedia
29041
+ * @member {Object.<string,contentful.IIdReferences>} outroMedia
28932
29042
  * @memberof ContentfulSleepcastRecipeUpdated
28933
29043
  * @instance
28934
29044
  */
28935
29045
  ContentfulSleepcastRecipeUpdated.prototype.outroMedia = $util.emptyObject;
28936
29046
 
29047
+ /**
29048
+ * ContentfulSleepcastRecipeUpdated afterOutroMedia.
29049
+ * @member {Object.<string,contentful.IIdReferences>} afterOutroMedia
29050
+ * @memberof ContentfulSleepcastRecipeUpdated
29051
+ * @instance
29052
+ */
29053
+ ContentfulSleepcastRecipeUpdated.prototype.afterOutroMedia = $util.emptyObject;
29054
+
28937
29055
  /**
28938
29056
  * ContentfulSleepcastRecipeUpdated updatedAt.
28939
29057
  * @member {number|Long} updatedAt
@@ -28970,38 +29088,48 @@ $root.ContentfulSleepcastRecipeUpdated = (function() {
28970
29088
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
28971
29089
  if (message.generator != null && message.hasOwnProperty("generator"))
28972
29090
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.generator);
28973
- if (message.mainMedia != null && message.hasOwnProperty("mainMedia"))
28974
- for (var keys = Object.keys(message.mainMedia), i = 0; i < keys.length; ++i) {
29091
+ if (message.ambientMedia != null && message.hasOwnProperty("ambientMedia"))
29092
+ for (var keys = Object.keys(message.ambientMedia), i = 0; i < keys.length; ++i) {
28975
29093
  writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28976
- $root.contentful.IdReferences.encode(message.mainMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
29094
+ $root.contentful.IdReference.encode(message.ambientMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28977
29095
  }
28978
- if (message.windDownMedia != null && message.hasOwnProperty("windDownMedia"))
28979
- for (var keys = Object.keys(message.windDownMedia), i = 0; i < keys.length; ++i) {
29096
+ if (message.beforeIntroMedia != null && message.hasOwnProperty("beforeIntroMedia"))
29097
+ for (var keys = Object.keys(message.beforeIntroMedia), i = 0; i < keys.length; ++i) {
28980
29098
  writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28981
- $root.contentful.IdReferences.encode(message.windDownMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28982
- }
28983
- if (message.soundBedMedia != null && message.hasOwnProperty("soundBedMedia"))
28984
- for (var keys = Object.keys(message.soundBedMedia), i = 0; i < keys.length; ++i) {
28985
- writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28986
- $root.contentful.IdReference.encode(message.soundBedMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
29099
+ $root.contentful.IdReferences.encode(message.beforeIntroMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28987
29100
  }
28988
29101
  if (message.introMedia != null && message.hasOwnProperty("introMedia"))
28989
29102
  for (var keys = Object.keys(message.introMedia), i = 0; i < keys.length; ++i) {
29103
+ writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
29104
+ $root.contentful.IdReferences.encode(message.introMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
29105
+ }
29106
+ if (message.afterIntroMedia != null && message.hasOwnProperty("afterIntroMedia"))
29107
+ for (var keys = Object.keys(message.afterIntroMedia), i = 0; i < keys.length; ++i) {
28990
29108
  writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28991
- $root.contentful.IdReference.encode(message.introMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
29109
+ $root.contentful.IdReferences.encode(message.afterIntroMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28992
29110
  }
28993
- if (message.leadInMedia != null && message.hasOwnProperty("leadInMedia"))
28994
- for (var keys = Object.keys(message.leadInMedia), i = 0; i < keys.length; ++i) {
29111
+ if (message.mainMedia != null && message.hasOwnProperty("mainMedia"))
29112
+ for (var keys = Object.keys(message.mainMedia), i = 0; i < keys.length; ++i) {
28995
29113
  writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28996
- $root.contentful.IdReference.encode(message.leadInMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
29114
+ $root.contentful.IdReferences.encode(message.mainMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
29115
+ }
29116
+ if (message.beforeOutroMedia != null && message.hasOwnProperty("beforeOutroMedia"))
29117
+ for (var keys = Object.keys(message.beforeOutroMedia), i = 0; i < keys.length; ++i) {
29118
+ writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
29119
+ $root.contentful.IdReferences.encode(message.beforeOutroMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28997
29120
  }
28998
29121
  if (message.outroMedia != null && message.hasOwnProperty("outroMedia"))
28999
29122
  for (var keys = Object.keys(message.outroMedia), i = 0; i < keys.length; ++i) {
29000
- writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
29001
- $root.contentful.IdReference.encode(message.outroMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
29123
+ writer.uint32(/* id 9, wireType 2 =*/74).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
29124
+ $root.contentful.IdReferences.encode(message.outroMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
29125
+ }
29126
+ if (message.afterOutroMedia != null && message.hasOwnProperty("afterOutroMedia"))
29127
+ for (var keys = Object.keys(message.afterOutroMedia), i = 0; i < keys.length; ++i) {
29128
+ writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
29129
+ $root.contentful.IdReferences.encode(message.afterOutroMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
29002
29130
  }
29003
29131
  if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
29004
- writer.uint32(/* id 9, wireType 0 =*/72).uint64(message.updatedAt);
29132
+ writer.uint32(/* id 11, wireType 0 =*/88).uint64(message.updatedAt);
29005
29133
  return writer;
29006
29134
  };
29007
29135
 
@@ -29044,53 +29172,69 @@ $root.ContentfulSleepcastRecipeUpdated = (function() {
29044
29172
  break;
29045
29173
  case 3:
29046
29174
  reader.skip().pos++;
29047
- if (message.mainMedia === $util.emptyObject)
29048
- message.mainMedia = {};
29175
+ if (message.ambientMedia === $util.emptyObject)
29176
+ message.ambientMedia = {};
29049
29177
  key = reader.string();
29050
29178
  reader.pos++;
29051
- message.mainMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
29179
+ message.ambientMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
29052
29180
  break;
29053
29181
  case 4:
29054
29182
  reader.skip().pos++;
29055
- if (message.windDownMedia === $util.emptyObject)
29056
- message.windDownMedia = {};
29183
+ if (message.beforeIntroMedia === $util.emptyObject)
29184
+ message.beforeIntroMedia = {};
29057
29185
  key = reader.string();
29058
29186
  reader.pos++;
29059
- message.windDownMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
29187
+ message.beforeIntroMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
29060
29188
  break;
29061
29189
  case 5:
29062
29190
  reader.skip().pos++;
29063
- if (message.soundBedMedia === $util.emptyObject)
29064
- message.soundBedMedia = {};
29191
+ if (message.introMedia === $util.emptyObject)
29192
+ message.introMedia = {};
29065
29193
  key = reader.string();
29066
29194
  reader.pos++;
29067
- message.soundBedMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
29195
+ message.introMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
29068
29196
  break;
29069
29197
  case 6:
29070
29198
  reader.skip().pos++;
29071
- if (message.introMedia === $util.emptyObject)
29072
- message.introMedia = {};
29199
+ if (message.afterIntroMedia === $util.emptyObject)
29200
+ message.afterIntroMedia = {};
29073
29201
  key = reader.string();
29074
29202
  reader.pos++;
29075
- message.introMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
29203
+ message.afterIntroMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
29076
29204
  break;
29077
29205
  case 7:
29078
29206
  reader.skip().pos++;
29079
- if (message.leadInMedia === $util.emptyObject)
29080
- message.leadInMedia = {};
29207
+ if (message.mainMedia === $util.emptyObject)
29208
+ message.mainMedia = {};
29081
29209
  key = reader.string();
29082
29210
  reader.pos++;
29083
- message.leadInMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
29211
+ message.mainMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
29084
29212
  break;
29085
29213
  case 8:
29214
+ reader.skip().pos++;
29215
+ if (message.beforeOutroMedia === $util.emptyObject)
29216
+ message.beforeOutroMedia = {};
29217
+ key = reader.string();
29218
+ reader.pos++;
29219
+ message.beforeOutroMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
29220
+ break;
29221
+ case 9:
29086
29222
  reader.skip().pos++;
29087
29223
  if (message.outroMedia === $util.emptyObject)
29088
29224
  message.outroMedia = {};
29089
29225
  key = reader.string();
29090
29226
  reader.pos++;
29091
- message.outroMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
29227
+ message.outroMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
29092
29228
  break;
29093
- case 9:
29229
+ case 10:
29230
+ reader.skip().pos++;
29231
+ if (message.afterOutroMedia === $util.emptyObject)
29232
+ message.afterOutroMedia = {};
29233
+ key = reader.string();
29234
+ reader.pos++;
29235
+ message.afterOutroMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
29236
+ break;
29237
+ case 11:
29094
29238
  message.updatedAt = reader.uint64();
29095
29239
  break;
29096
29240
  default:
@@ -29134,34 +29278,24 @@ $root.ContentfulSleepcastRecipeUpdated = (function() {
29134
29278
  if (message.generator != null && message.hasOwnProperty("generator"))
29135
29279
  if (!$util.isString(message.generator))
29136
29280
  return "generator: string expected";
29137
- if (message.mainMedia != null && message.hasOwnProperty("mainMedia")) {
29138
- if (!$util.isObject(message.mainMedia))
29139
- return "mainMedia: object expected";
29140
- var key = Object.keys(message.mainMedia);
29141
- for (var i = 0; i < key.length; ++i) {
29142
- var error = $root.contentful.IdReferences.verify(message.mainMedia[key[i]]);
29143
- if (error)
29144
- return "mainMedia." + error;
29145
- }
29146
- }
29147
- if (message.windDownMedia != null && message.hasOwnProperty("windDownMedia")) {
29148
- if (!$util.isObject(message.windDownMedia))
29149
- return "windDownMedia: object expected";
29150
- var key = Object.keys(message.windDownMedia);
29281
+ if (message.ambientMedia != null && message.hasOwnProperty("ambientMedia")) {
29282
+ if (!$util.isObject(message.ambientMedia))
29283
+ return "ambientMedia: object expected";
29284
+ var key = Object.keys(message.ambientMedia);
29151
29285
  for (var i = 0; i < key.length; ++i) {
29152
- var error = $root.contentful.IdReferences.verify(message.windDownMedia[key[i]]);
29286
+ var error = $root.contentful.IdReference.verify(message.ambientMedia[key[i]]);
29153
29287
  if (error)
29154
- return "windDownMedia." + error;
29288
+ return "ambientMedia." + error;
29155
29289
  }
29156
29290
  }
29157
- if (message.soundBedMedia != null && message.hasOwnProperty("soundBedMedia")) {
29158
- if (!$util.isObject(message.soundBedMedia))
29159
- return "soundBedMedia: object expected";
29160
- var key = Object.keys(message.soundBedMedia);
29291
+ if (message.beforeIntroMedia != null && message.hasOwnProperty("beforeIntroMedia")) {
29292
+ if (!$util.isObject(message.beforeIntroMedia))
29293
+ return "beforeIntroMedia: object expected";
29294
+ var key = Object.keys(message.beforeIntroMedia);
29161
29295
  for (var i = 0; i < key.length; ++i) {
29162
- var error = $root.contentful.IdReference.verify(message.soundBedMedia[key[i]]);
29296
+ var error = $root.contentful.IdReferences.verify(message.beforeIntroMedia[key[i]]);
29163
29297
  if (error)
29164
- return "soundBedMedia." + error;
29298
+ return "beforeIntroMedia." + error;
29165
29299
  }
29166
29300
  }
29167
29301
  if (message.introMedia != null && message.hasOwnProperty("introMedia")) {
@@ -29169,19 +29303,39 @@ $root.ContentfulSleepcastRecipeUpdated = (function() {
29169
29303
  return "introMedia: object expected";
29170
29304
  var key = Object.keys(message.introMedia);
29171
29305
  for (var i = 0; i < key.length; ++i) {
29172
- var error = $root.contentful.IdReference.verify(message.introMedia[key[i]]);
29306
+ var error = $root.contentful.IdReferences.verify(message.introMedia[key[i]]);
29173
29307
  if (error)
29174
29308
  return "introMedia." + error;
29175
29309
  }
29176
29310
  }
29177
- if (message.leadInMedia != null && message.hasOwnProperty("leadInMedia")) {
29178
- if (!$util.isObject(message.leadInMedia))
29179
- return "leadInMedia: object expected";
29180
- var key = Object.keys(message.leadInMedia);
29311
+ if (message.afterIntroMedia != null && message.hasOwnProperty("afterIntroMedia")) {
29312
+ if (!$util.isObject(message.afterIntroMedia))
29313
+ return "afterIntroMedia: object expected";
29314
+ var key = Object.keys(message.afterIntroMedia);
29181
29315
  for (var i = 0; i < key.length; ++i) {
29182
- var error = $root.contentful.IdReference.verify(message.leadInMedia[key[i]]);
29316
+ var error = $root.contentful.IdReferences.verify(message.afterIntroMedia[key[i]]);
29183
29317
  if (error)
29184
- return "leadInMedia." + error;
29318
+ return "afterIntroMedia." + error;
29319
+ }
29320
+ }
29321
+ if (message.mainMedia != null && message.hasOwnProperty("mainMedia")) {
29322
+ if (!$util.isObject(message.mainMedia))
29323
+ return "mainMedia: object expected";
29324
+ var key = Object.keys(message.mainMedia);
29325
+ for (var i = 0; i < key.length; ++i) {
29326
+ var error = $root.contentful.IdReferences.verify(message.mainMedia[key[i]]);
29327
+ if (error)
29328
+ return "mainMedia." + error;
29329
+ }
29330
+ }
29331
+ if (message.beforeOutroMedia != null && message.hasOwnProperty("beforeOutroMedia")) {
29332
+ if (!$util.isObject(message.beforeOutroMedia))
29333
+ return "beforeOutroMedia: object expected";
29334
+ var key = Object.keys(message.beforeOutroMedia);
29335
+ for (var i = 0; i < key.length; ++i) {
29336
+ var error = $root.contentful.IdReferences.verify(message.beforeOutroMedia[key[i]]);
29337
+ if (error)
29338
+ return "beforeOutroMedia." + error;
29185
29339
  }
29186
29340
  }
29187
29341
  if (message.outroMedia != null && message.hasOwnProperty("outroMedia")) {
@@ -29189,11 +29343,21 @@ $root.ContentfulSleepcastRecipeUpdated = (function() {
29189
29343
  return "outroMedia: object expected";
29190
29344
  var key = Object.keys(message.outroMedia);
29191
29345
  for (var i = 0; i < key.length; ++i) {
29192
- var error = $root.contentful.IdReference.verify(message.outroMedia[key[i]]);
29346
+ var error = $root.contentful.IdReferences.verify(message.outroMedia[key[i]]);
29193
29347
  if (error)
29194
29348
  return "outroMedia." + error;
29195
29349
  }
29196
29350
  }
29351
+ if (message.afterOutroMedia != null && message.hasOwnProperty("afterOutroMedia")) {
29352
+ if (!$util.isObject(message.afterOutroMedia))
29353
+ return "afterOutroMedia: object expected";
29354
+ var key = Object.keys(message.afterOutroMedia);
29355
+ for (var i = 0; i < key.length; ++i) {
29356
+ var error = $root.contentful.IdReferences.verify(message.afterOutroMedia[key[i]]);
29357
+ if (error)
29358
+ return "afterOutroMedia." + error;
29359
+ }
29360
+ }
29197
29361
  if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
29198
29362
  if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
29199
29363
  return "updatedAt: integer|Long expected";
@@ -29216,34 +29380,24 @@ $root.ContentfulSleepcastRecipeUpdated = (function() {
29216
29380
  message.slug = String(object.slug);
29217
29381
  if (object.generator != null)
29218
29382
  message.generator = String(object.generator);
29219
- if (object.mainMedia) {
29220
- if (typeof object.mainMedia !== "object")
29221
- throw TypeError(".ContentfulSleepcastRecipeUpdated.mainMedia: object expected");
29222
- message.mainMedia = {};
29223
- for (var keys = Object.keys(object.mainMedia), i = 0; i < keys.length; ++i) {
29224
- if (typeof object.mainMedia[keys[i]] !== "object")
29225
- throw TypeError(".ContentfulSleepcastRecipeUpdated.mainMedia: object expected");
29226
- message.mainMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.mainMedia[keys[i]]);
29227
- }
29228
- }
29229
- if (object.windDownMedia) {
29230
- if (typeof object.windDownMedia !== "object")
29231
- throw TypeError(".ContentfulSleepcastRecipeUpdated.windDownMedia: object expected");
29232
- message.windDownMedia = {};
29233
- for (var keys = Object.keys(object.windDownMedia), i = 0; i < keys.length; ++i) {
29234
- if (typeof object.windDownMedia[keys[i]] !== "object")
29235
- throw TypeError(".ContentfulSleepcastRecipeUpdated.windDownMedia: object expected");
29236
- message.windDownMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.windDownMedia[keys[i]]);
29237
- }
29238
- }
29239
- if (object.soundBedMedia) {
29240
- if (typeof object.soundBedMedia !== "object")
29241
- throw TypeError(".ContentfulSleepcastRecipeUpdated.soundBedMedia: object expected");
29242
- message.soundBedMedia = {};
29243
- for (var keys = Object.keys(object.soundBedMedia), i = 0; i < keys.length; ++i) {
29244
- if (typeof object.soundBedMedia[keys[i]] !== "object")
29245
- throw TypeError(".ContentfulSleepcastRecipeUpdated.soundBedMedia: object expected");
29246
- message.soundBedMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.soundBedMedia[keys[i]]);
29383
+ if (object.ambientMedia) {
29384
+ if (typeof object.ambientMedia !== "object")
29385
+ throw TypeError(".ContentfulSleepcastRecipeUpdated.ambientMedia: object expected");
29386
+ message.ambientMedia = {};
29387
+ for (var keys = Object.keys(object.ambientMedia), i = 0; i < keys.length; ++i) {
29388
+ if (typeof object.ambientMedia[keys[i]] !== "object")
29389
+ throw TypeError(".ContentfulSleepcastRecipeUpdated.ambientMedia: object expected");
29390
+ message.ambientMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.ambientMedia[keys[i]]);
29391
+ }
29392
+ }
29393
+ if (object.beforeIntroMedia) {
29394
+ if (typeof object.beforeIntroMedia !== "object")
29395
+ throw TypeError(".ContentfulSleepcastRecipeUpdated.beforeIntroMedia: object expected");
29396
+ message.beforeIntroMedia = {};
29397
+ for (var keys = Object.keys(object.beforeIntroMedia), i = 0; i < keys.length; ++i) {
29398
+ if (typeof object.beforeIntroMedia[keys[i]] !== "object")
29399
+ throw TypeError(".ContentfulSleepcastRecipeUpdated.beforeIntroMedia: object expected");
29400
+ message.beforeIntroMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.beforeIntroMedia[keys[i]]);
29247
29401
  }
29248
29402
  }
29249
29403
  if (object.introMedia) {
@@ -29253,17 +29407,37 @@ $root.ContentfulSleepcastRecipeUpdated = (function() {
29253
29407
  for (var keys = Object.keys(object.introMedia), i = 0; i < keys.length; ++i) {
29254
29408
  if (typeof object.introMedia[keys[i]] !== "object")
29255
29409
  throw TypeError(".ContentfulSleepcastRecipeUpdated.introMedia: object expected");
29256
- message.introMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.introMedia[keys[i]]);
29410
+ message.introMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.introMedia[keys[i]]);
29411
+ }
29412
+ }
29413
+ if (object.afterIntroMedia) {
29414
+ if (typeof object.afterIntroMedia !== "object")
29415
+ throw TypeError(".ContentfulSleepcastRecipeUpdated.afterIntroMedia: object expected");
29416
+ message.afterIntroMedia = {};
29417
+ for (var keys = Object.keys(object.afterIntroMedia), i = 0; i < keys.length; ++i) {
29418
+ if (typeof object.afterIntroMedia[keys[i]] !== "object")
29419
+ throw TypeError(".ContentfulSleepcastRecipeUpdated.afterIntroMedia: object expected");
29420
+ message.afterIntroMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.afterIntroMedia[keys[i]]);
29421
+ }
29422
+ }
29423
+ if (object.mainMedia) {
29424
+ if (typeof object.mainMedia !== "object")
29425
+ throw TypeError(".ContentfulSleepcastRecipeUpdated.mainMedia: object expected");
29426
+ message.mainMedia = {};
29427
+ for (var keys = Object.keys(object.mainMedia), i = 0; i < keys.length; ++i) {
29428
+ if (typeof object.mainMedia[keys[i]] !== "object")
29429
+ throw TypeError(".ContentfulSleepcastRecipeUpdated.mainMedia: object expected");
29430
+ message.mainMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.mainMedia[keys[i]]);
29257
29431
  }
29258
29432
  }
29259
- if (object.leadInMedia) {
29260
- if (typeof object.leadInMedia !== "object")
29261
- throw TypeError(".ContentfulSleepcastRecipeUpdated.leadInMedia: object expected");
29262
- message.leadInMedia = {};
29263
- for (var keys = Object.keys(object.leadInMedia), i = 0; i < keys.length; ++i) {
29264
- if (typeof object.leadInMedia[keys[i]] !== "object")
29265
- throw TypeError(".ContentfulSleepcastRecipeUpdated.leadInMedia: object expected");
29266
- message.leadInMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.leadInMedia[keys[i]]);
29433
+ if (object.beforeOutroMedia) {
29434
+ if (typeof object.beforeOutroMedia !== "object")
29435
+ throw TypeError(".ContentfulSleepcastRecipeUpdated.beforeOutroMedia: object expected");
29436
+ message.beforeOutroMedia = {};
29437
+ for (var keys = Object.keys(object.beforeOutroMedia), i = 0; i < keys.length; ++i) {
29438
+ if (typeof object.beforeOutroMedia[keys[i]] !== "object")
29439
+ throw TypeError(".ContentfulSleepcastRecipeUpdated.beforeOutroMedia: object expected");
29440
+ message.beforeOutroMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.beforeOutroMedia[keys[i]]);
29267
29441
  }
29268
29442
  }
29269
29443
  if (object.outroMedia) {
@@ -29273,7 +29447,17 @@ $root.ContentfulSleepcastRecipeUpdated = (function() {
29273
29447
  for (var keys = Object.keys(object.outroMedia), i = 0; i < keys.length; ++i) {
29274
29448
  if (typeof object.outroMedia[keys[i]] !== "object")
29275
29449
  throw TypeError(".ContentfulSleepcastRecipeUpdated.outroMedia: object expected");
29276
- message.outroMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.outroMedia[keys[i]]);
29450
+ message.outroMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.outroMedia[keys[i]]);
29451
+ }
29452
+ }
29453
+ if (object.afterOutroMedia) {
29454
+ if (typeof object.afterOutroMedia !== "object")
29455
+ throw TypeError(".ContentfulSleepcastRecipeUpdated.afterOutroMedia: object expected");
29456
+ message.afterOutroMedia = {};
29457
+ for (var keys = Object.keys(object.afterOutroMedia), i = 0; i < keys.length; ++i) {
29458
+ if (typeof object.afterOutroMedia[keys[i]] !== "object")
29459
+ throw TypeError(".ContentfulSleepcastRecipeUpdated.afterOutroMedia: object expected");
29460
+ message.afterOutroMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.afterOutroMedia[keys[i]]);
29277
29461
  }
29278
29462
  }
29279
29463
  if (object.updatedAt != null)
@@ -29302,12 +29486,14 @@ $root.ContentfulSleepcastRecipeUpdated = (function() {
29302
29486
  options = {};
29303
29487
  var object = {};
29304
29488
  if (options.objects || options.defaults) {
29305
- object.mainMedia = {};
29306
- object.windDownMedia = {};
29307
- object.soundBedMedia = {};
29489
+ object.ambientMedia = {};
29490
+ object.beforeIntroMedia = {};
29308
29491
  object.introMedia = {};
29309
- object.leadInMedia = {};
29492
+ object.afterIntroMedia = {};
29493
+ object.mainMedia = {};
29494
+ object.beforeOutroMedia = {};
29310
29495
  object.outroMedia = {};
29496
+ object.afterOutroMedia = {};
29311
29497
  }
29312
29498
  if (options.defaults) {
29313
29499
  object.slug = "";
@@ -29323,35 +29509,45 @@ $root.ContentfulSleepcastRecipeUpdated = (function() {
29323
29509
  if (message.generator != null && message.hasOwnProperty("generator"))
29324
29510
  object.generator = message.generator;
29325
29511
  var keys2;
29326
- if (message.mainMedia && (keys2 = Object.keys(message.mainMedia)).length) {
29327
- object.mainMedia = {};
29512
+ if (message.ambientMedia && (keys2 = Object.keys(message.ambientMedia)).length) {
29513
+ object.ambientMedia = {};
29328
29514
  for (var j = 0; j < keys2.length; ++j)
29329
- object.mainMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.mainMedia[keys2[j]], options);
29330
- }
29331
- if (message.windDownMedia && (keys2 = Object.keys(message.windDownMedia)).length) {
29332
- object.windDownMedia = {};
29333
- for (var j = 0; j < keys2.length; ++j)
29334
- object.windDownMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.windDownMedia[keys2[j]], options);
29515
+ object.ambientMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.ambientMedia[keys2[j]], options);
29335
29516
  }
29336
- if (message.soundBedMedia && (keys2 = Object.keys(message.soundBedMedia)).length) {
29337
- object.soundBedMedia = {};
29517
+ if (message.beforeIntroMedia && (keys2 = Object.keys(message.beforeIntroMedia)).length) {
29518
+ object.beforeIntroMedia = {};
29338
29519
  for (var j = 0; j < keys2.length; ++j)
29339
- object.soundBedMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.soundBedMedia[keys2[j]], options);
29520
+ object.beforeIntroMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.beforeIntroMedia[keys2[j]], options);
29340
29521
  }
29341
29522
  if (message.introMedia && (keys2 = Object.keys(message.introMedia)).length) {
29342
29523
  object.introMedia = {};
29343
29524
  for (var j = 0; j < keys2.length; ++j)
29344
- object.introMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.introMedia[keys2[j]], options);
29525
+ object.introMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.introMedia[keys2[j]], options);
29526
+ }
29527
+ if (message.afterIntroMedia && (keys2 = Object.keys(message.afterIntroMedia)).length) {
29528
+ object.afterIntroMedia = {};
29529
+ for (var j = 0; j < keys2.length; ++j)
29530
+ object.afterIntroMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.afterIntroMedia[keys2[j]], options);
29531
+ }
29532
+ if (message.mainMedia && (keys2 = Object.keys(message.mainMedia)).length) {
29533
+ object.mainMedia = {};
29534
+ for (var j = 0; j < keys2.length; ++j)
29535
+ object.mainMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.mainMedia[keys2[j]], options);
29345
29536
  }
29346
- if (message.leadInMedia && (keys2 = Object.keys(message.leadInMedia)).length) {
29347
- object.leadInMedia = {};
29537
+ if (message.beforeOutroMedia && (keys2 = Object.keys(message.beforeOutroMedia)).length) {
29538
+ object.beforeOutroMedia = {};
29348
29539
  for (var j = 0; j < keys2.length; ++j)
29349
- object.leadInMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.leadInMedia[keys2[j]], options);
29540
+ object.beforeOutroMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.beforeOutroMedia[keys2[j]], options);
29350
29541
  }
29351
29542
  if (message.outroMedia && (keys2 = Object.keys(message.outroMedia)).length) {
29352
29543
  object.outroMedia = {};
29353
29544
  for (var j = 0; j < keys2.length; ++j)
29354
- object.outroMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.outroMedia[keys2[j]], options);
29545
+ object.outroMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.outroMedia[keys2[j]], options);
29546
+ }
29547
+ if (message.afterOutroMedia && (keys2 = Object.keys(message.afterOutroMedia)).length) {
29548
+ object.afterOutroMedia = {};
29549
+ for (var j = 0; j < keys2.length; ++j)
29550
+ object.afterOutroMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.afterOutroMedia[keys2[j]], options);
29355
29551
  }
29356
29552
  if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
29357
29553
  if (typeof message.updatedAt === "number")