@headspace/protos-events 1.184.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 +4 -4
- package/lib/index.js +26 -70
- 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);
|
|
@@ -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 };
|
|
@@ -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);
|
|
@@ -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 };
|
package/lib/index.js
CHANGED
|
@@ -29477,7 +29477,7 @@ $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
29483
|
* @property {boolean|null} [useVariantPresets] ContentfulSleepcastCreated useVariantPresets
|
|
@@ -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.
|
|
@@ -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]);
|
|
@@ -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++;
|
|
@@ -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))
|
|
@@ -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")
|
|
@@ -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,6 +30095,7 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
30115
30095
|
}
|
|
30116
30096
|
if (options.defaults) {
|
|
30117
30097
|
object.slug = "";
|
|
30098
|
+
object.recipe = null;
|
|
30118
30099
|
object.useVariantPresets = false;
|
|
30119
30100
|
object.isEnabled = false;
|
|
30120
30101
|
if ($util.Long) {
|
|
@@ -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)
|
|
@@ -30212,7 +30190,7 @@ $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
30196
|
* @property {boolean|null} [useVariantPresets] ContentfulSleepcastUpdated useVariantPresets
|
|
@@ -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.
|
|
@@ -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]);
|
|
@@ -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++;
|
|
@@ -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))
|
|
@@ -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")
|
|
@@ -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,6 +30808,7 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
30850
30808
|
}
|
|
30851
30809
|
if (options.defaults) {
|
|
30852
30810
|
object.slug = "";
|
|
30811
|
+
object.recipe = null;
|
|
30853
30812
|
object.useVariantPresets = false;
|
|
30854
30813
|
object.isEnabled = false;
|
|
30855
30814
|
if ($util.Long) {
|
|
@@ -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)
|
package/package.json
CHANGED