@headspace/protos-events 1.203.0 → 1.205.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 +304 -4
- package/lib/index.js +840 -26
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -29764,7 +29764,7 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
29764
29764
|
* @property {contentful.ISlugReference|null} [recipe] ContentfulSleepcastCreated recipe
|
|
29765
29765
|
* @property {Object.<string,contentful.IIdReference>|null} [tileBackgroundMedia] ContentfulSleepcastCreated tileBackgroundMedia
|
|
29766
29766
|
* @property {Object.<string,contentful.IIdReference>|null} [playerBackgroundMedia] ContentfulSleepcastCreated playerBackgroundMedia
|
|
29767
|
-
* @property {boolean
|
|
29767
|
+
* @property {Object.<string,boolean>|null} [useVariantPresets] ContentfulSleepcastCreated useVariantPresets
|
|
29768
29768
|
* @property {boolean|null} [isEnabled] ContentfulSleepcastCreated isEnabled
|
|
29769
29769
|
* @property {Object.<string,number>|null} [duration] ContentfulSleepcastCreated duration
|
|
29770
29770
|
* @property {Object.<string,string>|null} [narratorGender] ContentfulSleepcastCreated narratorGender
|
|
@@ -29789,6 +29789,7 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
29789
29789
|
this.description = {};
|
|
29790
29790
|
this.tileBackgroundMedia = {};
|
|
29791
29791
|
this.playerBackgroundMedia = {};
|
|
29792
|
+
this.useVariantPresets = {};
|
|
29792
29793
|
this.duration = {};
|
|
29793
29794
|
this.narratorGender = {};
|
|
29794
29795
|
this.ambientAudioMedia = {};
|
|
@@ -29859,11 +29860,11 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
29859
29860
|
|
|
29860
29861
|
/**
|
|
29861
29862
|
* ContentfulSleepcastCreated useVariantPresets.
|
|
29862
|
-
* @member {boolean} useVariantPresets
|
|
29863
|
+
* @member {Object.<string,boolean>} useVariantPresets
|
|
29863
29864
|
* @memberof ContentfulSleepcastCreated
|
|
29864
29865
|
* @instance
|
|
29865
29866
|
*/
|
|
29866
|
-
ContentfulSleepcastCreated.prototype.useVariantPresets =
|
|
29867
|
+
ContentfulSleepcastCreated.prototype.useVariantPresets = $util.emptyObject;
|
|
29867
29868
|
|
|
29868
29869
|
/**
|
|
29869
29870
|
* ContentfulSleepcastCreated isEnabled.
|
|
@@ -29977,7 +29978,8 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
29977
29978
|
$root.contentful.IdReference.encode(message.playerBackgroundMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
29978
29979
|
}
|
|
29979
29980
|
if (message.useVariantPresets != null && message.hasOwnProperty("useVariantPresets"))
|
|
29980
|
-
|
|
29981
|
+
for (var keys = Object.keys(message.useVariantPresets), i = 0; i < keys.length; ++i)
|
|
29982
|
+
writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).bool(message.useVariantPresets[keys[i]]).ldelim();
|
|
29981
29983
|
if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
|
|
29982
29984
|
writer.uint32(/* id 9, wireType 0 =*/72).bool(message.isEnabled);
|
|
29983
29985
|
if (message.duration != null && message.hasOwnProperty("duration"))
|
|
@@ -30087,7 +30089,12 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
30087
30089
|
message.playerBackgroundMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
30088
30090
|
break;
|
|
30089
30091
|
case 8:
|
|
30090
|
-
|
|
30092
|
+
reader.skip().pos++;
|
|
30093
|
+
if (message.useVariantPresets === $util.emptyObject)
|
|
30094
|
+
message.useVariantPresets = {};
|
|
30095
|
+
key = reader.string();
|
|
30096
|
+
reader.pos++;
|
|
30097
|
+
message.useVariantPresets[key] = reader.bool();
|
|
30091
30098
|
break;
|
|
30092
30099
|
case 9:
|
|
30093
30100
|
message.isEnabled = reader.bool();
|
|
@@ -30227,9 +30234,14 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
30227
30234
|
return "playerBackgroundMedia." + error;
|
|
30228
30235
|
}
|
|
30229
30236
|
}
|
|
30230
|
-
if (message.useVariantPresets != null && message.hasOwnProperty("useVariantPresets"))
|
|
30231
|
-
if (
|
|
30232
|
-
return "useVariantPresets:
|
|
30237
|
+
if (message.useVariantPresets != null && message.hasOwnProperty("useVariantPresets")) {
|
|
30238
|
+
if (!$util.isObject(message.useVariantPresets))
|
|
30239
|
+
return "useVariantPresets: object expected";
|
|
30240
|
+
var key = Object.keys(message.useVariantPresets);
|
|
30241
|
+
for (var i = 0; i < key.length; ++i)
|
|
30242
|
+
if (typeof message.useVariantPresets[key[i]] !== "boolean")
|
|
30243
|
+
return "useVariantPresets: boolean{k:string} expected";
|
|
30244
|
+
}
|
|
30233
30245
|
if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
|
|
30234
30246
|
if (typeof message.isEnabled !== "boolean")
|
|
30235
30247
|
return "isEnabled: boolean expected";
|
|
@@ -30354,8 +30366,13 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
30354
30366
|
message.playerBackgroundMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.playerBackgroundMedia[keys[i]]);
|
|
30355
30367
|
}
|
|
30356
30368
|
}
|
|
30357
|
-
if (object.useVariantPresets
|
|
30358
|
-
|
|
30369
|
+
if (object.useVariantPresets) {
|
|
30370
|
+
if (typeof object.useVariantPresets !== "object")
|
|
30371
|
+
throw TypeError(".ContentfulSleepcastCreated.useVariantPresets: object expected");
|
|
30372
|
+
message.useVariantPresets = {};
|
|
30373
|
+
for (var keys = Object.keys(object.useVariantPresets), i = 0; i < keys.length; ++i)
|
|
30374
|
+
message.useVariantPresets[keys[i]] = Boolean(object.useVariantPresets[keys[i]]);
|
|
30375
|
+
}
|
|
30359
30376
|
if (object.isEnabled != null)
|
|
30360
30377
|
message.isEnabled = Boolean(object.isEnabled);
|
|
30361
30378
|
if (object.duration) {
|
|
@@ -30445,6 +30462,7 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
30445
30462
|
object.description = {};
|
|
30446
30463
|
object.tileBackgroundMedia = {};
|
|
30447
30464
|
object.playerBackgroundMedia = {};
|
|
30465
|
+
object.useVariantPresets = {};
|
|
30448
30466
|
object.duration = {};
|
|
30449
30467
|
object.narratorGender = {};
|
|
30450
30468
|
object.ambientAudioMedia = {};
|
|
@@ -30454,7 +30472,6 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
30454
30472
|
if (options.defaults) {
|
|
30455
30473
|
object.slug = "";
|
|
30456
30474
|
object.recipe = null;
|
|
30457
|
-
object.useVariantPresets = false;
|
|
30458
30475
|
object.isEnabled = false;
|
|
30459
30476
|
if ($util.Long) {
|
|
30460
30477
|
var long = new $util.Long(0, 0, true);
|
|
@@ -30492,8 +30509,11 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
30492
30509
|
for (var j = 0; j < keys2.length; ++j)
|
|
30493
30510
|
object.playerBackgroundMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.playerBackgroundMedia[keys2[j]], options);
|
|
30494
30511
|
}
|
|
30495
|
-
if (message.useVariantPresets
|
|
30496
|
-
object.useVariantPresets =
|
|
30512
|
+
if (message.useVariantPresets && (keys2 = Object.keys(message.useVariantPresets)).length) {
|
|
30513
|
+
object.useVariantPresets = {};
|
|
30514
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
30515
|
+
object.useVariantPresets[keys2[j]] = message.useVariantPresets[keys2[j]];
|
|
30516
|
+
}
|
|
30497
30517
|
if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
|
|
30498
30518
|
object.isEnabled = message.isEnabled;
|
|
30499
30519
|
if (message.duration && (keys2 = Object.keys(message.duration)).length) {
|
|
@@ -30561,7 +30581,7 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
30561
30581
|
* @property {contentful.ISlugReference|null} [recipe] ContentfulSleepcastUpdated recipe
|
|
30562
30582
|
* @property {Object.<string,contentful.IIdReference>|null} [tileBackgroundMedia] ContentfulSleepcastUpdated tileBackgroundMedia
|
|
30563
30583
|
* @property {Object.<string,contentful.IIdReference>|null} [playerBackgroundMedia] ContentfulSleepcastUpdated playerBackgroundMedia
|
|
30564
|
-
* @property {boolean
|
|
30584
|
+
* @property {Object.<string,boolean>|null} [useVariantPresets] ContentfulSleepcastUpdated useVariantPresets
|
|
30565
30585
|
* @property {boolean|null} [isEnabled] ContentfulSleepcastUpdated isEnabled
|
|
30566
30586
|
* @property {Object.<string,number>|null} [duration] ContentfulSleepcastUpdated duration
|
|
30567
30587
|
* @property {Object.<string,string>|null} [narratorGender] ContentfulSleepcastUpdated narratorGender
|
|
@@ -30586,6 +30606,7 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
30586
30606
|
this.description = {};
|
|
30587
30607
|
this.tileBackgroundMedia = {};
|
|
30588
30608
|
this.playerBackgroundMedia = {};
|
|
30609
|
+
this.useVariantPresets = {};
|
|
30589
30610
|
this.duration = {};
|
|
30590
30611
|
this.narratorGender = {};
|
|
30591
30612
|
this.ambientAudioMedia = {};
|
|
@@ -30656,11 +30677,11 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
30656
30677
|
|
|
30657
30678
|
/**
|
|
30658
30679
|
* ContentfulSleepcastUpdated useVariantPresets.
|
|
30659
|
-
* @member {boolean} useVariantPresets
|
|
30680
|
+
* @member {Object.<string,boolean>} useVariantPresets
|
|
30660
30681
|
* @memberof ContentfulSleepcastUpdated
|
|
30661
30682
|
* @instance
|
|
30662
30683
|
*/
|
|
30663
|
-
ContentfulSleepcastUpdated.prototype.useVariantPresets =
|
|
30684
|
+
ContentfulSleepcastUpdated.prototype.useVariantPresets = $util.emptyObject;
|
|
30664
30685
|
|
|
30665
30686
|
/**
|
|
30666
30687
|
* ContentfulSleepcastUpdated isEnabled.
|
|
@@ -30774,7 +30795,8 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
30774
30795
|
$root.contentful.IdReference.encode(message.playerBackgroundMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
30775
30796
|
}
|
|
30776
30797
|
if (message.useVariantPresets != null && message.hasOwnProperty("useVariantPresets"))
|
|
30777
|
-
|
|
30798
|
+
for (var keys = Object.keys(message.useVariantPresets), i = 0; i < keys.length; ++i)
|
|
30799
|
+
writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).bool(message.useVariantPresets[keys[i]]).ldelim();
|
|
30778
30800
|
if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
|
|
30779
30801
|
writer.uint32(/* id 9, wireType 0 =*/72).bool(message.isEnabled);
|
|
30780
30802
|
if (message.duration != null && message.hasOwnProperty("duration"))
|
|
@@ -30884,7 +30906,12 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
30884
30906
|
message.playerBackgroundMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
30885
30907
|
break;
|
|
30886
30908
|
case 8:
|
|
30887
|
-
|
|
30909
|
+
reader.skip().pos++;
|
|
30910
|
+
if (message.useVariantPresets === $util.emptyObject)
|
|
30911
|
+
message.useVariantPresets = {};
|
|
30912
|
+
key = reader.string();
|
|
30913
|
+
reader.pos++;
|
|
30914
|
+
message.useVariantPresets[key] = reader.bool();
|
|
30888
30915
|
break;
|
|
30889
30916
|
case 9:
|
|
30890
30917
|
message.isEnabled = reader.bool();
|
|
@@ -31024,9 +31051,14 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
31024
31051
|
return "playerBackgroundMedia." + error;
|
|
31025
31052
|
}
|
|
31026
31053
|
}
|
|
31027
|
-
if (message.useVariantPresets != null && message.hasOwnProperty("useVariantPresets"))
|
|
31028
|
-
if (
|
|
31029
|
-
return "useVariantPresets:
|
|
31054
|
+
if (message.useVariantPresets != null && message.hasOwnProperty("useVariantPresets")) {
|
|
31055
|
+
if (!$util.isObject(message.useVariantPresets))
|
|
31056
|
+
return "useVariantPresets: object expected";
|
|
31057
|
+
var key = Object.keys(message.useVariantPresets);
|
|
31058
|
+
for (var i = 0; i < key.length; ++i)
|
|
31059
|
+
if (typeof message.useVariantPresets[key[i]] !== "boolean")
|
|
31060
|
+
return "useVariantPresets: boolean{k:string} expected";
|
|
31061
|
+
}
|
|
31030
31062
|
if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
|
|
31031
31063
|
if (typeof message.isEnabled !== "boolean")
|
|
31032
31064
|
return "isEnabled: boolean expected";
|
|
@@ -31151,8 +31183,13 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
31151
31183
|
message.playerBackgroundMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.playerBackgroundMedia[keys[i]]);
|
|
31152
31184
|
}
|
|
31153
31185
|
}
|
|
31154
|
-
if (object.useVariantPresets
|
|
31155
|
-
|
|
31186
|
+
if (object.useVariantPresets) {
|
|
31187
|
+
if (typeof object.useVariantPresets !== "object")
|
|
31188
|
+
throw TypeError(".ContentfulSleepcastUpdated.useVariantPresets: object expected");
|
|
31189
|
+
message.useVariantPresets = {};
|
|
31190
|
+
for (var keys = Object.keys(object.useVariantPresets), i = 0; i < keys.length; ++i)
|
|
31191
|
+
message.useVariantPresets[keys[i]] = Boolean(object.useVariantPresets[keys[i]]);
|
|
31192
|
+
}
|
|
31156
31193
|
if (object.isEnabled != null)
|
|
31157
31194
|
message.isEnabled = Boolean(object.isEnabled);
|
|
31158
31195
|
if (object.duration) {
|
|
@@ -31242,6 +31279,7 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
31242
31279
|
object.description = {};
|
|
31243
31280
|
object.tileBackgroundMedia = {};
|
|
31244
31281
|
object.playerBackgroundMedia = {};
|
|
31282
|
+
object.useVariantPresets = {};
|
|
31245
31283
|
object.duration = {};
|
|
31246
31284
|
object.narratorGender = {};
|
|
31247
31285
|
object.ambientAudioMedia = {};
|
|
@@ -31251,7 +31289,6 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
31251
31289
|
if (options.defaults) {
|
|
31252
31290
|
object.slug = "";
|
|
31253
31291
|
object.recipe = null;
|
|
31254
|
-
object.useVariantPresets = false;
|
|
31255
31292
|
object.isEnabled = false;
|
|
31256
31293
|
if ($util.Long) {
|
|
31257
31294
|
var long = new $util.Long(0, 0, true);
|
|
@@ -31289,8 +31326,11 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
31289
31326
|
for (var j = 0; j < keys2.length; ++j)
|
|
31290
31327
|
object.playerBackgroundMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.playerBackgroundMedia[keys2[j]], options);
|
|
31291
31328
|
}
|
|
31292
|
-
if (message.useVariantPresets
|
|
31293
|
-
object.useVariantPresets =
|
|
31329
|
+
if (message.useVariantPresets && (keys2 = Object.keys(message.useVariantPresets)).length) {
|
|
31330
|
+
object.useVariantPresets = {};
|
|
31331
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
31332
|
+
object.useVariantPresets[keys2[j]] = message.useVariantPresets[keys2[j]];
|
|
31333
|
+
}
|
|
31294
31334
|
if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
|
|
31295
31335
|
object.isEnabled = message.isEnabled;
|
|
31296
31336
|
if (message.duration && (keys2 = Object.keys(message.duration)).length) {
|
|
@@ -31569,6 +31609,780 @@ $root.ContentfulSleepcastDeleted = (function() {
|
|
|
31569
31609
|
return ContentfulSleepcastDeleted;
|
|
31570
31610
|
})();
|
|
31571
31611
|
|
|
31612
|
+
$root.ContentfulVariationContainerCreated = (function() {
|
|
31613
|
+
|
|
31614
|
+
/**
|
|
31615
|
+
* Properties of a ContentfulVariationContainerCreated.
|
|
31616
|
+
* @exports IContentfulVariationContainerCreated
|
|
31617
|
+
* @interface IContentfulVariationContainerCreated
|
|
31618
|
+
* @property {string|null} [slug] ContentfulVariationContainerCreated slug
|
|
31619
|
+
* @property {Object.<string,contentful.ISlugReference>|null} [variations] ContentfulVariationContainerCreated variations
|
|
31620
|
+
* @property {number|Long|null} [createdAt] ContentfulVariationContainerCreated createdAt
|
|
31621
|
+
*/
|
|
31622
|
+
|
|
31623
|
+
/**
|
|
31624
|
+
* Constructs a new ContentfulVariationContainerCreated.
|
|
31625
|
+
* @exports ContentfulVariationContainerCreated
|
|
31626
|
+
* @classdesc Represents a ContentfulVariationContainerCreated.
|
|
31627
|
+
* @implements IContentfulVariationContainerCreated
|
|
31628
|
+
* @constructor
|
|
31629
|
+
* @param {IContentfulVariationContainerCreated=} [properties] Properties to set
|
|
31630
|
+
*/
|
|
31631
|
+
function ContentfulVariationContainerCreated(properties) {
|
|
31632
|
+
this.variations = {};
|
|
31633
|
+
if (properties)
|
|
31634
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
31635
|
+
if (properties[keys[i]] != null)
|
|
31636
|
+
this[keys[i]] = properties[keys[i]];
|
|
31637
|
+
}
|
|
31638
|
+
|
|
31639
|
+
/**
|
|
31640
|
+
* ContentfulVariationContainerCreated slug.
|
|
31641
|
+
* @member {string} slug
|
|
31642
|
+
* @memberof ContentfulVariationContainerCreated
|
|
31643
|
+
* @instance
|
|
31644
|
+
*/
|
|
31645
|
+
ContentfulVariationContainerCreated.prototype.slug = "";
|
|
31646
|
+
|
|
31647
|
+
/**
|
|
31648
|
+
* ContentfulVariationContainerCreated variations.
|
|
31649
|
+
* @member {Object.<string,contentful.ISlugReference>} variations
|
|
31650
|
+
* @memberof ContentfulVariationContainerCreated
|
|
31651
|
+
* @instance
|
|
31652
|
+
*/
|
|
31653
|
+
ContentfulVariationContainerCreated.prototype.variations = $util.emptyObject;
|
|
31654
|
+
|
|
31655
|
+
/**
|
|
31656
|
+
* ContentfulVariationContainerCreated createdAt.
|
|
31657
|
+
* @member {number|Long} createdAt
|
|
31658
|
+
* @memberof ContentfulVariationContainerCreated
|
|
31659
|
+
* @instance
|
|
31660
|
+
*/
|
|
31661
|
+
ContentfulVariationContainerCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
31662
|
+
|
|
31663
|
+
/**
|
|
31664
|
+
* Creates a new ContentfulVariationContainerCreated instance using the specified properties.
|
|
31665
|
+
* @function create
|
|
31666
|
+
* @memberof ContentfulVariationContainerCreated
|
|
31667
|
+
* @static
|
|
31668
|
+
* @param {IContentfulVariationContainerCreated=} [properties] Properties to set
|
|
31669
|
+
* @returns {ContentfulVariationContainerCreated} ContentfulVariationContainerCreated instance
|
|
31670
|
+
*/
|
|
31671
|
+
ContentfulVariationContainerCreated.create = function create(properties) {
|
|
31672
|
+
return new ContentfulVariationContainerCreated(properties);
|
|
31673
|
+
};
|
|
31674
|
+
|
|
31675
|
+
/**
|
|
31676
|
+
* Encodes the specified ContentfulVariationContainerCreated message. Does not implicitly {@link ContentfulVariationContainerCreated.verify|verify} messages.
|
|
31677
|
+
* @function encode
|
|
31678
|
+
* @memberof ContentfulVariationContainerCreated
|
|
31679
|
+
* @static
|
|
31680
|
+
* @param {IContentfulVariationContainerCreated} message ContentfulVariationContainerCreated message or plain object to encode
|
|
31681
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
31682
|
+
* @returns {$protobuf.Writer} Writer
|
|
31683
|
+
*/
|
|
31684
|
+
ContentfulVariationContainerCreated.encode = function encode(message, writer) {
|
|
31685
|
+
if (!writer)
|
|
31686
|
+
writer = $Writer.create();
|
|
31687
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
31688
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
31689
|
+
if (message.variations != null && message.hasOwnProperty("variations"))
|
|
31690
|
+
for (var keys = Object.keys(message.variations), i = 0; i < keys.length; ++i) {
|
|
31691
|
+
writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
31692
|
+
$root.contentful.SlugReference.encode(message.variations[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
31693
|
+
}
|
|
31694
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
31695
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.createdAt);
|
|
31696
|
+
return writer;
|
|
31697
|
+
};
|
|
31698
|
+
|
|
31699
|
+
/**
|
|
31700
|
+
* Encodes the specified ContentfulVariationContainerCreated message, length delimited. Does not implicitly {@link ContentfulVariationContainerCreated.verify|verify} messages.
|
|
31701
|
+
* @function encodeDelimited
|
|
31702
|
+
* @memberof ContentfulVariationContainerCreated
|
|
31703
|
+
* @static
|
|
31704
|
+
* @param {IContentfulVariationContainerCreated} message ContentfulVariationContainerCreated message or plain object to encode
|
|
31705
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
31706
|
+
* @returns {$protobuf.Writer} Writer
|
|
31707
|
+
*/
|
|
31708
|
+
ContentfulVariationContainerCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
31709
|
+
return this.encode(message, writer).ldelim();
|
|
31710
|
+
};
|
|
31711
|
+
|
|
31712
|
+
/**
|
|
31713
|
+
* Decodes a ContentfulVariationContainerCreated message from the specified reader or buffer.
|
|
31714
|
+
* @function decode
|
|
31715
|
+
* @memberof ContentfulVariationContainerCreated
|
|
31716
|
+
* @static
|
|
31717
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
31718
|
+
* @param {number} [length] Message length if known beforehand
|
|
31719
|
+
* @returns {ContentfulVariationContainerCreated} ContentfulVariationContainerCreated
|
|
31720
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
31721
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
31722
|
+
*/
|
|
31723
|
+
ContentfulVariationContainerCreated.decode = function decode(reader, length) {
|
|
31724
|
+
if (!(reader instanceof $Reader))
|
|
31725
|
+
reader = $Reader.create(reader);
|
|
31726
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulVariationContainerCreated(), key;
|
|
31727
|
+
while (reader.pos < end) {
|
|
31728
|
+
var tag = reader.uint32();
|
|
31729
|
+
switch (tag >>> 3) {
|
|
31730
|
+
case 1:
|
|
31731
|
+
message.slug = reader.string();
|
|
31732
|
+
break;
|
|
31733
|
+
case 2:
|
|
31734
|
+
reader.skip().pos++;
|
|
31735
|
+
if (message.variations === $util.emptyObject)
|
|
31736
|
+
message.variations = {};
|
|
31737
|
+
key = reader.string();
|
|
31738
|
+
reader.pos++;
|
|
31739
|
+
message.variations[key] = $root.contentful.SlugReference.decode(reader, reader.uint32());
|
|
31740
|
+
break;
|
|
31741
|
+
case 3:
|
|
31742
|
+
message.createdAt = reader.uint64();
|
|
31743
|
+
break;
|
|
31744
|
+
default:
|
|
31745
|
+
reader.skipType(tag & 7);
|
|
31746
|
+
break;
|
|
31747
|
+
}
|
|
31748
|
+
}
|
|
31749
|
+
return message;
|
|
31750
|
+
};
|
|
31751
|
+
|
|
31752
|
+
/**
|
|
31753
|
+
* Decodes a ContentfulVariationContainerCreated message from the specified reader or buffer, length delimited.
|
|
31754
|
+
* @function decodeDelimited
|
|
31755
|
+
* @memberof ContentfulVariationContainerCreated
|
|
31756
|
+
* @static
|
|
31757
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
31758
|
+
* @returns {ContentfulVariationContainerCreated} ContentfulVariationContainerCreated
|
|
31759
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
31760
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
31761
|
+
*/
|
|
31762
|
+
ContentfulVariationContainerCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
31763
|
+
if (!(reader instanceof $Reader))
|
|
31764
|
+
reader = new $Reader(reader);
|
|
31765
|
+
return this.decode(reader, reader.uint32());
|
|
31766
|
+
};
|
|
31767
|
+
|
|
31768
|
+
/**
|
|
31769
|
+
* Verifies a ContentfulVariationContainerCreated message.
|
|
31770
|
+
* @function verify
|
|
31771
|
+
* @memberof ContentfulVariationContainerCreated
|
|
31772
|
+
* @static
|
|
31773
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
31774
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
31775
|
+
*/
|
|
31776
|
+
ContentfulVariationContainerCreated.verify = function verify(message) {
|
|
31777
|
+
if (typeof message !== "object" || message === null)
|
|
31778
|
+
return "object expected";
|
|
31779
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
31780
|
+
if (!$util.isString(message.slug))
|
|
31781
|
+
return "slug: string expected";
|
|
31782
|
+
if (message.variations != null && message.hasOwnProperty("variations")) {
|
|
31783
|
+
if (!$util.isObject(message.variations))
|
|
31784
|
+
return "variations: object expected";
|
|
31785
|
+
var key = Object.keys(message.variations);
|
|
31786
|
+
for (var i = 0; i < key.length; ++i) {
|
|
31787
|
+
var error = $root.contentful.SlugReference.verify(message.variations[key[i]]);
|
|
31788
|
+
if (error)
|
|
31789
|
+
return "variations." + error;
|
|
31790
|
+
}
|
|
31791
|
+
}
|
|
31792
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
31793
|
+
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
31794
|
+
return "createdAt: integer|Long expected";
|
|
31795
|
+
return null;
|
|
31796
|
+
};
|
|
31797
|
+
|
|
31798
|
+
/**
|
|
31799
|
+
* Creates a ContentfulVariationContainerCreated message from a plain object. Also converts values to their respective internal types.
|
|
31800
|
+
* @function fromObject
|
|
31801
|
+
* @memberof ContentfulVariationContainerCreated
|
|
31802
|
+
* @static
|
|
31803
|
+
* @param {Object.<string,*>} object Plain object
|
|
31804
|
+
* @returns {ContentfulVariationContainerCreated} ContentfulVariationContainerCreated
|
|
31805
|
+
*/
|
|
31806
|
+
ContentfulVariationContainerCreated.fromObject = function fromObject(object) {
|
|
31807
|
+
if (object instanceof $root.ContentfulVariationContainerCreated)
|
|
31808
|
+
return object;
|
|
31809
|
+
var message = new $root.ContentfulVariationContainerCreated();
|
|
31810
|
+
if (object.slug != null)
|
|
31811
|
+
message.slug = String(object.slug);
|
|
31812
|
+
if (object.variations) {
|
|
31813
|
+
if (typeof object.variations !== "object")
|
|
31814
|
+
throw TypeError(".ContentfulVariationContainerCreated.variations: object expected");
|
|
31815
|
+
message.variations = {};
|
|
31816
|
+
for (var keys = Object.keys(object.variations), i = 0; i < keys.length; ++i) {
|
|
31817
|
+
if (typeof object.variations[keys[i]] !== "object")
|
|
31818
|
+
throw TypeError(".ContentfulVariationContainerCreated.variations: object expected");
|
|
31819
|
+
message.variations[keys[i]] = $root.contentful.SlugReference.fromObject(object.variations[keys[i]]);
|
|
31820
|
+
}
|
|
31821
|
+
}
|
|
31822
|
+
if (object.createdAt != null)
|
|
31823
|
+
if ($util.Long)
|
|
31824
|
+
(message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
|
|
31825
|
+
else if (typeof object.createdAt === "string")
|
|
31826
|
+
message.createdAt = parseInt(object.createdAt, 10);
|
|
31827
|
+
else if (typeof object.createdAt === "number")
|
|
31828
|
+
message.createdAt = object.createdAt;
|
|
31829
|
+
else if (typeof object.createdAt === "object")
|
|
31830
|
+
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
31831
|
+
return message;
|
|
31832
|
+
};
|
|
31833
|
+
|
|
31834
|
+
/**
|
|
31835
|
+
* Creates a plain object from a ContentfulVariationContainerCreated message. Also converts values to other types if specified.
|
|
31836
|
+
* @function toObject
|
|
31837
|
+
* @memberof ContentfulVariationContainerCreated
|
|
31838
|
+
* @static
|
|
31839
|
+
* @param {ContentfulVariationContainerCreated} message ContentfulVariationContainerCreated
|
|
31840
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
31841
|
+
* @returns {Object.<string,*>} Plain object
|
|
31842
|
+
*/
|
|
31843
|
+
ContentfulVariationContainerCreated.toObject = function toObject(message, options) {
|
|
31844
|
+
if (!options)
|
|
31845
|
+
options = {};
|
|
31846
|
+
var object = {};
|
|
31847
|
+
if (options.objects || options.defaults)
|
|
31848
|
+
object.variations = {};
|
|
31849
|
+
if (options.defaults) {
|
|
31850
|
+
object.slug = "";
|
|
31851
|
+
if ($util.Long) {
|
|
31852
|
+
var long = new $util.Long(0, 0, true);
|
|
31853
|
+
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
31854
|
+
} else
|
|
31855
|
+
object.createdAt = options.longs === String ? "0" : 0;
|
|
31856
|
+
}
|
|
31857
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
31858
|
+
object.slug = message.slug;
|
|
31859
|
+
var keys2;
|
|
31860
|
+
if (message.variations && (keys2 = Object.keys(message.variations)).length) {
|
|
31861
|
+
object.variations = {};
|
|
31862
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
31863
|
+
object.variations[keys2[j]] = $root.contentful.SlugReference.toObject(message.variations[keys2[j]], options);
|
|
31864
|
+
}
|
|
31865
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
31866
|
+
if (typeof message.createdAt === "number")
|
|
31867
|
+
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
31868
|
+
else
|
|
31869
|
+
object.createdAt = options.longs === String ? $util.Long.prototype.toString.call(message.createdAt) : options.longs === Number ? new $util.LongBits(message.createdAt.low >>> 0, message.createdAt.high >>> 0).toNumber(true) : message.createdAt;
|
|
31870
|
+
return object;
|
|
31871
|
+
};
|
|
31872
|
+
|
|
31873
|
+
/**
|
|
31874
|
+
* Converts this ContentfulVariationContainerCreated to JSON.
|
|
31875
|
+
* @function toJSON
|
|
31876
|
+
* @memberof ContentfulVariationContainerCreated
|
|
31877
|
+
* @instance
|
|
31878
|
+
* @returns {Object.<string,*>} JSON object
|
|
31879
|
+
*/
|
|
31880
|
+
ContentfulVariationContainerCreated.prototype.toJSON = function toJSON() {
|
|
31881
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
31882
|
+
};
|
|
31883
|
+
|
|
31884
|
+
return ContentfulVariationContainerCreated;
|
|
31885
|
+
})();
|
|
31886
|
+
|
|
31887
|
+
$root.ContentfulVariationContainerUpdated = (function() {
|
|
31888
|
+
|
|
31889
|
+
/**
|
|
31890
|
+
* Properties of a ContentfulVariationContainerUpdated.
|
|
31891
|
+
* @exports IContentfulVariationContainerUpdated
|
|
31892
|
+
* @interface IContentfulVariationContainerUpdated
|
|
31893
|
+
* @property {string|null} [slug] ContentfulVariationContainerUpdated slug
|
|
31894
|
+
* @property {Object.<string,contentful.ISlugReference>|null} [variations] ContentfulVariationContainerUpdated variations
|
|
31895
|
+
* @property {number|Long|null} [updatedAt] ContentfulVariationContainerUpdated updatedAt
|
|
31896
|
+
*/
|
|
31897
|
+
|
|
31898
|
+
/**
|
|
31899
|
+
* Constructs a new ContentfulVariationContainerUpdated.
|
|
31900
|
+
* @exports ContentfulVariationContainerUpdated
|
|
31901
|
+
* @classdesc Represents a ContentfulVariationContainerUpdated.
|
|
31902
|
+
* @implements IContentfulVariationContainerUpdated
|
|
31903
|
+
* @constructor
|
|
31904
|
+
* @param {IContentfulVariationContainerUpdated=} [properties] Properties to set
|
|
31905
|
+
*/
|
|
31906
|
+
function ContentfulVariationContainerUpdated(properties) {
|
|
31907
|
+
this.variations = {};
|
|
31908
|
+
if (properties)
|
|
31909
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
31910
|
+
if (properties[keys[i]] != null)
|
|
31911
|
+
this[keys[i]] = properties[keys[i]];
|
|
31912
|
+
}
|
|
31913
|
+
|
|
31914
|
+
/**
|
|
31915
|
+
* ContentfulVariationContainerUpdated slug.
|
|
31916
|
+
* @member {string} slug
|
|
31917
|
+
* @memberof ContentfulVariationContainerUpdated
|
|
31918
|
+
* @instance
|
|
31919
|
+
*/
|
|
31920
|
+
ContentfulVariationContainerUpdated.prototype.slug = "";
|
|
31921
|
+
|
|
31922
|
+
/**
|
|
31923
|
+
* ContentfulVariationContainerUpdated variations.
|
|
31924
|
+
* @member {Object.<string,contentful.ISlugReference>} variations
|
|
31925
|
+
* @memberof ContentfulVariationContainerUpdated
|
|
31926
|
+
* @instance
|
|
31927
|
+
*/
|
|
31928
|
+
ContentfulVariationContainerUpdated.prototype.variations = $util.emptyObject;
|
|
31929
|
+
|
|
31930
|
+
/**
|
|
31931
|
+
* ContentfulVariationContainerUpdated updatedAt.
|
|
31932
|
+
* @member {number|Long} updatedAt
|
|
31933
|
+
* @memberof ContentfulVariationContainerUpdated
|
|
31934
|
+
* @instance
|
|
31935
|
+
*/
|
|
31936
|
+
ContentfulVariationContainerUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
31937
|
+
|
|
31938
|
+
/**
|
|
31939
|
+
* Creates a new ContentfulVariationContainerUpdated instance using the specified properties.
|
|
31940
|
+
* @function create
|
|
31941
|
+
* @memberof ContentfulVariationContainerUpdated
|
|
31942
|
+
* @static
|
|
31943
|
+
* @param {IContentfulVariationContainerUpdated=} [properties] Properties to set
|
|
31944
|
+
* @returns {ContentfulVariationContainerUpdated} ContentfulVariationContainerUpdated instance
|
|
31945
|
+
*/
|
|
31946
|
+
ContentfulVariationContainerUpdated.create = function create(properties) {
|
|
31947
|
+
return new ContentfulVariationContainerUpdated(properties);
|
|
31948
|
+
};
|
|
31949
|
+
|
|
31950
|
+
/**
|
|
31951
|
+
* Encodes the specified ContentfulVariationContainerUpdated message. Does not implicitly {@link ContentfulVariationContainerUpdated.verify|verify} messages.
|
|
31952
|
+
* @function encode
|
|
31953
|
+
* @memberof ContentfulVariationContainerUpdated
|
|
31954
|
+
* @static
|
|
31955
|
+
* @param {IContentfulVariationContainerUpdated} message ContentfulVariationContainerUpdated message or plain object to encode
|
|
31956
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
31957
|
+
* @returns {$protobuf.Writer} Writer
|
|
31958
|
+
*/
|
|
31959
|
+
ContentfulVariationContainerUpdated.encode = function encode(message, writer) {
|
|
31960
|
+
if (!writer)
|
|
31961
|
+
writer = $Writer.create();
|
|
31962
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
31963
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
31964
|
+
if (message.variations != null && message.hasOwnProperty("variations"))
|
|
31965
|
+
for (var keys = Object.keys(message.variations), i = 0; i < keys.length; ++i) {
|
|
31966
|
+
writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
31967
|
+
$root.contentful.SlugReference.encode(message.variations[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
31968
|
+
}
|
|
31969
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
31970
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.updatedAt);
|
|
31971
|
+
return writer;
|
|
31972
|
+
};
|
|
31973
|
+
|
|
31974
|
+
/**
|
|
31975
|
+
* Encodes the specified ContentfulVariationContainerUpdated message, length delimited. Does not implicitly {@link ContentfulVariationContainerUpdated.verify|verify} messages.
|
|
31976
|
+
* @function encodeDelimited
|
|
31977
|
+
* @memberof ContentfulVariationContainerUpdated
|
|
31978
|
+
* @static
|
|
31979
|
+
* @param {IContentfulVariationContainerUpdated} message ContentfulVariationContainerUpdated message or plain object to encode
|
|
31980
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
31981
|
+
* @returns {$protobuf.Writer} Writer
|
|
31982
|
+
*/
|
|
31983
|
+
ContentfulVariationContainerUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
31984
|
+
return this.encode(message, writer).ldelim();
|
|
31985
|
+
};
|
|
31986
|
+
|
|
31987
|
+
/**
|
|
31988
|
+
* Decodes a ContentfulVariationContainerUpdated message from the specified reader or buffer.
|
|
31989
|
+
* @function decode
|
|
31990
|
+
* @memberof ContentfulVariationContainerUpdated
|
|
31991
|
+
* @static
|
|
31992
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
31993
|
+
* @param {number} [length] Message length if known beforehand
|
|
31994
|
+
* @returns {ContentfulVariationContainerUpdated} ContentfulVariationContainerUpdated
|
|
31995
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
31996
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
31997
|
+
*/
|
|
31998
|
+
ContentfulVariationContainerUpdated.decode = function decode(reader, length) {
|
|
31999
|
+
if (!(reader instanceof $Reader))
|
|
32000
|
+
reader = $Reader.create(reader);
|
|
32001
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulVariationContainerUpdated(), key;
|
|
32002
|
+
while (reader.pos < end) {
|
|
32003
|
+
var tag = reader.uint32();
|
|
32004
|
+
switch (tag >>> 3) {
|
|
32005
|
+
case 1:
|
|
32006
|
+
message.slug = reader.string();
|
|
32007
|
+
break;
|
|
32008
|
+
case 2:
|
|
32009
|
+
reader.skip().pos++;
|
|
32010
|
+
if (message.variations === $util.emptyObject)
|
|
32011
|
+
message.variations = {};
|
|
32012
|
+
key = reader.string();
|
|
32013
|
+
reader.pos++;
|
|
32014
|
+
message.variations[key] = $root.contentful.SlugReference.decode(reader, reader.uint32());
|
|
32015
|
+
break;
|
|
32016
|
+
case 3:
|
|
32017
|
+
message.updatedAt = reader.uint64();
|
|
32018
|
+
break;
|
|
32019
|
+
default:
|
|
32020
|
+
reader.skipType(tag & 7);
|
|
32021
|
+
break;
|
|
32022
|
+
}
|
|
32023
|
+
}
|
|
32024
|
+
return message;
|
|
32025
|
+
};
|
|
32026
|
+
|
|
32027
|
+
/**
|
|
32028
|
+
* Decodes a ContentfulVariationContainerUpdated message from the specified reader or buffer, length delimited.
|
|
32029
|
+
* @function decodeDelimited
|
|
32030
|
+
* @memberof ContentfulVariationContainerUpdated
|
|
32031
|
+
* @static
|
|
32032
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
32033
|
+
* @returns {ContentfulVariationContainerUpdated} ContentfulVariationContainerUpdated
|
|
32034
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
32035
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
32036
|
+
*/
|
|
32037
|
+
ContentfulVariationContainerUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
32038
|
+
if (!(reader instanceof $Reader))
|
|
32039
|
+
reader = new $Reader(reader);
|
|
32040
|
+
return this.decode(reader, reader.uint32());
|
|
32041
|
+
};
|
|
32042
|
+
|
|
32043
|
+
/**
|
|
32044
|
+
* Verifies a ContentfulVariationContainerUpdated message.
|
|
32045
|
+
* @function verify
|
|
32046
|
+
* @memberof ContentfulVariationContainerUpdated
|
|
32047
|
+
* @static
|
|
32048
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
32049
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
32050
|
+
*/
|
|
32051
|
+
ContentfulVariationContainerUpdated.verify = function verify(message) {
|
|
32052
|
+
if (typeof message !== "object" || message === null)
|
|
32053
|
+
return "object expected";
|
|
32054
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
32055
|
+
if (!$util.isString(message.slug))
|
|
32056
|
+
return "slug: string expected";
|
|
32057
|
+
if (message.variations != null && message.hasOwnProperty("variations")) {
|
|
32058
|
+
if (!$util.isObject(message.variations))
|
|
32059
|
+
return "variations: object expected";
|
|
32060
|
+
var key = Object.keys(message.variations);
|
|
32061
|
+
for (var i = 0; i < key.length; ++i) {
|
|
32062
|
+
var error = $root.contentful.SlugReference.verify(message.variations[key[i]]);
|
|
32063
|
+
if (error)
|
|
32064
|
+
return "variations." + error;
|
|
32065
|
+
}
|
|
32066
|
+
}
|
|
32067
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
32068
|
+
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
32069
|
+
return "updatedAt: integer|Long expected";
|
|
32070
|
+
return null;
|
|
32071
|
+
};
|
|
32072
|
+
|
|
32073
|
+
/**
|
|
32074
|
+
* Creates a ContentfulVariationContainerUpdated message from a plain object. Also converts values to their respective internal types.
|
|
32075
|
+
* @function fromObject
|
|
32076
|
+
* @memberof ContentfulVariationContainerUpdated
|
|
32077
|
+
* @static
|
|
32078
|
+
* @param {Object.<string,*>} object Plain object
|
|
32079
|
+
* @returns {ContentfulVariationContainerUpdated} ContentfulVariationContainerUpdated
|
|
32080
|
+
*/
|
|
32081
|
+
ContentfulVariationContainerUpdated.fromObject = function fromObject(object) {
|
|
32082
|
+
if (object instanceof $root.ContentfulVariationContainerUpdated)
|
|
32083
|
+
return object;
|
|
32084
|
+
var message = new $root.ContentfulVariationContainerUpdated();
|
|
32085
|
+
if (object.slug != null)
|
|
32086
|
+
message.slug = String(object.slug);
|
|
32087
|
+
if (object.variations) {
|
|
32088
|
+
if (typeof object.variations !== "object")
|
|
32089
|
+
throw TypeError(".ContentfulVariationContainerUpdated.variations: object expected");
|
|
32090
|
+
message.variations = {};
|
|
32091
|
+
for (var keys = Object.keys(object.variations), i = 0; i < keys.length; ++i) {
|
|
32092
|
+
if (typeof object.variations[keys[i]] !== "object")
|
|
32093
|
+
throw TypeError(".ContentfulVariationContainerUpdated.variations: object expected");
|
|
32094
|
+
message.variations[keys[i]] = $root.contentful.SlugReference.fromObject(object.variations[keys[i]]);
|
|
32095
|
+
}
|
|
32096
|
+
}
|
|
32097
|
+
if (object.updatedAt != null)
|
|
32098
|
+
if ($util.Long)
|
|
32099
|
+
(message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
|
|
32100
|
+
else if (typeof object.updatedAt === "string")
|
|
32101
|
+
message.updatedAt = parseInt(object.updatedAt, 10);
|
|
32102
|
+
else if (typeof object.updatedAt === "number")
|
|
32103
|
+
message.updatedAt = object.updatedAt;
|
|
32104
|
+
else if (typeof object.updatedAt === "object")
|
|
32105
|
+
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
32106
|
+
return message;
|
|
32107
|
+
};
|
|
32108
|
+
|
|
32109
|
+
/**
|
|
32110
|
+
* Creates a plain object from a ContentfulVariationContainerUpdated message. Also converts values to other types if specified.
|
|
32111
|
+
* @function toObject
|
|
32112
|
+
* @memberof ContentfulVariationContainerUpdated
|
|
32113
|
+
* @static
|
|
32114
|
+
* @param {ContentfulVariationContainerUpdated} message ContentfulVariationContainerUpdated
|
|
32115
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
32116
|
+
* @returns {Object.<string,*>} Plain object
|
|
32117
|
+
*/
|
|
32118
|
+
ContentfulVariationContainerUpdated.toObject = function toObject(message, options) {
|
|
32119
|
+
if (!options)
|
|
32120
|
+
options = {};
|
|
32121
|
+
var object = {};
|
|
32122
|
+
if (options.objects || options.defaults)
|
|
32123
|
+
object.variations = {};
|
|
32124
|
+
if (options.defaults) {
|
|
32125
|
+
object.slug = "";
|
|
32126
|
+
if ($util.Long) {
|
|
32127
|
+
var long = new $util.Long(0, 0, true);
|
|
32128
|
+
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
32129
|
+
} else
|
|
32130
|
+
object.updatedAt = options.longs === String ? "0" : 0;
|
|
32131
|
+
}
|
|
32132
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
32133
|
+
object.slug = message.slug;
|
|
32134
|
+
var keys2;
|
|
32135
|
+
if (message.variations && (keys2 = Object.keys(message.variations)).length) {
|
|
32136
|
+
object.variations = {};
|
|
32137
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
32138
|
+
object.variations[keys2[j]] = $root.contentful.SlugReference.toObject(message.variations[keys2[j]], options);
|
|
32139
|
+
}
|
|
32140
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
32141
|
+
if (typeof message.updatedAt === "number")
|
|
32142
|
+
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
32143
|
+
else
|
|
32144
|
+
object.updatedAt = options.longs === String ? $util.Long.prototype.toString.call(message.updatedAt) : options.longs === Number ? new $util.LongBits(message.updatedAt.low >>> 0, message.updatedAt.high >>> 0).toNumber(true) : message.updatedAt;
|
|
32145
|
+
return object;
|
|
32146
|
+
};
|
|
32147
|
+
|
|
32148
|
+
/**
|
|
32149
|
+
* Converts this ContentfulVariationContainerUpdated to JSON.
|
|
32150
|
+
* @function toJSON
|
|
32151
|
+
* @memberof ContentfulVariationContainerUpdated
|
|
32152
|
+
* @instance
|
|
32153
|
+
* @returns {Object.<string,*>} JSON object
|
|
32154
|
+
*/
|
|
32155
|
+
ContentfulVariationContainerUpdated.prototype.toJSON = function toJSON() {
|
|
32156
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
32157
|
+
};
|
|
32158
|
+
|
|
32159
|
+
return ContentfulVariationContainerUpdated;
|
|
32160
|
+
})();
|
|
32161
|
+
|
|
32162
|
+
$root.ContentfulVariationContainerDeleted = (function() {
|
|
32163
|
+
|
|
32164
|
+
/**
|
|
32165
|
+
* Properties of a ContentfulVariationContainerDeleted.
|
|
32166
|
+
* @exports IContentfulVariationContainerDeleted
|
|
32167
|
+
* @interface IContentfulVariationContainerDeleted
|
|
32168
|
+
* @property {string|null} [slug] ContentfulVariationContainerDeleted slug
|
|
32169
|
+
* @property {number|Long|null} [deletedAt] ContentfulVariationContainerDeleted deletedAt
|
|
32170
|
+
*/
|
|
32171
|
+
|
|
32172
|
+
/**
|
|
32173
|
+
* Constructs a new ContentfulVariationContainerDeleted.
|
|
32174
|
+
* @exports ContentfulVariationContainerDeleted
|
|
32175
|
+
* @classdesc Represents a ContentfulVariationContainerDeleted.
|
|
32176
|
+
* @implements IContentfulVariationContainerDeleted
|
|
32177
|
+
* @constructor
|
|
32178
|
+
* @param {IContentfulVariationContainerDeleted=} [properties] Properties to set
|
|
32179
|
+
*/
|
|
32180
|
+
function ContentfulVariationContainerDeleted(properties) {
|
|
32181
|
+
if (properties)
|
|
32182
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
32183
|
+
if (properties[keys[i]] != null)
|
|
32184
|
+
this[keys[i]] = properties[keys[i]];
|
|
32185
|
+
}
|
|
32186
|
+
|
|
32187
|
+
/**
|
|
32188
|
+
* ContentfulVariationContainerDeleted slug.
|
|
32189
|
+
* @member {string} slug
|
|
32190
|
+
* @memberof ContentfulVariationContainerDeleted
|
|
32191
|
+
* @instance
|
|
32192
|
+
*/
|
|
32193
|
+
ContentfulVariationContainerDeleted.prototype.slug = "";
|
|
32194
|
+
|
|
32195
|
+
/**
|
|
32196
|
+
* ContentfulVariationContainerDeleted deletedAt.
|
|
32197
|
+
* @member {number|Long} deletedAt
|
|
32198
|
+
* @memberof ContentfulVariationContainerDeleted
|
|
32199
|
+
* @instance
|
|
32200
|
+
*/
|
|
32201
|
+
ContentfulVariationContainerDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
32202
|
+
|
|
32203
|
+
/**
|
|
32204
|
+
* Creates a new ContentfulVariationContainerDeleted instance using the specified properties.
|
|
32205
|
+
* @function create
|
|
32206
|
+
* @memberof ContentfulVariationContainerDeleted
|
|
32207
|
+
* @static
|
|
32208
|
+
* @param {IContentfulVariationContainerDeleted=} [properties] Properties to set
|
|
32209
|
+
* @returns {ContentfulVariationContainerDeleted} ContentfulVariationContainerDeleted instance
|
|
32210
|
+
*/
|
|
32211
|
+
ContentfulVariationContainerDeleted.create = function create(properties) {
|
|
32212
|
+
return new ContentfulVariationContainerDeleted(properties);
|
|
32213
|
+
};
|
|
32214
|
+
|
|
32215
|
+
/**
|
|
32216
|
+
* Encodes the specified ContentfulVariationContainerDeleted message. Does not implicitly {@link ContentfulVariationContainerDeleted.verify|verify} messages.
|
|
32217
|
+
* @function encode
|
|
32218
|
+
* @memberof ContentfulVariationContainerDeleted
|
|
32219
|
+
* @static
|
|
32220
|
+
* @param {IContentfulVariationContainerDeleted} message ContentfulVariationContainerDeleted message or plain object to encode
|
|
32221
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
32222
|
+
* @returns {$protobuf.Writer} Writer
|
|
32223
|
+
*/
|
|
32224
|
+
ContentfulVariationContainerDeleted.encode = function encode(message, writer) {
|
|
32225
|
+
if (!writer)
|
|
32226
|
+
writer = $Writer.create();
|
|
32227
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
32228
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
32229
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
32230
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.deletedAt);
|
|
32231
|
+
return writer;
|
|
32232
|
+
};
|
|
32233
|
+
|
|
32234
|
+
/**
|
|
32235
|
+
* Encodes the specified ContentfulVariationContainerDeleted message, length delimited. Does not implicitly {@link ContentfulVariationContainerDeleted.verify|verify} messages.
|
|
32236
|
+
* @function encodeDelimited
|
|
32237
|
+
* @memberof ContentfulVariationContainerDeleted
|
|
32238
|
+
* @static
|
|
32239
|
+
* @param {IContentfulVariationContainerDeleted} message ContentfulVariationContainerDeleted message or plain object to encode
|
|
32240
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
32241
|
+
* @returns {$protobuf.Writer} Writer
|
|
32242
|
+
*/
|
|
32243
|
+
ContentfulVariationContainerDeleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
32244
|
+
return this.encode(message, writer).ldelim();
|
|
32245
|
+
};
|
|
32246
|
+
|
|
32247
|
+
/**
|
|
32248
|
+
* Decodes a ContentfulVariationContainerDeleted message from the specified reader or buffer.
|
|
32249
|
+
* @function decode
|
|
32250
|
+
* @memberof ContentfulVariationContainerDeleted
|
|
32251
|
+
* @static
|
|
32252
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
32253
|
+
* @param {number} [length] Message length if known beforehand
|
|
32254
|
+
* @returns {ContentfulVariationContainerDeleted} ContentfulVariationContainerDeleted
|
|
32255
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
32256
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
32257
|
+
*/
|
|
32258
|
+
ContentfulVariationContainerDeleted.decode = function decode(reader, length) {
|
|
32259
|
+
if (!(reader instanceof $Reader))
|
|
32260
|
+
reader = $Reader.create(reader);
|
|
32261
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulVariationContainerDeleted();
|
|
32262
|
+
while (reader.pos < end) {
|
|
32263
|
+
var tag = reader.uint32();
|
|
32264
|
+
switch (tag >>> 3) {
|
|
32265
|
+
case 1:
|
|
32266
|
+
message.slug = reader.string();
|
|
32267
|
+
break;
|
|
32268
|
+
case 2:
|
|
32269
|
+
message.deletedAt = reader.uint64();
|
|
32270
|
+
break;
|
|
32271
|
+
default:
|
|
32272
|
+
reader.skipType(tag & 7);
|
|
32273
|
+
break;
|
|
32274
|
+
}
|
|
32275
|
+
}
|
|
32276
|
+
return message;
|
|
32277
|
+
};
|
|
32278
|
+
|
|
32279
|
+
/**
|
|
32280
|
+
* Decodes a ContentfulVariationContainerDeleted message from the specified reader or buffer, length delimited.
|
|
32281
|
+
* @function decodeDelimited
|
|
32282
|
+
* @memberof ContentfulVariationContainerDeleted
|
|
32283
|
+
* @static
|
|
32284
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
32285
|
+
* @returns {ContentfulVariationContainerDeleted} ContentfulVariationContainerDeleted
|
|
32286
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
32287
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
32288
|
+
*/
|
|
32289
|
+
ContentfulVariationContainerDeleted.decodeDelimited = function decodeDelimited(reader) {
|
|
32290
|
+
if (!(reader instanceof $Reader))
|
|
32291
|
+
reader = new $Reader(reader);
|
|
32292
|
+
return this.decode(reader, reader.uint32());
|
|
32293
|
+
};
|
|
32294
|
+
|
|
32295
|
+
/**
|
|
32296
|
+
* Verifies a ContentfulVariationContainerDeleted message.
|
|
32297
|
+
* @function verify
|
|
32298
|
+
* @memberof ContentfulVariationContainerDeleted
|
|
32299
|
+
* @static
|
|
32300
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
32301
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
32302
|
+
*/
|
|
32303
|
+
ContentfulVariationContainerDeleted.verify = function verify(message) {
|
|
32304
|
+
if (typeof message !== "object" || message === null)
|
|
32305
|
+
return "object expected";
|
|
32306
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
32307
|
+
if (!$util.isString(message.slug))
|
|
32308
|
+
return "slug: string expected";
|
|
32309
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
32310
|
+
if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
|
|
32311
|
+
return "deletedAt: integer|Long expected";
|
|
32312
|
+
return null;
|
|
32313
|
+
};
|
|
32314
|
+
|
|
32315
|
+
/**
|
|
32316
|
+
* Creates a ContentfulVariationContainerDeleted message from a plain object. Also converts values to their respective internal types.
|
|
32317
|
+
* @function fromObject
|
|
32318
|
+
* @memberof ContentfulVariationContainerDeleted
|
|
32319
|
+
* @static
|
|
32320
|
+
* @param {Object.<string,*>} object Plain object
|
|
32321
|
+
* @returns {ContentfulVariationContainerDeleted} ContentfulVariationContainerDeleted
|
|
32322
|
+
*/
|
|
32323
|
+
ContentfulVariationContainerDeleted.fromObject = function fromObject(object) {
|
|
32324
|
+
if (object instanceof $root.ContentfulVariationContainerDeleted)
|
|
32325
|
+
return object;
|
|
32326
|
+
var message = new $root.ContentfulVariationContainerDeleted();
|
|
32327
|
+
if (object.slug != null)
|
|
32328
|
+
message.slug = String(object.slug);
|
|
32329
|
+
if (object.deletedAt != null)
|
|
32330
|
+
if ($util.Long)
|
|
32331
|
+
(message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
|
|
32332
|
+
else if (typeof object.deletedAt === "string")
|
|
32333
|
+
message.deletedAt = parseInt(object.deletedAt, 10);
|
|
32334
|
+
else if (typeof object.deletedAt === "number")
|
|
32335
|
+
message.deletedAt = object.deletedAt;
|
|
32336
|
+
else if (typeof object.deletedAt === "object")
|
|
32337
|
+
message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
|
|
32338
|
+
return message;
|
|
32339
|
+
};
|
|
32340
|
+
|
|
32341
|
+
/**
|
|
32342
|
+
* Creates a plain object from a ContentfulVariationContainerDeleted message. Also converts values to other types if specified.
|
|
32343
|
+
* @function toObject
|
|
32344
|
+
* @memberof ContentfulVariationContainerDeleted
|
|
32345
|
+
* @static
|
|
32346
|
+
* @param {ContentfulVariationContainerDeleted} message ContentfulVariationContainerDeleted
|
|
32347
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
32348
|
+
* @returns {Object.<string,*>} Plain object
|
|
32349
|
+
*/
|
|
32350
|
+
ContentfulVariationContainerDeleted.toObject = function toObject(message, options) {
|
|
32351
|
+
if (!options)
|
|
32352
|
+
options = {};
|
|
32353
|
+
var object = {};
|
|
32354
|
+
if (options.defaults) {
|
|
32355
|
+
object.slug = "";
|
|
32356
|
+
if ($util.Long) {
|
|
32357
|
+
var long = new $util.Long(0, 0, true);
|
|
32358
|
+
object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
32359
|
+
} else
|
|
32360
|
+
object.deletedAt = options.longs === String ? "0" : 0;
|
|
32361
|
+
}
|
|
32362
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
32363
|
+
object.slug = message.slug;
|
|
32364
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
32365
|
+
if (typeof message.deletedAt === "number")
|
|
32366
|
+
object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
|
|
32367
|
+
else
|
|
32368
|
+
object.deletedAt = options.longs === String ? $util.Long.prototype.toString.call(message.deletedAt) : options.longs === Number ? new $util.LongBits(message.deletedAt.low >>> 0, message.deletedAt.high >>> 0).toNumber(true) : message.deletedAt;
|
|
32369
|
+
return object;
|
|
32370
|
+
};
|
|
32371
|
+
|
|
32372
|
+
/**
|
|
32373
|
+
* Converts this ContentfulVariationContainerDeleted to JSON.
|
|
32374
|
+
* @function toJSON
|
|
32375
|
+
* @memberof ContentfulVariationContainerDeleted
|
|
32376
|
+
* @instance
|
|
32377
|
+
* @returns {Object.<string,*>} JSON object
|
|
32378
|
+
*/
|
|
32379
|
+
ContentfulVariationContainerDeleted.prototype.toJSON = function toJSON() {
|
|
32380
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
32381
|
+
};
|
|
32382
|
+
|
|
32383
|
+
return ContentfulVariationContainerDeleted;
|
|
32384
|
+
})();
|
|
32385
|
+
|
|
31572
32386
|
$root.ContentfulContentModelCreated = (function() {
|
|
31573
32387
|
|
|
31574
32388
|
/**
|