@headspace/protos-events 1.183.0 → 1.185.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 +12 -12
- package/lib/index.js +56 -100
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -10613,7 +10613,7 @@ export interface IContentfulSleepcastCreated {
|
|
|
10613
10613
|
description?: ({ [k: string]: string }|null);
|
|
10614
10614
|
|
|
10615
10615
|
/** ContentfulSleepcastCreated recipe */
|
|
10616
|
-
recipe?: (
|
|
10616
|
+
recipe?: (contentful.ISlugReference|null);
|
|
10617
10617
|
|
|
10618
10618
|
/** ContentfulSleepcastCreated tileBackgroundMedia */
|
|
10619
10619
|
tileBackgroundMedia?: ({ [k: string]: contentful.IIdReference }|null);
|
|
@@ -10621,8 +10621,8 @@ export interface IContentfulSleepcastCreated {
|
|
|
10621
10621
|
/** ContentfulSleepcastCreated playerBackgroundMedia */
|
|
10622
10622
|
playerBackgroundMedia?: ({ [k: string]: contentful.IIdReference }|null);
|
|
10623
10623
|
|
|
10624
|
-
/** ContentfulSleepcastCreated
|
|
10625
|
-
|
|
10624
|
+
/** ContentfulSleepcastCreated useVariantPresets */
|
|
10625
|
+
useVariantPresets?: (boolean|null);
|
|
10626
10626
|
|
|
10627
10627
|
/** ContentfulSleepcastCreated isEnabled */
|
|
10628
10628
|
isEnabled?: (boolean|null);
|
|
@@ -10665,7 +10665,7 @@ export class ContentfulSleepcastCreated implements IContentfulSleepcastCreated {
|
|
|
10665
10665
|
public description: { [k: string]: string };
|
|
10666
10666
|
|
|
10667
10667
|
/** ContentfulSleepcastCreated recipe. */
|
|
10668
|
-
public recipe
|
|
10668
|
+
public recipe?: (contentful.ISlugReference|null);
|
|
10669
10669
|
|
|
10670
10670
|
/** ContentfulSleepcastCreated tileBackgroundMedia. */
|
|
10671
10671
|
public tileBackgroundMedia: { [k: string]: contentful.IIdReference };
|
|
@@ -10673,8 +10673,8 @@ export class ContentfulSleepcastCreated implements IContentfulSleepcastCreated {
|
|
|
10673
10673
|
/** ContentfulSleepcastCreated playerBackgroundMedia. */
|
|
10674
10674
|
public playerBackgroundMedia: { [k: string]: contentful.IIdReference };
|
|
10675
10675
|
|
|
10676
|
-
/** ContentfulSleepcastCreated
|
|
10677
|
-
public
|
|
10676
|
+
/** ContentfulSleepcastCreated useVariantPresets. */
|
|
10677
|
+
public useVariantPresets: boolean;
|
|
10678
10678
|
|
|
10679
10679
|
/** ContentfulSleepcastCreated isEnabled. */
|
|
10680
10680
|
public isEnabled: boolean;
|
|
@@ -10781,7 +10781,7 @@ export interface IContentfulSleepcastUpdated {
|
|
|
10781
10781
|
description?: ({ [k: string]: string }|null);
|
|
10782
10782
|
|
|
10783
10783
|
/** ContentfulSleepcastUpdated recipe */
|
|
10784
|
-
recipe?: (
|
|
10784
|
+
recipe?: (contentful.ISlugReference|null);
|
|
10785
10785
|
|
|
10786
10786
|
/** ContentfulSleepcastUpdated tileBackgroundMedia */
|
|
10787
10787
|
tileBackgroundMedia?: ({ [k: string]: contentful.IIdReference }|null);
|
|
@@ -10789,8 +10789,8 @@ export interface IContentfulSleepcastUpdated {
|
|
|
10789
10789
|
/** ContentfulSleepcastUpdated playerBackgroundMedia */
|
|
10790
10790
|
playerBackgroundMedia?: ({ [k: string]: contentful.IIdReference }|null);
|
|
10791
10791
|
|
|
10792
|
-
/** ContentfulSleepcastUpdated
|
|
10793
|
-
|
|
10792
|
+
/** ContentfulSleepcastUpdated useVariantPresets */
|
|
10793
|
+
useVariantPresets?: (boolean|null);
|
|
10794
10794
|
|
|
10795
10795
|
/** ContentfulSleepcastUpdated isEnabled */
|
|
10796
10796
|
isEnabled?: (boolean|null);
|
|
@@ -10833,7 +10833,7 @@ export class ContentfulSleepcastUpdated implements IContentfulSleepcastUpdated {
|
|
|
10833
10833
|
public description: { [k: string]: string };
|
|
10834
10834
|
|
|
10835
10835
|
/** ContentfulSleepcastUpdated recipe. */
|
|
10836
|
-
public recipe
|
|
10836
|
+
public recipe?: (contentful.ISlugReference|null);
|
|
10837
10837
|
|
|
10838
10838
|
/** ContentfulSleepcastUpdated tileBackgroundMedia. */
|
|
10839
10839
|
public tileBackgroundMedia: { [k: string]: contentful.IIdReference };
|
|
@@ -10841,8 +10841,8 @@ export class ContentfulSleepcastUpdated implements IContentfulSleepcastUpdated {
|
|
|
10841
10841
|
/** ContentfulSleepcastUpdated playerBackgroundMedia. */
|
|
10842
10842
|
public playerBackgroundMedia: { [k: string]: contentful.IIdReference };
|
|
10843
10843
|
|
|
10844
|
-
/** ContentfulSleepcastUpdated
|
|
10845
|
-
public
|
|
10844
|
+
/** ContentfulSleepcastUpdated useVariantPresets. */
|
|
10845
|
+
public useVariantPresets: boolean;
|
|
10846
10846
|
|
|
10847
10847
|
/** ContentfulSleepcastUpdated isEnabled. */
|
|
10848
10848
|
public isEnabled: boolean;
|
package/lib/index.js
CHANGED
|
@@ -29477,10 +29477,10 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
29477
29477
|
* @property {string|null} [slug] ContentfulSleepcastCreated slug
|
|
29478
29478
|
* @property {Object.<string,string>|null} [subtitle] ContentfulSleepcastCreated subtitle
|
|
29479
29479
|
* @property {Object.<string,string>|null} [description] ContentfulSleepcastCreated description
|
|
29480
|
-
* @property {
|
|
29480
|
+
* @property {contentful.ISlugReference|null} [recipe] ContentfulSleepcastCreated recipe
|
|
29481
29481
|
* @property {Object.<string,contentful.IIdReference>|null} [tileBackgroundMedia] ContentfulSleepcastCreated tileBackgroundMedia
|
|
29482
29482
|
* @property {Object.<string,contentful.IIdReference>|null} [playerBackgroundMedia] ContentfulSleepcastCreated playerBackgroundMedia
|
|
29483
|
-
* @property {boolean|null} [
|
|
29483
|
+
* @property {boolean|null} [useVariantPresets] ContentfulSleepcastCreated useVariantPresets
|
|
29484
29484
|
* @property {boolean|null} [isEnabled] ContentfulSleepcastCreated isEnabled
|
|
29485
29485
|
* @property {Object.<string,contentful.IIdReferences>|null} [primaryAudioMedia] ContentfulSleepcastCreated primaryAudioMedia
|
|
29486
29486
|
* @property {Object.<string,contentful.IIdReferences>|null} [secondaryAudioMedia] ContentfulSleepcastCreated secondaryAudioMedia
|
|
@@ -29501,7 +29501,6 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
29501
29501
|
this.title = {};
|
|
29502
29502
|
this.subtitle = {};
|
|
29503
29503
|
this.description = {};
|
|
29504
|
-
this.recipe = {};
|
|
29505
29504
|
this.tileBackgroundMedia = {};
|
|
29506
29505
|
this.playerBackgroundMedia = {};
|
|
29507
29506
|
this.primaryAudioMedia = {};
|
|
@@ -29548,11 +29547,11 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
29548
29547
|
|
|
29549
29548
|
/**
|
|
29550
29549
|
* ContentfulSleepcastCreated recipe.
|
|
29551
|
-
* @member {
|
|
29550
|
+
* @member {contentful.ISlugReference|null|undefined} recipe
|
|
29552
29551
|
* @memberof ContentfulSleepcastCreated
|
|
29553
29552
|
* @instance
|
|
29554
29553
|
*/
|
|
29555
|
-
ContentfulSleepcastCreated.prototype.recipe =
|
|
29554
|
+
ContentfulSleepcastCreated.prototype.recipe = null;
|
|
29556
29555
|
|
|
29557
29556
|
/**
|
|
29558
29557
|
* ContentfulSleepcastCreated tileBackgroundMedia.
|
|
@@ -29571,12 +29570,12 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
29571
29570
|
ContentfulSleepcastCreated.prototype.playerBackgroundMedia = $util.emptyObject;
|
|
29572
29571
|
|
|
29573
29572
|
/**
|
|
29574
|
-
* ContentfulSleepcastCreated
|
|
29575
|
-
* @member {boolean}
|
|
29573
|
+
* ContentfulSleepcastCreated useVariantPresets.
|
|
29574
|
+
* @member {boolean} useVariantPresets
|
|
29576
29575
|
* @memberof ContentfulSleepcastCreated
|
|
29577
29576
|
* @instance
|
|
29578
29577
|
*/
|
|
29579
|
-
ContentfulSleepcastCreated.prototype.
|
|
29578
|
+
ContentfulSleepcastCreated.prototype.useVariantPresets = false;
|
|
29580
29579
|
|
|
29581
29580
|
/**
|
|
29582
29581
|
* ContentfulSleepcastCreated isEnabled.
|
|
@@ -29662,10 +29661,7 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
29662
29661
|
for (var keys = Object.keys(message.description), i = 0; i < keys.length; ++i)
|
|
29663
29662
|
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();
|
|
29664
29663
|
if (message.recipe != null && message.hasOwnProperty("recipe"))
|
|
29665
|
-
|
|
29666
|
-
writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
29667
|
-
$root.contentful.SlugReference.encode(message.recipe[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
29668
|
-
}
|
|
29664
|
+
$root.contentful.SlugReference.encode(message.recipe, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
29669
29665
|
if (message.tileBackgroundMedia != null && message.hasOwnProperty("tileBackgroundMedia"))
|
|
29670
29666
|
for (var keys = Object.keys(message.tileBackgroundMedia), i = 0; i < keys.length; ++i) {
|
|
29671
29667
|
writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
@@ -29676,8 +29672,8 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
29676
29672
|
writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
29677
29673
|
$root.contentful.IdReference.encode(message.playerBackgroundMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
29678
29674
|
}
|
|
29679
|
-
if (message.
|
|
29680
|
-
writer.uint32(/* id 8, wireType 0 =*/64).bool(message.
|
|
29675
|
+
if (message.useVariantPresets != null && message.hasOwnProperty("useVariantPresets"))
|
|
29676
|
+
writer.uint32(/* id 8, wireType 0 =*/64).bool(message.useVariantPresets);
|
|
29681
29677
|
if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
|
|
29682
29678
|
writer.uint32(/* id 9, wireType 0 =*/72).bool(message.isEnabled);
|
|
29683
29679
|
if (message.primaryAudioMedia != null && message.hasOwnProperty("primaryAudioMedia"))
|
|
@@ -29762,12 +29758,7 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
29762
29758
|
message.description[key] = reader.string();
|
|
29763
29759
|
break;
|
|
29764
29760
|
case 5:
|
|
29765
|
-
reader.
|
|
29766
|
-
if (message.recipe === $util.emptyObject)
|
|
29767
|
-
message.recipe = {};
|
|
29768
|
-
key = reader.string();
|
|
29769
|
-
reader.pos++;
|
|
29770
|
-
message.recipe[key] = $root.contentful.SlugReference.decode(reader, reader.uint32());
|
|
29761
|
+
message.recipe = $root.contentful.SlugReference.decode(reader, reader.uint32());
|
|
29771
29762
|
break;
|
|
29772
29763
|
case 6:
|
|
29773
29764
|
reader.skip().pos++;
|
|
@@ -29786,7 +29777,7 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
29786
29777
|
message.playerBackgroundMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
29787
29778
|
break;
|
|
29788
29779
|
case 8:
|
|
29789
|
-
message.
|
|
29780
|
+
message.useVariantPresets = reader.bool();
|
|
29790
29781
|
break;
|
|
29791
29782
|
case 9:
|
|
29792
29783
|
message.isEnabled = reader.bool();
|
|
@@ -29886,14 +29877,9 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
29886
29877
|
return "description: string{k:string} expected";
|
|
29887
29878
|
}
|
|
29888
29879
|
if (message.recipe != null && message.hasOwnProperty("recipe")) {
|
|
29889
|
-
|
|
29890
|
-
|
|
29891
|
-
|
|
29892
|
-
for (var i = 0; i < key.length; ++i) {
|
|
29893
|
-
var error = $root.contentful.SlugReference.verify(message.recipe[key[i]]);
|
|
29894
|
-
if (error)
|
|
29895
|
-
return "recipe." + error;
|
|
29896
|
-
}
|
|
29880
|
+
var error = $root.contentful.SlugReference.verify(message.recipe);
|
|
29881
|
+
if (error)
|
|
29882
|
+
return "recipe." + error;
|
|
29897
29883
|
}
|
|
29898
29884
|
if (message.tileBackgroundMedia != null && message.hasOwnProperty("tileBackgroundMedia")) {
|
|
29899
29885
|
if (!$util.isObject(message.tileBackgroundMedia))
|
|
@@ -29915,9 +29901,9 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
29915
29901
|
return "playerBackgroundMedia." + error;
|
|
29916
29902
|
}
|
|
29917
29903
|
}
|
|
29918
|
-
if (message.
|
|
29919
|
-
if (typeof message.
|
|
29920
|
-
return "
|
|
29904
|
+
if (message.useVariantPresets != null && message.hasOwnProperty("useVariantPresets"))
|
|
29905
|
+
if (typeof message.useVariantPresets !== "boolean")
|
|
29906
|
+
return "useVariantPresets: boolean expected";
|
|
29921
29907
|
if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
|
|
29922
29908
|
if (typeof message.isEnabled !== "boolean")
|
|
29923
29909
|
return "isEnabled: boolean expected";
|
|
@@ -30001,15 +29987,10 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
30001
29987
|
for (var keys = Object.keys(object.description), i = 0; i < keys.length; ++i)
|
|
30002
29988
|
message.description[keys[i]] = String(object.description[keys[i]]);
|
|
30003
29989
|
}
|
|
30004
|
-
if (object.recipe) {
|
|
29990
|
+
if (object.recipe != null) {
|
|
30005
29991
|
if (typeof object.recipe !== "object")
|
|
30006
29992
|
throw TypeError(".ContentfulSleepcastCreated.recipe: object expected");
|
|
30007
|
-
message.recipe =
|
|
30008
|
-
for (var keys = Object.keys(object.recipe), i = 0; i < keys.length; ++i) {
|
|
30009
|
-
if (typeof object.recipe[keys[i]] !== "object")
|
|
30010
|
-
throw TypeError(".ContentfulSleepcastCreated.recipe: object expected");
|
|
30011
|
-
message.recipe[keys[i]] = $root.contentful.SlugReference.fromObject(object.recipe[keys[i]]);
|
|
30012
|
-
}
|
|
29993
|
+
message.recipe = $root.contentful.SlugReference.fromObject(object.recipe);
|
|
30013
29994
|
}
|
|
30014
29995
|
if (object.tileBackgroundMedia) {
|
|
30015
29996
|
if (typeof object.tileBackgroundMedia !== "object")
|
|
@@ -30031,8 +30012,8 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
30031
30012
|
message.playerBackgroundMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.playerBackgroundMedia[keys[i]]);
|
|
30032
30013
|
}
|
|
30033
30014
|
}
|
|
30034
|
-
if (object.
|
|
30035
|
-
message.
|
|
30015
|
+
if (object.useVariantPresets != null)
|
|
30016
|
+
message.useVariantPresets = Boolean(object.useVariantPresets);
|
|
30036
30017
|
if (object.isEnabled != null)
|
|
30037
30018
|
message.isEnabled = Boolean(object.isEnabled);
|
|
30038
30019
|
if (object.primaryAudioMedia) {
|
|
@@ -30106,7 +30087,6 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
30106
30087
|
object.title = {};
|
|
30107
30088
|
object.subtitle = {};
|
|
30108
30089
|
object.description = {};
|
|
30109
|
-
object.recipe = {};
|
|
30110
30090
|
object.tileBackgroundMedia = {};
|
|
30111
30091
|
object.playerBackgroundMedia = {};
|
|
30112
30092
|
object.primaryAudioMedia = {};
|
|
@@ -30115,7 +30095,8 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
30115
30095
|
}
|
|
30116
30096
|
if (options.defaults) {
|
|
30117
30097
|
object.slug = "";
|
|
30118
|
-
object.
|
|
30098
|
+
object.recipe = null;
|
|
30099
|
+
object.useVariantPresets = false;
|
|
30119
30100
|
object.isEnabled = false;
|
|
30120
30101
|
if ($util.Long) {
|
|
30121
30102
|
var long = new $util.Long(0, 0, true);
|
|
@@ -30141,11 +30122,8 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
30141
30122
|
for (var j = 0; j < keys2.length; ++j)
|
|
30142
30123
|
object.description[keys2[j]] = message.description[keys2[j]];
|
|
30143
30124
|
}
|
|
30144
|
-
if (message.recipe
|
|
30145
|
-
object.recipe =
|
|
30146
|
-
for (var j = 0; j < keys2.length; ++j)
|
|
30147
|
-
object.recipe[keys2[j]] = $root.contentful.SlugReference.toObject(message.recipe[keys2[j]], options);
|
|
30148
|
-
}
|
|
30125
|
+
if (message.recipe != null && message.hasOwnProperty("recipe"))
|
|
30126
|
+
object.recipe = $root.contentful.SlugReference.toObject(message.recipe, options);
|
|
30149
30127
|
if (message.tileBackgroundMedia && (keys2 = Object.keys(message.tileBackgroundMedia)).length) {
|
|
30150
30128
|
object.tileBackgroundMedia = {};
|
|
30151
30129
|
for (var j = 0; j < keys2.length; ++j)
|
|
@@ -30156,8 +30134,8 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
30156
30134
|
for (var j = 0; j < keys2.length; ++j)
|
|
30157
30135
|
object.playerBackgroundMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.playerBackgroundMedia[keys2[j]], options);
|
|
30158
30136
|
}
|
|
30159
|
-
if (message.
|
|
30160
|
-
object.
|
|
30137
|
+
if (message.useVariantPresets != null && message.hasOwnProperty("useVariantPresets"))
|
|
30138
|
+
object.useVariantPresets = message.useVariantPresets;
|
|
30161
30139
|
if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
|
|
30162
30140
|
object.isEnabled = message.isEnabled;
|
|
30163
30141
|
if (message.primaryAudioMedia && (keys2 = Object.keys(message.primaryAudioMedia)).length) {
|
|
@@ -30212,10 +30190,10 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
30212
30190
|
* @property {string|null} [slug] ContentfulSleepcastUpdated slug
|
|
30213
30191
|
* @property {Object.<string,string>|null} [subtitle] ContentfulSleepcastUpdated subtitle
|
|
30214
30192
|
* @property {Object.<string,string>|null} [description] ContentfulSleepcastUpdated description
|
|
30215
|
-
* @property {
|
|
30193
|
+
* @property {contentful.ISlugReference|null} [recipe] ContentfulSleepcastUpdated recipe
|
|
30216
30194
|
* @property {Object.<string,contentful.IIdReference>|null} [tileBackgroundMedia] ContentfulSleepcastUpdated tileBackgroundMedia
|
|
30217
30195
|
* @property {Object.<string,contentful.IIdReference>|null} [playerBackgroundMedia] ContentfulSleepcastUpdated playerBackgroundMedia
|
|
30218
|
-
* @property {boolean|null} [
|
|
30196
|
+
* @property {boolean|null} [useVariantPresets] ContentfulSleepcastUpdated useVariantPresets
|
|
30219
30197
|
* @property {boolean|null} [isEnabled] ContentfulSleepcastUpdated isEnabled
|
|
30220
30198
|
* @property {Object.<string,contentful.IIdReferences>|null} [primaryAudioMedia] ContentfulSleepcastUpdated primaryAudioMedia
|
|
30221
30199
|
* @property {Object.<string,contentful.IIdReferences>|null} [secondaryAudioMedia] ContentfulSleepcastUpdated secondaryAudioMedia
|
|
@@ -30236,7 +30214,6 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
30236
30214
|
this.title = {};
|
|
30237
30215
|
this.subtitle = {};
|
|
30238
30216
|
this.description = {};
|
|
30239
|
-
this.recipe = {};
|
|
30240
30217
|
this.tileBackgroundMedia = {};
|
|
30241
30218
|
this.playerBackgroundMedia = {};
|
|
30242
30219
|
this.primaryAudioMedia = {};
|
|
@@ -30283,11 +30260,11 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
30283
30260
|
|
|
30284
30261
|
/**
|
|
30285
30262
|
* ContentfulSleepcastUpdated recipe.
|
|
30286
|
-
* @member {
|
|
30263
|
+
* @member {contentful.ISlugReference|null|undefined} recipe
|
|
30287
30264
|
* @memberof ContentfulSleepcastUpdated
|
|
30288
30265
|
* @instance
|
|
30289
30266
|
*/
|
|
30290
|
-
ContentfulSleepcastUpdated.prototype.recipe =
|
|
30267
|
+
ContentfulSleepcastUpdated.prototype.recipe = null;
|
|
30291
30268
|
|
|
30292
30269
|
/**
|
|
30293
30270
|
* ContentfulSleepcastUpdated tileBackgroundMedia.
|
|
@@ -30306,12 +30283,12 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
30306
30283
|
ContentfulSleepcastUpdated.prototype.playerBackgroundMedia = $util.emptyObject;
|
|
30307
30284
|
|
|
30308
30285
|
/**
|
|
30309
|
-
* ContentfulSleepcastUpdated
|
|
30310
|
-
* @member {boolean}
|
|
30286
|
+
* ContentfulSleepcastUpdated useVariantPresets.
|
|
30287
|
+
* @member {boolean} useVariantPresets
|
|
30311
30288
|
* @memberof ContentfulSleepcastUpdated
|
|
30312
30289
|
* @instance
|
|
30313
30290
|
*/
|
|
30314
|
-
ContentfulSleepcastUpdated.prototype.
|
|
30291
|
+
ContentfulSleepcastUpdated.prototype.useVariantPresets = false;
|
|
30315
30292
|
|
|
30316
30293
|
/**
|
|
30317
30294
|
* ContentfulSleepcastUpdated isEnabled.
|
|
@@ -30397,10 +30374,7 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
30397
30374
|
for (var keys = Object.keys(message.description), i = 0; i < keys.length; ++i)
|
|
30398
30375
|
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();
|
|
30399
30376
|
if (message.recipe != null && message.hasOwnProperty("recipe"))
|
|
30400
|
-
|
|
30401
|
-
writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
30402
|
-
$root.contentful.SlugReference.encode(message.recipe[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
30403
|
-
}
|
|
30377
|
+
$root.contentful.SlugReference.encode(message.recipe, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
30404
30378
|
if (message.tileBackgroundMedia != null && message.hasOwnProperty("tileBackgroundMedia"))
|
|
30405
30379
|
for (var keys = Object.keys(message.tileBackgroundMedia), i = 0; i < keys.length; ++i) {
|
|
30406
30380
|
writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
@@ -30411,8 +30385,8 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
30411
30385
|
writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
30412
30386
|
$root.contentful.IdReference.encode(message.playerBackgroundMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
30413
30387
|
}
|
|
30414
|
-
if (message.
|
|
30415
|
-
writer.uint32(/* id 8, wireType 0 =*/64).bool(message.
|
|
30388
|
+
if (message.useVariantPresets != null && message.hasOwnProperty("useVariantPresets"))
|
|
30389
|
+
writer.uint32(/* id 8, wireType 0 =*/64).bool(message.useVariantPresets);
|
|
30416
30390
|
if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
|
|
30417
30391
|
writer.uint32(/* id 9, wireType 0 =*/72).bool(message.isEnabled);
|
|
30418
30392
|
if (message.primaryAudioMedia != null && message.hasOwnProperty("primaryAudioMedia"))
|
|
@@ -30497,12 +30471,7 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
30497
30471
|
message.description[key] = reader.string();
|
|
30498
30472
|
break;
|
|
30499
30473
|
case 5:
|
|
30500
|
-
reader.
|
|
30501
|
-
if (message.recipe === $util.emptyObject)
|
|
30502
|
-
message.recipe = {};
|
|
30503
|
-
key = reader.string();
|
|
30504
|
-
reader.pos++;
|
|
30505
|
-
message.recipe[key] = $root.contentful.SlugReference.decode(reader, reader.uint32());
|
|
30474
|
+
message.recipe = $root.contentful.SlugReference.decode(reader, reader.uint32());
|
|
30506
30475
|
break;
|
|
30507
30476
|
case 6:
|
|
30508
30477
|
reader.skip().pos++;
|
|
@@ -30521,7 +30490,7 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
30521
30490
|
message.playerBackgroundMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
30522
30491
|
break;
|
|
30523
30492
|
case 8:
|
|
30524
|
-
message.
|
|
30493
|
+
message.useVariantPresets = reader.bool();
|
|
30525
30494
|
break;
|
|
30526
30495
|
case 9:
|
|
30527
30496
|
message.isEnabled = reader.bool();
|
|
@@ -30621,14 +30590,9 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
30621
30590
|
return "description: string{k:string} expected";
|
|
30622
30591
|
}
|
|
30623
30592
|
if (message.recipe != null && message.hasOwnProperty("recipe")) {
|
|
30624
|
-
|
|
30625
|
-
|
|
30626
|
-
|
|
30627
|
-
for (var i = 0; i < key.length; ++i) {
|
|
30628
|
-
var error = $root.contentful.SlugReference.verify(message.recipe[key[i]]);
|
|
30629
|
-
if (error)
|
|
30630
|
-
return "recipe." + error;
|
|
30631
|
-
}
|
|
30593
|
+
var error = $root.contentful.SlugReference.verify(message.recipe);
|
|
30594
|
+
if (error)
|
|
30595
|
+
return "recipe." + error;
|
|
30632
30596
|
}
|
|
30633
30597
|
if (message.tileBackgroundMedia != null && message.hasOwnProperty("tileBackgroundMedia")) {
|
|
30634
30598
|
if (!$util.isObject(message.tileBackgroundMedia))
|
|
@@ -30650,9 +30614,9 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
30650
30614
|
return "playerBackgroundMedia." + error;
|
|
30651
30615
|
}
|
|
30652
30616
|
}
|
|
30653
|
-
if (message.
|
|
30654
|
-
if (typeof message.
|
|
30655
|
-
return "
|
|
30617
|
+
if (message.useVariantPresets != null && message.hasOwnProperty("useVariantPresets"))
|
|
30618
|
+
if (typeof message.useVariantPresets !== "boolean")
|
|
30619
|
+
return "useVariantPresets: boolean expected";
|
|
30656
30620
|
if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
|
|
30657
30621
|
if (typeof message.isEnabled !== "boolean")
|
|
30658
30622
|
return "isEnabled: boolean expected";
|
|
@@ -30736,15 +30700,10 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
30736
30700
|
for (var keys = Object.keys(object.description), i = 0; i < keys.length; ++i)
|
|
30737
30701
|
message.description[keys[i]] = String(object.description[keys[i]]);
|
|
30738
30702
|
}
|
|
30739
|
-
if (object.recipe) {
|
|
30703
|
+
if (object.recipe != null) {
|
|
30740
30704
|
if (typeof object.recipe !== "object")
|
|
30741
30705
|
throw TypeError(".ContentfulSleepcastUpdated.recipe: object expected");
|
|
30742
|
-
message.recipe =
|
|
30743
|
-
for (var keys = Object.keys(object.recipe), i = 0; i < keys.length; ++i) {
|
|
30744
|
-
if (typeof object.recipe[keys[i]] !== "object")
|
|
30745
|
-
throw TypeError(".ContentfulSleepcastUpdated.recipe: object expected");
|
|
30746
|
-
message.recipe[keys[i]] = $root.contentful.SlugReference.fromObject(object.recipe[keys[i]]);
|
|
30747
|
-
}
|
|
30706
|
+
message.recipe = $root.contentful.SlugReference.fromObject(object.recipe);
|
|
30748
30707
|
}
|
|
30749
30708
|
if (object.tileBackgroundMedia) {
|
|
30750
30709
|
if (typeof object.tileBackgroundMedia !== "object")
|
|
@@ -30766,8 +30725,8 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
30766
30725
|
message.playerBackgroundMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.playerBackgroundMedia[keys[i]]);
|
|
30767
30726
|
}
|
|
30768
30727
|
}
|
|
30769
|
-
if (object.
|
|
30770
|
-
message.
|
|
30728
|
+
if (object.useVariantPresets != null)
|
|
30729
|
+
message.useVariantPresets = Boolean(object.useVariantPresets);
|
|
30771
30730
|
if (object.isEnabled != null)
|
|
30772
30731
|
message.isEnabled = Boolean(object.isEnabled);
|
|
30773
30732
|
if (object.primaryAudioMedia) {
|
|
@@ -30841,7 +30800,6 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
30841
30800
|
object.title = {};
|
|
30842
30801
|
object.subtitle = {};
|
|
30843
30802
|
object.description = {};
|
|
30844
|
-
object.recipe = {};
|
|
30845
30803
|
object.tileBackgroundMedia = {};
|
|
30846
30804
|
object.playerBackgroundMedia = {};
|
|
30847
30805
|
object.primaryAudioMedia = {};
|
|
@@ -30850,7 +30808,8 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
30850
30808
|
}
|
|
30851
30809
|
if (options.defaults) {
|
|
30852
30810
|
object.slug = "";
|
|
30853
|
-
object.
|
|
30811
|
+
object.recipe = null;
|
|
30812
|
+
object.useVariantPresets = false;
|
|
30854
30813
|
object.isEnabled = false;
|
|
30855
30814
|
if ($util.Long) {
|
|
30856
30815
|
var long = new $util.Long(0, 0, true);
|
|
@@ -30876,11 +30835,8 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
30876
30835
|
for (var j = 0; j < keys2.length; ++j)
|
|
30877
30836
|
object.description[keys2[j]] = message.description[keys2[j]];
|
|
30878
30837
|
}
|
|
30879
|
-
if (message.recipe
|
|
30880
|
-
object.recipe =
|
|
30881
|
-
for (var j = 0; j < keys2.length; ++j)
|
|
30882
|
-
object.recipe[keys2[j]] = $root.contentful.SlugReference.toObject(message.recipe[keys2[j]], options);
|
|
30883
|
-
}
|
|
30838
|
+
if (message.recipe != null && message.hasOwnProperty("recipe"))
|
|
30839
|
+
object.recipe = $root.contentful.SlugReference.toObject(message.recipe, options);
|
|
30884
30840
|
if (message.tileBackgroundMedia && (keys2 = Object.keys(message.tileBackgroundMedia)).length) {
|
|
30885
30841
|
object.tileBackgroundMedia = {};
|
|
30886
30842
|
for (var j = 0; j < keys2.length; ++j)
|
|
@@ -30891,8 +30847,8 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
30891
30847
|
for (var j = 0; j < keys2.length; ++j)
|
|
30892
30848
|
object.playerBackgroundMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.playerBackgroundMedia[keys2[j]], options);
|
|
30893
30849
|
}
|
|
30894
|
-
if (message.
|
|
30895
|
-
object.
|
|
30850
|
+
if (message.useVariantPresets != null && message.hasOwnProperty("useVariantPresets"))
|
|
30851
|
+
object.useVariantPresets = message.useVariantPresets;
|
|
30896
30852
|
if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
|
|
30897
30853
|
object.isEnabled = message.isEnabled;
|
|
30898
30854
|
if (message.primaryAudioMedia && (keys2 = Object.keys(message.primaryAudioMedia)).length) {
|
package/package.json
CHANGED