@headspace/protos-events 1.191.0 → 1.195.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 +32 -90
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -14783,8 +14783,8 @@ export interface ISleepcastCreated {
|
|
|
14783
14783
|
/** SleepcastCreated entityId */
|
|
14784
14784
|
entityId?: (string|null);
|
|
14785
14785
|
|
|
14786
|
-
/** SleepcastCreated
|
|
14787
|
-
|
|
14786
|
+
/** SleepcastCreated tileBackgroundMediaId */
|
|
14787
|
+
tileBackgroundMediaId?: (number|null);
|
|
14788
14788
|
|
|
14789
14789
|
/** SleepcastCreated accessGroup */
|
|
14790
14790
|
accessGroup?: (contentful.ISlugReference[]|null);
|
|
@@ -14808,8 +14808,8 @@ export class SleepcastCreated implements ISleepcastCreated {
|
|
|
14808
14808
|
/** SleepcastCreated entityId. */
|
|
14809
14809
|
public entityId: string;
|
|
14810
14810
|
|
|
14811
|
-
/** SleepcastCreated
|
|
14812
|
-
public
|
|
14811
|
+
/** SleepcastCreated tileBackgroundMediaId. */
|
|
14812
|
+
public tileBackgroundMediaId: number;
|
|
14813
14813
|
|
|
14814
14814
|
/** SleepcastCreated accessGroup. */
|
|
14815
14815
|
public accessGroup: contentful.ISlugReference[];
|
|
@@ -14897,8 +14897,8 @@ export interface ISleepcastUpdated {
|
|
|
14897
14897
|
/** SleepcastUpdated entityId */
|
|
14898
14898
|
entityId?: (string|null);
|
|
14899
14899
|
|
|
14900
|
-
/** SleepcastUpdated
|
|
14901
|
-
|
|
14900
|
+
/** SleepcastUpdated tileBackgroundMediaId */
|
|
14901
|
+
tileBackgroundMediaId?: (number|null);
|
|
14902
14902
|
|
|
14903
14903
|
/** SleepcastUpdated accessGroup */
|
|
14904
14904
|
accessGroup?: (contentful.ISlugReference[]|null);
|
|
@@ -14922,8 +14922,8 @@ export class SleepcastUpdated implements ISleepcastUpdated {
|
|
|
14922
14922
|
/** SleepcastUpdated entityId. */
|
|
14923
14923
|
public entityId: string;
|
|
14924
14924
|
|
|
14925
|
-
/** SleepcastUpdated
|
|
14926
|
-
public
|
|
14925
|
+
/** SleepcastUpdated tileBackgroundMediaId. */
|
|
14926
|
+
public tileBackgroundMediaId: number;
|
|
14927
14927
|
|
|
14928
14928
|
/** SleepcastUpdated accessGroup. */
|
|
14929
14929
|
public accessGroup: contentful.ISlugReference[];
|
package/lib/index.js
CHANGED
|
@@ -40701,7 +40701,7 @@ $root.SleepcastCreated = (function() {
|
|
|
40701
40701
|
* @interface ISleepcastCreated
|
|
40702
40702
|
* @property {string|null} [slug] SleepcastCreated slug
|
|
40703
40703
|
* @property {string|null} [entityId] SleepcastCreated entityId
|
|
40704
|
-
* @property {
|
|
40704
|
+
* @property {number|null} [tileBackgroundMediaId] SleepcastCreated tileBackgroundMediaId
|
|
40705
40705
|
* @property {Array.<contentful.ISlugReference>|null} [accessGroup] SleepcastCreated accessGroup
|
|
40706
40706
|
* @property {number|Long|null} [createdAt] SleepcastCreated createdAt
|
|
40707
40707
|
*/
|
|
@@ -40715,7 +40715,6 @@ $root.SleepcastCreated = (function() {
|
|
|
40715
40715
|
* @param {ISleepcastCreated=} [properties] Properties to set
|
|
40716
40716
|
*/
|
|
40717
40717
|
function SleepcastCreated(properties) {
|
|
40718
|
-
this.tileBackgroundMedia = {};
|
|
40719
40718
|
this.accessGroup = [];
|
|
40720
40719
|
if (properties)
|
|
40721
40720
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -40740,12 +40739,12 @@ $root.SleepcastCreated = (function() {
|
|
|
40740
40739
|
SleepcastCreated.prototype.entityId = "";
|
|
40741
40740
|
|
|
40742
40741
|
/**
|
|
40743
|
-
* SleepcastCreated
|
|
40744
|
-
* @member {
|
|
40742
|
+
* SleepcastCreated tileBackgroundMediaId.
|
|
40743
|
+
* @member {number} tileBackgroundMediaId
|
|
40745
40744
|
* @memberof SleepcastCreated
|
|
40746
40745
|
* @instance
|
|
40747
40746
|
*/
|
|
40748
|
-
SleepcastCreated.prototype.
|
|
40747
|
+
SleepcastCreated.prototype.tileBackgroundMediaId = 0;
|
|
40749
40748
|
|
|
40750
40749
|
/**
|
|
40751
40750
|
* SleepcastCreated accessGroup.
|
|
@@ -40791,11 +40790,8 @@ $root.SleepcastCreated = (function() {
|
|
|
40791
40790
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
40792
40791
|
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
40793
40792
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityId);
|
|
40794
|
-
if (message.
|
|
40795
|
-
|
|
40796
|
-
writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
40797
|
-
$root.contentful.IdReference.encode(message.tileBackgroundMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
40798
|
-
}
|
|
40793
|
+
if (message.tileBackgroundMediaId != null && message.hasOwnProperty("tileBackgroundMediaId"))
|
|
40794
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.tileBackgroundMediaId);
|
|
40799
40795
|
if (message.accessGroup != null && message.accessGroup.length)
|
|
40800
40796
|
for (var i = 0; i < message.accessGroup.length; ++i)
|
|
40801
40797
|
$root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
@@ -40831,7 +40827,7 @@ $root.SleepcastCreated = (function() {
|
|
|
40831
40827
|
SleepcastCreated.decode = function decode(reader, length) {
|
|
40832
40828
|
if (!(reader instanceof $Reader))
|
|
40833
40829
|
reader = $Reader.create(reader);
|
|
40834
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SleepcastCreated()
|
|
40830
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SleepcastCreated();
|
|
40835
40831
|
while (reader.pos < end) {
|
|
40836
40832
|
var tag = reader.uint32();
|
|
40837
40833
|
switch (tag >>> 3) {
|
|
@@ -40842,12 +40838,7 @@ $root.SleepcastCreated = (function() {
|
|
|
40842
40838
|
message.entityId = reader.string();
|
|
40843
40839
|
break;
|
|
40844
40840
|
case 3:
|
|
40845
|
-
reader.
|
|
40846
|
-
if (message.tileBackgroundMedia === $util.emptyObject)
|
|
40847
|
-
message.tileBackgroundMedia = {};
|
|
40848
|
-
key = reader.string();
|
|
40849
|
-
reader.pos++;
|
|
40850
|
-
message.tileBackgroundMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
40841
|
+
message.tileBackgroundMediaId = reader.uint32();
|
|
40851
40842
|
break;
|
|
40852
40843
|
case 4:
|
|
40853
40844
|
if (!(message.accessGroup && message.accessGroup.length))
|
|
@@ -40898,16 +40889,9 @@ $root.SleepcastCreated = (function() {
|
|
|
40898
40889
|
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
40899
40890
|
if (!$util.isString(message.entityId))
|
|
40900
40891
|
return "entityId: string expected";
|
|
40901
|
-
if (message.
|
|
40902
|
-
if (!$util.
|
|
40903
|
-
return "
|
|
40904
|
-
var key = Object.keys(message.tileBackgroundMedia);
|
|
40905
|
-
for (var i = 0; i < key.length; ++i) {
|
|
40906
|
-
var error = $root.contentful.IdReference.verify(message.tileBackgroundMedia[key[i]]);
|
|
40907
|
-
if (error)
|
|
40908
|
-
return "tileBackgroundMedia." + error;
|
|
40909
|
-
}
|
|
40910
|
-
}
|
|
40892
|
+
if (message.tileBackgroundMediaId != null && message.hasOwnProperty("tileBackgroundMediaId"))
|
|
40893
|
+
if (!$util.isInteger(message.tileBackgroundMediaId))
|
|
40894
|
+
return "tileBackgroundMediaId: integer expected";
|
|
40911
40895
|
if (message.accessGroup != null && message.hasOwnProperty("accessGroup")) {
|
|
40912
40896
|
if (!Array.isArray(message.accessGroup))
|
|
40913
40897
|
return "accessGroup: array expected";
|
|
@@ -40939,16 +40923,8 @@ $root.SleepcastCreated = (function() {
|
|
|
40939
40923
|
message.slug = String(object.slug);
|
|
40940
40924
|
if (object.entityId != null)
|
|
40941
40925
|
message.entityId = String(object.entityId);
|
|
40942
|
-
if (object.
|
|
40943
|
-
|
|
40944
|
-
throw TypeError(".SleepcastCreated.tileBackgroundMedia: object expected");
|
|
40945
|
-
message.tileBackgroundMedia = {};
|
|
40946
|
-
for (var keys = Object.keys(object.tileBackgroundMedia), i = 0; i < keys.length; ++i) {
|
|
40947
|
-
if (typeof object.tileBackgroundMedia[keys[i]] !== "object")
|
|
40948
|
-
throw TypeError(".SleepcastCreated.tileBackgroundMedia: object expected");
|
|
40949
|
-
message.tileBackgroundMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.tileBackgroundMedia[keys[i]]);
|
|
40950
|
-
}
|
|
40951
|
-
}
|
|
40926
|
+
if (object.tileBackgroundMediaId != null)
|
|
40927
|
+
message.tileBackgroundMediaId = object.tileBackgroundMediaId >>> 0;
|
|
40952
40928
|
if (object.accessGroup) {
|
|
40953
40929
|
if (!Array.isArray(object.accessGroup))
|
|
40954
40930
|
throw TypeError(".SleepcastCreated.accessGroup: array expected");
|
|
@@ -40986,11 +40962,10 @@ $root.SleepcastCreated = (function() {
|
|
|
40986
40962
|
var object = {};
|
|
40987
40963
|
if (options.arrays || options.defaults)
|
|
40988
40964
|
object.accessGroup = [];
|
|
40989
|
-
if (options.objects || options.defaults)
|
|
40990
|
-
object.tileBackgroundMedia = {};
|
|
40991
40965
|
if (options.defaults) {
|
|
40992
40966
|
object.slug = "";
|
|
40993
40967
|
object.entityId = "";
|
|
40968
|
+
object.tileBackgroundMediaId = 0;
|
|
40994
40969
|
if ($util.Long) {
|
|
40995
40970
|
var long = new $util.Long(0, 0, true);
|
|
40996
40971
|
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
@@ -41001,12 +40976,8 @@ $root.SleepcastCreated = (function() {
|
|
|
41001
40976
|
object.slug = message.slug;
|
|
41002
40977
|
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
41003
40978
|
object.entityId = message.entityId;
|
|
41004
|
-
|
|
41005
|
-
|
|
41006
|
-
object.tileBackgroundMedia = {};
|
|
41007
|
-
for (var j = 0; j < keys2.length; ++j)
|
|
41008
|
-
object.tileBackgroundMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.tileBackgroundMedia[keys2[j]], options);
|
|
41009
|
-
}
|
|
40979
|
+
if (message.tileBackgroundMediaId != null && message.hasOwnProperty("tileBackgroundMediaId"))
|
|
40980
|
+
object.tileBackgroundMediaId = message.tileBackgroundMediaId;
|
|
41010
40981
|
if (message.accessGroup && message.accessGroup.length) {
|
|
41011
40982
|
object.accessGroup = [];
|
|
41012
40983
|
for (var j = 0; j < message.accessGroup.length; ++j)
|
|
@@ -41042,7 +41013,7 @@ $root.SleepcastUpdated = (function() {
|
|
|
41042
41013
|
* @interface ISleepcastUpdated
|
|
41043
41014
|
* @property {string|null} [slug] SleepcastUpdated slug
|
|
41044
41015
|
* @property {string|null} [entityId] SleepcastUpdated entityId
|
|
41045
|
-
* @property {
|
|
41016
|
+
* @property {number|null} [tileBackgroundMediaId] SleepcastUpdated tileBackgroundMediaId
|
|
41046
41017
|
* @property {Array.<contentful.ISlugReference>|null} [accessGroup] SleepcastUpdated accessGroup
|
|
41047
41018
|
* @property {number|Long|null} [updatedAt] SleepcastUpdated updatedAt
|
|
41048
41019
|
*/
|
|
@@ -41056,7 +41027,6 @@ $root.SleepcastUpdated = (function() {
|
|
|
41056
41027
|
* @param {ISleepcastUpdated=} [properties] Properties to set
|
|
41057
41028
|
*/
|
|
41058
41029
|
function SleepcastUpdated(properties) {
|
|
41059
|
-
this.tileBackgroundMedia = {};
|
|
41060
41030
|
this.accessGroup = [];
|
|
41061
41031
|
if (properties)
|
|
41062
41032
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -41081,12 +41051,12 @@ $root.SleepcastUpdated = (function() {
|
|
|
41081
41051
|
SleepcastUpdated.prototype.entityId = "";
|
|
41082
41052
|
|
|
41083
41053
|
/**
|
|
41084
|
-
* SleepcastUpdated
|
|
41085
|
-
* @member {
|
|
41054
|
+
* SleepcastUpdated tileBackgroundMediaId.
|
|
41055
|
+
* @member {number} tileBackgroundMediaId
|
|
41086
41056
|
* @memberof SleepcastUpdated
|
|
41087
41057
|
* @instance
|
|
41088
41058
|
*/
|
|
41089
|
-
SleepcastUpdated.prototype.
|
|
41059
|
+
SleepcastUpdated.prototype.tileBackgroundMediaId = 0;
|
|
41090
41060
|
|
|
41091
41061
|
/**
|
|
41092
41062
|
* SleepcastUpdated accessGroup.
|
|
@@ -41132,11 +41102,8 @@ $root.SleepcastUpdated = (function() {
|
|
|
41132
41102
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
41133
41103
|
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
41134
41104
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityId);
|
|
41135
|
-
if (message.
|
|
41136
|
-
|
|
41137
|
-
writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
41138
|
-
$root.contentful.IdReference.encode(message.tileBackgroundMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
41139
|
-
}
|
|
41105
|
+
if (message.tileBackgroundMediaId != null && message.hasOwnProperty("tileBackgroundMediaId"))
|
|
41106
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.tileBackgroundMediaId);
|
|
41140
41107
|
if (message.accessGroup != null && message.accessGroup.length)
|
|
41141
41108
|
for (var i = 0; i < message.accessGroup.length; ++i)
|
|
41142
41109
|
$root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
@@ -41172,7 +41139,7 @@ $root.SleepcastUpdated = (function() {
|
|
|
41172
41139
|
SleepcastUpdated.decode = function decode(reader, length) {
|
|
41173
41140
|
if (!(reader instanceof $Reader))
|
|
41174
41141
|
reader = $Reader.create(reader);
|
|
41175
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SleepcastUpdated()
|
|
41142
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SleepcastUpdated();
|
|
41176
41143
|
while (reader.pos < end) {
|
|
41177
41144
|
var tag = reader.uint32();
|
|
41178
41145
|
switch (tag >>> 3) {
|
|
@@ -41183,12 +41150,7 @@ $root.SleepcastUpdated = (function() {
|
|
|
41183
41150
|
message.entityId = reader.string();
|
|
41184
41151
|
break;
|
|
41185
41152
|
case 3:
|
|
41186
|
-
reader.
|
|
41187
|
-
if (message.tileBackgroundMedia === $util.emptyObject)
|
|
41188
|
-
message.tileBackgroundMedia = {};
|
|
41189
|
-
key = reader.string();
|
|
41190
|
-
reader.pos++;
|
|
41191
|
-
message.tileBackgroundMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
41153
|
+
message.tileBackgroundMediaId = reader.uint32();
|
|
41192
41154
|
break;
|
|
41193
41155
|
case 4:
|
|
41194
41156
|
if (!(message.accessGroup && message.accessGroup.length))
|
|
@@ -41239,16 +41201,9 @@ $root.SleepcastUpdated = (function() {
|
|
|
41239
41201
|
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
41240
41202
|
if (!$util.isString(message.entityId))
|
|
41241
41203
|
return "entityId: string expected";
|
|
41242
|
-
if (message.
|
|
41243
|
-
if (!$util.
|
|
41244
|
-
return "
|
|
41245
|
-
var key = Object.keys(message.tileBackgroundMedia);
|
|
41246
|
-
for (var i = 0; i < key.length; ++i) {
|
|
41247
|
-
var error = $root.contentful.IdReference.verify(message.tileBackgroundMedia[key[i]]);
|
|
41248
|
-
if (error)
|
|
41249
|
-
return "tileBackgroundMedia." + error;
|
|
41250
|
-
}
|
|
41251
|
-
}
|
|
41204
|
+
if (message.tileBackgroundMediaId != null && message.hasOwnProperty("tileBackgroundMediaId"))
|
|
41205
|
+
if (!$util.isInteger(message.tileBackgroundMediaId))
|
|
41206
|
+
return "tileBackgroundMediaId: integer expected";
|
|
41252
41207
|
if (message.accessGroup != null && message.hasOwnProperty("accessGroup")) {
|
|
41253
41208
|
if (!Array.isArray(message.accessGroup))
|
|
41254
41209
|
return "accessGroup: array expected";
|
|
@@ -41280,16 +41235,8 @@ $root.SleepcastUpdated = (function() {
|
|
|
41280
41235
|
message.slug = String(object.slug);
|
|
41281
41236
|
if (object.entityId != null)
|
|
41282
41237
|
message.entityId = String(object.entityId);
|
|
41283
|
-
if (object.
|
|
41284
|
-
|
|
41285
|
-
throw TypeError(".SleepcastUpdated.tileBackgroundMedia: object expected");
|
|
41286
|
-
message.tileBackgroundMedia = {};
|
|
41287
|
-
for (var keys = Object.keys(object.tileBackgroundMedia), i = 0; i < keys.length; ++i) {
|
|
41288
|
-
if (typeof object.tileBackgroundMedia[keys[i]] !== "object")
|
|
41289
|
-
throw TypeError(".SleepcastUpdated.tileBackgroundMedia: object expected");
|
|
41290
|
-
message.tileBackgroundMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.tileBackgroundMedia[keys[i]]);
|
|
41291
|
-
}
|
|
41292
|
-
}
|
|
41238
|
+
if (object.tileBackgroundMediaId != null)
|
|
41239
|
+
message.tileBackgroundMediaId = object.tileBackgroundMediaId >>> 0;
|
|
41293
41240
|
if (object.accessGroup) {
|
|
41294
41241
|
if (!Array.isArray(object.accessGroup))
|
|
41295
41242
|
throw TypeError(".SleepcastUpdated.accessGroup: array expected");
|
|
@@ -41327,11 +41274,10 @@ $root.SleepcastUpdated = (function() {
|
|
|
41327
41274
|
var object = {};
|
|
41328
41275
|
if (options.arrays || options.defaults)
|
|
41329
41276
|
object.accessGroup = [];
|
|
41330
|
-
if (options.objects || options.defaults)
|
|
41331
|
-
object.tileBackgroundMedia = {};
|
|
41332
41277
|
if (options.defaults) {
|
|
41333
41278
|
object.slug = "";
|
|
41334
41279
|
object.entityId = "";
|
|
41280
|
+
object.tileBackgroundMediaId = 0;
|
|
41335
41281
|
if ($util.Long) {
|
|
41336
41282
|
var long = new $util.Long(0, 0, true);
|
|
41337
41283
|
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
@@ -41342,12 +41288,8 @@ $root.SleepcastUpdated = (function() {
|
|
|
41342
41288
|
object.slug = message.slug;
|
|
41343
41289
|
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
41344
41290
|
object.entityId = message.entityId;
|
|
41345
|
-
|
|
41346
|
-
|
|
41347
|
-
object.tileBackgroundMedia = {};
|
|
41348
|
-
for (var j = 0; j < keys2.length; ++j)
|
|
41349
|
-
object.tileBackgroundMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.tileBackgroundMedia[keys2[j]], options);
|
|
41350
|
-
}
|
|
41291
|
+
if (message.tileBackgroundMediaId != null && message.hasOwnProperty("tileBackgroundMediaId"))
|
|
41292
|
+
object.tileBackgroundMediaId = message.tileBackgroundMediaId;
|
|
41351
41293
|
if (message.accessGroup && message.accessGroup.length) {
|
|
41352
41294
|
object.accessGroup = [];
|
|
41353
41295
|
for (var j = 0; j < message.accessGroup.length; ++j)
|
package/package.json
CHANGED