@headspace/protos-events 1.122.0 → 1.124.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 +340 -4
- package/lib/index.js +966 -36
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -9198,7 +9198,7 @@ $root.ContentfulPlaylistCreated = (function() {
|
|
|
9198
9198
|
* @property {Object.<string,string>|null} [playerOrientation] ContentfulPlaylistCreated playerOrientation
|
|
9199
9199
|
* @property {Object.<string,contentful.IIdReference>|null} [previewMedia] ContentfulPlaylistCreated previewMedia
|
|
9200
9200
|
* @property {Object.<string,contentful.IIdReferences>|null} [videoSegments] ContentfulPlaylistCreated videoSegments
|
|
9201
|
-
* @property {Object.<string,
|
|
9201
|
+
* @property {Object.<string,string>|null} [schedule] ContentfulPlaylistCreated schedule
|
|
9202
9202
|
* @property {Array.<contentful.ISlugReference>|null} [accessGroups] ContentfulPlaylistCreated accessGroups
|
|
9203
9203
|
* @property {number|Long|null} [createdAt] ContentfulPlaylistCreated createdAt
|
|
9204
9204
|
*/
|
|
@@ -9301,7 +9301,7 @@ $root.ContentfulPlaylistCreated = (function() {
|
|
|
9301
9301
|
|
|
9302
9302
|
/**
|
|
9303
9303
|
* ContentfulPlaylistCreated schedule.
|
|
9304
|
-
* @member {Object.<string,
|
|
9304
|
+
* @member {Object.<string,string>} schedule
|
|
9305
9305
|
* @memberof ContentfulPlaylistCreated
|
|
9306
9306
|
* @instance
|
|
9307
9307
|
*/
|
|
@@ -9378,7 +9378,7 @@ $root.ContentfulPlaylistCreated = (function() {
|
|
|
9378
9378
|
}
|
|
9379
9379
|
if (message.schedule != null && message.hasOwnProperty("schedule"))
|
|
9380
9380
|
for (var keys = Object.keys(message.schedule), i = 0; i < keys.length; ++i)
|
|
9381
|
-
writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType
|
|
9381
|
+
writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.schedule[keys[i]]).ldelim();
|
|
9382
9382
|
if (message.accessGroups != null && message.accessGroups.length)
|
|
9383
9383
|
for (var i = 0; i < message.accessGroups.length; ++i)
|
|
9384
9384
|
$root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
|
|
@@ -9486,7 +9486,7 @@ $root.ContentfulPlaylistCreated = (function() {
|
|
|
9486
9486
|
message.schedule = {};
|
|
9487
9487
|
key = reader.string();
|
|
9488
9488
|
reader.pos++;
|
|
9489
|
-
message.schedule[key] = reader.
|
|
9489
|
+
message.schedule[key] = reader.string();
|
|
9490
9490
|
break;
|
|
9491
9491
|
case 11:
|
|
9492
9492
|
if (!(message.accessGroups && message.accessGroups.length))
|
|
@@ -9602,8 +9602,8 @@ $root.ContentfulPlaylistCreated = (function() {
|
|
|
9602
9602
|
return "schedule: object expected";
|
|
9603
9603
|
var key = Object.keys(message.schedule);
|
|
9604
9604
|
for (var i = 0; i < key.length; ++i)
|
|
9605
|
-
if (!$util.
|
|
9606
|
-
return "schedule:
|
|
9605
|
+
if (!$util.isString(message.schedule[key[i]]))
|
|
9606
|
+
return "schedule: string{k:string} expected";
|
|
9607
9607
|
}
|
|
9608
9608
|
if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
|
|
9609
9609
|
if (!Array.isArray(message.accessGroups))
|
|
@@ -9696,14 +9696,7 @@ $root.ContentfulPlaylistCreated = (function() {
|
|
|
9696
9696
|
throw TypeError(".ContentfulPlaylistCreated.schedule: object expected");
|
|
9697
9697
|
message.schedule = {};
|
|
9698
9698
|
for (var keys = Object.keys(object.schedule), i = 0; i < keys.length; ++i)
|
|
9699
|
-
|
|
9700
|
-
(message.schedule[keys[i]] = $util.Long.fromValue(object.schedule[keys[i]])).unsigned = true;
|
|
9701
|
-
else if (typeof object.schedule[keys[i]] === "string")
|
|
9702
|
-
message.schedule[keys[i]] = parseInt(object.schedule[keys[i]], 10);
|
|
9703
|
-
else if (typeof object.schedule[keys[i]] === "number")
|
|
9704
|
-
message.schedule[keys[i]] = object.schedule[keys[i]];
|
|
9705
|
-
else if (typeof object.schedule[keys[i]] === "object")
|
|
9706
|
-
message.schedule[keys[i]] = new $util.LongBits(object.schedule[keys[i]].low >>> 0, object.schedule[keys[i]].high >>> 0).toNumber(true);
|
|
9699
|
+
message.schedule[keys[i]] = String(object.schedule[keys[i]]);
|
|
9707
9700
|
}
|
|
9708
9701
|
if (object.accessGroups) {
|
|
9709
9702
|
if (!Array.isArray(object.accessGroups))
|
|
@@ -9804,10 +9797,7 @@ $root.ContentfulPlaylistCreated = (function() {
|
|
|
9804
9797
|
if (message.schedule && (keys2 = Object.keys(message.schedule)).length) {
|
|
9805
9798
|
object.schedule = {};
|
|
9806
9799
|
for (var j = 0; j < keys2.length; ++j)
|
|
9807
|
-
|
|
9808
|
-
object.schedule[keys2[j]] = options.longs === String ? String(message.schedule[keys2[j]]) : message.schedule[keys2[j]];
|
|
9809
|
-
else
|
|
9810
|
-
object.schedule[keys2[j]] = options.longs === String ? $util.Long.prototype.toString.call(message.schedule[keys2[j]]) : options.longs === Number ? new $util.LongBits(message.schedule[keys2[j]].low >>> 0, message.schedule[keys2[j]].high >>> 0).toNumber(true) : message.schedule[keys2[j]];
|
|
9800
|
+
object.schedule[keys2[j]] = message.schedule[keys2[j]];
|
|
9811
9801
|
}
|
|
9812
9802
|
if (message.accessGroups && message.accessGroups.length) {
|
|
9813
9803
|
object.accessGroups = [];
|
|
@@ -9851,7 +9841,7 @@ $root.ContentfulPlaylistUpdated = (function() {
|
|
|
9851
9841
|
* @property {Object.<string,string>|null} [playerOrientation] ContentfulPlaylistUpdated playerOrientation
|
|
9852
9842
|
* @property {Object.<string,contentful.IIdReference>|null} [previewMedia] ContentfulPlaylistUpdated previewMedia
|
|
9853
9843
|
* @property {Object.<string,contentful.IIdReferences>|null} [videoSegments] ContentfulPlaylistUpdated videoSegments
|
|
9854
|
-
* @property {Object.<string,
|
|
9844
|
+
* @property {Object.<string,string>|null} [schedule] ContentfulPlaylistUpdated schedule
|
|
9855
9845
|
* @property {Array.<contentful.ISlugReference>|null} [accessGroups] ContentfulPlaylistUpdated accessGroups
|
|
9856
9846
|
* @property {number|Long|null} [updatedAt] ContentfulPlaylistUpdated updatedAt
|
|
9857
9847
|
*/
|
|
@@ -9954,7 +9944,7 @@ $root.ContentfulPlaylistUpdated = (function() {
|
|
|
9954
9944
|
|
|
9955
9945
|
/**
|
|
9956
9946
|
* ContentfulPlaylistUpdated schedule.
|
|
9957
|
-
* @member {Object.<string,
|
|
9947
|
+
* @member {Object.<string,string>} schedule
|
|
9958
9948
|
* @memberof ContentfulPlaylistUpdated
|
|
9959
9949
|
* @instance
|
|
9960
9950
|
*/
|
|
@@ -10031,7 +10021,7 @@ $root.ContentfulPlaylistUpdated = (function() {
|
|
|
10031
10021
|
}
|
|
10032
10022
|
if (message.schedule != null && message.hasOwnProperty("schedule"))
|
|
10033
10023
|
for (var keys = Object.keys(message.schedule), i = 0; i < keys.length; ++i)
|
|
10034
|
-
writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType
|
|
10024
|
+
writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.schedule[keys[i]]).ldelim();
|
|
10035
10025
|
if (message.accessGroups != null && message.accessGroups.length)
|
|
10036
10026
|
for (var i = 0; i < message.accessGroups.length; ++i)
|
|
10037
10027
|
$root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
|
|
@@ -10139,7 +10129,7 @@ $root.ContentfulPlaylistUpdated = (function() {
|
|
|
10139
10129
|
message.schedule = {};
|
|
10140
10130
|
key = reader.string();
|
|
10141
10131
|
reader.pos++;
|
|
10142
|
-
message.schedule[key] = reader.
|
|
10132
|
+
message.schedule[key] = reader.string();
|
|
10143
10133
|
break;
|
|
10144
10134
|
case 11:
|
|
10145
10135
|
if (!(message.accessGroups && message.accessGroups.length))
|
|
@@ -10255,8 +10245,8 @@ $root.ContentfulPlaylistUpdated = (function() {
|
|
|
10255
10245
|
return "schedule: object expected";
|
|
10256
10246
|
var key = Object.keys(message.schedule);
|
|
10257
10247
|
for (var i = 0; i < key.length; ++i)
|
|
10258
|
-
if (!$util.
|
|
10259
|
-
return "schedule:
|
|
10248
|
+
if (!$util.isString(message.schedule[key[i]]))
|
|
10249
|
+
return "schedule: string{k:string} expected";
|
|
10260
10250
|
}
|
|
10261
10251
|
if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
|
|
10262
10252
|
if (!Array.isArray(message.accessGroups))
|
|
@@ -10349,14 +10339,7 @@ $root.ContentfulPlaylistUpdated = (function() {
|
|
|
10349
10339
|
throw TypeError(".ContentfulPlaylistUpdated.schedule: object expected");
|
|
10350
10340
|
message.schedule = {};
|
|
10351
10341
|
for (var keys = Object.keys(object.schedule), i = 0; i < keys.length; ++i)
|
|
10352
|
-
|
|
10353
|
-
(message.schedule[keys[i]] = $util.Long.fromValue(object.schedule[keys[i]])).unsigned = true;
|
|
10354
|
-
else if (typeof object.schedule[keys[i]] === "string")
|
|
10355
|
-
message.schedule[keys[i]] = parseInt(object.schedule[keys[i]], 10);
|
|
10356
|
-
else if (typeof object.schedule[keys[i]] === "number")
|
|
10357
|
-
message.schedule[keys[i]] = object.schedule[keys[i]];
|
|
10358
|
-
else if (typeof object.schedule[keys[i]] === "object")
|
|
10359
|
-
message.schedule[keys[i]] = new $util.LongBits(object.schedule[keys[i]].low >>> 0, object.schedule[keys[i]].high >>> 0).toNumber(true);
|
|
10342
|
+
message.schedule[keys[i]] = String(object.schedule[keys[i]]);
|
|
10360
10343
|
}
|
|
10361
10344
|
if (object.accessGroups) {
|
|
10362
10345
|
if (!Array.isArray(object.accessGroups))
|
|
@@ -10457,10 +10440,7 @@ $root.ContentfulPlaylistUpdated = (function() {
|
|
|
10457
10440
|
if (message.schedule && (keys2 = Object.keys(message.schedule)).length) {
|
|
10458
10441
|
object.schedule = {};
|
|
10459
10442
|
for (var j = 0; j < keys2.length; ++j)
|
|
10460
|
-
|
|
10461
|
-
object.schedule[keys2[j]] = options.longs === String ? String(message.schedule[keys2[j]]) : message.schedule[keys2[j]];
|
|
10462
|
-
else
|
|
10463
|
-
object.schedule[keys2[j]] = options.longs === String ? $util.Long.prototype.toString.call(message.schedule[keys2[j]]) : options.longs === Number ? new $util.LongBits(message.schedule[keys2[j]].low >>> 0, message.schedule[keys2[j]].high >>> 0).toNumber(true) : message.schedule[keys2[j]];
|
|
10443
|
+
object.schedule[keys2[j]] = message.schedule[keys2[j]];
|
|
10464
10444
|
}
|
|
10465
10445
|
if (message.accessGroups && message.accessGroups.length) {
|
|
10466
10446
|
object.accessGroups = [];
|
|
@@ -11517,6 +11497,956 @@ $root.ContentfulSubscriptionAccessGroupDeleted = (function() {
|
|
|
11517
11497
|
return ContentfulSubscriptionAccessGroupDeleted;
|
|
11518
11498
|
})();
|
|
11519
11499
|
|
|
11500
|
+
$root.ContentfulCategoryCreated = (function() {
|
|
11501
|
+
|
|
11502
|
+
/**
|
|
11503
|
+
* Properties of a ContentfulCategoryCreated.
|
|
11504
|
+
* @exports IContentfulCategoryCreated
|
|
11505
|
+
* @interface IContentfulCategoryCreated
|
|
11506
|
+
* @property {string|null} [name] ContentfulCategoryCreated name
|
|
11507
|
+
* @property {string|null} [slug] ContentfulCategoryCreated slug
|
|
11508
|
+
* @property {Object.<string,contentful.ISlugReference>|null} [topic] ContentfulCategoryCreated topic
|
|
11509
|
+
* @property {string|null} [type] ContentfulCategoryCreated type
|
|
11510
|
+
* @property {Array.<contentful.ISlugReference>|null} [content] ContentfulCategoryCreated content
|
|
11511
|
+
* @property {number|Long|null} [createdAt] ContentfulCategoryCreated createdAt
|
|
11512
|
+
*/
|
|
11513
|
+
|
|
11514
|
+
/**
|
|
11515
|
+
* Constructs a new ContentfulCategoryCreated.
|
|
11516
|
+
* @exports ContentfulCategoryCreated
|
|
11517
|
+
* @classdesc Represents a ContentfulCategoryCreated.
|
|
11518
|
+
* @implements IContentfulCategoryCreated
|
|
11519
|
+
* @constructor
|
|
11520
|
+
* @param {IContentfulCategoryCreated=} [properties] Properties to set
|
|
11521
|
+
*/
|
|
11522
|
+
function ContentfulCategoryCreated(properties) {
|
|
11523
|
+
this.topic = {};
|
|
11524
|
+
this.content = [];
|
|
11525
|
+
if (properties)
|
|
11526
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
11527
|
+
if (properties[keys[i]] != null)
|
|
11528
|
+
this[keys[i]] = properties[keys[i]];
|
|
11529
|
+
}
|
|
11530
|
+
|
|
11531
|
+
/**
|
|
11532
|
+
* ContentfulCategoryCreated name.
|
|
11533
|
+
* @member {string} name
|
|
11534
|
+
* @memberof ContentfulCategoryCreated
|
|
11535
|
+
* @instance
|
|
11536
|
+
*/
|
|
11537
|
+
ContentfulCategoryCreated.prototype.name = "";
|
|
11538
|
+
|
|
11539
|
+
/**
|
|
11540
|
+
* ContentfulCategoryCreated slug.
|
|
11541
|
+
* @member {string} slug
|
|
11542
|
+
* @memberof ContentfulCategoryCreated
|
|
11543
|
+
* @instance
|
|
11544
|
+
*/
|
|
11545
|
+
ContentfulCategoryCreated.prototype.slug = "";
|
|
11546
|
+
|
|
11547
|
+
/**
|
|
11548
|
+
* ContentfulCategoryCreated topic.
|
|
11549
|
+
* @member {Object.<string,contentful.ISlugReference>} topic
|
|
11550
|
+
* @memberof ContentfulCategoryCreated
|
|
11551
|
+
* @instance
|
|
11552
|
+
*/
|
|
11553
|
+
ContentfulCategoryCreated.prototype.topic = $util.emptyObject;
|
|
11554
|
+
|
|
11555
|
+
/**
|
|
11556
|
+
* ContentfulCategoryCreated type.
|
|
11557
|
+
* @member {string} type
|
|
11558
|
+
* @memberof ContentfulCategoryCreated
|
|
11559
|
+
* @instance
|
|
11560
|
+
*/
|
|
11561
|
+
ContentfulCategoryCreated.prototype.type = "";
|
|
11562
|
+
|
|
11563
|
+
/**
|
|
11564
|
+
* ContentfulCategoryCreated content.
|
|
11565
|
+
* @member {Array.<contentful.ISlugReference>} content
|
|
11566
|
+
* @memberof ContentfulCategoryCreated
|
|
11567
|
+
* @instance
|
|
11568
|
+
*/
|
|
11569
|
+
ContentfulCategoryCreated.prototype.content = $util.emptyArray;
|
|
11570
|
+
|
|
11571
|
+
/**
|
|
11572
|
+
* ContentfulCategoryCreated createdAt.
|
|
11573
|
+
* @member {number|Long} createdAt
|
|
11574
|
+
* @memberof ContentfulCategoryCreated
|
|
11575
|
+
* @instance
|
|
11576
|
+
*/
|
|
11577
|
+
ContentfulCategoryCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
11578
|
+
|
|
11579
|
+
/**
|
|
11580
|
+
* Creates a new ContentfulCategoryCreated instance using the specified properties.
|
|
11581
|
+
* @function create
|
|
11582
|
+
* @memberof ContentfulCategoryCreated
|
|
11583
|
+
* @static
|
|
11584
|
+
* @param {IContentfulCategoryCreated=} [properties] Properties to set
|
|
11585
|
+
* @returns {ContentfulCategoryCreated} ContentfulCategoryCreated instance
|
|
11586
|
+
*/
|
|
11587
|
+
ContentfulCategoryCreated.create = function create(properties) {
|
|
11588
|
+
return new ContentfulCategoryCreated(properties);
|
|
11589
|
+
};
|
|
11590
|
+
|
|
11591
|
+
/**
|
|
11592
|
+
* Encodes the specified ContentfulCategoryCreated message. Does not implicitly {@link ContentfulCategoryCreated.verify|verify} messages.
|
|
11593
|
+
* @function encode
|
|
11594
|
+
* @memberof ContentfulCategoryCreated
|
|
11595
|
+
* @static
|
|
11596
|
+
* @param {IContentfulCategoryCreated} message ContentfulCategoryCreated message or plain object to encode
|
|
11597
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
11598
|
+
* @returns {$protobuf.Writer} Writer
|
|
11599
|
+
*/
|
|
11600
|
+
ContentfulCategoryCreated.encode = function encode(message, writer) {
|
|
11601
|
+
if (!writer)
|
|
11602
|
+
writer = $Writer.create();
|
|
11603
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
11604
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
11605
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
11606
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
|
|
11607
|
+
if (message.topic != null && message.hasOwnProperty("topic"))
|
|
11608
|
+
for (var keys = Object.keys(message.topic), i = 0; i < keys.length; ++i) {
|
|
11609
|
+
writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
11610
|
+
$root.contentful.SlugReference.encode(message.topic[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
11611
|
+
}
|
|
11612
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
11613
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.type);
|
|
11614
|
+
if (message.content != null && message.content.length)
|
|
11615
|
+
for (var i = 0; i < message.content.length; ++i)
|
|
11616
|
+
$root.contentful.SlugReference.encode(message.content[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
11617
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
11618
|
+
writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.createdAt);
|
|
11619
|
+
return writer;
|
|
11620
|
+
};
|
|
11621
|
+
|
|
11622
|
+
/**
|
|
11623
|
+
* Encodes the specified ContentfulCategoryCreated message, length delimited. Does not implicitly {@link ContentfulCategoryCreated.verify|verify} messages.
|
|
11624
|
+
* @function encodeDelimited
|
|
11625
|
+
* @memberof ContentfulCategoryCreated
|
|
11626
|
+
* @static
|
|
11627
|
+
* @param {IContentfulCategoryCreated} message ContentfulCategoryCreated message or plain object to encode
|
|
11628
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
11629
|
+
* @returns {$protobuf.Writer} Writer
|
|
11630
|
+
*/
|
|
11631
|
+
ContentfulCategoryCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
11632
|
+
return this.encode(message, writer).ldelim();
|
|
11633
|
+
};
|
|
11634
|
+
|
|
11635
|
+
/**
|
|
11636
|
+
* Decodes a ContentfulCategoryCreated message from the specified reader or buffer.
|
|
11637
|
+
* @function decode
|
|
11638
|
+
* @memberof ContentfulCategoryCreated
|
|
11639
|
+
* @static
|
|
11640
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
11641
|
+
* @param {number} [length] Message length if known beforehand
|
|
11642
|
+
* @returns {ContentfulCategoryCreated} ContentfulCategoryCreated
|
|
11643
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
11644
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
11645
|
+
*/
|
|
11646
|
+
ContentfulCategoryCreated.decode = function decode(reader, length) {
|
|
11647
|
+
if (!(reader instanceof $Reader))
|
|
11648
|
+
reader = $Reader.create(reader);
|
|
11649
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulCategoryCreated(), key;
|
|
11650
|
+
while (reader.pos < end) {
|
|
11651
|
+
var tag = reader.uint32();
|
|
11652
|
+
switch (tag >>> 3) {
|
|
11653
|
+
case 1:
|
|
11654
|
+
message.name = reader.string();
|
|
11655
|
+
break;
|
|
11656
|
+
case 2:
|
|
11657
|
+
message.slug = reader.string();
|
|
11658
|
+
break;
|
|
11659
|
+
case 3:
|
|
11660
|
+
reader.skip().pos++;
|
|
11661
|
+
if (message.topic === $util.emptyObject)
|
|
11662
|
+
message.topic = {};
|
|
11663
|
+
key = reader.string();
|
|
11664
|
+
reader.pos++;
|
|
11665
|
+
message.topic[key] = $root.contentful.SlugReference.decode(reader, reader.uint32());
|
|
11666
|
+
break;
|
|
11667
|
+
case 4:
|
|
11668
|
+
message.type = reader.string();
|
|
11669
|
+
break;
|
|
11670
|
+
case 5:
|
|
11671
|
+
if (!(message.content && message.content.length))
|
|
11672
|
+
message.content = [];
|
|
11673
|
+
message.content.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
11674
|
+
break;
|
|
11675
|
+
case 6:
|
|
11676
|
+
message.createdAt = reader.uint64();
|
|
11677
|
+
break;
|
|
11678
|
+
default:
|
|
11679
|
+
reader.skipType(tag & 7);
|
|
11680
|
+
break;
|
|
11681
|
+
}
|
|
11682
|
+
}
|
|
11683
|
+
return message;
|
|
11684
|
+
};
|
|
11685
|
+
|
|
11686
|
+
/**
|
|
11687
|
+
* Decodes a ContentfulCategoryCreated message from the specified reader or buffer, length delimited.
|
|
11688
|
+
* @function decodeDelimited
|
|
11689
|
+
* @memberof ContentfulCategoryCreated
|
|
11690
|
+
* @static
|
|
11691
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
11692
|
+
* @returns {ContentfulCategoryCreated} ContentfulCategoryCreated
|
|
11693
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
11694
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
11695
|
+
*/
|
|
11696
|
+
ContentfulCategoryCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
11697
|
+
if (!(reader instanceof $Reader))
|
|
11698
|
+
reader = new $Reader(reader);
|
|
11699
|
+
return this.decode(reader, reader.uint32());
|
|
11700
|
+
};
|
|
11701
|
+
|
|
11702
|
+
/**
|
|
11703
|
+
* Verifies a ContentfulCategoryCreated message.
|
|
11704
|
+
* @function verify
|
|
11705
|
+
* @memberof ContentfulCategoryCreated
|
|
11706
|
+
* @static
|
|
11707
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
11708
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
11709
|
+
*/
|
|
11710
|
+
ContentfulCategoryCreated.verify = function verify(message) {
|
|
11711
|
+
if (typeof message !== "object" || message === null)
|
|
11712
|
+
return "object expected";
|
|
11713
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
11714
|
+
if (!$util.isString(message.name))
|
|
11715
|
+
return "name: string expected";
|
|
11716
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
11717
|
+
if (!$util.isString(message.slug))
|
|
11718
|
+
return "slug: string expected";
|
|
11719
|
+
if (message.topic != null && message.hasOwnProperty("topic")) {
|
|
11720
|
+
if (!$util.isObject(message.topic))
|
|
11721
|
+
return "topic: object expected";
|
|
11722
|
+
var key = Object.keys(message.topic);
|
|
11723
|
+
for (var i = 0; i < key.length; ++i) {
|
|
11724
|
+
var error = $root.contentful.SlugReference.verify(message.topic[key[i]]);
|
|
11725
|
+
if (error)
|
|
11726
|
+
return "topic." + error;
|
|
11727
|
+
}
|
|
11728
|
+
}
|
|
11729
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
11730
|
+
if (!$util.isString(message.type))
|
|
11731
|
+
return "type: string expected";
|
|
11732
|
+
if (message.content != null && message.hasOwnProperty("content")) {
|
|
11733
|
+
if (!Array.isArray(message.content))
|
|
11734
|
+
return "content: array expected";
|
|
11735
|
+
for (var i = 0; i < message.content.length; ++i) {
|
|
11736
|
+
var error = $root.contentful.SlugReference.verify(message.content[i]);
|
|
11737
|
+
if (error)
|
|
11738
|
+
return "content." + error;
|
|
11739
|
+
}
|
|
11740
|
+
}
|
|
11741
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
11742
|
+
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
11743
|
+
return "createdAt: integer|Long expected";
|
|
11744
|
+
return null;
|
|
11745
|
+
};
|
|
11746
|
+
|
|
11747
|
+
/**
|
|
11748
|
+
* Creates a ContentfulCategoryCreated message from a plain object. Also converts values to their respective internal types.
|
|
11749
|
+
* @function fromObject
|
|
11750
|
+
* @memberof ContentfulCategoryCreated
|
|
11751
|
+
* @static
|
|
11752
|
+
* @param {Object.<string,*>} object Plain object
|
|
11753
|
+
* @returns {ContentfulCategoryCreated} ContentfulCategoryCreated
|
|
11754
|
+
*/
|
|
11755
|
+
ContentfulCategoryCreated.fromObject = function fromObject(object) {
|
|
11756
|
+
if (object instanceof $root.ContentfulCategoryCreated)
|
|
11757
|
+
return object;
|
|
11758
|
+
var message = new $root.ContentfulCategoryCreated();
|
|
11759
|
+
if (object.name != null)
|
|
11760
|
+
message.name = String(object.name);
|
|
11761
|
+
if (object.slug != null)
|
|
11762
|
+
message.slug = String(object.slug);
|
|
11763
|
+
if (object.topic) {
|
|
11764
|
+
if (typeof object.topic !== "object")
|
|
11765
|
+
throw TypeError(".ContentfulCategoryCreated.topic: object expected");
|
|
11766
|
+
message.topic = {};
|
|
11767
|
+
for (var keys = Object.keys(object.topic), i = 0; i < keys.length; ++i) {
|
|
11768
|
+
if (typeof object.topic[keys[i]] !== "object")
|
|
11769
|
+
throw TypeError(".ContentfulCategoryCreated.topic: object expected");
|
|
11770
|
+
message.topic[keys[i]] = $root.contentful.SlugReference.fromObject(object.topic[keys[i]]);
|
|
11771
|
+
}
|
|
11772
|
+
}
|
|
11773
|
+
if (object.type != null)
|
|
11774
|
+
message.type = String(object.type);
|
|
11775
|
+
if (object.content) {
|
|
11776
|
+
if (!Array.isArray(object.content))
|
|
11777
|
+
throw TypeError(".ContentfulCategoryCreated.content: array expected");
|
|
11778
|
+
message.content = [];
|
|
11779
|
+
for (var i = 0; i < object.content.length; ++i) {
|
|
11780
|
+
if (typeof object.content[i] !== "object")
|
|
11781
|
+
throw TypeError(".ContentfulCategoryCreated.content: object expected");
|
|
11782
|
+
message.content[i] = $root.contentful.SlugReference.fromObject(object.content[i]);
|
|
11783
|
+
}
|
|
11784
|
+
}
|
|
11785
|
+
if (object.createdAt != null)
|
|
11786
|
+
if ($util.Long)
|
|
11787
|
+
(message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
|
|
11788
|
+
else if (typeof object.createdAt === "string")
|
|
11789
|
+
message.createdAt = parseInt(object.createdAt, 10);
|
|
11790
|
+
else if (typeof object.createdAt === "number")
|
|
11791
|
+
message.createdAt = object.createdAt;
|
|
11792
|
+
else if (typeof object.createdAt === "object")
|
|
11793
|
+
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
11794
|
+
return message;
|
|
11795
|
+
};
|
|
11796
|
+
|
|
11797
|
+
/**
|
|
11798
|
+
* Creates a plain object from a ContentfulCategoryCreated message. Also converts values to other types if specified.
|
|
11799
|
+
* @function toObject
|
|
11800
|
+
* @memberof ContentfulCategoryCreated
|
|
11801
|
+
* @static
|
|
11802
|
+
* @param {ContentfulCategoryCreated} message ContentfulCategoryCreated
|
|
11803
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
11804
|
+
* @returns {Object.<string,*>} Plain object
|
|
11805
|
+
*/
|
|
11806
|
+
ContentfulCategoryCreated.toObject = function toObject(message, options) {
|
|
11807
|
+
if (!options)
|
|
11808
|
+
options = {};
|
|
11809
|
+
var object = {};
|
|
11810
|
+
if (options.arrays || options.defaults)
|
|
11811
|
+
object.content = [];
|
|
11812
|
+
if (options.objects || options.defaults)
|
|
11813
|
+
object.topic = {};
|
|
11814
|
+
if (options.defaults) {
|
|
11815
|
+
object.name = "";
|
|
11816
|
+
object.slug = "";
|
|
11817
|
+
object.type = "";
|
|
11818
|
+
if ($util.Long) {
|
|
11819
|
+
var long = new $util.Long(0, 0, true);
|
|
11820
|
+
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
11821
|
+
} else
|
|
11822
|
+
object.createdAt = options.longs === String ? "0" : 0;
|
|
11823
|
+
}
|
|
11824
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
11825
|
+
object.name = message.name;
|
|
11826
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
11827
|
+
object.slug = message.slug;
|
|
11828
|
+
var keys2;
|
|
11829
|
+
if (message.topic && (keys2 = Object.keys(message.topic)).length) {
|
|
11830
|
+
object.topic = {};
|
|
11831
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
11832
|
+
object.topic[keys2[j]] = $root.contentful.SlugReference.toObject(message.topic[keys2[j]], options);
|
|
11833
|
+
}
|
|
11834
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
11835
|
+
object.type = message.type;
|
|
11836
|
+
if (message.content && message.content.length) {
|
|
11837
|
+
object.content = [];
|
|
11838
|
+
for (var j = 0; j < message.content.length; ++j)
|
|
11839
|
+
object.content[j] = $root.contentful.SlugReference.toObject(message.content[j], options);
|
|
11840
|
+
}
|
|
11841
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
11842
|
+
if (typeof message.createdAt === "number")
|
|
11843
|
+
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
11844
|
+
else
|
|
11845
|
+
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;
|
|
11846
|
+
return object;
|
|
11847
|
+
};
|
|
11848
|
+
|
|
11849
|
+
/**
|
|
11850
|
+
* Converts this ContentfulCategoryCreated to JSON.
|
|
11851
|
+
* @function toJSON
|
|
11852
|
+
* @memberof ContentfulCategoryCreated
|
|
11853
|
+
* @instance
|
|
11854
|
+
* @returns {Object.<string,*>} JSON object
|
|
11855
|
+
*/
|
|
11856
|
+
ContentfulCategoryCreated.prototype.toJSON = function toJSON() {
|
|
11857
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
11858
|
+
};
|
|
11859
|
+
|
|
11860
|
+
return ContentfulCategoryCreated;
|
|
11861
|
+
})();
|
|
11862
|
+
|
|
11863
|
+
$root.ContentfulCategoryUpdated = (function() {
|
|
11864
|
+
|
|
11865
|
+
/**
|
|
11866
|
+
* Properties of a ContentfulCategoryUpdated.
|
|
11867
|
+
* @exports IContentfulCategoryUpdated
|
|
11868
|
+
* @interface IContentfulCategoryUpdated
|
|
11869
|
+
* @property {string|null} [name] ContentfulCategoryUpdated name
|
|
11870
|
+
* @property {string|null} [slug] ContentfulCategoryUpdated slug
|
|
11871
|
+
* @property {Object.<string,contentful.ISlugReference>|null} [topic] ContentfulCategoryUpdated topic
|
|
11872
|
+
* @property {string|null} [type] ContentfulCategoryUpdated type
|
|
11873
|
+
* @property {Array.<contentful.ISlugReference>|null} [content] ContentfulCategoryUpdated content
|
|
11874
|
+
* @property {number|Long|null} [updatedAt] ContentfulCategoryUpdated updatedAt
|
|
11875
|
+
*/
|
|
11876
|
+
|
|
11877
|
+
/**
|
|
11878
|
+
* Constructs a new ContentfulCategoryUpdated.
|
|
11879
|
+
* @exports ContentfulCategoryUpdated
|
|
11880
|
+
* @classdesc Represents a ContentfulCategoryUpdated.
|
|
11881
|
+
* @implements IContentfulCategoryUpdated
|
|
11882
|
+
* @constructor
|
|
11883
|
+
* @param {IContentfulCategoryUpdated=} [properties] Properties to set
|
|
11884
|
+
*/
|
|
11885
|
+
function ContentfulCategoryUpdated(properties) {
|
|
11886
|
+
this.topic = {};
|
|
11887
|
+
this.content = [];
|
|
11888
|
+
if (properties)
|
|
11889
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
11890
|
+
if (properties[keys[i]] != null)
|
|
11891
|
+
this[keys[i]] = properties[keys[i]];
|
|
11892
|
+
}
|
|
11893
|
+
|
|
11894
|
+
/**
|
|
11895
|
+
* ContentfulCategoryUpdated name.
|
|
11896
|
+
* @member {string} name
|
|
11897
|
+
* @memberof ContentfulCategoryUpdated
|
|
11898
|
+
* @instance
|
|
11899
|
+
*/
|
|
11900
|
+
ContentfulCategoryUpdated.prototype.name = "";
|
|
11901
|
+
|
|
11902
|
+
/**
|
|
11903
|
+
* ContentfulCategoryUpdated slug.
|
|
11904
|
+
* @member {string} slug
|
|
11905
|
+
* @memberof ContentfulCategoryUpdated
|
|
11906
|
+
* @instance
|
|
11907
|
+
*/
|
|
11908
|
+
ContentfulCategoryUpdated.prototype.slug = "";
|
|
11909
|
+
|
|
11910
|
+
/**
|
|
11911
|
+
* ContentfulCategoryUpdated topic.
|
|
11912
|
+
* @member {Object.<string,contentful.ISlugReference>} topic
|
|
11913
|
+
* @memberof ContentfulCategoryUpdated
|
|
11914
|
+
* @instance
|
|
11915
|
+
*/
|
|
11916
|
+
ContentfulCategoryUpdated.prototype.topic = $util.emptyObject;
|
|
11917
|
+
|
|
11918
|
+
/**
|
|
11919
|
+
* ContentfulCategoryUpdated type.
|
|
11920
|
+
* @member {string} type
|
|
11921
|
+
* @memberof ContentfulCategoryUpdated
|
|
11922
|
+
* @instance
|
|
11923
|
+
*/
|
|
11924
|
+
ContentfulCategoryUpdated.prototype.type = "";
|
|
11925
|
+
|
|
11926
|
+
/**
|
|
11927
|
+
* ContentfulCategoryUpdated content.
|
|
11928
|
+
* @member {Array.<contentful.ISlugReference>} content
|
|
11929
|
+
* @memberof ContentfulCategoryUpdated
|
|
11930
|
+
* @instance
|
|
11931
|
+
*/
|
|
11932
|
+
ContentfulCategoryUpdated.prototype.content = $util.emptyArray;
|
|
11933
|
+
|
|
11934
|
+
/**
|
|
11935
|
+
* ContentfulCategoryUpdated updatedAt.
|
|
11936
|
+
* @member {number|Long} updatedAt
|
|
11937
|
+
* @memberof ContentfulCategoryUpdated
|
|
11938
|
+
* @instance
|
|
11939
|
+
*/
|
|
11940
|
+
ContentfulCategoryUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
11941
|
+
|
|
11942
|
+
/**
|
|
11943
|
+
* Creates a new ContentfulCategoryUpdated instance using the specified properties.
|
|
11944
|
+
* @function create
|
|
11945
|
+
* @memberof ContentfulCategoryUpdated
|
|
11946
|
+
* @static
|
|
11947
|
+
* @param {IContentfulCategoryUpdated=} [properties] Properties to set
|
|
11948
|
+
* @returns {ContentfulCategoryUpdated} ContentfulCategoryUpdated instance
|
|
11949
|
+
*/
|
|
11950
|
+
ContentfulCategoryUpdated.create = function create(properties) {
|
|
11951
|
+
return new ContentfulCategoryUpdated(properties);
|
|
11952
|
+
};
|
|
11953
|
+
|
|
11954
|
+
/**
|
|
11955
|
+
* Encodes the specified ContentfulCategoryUpdated message. Does not implicitly {@link ContentfulCategoryUpdated.verify|verify} messages.
|
|
11956
|
+
* @function encode
|
|
11957
|
+
* @memberof ContentfulCategoryUpdated
|
|
11958
|
+
* @static
|
|
11959
|
+
* @param {IContentfulCategoryUpdated} message ContentfulCategoryUpdated message or plain object to encode
|
|
11960
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
11961
|
+
* @returns {$protobuf.Writer} Writer
|
|
11962
|
+
*/
|
|
11963
|
+
ContentfulCategoryUpdated.encode = function encode(message, writer) {
|
|
11964
|
+
if (!writer)
|
|
11965
|
+
writer = $Writer.create();
|
|
11966
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
11967
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
11968
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
11969
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
|
|
11970
|
+
if (message.topic != null && message.hasOwnProperty("topic"))
|
|
11971
|
+
for (var keys = Object.keys(message.topic), i = 0; i < keys.length; ++i) {
|
|
11972
|
+
writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
11973
|
+
$root.contentful.SlugReference.encode(message.topic[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
11974
|
+
}
|
|
11975
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
11976
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.type);
|
|
11977
|
+
if (message.content != null && message.content.length)
|
|
11978
|
+
for (var i = 0; i < message.content.length; ++i)
|
|
11979
|
+
$root.contentful.SlugReference.encode(message.content[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
11980
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
11981
|
+
writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.updatedAt);
|
|
11982
|
+
return writer;
|
|
11983
|
+
};
|
|
11984
|
+
|
|
11985
|
+
/**
|
|
11986
|
+
* Encodes the specified ContentfulCategoryUpdated message, length delimited. Does not implicitly {@link ContentfulCategoryUpdated.verify|verify} messages.
|
|
11987
|
+
* @function encodeDelimited
|
|
11988
|
+
* @memberof ContentfulCategoryUpdated
|
|
11989
|
+
* @static
|
|
11990
|
+
* @param {IContentfulCategoryUpdated} message ContentfulCategoryUpdated message or plain object to encode
|
|
11991
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
11992
|
+
* @returns {$protobuf.Writer} Writer
|
|
11993
|
+
*/
|
|
11994
|
+
ContentfulCategoryUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
11995
|
+
return this.encode(message, writer).ldelim();
|
|
11996
|
+
};
|
|
11997
|
+
|
|
11998
|
+
/**
|
|
11999
|
+
* Decodes a ContentfulCategoryUpdated message from the specified reader or buffer.
|
|
12000
|
+
* @function decode
|
|
12001
|
+
* @memberof ContentfulCategoryUpdated
|
|
12002
|
+
* @static
|
|
12003
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
12004
|
+
* @param {number} [length] Message length if known beforehand
|
|
12005
|
+
* @returns {ContentfulCategoryUpdated} ContentfulCategoryUpdated
|
|
12006
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
12007
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
12008
|
+
*/
|
|
12009
|
+
ContentfulCategoryUpdated.decode = function decode(reader, length) {
|
|
12010
|
+
if (!(reader instanceof $Reader))
|
|
12011
|
+
reader = $Reader.create(reader);
|
|
12012
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulCategoryUpdated(), key;
|
|
12013
|
+
while (reader.pos < end) {
|
|
12014
|
+
var tag = reader.uint32();
|
|
12015
|
+
switch (tag >>> 3) {
|
|
12016
|
+
case 1:
|
|
12017
|
+
message.name = reader.string();
|
|
12018
|
+
break;
|
|
12019
|
+
case 2:
|
|
12020
|
+
message.slug = reader.string();
|
|
12021
|
+
break;
|
|
12022
|
+
case 3:
|
|
12023
|
+
reader.skip().pos++;
|
|
12024
|
+
if (message.topic === $util.emptyObject)
|
|
12025
|
+
message.topic = {};
|
|
12026
|
+
key = reader.string();
|
|
12027
|
+
reader.pos++;
|
|
12028
|
+
message.topic[key] = $root.contentful.SlugReference.decode(reader, reader.uint32());
|
|
12029
|
+
break;
|
|
12030
|
+
case 4:
|
|
12031
|
+
message.type = reader.string();
|
|
12032
|
+
break;
|
|
12033
|
+
case 5:
|
|
12034
|
+
if (!(message.content && message.content.length))
|
|
12035
|
+
message.content = [];
|
|
12036
|
+
message.content.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
12037
|
+
break;
|
|
12038
|
+
case 6:
|
|
12039
|
+
message.updatedAt = reader.uint64();
|
|
12040
|
+
break;
|
|
12041
|
+
default:
|
|
12042
|
+
reader.skipType(tag & 7);
|
|
12043
|
+
break;
|
|
12044
|
+
}
|
|
12045
|
+
}
|
|
12046
|
+
return message;
|
|
12047
|
+
};
|
|
12048
|
+
|
|
12049
|
+
/**
|
|
12050
|
+
* Decodes a ContentfulCategoryUpdated message from the specified reader or buffer, length delimited.
|
|
12051
|
+
* @function decodeDelimited
|
|
12052
|
+
* @memberof ContentfulCategoryUpdated
|
|
12053
|
+
* @static
|
|
12054
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
12055
|
+
* @returns {ContentfulCategoryUpdated} ContentfulCategoryUpdated
|
|
12056
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
12057
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
12058
|
+
*/
|
|
12059
|
+
ContentfulCategoryUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
12060
|
+
if (!(reader instanceof $Reader))
|
|
12061
|
+
reader = new $Reader(reader);
|
|
12062
|
+
return this.decode(reader, reader.uint32());
|
|
12063
|
+
};
|
|
12064
|
+
|
|
12065
|
+
/**
|
|
12066
|
+
* Verifies a ContentfulCategoryUpdated message.
|
|
12067
|
+
* @function verify
|
|
12068
|
+
* @memberof ContentfulCategoryUpdated
|
|
12069
|
+
* @static
|
|
12070
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
12071
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
12072
|
+
*/
|
|
12073
|
+
ContentfulCategoryUpdated.verify = function verify(message) {
|
|
12074
|
+
if (typeof message !== "object" || message === null)
|
|
12075
|
+
return "object expected";
|
|
12076
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
12077
|
+
if (!$util.isString(message.name))
|
|
12078
|
+
return "name: string expected";
|
|
12079
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
12080
|
+
if (!$util.isString(message.slug))
|
|
12081
|
+
return "slug: string expected";
|
|
12082
|
+
if (message.topic != null && message.hasOwnProperty("topic")) {
|
|
12083
|
+
if (!$util.isObject(message.topic))
|
|
12084
|
+
return "topic: object expected";
|
|
12085
|
+
var key = Object.keys(message.topic);
|
|
12086
|
+
for (var i = 0; i < key.length; ++i) {
|
|
12087
|
+
var error = $root.contentful.SlugReference.verify(message.topic[key[i]]);
|
|
12088
|
+
if (error)
|
|
12089
|
+
return "topic." + error;
|
|
12090
|
+
}
|
|
12091
|
+
}
|
|
12092
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
12093
|
+
if (!$util.isString(message.type))
|
|
12094
|
+
return "type: string expected";
|
|
12095
|
+
if (message.content != null && message.hasOwnProperty("content")) {
|
|
12096
|
+
if (!Array.isArray(message.content))
|
|
12097
|
+
return "content: array expected";
|
|
12098
|
+
for (var i = 0; i < message.content.length; ++i) {
|
|
12099
|
+
var error = $root.contentful.SlugReference.verify(message.content[i]);
|
|
12100
|
+
if (error)
|
|
12101
|
+
return "content." + error;
|
|
12102
|
+
}
|
|
12103
|
+
}
|
|
12104
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
12105
|
+
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
12106
|
+
return "updatedAt: integer|Long expected";
|
|
12107
|
+
return null;
|
|
12108
|
+
};
|
|
12109
|
+
|
|
12110
|
+
/**
|
|
12111
|
+
* Creates a ContentfulCategoryUpdated message from a plain object. Also converts values to their respective internal types.
|
|
12112
|
+
* @function fromObject
|
|
12113
|
+
* @memberof ContentfulCategoryUpdated
|
|
12114
|
+
* @static
|
|
12115
|
+
* @param {Object.<string,*>} object Plain object
|
|
12116
|
+
* @returns {ContentfulCategoryUpdated} ContentfulCategoryUpdated
|
|
12117
|
+
*/
|
|
12118
|
+
ContentfulCategoryUpdated.fromObject = function fromObject(object) {
|
|
12119
|
+
if (object instanceof $root.ContentfulCategoryUpdated)
|
|
12120
|
+
return object;
|
|
12121
|
+
var message = new $root.ContentfulCategoryUpdated();
|
|
12122
|
+
if (object.name != null)
|
|
12123
|
+
message.name = String(object.name);
|
|
12124
|
+
if (object.slug != null)
|
|
12125
|
+
message.slug = String(object.slug);
|
|
12126
|
+
if (object.topic) {
|
|
12127
|
+
if (typeof object.topic !== "object")
|
|
12128
|
+
throw TypeError(".ContentfulCategoryUpdated.topic: object expected");
|
|
12129
|
+
message.topic = {};
|
|
12130
|
+
for (var keys = Object.keys(object.topic), i = 0; i < keys.length; ++i) {
|
|
12131
|
+
if (typeof object.topic[keys[i]] !== "object")
|
|
12132
|
+
throw TypeError(".ContentfulCategoryUpdated.topic: object expected");
|
|
12133
|
+
message.topic[keys[i]] = $root.contentful.SlugReference.fromObject(object.topic[keys[i]]);
|
|
12134
|
+
}
|
|
12135
|
+
}
|
|
12136
|
+
if (object.type != null)
|
|
12137
|
+
message.type = String(object.type);
|
|
12138
|
+
if (object.content) {
|
|
12139
|
+
if (!Array.isArray(object.content))
|
|
12140
|
+
throw TypeError(".ContentfulCategoryUpdated.content: array expected");
|
|
12141
|
+
message.content = [];
|
|
12142
|
+
for (var i = 0; i < object.content.length; ++i) {
|
|
12143
|
+
if (typeof object.content[i] !== "object")
|
|
12144
|
+
throw TypeError(".ContentfulCategoryUpdated.content: object expected");
|
|
12145
|
+
message.content[i] = $root.contentful.SlugReference.fromObject(object.content[i]);
|
|
12146
|
+
}
|
|
12147
|
+
}
|
|
12148
|
+
if (object.updatedAt != null)
|
|
12149
|
+
if ($util.Long)
|
|
12150
|
+
(message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
|
|
12151
|
+
else if (typeof object.updatedAt === "string")
|
|
12152
|
+
message.updatedAt = parseInt(object.updatedAt, 10);
|
|
12153
|
+
else if (typeof object.updatedAt === "number")
|
|
12154
|
+
message.updatedAt = object.updatedAt;
|
|
12155
|
+
else if (typeof object.updatedAt === "object")
|
|
12156
|
+
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
12157
|
+
return message;
|
|
12158
|
+
};
|
|
12159
|
+
|
|
12160
|
+
/**
|
|
12161
|
+
* Creates a plain object from a ContentfulCategoryUpdated message. Also converts values to other types if specified.
|
|
12162
|
+
* @function toObject
|
|
12163
|
+
* @memberof ContentfulCategoryUpdated
|
|
12164
|
+
* @static
|
|
12165
|
+
* @param {ContentfulCategoryUpdated} message ContentfulCategoryUpdated
|
|
12166
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
12167
|
+
* @returns {Object.<string,*>} Plain object
|
|
12168
|
+
*/
|
|
12169
|
+
ContentfulCategoryUpdated.toObject = function toObject(message, options) {
|
|
12170
|
+
if (!options)
|
|
12171
|
+
options = {};
|
|
12172
|
+
var object = {};
|
|
12173
|
+
if (options.arrays || options.defaults)
|
|
12174
|
+
object.content = [];
|
|
12175
|
+
if (options.objects || options.defaults)
|
|
12176
|
+
object.topic = {};
|
|
12177
|
+
if (options.defaults) {
|
|
12178
|
+
object.name = "";
|
|
12179
|
+
object.slug = "";
|
|
12180
|
+
object.type = "";
|
|
12181
|
+
if ($util.Long) {
|
|
12182
|
+
var long = new $util.Long(0, 0, true);
|
|
12183
|
+
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
12184
|
+
} else
|
|
12185
|
+
object.updatedAt = options.longs === String ? "0" : 0;
|
|
12186
|
+
}
|
|
12187
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
12188
|
+
object.name = message.name;
|
|
12189
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
12190
|
+
object.slug = message.slug;
|
|
12191
|
+
var keys2;
|
|
12192
|
+
if (message.topic && (keys2 = Object.keys(message.topic)).length) {
|
|
12193
|
+
object.topic = {};
|
|
12194
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
12195
|
+
object.topic[keys2[j]] = $root.contentful.SlugReference.toObject(message.topic[keys2[j]], options);
|
|
12196
|
+
}
|
|
12197
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
12198
|
+
object.type = message.type;
|
|
12199
|
+
if (message.content && message.content.length) {
|
|
12200
|
+
object.content = [];
|
|
12201
|
+
for (var j = 0; j < message.content.length; ++j)
|
|
12202
|
+
object.content[j] = $root.contentful.SlugReference.toObject(message.content[j], options);
|
|
12203
|
+
}
|
|
12204
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
12205
|
+
if (typeof message.updatedAt === "number")
|
|
12206
|
+
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
12207
|
+
else
|
|
12208
|
+
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;
|
|
12209
|
+
return object;
|
|
12210
|
+
};
|
|
12211
|
+
|
|
12212
|
+
/**
|
|
12213
|
+
* Converts this ContentfulCategoryUpdated to JSON.
|
|
12214
|
+
* @function toJSON
|
|
12215
|
+
* @memberof ContentfulCategoryUpdated
|
|
12216
|
+
* @instance
|
|
12217
|
+
* @returns {Object.<string,*>} JSON object
|
|
12218
|
+
*/
|
|
12219
|
+
ContentfulCategoryUpdated.prototype.toJSON = function toJSON() {
|
|
12220
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
12221
|
+
};
|
|
12222
|
+
|
|
12223
|
+
return ContentfulCategoryUpdated;
|
|
12224
|
+
})();
|
|
12225
|
+
|
|
12226
|
+
$root.ContentfulCategoryDeleted = (function() {
|
|
12227
|
+
|
|
12228
|
+
/**
|
|
12229
|
+
* Properties of a ContentfulCategoryDeleted.
|
|
12230
|
+
* @exports IContentfulCategoryDeleted
|
|
12231
|
+
* @interface IContentfulCategoryDeleted
|
|
12232
|
+
* @property {string|null} [slug] ContentfulCategoryDeleted slug
|
|
12233
|
+
* @property {number|Long|null} [deletedAt] ContentfulCategoryDeleted deletedAt
|
|
12234
|
+
*/
|
|
12235
|
+
|
|
12236
|
+
/**
|
|
12237
|
+
* Constructs a new ContentfulCategoryDeleted.
|
|
12238
|
+
* @exports ContentfulCategoryDeleted
|
|
12239
|
+
* @classdesc Represents a ContentfulCategoryDeleted.
|
|
12240
|
+
* @implements IContentfulCategoryDeleted
|
|
12241
|
+
* @constructor
|
|
12242
|
+
* @param {IContentfulCategoryDeleted=} [properties] Properties to set
|
|
12243
|
+
*/
|
|
12244
|
+
function ContentfulCategoryDeleted(properties) {
|
|
12245
|
+
if (properties)
|
|
12246
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
12247
|
+
if (properties[keys[i]] != null)
|
|
12248
|
+
this[keys[i]] = properties[keys[i]];
|
|
12249
|
+
}
|
|
12250
|
+
|
|
12251
|
+
/**
|
|
12252
|
+
* ContentfulCategoryDeleted slug.
|
|
12253
|
+
* @member {string} slug
|
|
12254
|
+
* @memberof ContentfulCategoryDeleted
|
|
12255
|
+
* @instance
|
|
12256
|
+
*/
|
|
12257
|
+
ContentfulCategoryDeleted.prototype.slug = "";
|
|
12258
|
+
|
|
12259
|
+
/**
|
|
12260
|
+
* ContentfulCategoryDeleted deletedAt.
|
|
12261
|
+
* @member {number|Long} deletedAt
|
|
12262
|
+
* @memberof ContentfulCategoryDeleted
|
|
12263
|
+
* @instance
|
|
12264
|
+
*/
|
|
12265
|
+
ContentfulCategoryDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
12266
|
+
|
|
12267
|
+
/**
|
|
12268
|
+
* Creates a new ContentfulCategoryDeleted instance using the specified properties.
|
|
12269
|
+
* @function create
|
|
12270
|
+
* @memberof ContentfulCategoryDeleted
|
|
12271
|
+
* @static
|
|
12272
|
+
* @param {IContentfulCategoryDeleted=} [properties] Properties to set
|
|
12273
|
+
* @returns {ContentfulCategoryDeleted} ContentfulCategoryDeleted instance
|
|
12274
|
+
*/
|
|
12275
|
+
ContentfulCategoryDeleted.create = function create(properties) {
|
|
12276
|
+
return new ContentfulCategoryDeleted(properties);
|
|
12277
|
+
};
|
|
12278
|
+
|
|
12279
|
+
/**
|
|
12280
|
+
* Encodes the specified ContentfulCategoryDeleted message. Does not implicitly {@link ContentfulCategoryDeleted.verify|verify} messages.
|
|
12281
|
+
* @function encode
|
|
12282
|
+
* @memberof ContentfulCategoryDeleted
|
|
12283
|
+
* @static
|
|
12284
|
+
* @param {IContentfulCategoryDeleted} message ContentfulCategoryDeleted message or plain object to encode
|
|
12285
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
12286
|
+
* @returns {$protobuf.Writer} Writer
|
|
12287
|
+
*/
|
|
12288
|
+
ContentfulCategoryDeleted.encode = function encode(message, writer) {
|
|
12289
|
+
if (!writer)
|
|
12290
|
+
writer = $Writer.create();
|
|
12291
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
12292
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
12293
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
12294
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.deletedAt);
|
|
12295
|
+
return writer;
|
|
12296
|
+
};
|
|
12297
|
+
|
|
12298
|
+
/**
|
|
12299
|
+
* Encodes the specified ContentfulCategoryDeleted message, length delimited. Does not implicitly {@link ContentfulCategoryDeleted.verify|verify} messages.
|
|
12300
|
+
* @function encodeDelimited
|
|
12301
|
+
* @memberof ContentfulCategoryDeleted
|
|
12302
|
+
* @static
|
|
12303
|
+
* @param {IContentfulCategoryDeleted} message ContentfulCategoryDeleted message or plain object to encode
|
|
12304
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
12305
|
+
* @returns {$protobuf.Writer} Writer
|
|
12306
|
+
*/
|
|
12307
|
+
ContentfulCategoryDeleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
12308
|
+
return this.encode(message, writer).ldelim();
|
|
12309
|
+
};
|
|
12310
|
+
|
|
12311
|
+
/**
|
|
12312
|
+
* Decodes a ContentfulCategoryDeleted message from the specified reader or buffer.
|
|
12313
|
+
* @function decode
|
|
12314
|
+
* @memberof ContentfulCategoryDeleted
|
|
12315
|
+
* @static
|
|
12316
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
12317
|
+
* @param {number} [length] Message length if known beforehand
|
|
12318
|
+
* @returns {ContentfulCategoryDeleted} ContentfulCategoryDeleted
|
|
12319
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
12320
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
12321
|
+
*/
|
|
12322
|
+
ContentfulCategoryDeleted.decode = function decode(reader, length) {
|
|
12323
|
+
if (!(reader instanceof $Reader))
|
|
12324
|
+
reader = $Reader.create(reader);
|
|
12325
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulCategoryDeleted();
|
|
12326
|
+
while (reader.pos < end) {
|
|
12327
|
+
var tag = reader.uint32();
|
|
12328
|
+
switch (tag >>> 3) {
|
|
12329
|
+
case 1:
|
|
12330
|
+
message.slug = reader.string();
|
|
12331
|
+
break;
|
|
12332
|
+
case 2:
|
|
12333
|
+
message.deletedAt = reader.uint64();
|
|
12334
|
+
break;
|
|
12335
|
+
default:
|
|
12336
|
+
reader.skipType(tag & 7);
|
|
12337
|
+
break;
|
|
12338
|
+
}
|
|
12339
|
+
}
|
|
12340
|
+
return message;
|
|
12341
|
+
};
|
|
12342
|
+
|
|
12343
|
+
/**
|
|
12344
|
+
* Decodes a ContentfulCategoryDeleted message from the specified reader or buffer, length delimited.
|
|
12345
|
+
* @function decodeDelimited
|
|
12346
|
+
* @memberof ContentfulCategoryDeleted
|
|
12347
|
+
* @static
|
|
12348
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
12349
|
+
* @returns {ContentfulCategoryDeleted} ContentfulCategoryDeleted
|
|
12350
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
12351
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
12352
|
+
*/
|
|
12353
|
+
ContentfulCategoryDeleted.decodeDelimited = function decodeDelimited(reader) {
|
|
12354
|
+
if (!(reader instanceof $Reader))
|
|
12355
|
+
reader = new $Reader(reader);
|
|
12356
|
+
return this.decode(reader, reader.uint32());
|
|
12357
|
+
};
|
|
12358
|
+
|
|
12359
|
+
/**
|
|
12360
|
+
* Verifies a ContentfulCategoryDeleted message.
|
|
12361
|
+
* @function verify
|
|
12362
|
+
* @memberof ContentfulCategoryDeleted
|
|
12363
|
+
* @static
|
|
12364
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
12365
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
12366
|
+
*/
|
|
12367
|
+
ContentfulCategoryDeleted.verify = function verify(message) {
|
|
12368
|
+
if (typeof message !== "object" || message === null)
|
|
12369
|
+
return "object expected";
|
|
12370
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
12371
|
+
if (!$util.isString(message.slug))
|
|
12372
|
+
return "slug: string expected";
|
|
12373
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
12374
|
+
if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
|
|
12375
|
+
return "deletedAt: integer|Long expected";
|
|
12376
|
+
return null;
|
|
12377
|
+
};
|
|
12378
|
+
|
|
12379
|
+
/**
|
|
12380
|
+
* Creates a ContentfulCategoryDeleted message from a plain object. Also converts values to their respective internal types.
|
|
12381
|
+
* @function fromObject
|
|
12382
|
+
* @memberof ContentfulCategoryDeleted
|
|
12383
|
+
* @static
|
|
12384
|
+
* @param {Object.<string,*>} object Plain object
|
|
12385
|
+
* @returns {ContentfulCategoryDeleted} ContentfulCategoryDeleted
|
|
12386
|
+
*/
|
|
12387
|
+
ContentfulCategoryDeleted.fromObject = function fromObject(object) {
|
|
12388
|
+
if (object instanceof $root.ContentfulCategoryDeleted)
|
|
12389
|
+
return object;
|
|
12390
|
+
var message = new $root.ContentfulCategoryDeleted();
|
|
12391
|
+
if (object.slug != null)
|
|
12392
|
+
message.slug = String(object.slug);
|
|
12393
|
+
if (object.deletedAt != null)
|
|
12394
|
+
if ($util.Long)
|
|
12395
|
+
(message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
|
|
12396
|
+
else if (typeof object.deletedAt === "string")
|
|
12397
|
+
message.deletedAt = parseInt(object.deletedAt, 10);
|
|
12398
|
+
else if (typeof object.deletedAt === "number")
|
|
12399
|
+
message.deletedAt = object.deletedAt;
|
|
12400
|
+
else if (typeof object.deletedAt === "object")
|
|
12401
|
+
message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
|
|
12402
|
+
return message;
|
|
12403
|
+
};
|
|
12404
|
+
|
|
12405
|
+
/**
|
|
12406
|
+
* Creates a plain object from a ContentfulCategoryDeleted message. Also converts values to other types if specified.
|
|
12407
|
+
* @function toObject
|
|
12408
|
+
* @memberof ContentfulCategoryDeleted
|
|
12409
|
+
* @static
|
|
12410
|
+
* @param {ContentfulCategoryDeleted} message ContentfulCategoryDeleted
|
|
12411
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
12412
|
+
* @returns {Object.<string,*>} Plain object
|
|
12413
|
+
*/
|
|
12414
|
+
ContentfulCategoryDeleted.toObject = function toObject(message, options) {
|
|
12415
|
+
if (!options)
|
|
12416
|
+
options = {};
|
|
12417
|
+
var object = {};
|
|
12418
|
+
if (options.defaults) {
|
|
12419
|
+
object.slug = "";
|
|
12420
|
+
if ($util.Long) {
|
|
12421
|
+
var long = new $util.Long(0, 0, true);
|
|
12422
|
+
object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
12423
|
+
} else
|
|
12424
|
+
object.deletedAt = options.longs === String ? "0" : 0;
|
|
12425
|
+
}
|
|
12426
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
12427
|
+
object.slug = message.slug;
|
|
12428
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
12429
|
+
if (typeof message.deletedAt === "number")
|
|
12430
|
+
object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
|
|
12431
|
+
else
|
|
12432
|
+
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;
|
|
12433
|
+
return object;
|
|
12434
|
+
};
|
|
12435
|
+
|
|
12436
|
+
/**
|
|
12437
|
+
* Converts this ContentfulCategoryDeleted to JSON.
|
|
12438
|
+
* @function toJSON
|
|
12439
|
+
* @memberof ContentfulCategoryDeleted
|
|
12440
|
+
* @instance
|
|
12441
|
+
* @returns {Object.<string,*>} JSON object
|
|
12442
|
+
*/
|
|
12443
|
+
ContentfulCategoryDeleted.prototype.toJSON = function toJSON() {
|
|
12444
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
12445
|
+
};
|
|
12446
|
+
|
|
12447
|
+
return ContentfulCategoryDeleted;
|
|
12448
|
+
})();
|
|
12449
|
+
|
|
11520
12450
|
$root.ContentfulContentModelCreated = (function() {
|
|
11521
12451
|
|
|
11522
12452
|
/**
|