@headspace/protos-events 1.201.0 → 1.203.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 +24 -24
- package/lib/index.js +252 -172
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -10667,16 +10667,16 @@ 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
|
-
/** ContentfulSleepcastCreated
|
|
10676
|
-
|
|
10675
|
+
/** ContentfulSleepcastCreated ambientAudioMedia */
|
|
10676
|
+
ambientAudioMedia?: ({ [k: string]: contentful.IIdReferences }|null);
|
|
10677
10677
|
|
|
10678
|
-
/** ContentfulSleepcastCreated
|
|
10679
|
-
|
|
10678
|
+
/** ContentfulSleepcastCreated voiceAudioMedia */
|
|
10679
|
+
voiceAudioMedia?: ({ [k: string]: contentful.IIdReferences }|null);
|
|
10680
10680
|
|
|
10681
10681
|
/** ContentfulSleepcastCreated mixedAudioMedia */
|
|
10682
10682
|
mixedAudioMedia?: ({ [k: string]: contentful.IIdReferences }|null);
|
|
@@ -10725,16 +10725,16 @@ 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
|
-
/** ContentfulSleepcastCreated
|
|
10734
|
-
public
|
|
10733
|
+
/** ContentfulSleepcastCreated ambientAudioMedia. */
|
|
10734
|
+
public ambientAudioMedia: { [k: string]: contentful.IIdReferences };
|
|
10735
10735
|
|
|
10736
|
-
/** ContentfulSleepcastCreated
|
|
10737
|
-
public
|
|
10736
|
+
/** ContentfulSleepcastCreated voiceAudioMedia. */
|
|
10737
|
+
public voiceAudioMedia: { [k: string]: contentful.IIdReferences };
|
|
10738
10738
|
|
|
10739
10739
|
/** ContentfulSleepcastCreated mixedAudioMedia. */
|
|
10740
10740
|
public mixedAudioMedia: { [k: string]: contentful.IIdReferences };
|
|
@@ -10847,16 +10847,16 @@ 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
|
-
/** ContentfulSleepcastUpdated
|
|
10856
|
-
|
|
10855
|
+
/** ContentfulSleepcastUpdated ambientAudioMedia */
|
|
10856
|
+
ambientAudioMedia?: ({ [k: string]: contentful.IIdReferences }|null);
|
|
10857
10857
|
|
|
10858
|
-
/** ContentfulSleepcastUpdated
|
|
10859
|
-
|
|
10858
|
+
/** ContentfulSleepcastUpdated voiceAudioMedia */
|
|
10859
|
+
voiceAudioMedia?: ({ [k: string]: contentful.IIdReferences }|null);
|
|
10860
10860
|
|
|
10861
10861
|
/** ContentfulSleepcastUpdated mixedAudioMedia */
|
|
10862
10862
|
mixedAudioMedia?: ({ [k: string]: contentful.IIdReferences }|null);
|
|
@@ -10905,16 +10905,16 @@ 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
|
-
/** ContentfulSleepcastUpdated
|
|
10914
|
-
public
|
|
10913
|
+
/** ContentfulSleepcastUpdated ambientAudioMedia. */
|
|
10914
|
+
public ambientAudioMedia: { [k: string]: contentful.IIdReferences };
|
|
10915
10915
|
|
|
10916
|
-
/** ContentfulSleepcastUpdated
|
|
10917
|
-
public
|
|
10916
|
+
/** ContentfulSleepcastUpdated voiceAudioMedia. */
|
|
10917
|
+
public voiceAudioMedia: { [k: string]: contentful.IIdReferences };
|
|
10918
10918
|
|
|
10919
10919
|
/** ContentfulSleepcastUpdated mixedAudioMedia. */
|
|
10920
10920
|
public mixedAudioMedia: { [k: string]: contentful.IIdReferences };
|
package/lib/index.js
CHANGED
|
@@ -29766,10 +29766,10 @@ $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
|
|
29771
|
-
* @property {Object.<string,contentful.IIdReferences>|null} [
|
|
29772
|
-
* @property {Object.<string,contentful.IIdReferences>|null} [
|
|
29769
|
+
* @property {Object.<string,number>|null} [duration] ContentfulSleepcastCreated duration
|
|
29770
|
+
* @property {Object.<string,string>|null} [narratorGender] ContentfulSleepcastCreated narratorGender
|
|
29771
|
+
* @property {Object.<string,contentful.IIdReferences>|null} [ambientAudioMedia] ContentfulSleepcastCreated ambientAudioMedia
|
|
29772
|
+
* @property {Object.<string,contentful.IIdReferences>|null} [voiceAudioMedia] ContentfulSleepcastCreated voiceAudioMedia
|
|
29773
29773
|
* @property {Object.<string,contentful.IIdReferences>|null} [mixedAudioMedia] ContentfulSleepcastCreated mixedAudioMedia
|
|
29774
29774
|
* @property {Array.<contentful.ISlugReference>|null} [accessGroup] ContentfulSleepcastCreated accessGroup
|
|
29775
29775
|
* @property {number|Long|null} [createdAt] ContentfulSleepcastCreated createdAt
|
|
@@ -29789,8 +29789,10 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
29789
29789
|
this.description = {};
|
|
29790
29790
|
this.tileBackgroundMedia = {};
|
|
29791
29791
|
this.playerBackgroundMedia = {};
|
|
29792
|
-
this.
|
|
29793
|
-
this.
|
|
29792
|
+
this.duration = {};
|
|
29793
|
+
this.narratorGender = {};
|
|
29794
|
+
this.ambientAudioMedia = {};
|
|
29795
|
+
this.voiceAudioMedia = {};
|
|
29794
29796
|
this.mixedAudioMedia = {};
|
|
29795
29797
|
this.accessGroup = [];
|
|
29796
29798
|
if (properties)
|
|
@@ -29873,35 +29875,35 @@ $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
|
-
* ContentfulSleepcastCreated
|
|
29892
|
-
* @member {Object.<string,contentful.IIdReferences>}
|
|
29893
|
+
* ContentfulSleepcastCreated ambientAudioMedia.
|
|
29894
|
+
* @member {Object.<string,contentful.IIdReferences>} ambientAudioMedia
|
|
29893
29895
|
* @memberof ContentfulSleepcastCreated
|
|
29894
29896
|
* @instance
|
|
29895
29897
|
*/
|
|
29896
|
-
ContentfulSleepcastCreated.prototype.
|
|
29898
|
+
ContentfulSleepcastCreated.prototype.ambientAudioMedia = $util.emptyObject;
|
|
29897
29899
|
|
|
29898
29900
|
/**
|
|
29899
|
-
* ContentfulSleepcastCreated
|
|
29900
|
-
* @member {Object.<string,contentful.IIdReferences>}
|
|
29901
|
+
* ContentfulSleepcastCreated voiceAudioMedia.
|
|
29902
|
+
* @member {Object.<string,contentful.IIdReferences>} voiceAudioMedia
|
|
29901
29903
|
* @memberof ContentfulSleepcastCreated
|
|
29902
29904
|
* @instance
|
|
29903
29905
|
*/
|
|
29904
|
-
ContentfulSleepcastCreated.prototype.
|
|
29906
|
+
ContentfulSleepcastCreated.prototype.voiceAudioMedia = $util.emptyObject;
|
|
29905
29907
|
|
|
29906
29908
|
/**
|
|
29907
29909
|
* ContentfulSleepcastCreated mixedAudioMedia.
|
|
@@ -29979,18 +29981,20 @@ $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
|
-
|
|
29985
|
-
|
|
29986
|
-
|
|
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();
|
|
29989
|
+
if (message.ambientAudioMedia != null && message.hasOwnProperty("ambientAudioMedia"))
|
|
29990
|
+
for (var keys = Object.keys(message.ambientAudioMedia), 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]);
|
|
29988
|
-
$root.contentful.IdReferences.encode(message.
|
|
29992
|
+
$root.contentful.IdReferences.encode(message.ambientAudioMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
29989
29993
|
}
|
|
29990
|
-
if (message.
|
|
29991
|
-
for (var keys = Object.keys(message.
|
|
29994
|
+
if (message.voiceAudioMedia != null && message.hasOwnProperty("voiceAudioMedia"))
|
|
29995
|
+
for (var keys = Object.keys(message.voiceAudioMedia), i = 0; i < keys.length; ++i) {
|
|
29992
29996
|
writer.uint32(/* id 13, wireType 2 =*/106).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
29993
|
-
$root.contentful.IdReferences.encode(message.
|
|
29997
|
+
$root.contentful.IdReferences.encode(message.voiceAudioMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
29994
29998
|
}
|
|
29995
29999
|
if (message.mixedAudioMedia != null && message.hasOwnProperty("mixedAudioMedia"))
|
|
29996
30000
|
for (var keys = Object.keys(message.mixedAudioMedia), i = 0; i < keys.length; ++i) {
|
|
@@ -30089,26 +30093,36 @@ $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++;
|
|
30099
|
-
if (message.
|
|
30100
|
-
message.
|
|
30113
|
+
if (message.ambientAudioMedia === $util.emptyObject)
|
|
30114
|
+
message.ambientAudioMedia = {};
|
|
30101
30115
|
key = reader.string();
|
|
30102
30116
|
reader.pos++;
|
|
30103
|
-
message.
|
|
30117
|
+
message.ambientAudioMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
|
|
30104
30118
|
break;
|
|
30105
30119
|
case 13:
|
|
30106
30120
|
reader.skip().pos++;
|
|
30107
|
-
if (message.
|
|
30108
|
-
message.
|
|
30121
|
+
if (message.voiceAudioMedia === $util.emptyObject)
|
|
30122
|
+
message.voiceAudioMedia = {};
|
|
30109
30123
|
key = reader.string();
|
|
30110
30124
|
reader.pos++;
|
|
30111
|
-
message.
|
|
30125
|
+
message.voiceAudioMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
|
|
30112
30126
|
break;
|
|
30113
30127
|
case 14:
|
|
30114
30128
|
reader.skip().pos++;
|
|
@@ -30219,30 +30233,40 @@ $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
|
-
|
|
30228
|
-
|
|
30229
|
-
|
|
30230
|
-
|
|
30231
|
-
|
|
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
|
+
}
|
|
30252
|
+
if (message.ambientAudioMedia != null && message.hasOwnProperty("ambientAudioMedia")) {
|
|
30253
|
+
if (!$util.isObject(message.ambientAudioMedia))
|
|
30254
|
+
return "ambientAudioMedia: object expected";
|
|
30255
|
+
var key = Object.keys(message.ambientAudioMedia);
|
|
30232
30256
|
for (var i = 0; i < key.length; ++i) {
|
|
30233
|
-
var error = $root.contentful.IdReferences.verify(message.
|
|
30257
|
+
var error = $root.contentful.IdReferences.verify(message.ambientAudioMedia[key[i]]);
|
|
30234
30258
|
if (error)
|
|
30235
|
-
return "
|
|
30259
|
+
return "ambientAudioMedia." + error;
|
|
30236
30260
|
}
|
|
30237
30261
|
}
|
|
30238
|
-
if (message.
|
|
30239
|
-
if (!$util.isObject(message.
|
|
30240
|
-
return "
|
|
30241
|
-
var key = Object.keys(message.
|
|
30262
|
+
if (message.voiceAudioMedia != null && message.hasOwnProperty("voiceAudioMedia")) {
|
|
30263
|
+
if (!$util.isObject(message.voiceAudioMedia))
|
|
30264
|
+
return "voiceAudioMedia: object expected";
|
|
30265
|
+
var key = Object.keys(message.voiceAudioMedia);
|
|
30242
30266
|
for (var i = 0; i < key.length; ++i) {
|
|
30243
|
-
var error = $root.contentful.IdReferences.verify(message.
|
|
30267
|
+
var error = $root.contentful.IdReferences.verify(message.voiceAudioMedia[key[i]]);
|
|
30244
30268
|
if (error)
|
|
30245
|
-
return "
|
|
30269
|
+
return "voiceAudioMedia." + error;
|
|
30246
30270
|
}
|
|
30247
30271
|
}
|
|
30248
30272
|
if (message.mixedAudioMedia != null && message.hasOwnProperty("mixedAudioMedia")) {
|
|
@@ -30334,28 +30358,38 @@ $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.
|
|
30341
|
-
|
|
30342
|
-
|
|
30343
|
-
|
|
30344
|
-
|
|
30345
|
-
|
|
30346
|
-
|
|
30347
|
-
|
|
30348
|
-
|
|
30349
|
-
|
|
30350
|
-
}
|
|
30351
|
-
if (object.
|
|
30352
|
-
if (typeof object.
|
|
30353
|
-
throw TypeError(".ContentfulSleepcastCreated.
|
|
30354
|
-
message.
|
|
30355
|
-
for (var keys = Object.keys(object.
|
|
30356
|
-
if (typeof object.
|
|
30357
|
-
throw TypeError(".ContentfulSleepcastCreated.
|
|
30358
|
-
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
|
+
}
|
|
30375
|
+
if (object.ambientAudioMedia) {
|
|
30376
|
+
if (typeof object.ambientAudioMedia !== "object")
|
|
30377
|
+
throw TypeError(".ContentfulSleepcastCreated.ambientAudioMedia: object expected");
|
|
30378
|
+
message.ambientAudioMedia = {};
|
|
30379
|
+
for (var keys = Object.keys(object.ambientAudioMedia), i = 0; i < keys.length; ++i) {
|
|
30380
|
+
if (typeof object.ambientAudioMedia[keys[i]] !== "object")
|
|
30381
|
+
throw TypeError(".ContentfulSleepcastCreated.ambientAudioMedia: object expected");
|
|
30382
|
+
message.ambientAudioMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.ambientAudioMedia[keys[i]]);
|
|
30383
|
+
}
|
|
30384
|
+
}
|
|
30385
|
+
if (object.voiceAudioMedia) {
|
|
30386
|
+
if (typeof object.voiceAudioMedia !== "object")
|
|
30387
|
+
throw TypeError(".ContentfulSleepcastCreated.voiceAudioMedia: object expected");
|
|
30388
|
+
message.voiceAudioMedia = {};
|
|
30389
|
+
for (var keys = Object.keys(object.voiceAudioMedia), i = 0; i < keys.length; ++i) {
|
|
30390
|
+
if (typeof object.voiceAudioMedia[keys[i]] !== "object")
|
|
30391
|
+
throw TypeError(".ContentfulSleepcastCreated.voiceAudioMedia: object expected");
|
|
30392
|
+
message.voiceAudioMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.voiceAudioMedia[keys[i]]);
|
|
30359
30393
|
}
|
|
30360
30394
|
}
|
|
30361
30395
|
if (object.mixedAudioMedia) {
|
|
@@ -30411,8 +30445,10 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
30411
30445
|
object.description = {};
|
|
30412
30446
|
object.tileBackgroundMedia = {};
|
|
30413
30447
|
object.playerBackgroundMedia = {};
|
|
30414
|
-
object.
|
|
30415
|
-
object.
|
|
30448
|
+
object.duration = {};
|
|
30449
|
+
object.narratorGender = {};
|
|
30450
|
+
object.ambientAudioMedia = {};
|
|
30451
|
+
object.voiceAudioMedia = {};
|
|
30416
30452
|
object.mixedAudioMedia = {};
|
|
30417
30453
|
}
|
|
30418
30454
|
if (options.defaults) {
|
|
@@ -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,19 +30496,25 @@ $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
|
-
|
|
30469
|
-
|
|
30470
|
-
|
|
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
|
+
}
|
|
30509
|
+
if (message.ambientAudioMedia && (keys2 = Object.keys(message.ambientAudioMedia)).length) {
|
|
30510
|
+
object.ambientAudioMedia = {};
|
|
30471
30511
|
for (var j = 0; j < keys2.length; ++j)
|
|
30472
|
-
object.
|
|
30512
|
+
object.ambientAudioMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.ambientAudioMedia[keys2[j]], options);
|
|
30473
30513
|
}
|
|
30474
|
-
if (message.
|
|
30475
|
-
object.
|
|
30514
|
+
if (message.voiceAudioMedia && (keys2 = Object.keys(message.voiceAudioMedia)).length) {
|
|
30515
|
+
object.voiceAudioMedia = {};
|
|
30476
30516
|
for (var j = 0; j < keys2.length; ++j)
|
|
30477
|
-
object.
|
|
30517
|
+
object.voiceAudioMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.voiceAudioMedia[keys2[j]], options);
|
|
30478
30518
|
}
|
|
30479
30519
|
if (message.mixedAudioMedia && (keys2 = Object.keys(message.mixedAudioMedia)).length) {
|
|
30480
30520
|
object.mixedAudioMedia = {};
|
|
@@ -30523,10 +30563,10 @@ $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
|
|
30528
|
-
* @property {Object.<string,contentful.IIdReferences>|null} [
|
|
30529
|
-
* @property {Object.<string,contentful.IIdReferences>|null} [
|
|
30566
|
+
* @property {Object.<string,number>|null} [duration] ContentfulSleepcastUpdated duration
|
|
30567
|
+
* @property {Object.<string,string>|null} [narratorGender] ContentfulSleepcastUpdated narratorGender
|
|
30568
|
+
* @property {Object.<string,contentful.IIdReferences>|null} [ambientAudioMedia] ContentfulSleepcastUpdated ambientAudioMedia
|
|
30569
|
+
* @property {Object.<string,contentful.IIdReferences>|null} [voiceAudioMedia] ContentfulSleepcastUpdated voiceAudioMedia
|
|
30530
30570
|
* @property {Object.<string,contentful.IIdReferences>|null} [mixedAudioMedia] ContentfulSleepcastUpdated mixedAudioMedia
|
|
30531
30571
|
* @property {Array.<contentful.ISlugReference>|null} [accessGroup] ContentfulSleepcastUpdated accessGroup
|
|
30532
30572
|
* @property {number|Long|null} [updatedAt] ContentfulSleepcastUpdated updatedAt
|
|
@@ -30546,8 +30586,10 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
30546
30586
|
this.description = {};
|
|
30547
30587
|
this.tileBackgroundMedia = {};
|
|
30548
30588
|
this.playerBackgroundMedia = {};
|
|
30549
|
-
this.
|
|
30550
|
-
this.
|
|
30589
|
+
this.duration = {};
|
|
30590
|
+
this.narratorGender = {};
|
|
30591
|
+
this.ambientAudioMedia = {};
|
|
30592
|
+
this.voiceAudioMedia = {};
|
|
30551
30593
|
this.mixedAudioMedia = {};
|
|
30552
30594
|
this.accessGroup = [];
|
|
30553
30595
|
if (properties)
|
|
@@ -30630,35 +30672,35 @@ $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
|
-
* ContentfulSleepcastUpdated
|
|
30649
|
-
* @member {Object.<string,contentful.IIdReferences>}
|
|
30690
|
+
* ContentfulSleepcastUpdated ambientAudioMedia.
|
|
30691
|
+
* @member {Object.<string,contentful.IIdReferences>} ambientAudioMedia
|
|
30650
30692
|
* @memberof ContentfulSleepcastUpdated
|
|
30651
30693
|
* @instance
|
|
30652
30694
|
*/
|
|
30653
|
-
ContentfulSleepcastUpdated.prototype.
|
|
30695
|
+
ContentfulSleepcastUpdated.prototype.ambientAudioMedia = $util.emptyObject;
|
|
30654
30696
|
|
|
30655
30697
|
/**
|
|
30656
|
-
* ContentfulSleepcastUpdated
|
|
30657
|
-
* @member {Object.<string,contentful.IIdReferences>}
|
|
30698
|
+
* ContentfulSleepcastUpdated voiceAudioMedia.
|
|
30699
|
+
* @member {Object.<string,contentful.IIdReferences>} voiceAudioMedia
|
|
30658
30700
|
* @memberof ContentfulSleepcastUpdated
|
|
30659
30701
|
* @instance
|
|
30660
30702
|
*/
|
|
30661
|
-
ContentfulSleepcastUpdated.prototype.
|
|
30703
|
+
ContentfulSleepcastUpdated.prototype.voiceAudioMedia = $util.emptyObject;
|
|
30662
30704
|
|
|
30663
30705
|
/**
|
|
30664
30706
|
* ContentfulSleepcastUpdated mixedAudioMedia.
|
|
@@ -30736,18 +30778,20 @@ $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
|
-
|
|
30742
|
-
|
|
30743
|
-
|
|
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();
|
|
30786
|
+
if (message.ambientAudioMedia != null && message.hasOwnProperty("ambientAudioMedia"))
|
|
30787
|
+
for (var keys = Object.keys(message.ambientAudioMedia), 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]);
|
|
30745
|
-
$root.contentful.IdReferences.encode(message.
|
|
30789
|
+
$root.contentful.IdReferences.encode(message.ambientAudioMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
30746
30790
|
}
|
|
30747
|
-
if (message.
|
|
30748
|
-
for (var keys = Object.keys(message.
|
|
30791
|
+
if (message.voiceAudioMedia != null && message.hasOwnProperty("voiceAudioMedia"))
|
|
30792
|
+
for (var keys = Object.keys(message.voiceAudioMedia), i = 0; i < keys.length; ++i) {
|
|
30749
30793
|
writer.uint32(/* id 13, wireType 2 =*/106).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
30750
|
-
$root.contentful.IdReferences.encode(message.
|
|
30794
|
+
$root.contentful.IdReferences.encode(message.voiceAudioMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
30751
30795
|
}
|
|
30752
30796
|
if (message.mixedAudioMedia != null && message.hasOwnProperty("mixedAudioMedia"))
|
|
30753
30797
|
for (var keys = Object.keys(message.mixedAudioMedia), i = 0; i < keys.length; ++i) {
|
|
@@ -30846,26 +30890,36 @@ $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++;
|
|
30856
|
-
if (message.
|
|
30857
|
-
message.
|
|
30910
|
+
if (message.ambientAudioMedia === $util.emptyObject)
|
|
30911
|
+
message.ambientAudioMedia = {};
|
|
30858
30912
|
key = reader.string();
|
|
30859
30913
|
reader.pos++;
|
|
30860
|
-
message.
|
|
30914
|
+
message.ambientAudioMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
|
|
30861
30915
|
break;
|
|
30862
30916
|
case 13:
|
|
30863
30917
|
reader.skip().pos++;
|
|
30864
|
-
if (message.
|
|
30865
|
-
message.
|
|
30918
|
+
if (message.voiceAudioMedia === $util.emptyObject)
|
|
30919
|
+
message.voiceAudioMedia = {};
|
|
30866
30920
|
key = reader.string();
|
|
30867
30921
|
reader.pos++;
|
|
30868
|
-
message.
|
|
30922
|
+
message.voiceAudioMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
|
|
30869
30923
|
break;
|
|
30870
30924
|
case 14:
|
|
30871
30925
|
reader.skip().pos++;
|
|
@@ -30976,30 +31030,40 @@ $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
|
-
|
|
30985
|
-
|
|
30986
|
-
|
|
30987
|
-
|
|
30988
|
-
|
|
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
|
+
}
|
|
31049
|
+
if (message.ambientAudioMedia != null && message.hasOwnProperty("ambientAudioMedia")) {
|
|
31050
|
+
if (!$util.isObject(message.ambientAudioMedia))
|
|
31051
|
+
return "ambientAudioMedia: object expected";
|
|
31052
|
+
var key = Object.keys(message.ambientAudioMedia);
|
|
30989
31053
|
for (var i = 0; i < key.length; ++i) {
|
|
30990
|
-
var error = $root.contentful.IdReferences.verify(message.
|
|
31054
|
+
var error = $root.contentful.IdReferences.verify(message.ambientAudioMedia[key[i]]);
|
|
30991
31055
|
if (error)
|
|
30992
|
-
return "
|
|
31056
|
+
return "ambientAudioMedia." + error;
|
|
30993
31057
|
}
|
|
30994
31058
|
}
|
|
30995
|
-
if (message.
|
|
30996
|
-
if (!$util.isObject(message.
|
|
30997
|
-
return "
|
|
30998
|
-
var key = Object.keys(message.
|
|
31059
|
+
if (message.voiceAudioMedia != null && message.hasOwnProperty("voiceAudioMedia")) {
|
|
31060
|
+
if (!$util.isObject(message.voiceAudioMedia))
|
|
31061
|
+
return "voiceAudioMedia: object expected";
|
|
31062
|
+
var key = Object.keys(message.voiceAudioMedia);
|
|
30999
31063
|
for (var i = 0; i < key.length; ++i) {
|
|
31000
|
-
var error = $root.contentful.IdReferences.verify(message.
|
|
31064
|
+
var error = $root.contentful.IdReferences.verify(message.voiceAudioMedia[key[i]]);
|
|
31001
31065
|
if (error)
|
|
31002
|
-
return "
|
|
31066
|
+
return "voiceAudioMedia." + error;
|
|
31003
31067
|
}
|
|
31004
31068
|
}
|
|
31005
31069
|
if (message.mixedAudioMedia != null && message.hasOwnProperty("mixedAudioMedia")) {
|
|
@@ -31091,28 +31155,38 @@ $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.
|
|
31098
|
-
|
|
31099
|
-
|
|
31100
|
-
|
|
31101
|
-
|
|
31102
|
-
|
|
31103
|
-
|
|
31104
|
-
|
|
31105
|
-
|
|
31106
|
-
|
|
31107
|
-
}
|
|
31108
|
-
if (object.
|
|
31109
|
-
if (typeof object.
|
|
31110
|
-
throw TypeError(".ContentfulSleepcastUpdated.
|
|
31111
|
-
message.
|
|
31112
|
-
for (var keys = Object.keys(object.
|
|
31113
|
-
if (typeof object.
|
|
31114
|
-
throw TypeError(".ContentfulSleepcastUpdated.
|
|
31115
|
-
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
|
+
}
|
|
31172
|
+
if (object.ambientAudioMedia) {
|
|
31173
|
+
if (typeof object.ambientAudioMedia !== "object")
|
|
31174
|
+
throw TypeError(".ContentfulSleepcastUpdated.ambientAudioMedia: object expected");
|
|
31175
|
+
message.ambientAudioMedia = {};
|
|
31176
|
+
for (var keys = Object.keys(object.ambientAudioMedia), i = 0; i < keys.length; ++i) {
|
|
31177
|
+
if (typeof object.ambientAudioMedia[keys[i]] !== "object")
|
|
31178
|
+
throw TypeError(".ContentfulSleepcastUpdated.ambientAudioMedia: object expected");
|
|
31179
|
+
message.ambientAudioMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.ambientAudioMedia[keys[i]]);
|
|
31180
|
+
}
|
|
31181
|
+
}
|
|
31182
|
+
if (object.voiceAudioMedia) {
|
|
31183
|
+
if (typeof object.voiceAudioMedia !== "object")
|
|
31184
|
+
throw TypeError(".ContentfulSleepcastUpdated.voiceAudioMedia: object expected");
|
|
31185
|
+
message.voiceAudioMedia = {};
|
|
31186
|
+
for (var keys = Object.keys(object.voiceAudioMedia), i = 0; i < keys.length; ++i) {
|
|
31187
|
+
if (typeof object.voiceAudioMedia[keys[i]] !== "object")
|
|
31188
|
+
throw TypeError(".ContentfulSleepcastUpdated.voiceAudioMedia: object expected");
|
|
31189
|
+
message.voiceAudioMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.voiceAudioMedia[keys[i]]);
|
|
31116
31190
|
}
|
|
31117
31191
|
}
|
|
31118
31192
|
if (object.mixedAudioMedia) {
|
|
@@ -31168,8 +31242,10 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
31168
31242
|
object.description = {};
|
|
31169
31243
|
object.tileBackgroundMedia = {};
|
|
31170
31244
|
object.playerBackgroundMedia = {};
|
|
31171
|
-
object.
|
|
31172
|
-
object.
|
|
31245
|
+
object.duration = {};
|
|
31246
|
+
object.narratorGender = {};
|
|
31247
|
+
object.ambientAudioMedia = {};
|
|
31248
|
+
object.voiceAudioMedia = {};
|
|
31173
31249
|
object.mixedAudioMedia = {};
|
|
31174
31250
|
}
|
|
31175
31251
|
if (options.defaults) {
|
|
@@ -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,19 +31293,25 @@ $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
|
-
|
|
31226
|
-
|
|
31227
|
-
|
|
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
|
+
}
|
|
31306
|
+
if (message.ambientAudioMedia && (keys2 = Object.keys(message.ambientAudioMedia)).length) {
|
|
31307
|
+
object.ambientAudioMedia = {};
|
|
31228
31308
|
for (var j = 0; j < keys2.length; ++j)
|
|
31229
|
-
object.
|
|
31309
|
+
object.ambientAudioMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.ambientAudioMedia[keys2[j]], options);
|
|
31230
31310
|
}
|
|
31231
|
-
if (message.
|
|
31232
|
-
object.
|
|
31311
|
+
if (message.voiceAudioMedia && (keys2 = Object.keys(message.voiceAudioMedia)).length) {
|
|
31312
|
+
object.voiceAudioMedia = {};
|
|
31233
31313
|
for (var j = 0; j < keys2.length; ++j)
|
|
31234
|
-
object.
|
|
31314
|
+
object.voiceAudioMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.voiceAudioMedia[keys2[j]], options);
|
|
31235
31315
|
}
|
|
31236
31316
|
if (message.mixedAudioMedia && (keys2 = Object.keys(message.mixedAudioMedia)).length) {
|
|
31237
31317
|
object.mixedAudioMedia = {};
|
package/package.json
CHANGED