@headspace/protos-events 1.201.0 → 1.202.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 +8 -8
- package/lib/index.js +132 -52
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -10667,10 +10667,10 @@ export interface IContentfulSleepcastCreated {
|
|
|
10667
10667
|
isEnabled?: (boolean|null);
|
|
10668
10668
|
|
|
10669
10669
|
/** ContentfulSleepcastCreated duration */
|
|
10670
|
-
duration?: (number|null);
|
|
10670
|
+
duration?: ({ [k: string]: number }|null);
|
|
10671
10671
|
|
|
10672
10672
|
/** ContentfulSleepcastCreated narratorGender */
|
|
10673
|
-
narratorGender?: (string|null);
|
|
10673
|
+
narratorGender?: ({ [k: string]: string }|null);
|
|
10674
10674
|
|
|
10675
10675
|
/** ContentfulSleepcastCreated primaryAudioMedia */
|
|
10676
10676
|
primaryAudioMedia?: ({ [k: string]: contentful.IIdReferences }|null);
|
|
@@ -10725,10 +10725,10 @@ export class ContentfulSleepcastCreated implements IContentfulSleepcastCreated {
|
|
|
10725
10725
|
public isEnabled: boolean;
|
|
10726
10726
|
|
|
10727
10727
|
/** ContentfulSleepcastCreated duration. */
|
|
10728
|
-
public duration: number;
|
|
10728
|
+
public duration: { [k: string]: number };
|
|
10729
10729
|
|
|
10730
10730
|
/** ContentfulSleepcastCreated narratorGender. */
|
|
10731
|
-
public narratorGender: string;
|
|
10731
|
+
public narratorGender: { [k: string]: string };
|
|
10732
10732
|
|
|
10733
10733
|
/** ContentfulSleepcastCreated primaryAudioMedia. */
|
|
10734
10734
|
public primaryAudioMedia: { [k: string]: contentful.IIdReferences };
|
|
@@ -10847,10 +10847,10 @@ export interface IContentfulSleepcastUpdated {
|
|
|
10847
10847
|
isEnabled?: (boolean|null);
|
|
10848
10848
|
|
|
10849
10849
|
/** ContentfulSleepcastUpdated duration */
|
|
10850
|
-
duration?: (number|null);
|
|
10850
|
+
duration?: ({ [k: string]: number }|null);
|
|
10851
10851
|
|
|
10852
10852
|
/** ContentfulSleepcastUpdated narratorGender */
|
|
10853
|
-
narratorGender?: (string|null);
|
|
10853
|
+
narratorGender?: ({ [k: string]: string }|null);
|
|
10854
10854
|
|
|
10855
10855
|
/** ContentfulSleepcastUpdated primaryAudioMedia */
|
|
10856
10856
|
primaryAudioMedia?: ({ [k: string]: contentful.IIdReferences }|null);
|
|
@@ -10905,10 +10905,10 @@ export class ContentfulSleepcastUpdated implements IContentfulSleepcastUpdated {
|
|
|
10905
10905
|
public isEnabled: boolean;
|
|
10906
10906
|
|
|
10907
10907
|
/** ContentfulSleepcastUpdated duration. */
|
|
10908
|
-
public duration: number;
|
|
10908
|
+
public duration: { [k: string]: number };
|
|
10909
10909
|
|
|
10910
10910
|
/** ContentfulSleepcastUpdated narratorGender. */
|
|
10911
|
-
public narratorGender: string;
|
|
10911
|
+
public narratorGender: { [k: string]: string };
|
|
10912
10912
|
|
|
10913
10913
|
/** ContentfulSleepcastUpdated primaryAudioMedia. */
|
|
10914
10914
|
public primaryAudioMedia: { [k: string]: contentful.IIdReferences };
|
package/lib/index.js
CHANGED
|
@@ -29766,8 +29766,8 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
29766
29766
|
* @property {Object.<string,contentful.IIdReference>|null} [playerBackgroundMedia] ContentfulSleepcastCreated playerBackgroundMedia
|
|
29767
29767
|
* @property {boolean|null} [useVariantPresets] ContentfulSleepcastCreated useVariantPresets
|
|
29768
29768
|
* @property {boolean|null} [isEnabled] ContentfulSleepcastCreated isEnabled
|
|
29769
|
-
* @property {number
|
|
29770
|
-
* @property {string
|
|
29769
|
+
* @property {Object.<string,number>|null} [duration] ContentfulSleepcastCreated duration
|
|
29770
|
+
* @property {Object.<string,string>|null} [narratorGender] ContentfulSleepcastCreated narratorGender
|
|
29771
29771
|
* @property {Object.<string,contentful.IIdReferences>|null} [primaryAudioMedia] ContentfulSleepcastCreated primaryAudioMedia
|
|
29772
29772
|
* @property {Object.<string,contentful.IIdReferences>|null} [secondaryAudioMedia] ContentfulSleepcastCreated secondaryAudioMedia
|
|
29773
29773
|
* @property {Object.<string,contentful.IIdReferences>|null} [mixedAudioMedia] ContentfulSleepcastCreated mixedAudioMedia
|
|
@@ -29789,6 +29789,8 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
29789
29789
|
this.description = {};
|
|
29790
29790
|
this.tileBackgroundMedia = {};
|
|
29791
29791
|
this.playerBackgroundMedia = {};
|
|
29792
|
+
this.duration = {};
|
|
29793
|
+
this.narratorGender = {};
|
|
29792
29794
|
this.primaryAudioMedia = {};
|
|
29793
29795
|
this.secondaryAudioMedia = {};
|
|
29794
29796
|
this.mixedAudioMedia = {};
|
|
@@ -29873,19 +29875,19 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
29873
29875
|
|
|
29874
29876
|
/**
|
|
29875
29877
|
* ContentfulSleepcastCreated duration.
|
|
29876
|
-
* @member {number} duration
|
|
29878
|
+
* @member {Object.<string,number>} duration
|
|
29877
29879
|
* @memberof ContentfulSleepcastCreated
|
|
29878
29880
|
* @instance
|
|
29879
29881
|
*/
|
|
29880
|
-
ContentfulSleepcastCreated.prototype.duration =
|
|
29882
|
+
ContentfulSleepcastCreated.prototype.duration = $util.emptyObject;
|
|
29881
29883
|
|
|
29882
29884
|
/**
|
|
29883
29885
|
* ContentfulSleepcastCreated narratorGender.
|
|
29884
|
-
* @member {string} narratorGender
|
|
29886
|
+
* @member {Object.<string,string>} narratorGender
|
|
29885
29887
|
* @memberof ContentfulSleepcastCreated
|
|
29886
29888
|
* @instance
|
|
29887
29889
|
*/
|
|
29888
|
-
ContentfulSleepcastCreated.prototype.narratorGender =
|
|
29890
|
+
ContentfulSleepcastCreated.prototype.narratorGender = $util.emptyObject;
|
|
29889
29891
|
|
|
29890
29892
|
/**
|
|
29891
29893
|
* ContentfulSleepcastCreated primaryAudioMedia.
|
|
@@ -29979,9 +29981,11 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
29979
29981
|
if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
|
|
29980
29982
|
writer.uint32(/* id 9, wireType 0 =*/72).bool(message.isEnabled);
|
|
29981
29983
|
if (message.duration != null && message.hasOwnProperty("duration"))
|
|
29982
|
-
|
|
29984
|
+
for (var keys = Object.keys(message.duration), i = 0; i < keys.length; ++i)
|
|
29985
|
+
writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).int32(message.duration[keys[i]]).ldelim();
|
|
29983
29986
|
if (message.narratorGender != null && message.hasOwnProperty("narratorGender"))
|
|
29984
|
-
|
|
29987
|
+
for (var keys = Object.keys(message.narratorGender), i = 0; i < keys.length; ++i)
|
|
29988
|
+
writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.narratorGender[keys[i]]).ldelim();
|
|
29985
29989
|
if (message.primaryAudioMedia != null && message.hasOwnProperty("primaryAudioMedia"))
|
|
29986
29990
|
for (var keys = Object.keys(message.primaryAudioMedia), i = 0; i < keys.length; ++i) {
|
|
29987
29991
|
writer.uint32(/* id 12, wireType 2 =*/98).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
@@ -30089,10 +30093,20 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
30089
30093
|
message.isEnabled = reader.bool();
|
|
30090
30094
|
break;
|
|
30091
30095
|
case 10:
|
|
30092
|
-
|
|
30096
|
+
reader.skip().pos++;
|
|
30097
|
+
if (message.duration === $util.emptyObject)
|
|
30098
|
+
message.duration = {};
|
|
30099
|
+
key = reader.string();
|
|
30100
|
+
reader.pos++;
|
|
30101
|
+
message.duration[key] = reader.int32();
|
|
30093
30102
|
break;
|
|
30094
30103
|
case 11:
|
|
30095
|
-
|
|
30104
|
+
reader.skip().pos++;
|
|
30105
|
+
if (message.narratorGender === $util.emptyObject)
|
|
30106
|
+
message.narratorGender = {};
|
|
30107
|
+
key = reader.string();
|
|
30108
|
+
reader.pos++;
|
|
30109
|
+
message.narratorGender[key] = reader.string();
|
|
30096
30110
|
break;
|
|
30097
30111
|
case 12:
|
|
30098
30112
|
reader.skip().pos++;
|
|
@@ -30219,12 +30233,22 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
30219
30233
|
if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
|
|
30220
30234
|
if (typeof message.isEnabled !== "boolean")
|
|
30221
30235
|
return "isEnabled: boolean expected";
|
|
30222
|
-
if (message.duration != null && message.hasOwnProperty("duration"))
|
|
30223
|
-
if (!$util.
|
|
30224
|
-
return "duration:
|
|
30225
|
-
|
|
30226
|
-
|
|
30227
|
-
|
|
30236
|
+
if (message.duration != null && message.hasOwnProperty("duration")) {
|
|
30237
|
+
if (!$util.isObject(message.duration))
|
|
30238
|
+
return "duration: object expected";
|
|
30239
|
+
var key = Object.keys(message.duration);
|
|
30240
|
+
for (var i = 0; i < key.length; ++i)
|
|
30241
|
+
if (!$util.isInteger(message.duration[key[i]]))
|
|
30242
|
+
return "duration: integer{k:string} expected";
|
|
30243
|
+
}
|
|
30244
|
+
if (message.narratorGender != null && message.hasOwnProperty("narratorGender")) {
|
|
30245
|
+
if (!$util.isObject(message.narratorGender))
|
|
30246
|
+
return "narratorGender: object expected";
|
|
30247
|
+
var key = Object.keys(message.narratorGender);
|
|
30248
|
+
for (var i = 0; i < key.length; ++i)
|
|
30249
|
+
if (!$util.isString(message.narratorGender[key[i]]))
|
|
30250
|
+
return "narratorGender: string{k:string} expected";
|
|
30251
|
+
}
|
|
30228
30252
|
if (message.primaryAudioMedia != null && message.hasOwnProperty("primaryAudioMedia")) {
|
|
30229
30253
|
if (!$util.isObject(message.primaryAudioMedia))
|
|
30230
30254
|
return "primaryAudioMedia: object expected";
|
|
@@ -30334,10 +30358,20 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
30334
30358
|
message.useVariantPresets = Boolean(object.useVariantPresets);
|
|
30335
30359
|
if (object.isEnabled != null)
|
|
30336
30360
|
message.isEnabled = Boolean(object.isEnabled);
|
|
30337
|
-
if (object.duration
|
|
30338
|
-
|
|
30339
|
-
|
|
30340
|
-
message.
|
|
30361
|
+
if (object.duration) {
|
|
30362
|
+
if (typeof object.duration !== "object")
|
|
30363
|
+
throw TypeError(".ContentfulSleepcastCreated.duration: object expected");
|
|
30364
|
+
message.duration = {};
|
|
30365
|
+
for (var keys = Object.keys(object.duration), i = 0; i < keys.length; ++i)
|
|
30366
|
+
message.duration[keys[i]] = object.duration[keys[i]] | 0;
|
|
30367
|
+
}
|
|
30368
|
+
if (object.narratorGender) {
|
|
30369
|
+
if (typeof object.narratorGender !== "object")
|
|
30370
|
+
throw TypeError(".ContentfulSleepcastCreated.narratorGender: object expected");
|
|
30371
|
+
message.narratorGender = {};
|
|
30372
|
+
for (var keys = Object.keys(object.narratorGender), i = 0; i < keys.length; ++i)
|
|
30373
|
+
message.narratorGender[keys[i]] = String(object.narratorGender[keys[i]]);
|
|
30374
|
+
}
|
|
30341
30375
|
if (object.primaryAudioMedia) {
|
|
30342
30376
|
if (typeof object.primaryAudioMedia !== "object")
|
|
30343
30377
|
throw TypeError(".ContentfulSleepcastCreated.primaryAudioMedia: object expected");
|
|
@@ -30411,6 +30445,8 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
30411
30445
|
object.description = {};
|
|
30412
30446
|
object.tileBackgroundMedia = {};
|
|
30413
30447
|
object.playerBackgroundMedia = {};
|
|
30448
|
+
object.duration = {};
|
|
30449
|
+
object.narratorGender = {};
|
|
30414
30450
|
object.primaryAudioMedia = {};
|
|
30415
30451
|
object.secondaryAudioMedia = {};
|
|
30416
30452
|
object.mixedAudioMedia = {};
|
|
@@ -30420,8 +30456,6 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
30420
30456
|
object.recipe = null;
|
|
30421
30457
|
object.useVariantPresets = false;
|
|
30422
30458
|
object.isEnabled = false;
|
|
30423
|
-
object.duration = 0;
|
|
30424
|
-
object.narratorGender = "";
|
|
30425
30459
|
if ($util.Long) {
|
|
30426
30460
|
var long = new $util.Long(0, 0, true);
|
|
30427
30461
|
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
@@ -30462,10 +30496,16 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
30462
30496
|
object.useVariantPresets = message.useVariantPresets;
|
|
30463
30497
|
if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
|
|
30464
30498
|
object.isEnabled = message.isEnabled;
|
|
30465
|
-
if (message.duration
|
|
30466
|
-
object.duration =
|
|
30467
|
-
|
|
30468
|
-
|
|
30499
|
+
if (message.duration && (keys2 = Object.keys(message.duration)).length) {
|
|
30500
|
+
object.duration = {};
|
|
30501
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
30502
|
+
object.duration[keys2[j]] = message.duration[keys2[j]];
|
|
30503
|
+
}
|
|
30504
|
+
if (message.narratorGender && (keys2 = Object.keys(message.narratorGender)).length) {
|
|
30505
|
+
object.narratorGender = {};
|
|
30506
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
30507
|
+
object.narratorGender[keys2[j]] = message.narratorGender[keys2[j]];
|
|
30508
|
+
}
|
|
30469
30509
|
if (message.primaryAudioMedia && (keys2 = Object.keys(message.primaryAudioMedia)).length) {
|
|
30470
30510
|
object.primaryAudioMedia = {};
|
|
30471
30511
|
for (var j = 0; j < keys2.length; ++j)
|
|
@@ -30523,8 +30563,8 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
30523
30563
|
* @property {Object.<string,contentful.IIdReference>|null} [playerBackgroundMedia] ContentfulSleepcastUpdated playerBackgroundMedia
|
|
30524
30564
|
* @property {boolean|null} [useVariantPresets] ContentfulSleepcastUpdated useVariantPresets
|
|
30525
30565
|
* @property {boolean|null} [isEnabled] ContentfulSleepcastUpdated isEnabled
|
|
30526
|
-
* @property {number
|
|
30527
|
-
* @property {string
|
|
30566
|
+
* @property {Object.<string,number>|null} [duration] ContentfulSleepcastUpdated duration
|
|
30567
|
+
* @property {Object.<string,string>|null} [narratorGender] ContentfulSleepcastUpdated narratorGender
|
|
30528
30568
|
* @property {Object.<string,contentful.IIdReferences>|null} [primaryAudioMedia] ContentfulSleepcastUpdated primaryAudioMedia
|
|
30529
30569
|
* @property {Object.<string,contentful.IIdReferences>|null} [secondaryAudioMedia] ContentfulSleepcastUpdated secondaryAudioMedia
|
|
30530
30570
|
* @property {Object.<string,contentful.IIdReferences>|null} [mixedAudioMedia] ContentfulSleepcastUpdated mixedAudioMedia
|
|
@@ -30546,6 +30586,8 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
30546
30586
|
this.description = {};
|
|
30547
30587
|
this.tileBackgroundMedia = {};
|
|
30548
30588
|
this.playerBackgroundMedia = {};
|
|
30589
|
+
this.duration = {};
|
|
30590
|
+
this.narratorGender = {};
|
|
30549
30591
|
this.primaryAudioMedia = {};
|
|
30550
30592
|
this.secondaryAudioMedia = {};
|
|
30551
30593
|
this.mixedAudioMedia = {};
|
|
@@ -30630,19 +30672,19 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
30630
30672
|
|
|
30631
30673
|
/**
|
|
30632
30674
|
* ContentfulSleepcastUpdated duration.
|
|
30633
|
-
* @member {number} duration
|
|
30675
|
+
* @member {Object.<string,number>} duration
|
|
30634
30676
|
* @memberof ContentfulSleepcastUpdated
|
|
30635
30677
|
* @instance
|
|
30636
30678
|
*/
|
|
30637
|
-
ContentfulSleepcastUpdated.prototype.duration =
|
|
30679
|
+
ContentfulSleepcastUpdated.prototype.duration = $util.emptyObject;
|
|
30638
30680
|
|
|
30639
30681
|
/**
|
|
30640
30682
|
* ContentfulSleepcastUpdated narratorGender.
|
|
30641
|
-
* @member {string} narratorGender
|
|
30683
|
+
* @member {Object.<string,string>} narratorGender
|
|
30642
30684
|
* @memberof ContentfulSleepcastUpdated
|
|
30643
30685
|
* @instance
|
|
30644
30686
|
*/
|
|
30645
|
-
ContentfulSleepcastUpdated.prototype.narratorGender =
|
|
30687
|
+
ContentfulSleepcastUpdated.prototype.narratorGender = $util.emptyObject;
|
|
30646
30688
|
|
|
30647
30689
|
/**
|
|
30648
30690
|
* ContentfulSleepcastUpdated primaryAudioMedia.
|
|
@@ -30736,9 +30778,11 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
30736
30778
|
if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
|
|
30737
30779
|
writer.uint32(/* id 9, wireType 0 =*/72).bool(message.isEnabled);
|
|
30738
30780
|
if (message.duration != null && message.hasOwnProperty("duration"))
|
|
30739
|
-
|
|
30781
|
+
for (var keys = Object.keys(message.duration), i = 0; i < keys.length; ++i)
|
|
30782
|
+
writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).int32(message.duration[keys[i]]).ldelim();
|
|
30740
30783
|
if (message.narratorGender != null && message.hasOwnProperty("narratorGender"))
|
|
30741
|
-
|
|
30784
|
+
for (var keys = Object.keys(message.narratorGender), i = 0; i < keys.length; ++i)
|
|
30785
|
+
writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.narratorGender[keys[i]]).ldelim();
|
|
30742
30786
|
if (message.primaryAudioMedia != null && message.hasOwnProperty("primaryAudioMedia"))
|
|
30743
30787
|
for (var keys = Object.keys(message.primaryAudioMedia), i = 0; i < keys.length; ++i) {
|
|
30744
30788
|
writer.uint32(/* id 12, wireType 2 =*/98).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
@@ -30846,10 +30890,20 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
30846
30890
|
message.isEnabled = reader.bool();
|
|
30847
30891
|
break;
|
|
30848
30892
|
case 10:
|
|
30849
|
-
|
|
30893
|
+
reader.skip().pos++;
|
|
30894
|
+
if (message.duration === $util.emptyObject)
|
|
30895
|
+
message.duration = {};
|
|
30896
|
+
key = reader.string();
|
|
30897
|
+
reader.pos++;
|
|
30898
|
+
message.duration[key] = reader.int32();
|
|
30850
30899
|
break;
|
|
30851
30900
|
case 11:
|
|
30852
|
-
|
|
30901
|
+
reader.skip().pos++;
|
|
30902
|
+
if (message.narratorGender === $util.emptyObject)
|
|
30903
|
+
message.narratorGender = {};
|
|
30904
|
+
key = reader.string();
|
|
30905
|
+
reader.pos++;
|
|
30906
|
+
message.narratorGender[key] = reader.string();
|
|
30853
30907
|
break;
|
|
30854
30908
|
case 12:
|
|
30855
30909
|
reader.skip().pos++;
|
|
@@ -30976,12 +31030,22 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
30976
31030
|
if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
|
|
30977
31031
|
if (typeof message.isEnabled !== "boolean")
|
|
30978
31032
|
return "isEnabled: boolean expected";
|
|
30979
|
-
if (message.duration != null && message.hasOwnProperty("duration"))
|
|
30980
|
-
if (!$util.
|
|
30981
|
-
return "duration:
|
|
30982
|
-
|
|
30983
|
-
|
|
30984
|
-
|
|
31033
|
+
if (message.duration != null && message.hasOwnProperty("duration")) {
|
|
31034
|
+
if (!$util.isObject(message.duration))
|
|
31035
|
+
return "duration: object expected";
|
|
31036
|
+
var key = Object.keys(message.duration);
|
|
31037
|
+
for (var i = 0; i < key.length; ++i)
|
|
31038
|
+
if (!$util.isInteger(message.duration[key[i]]))
|
|
31039
|
+
return "duration: integer{k:string} expected";
|
|
31040
|
+
}
|
|
31041
|
+
if (message.narratorGender != null && message.hasOwnProperty("narratorGender")) {
|
|
31042
|
+
if (!$util.isObject(message.narratorGender))
|
|
31043
|
+
return "narratorGender: object expected";
|
|
31044
|
+
var key = Object.keys(message.narratorGender);
|
|
31045
|
+
for (var i = 0; i < key.length; ++i)
|
|
31046
|
+
if (!$util.isString(message.narratorGender[key[i]]))
|
|
31047
|
+
return "narratorGender: string{k:string} expected";
|
|
31048
|
+
}
|
|
30985
31049
|
if (message.primaryAudioMedia != null && message.hasOwnProperty("primaryAudioMedia")) {
|
|
30986
31050
|
if (!$util.isObject(message.primaryAudioMedia))
|
|
30987
31051
|
return "primaryAudioMedia: object expected";
|
|
@@ -31091,10 +31155,20 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
31091
31155
|
message.useVariantPresets = Boolean(object.useVariantPresets);
|
|
31092
31156
|
if (object.isEnabled != null)
|
|
31093
31157
|
message.isEnabled = Boolean(object.isEnabled);
|
|
31094
|
-
if (object.duration
|
|
31095
|
-
|
|
31096
|
-
|
|
31097
|
-
message.
|
|
31158
|
+
if (object.duration) {
|
|
31159
|
+
if (typeof object.duration !== "object")
|
|
31160
|
+
throw TypeError(".ContentfulSleepcastUpdated.duration: object expected");
|
|
31161
|
+
message.duration = {};
|
|
31162
|
+
for (var keys = Object.keys(object.duration), i = 0; i < keys.length; ++i)
|
|
31163
|
+
message.duration[keys[i]] = object.duration[keys[i]] | 0;
|
|
31164
|
+
}
|
|
31165
|
+
if (object.narratorGender) {
|
|
31166
|
+
if (typeof object.narratorGender !== "object")
|
|
31167
|
+
throw TypeError(".ContentfulSleepcastUpdated.narratorGender: object expected");
|
|
31168
|
+
message.narratorGender = {};
|
|
31169
|
+
for (var keys = Object.keys(object.narratorGender), i = 0; i < keys.length; ++i)
|
|
31170
|
+
message.narratorGender[keys[i]] = String(object.narratorGender[keys[i]]);
|
|
31171
|
+
}
|
|
31098
31172
|
if (object.primaryAudioMedia) {
|
|
31099
31173
|
if (typeof object.primaryAudioMedia !== "object")
|
|
31100
31174
|
throw TypeError(".ContentfulSleepcastUpdated.primaryAudioMedia: object expected");
|
|
@@ -31168,6 +31242,8 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
31168
31242
|
object.description = {};
|
|
31169
31243
|
object.tileBackgroundMedia = {};
|
|
31170
31244
|
object.playerBackgroundMedia = {};
|
|
31245
|
+
object.duration = {};
|
|
31246
|
+
object.narratorGender = {};
|
|
31171
31247
|
object.primaryAudioMedia = {};
|
|
31172
31248
|
object.secondaryAudioMedia = {};
|
|
31173
31249
|
object.mixedAudioMedia = {};
|
|
@@ -31177,8 +31253,6 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
31177
31253
|
object.recipe = null;
|
|
31178
31254
|
object.useVariantPresets = false;
|
|
31179
31255
|
object.isEnabled = false;
|
|
31180
|
-
object.duration = 0;
|
|
31181
|
-
object.narratorGender = "";
|
|
31182
31256
|
if ($util.Long) {
|
|
31183
31257
|
var long = new $util.Long(0, 0, true);
|
|
31184
31258
|
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
@@ -31219,10 +31293,16 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
31219
31293
|
object.useVariantPresets = message.useVariantPresets;
|
|
31220
31294
|
if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
|
|
31221
31295
|
object.isEnabled = message.isEnabled;
|
|
31222
|
-
if (message.duration
|
|
31223
|
-
object.duration =
|
|
31224
|
-
|
|
31225
|
-
|
|
31296
|
+
if (message.duration && (keys2 = Object.keys(message.duration)).length) {
|
|
31297
|
+
object.duration = {};
|
|
31298
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
31299
|
+
object.duration[keys2[j]] = message.duration[keys2[j]];
|
|
31300
|
+
}
|
|
31301
|
+
if (message.narratorGender && (keys2 = Object.keys(message.narratorGender)).length) {
|
|
31302
|
+
object.narratorGender = {};
|
|
31303
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
31304
|
+
object.narratorGender[keys2[j]] = message.narratorGender[keys2[j]];
|
|
31305
|
+
}
|
|
31226
31306
|
if (message.primaryAudioMedia && (keys2 = Object.keys(message.primaryAudioMedia)).length) {
|
|
31227
31307
|
object.primaryAudioMedia = {};
|
|
31228
31308
|
for (var j = 0; j < keys2.length; ++j)
|
package/package.json
CHANGED