@headspace/protos-events 1.200.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 +28 -4
- package/lib/index.js +204 -36
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -10666,6 +10666,12 @@ export interface IContentfulSleepcastCreated {
|
|
|
10666
10666
|
/** ContentfulSleepcastCreated isEnabled */
|
|
10667
10667
|
isEnabled?: (boolean|null);
|
|
10668
10668
|
|
|
10669
|
+
/** ContentfulSleepcastCreated duration */
|
|
10670
|
+
duration?: ({ [k: string]: number }|null);
|
|
10671
|
+
|
|
10672
|
+
/** ContentfulSleepcastCreated narratorGender */
|
|
10673
|
+
narratorGender?: ({ [k: string]: string }|null);
|
|
10674
|
+
|
|
10669
10675
|
/** ContentfulSleepcastCreated primaryAudioMedia */
|
|
10670
10676
|
primaryAudioMedia?: ({ [k: string]: contentful.IIdReferences }|null);
|
|
10671
10677
|
|
|
@@ -10718,6 +10724,12 @@ export class ContentfulSleepcastCreated implements IContentfulSleepcastCreated {
|
|
|
10718
10724
|
/** ContentfulSleepcastCreated isEnabled. */
|
|
10719
10725
|
public isEnabled: boolean;
|
|
10720
10726
|
|
|
10727
|
+
/** ContentfulSleepcastCreated duration. */
|
|
10728
|
+
public duration: { [k: string]: number };
|
|
10729
|
+
|
|
10730
|
+
/** ContentfulSleepcastCreated narratorGender. */
|
|
10731
|
+
public narratorGender: { [k: string]: string };
|
|
10732
|
+
|
|
10721
10733
|
/** ContentfulSleepcastCreated primaryAudioMedia. */
|
|
10722
10734
|
public primaryAudioMedia: { [k: string]: contentful.IIdReferences };
|
|
10723
10735
|
|
|
@@ -10834,6 +10846,12 @@ export interface IContentfulSleepcastUpdated {
|
|
|
10834
10846
|
/** ContentfulSleepcastUpdated isEnabled */
|
|
10835
10847
|
isEnabled?: (boolean|null);
|
|
10836
10848
|
|
|
10849
|
+
/** ContentfulSleepcastUpdated duration */
|
|
10850
|
+
duration?: ({ [k: string]: number }|null);
|
|
10851
|
+
|
|
10852
|
+
/** ContentfulSleepcastUpdated narratorGender */
|
|
10853
|
+
narratorGender?: ({ [k: string]: string }|null);
|
|
10854
|
+
|
|
10837
10855
|
/** ContentfulSleepcastUpdated primaryAudioMedia */
|
|
10838
10856
|
primaryAudioMedia?: ({ [k: string]: contentful.IIdReferences }|null);
|
|
10839
10857
|
|
|
@@ -10886,6 +10904,12 @@ export class ContentfulSleepcastUpdated implements IContentfulSleepcastUpdated {
|
|
|
10886
10904
|
/** ContentfulSleepcastUpdated isEnabled. */
|
|
10887
10905
|
public isEnabled: boolean;
|
|
10888
10906
|
|
|
10907
|
+
/** ContentfulSleepcastUpdated duration. */
|
|
10908
|
+
public duration: { [k: string]: number };
|
|
10909
|
+
|
|
10910
|
+
/** ContentfulSleepcastUpdated narratorGender. */
|
|
10911
|
+
public narratorGender: { [k: string]: string };
|
|
10912
|
+
|
|
10889
10913
|
/** ContentfulSleepcastUpdated primaryAudioMedia. */
|
|
10890
10914
|
public primaryAudioMedia: { [k: string]: contentful.IIdReferences };
|
|
10891
10915
|
|
|
@@ -15087,7 +15111,7 @@ export interface ISleepcastCreated {
|
|
|
15087
15111
|
slug?: (string|null);
|
|
15088
15112
|
|
|
15089
15113
|
/** SleepcastCreated entityId */
|
|
15090
|
-
entityId?: (
|
|
15114
|
+
entityId?: (number|null);
|
|
15091
15115
|
|
|
15092
15116
|
/** SleepcastCreated tileBackgroundMediaId */
|
|
15093
15117
|
tileBackgroundMediaId?: (number|null);
|
|
@@ -15112,7 +15136,7 @@ export class SleepcastCreated implements ISleepcastCreated {
|
|
|
15112
15136
|
public slug: string;
|
|
15113
15137
|
|
|
15114
15138
|
/** SleepcastCreated entityId. */
|
|
15115
|
-
public entityId:
|
|
15139
|
+
public entityId: number;
|
|
15116
15140
|
|
|
15117
15141
|
/** SleepcastCreated tileBackgroundMediaId. */
|
|
15118
15142
|
public tileBackgroundMediaId: number;
|
|
@@ -15201,7 +15225,7 @@ export interface ISleepcastUpdated {
|
|
|
15201
15225
|
slug?: (string|null);
|
|
15202
15226
|
|
|
15203
15227
|
/** SleepcastUpdated entityId */
|
|
15204
|
-
entityId?: (
|
|
15228
|
+
entityId?: (number|null);
|
|
15205
15229
|
|
|
15206
15230
|
/** SleepcastUpdated tileBackgroundMediaId */
|
|
15207
15231
|
tileBackgroundMediaId?: (number|null);
|
|
@@ -15226,7 +15250,7 @@ export class SleepcastUpdated implements ISleepcastUpdated {
|
|
|
15226
15250
|
public slug: string;
|
|
15227
15251
|
|
|
15228
15252
|
/** SleepcastUpdated entityId. */
|
|
15229
|
-
public entityId:
|
|
15253
|
+
public entityId: number;
|
|
15230
15254
|
|
|
15231
15255
|
/** SleepcastUpdated tileBackgroundMediaId. */
|
|
15232
15256
|
public tileBackgroundMediaId: number;
|
package/lib/index.js
CHANGED
|
@@ -29766,6 +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 {Object.<string,number>|null} [duration] ContentfulSleepcastCreated duration
|
|
29770
|
+
* @property {Object.<string,string>|null} [narratorGender] ContentfulSleepcastCreated narratorGender
|
|
29769
29771
|
* @property {Object.<string,contentful.IIdReferences>|null} [primaryAudioMedia] ContentfulSleepcastCreated primaryAudioMedia
|
|
29770
29772
|
* @property {Object.<string,contentful.IIdReferences>|null} [secondaryAudioMedia] ContentfulSleepcastCreated secondaryAudioMedia
|
|
29771
29773
|
* @property {Object.<string,contentful.IIdReferences>|null} [mixedAudioMedia] ContentfulSleepcastCreated mixedAudioMedia
|
|
@@ -29787,6 +29789,8 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
29787
29789
|
this.description = {};
|
|
29788
29790
|
this.tileBackgroundMedia = {};
|
|
29789
29791
|
this.playerBackgroundMedia = {};
|
|
29792
|
+
this.duration = {};
|
|
29793
|
+
this.narratorGender = {};
|
|
29790
29794
|
this.primaryAudioMedia = {};
|
|
29791
29795
|
this.secondaryAudioMedia = {};
|
|
29792
29796
|
this.mixedAudioMedia = {};
|
|
@@ -29869,6 +29873,22 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
29869
29873
|
*/
|
|
29870
29874
|
ContentfulSleepcastCreated.prototype.isEnabled = false;
|
|
29871
29875
|
|
|
29876
|
+
/**
|
|
29877
|
+
* ContentfulSleepcastCreated duration.
|
|
29878
|
+
* @member {Object.<string,number>} duration
|
|
29879
|
+
* @memberof ContentfulSleepcastCreated
|
|
29880
|
+
* @instance
|
|
29881
|
+
*/
|
|
29882
|
+
ContentfulSleepcastCreated.prototype.duration = $util.emptyObject;
|
|
29883
|
+
|
|
29884
|
+
/**
|
|
29885
|
+
* ContentfulSleepcastCreated narratorGender.
|
|
29886
|
+
* @member {Object.<string,string>} narratorGender
|
|
29887
|
+
* @memberof ContentfulSleepcastCreated
|
|
29888
|
+
* @instance
|
|
29889
|
+
*/
|
|
29890
|
+
ContentfulSleepcastCreated.prototype.narratorGender = $util.emptyObject;
|
|
29891
|
+
|
|
29872
29892
|
/**
|
|
29873
29893
|
* ContentfulSleepcastCreated primaryAudioMedia.
|
|
29874
29894
|
* @member {Object.<string,contentful.IIdReferences>} primaryAudioMedia
|
|
@@ -29960,26 +29980,32 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
29960
29980
|
writer.uint32(/* id 8, wireType 0 =*/64).bool(message.useVariantPresets);
|
|
29961
29981
|
if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
|
|
29962
29982
|
writer.uint32(/* id 9, wireType 0 =*/72).bool(message.isEnabled);
|
|
29983
|
+
if (message.duration != null && message.hasOwnProperty("duration"))
|
|
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();
|
|
29986
|
+
if (message.narratorGender != null && message.hasOwnProperty("narratorGender"))
|
|
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();
|
|
29963
29989
|
if (message.primaryAudioMedia != null && message.hasOwnProperty("primaryAudioMedia"))
|
|
29964
29990
|
for (var keys = Object.keys(message.primaryAudioMedia), i = 0; i < keys.length; ++i) {
|
|
29965
|
-
writer.uint32(/* id
|
|
29991
|
+
writer.uint32(/* id 12, wireType 2 =*/98).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
29966
29992
|
$root.contentful.IdReferences.encode(message.primaryAudioMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
29967
29993
|
}
|
|
29968
29994
|
if (message.secondaryAudioMedia != null && message.hasOwnProperty("secondaryAudioMedia"))
|
|
29969
29995
|
for (var keys = Object.keys(message.secondaryAudioMedia), i = 0; i < keys.length; ++i) {
|
|
29970
|
-
writer.uint32(/* id
|
|
29996
|
+
writer.uint32(/* id 13, wireType 2 =*/106).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
29971
29997
|
$root.contentful.IdReferences.encode(message.secondaryAudioMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
29972
29998
|
}
|
|
29973
29999
|
if (message.mixedAudioMedia != null && message.hasOwnProperty("mixedAudioMedia"))
|
|
29974
30000
|
for (var keys = Object.keys(message.mixedAudioMedia), i = 0; i < keys.length; ++i) {
|
|
29975
|
-
writer.uint32(/* id
|
|
30001
|
+
writer.uint32(/* id 14, wireType 2 =*/114).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
29976
30002
|
$root.contentful.IdReferences.encode(message.mixedAudioMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
29977
30003
|
}
|
|
29978
30004
|
if (message.accessGroup != null && message.accessGroup.length)
|
|
29979
30005
|
for (var i = 0; i < message.accessGroup.length; ++i)
|
|
29980
|
-
$root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id
|
|
30006
|
+
$root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
|
|
29981
30007
|
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
29982
|
-
writer.uint32(/* id
|
|
30008
|
+
writer.uint32(/* id 16, wireType 0 =*/128).uint64(message.createdAt);
|
|
29983
30009
|
return writer;
|
|
29984
30010
|
};
|
|
29985
30011
|
|
|
@@ -30067,6 +30093,22 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
30067
30093
|
message.isEnabled = reader.bool();
|
|
30068
30094
|
break;
|
|
30069
30095
|
case 10:
|
|
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();
|
|
30102
|
+
break;
|
|
30103
|
+
case 11:
|
|
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();
|
|
30110
|
+
break;
|
|
30111
|
+
case 12:
|
|
30070
30112
|
reader.skip().pos++;
|
|
30071
30113
|
if (message.primaryAudioMedia === $util.emptyObject)
|
|
30072
30114
|
message.primaryAudioMedia = {};
|
|
@@ -30074,7 +30116,7 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
30074
30116
|
reader.pos++;
|
|
30075
30117
|
message.primaryAudioMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
|
|
30076
30118
|
break;
|
|
30077
|
-
case
|
|
30119
|
+
case 13:
|
|
30078
30120
|
reader.skip().pos++;
|
|
30079
30121
|
if (message.secondaryAudioMedia === $util.emptyObject)
|
|
30080
30122
|
message.secondaryAudioMedia = {};
|
|
@@ -30082,7 +30124,7 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
30082
30124
|
reader.pos++;
|
|
30083
30125
|
message.secondaryAudioMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
|
|
30084
30126
|
break;
|
|
30085
|
-
case
|
|
30127
|
+
case 14:
|
|
30086
30128
|
reader.skip().pos++;
|
|
30087
30129
|
if (message.mixedAudioMedia === $util.emptyObject)
|
|
30088
30130
|
message.mixedAudioMedia = {};
|
|
@@ -30090,12 +30132,12 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
30090
30132
|
reader.pos++;
|
|
30091
30133
|
message.mixedAudioMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
|
|
30092
30134
|
break;
|
|
30093
|
-
case
|
|
30135
|
+
case 15:
|
|
30094
30136
|
if (!(message.accessGroup && message.accessGroup.length))
|
|
30095
30137
|
message.accessGroup = [];
|
|
30096
30138
|
message.accessGroup.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
30097
30139
|
break;
|
|
30098
|
-
case
|
|
30140
|
+
case 16:
|
|
30099
30141
|
message.createdAt = reader.uint64();
|
|
30100
30142
|
break;
|
|
30101
30143
|
default:
|
|
@@ -30191,6 +30233,22 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
30191
30233
|
if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
|
|
30192
30234
|
if (typeof message.isEnabled !== "boolean")
|
|
30193
30235
|
return "isEnabled: boolean expected";
|
|
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
|
+
}
|
|
30194
30252
|
if (message.primaryAudioMedia != null && message.hasOwnProperty("primaryAudioMedia")) {
|
|
30195
30253
|
if (!$util.isObject(message.primaryAudioMedia))
|
|
30196
30254
|
return "primaryAudioMedia: object expected";
|
|
@@ -30300,6 +30358,20 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
30300
30358
|
message.useVariantPresets = Boolean(object.useVariantPresets);
|
|
30301
30359
|
if (object.isEnabled != null)
|
|
30302
30360
|
message.isEnabled = Boolean(object.isEnabled);
|
|
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
|
+
}
|
|
30303
30375
|
if (object.primaryAudioMedia) {
|
|
30304
30376
|
if (typeof object.primaryAudioMedia !== "object")
|
|
30305
30377
|
throw TypeError(".ContentfulSleepcastCreated.primaryAudioMedia: object expected");
|
|
@@ -30373,6 +30445,8 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
30373
30445
|
object.description = {};
|
|
30374
30446
|
object.tileBackgroundMedia = {};
|
|
30375
30447
|
object.playerBackgroundMedia = {};
|
|
30448
|
+
object.duration = {};
|
|
30449
|
+
object.narratorGender = {};
|
|
30376
30450
|
object.primaryAudioMedia = {};
|
|
30377
30451
|
object.secondaryAudioMedia = {};
|
|
30378
30452
|
object.mixedAudioMedia = {};
|
|
@@ -30422,6 +30496,16 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
30422
30496
|
object.useVariantPresets = message.useVariantPresets;
|
|
30423
30497
|
if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
|
|
30424
30498
|
object.isEnabled = message.isEnabled;
|
|
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
|
+
}
|
|
30425
30509
|
if (message.primaryAudioMedia && (keys2 = Object.keys(message.primaryAudioMedia)).length) {
|
|
30426
30510
|
object.primaryAudioMedia = {};
|
|
30427
30511
|
for (var j = 0; j < keys2.length; ++j)
|
|
@@ -30479,6 +30563,8 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
30479
30563
|
* @property {Object.<string,contentful.IIdReference>|null} [playerBackgroundMedia] ContentfulSleepcastUpdated playerBackgroundMedia
|
|
30480
30564
|
* @property {boolean|null} [useVariantPresets] ContentfulSleepcastUpdated useVariantPresets
|
|
30481
30565
|
* @property {boolean|null} [isEnabled] ContentfulSleepcastUpdated isEnabled
|
|
30566
|
+
* @property {Object.<string,number>|null} [duration] ContentfulSleepcastUpdated duration
|
|
30567
|
+
* @property {Object.<string,string>|null} [narratorGender] ContentfulSleepcastUpdated narratorGender
|
|
30482
30568
|
* @property {Object.<string,contentful.IIdReferences>|null} [primaryAudioMedia] ContentfulSleepcastUpdated primaryAudioMedia
|
|
30483
30569
|
* @property {Object.<string,contentful.IIdReferences>|null} [secondaryAudioMedia] ContentfulSleepcastUpdated secondaryAudioMedia
|
|
30484
30570
|
* @property {Object.<string,contentful.IIdReferences>|null} [mixedAudioMedia] ContentfulSleepcastUpdated mixedAudioMedia
|
|
@@ -30500,6 +30586,8 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
30500
30586
|
this.description = {};
|
|
30501
30587
|
this.tileBackgroundMedia = {};
|
|
30502
30588
|
this.playerBackgroundMedia = {};
|
|
30589
|
+
this.duration = {};
|
|
30590
|
+
this.narratorGender = {};
|
|
30503
30591
|
this.primaryAudioMedia = {};
|
|
30504
30592
|
this.secondaryAudioMedia = {};
|
|
30505
30593
|
this.mixedAudioMedia = {};
|
|
@@ -30582,6 +30670,22 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
30582
30670
|
*/
|
|
30583
30671
|
ContentfulSleepcastUpdated.prototype.isEnabled = false;
|
|
30584
30672
|
|
|
30673
|
+
/**
|
|
30674
|
+
* ContentfulSleepcastUpdated duration.
|
|
30675
|
+
* @member {Object.<string,number>} duration
|
|
30676
|
+
* @memberof ContentfulSleepcastUpdated
|
|
30677
|
+
* @instance
|
|
30678
|
+
*/
|
|
30679
|
+
ContentfulSleepcastUpdated.prototype.duration = $util.emptyObject;
|
|
30680
|
+
|
|
30681
|
+
/**
|
|
30682
|
+
* ContentfulSleepcastUpdated narratorGender.
|
|
30683
|
+
* @member {Object.<string,string>} narratorGender
|
|
30684
|
+
* @memberof ContentfulSleepcastUpdated
|
|
30685
|
+
* @instance
|
|
30686
|
+
*/
|
|
30687
|
+
ContentfulSleepcastUpdated.prototype.narratorGender = $util.emptyObject;
|
|
30688
|
+
|
|
30585
30689
|
/**
|
|
30586
30690
|
* ContentfulSleepcastUpdated primaryAudioMedia.
|
|
30587
30691
|
* @member {Object.<string,contentful.IIdReferences>} primaryAudioMedia
|
|
@@ -30673,26 +30777,32 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
30673
30777
|
writer.uint32(/* id 8, wireType 0 =*/64).bool(message.useVariantPresets);
|
|
30674
30778
|
if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
|
|
30675
30779
|
writer.uint32(/* id 9, wireType 0 =*/72).bool(message.isEnabled);
|
|
30780
|
+
if (message.duration != null && message.hasOwnProperty("duration"))
|
|
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();
|
|
30783
|
+
if (message.narratorGender != null && message.hasOwnProperty("narratorGender"))
|
|
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();
|
|
30676
30786
|
if (message.primaryAudioMedia != null && message.hasOwnProperty("primaryAudioMedia"))
|
|
30677
30787
|
for (var keys = Object.keys(message.primaryAudioMedia), i = 0; i < keys.length; ++i) {
|
|
30678
|
-
writer.uint32(/* id
|
|
30788
|
+
writer.uint32(/* id 12, wireType 2 =*/98).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
30679
30789
|
$root.contentful.IdReferences.encode(message.primaryAudioMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
30680
30790
|
}
|
|
30681
30791
|
if (message.secondaryAudioMedia != null && message.hasOwnProperty("secondaryAudioMedia"))
|
|
30682
30792
|
for (var keys = Object.keys(message.secondaryAudioMedia), i = 0; i < keys.length; ++i) {
|
|
30683
|
-
writer.uint32(/* id
|
|
30793
|
+
writer.uint32(/* id 13, wireType 2 =*/106).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
30684
30794
|
$root.contentful.IdReferences.encode(message.secondaryAudioMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
30685
30795
|
}
|
|
30686
30796
|
if (message.mixedAudioMedia != null && message.hasOwnProperty("mixedAudioMedia"))
|
|
30687
30797
|
for (var keys = Object.keys(message.mixedAudioMedia), i = 0; i < keys.length; ++i) {
|
|
30688
|
-
writer.uint32(/* id
|
|
30798
|
+
writer.uint32(/* id 14, wireType 2 =*/114).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
30689
30799
|
$root.contentful.IdReferences.encode(message.mixedAudioMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
30690
30800
|
}
|
|
30691
30801
|
if (message.accessGroup != null && message.accessGroup.length)
|
|
30692
30802
|
for (var i = 0; i < message.accessGroup.length; ++i)
|
|
30693
|
-
$root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id
|
|
30803
|
+
$root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
|
|
30694
30804
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
30695
|
-
writer.uint32(/* id
|
|
30805
|
+
writer.uint32(/* id 16, wireType 0 =*/128).uint64(message.updatedAt);
|
|
30696
30806
|
return writer;
|
|
30697
30807
|
};
|
|
30698
30808
|
|
|
@@ -30780,6 +30890,22 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
30780
30890
|
message.isEnabled = reader.bool();
|
|
30781
30891
|
break;
|
|
30782
30892
|
case 10:
|
|
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();
|
|
30899
|
+
break;
|
|
30900
|
+
case 11:
|
|
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();
|
|
30907
|
+
break;
|
|
30908
|
+
case 12:
|
|
30783
30909
|
reader.skip().pos++;
|
|
30784
30910
|
if (message.primaryAudioMedia === $util.emptyObject)
|
|
30785
30911
|
message.primaryAudioMedia = {};
|
|
@@ -30787,7 +30913,7 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
30787
30913
|
reader.pos++;
|
|
30788
30914
|
message.primaryAudioMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
|
|
30789
30915
|
break;
|
|
30790
|
-
case
|
|
30916
|
+
case 13:
|
|
30791
30917
|
reader.skip().pos++;
|
|
30792
30918
|
if (message.secondaryAudioMedia === $util.emptyObject)
|
|
30793
30919
|
message.secondaryAudioMedia = {};
|
|
@@ -30795,7 +30921,7 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
30795
30921
|
reader.pos++;
|
|
30796
30922
|
message.secondaryAudioMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
|
|
30797
30923
|
break;
|
|
30798
|
-
case
|
|
30924
|
+
case 14:
|
|
30799
30925
|
reader.skip().pos++;
|
|
30800
30926
|
if (message.mixedAudioMedia === $util.emptyObject)
|
|
30801
30927
|
message.mixedAudioMedia = {};
|
|
@@ -30803,12 +30929,12 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
30803
30929
|
reader.pos++;
|
|
30804
30930
|
message.mixedAudioMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
|
|
30805
30931
|
break;
|
|
30806
|
-
case
|
|
30932
|
+
case 15:
|
|
30807
30933
|
if (!(message.accessGroup && message.accessGroup.length))
|
|
30808
30934
|
message.accessGroup = [];
|
|
30809
30935
|
message.accessGroup.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
30810
30936
|
break;
|
|
30811
|
-
case
|
|
30937
|
+
case 16:
|
|
30812
30938
|
message.updatedAt = reader.uint64();
|
|
30813
30939
|
break;
|
|
30814
30940
|
default:
|
|
@@ -30904,6 +31030,22 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
30904
31030
|
if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
|
|
30905
31031
|
if (typeof message.isEnabled !== "boolean")
|
|
30906
31032
|
return "isEnabled: boolean expected";
|
|
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
|
+
}
|
|
30907
31049
|
if (message.primaryAudioMedia != null && message.hasOwnProperty("primaryAudioMedia")) {
|
|
30908
31050
|
if (!$util.isObject(message.primaryAudioMedia))
|
|
30909
31051
|
return "primaryAudioMedia: object expected";
|
|
@@ -31013,6 +31155,20 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
31013
31155
|
message.useVariantPresets = Boolean(object.useVariantPresets);
|
|
31014
31156
|
if (object.isEnabled != null)
|
|
31015
31157
|
message.isEnabled = Boolean(object.isEnabled);
|
|
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
|
+
}
|
|
31016
31172
|
if (object.primaryAudioMedia) {
|
|
31017
31173
|
if (typeof object.primaryAudioMedia !== "object")
|
|
31018
31174
|
throw TypeError(".ContentfulSleepcastUpdated.primaryAudioMedia: object expected");
|
|
@@ -31086,6 +31242,8 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
31086
31242
|
object.description = {};
|
|
31087
31243
|
object.tileBackgroundMedia = {};
|
|
31088
31244
|
object.playerBackgroundMedia = {};
|
|
31245
|
+
object.duration = {};
|
|
31246
|
+
object.narratorGender = {};
|
|
31089
31247
|
object.primaryAudioMedia = {};
|
|
31090
31248
|
object.secondaryAudioMedia = {};
|
|
31091
31249
|
object.mixedAudioMedia = {};
|
|
@@ -31135,6 +31293,16 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
31135
31293
|
object.useVariantPresets = message.useVariantPresets;
|
|
31136
31294
|
if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
|
|
31137
31295
|
object.isEnabled = message.isEnabled;
|
|
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
|
+
}
|
|
31138
31306
|
if (message.primaryAudioMedia && (keys2 = Object.keys(message.primaryAudioMedia)).length) {
|
|
31139
31307
|
object.primaryAudioMedia = {};
|
|
31140
31308
|
for (var j = 0; j < keys2.length; ++j)
|
|
@@ -41574,7 +41742,7 @@ $root.SleepcastCreated = (function() {
|
|
|
41574
41742
|
* @exports ISleepcastCreated
|
|
41575
41743
|
* @interface ISleepcastCreated
|
|
41576
41744
|
* @property {string|null} [slug] SleepcastCreated slug
|
|
41577
|
-
* @property {
|
|
41745
|
+
* @property {number|null} [entityId] SleepcastCreated entityId
|
|
41578
41746
|
* @property {number|null} [tileBackgroundMediaId] SleepcastCreated tileBackgroundMediaId
|
|
41579
41747
|
* @property {Array.<contentful.ISlugReference>|null} [accessGroup] SleepcastCreated accessGroup
|
|
41580
41748
|
* @property {number|Long|null} [createdAt] SleepcastCreated createdAt
|
|
@@ -41606,11 +41774,11 @@ $root.SleepcastCreated = (function() {
|
|
|
41606
41774
|
|
|
41607
41775
|
/**
|
|
41608
41776
|
* SleepcastCreated entityId.
|
|
41609
|
-
* @member {
|
|
41777
|
+
* @member {number} entityId
|
|
41610
41778
|
* @memberof SleepcastCreated
|
|
41611
41779
|
* @instance
|
|
41612
41780
|
*/
|
|
41613
|
-
SleepcastCreated.prototype.entityId =
|
|
41781
|
+
SleepcastCreated.prototype.entityId = 0;
|
|
41614
41782
|
|
|
41615
41783
|
/**
|
|
41616
41784
|
* SleepcastCreated tileBackgroundMediaId.
|
|
@@ -41663,7 +41831,7 @@ $root.SleepcastCreated = (function() {
|
|
|
41663
41831
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
41664
41832
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
41665
41833
|
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
41666
|
-
writer.uint32(/* id 2, wireType
|
|
41834
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.entityId);
|
|
41667
41835
|
if (message.tileBackgroundMediaId != null && message.hasOwnProperty("tileBackgroundMediaId"))
|
|
41668
41836
|
writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.tileBackgroundMediaId);
|
|
41669
41837
|
if (message.accessGroup != null && message.accessGroup.length)
|
|
@@ -41709,7 +41877,7 @@ $root.SleepcastCreated = (function() {
|
|
|
41709
41877
|
message.slug = reader.string();
|
|
41710
41878
|
break;
|
|
41711
41879
|
case 2:
|
|
41712
|
-
message.entityId = reader.
|
|
41880
|
+
message.entityId = reader.uint32();
|
|
41713
41881
|
break;
|
|
41714
41882
|
case 3:
|
|
41715
41883
|
message.tileBackgroundMediaId = reader.uint32();
|
|
@@ -41761,8 +41929,8 @@ $root.SleepcastCreated = (function() {
|
|
|
41761
41929
|
if (!$util.isString(message.slug))
|
|
41762
41930
|
return "slug: string expected";
|
|
41763
41931
|
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
41764
|
-
if (!$util.
|
|
41765
|
-
return "entityId:
|
|
41932
|
+
if (!$util.isInteger(message.entityId))
|
|
41933
|
+
return "entityId: integer expected";
|
|
41766
41934
|
if (message.tileBackgroundMediaId != null && message.hasOwnProperty("tileBackgroundMediaId"))
|
|
41767
41935
|
if (!$util.isInteger(message.tileBackgroundMediaId))
|
|
41768
41936
|
return "tileBackgroundMediaId: integer expected";
|
|
@@ -41796,7 +41964,7 @@ $root.SleepcastCreated = (function() {
|
|
|
41796
41964
|
if (object.slug != null)
|
|
41797
41965
|
message.slug = String(object.slug);
|
|
41798
41966
|
if (object.entityId != null)
|
|
41799
|
-
message.entityId =
|
|
41967
|
+
message.entityId = object.entityId >>> 0;
|
|
41800
41968
|
if (object.tileBackgroundMediaId != null)
|
|
41801
41969
|
message.tileBackgroundMediaId = object.tileBackgroundMediaId >>> 0;
|
|
41802
41970
|
if (object.accessGroup) {
|
|
@@ -41838,7 +42006,7 @@ $root.SleepcastCreated = (function() {
|
|
|
41838
42006
|
object.accessGroup = [];
|
|
41839
42007
|
if (options.defaults) {
|
|
41840
42008
|
object.slug = "";
|
|
41841
|
-
object.entityId =
|
|
42009
|
+
object.entityId = 0;
|
|
41842
42010
|
object.tileBackgroundMediaId = 0;
|
|
41843
42011
|
if ($util.Long) {
|
|
41844
42012
|
var long = new $util.Long(0, 0, true);
|
|
@@ -41886,7 +42054,7 @@ $root.SleepcastUpdated = (function() {
|
|
|
41886
42054
|
* @exports ISleepcastUpdated
|
|
41887
42055
|
* @interface ISleepcastUpdated
|
|
41888
42056
|
* @property {string|null} [slug] SleepcastUpdated slug
|
|
41889
|
-
* @property {
|
|
42057
|
+
* @property {number|null} [entityId] SleepcastUpdated entityId
|
|
41890
42058
|
* @property {number|null} [tileBackgroundMediaId] SleepcastUpdated tileBackgroundMediaId
|
|
41891
42059
|
* @property {Array.<contentful.ISlugReference>|null} [accessGroup] SleepcastUpdated accessGroup
|
|
41892
42060
|
* @property {number|Long|null} [updatedAt] SleepcastUpdated updatedAt
|
|
@@ -41918,11 +42086,11 @@ $root.SleepcastUpdated = (function() {
|
|
|
41918
42086
|
|
|
41919
42087
|
/**
|
|
41920
42088
|
* SleepcastUpdated entityId.
|
|
41921
|
-
* @member {
|
|
42089
|
+
* @member {number} entityId
|
|
41922
42090
|
* @memberof SleepcastUpdated
|
|
41923
42091
|
* @instance
|
|
41924
42092
|
*/
|
|
41925
|
-
SleepcastUpdated.prototype.entityId =
|
|
42093
|
+
SleepcastUpdated.prototype.entityId = 0;
|
|
41926
42094
|
|
|
41927
42095
|
/**
|
|
41928
42096
|
* SleepcastUpdated tileBackgroundMediaId.
|
|
@@ -41975,7 +42143,7 @@ $root.SleepcastUpdated = (function() {
|
|
|
41975
42143
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
41976
42144
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
41977
42145
|
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
41978
|
-
writer.uint32(/* id 2, wireType
|
|
42146
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.entityId);
|
|
41979
42147
|
if (message.tileBackgroundMediaId != null && message.hasOwnProperty("tileBackgroundMediaId"))
|
|
41980
42148
|
writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.tileBackgroundMediaId);
|
|
41981
42149
|
if (message.accessGroup != null && message.accessGroup.length)
|
|
@@ -42021,7 +42189,7 @@ $root.SleepcastUpdated = (function() {
|
|
|
42021
42189
|
message.slug = reader.string();
|
|
42022
42190
|
break;
|
|
42023
42191
|
case 2:
|
|
42024
|
-
message.entityId = reader.
|
|
42192
|
+
message.entityId = reader.uint32();
|
|
42025
42193
|
break;
|
|
42026
42194
|
case 3:
|
|
42027
42195
|
message.tileBackgroundMediaId = reader.uint32();
|
|
@@ -42073,8 +42241,8 @@ $root.SleepcastUpdated = (function() {
|
|
|
42073
42241
|
if (!$util.isString(message.slug))
|
|
42074
42242
|
return "slug: string expected";
|
|
42075
42243
|
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
42076
|
-
if (!$util.
|
|
42077
|
-
return "entityId:
|
|
42244
|
+
if (!$util.isInteger(message.entityId))
|
|
42245
|
+
return "entityId: integer expected";
|
|
42078
42246
|
if (message.tileBackgroundMediaId != null && message.hasOwnProperty("tileBackgroundMediaId"))
|
|
42079
42247
|
if (!$util.isInteger(message.tileBackgroundMediaId))
|
|
42080
42248
|
return "tileBackgroundMediaId: integer expected";
|
|
@@ -42108,7 +42276,7 @@ $root.SleepcastUpdated = (function() {
|
|
|
42108
42276
|
if (object.slug != null)
|
|
42109
42277
|
message.slug = String(object.slug);
|
|
42110
42278
|
if (object.entityId != null)
|
|
42111
|
-
message.entityId =
|
|
42279
|
+
message.entityId = object.entityId >>> 0;
|
|
42112
42280
|
if (object.tileBackgroundMediaId != null)
|
|
42113
42281
|
message.tileBackgroundMediaId = object.tileBackgroundMediaId >>> 0;
|
|
42114
42282
|
if (object.accessGroup) {
|
|
@@ -42150,7 +42318,7 @@ $root.SleepcastUpdated = (function() {
|
|
|
42150
42318
|
object.accessGroup = [];
|
|
42151
42319
|
if (options.defaults) {
|
|
42152
42320
|
object.slug = "";
|
|
42153
|
-
object.entityId =
|
|
42321
|
+
object.entityId = 0;
|
|
42154
42322
|
object.tileBackgroundMediaId = 0;
|
|
42155
42323
|
if ($util.Long) {
|
|
42156
42324
|
var long = new $util.Long(0, 0, true);
|
package/package.json
CHANGED