@headspace/protos-events 1.294.0 → 1.296.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 +354 -0
- package/lib/index.js +1155 -171
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -38981,6 +38981,7 @@ $root.ContentfulTopicCreated = (function() {
|
|
|
38981
38981
|
* @property {Array.<contentful.ISlugReference>|null} [categories] ContentfulTopicCreated categories
|
|
38982
38982
|
* @property {Array.<contentful.ISlugReference>|null} [accessGroups] ContentfulTopicCreated accessGroups
|
|
38983
38983
|
* @property {number|Long|null} [createdAt] ContentfulTopicCreated createdAt
|
|
38984
|
+
* @property {boolean|null} [isInternationalOnly] ContentfulTopicCreated isInternationalOnly
|
|
38984
38985
|
*/
|
|
38985
38986
|
|
|
38986
38987
|
/**
|
|
@@ -39109,6 +39110,14 @@ $root.ContentfulTopicCreated = (function() {
|
|
|
39109
39110
|
*/
|
|
39110
39111
|
ContentfulTopicCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
39111
39112
|
|
|
39113
|
+
/**
|
|
39114
|
+
* ContentfulTopicCreated isInternationalOnly.
|
|
39115
|
+
* @member {boolean} isInternationalOnly
|
|
39116
|
+
* @memberof ContentfulTopicCreated
|
|
39117
|
+
* @instance
|
|
39118
|
+
*/
|
|
39119
|
+
ContentfulTopicCreated.prototype.isInternationalOnly = false;
|
|
39120
|
+
|
|
39112
39121
|
/**
|
|
39113
39122
|
* Creates a new ContentfulTopicCreated instance using the specified properties.
|
|
39114
39123
|
* @function create
|
|
@@ -39172,6 +39181,8 @@ $root.ContentfulTopicCreated = (function() {
|
|
|
39172
39181
|
$root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
|
|
39173
39182
|
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
39174
39183
|
writer.uint32(/* id 13, wireType 0 =*/104).uint64(message.createdAt);
|
|
39184
|
+
if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
|
|
39185
|
+
writer.uint32(/* id 14, wireType 0 =*/112).bool(message.isInternationalOnly);
|
|
39175
39186
|
return writer;
|
|
39176
39187
|
};
|
|
39177
39188
|
|
|
@@ -39274,6 +39285,9 @@ $root.ContentfulTopicCreated = (function() {
|
|
|
39274
39285
|
case 13:
|
|
39275
39286
|
message.createdAt = reader.uint64();
|
|
39276
39287
|
break;
|
|
39288
|
+
case 14:
|
|
39289
|
+
message.isInternationalOnly = reader.bool();
|
|
39290
|
+
break;
|
|
39277
39291
|
default:
|
|
39278
39292
|
reader.skipType(tag & 7);
|
|
39279
39293
|
break;
|
|
@@ -39391,6 +39405,9 @@ $root.ContentfulTopicCreated = (function() {
|
|
|
39391
39405
|
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
39392
39406
|
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
39393
39407
|
return "createdAt: integer|Long expected";
|
|
39408
|
+
if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
|
|
39409
|
+
if (typeof message.isInternationalOnly !== "boolean")
|
|
39410
|
+
return "isInternationalOnly: boolean expected";
|
|
39394
39411
|
return null;
|
|
39395
39412
|
};
|
|
39396
39413
|
|
|
@@ -39489,6 +39506,8 @@ $root.ContentfulTopicCreated = (function() {
|
|
|
39489
39506
|
message.createdAt = object.createdAt;
|
|
39490
39507
|
else if (typeof object.createdAt === "object")
|
|
39491
39508
|
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
39509
|
+
if (object.isInternationalOnly != null)
|
|
39510
|
+
message.isInternationalOnly = Boolean(object.isInternationalOnly);
|
|
39492
39511
|
return message;
|
|
39493
39512
|
};
|
|
39494
39513
|
|
|
@@ -39527,6 +39546,7 @@ $root.ContentfulTopicCreated = (function() {
|
|
|
39527
39546
|
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
39528
39547
|
} else
|
|
39529
39548
|
object.createdAt = options.longs === String ? "0" : 0;
|
|
39549
|
+
object.isInternationalOnly = false;
|
|
39530
39550
|
}
|
|
39531
39551
|
var keys2;
|
|
39532
39552
|
if (message.name && (keys2 = Object.keys(message.name)).length) {
|
|
@@ -39579,6 +39599,8 @@ $root.ContentfulTopicCreated = (function() {
|
|
|
39579
39599
|
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
39580
39600
|
else
|
|
39581
39601
|
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;
|
|
39602
|
+
if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
|
|
39603
|
+
object.isInternationalOnly = message.isInternationalOnly;
|
|
39582
39604
|
return object;
|
|
39583
39605
|
};
|
|
39584
39606
|
|
|
@@ -39615,6 +39637,7 @@ $root.ContentfulTopicUpdated = (function() {
|
|
|
39615
39637
|
* @property {Array.<contentful.ISlugReference>|null} [categories] ContentfulTopicUpdated categories
|
|
39616
39638
|
* @property {Array.<contentful.ISlugReference>|null} [accessGroups] ContentfulTopicUpdated accessGroups
|
|
39617
39639
|
* @property {number|Long|null} [updatedAt] ContentfulTopicUpdated updatedAt
|
|
39640
|
+
* @property {boolean|null} [isInternationalOnly] ContentfulTopicUpdated isInternationalOnly
|
|
39618
39641
|
*/
|
|
39619
39642
|
|
|
39620
39643
|
/**
|
|
@@ -39743,6 +39766,14 @@ $root.ContentfulTopicUpdated = (function() {
|
|
|
39743
39766
|
*/
|
|
39744
39767
|
ContentfulTopicUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
39745
39768
|
|
|
39769
|
+
/**
|
|
39770
|
+
* ContentfulTopicUpdated isInternationalOnly.
|
|
39771
|
+
* @member {boolean} isInternationalOnly
|
|
39772
|
+
* @memberof ContentfulTopicUpdated
|
|
39773
|
+
* @instance
|
|
39774
|
+
*/
|
|
39775
|
+
ContentfulTopicUpdated.prototype.isInternationalOnly = false;
|
|
39776
|
+
|
|
39746
39777
|
/**
|
|
39747
39778
|
* Creates a new ContentfulTopicUpdated instance using the specified properties.
|
|
39748
39779
|
* @function create
|
|
@@ -39806,6 +39837,8 @@ $root.ContentfulTopicUpdated = (function() {
|
|
|
39806
39837
|
$root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
|
|
39807
39838
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
39808
39839
|
writer.uint32(/* id 13, wireType 0 =*/104).uint64(message.updatedAt);
|
|
39840
|
+
if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
|
|
39841
|
+
writer.uint32(/* id 14, wireType 0 =*/112).bool(message.isInternationalOnly);
|
|
39809
39842
|
return writer;
|
|
39810
39843
|
};
|
|
39811
39844
|
|
|
@@ -39908,6 +39941,9 @@ $root.ContentfulTopicUpdated = (function() {
|
|
|
39908
39941
|
case 13:
|
|
39909
39942
|
message.updatedAt = reader.uint64();
|
|
39910
39943
|
break;
|
|
39944
|
+
case 14:
|
|
39945
|
+
message.isInternationalOnly = reader.bool();
|
|
39946
|
+
break;
|
|
39911
39947
|
default:
|
|
39912
39948
|
reader.skipType(tag & 7);
|
|
39913
39949
|
break;
|
|
@@ -40025,6 +40061,9 @@ $root.ContentfulTopicUpdated = (function() {
|
|
|
40025
40061
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
40026
40062
|
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
40027
40063
|
return "updatedAt: integer|Long expected";
|
|
40064
|
+
if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
|
|
40065
|
+
if (typeof message.isInternationalOnly !== "boolean")
|
|
40066
|
+
return "isInternationalOnly: boolean expected";
|
|
40028
40067
|
return null;
|
|
40029
40068
|
};
|
|
40030
40069
|
|
|
@@ -40123,6 +40162,8 @@ $root.ContentfulTopicUpdated = (function() {
|
|
|
40123
40162
|
message.updatedAt = object.updatedAt;
|
|
40124
40163
|
else if (typeof object.updatedAt === "object")
|
|
40125
40164
|
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
40165
|
+
if (object.isInternationalOnly != null)
|
|
40166
|
+
message.isInternationalOnly = Boolean(object.isInternationalOnly);
|
|
40126
40167
|
return message;
|
|
40127
40168
|
};
|
|
40128
40169
|
|
|
@@ -40161,6 +40202,7 @@ $root.ContentfulTopicUpdated = (function() {
|
|
|
40161
40202
|
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
40162
40203
|
} else
|
|
40163
40204
|
object.updatedAt = options.longs === String ? "0" : 0;
|
|
40205
|
+
object.isInternationalOnly = false;
|
|
40164
40206
|
}
|
|
40165
40207
|
var keys2;
|
|
40166
40208
|
if (message.name && (keys2 = Object.keys(message.name)).length) {
|
|
@@ -40213,6 +40255,8 @@ $root.ContentfulTopicUpdated = (function() {
|
|
|
40213
40255
|
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
40214
40256
|
else
|
|
40215
40257
|
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;
|
|
40258
|
+
if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
|
|
40259
|
+
object.isInternationalOnly = message.isInternationalOnly;
|
|
40216
40260
|
return object;
|
|
40217
40261
|
};
|
|
40218
40262
|
|
|
@@ -61732,29 +61776,29 @@ $root.ActivityDeleted = (function() {
|
|
|
61732
61776
|
return ActivityDeleted;
|
|
61733
61777
|
})();
|
|
61734
61778
|
|
|
61735
|
-
$root.
|
|
61779
|
+
$root.CollectionCreated = (function() {
|
|
61736
61780
|
|
|
61737
61781
|
/**
|
|
61738
|
-
* Properties of a
|
|
61739
|
-
* @exports
|
|
61740
|
-
* @interface
|
|
61741
|
-
* @property {
|
|
61742
|
-
* @property {
|
|
61743
|
-
* @property {
|
|
61744
|
-
* @property {
|
|
61745
|
-
* @property {
|
|
61746
|
-
* @property {IContentPlayedMetadata|null} [metadata] ContentPlayed metadata
|
|
61782
|
+
* Properties of a CollectionCreated.
|
|
61783
|
+
* @exports ICollectionCreated
|
|
61784
|
+
* @interface ICollectionCreated
|
|
61785
|
+
* @property {string|null} [slug] CollectionCreated slug
|
|
61786
|
+
* @property {string|null} [contentType] CollectionCreated contentType
|
|
61787
|
+
* @property {ContentCollectionType|null} [collectionType] CollectionCreated collectionType
|
|
61788
|
+
* @property {Array.<contentful.ISlugReference>|null} [accessGroup] CollectionCreated accessGroup
|
|
61789
|
+
* @property {number|Long|null} [createdAt] CollectionCreated createdAt
|
|
61747
61790
|
*/
|
|
61748
61791
|
|
|
61749
61792
|
/**
|
|
61750
|
-
* Constructs a new
|
|
61751
|
-
* @exports
|
|
61752
|
-
* @classdesc Represents a
|
|
61753
|
-
* @implements
|
|
61793
|
+
* Constructs a new CollectionCreated.
|
|
61794
|
+
* @exports CollectionCreated
|
|
61795
|
+
* @classdesc Represents a CollectionCreated.
|
|
61796
|
+
* @implements ICollectionCreated
|
|
61754
61797
|
* @constructor
|
|
61755
|
-
* @param {
|
|
61798
|
+
* @param {ICollectionCreated=} [properties] Properties to set
|
|
61756
61799
|
*/
|
|
61757
|
-
function
|
|
61800
|
+
function CollectionCreated(properties) {
|
|
61801
|
+
this.accessGroup = [];
|
|
61758
61802
|
if (properties)
|
|
61759
61803
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
61760
61804
|
if (properties[keys[i]] != null)
|
|
@@ -61762,140 +61806,130 @@ $root.ContentPlayed = (function() {
|
|
|
61762
61806
|
}
|
|
61763
61807
|
|
|
61764
61808
|
/**
|
|
61765
|
-
*
|
|
61766
|
-
* @member {
|
|
61767
|
-
* @memberof
|
|
61768
|
-
* @instance
|
|
61769
|
-
*/
|
|
61770
|
-
ContentPlayed.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
61771
|
-
|
|
61772
|
-
/**
|
|
61773
|
-
* ContentPlayed contentId.
|
|
61774
|
-
* @member {number} contentId
|
|
61775
|
-
* @memberof ContentPlayed
|
|
61809
|
+
* CollectionCreated slug.
|
|
61810
|
+
* @member {string} slug
|
|
61811
|
+
* @memberof CollectionCreated
|
|
61776
61812
|
* @instance
|
|
61777
61813
|
*/
|
|
61778
|
-
|
|
61814
|
+
CollectionCreated.prototype.slug = "";
|
|
61779
61815
|
|
|
61780
61816
|
/**
|
|
61781
|
-
*
|
|
61782
|
-
* @member {string}
|
|
61783
|
-
* @memberof
|
|
61817
|
+
* CollectionCreated contentType.
|
|
61818
|
+
* @member {string} contentType
|
|
61819
|
+
* @memberof CollectionCreated
|
|
61784
61820
|
* @instance
|
|
61785
61821
|
*/
|
|
61786
|
-
|
|
61822
|
+
CollectionCreated.prototype.contentType = "";
|
|
61787
61823
|
|
|
61788
61824
|
/**
|
|
61789
|
-
*
|
|
61790
|
-
* @member {
|
|
61791
|
-
* @memberof
|
|
61825
|
+
* CollectionCreated collectionType.
|
|
61826
|
+
* @member {ContentCollectionType} collectionType
|
|
61827
|
+
* @memberof CollectionCreated
|
|
61792
61828
|
* @instance
|
|
61793
61829
|
*/
|
|
61794
|
-
|
|
61830
|
+
CollectionCreated.prototype.collectionType = 0;
|
|
61795
61831
|
|
|
61796
61832
|
/**
|
|
61797
|
-
*
|
|
61798
|
-
* @member {
|
|
61799
|
-
* @memberof
|
|
61833
|
+
* CollectionCreated accessGroup.
|
|
61834
|
+
* @member {Array.<contentful.ISlugReference>} accessGroup
|
|
61835
|
+
* @memberof CollectionCreated
|
|
61800
61836
|
* @instance
|
|
61801
61837
|
*/
|
|
61802
|
-
|
|
61838
|
+
CollectionCreated.prototype.accessGroup = $util.emptyArray;
|
|
61803
61839
|
|
|
61804
61840
|
/**
|
|
61805
|
-
*
|
|
61806
|
-
* @member {
|
|
61807
|
-
* @memberof
|
|
61841
|
+
* CollectionCreated createdAt.
|
|
61842
|
+
* @member {number|Long} createdAt
|
|
61843
|
+
* @memberof CollectionCreated
|
|
61808
61844
|
* @instance
|
|
61809
61845
|
*/
|
|
61810
|
-
|
|
61846
|
+
CollectionCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
61811
61847
|
|
|
61812
61848
|
/**
|
|
61813
|
-
* Creates a new
|
|
61849
|
+
* Creates a new CollectionCreated instance using the specified properties.
|
|
61814
61850
|
* @function create
|
|
61815
|
-
* @memberof
|
|
61851
|
+
* @memberof CollectionCreated
|
|
61816
61852
|
* @static
|
|
61817
|
-
* @param {
|
|
61818
|
-
* @returns {
|
|
61853
|
+
* @param {ICollectionCreated=} [properties] Properties to set
|
|
61854
|
+
* @returns {CollectionCreated} CollectionCreated instance
|
|
61819
61855
|
*/
|
|
61820
|
-
|
|
61821
|
-
return new
|
|
61856
|
+
CollectionCreated.create = function create(properties) {
|
|
61857
|
+
return new CollectionCreated(properties);
|
|
61822
61858
|
};
|
|
61823
61859
|
|
|
61824
61860
|
/**
|
|
61825
|
-
* Encodes the specified
|
|
61861
|
+
* Encodes the specified CollectionCreated message. Does not implicitly {@link CollectionCreated.verify|verify} messages.
|
|
61826
61862
|
* @function encode
|
|
61827
|
-
* @memberof
|
|
61863
|
+
* @memberof CollectionCreated
|
|
61828
61864
|
* @static
|
|
61829
|
-
* @param {
|
|
61865
|
+
* @param {ICollectionCreated} message CollectionCreated message or plain object to encode
|
|
61830
61866
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
61831
61867
|
* @returns {$protobuf.Writer} Writer
|
|
61832
61868
|
*/
|
|
61833
|
-
|
|
61869
|
+
CollectionCreated.encode = function encode(message, writer) {
|
|
61834
61870
|
if (!writer)
|
|
61835
61871
|
writer = $Writer.create();
|
|
61836
|
-
if (message.
|
|
61837
|
-
writer.uint32(/* id 1, wireType
|
|
61838
|
-
if (message.contentId != null && message.hasOwnProperty("contentId"))
|
|
61839
|
-
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.contentId);
|
|
61840
|
-
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
61841
|
-
writer.uint32(/* id 3, wireType 2 =*/26).string(message.userId);
|
|
61872
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
61873
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
61842
61874
|
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
61843
|
-
writer.uint32(/* id
|
|
61844
|
-
if (message.
|
|
61845
|
-
writer.uint32(/* id
|
|
61846
|
-
if (message.
|
|
61847
|
-
|
|
61875
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.contentType);
|
|
61876
|
+
if (message.collectionType != null && message.hasOwnProperty("collectionType"))
|
|
61877
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.collectionType);
|
|
61878
|
+
if (message.accessGroup != null && message.accessGroup.length)
|
|
61879
|
+
for (var i = 0; i < message.accessGroup.length; ++i)
|
|
61880
|
+
$root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
61881
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
61882
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.createdAt);
|
|
61848
61883
|
return writer;
|
|
61849
61884
|
};
|
|
61850
61885
|
|
|
61851
61886
|
/**
|
|
61852
|
-
* Encodes the specified
|
|
61887
|
+
* Encodes the specified CollectionCreated message, length delimited. Does not implicitly {@link CollectionCreated.verify|verify} messages.
|
|
61853
61888
|
* @function encodeDelimited
|
|
61854
|
-
* @memberof
|
|
61889
|
+
* @memberof CollectionCreated
|
|
61855
61890
|
* @static
|
|
61856
|
-
* @param {
|
|
61891
|
+
* @param {ICollectionCreated} message CollectionCreated message or plain object to encode
|
|
61857
61892
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
61858
61893
|
* @returns {$protobuf.Writer} Writer
|
|
61859
61894
|
*/
|
|
61860
|
-
|
|
61895
|
+
CollectionCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
61861
61896
|
return this.encode(message, writer).ldelim();
|
|
61862
61897
|
};
|
|
61863
61898
|
|
|
61864
61899
|
/**
|
|
61865
|
-
* Decodes a
|
|
61900
|
+
* Decodes a CollectionCreated message from the specified reader or buffer.
|
|
61866
61901
|
* @function decode
|
|
61867
|
-
* @memberof
|
|
61902
|
+
* @memberof CollectionCreated
|
|
61868
61903
|
* @static
|
|
61869
61904
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
61870
61905
|
* @param {number} [length] Message length if known beforehand
|
|
61871
|
-
* @returns {
|
|
61906
|
+
* @returns {CollectionCreated} CollectionCreated
|
|
61872
61907
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
61873
61908
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
61874
61909
|
*/
|
|
61875
|
-
|
|
61910
|
+
CollectionCreated.decode = function decode(reader, length) {
|
|
61876
61911
|
if (!(reader instanceof $Reader))
|
|
61877
61912
|
reader = $Reader.create(reader);
|
|
61878
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.
|
|
61913
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CollectionCreated();
|
|
61879
61914
|
while (reader.pos < end) {
|
|
61880
61915
|
var tag = reader.uint32();
|
|
61881
61916
|
switch (tag >>> 3) {
|
|
61882
61917
|
case 1:
|
|
61883
|
-
message.
|
|
61918
|
+
message.slug = reader.string();
|
|
61884
61919
|
break;
|
|
61885
61920
|
case 2:
|
|
61886
|
-
message.
|
|
61921
|
+
message.contentType = reader.string();
|
|
61887
61922
|
break;
|
|
61888
61923
|
case 3:
|
|
61889
|
-
message.
|
|
61924
|
+
message.collectionType = reader.int32();
|
|
61890
61925
|
break;
|
|
61891
61926
|
case 4:
|
|
61892
|
-
message.
|
|
61927
|
+
if (!(message.accessGroup && message.accessGroup.length))
|
|
61928
|
+
message.accessGroup = [];
|
|
61929
|
+
message.accessGroup.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
61893
61930
|
break;
|
|
61894
61931
|
case 5:
|
|
61895
|
-
message.
|
|
61896
|
-
break;
|
|
61897
|
-
case 6:
|
|
61898
|
-
message.metadata = $root.ContentPlayedMetadata.decode(reader, reader.uint32());
|
|
61932
|
+
message.createdAt = reader.uint64();
|
|
61899
61933
|
break;
|
|
61900
61934
|
default:
|
|
61901
61935
|
reader.skipType(tag & 7);
|
|
@@ -61906,135 +61940,1041 @@ $root.ContentPlayed = (function() {
|
|
|
61906
61940
|
};
|
|
61907
61941
|
|
|
61908
61942
|
/**
|
|
61909
|
-
* Decodes a
|
|
61943
|
+
* Decodes a CollectionCreated message from the specified reader or buffer, length delimited.
|
|
61910
61944
|
* @function decodeDelimited
|
|
61911
|
-
* @memberof
|
|
61945
|
+
* @memberof CollectionCreated
|
|
61912
61946
|
* @static
|
|
61913
61947
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
61914
|
-
* @returns {
|
|
61948
|
+
* @returns {CollectionCreated} CollectionCreated
|
|
61915
61949
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
61916
61950
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
61917
61951
|
*/
|
|
61918
|
-
|
|
61952
|
+
CollectionCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
61919
61953
|
if (!(reader instanceof $Reader))
|
|
61920
61954
|
reader = new $Reader(reader);
|
|
61921
61955
|
return this.decode(reader, reader.uint32());
|
|
61922
61956
|
};
|
|
61923
61957
|
|
|
61924
61958
|
/**
|
|
61925
|
-
* Verifies a
|
|
61959
|
+
* Verifies a CollectionCreated message.
|
|
61926
61960
|
* @function verify
|
|
61927
|
-
* @memberof
|
|
61961
|
+
* @memberof CollectionCreated
|
|
61928
61962
|
* @static
|
|
61929
61963
|
* @param {Object.<string,*>} message Plain object to verify
|
|
61930
61964
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
61931
61965
|
*/
|
|
61932
|
-
|
|
61966
|
+
CollectionCreated.verify = function verify(message) {
|
|
61933
61967
|
if (typeof message !== "object" || message === null)
|
|
61934
61968
|
return "object expected";
|
|
61935
|
-
if (message.
|
|
61936
|
-
if (!$util.
|
|
61937
|
-
return "
|
|
61938
|
-
if (message.contentId != null && message.hasOwnProperty("contentId"))
|
|
61939
|
-
if (!$util.isInteger(message.contentId))
|
|
61940
|
-
return "contentId: integer expected";
|
|
61941
|
-
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
61942
|
-
if (!$util.isString(message.userId))
|
|
61943
|
-
return "userId: string expected";
|
|
61969
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
61970
|
+
if (!$util.isString(message.slug))
|
|
61971
|
+
return "slug: string expected";
|
|
61944
61972
|
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
61945
|
-
|
|
61973
|
+
if (!$util.isString(message.contentType))
|
|
61974
|
+
return "contentType: string expected";
|
|
61975
|
+
if (message.collectionType != null && message.hasOwnProperty("collectionType"))
|
|
61976
|
+
switch (message.collectionType) {
|
|
61946
61977
|
default:
|
|
61947
|
-
return "
|
|
61978
|
+
return "collectionType: enum value expected";
|
|
61948
61979
|
case 0:
|
|
61949
61980
|
case 1:
|
|
61950
|
-
case 2:
|
|
61951
|
-
case 3:
|
|
61952
|
-
case 4:
|
|
61953
|
-
case 5:
|
|
61954
|
-
case 6:
|
|
61955
|
-
case 7:
|
|
61956
|
-
case 8:
|
|
61957
|
-
case 9:
|
|
61958
|
-
case 10:
|
|
61959
|
-
case 11:
|
|
61960
|
-
case 12:
|
|
61961
|
-
case 13:
|
|
61962
|
-
case 14:
|
|
61963
|
-
case 15:
|
|
61964
|
-
case 16:
|
|
61965
|
-
case 17:
|
|
61966
|
-
case 18:
|
|
61967
61981
|
break;
|
|
61968
61982
|
}
|
|
61969
|
-
if (message.
|
|
61970
|
-
|
|
61971
|
-
|
|
61972
|
-
|
|
61973
|
-
|
|
61974
|
-
|
|
61975
|
-
|
|
61976
|
-
case 3:
|
|
61977
|
-
case 4:
|
|
61978
|
-
case 5:
|
|
61979
|
-
break;
|
|
61983
|
+
if (message.accessGroup != null && message.hasOwnProperty("accessGroup")) {
|
|
61984
|
+
if (!Array.isArray(message.accessGroup))
|
|
61985
|
+
return "accessGroup: array expected";
|
|
61986
|
+
for (var i = 0; i < message.accessGroup.length; ++i) {
|
|
61987
|
+
var error = $root.contentful.SlugReference.verify(message.accessGroup[i]);
|
|
61988
|
+
if (error)
|
|
61989
|
+
return "accessGroup." + error;
|
|
61980
61990
|
}
|
|
61981
|
-
if (message.metadata != null && message.hasOwnProperty("metadata")) {
|
|
61982
|
-
var error = $root.ContentPlayedMetadata.verify(message.metadata);
|
|
61983
|
-
if (error)
|
|
61984
|
-
return "metadata." + error;
|
|
61985
61991
|
}
|
|
61992
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
61993
|
+
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
61994
|
+
return "createdAt: integer|Long expected";
|
|
61986
61995
|
return null;
|
|
61987
61996
|
};
|
|
61988
61997
|
|
|
61989
61998
|
/**
|
|
61990
|
-
* Creates a
|
|
61999
|
+
* Creates a CollectionCreated message from a plain object. Also converts values to their respective internal types.
|
|
61991
62000
|
* @function fromObject
|
|
61992
|
-
* @memberof
|
|
62001
|
+
* @memberof CollectionCreated
|
|
61993
62002
|
* @static
|
|
61994
62003
|
* @param {Object.<string,*>} object Plain object
|
|
61995
|
-
* @returns {
|
|
62004
|
+
* @returns {CollectionCreated} CollectionCreated
|
|
61996
62005
|
*/
|
|
61997
|
-
|
|
61998
|
-
if (object instanceof $root.
|
|
62006
|
+
CollectionCreated.fromObject = function fromObject(object) {
|
|
62007
|
+
if (object instanceof $root.CollectionCreated)
|
|
61999
62008
|
return object;
|
|
62000
|
-
var message = new $root.
|
|
62001
|
-
if (object.
|
|
62002
|
-
|
|
62003
|
-
|
|
62004
|
-
|
|
62005
|
-
|
|
62006
|
-
|
|
62007
|
-
message.timestamp = object.timestamp;
|
|
62008
|
-
else if (typeof object.timestamp === "object")
|
|
62009
|
-
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
62010
|
-
if (object.contentId != null)
|
|
62011
|
-
message.contentId = object.contentId >>> 0;
|
|
62012
|
-
if (object.userId != null)
|
|
62013
|
-
message.userId = String(object.userId);
|
|
62014
|
-
switch (object.contentType) {
|
|
62015
|
-
case "CONTENT_TYPE_UNRECOGNIZED":
|
|
62009
|
+
var message = new $root.CollectionCreated();
|
|
62010
|
+
if (object.slug != null)
|
|
62011
|
+
message.slug = String(object.slug);
|
|
62012
|
+
if (object.contentType != null)
|
|
62013
|
+
message.contentType = String(object.contentType);
|
|
62014
|
+
switch (object.collectionType) {
|
|
62015
|
+
case "CONTENT_COLLECTION_TYPE_UNRECOGNIZED":
|
|
62016
62016
|
case 0:
|
|
62017
|
-
message.
|
|
62017
|
+
message.collectionType = 0;
|
|
62018
62018
|
break;
|
|
62019
|
-
case "
|
|
62019
|
+
case "CONTENT_COLLECTION_TYPE_GENERIC":
|
|
62020
62020
|
case 1:
|
|
62021
|
-
message.
|
|
62022
|
-
break;
|
|
62023
|
-
case "CONTENT_TYPE_ONEOFF":
|
|
62024
|
-
case 2:
|
|
62025
|
-
message.contentType = 2;
|
|
62026
|
-
break;
|
|
62027
|
-
case "CONTENT_TYPE_ANIMATION":
|
|
62028
|
-
case 3:
|
|
62029
|
-
message.contentType = 3;
|
|
62030
|
-
break;
|
|
62031
|
-
case "CONTENT_TYPE_SLEEPCAST":
|
|
62032
|
-
case 4:
|
|
62033
|
-
message.contentType = 4;
|
|
62021
|
+
message.collectionType = 1;
|
|
62034
62022
|
break;
|
|
62035
|
-
|
|
62036
|
-
|
|
62037
|
-
|
|
62023
|
+
}
|
|
62024
|
+
if (object.accessGroup) {
|
|
62025
|
+
if (!Array.isArray(object.accessGroup))
|
|
62026
|
+
throw TypeError(".CollectionCreated.accessGroup: array expected");
|
|
62027
|
+
message.accessGroup = [];
|
|
62028
|
+
for (var i = 0; i < object.accessGroup.length; ++i) {
|
|
62029
|
+
if (typeof object.accessGroup[i] !== "object")
|
|
62030
|
+
throw TypeError(".CollectionCreated.accessGroup: object expected");
|
|
62031
|
+
message.accessGroup[i] = $root.contentful.SlugReference.fromObject(object.accessGroup[i]);
|
|
62032
|
+
}
|
|
62033
|
+
}
|
|
62034
|
+
if (object.createdAt != null)
|
|
62035
|
+
if ($util.Long)
|
|
62036
|
+
(message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
|
|
62037
|
+
else if (typeof object.createdAt === "string")
|
|
62038
|
+
message.createdAt = parseInt(object.createdAt, 10);
|
|
62039
|
+
else if (typeof object.createdAt === "number")
|
|
62040
|
+
message.createdAt = object.createdAt;
|
|
62041
|
+
else if (typeof object.createdAt === "object")
|
|
62042
|
+
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
62043
|
+
return message;
|
|
62044
|
+
};
|
|
62045
|
+
|
|
62046
|
+
/**
|
|
62047
|
+
* Creates a plain object from a CollectionCreated message. Also converts values to other types if specified.
|
|
62048
|
+
* @function toObject
|
|
62049
|
+
* @memberof CollectionCreated
|
|
62050
|
+
* @static
|
|
62051
|
+
* @param {CollectionCreated} message CollectionCreated
|
|
62052
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
62053
|
+
* @returns {Object.<string,*>} Plain object
|
|
62054
|
+
*/
|
|
62055
|
+
CollectionCreated.toObject = function toObject(message, options) {
|
|
62056
|
+
if (!options)
|
|
62057
|
+
options = {};
|
|
62058
|
+
var object = {};
|
|
62059
|
+
if (options.arrays || options.defaults)
|
|
62060
|
+
object.accessGroup = [];
|
|
62061
|
+
if (options.defaults) {
|
|
62062
|
+
object.slug = "";
|
|
62063
|
+
object.contentType = "";
|
|
62064
|
+
object.collectionType = options.enums === String ? "CONTENT_COLLECTION_TYPE_UNRECOGNIZED" : 0;
|
|
62065
|
+
if ($util.Long) {
|
|
62066
|
+
var long = new $util.Long(0, 0, true);
|
|
62067
|
+
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
62068
|
+
} else
|
|
62069
|
+
object.createdAt = options.longs === String ? "0" : 0;
|
|
62070
|
+
}
|
|
62071
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
62072
|
+
object.slug = message.slug;
|
|
62073
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
62074
|
+
object.contentType = message.contentType;
|
|
62075
|
+
if (message.collectionType != null && message.hasOwnProperty("collectionType"))
|
|
62076
|
+
object.collectionType = options.enums === String ? $root.ContentCollectionType[message.collectionType] : message.collectionType;
|
|
62077
|
+
if (message.accessGroup && message.accessGroup.length) {
|
|
62078
|
+
object.accessGroup = [];
|
|
62079
|
+
for (var j = 0; j < message.accessGroup.length; ++j)
|
|
62080
|
+
object.accessGroup[j] = $root.contentful.SlugReference.toObject(message.accessGroup[j], options);
|
|
62081
|
+
}
|
|
62082
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
62083
|
+
if (typeof message.createdAt === "number")
|
|
62084
|
+
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
62085
|
+
else
|
|
62086
|
+
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;
|
|
62087
|
+
return object;
|
|
62088
|
+
};
|
|
62089
|
+
|
|
62090
|
+
/**
|
|
62091
|
+
* Converts this CollectionCreated to JSON.
|
|
62092
|
+
* @function toJSON
|
|
62093
|
+
* @memberof CollectionCreated
|
|
62094
|
+
* @instance
|
|
62095
|
+
* @returns {Object.<string,*>} JSON object
|
|
62096
|
+
*/
|
|
62097
|
+
CollectionCreated.prototype.toJSON = function toJSON() {
|
|
62098
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
62099
|
+
};
|
|
62100
|
+
|
|
62101
|
+
return CollectionCreated;
|
|
62102
|
+
})();
|
|
62103
|
+
|
|
62104
|
+
$root.CollectionUpdated = (function() {
|
|
62105
|
+
|
|
62106
|
+
/**
|
|
62107
|
+
* Properties of a CollectionUpdated.
|
|
62108
|
+
* @exports ICollectionUpdated
|
|
62109
|
+
* @interface ICollectionUpdated
|
|
62110
|
+
* @property {string|null} [slug] CollectionUpdated slug
|
|
62111
|
+
* @property {string|null} [contentType] CollectionUpdated contentType
|
|
62112
|
+
* @property {ContentCollectionType|null} [collectionType] CollectionUpdated collectionType
|
|
62113
|
+
* @property {Array.<contentful.ISlugReference>|null} [accessGroup] CollectionUpdated accessGroup
|
|
62114
|
+
* @property {number|Long|null} [updatedAt] CollectionUpdated updatedAt
|
|
62115
|
+
*/
|
|
62116
|
+
|
|
62117
|
+
/**
|
|
62118
|
+
* Constructs a new CollectionUpdated.
|
|
62119
|
+
* @exports CollectionUpdated
|
|
62120
|
+
* @classdesc Represents a CollectionUpdated.
|
|
62121
|
+
* @implements ICollectionUpdated
|
|
62122
|
+
* @constructor
|
|
62123
|
+
* @param {ICollectionUpdated=} [properties] Properties to set
|
|
62124
|
+
*/
|
|
62125
|
+
function CollectionUpdated(properties) {
|
|
62126
|
+
this.accessGroup = [];
|
|
62127
|
+
if (properties)
|
|
62128
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
62129
|
+
if (properties[keys[i]] != null)
|
|
62130
|
+
this[keys[i]] = properties[keys[i]];
|
|
62131
|
+
}
|
|
62132
|
+
|
|
62133
|
+
/**
|
|
62134
|
+
* CollectionUpdated slug.
|
|
62135
|
+
* @member {string} slug
|
|
62136
|
+
* @memberof CollectionUpdated
|
|
62137
|
+
* @instance
|
|
62138
|
+
*/
|
|
62139
|
+
CollectionUpdated.prototype.slug = "";
|
|
62140
|
+
|
|
62141
|
+
/**
|
|
62142
|
+
* CollectionUpdated contentType.
|
|
62143
|
+
* @member {string} contentType
|
|
62144
|
+
* @memberof CollectionUpdated
|
|
62145
|
+
* @instance
|
|
62146
|
+
*/
|
|
62147
|
+
CollectionUpdated.prototype.contentType = "";
|
|
62148
|
+
|
|
62149
|
+
/**
|
|
62150
|
+
* CollectionUpdated collectionType.
|
|
62151
|
+
* @member {ContentCollectionType} collectionType
|
|
62152
|
+
* @memberof CollectionUpdated
|
|
62153
|
+
* @instance
|
|
62154
|
+
*/
|
|
62155
|
+
CollectionUpdated.prototype.collectionType = 0;
|
|
62156
|
+
|
|
62157
|
+
/**
|
|
62158
|
+
* CollectionUpdated accessGroup.
|
|
62159
|
+
* @member {Array.<contentful.ISlugReference>} accessGroup
|
|
62160
|
+
* @memberof CollectionUpdated
|
|
62161
|
+
* @instance
|
|
62162
|
+
*/
|
|
62163
|
+
CollectionUpdated.prototype.accessGroup = $util.emptyArray;
|
|
62164
|
+
|
|
62165
|
+
/**
|
|
62166
|
+
* CollectionUpdated updatedAt.
|
|
62167
|
+
* @member {number|Long} updatedAt
|
|
62168
|
+
* @memberof CollectionUpdated
|
|
62169
|
+
* @instance
|
|
62170
|
+
*/
|
|
62171
|
+
CollectionUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
62172
|
+
|
|
62173
|
+
/**
|
|
62174
|
+
* Creates a new CollectionUpdated instance using the specified properties.
|
|
62175
|
+
* @function create
|
|
62176
|
+
* @memberof CollectionUpdated
|
|
62177
|
+
* @static
|
|
62178
|
+
* @param {ICollectionUpdated=} [properties] Properties to set
|
|
62179
|
+
* @returns {CollectionUpdated} CollectionUpdated instance
|
|
62180
|
+
*/
|
|
62181
|
+
CollectionUpdated.create = function create(properties) {
|
|
62182
|
+
return new CollectionUpdated(properties);
|
|
62183
|
+
};
|
|
62184
|
+
|
|
62185
|
+
/**
|
|
62186
|
+
* Encodes the specified CollectionUpdated message. Does not implicitly {@link CollectionUpdated.verify|verify} messages.
|
|
62187
|
+
* @function encode
|
|
62188
|
+
* @memberof CollectionUpdated
|
|
62189
|
+
* @static
|
|
62190
|
+
* @param {ICollectionUpdated} message CollectionUpdated message or plain object to encode
|
|
62191
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
62192
|
+
* @returns {$protobuf.Writer} Writer
|
|
62193
|
+
*/
|
|
62194
|
+
CollectionUpdated.encode = function encode(message, writer) {
|
|
62195
|
+
if (!writer)
|
|
62196
|
+
writer = $Writer.create();
|
|
62197
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
62198
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
62199
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
62200
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.contentType);
|
|
62201
|
+
if (message.collectionType != null && message.hasOwnProperty("collectionType"))
|
|
62202
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.collectionType);
|
|
62203
|
+
if (message.accessGroup != null && message.accessGroup.length)
|
|
62204
|
+
for (var i = 0; i < message.accessGroup.length; ++i)
|
|
62205
|
+
$root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
62206
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
62207
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.updatedAt);
|
|
62208
|
+
return writer;
|
|
62209
|
+
};
|
|
62210
|
+
|
|
62211
|
+
/**
|
|
62212
|
+
* Encodes the specified CollectionUpdated message, length delimited. Does not implicitly {@link CollectionUpdated.verify|verify} messages.
|
|
62213
|
+
* @function encodeDelimited
|
|
62214
|
+
* @memberof CollectionUpdated
|
|
62215
|
+
* @static
|
|
62216
|
+
* @param {ICollectionUpdated} message CollectionUpdated message or plain object to encode
|
|
62217
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
62218
|
+
* @returns {$protobuf.Writer} Writer
|
|
62219
|
+
*/
|
|
62220
|
+
CollectionUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
62221
|
+
return this.encode(message, writer).ldelim();
|
|
62222
|
+
};
|
|
62223
|
+
|
|
62224
|
+
/**
|
|
62225
|
+
* Decodes a CollectionUpdated message from the specified reader or buffer.
|
|
62226
|
+
* @function decode
|
|
62227
|
+
* @memberof CollectionUpdated
|
|
62228
|
+
* @static
|
|
62229
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
62230
|
+
* @param {number} [length] Message length if known beforehand
|
|
62231
|
+
* @returns {CollectionUpdated} CollectionUpdated
|
|
62232
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
62233
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
62234
|
+
*/
|
|
62235
|
+
CollectionUpdated.decode = function decode(reader, length) {
|
|
62236
|
+
if (!(reader instanceof $Reader))
|
|
62237
|
+
reader = $Reader.create(reader);
|
|
62238
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CollectionUpdated();
|
|
62239
|
+
while (reader.pos < end) {
|
|
62240
|
+
var tag = reader.uint32();
|
|
62241
|
+
switch (tag >>> 3) {
|
|
62242
|
+
case 1:
|
|
62243
|
+
message.slug = reader.string();
|
|
62244
|
+
break;
|
|
62245
|
+
case 2:
|
|
62246
|
+
message.contentType = reader.string();
|
|
62247
|
+
break;
|
|
62248
|
+
case 3:
|
|
62249
|
+
message.collectionType = reader.int32();
|
|
62250
|
+
break;
|
|
62251
|
+
case 4:
|
|
62252
|
+
if (!(message.accessGroup && message.accessGroup.length))
|
|
62253
|
+
message.accessGroup = [];
|
|
62254
|
+
message.accessGroup.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
62255
|
+
break;
|
|
62256
|
+
case 5:
|
|
62257
|
+
message.updatedAt = reader.uint64();
|
|
62258
|
+
break;
|
|
62259
|
+
default:
|
|
62260
|
+
reader.skipType(tag & 7);
|
|
62261
|
+
break;
|
|
62262
|
+
}
|
|
62263
|
+
}
|
|
62264
|
+
return message;
|
|
62265
|
+
};
|
|
62266
|
+
|
|
62267
|
+
/**
|
|
62268
|
+
* Decodes a CollectionUpdated message from the specified reader or buffer, length delimited.
|
|
62269
|
+
* @function decodeDelimited
|
|
62270
|
+
* @memberof CollectionUpdated
|
|
62271
|
+
* @static
|
|
62272
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
62273
|
+
* @returns {CollectionUpdated} CollectionUpdated
|
|
62274
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
62275
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
62276
|
+
*/
|
|
62277
|
+
CollectionUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
62278
|
+
if (!(reader instanceof $Reader))
|
|
62279
|
+
reader = new $Reader(reader);
|
|
62280
|
+
return this.decode(reader, reader.uint32());
|
|
62281
|
+
};
|
|
62282
|
+
|
|
62283
|
+
/**
|
|
62284
|
+
* Verifies a CollectionUpdated message.
|
|
62285
|
+
* @function verify
|
|
62286
|
+
* @memberof CollectionUpdated
|
|
62287
|
+
* @static
|
|
62288
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
62289
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
62290
|
+
*/
|
|
62291
|
+
CollectionUpdated.verify = function verify(message) {
|
|
62292
|
+
if (typeof message !== "object" || message === null)
|
|
62293
|
+
return "object expected";
|
|
62294
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
62295
|
+
if (!$util.isString(message.slug))
|
|
62296
|
+
return "slug: string expected";
|
|
62297
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
62298
|
+
if (!$util.isString(message.contentType))
|
|
62299
|
+
return "contentType: string expected";
|
|
62300
|
+
if (message.collectionType != null && message.hasOwnProperty("collectionType"))
|
|
62301
|
+
switch (message.collectionType) {
|
|
62302
|
+
default:
|
|
62303
|
+
return "collectionType: enum value expected";
|
|
62304
|
+
case 0:
|
|
62305
|
+
case 1:
|
|
62306
|
+
break;
|
|
62307
|
+
}
|
|
62308
|
+
if (message.accessGroup != null && message.hasOwnProperty("accessGroup")) {
|
|
62309
|
+
if (!Array.isArray(message.accessGroup))
|
|
62310
|
+
return "accessGroup: array expected";
|
|
62311
|
+
for (var i = 0; i < message.accessGroup.length; ++i) {
|
|
62312
|
+
var error = $root.contentful.SlugReference.verify(message.accessGroup[i]);
|
|
62313
|
+
if (error)
|
|
62314
|
+
return "accessGroup." + error;
|
|
62315
|
+
}
|
|
62316
|
+
}
|
|
62317
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
62318
|
+
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
62319
|
+
return "updatedAt: integer|Long expected";
|
|
62320
|
+
return null;
|
|
62321
|
+
};
|
|
62322
|
+
|
|
62323
|
+
/**
|
|
62324
|
+
* Creates a CollectionUpdated message from a plain object. Also converts values to their respective internal types.
|
|
62325
|
+
* @function fromObject
|
|
62326
|
+
* @memberof CollectionUpdated
|
|
62327
|
+
* @static
|
|
62328
|
+
* @param {Object.<string,*>} object Plain object
|
|
62329
|
+
* @returns {CollectionUpdated} CollectionUpdated
|
|
62330
|
+
*/
|
|
62331
|
+
CollectionUpdated.fromObject = function fromObject(object) {
|
|
62332
|
+
if (object instanceof $root.CollectionUpdated)
|
|
62333
|
+
return object;
|
|
62334
|
+
var message = new $root.CollectionUpdated();
|
|
62335
|
+
if (object.slug != null)
|
|
62336
|
+
message.slug = String(object.slug);
|
|
62337
|
+
if (object.contentType != null)
|
|
62338
|
+
message.contentType = String(object.contentType);
|
|
62339
|
+
switch (object.collectionType) {
|
|
62340
|
+
case "CONTENT_COLLECTION_TYPE_UNRECOGNIZED":
|
|
62341
|
+
case 0:
|
|
62342
|
+
message.collectionType = 0;
|
|
62343
|
+
break;
|
|
62344
|
+
case "CONTENT_COLLECTION_TYPE_GENERIC":
|
|
62345
|
+
case 1:
|
|
62346
|
+
message.collectionType = 1;
|
|
62347
|
+
break;
|
|
62348
|
+
}
|
|
62349
|
+
if (object.accessGroup) {
|
|
62350
|
+
if (!Array.isArray(object.accessGroup))
|
|
62351
|
+
throw TypeError(".CollectionUpdated.accessGroup: array expected");
|
|
62352
|
+
message.accessGroup = [];
|
|
62353
|
+
for (var i = 0; i < object.accessGroup.length; ++i) {
|
|
62354
|
+
if (typeof object.accessGroup[i] !== "object")
|
|
62355
|
+
throw TypeError(".CollectionUpdated.accessGroup: object expected");
|
|
62356
|
+
message.accessGroup[i] = $root.contentful.SlugReference.fromObject(object.accessGroup[i]);
|
|
62357
|
+
}
|
|
62358
|
+
}
|
|
62359
|
+
if (object.updatedAt != null)
|
|
62360
|
+
if ($util.Long)
|
|
62361
|
+
(message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
|
|
62362
|
+
else if (typeof object.updatedAt === "string")
|
|
62363
|
+
message.updatedAt = parseInt(object.updatedAt, 10);
|
|
62364
|
+
else if (typeof object.updatedAt === "number")
|
|
62365
|
+
message.updatedAt = object.updatedAt;
|
|
62366
|
+
else if (typeof object.updatedAt === "object")
|
|
62367
|
+
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
62368
|
+
return message;
|
|
62369
|
+
};
|
|
62370
|
+
|
|
62371
|
+
/**
|
|
62372
|
+
* Creates a plain object from a CollectionUpdated message. Also converts values to other types if specified.
|
|
62373
|
+
* @function toObject
|
|
62374
|
+
* @memberof CollectionUpdated
|
|
62375
|
+
* @static
|
|
62376
|
+
* @param {CollectionUpdated} message CollectionUpdated
|
|
62377
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
62378
|
+
* @returns {Object.<string,*>} Plain object
|
|
62379
|
+
*/
|
|
62380
|
+
CollectionUpdated.toObject = function toObject(message, options) {
|
|
62381
|
+
if (!options)
|
|
62382
|
+
options = {};
|
|
62383
|
+
var object = {};
|
|
62384
|
+
if (options.arrays || options.defaults)
|
|
62385
|
+
object.accessGroup = [];
|
|
62386
|
+
if (options.defaults) {
|
|
62387
|
+
object.slug = "";
|
|
62388
|
+
object.contentType = "";
|
|
62389
|
+
object.collectionType = options.enums === String ? "CONTENT_COLLECTION_TYPE_UNRECOGNIZED" : 0;
|
|
62390
|
+
if ($util.Long) {
|
|
62391
|
+
var long = new $util.Long(0, 0, true);
|
|
62392
|
+
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
62393
|
+
} else
|
|
62394
|
+
object.updatedAt = options.longs === String ? "0" : 0;
|
|
62395
|
+
}
|
|
62396
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
62397
|
+
object.slug = message.slug;
|
|
62398
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
62399
|
+
object.contentType = message.contentType;
|
|
62400
|
+
if (message.collectionType != null && message.hasOwnProperty("collectionType"))
|
|
62401
|
+
object.collectionType = options.enums === String ? $root.ContentCollectionType[message.collectionType] : message.collectionType;
|
|
62402
|
+
if (message.accessGroup && message.accessGroup.length) {
|
|
62403
|
+
object.accessGroup = [];
|
|
62404
|
+
for (var j = 0; j < message.accessGroup.length; ++j)
|
|
62405
|
+
object.accessGroup[j] = $root.contentful.SlugReference.toObject(message.accessGroup[j], options);
|
|
62406
|
+
}
|
|
62407
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
62408
|
+
if (typeof message.updatedAt === "number")
|
|
62409
|
+
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
62410
|
+
else
|
|
62411
|
+
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;
|
|
62412
|
+
return object;
|
|
62413
|
+
};
|
|
62414
|
+
|
|
62415
|
+
/**
|
|
62416
|
+
* Converts this CollectionUpdated to JSON.
|
|
62417
|
+
* @function toJSON
|
|
62418
|
+
* @memberof CollectionUpdated
|
|
62419
|
+
* @instance
|
|
62420
|
+
* @returns {Object.<string,*>} JSON object
|
|
62421
|
+
*/
|
|
62422
|
+
CollectionUpdated.prototype.toJSON = function toJSON() {
|
|
62423
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
62424
|
+
};
|
|
62425
|
+
|
|
62426
|
+
return CollectionUpdated;
|
|
62427
|
+
})();
|
|
62428
|
+
|
|
62429
|
+
$root.CollectionDeleted = (function() {
|
|
62430
|
+
|
|
62431
|
+
/**
|
|
62432
|
+
* Properties of a CollectionDeleted.
|
|
62433
|
+
* @exports ICollectionDeleted
|
|
62434
|
+
* @interface ICollectionDeleted
|
|
62435
|
+
* @property {string|null} [slug] CollectionDeleted slug
|
|
62436
|
+
* @property {string|null} [contentType] CollectionDeleted contentType
|
|
62437
|
+
* @property {number|Long|null} [deletedAt] CollectionDeleted deletedAt
|
|
62438
|
+
*/
|
|
62439
|
+
|
|
62440
|
+
/**
|
|
62441
|
+
* Constructs a new CollectionDeleted.
|
|
62442
|
+
* @exports CollectionDeleted
|
|
62443
|
+
* @classdesc Represents a CollectionDeleted.
|
|
62444
|
+
* @implements ICollectionDeleted
|
|
62445
|
+
* @constructor
|
|
62446
|
+
* @param {ICollectionDeleted=} [properties] Properties to set
|
|
62447
|
+
*/
|
|
62448
|
+
function CollectionDeleted(properties) {
|
|
62449
|
+
if (properties)
|
|
62450
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
62451
|
+
if (properties[keys[i]] != null)
|
|
62452
|
+
this[keys[i]] = properties[keys[i]];
|
|
62453
|
+
}
|
|
62454
|
+
|
|
62455
|
+
/**
|
|
62456
|
+
* CollectionDeleted slug.
|
|
62457
|
+
* @member {string} slug
|
|
62458
|
+
* @memberof CollectionDeleted
|
|
62459
|
+
* @instance
|
|
62460
|
+
*/
|
|
62461
|
+
CollectionDeleted.prototype.slug = "";
|
|
62462
|
+
|
|
62463
|
+
/**
|
|
62464
|
+
* CollectionDeleted contentType.
|
|
62465
|
+
* @member {string} contentType
|
|
62466
|
+
* @memberof CollectionDeleted
|
|
62467
|
+
* @instance
|
|
62468
|
+
*/
|
|
62469
|
+
CollectionDeleted.prototype.contentType = "";
|
|
62470
|
+
|
|
62471
|
+
/**
|
|
62472
|
+
* CollectionDeleted deletedAt.
|
|
62473
|
+
* @member {number|Long} deletedAt
|
|
62474
|
+
* @memberof CollectionDeleted
|
|
62475
|
+
* @instance
|
|
62476
|
+
*/
|
|
62477
|
+
CollectionDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
62478
|
+
|
|
62479
|
+
/**
|
|
62480
|
+
* Creates a new CollectionDeleted instance using the specified properties.
|
|
62481
|
+
* @function create
|
|
62482
|
+
* @memberof CollectionDeleted
|
|
62483
|
+
* @static
|
|
62484
|
+
* @param {ICollectionDeleted=} [properties] Properties to set
|
|
62485
|
+
* @returns {CollectionDeleted} CollectionDeleted instance
|
|
62486
|
+
*/
|
|
62487
|
+
CollectionDeleted.create = function create(properties) {
|
|
62488
|
+
return new CollectionDeleted(properties);
|
|
62489
|
+
};
|
|
62490
|
+
|
|
62491
|
+
/**
|
|
62492
|
+
* Encodes the specified CollectionDeleted message. Does not implicitly {@link CollectionDeleted.verify|verify} messages.
|
|
62493
|
+
* @function encode
|
|
62494
|
+
* @memberof CollectionDeleted
|
|
62495
|
+
* @static
|
|
62496
|
+
* @param {ICollectionDeleted} message CollectionDeleted message or plain object to encode
|
|
62497
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
62498
|
+
* @returns {$protobuf.Writer} Writer
|
|
62499
|
+
*/
|
|
62500
|
+
CollectionDeleted.encode = function encode(message, writer) {
|
|
62501
|
+
if (!writer)
|
|
62502
|
+
writer = $Writer.create();
|
|
62503
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
62504
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
62505
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
62506
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.contentType);
|
|
62507
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
62508
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.deletedAt);
|
|
62509
|
+
return writer;
|
|
62510
|
+
};
|
|
62511
|
+
|
|
62512
|
+
/**
|
|
62513
|
+
* Encodes the specified CollectionDeleted message, length delimited. Does not implicitly {@link CollectionDeleted.verify|verify} messages.
|
|
62514
|
+
* @function encodeDelimited
|
|
62515
|
+
* @memberof CollectionDeleted
|
|
62516
|
+
* @static
|
|
62517
|
+
* @param {ICollectionDeleted} message CollectionDeleted message or plain object to encode
|
|
62518
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
62519
|
+
* @returns {$protobuf.Writer} Writer
|
|
62520
|
+
*/
|
|
62521
|
+
CollectionDeleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
62522
|
+
return this.encode(message, writer).ldelim();
|
|
62523
|
+
};
|
|
62524
|
+
|
|
62525
|
+
/**
|
|
62526
|
+
* Decodes a CollectionDeleted message from the specified reader or buffer.
|
|
62527
|
+
* @function decode
|
|
62528
|
+
* @memberof CollectionDeleted
|
|
62529
|
+
* @static
|
|
62530
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
62531
|
+
* @param {number} [length] Message length if known beforehand
|
|
62532
|
+
* @returns {CollectionDeleted} CollectionDeleted
|
|
62533
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
62534
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
62535
|
+
*/
|
|
62536
|
+
CollectionDeleted.decode = function decode(reader, length) {
|
|
62537
|
+
if (!(reader instanceof $Reader))
|
|
62538
|
+
reader = $Reader.create(reader);
|
|
62539
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CollectionDeleted();
|
|
62540
|
+
while (reader.pos < end) {
|
|
62541
|
+
var tag = reader.uint32();
|
|
62542
|
+
switch (tag >>> 3) {
|
|
62543
|
+
case 1:
|
|
62544
|
+
message.slug = reader.string();
|
|
62545
|
+
break;
|
|
62546
|
+
case 2:
|
|
62547
|
+
message.contentType = reader.string();
|
|
62548
|
+
break;
|
|
62549
|
+
case 3:
|
|
62550
|
+
message.deletedAt = reader.uint64();
|
|
62551
|
+
break;
|
|
62552
|
+
default:
|
|
62553
|
+
reader.skipType(tag & 7);
|
|
62554
|
+
break;
|
|
62555
|
+
}
|
|
62556
|
+
}
|
|
62557
|
+
return message;
|
|
62558
|
+
};
|
|
62559
|
+
|
|
62560
|
+
/**
|
|
62561
|
+
* Decodes a CollectionDeleted message from the specified reader or buffer, length delimited.
|
|
62562
|
+
* @function decodeDelimited
|
|
62563
|
+
* @memberof CollectionDeleted
|
|
62564
|
+
* @static
|
|
62565
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
62566
|
+
* @returns {CollectionDeleted} CollectionDeleted
|
|
62567
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
62568
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
62569
|
+
*/
|
|
62570
|
+
CollectionDeleted.decodeDelimited = function decodeDelimited(reader) {
|
|
62571
|
+
if (!(reader instanceof $Reader))
|
|
62572
|
+
reader = new $Reader(reader);
|
|
62573
|
+
return this.decode(reader, reader.uint32());
|
|
62574
|
+
};
|
|
62575
|
+
|
|
62576
|
+
/**
|
|
62577
|
+
* Verifies a CollectionDeleted message.
|
|
62578
|
+
* @function verify
|
|
62579
|
+
* @memberof CollectionDeleted
|
|
62580
|
+
* @static
|
|
62581
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
62582
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
62583
|
+
*/
|
|
62584
|
+
CollectionDeleted.verify = function verify(message) {
|
|
62585
|
+
if (typeof message !== "object" || message === null)
|
|
62586
|
+
return "object expected";
|
|
62587
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
62588
|
+
if (!$util.isString(message.slug))
|
|
62589
|
+
return "slug: string expected";
|
|
62590
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
62591
|
+
if (!$util.isString(message.contentType))
|
|
62592
|
+
return "contentType: string expected";
|
|
62593
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
62594
|
+
if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
|
|
62595
|
+
return "deletedAt: integer|Long expected";
|
|
62596
|
+
return null;
|
|
62597
|
+
};
|
|
62598
|
+
|
|
62599
|
+
/**
|
|
62600
|
+
* Creates a CollectionDeleted message from a plain object. Also converts values to their respective internal types.
|
|
62601
|
+
* @function fromObject
|
|
62602
|
+
* @memberof CollectionDeleted
|
|
62603
|
+
* @static
|
|
62604
|
+
* @param {Object.<string,*>} object Plain object
|
|
62605
|
+
* @returns {CollectionDeleted} CollectionDeleted
|
|
62606
|
+
*/
|
|
62607
|
+
CollectionDeleted.fromObject = function fromObject(object) {
|
|
62608
|
+
if (object instanceof $root.CollectionDeleted)
|
|
62609
|
+
return object;
|
|
62610
|
+
var message = new $root.CollectionDeleted();
|
|
62611
|
+
if (object.slug != null)
|
|
62612
|
+
message.slug = String(object.slug);
|
|
62613
|
+
if (object.contentType != null)
|
|
62614
|
+
message.contentType = String(object.contentType);
|
|
62615
|
+
if (object.deletedAt != null)
|
|
62616
|
+
if ($util.Long)
|
|
62617
|
+
(message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
|
|
62618
|
+
else if (typeof object.deletedAt === "string")
|
|
62619
|
+
message.deletedAt = parseInt(object.deletedAt, 10);
|
|
62620
|
+
else if (typeof object.deletedAt === "number")
|
|
62621
|
+
message.deletedAt = object.deletedAt;
|
|
62622
|
+
else if (typeof object.deletedAt === "object")
|
|
62623
|
+
message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
|
|
62624
|
+
return message;
|
|
62625
|
+
};
|
|
62626
|
+
|
|
62627
|
+
/**
|
|
62628
|
+
* Creates a plain object from a CollectionDeleted message. Also converts values to other types if specified.
|
|
62629
|
+
* @function toObject
|
|
62630
|
+
* @memberof CollectionDeleted
|
|
62631
|
+
* @static
|
|
62632
|
+
* @param {CollectionDeleted} message CollectionDeleted
|
|
62633
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
62634
|
+
* @returns {Object.<string,*>} Plain object
|
|
62635
|
+
*/
|
|
62636
|
+
CollectionDeleted.toObject = function toObject(message, options) {
|
|
62637
|
+
if (!options)
|
|
62638
|
+
options = {};
|
|
62639
|
+
var object = {};
|
|
62640
|
+
if (options.defaults) {
|
|
62641
|
+
object.slug = "";
|
|
62642
|
+
object.contentType = "";
|
|
62643
|
+
if ($util.Long) {
|
|
62644
|
+
var long = new $util.Long(0, 0, true);
|
|
62645
|
+
object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
62646
|
+
} else
|
|
62647
|
+
object.deletedAt = options.longs === String ? "0" : 0;
|
|
62648
|
+
}
|
|
62649
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
62650
|
+
object.slug = message.slug;
|
|
62651
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
62652
|
+
object.contentType = message.contentType;
|
|
62653
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
62654
|
+
if (typeof message.deletedAt === "number")
|
|
62655
|
+
object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
|
|
62656
|
+
else
|
|
62657
|
+
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;
|
|
62658
|
+
return object;
|
|
62659
|
+
};
|
|
62660
|
+
|
|
62661
|
+
/**
|
|
62662
|
+
* Converts this CollectionDeleted to JSON.
|
|
62663
|
+
* @function toJSON
|
|
62664
|
+
* @memberof CollectionDeleted
|
|
62665
|
+
* @instance
|
|
62666
|
+
* @returns {Object.<string,*>} JSON object
|
|
62667
|
+
*/
|
|
62668
|
+
CollectionDeleted.prototype.toJSON = function toJSON() {
|
|
62669
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
62670
|
+
};
|
|
62671
|
+
|
|
62672
|
+
return CollectionDeleted;
|
|
62673
|
+
})();
|
|
62674
|
+
|
|
62675
|
+
$root.ContentPlayed = (function() {
|
|
62676
|
+
|
|
62677
|
+
/**
|
|
62678
|
+
* Properties of a ContentPlayed.
|
|
62679
|
+
* @exports IContentPlayed
|
|
62680
|
+
* @interface IContentPlayed
|
|
62681
|
+
* @property {number|Long|null} [timestamp] ContentPlayed timestamp
|
|
62682
|
+
* @property {number|null} [contentId] ContentPlayed contentId
|
|
62683
|
+
* @property {string|null} [userId] ContentPlayed userId
|
|
62684
|
+
* @property {ContentType|null} [contentType] ContentPlayed contentType
|
|
62685
|
+
* @property {Mode|null} [mode] ContentPlayed mode
|
|
62686
|
+
* @property {IContentPlayedMetadata|null} [metadata] ContentPlayed metadata
|
|
62687
|
+
*/
|
|
62688
|
+
|
|
62689
|
+
/**
|
|
62690
|
+
* Constructs a new ContentPlayed.
|
|
62691
|
+
* @exports ContentPlayed
|
|
62692
|
+
* @classdesc Represents a ContentPlayed.
|
|
62693
|
+
* @implements IContentPlayed
|
|
62694
|
+
* @constructor
|
|
62695
|
+
* @param {IContentPlayed=} [properties] Properties to set
|
|
62696
|
+
*/
|
|
62697
|
+
function ContentPlayed(properties) {
|
|
62698
|
+
if (properties)
|
|
62699
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
62700
|
+
if (properties[keys[i]] != null)
|
|
62701
|
+
this[keys[i]] = properties[keys[i]];
|
|
62702
|
+
}
|
|
62703
|
+
|
|
62704
|
+
/**
|
|
62705
|
+
* ContentPlayed timestamp.
|
|
62706
|
+
* @member {number|Long} timestamp
|
|
62707
|
+
* @memberof ContentPlayed
|
|
62708
|
+
* @instance
|
|
62709
|
+
*/
|
|
62710
|
+
ContentPlayed.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
62711
|
+
|
|
62712
|
+
/**
|
|
62713
|
+
* ContentPlayed contentId.
|
|
62714
|
+
* @member {number} contentId
|
|
62715
|
+
* @memberof ContentPlayed
|
|
62716
|
+
* @instance
|
|
62717
|
+
*/
|
|
62718
|
+
ContentPlayed.prototype.contentId = 0;
|
|
62719
|
+
|
|
62720
|
+
/**
|
|
62721
|
+
* ContentPlayed userId.
|
|
62722
|
+
* @member {string} userId
|
|
62723
|
+
* @memberof ContentPlayed
|
|
62724
|
+
* @instance
|
|
62725
|
+
*/
|
|
62726
|
+
ContentPlayed.prototype.userId = "";
|
|
62727
|
+
|
|
62728
|
+
/**
|
|
62729
|
+
* ContentPlayed contentType.
|
|
62730
|
+
* @member {ContentType} contentType
|
|
62731
|
+
* @memberof ContentPlayed
|
|
62732
|
+
* @instance
|
|
62733
|
+
*/
|
|
62734
|
+
ContentPlayed.prototype.contentType = 0;
|
|
62735
|
+
|
|
62736
|
+
/**
|
|
62737
|
+
* ContentPlayed mode.
|
|
62738
|
+
* @member {Mode} mode
|
|
62739
|
+
* @memberof ContentPlayed
|
|
62740
|
+
* @instance
|
|
62741
|
+
*/
|
|
62742
|
+
ContentPlayed.prototype.mode = 0;
|
|
62743
|
+
|
|
62744
|
+
/**
|
|
62745
|
+
* ContentPlayed metadata.
|
|
62746
|
+
* @member {IContentPlayedMetadata|null|undefined} metadata
|
|
62747
|
+
* @memberof ContentPlayed
|
|
62748
|
+
* @instance
|
|
62749
|
+
*/
|
|
62750
|
+
ContentPlayed.prototype.metadata = null;
|
|
62751
|
+
|
|
62752
|
+
/**
|
|
62753
|
+
* Creates a new ContentPlayed instance using the specified properties.
|
|
62754
|
+
* @function create
|
|
62755
|
+
* @memberof ContentPlayed
|
|
62756
|
+
* @static
|
|
62757
|
+
* @param {IContentPlayed=} [properties] Properties to set
|
|
62758
|
+
* @returns {ContentPlayed} ContentPlayed instance
|
|
62759
|
+
*/
|
|
62760
|
+
ContentPlayed.create = function create(properties) {
|
|
62761
|
+
return new ContentPlayed(properties);
|
|
62762
|
+
};
|
|
62763
|
+
|
|
62764
|
+
/**
|
|
62765
|
+
* Encodes the specified ContentPlayed message. Does not implicitly {@link ContentPlayed.verify|verify} messages.
|
|
62766
|
+
* @function encode
|
|
62767
|
+
* @memberof ContentPlayed
|
|
62768
|
+
* @static
|
|
62769
|
+
* @param {IContentPlayed} message ContentPlayed message or plain object to encode
|
|
62770
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
62771
|
+
* @returns {$protobuf.Writer} Writer
|
|
62772
|
+
*/
|
|
62773
|
+
ContentPlayed.encode = function encode(message, writer) {
|
|
62774
|
+
if (!writer)
|
|
62775
|
+
writer = $Writer.create();
|
|
62776
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
62777
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
|
|
62778
|
+
if (message.contentId != null && message.hasOwnProperty("contentId"))
|
|
62779
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.contentId);
|
|
62780
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
62781
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.userId);
|
|
62782
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
62783
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.contentType);
|
|
62784
|
+
if (message.mode != null && message.hasOwnProperty("mode"))
|
|
62785
|
+
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.mode);
|
|
62786
|
+
if (message.metadata != null && message.hasOwnProperty("metadata"))
|
|
62787
|
+
$root.ContentPlayedMetadata.encode(message.metadata, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
62788
|
+
return writer;
|
|
62789
|
+
};
|
|
62790
|
+
|
|
62791
|
+
/**
|
|
62792
|
+
* Encodes the specified ContentPlayed message, length delimited. Does not implicitly {@link ContentPlayed.verify|verify} messages.
|
|
62793
|
+
* @function encodeDelimited
|
|
62794
|
+
* @memberof ContentPlayed
|
|
62795
|
+
* @static
|
|
62796
|
+
* @param {IContentPlayed} message ContentPlayed message or plain object to encode
|
|
62797
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
62798
|
+
* @returns {$protobuf.Writer} Writer
|
|
62799
|
+
*/
|
|
62800
|
+
ContentPlayed.encodeDelimited = function encodeDelimited(message, writer) {
|
|
62801
|
+
return this.encode(message, writer).ldelim();
|
|
62802
|
+
};
|
|
62803
|
+
|
|
62804
|
+
/**
|
|
62805
|
+
* Decodes a ContentPlayed message from the specified reader or buffer.
|
|
62806
|
+
* @function decode
|
|
62807
|
+
* @memberof ContentPlayed
|
|
62808
|
+
* @static
|
|
62809
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
62810
|
+
* @param {number} [length] Message length if known beforehand
|
|
62811
|
+
* @returns {ContentPlayed} ContentPlayed
|
|
62812
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
62813
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
62814
|
+
*/
|
|
62815
|
+
ContentPlayed.decode = function decode(reader, length) {
|
|
62816
|
+
if (!(reader instanceof $Reader))
|
|
62817
|
+
reader = $Reader.create(reader);
|
|
62818
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentPlayed();
|
|
62819
|
+
while (reader.pos < end) {
|
|
62820
|
+
var tag = reader.uint32();
|
|
62821
|
+
switch (tag >>> 3) {
|
|
62822
|
+
case 1:
|
|
62823
|
+
message.timestamp = reader.uint64();
|
|
62824
|
+
break;
|
|
62825
|
+
case 2:
|
|
62826
|
+
message.contentId = reader.uint32();
|
|
62827
|
+
break;
|
|
62828
|
+
case 3:
|
|
62829
|
+
message.userId = reader.string();
|
|
62830
|
+
break;
|
|
62831
|
+
case 4:
|
|
62832
|
+
message.contentType = reader.int32();
|
|
62833
|
+
break;
|
|
62834
|
+
case 5:
|
|
62835
|
+
message.mode = reader.int32();
|
|
62836
|
+
break;
|
|
62837
|
+
case 6:
|
|
62838
|
+
message.metadata = $root.ContentPlayedMetadata.decode(reader, reader.uint32());
|
|
62839
|
+
break;
|
|
62840
|
+
default:
|
|
62841
|
+
reader.skipType(tag & 7);
|
|
62842
|
+
break;
|
|
62843
|
+
}
|
|
62844
|
+
}
|
|
62845
|
+
return message;
|
|
62846
|
+
};
|
|
62847
|
+
|
|
62848
|
+
/**
|
|
62849
|
+
* Decodes a ContentPlayed message from the specified reader or buffer, length delimited.
|
|
62850
|
+
* @function decodeDelimited
|
|
62851
|
+
* @memberof ContentPlayed
|
|
62852
|
+
* @static
|
|
62853
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
62854
|
+
* @returns {ContentPlayed} ContentPlayed
|
|
62855
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
62856
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
62857
|
+
*/
|
|
62858
|
+
ContentPlayed.decodeDelimited = function decodeDelimited(reader) {
|
|
62859
|
+
if (!(reader instanceof $Reader))
|
|
62860
|
+
reader = new $Reader(reader);
|
|
62861
|
+
return this.decode(reader, reader.uint32());
|
|
62862
|
+
};
|
|
62863
|
+
|
|
62864
|
+
/**
|
|
62865
|
+
* Verifies a ContentPlayed message.
|
|
62866
|
+
* @function verify
|
|
62867
|
+
* @memberof ContentPlayed
|
|
62868
|
+
* @static
|
|
62869
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
62870
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
62871
|
+
*/
|
|
62872
|
+
ContentPlayed.verify = function verify(message) {
|
|
62873
|
+
if (typeof message !== "object" || message === null)
|
|
62874
|
+
return "object expected";
|
|
62875
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
62876
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
62877
|
+
return "timestamp: integer|Long expected";
|
|
62878
|
+
if (message.contentId != null && message.hasOwnProperty("contentId"))
|
|
62879
|
+
if (!$util.isInteger(message.contentId))
|
|
62880
|
+
return "contentId: integer expected";
|
|
62881
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
62882
|
+
if (!$util.isString(message.userId))
|
|
62883
|
+
return "userId: string expected";
|
|
62884
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
62885
|
+
switch (message.contentType) {
|
|
62886
|
+
default:
|
|
62887
|
+
return "contentType: enum value expected";
|
|
62888
|
+
case 0:
|
|
62889
|
+
case 1:
|
|
62890
|
+
case 2:
|
|
62891
|
+
case 3:
|
|
62892
|
+
case 4:
|
|
62893
|
+
case 5:
|
|
62894
|
+
case 6:
|
|
62895
|
+
case 7:
|
|
62896
|
+
case 8:
|
|
62897
|
+
case 9:
|
|
62898
|
+
case 10:
|
|
62899
|
+
case 11:
|
|
62900
|
+
case 12:
|
|
62901
|
+
case 13:
|
|
62902
|
+
case 14:
|
|
62903
|
+
case 15:
|
|
62904
|
+
case 16:
|
|
62905
|
+
case 17:
|
|
62906
|
+
case 18:
|
|
62907
|
+
break;
|
|
62908
|
+
}
|
|
62909
|
+
if (message.mode != null && message.hasOwnProperty("mode"))
|
|
62910
|
+
switch (message.mode) {
|
|
62911
|
+
default:
|
|
62912
|
+
return "mode: enum value expected";
|
|
62913
|
+
case 0:
|
|
62914
|
+
case 1:
|
|
62915
|
+
case 2:
|
|
62916
|
+
case 3:
|
|
62917
|
+
case 4:
|
|
62918
|
+
case 5:
|
|
62919
|
+
break;
|
|
62920
|
+
}
|
|
62921
|
+
if (message.metadata != null && message.hasOwnProperty("metadata")) {
|
|
62922
|
+
var error = $root.ContentPlayedMetadata.verify(message.metadata);
|
|
62923
|
+
if (error)
|
|
62924
|
+
return "metadata." + error;
|
|
62925
|
+
}
|
|
62926
|
+
return null;
|
|
62927
|
+
};
|
|
62928
|
+
|
|
62929
|
+
/**
|
|
62930
|
+
* Creates a ContentPlayed message from a plain object. Also converts values to their respective internal types.
|
|
62931
|
+
* @function fromObject
|
|
62932
|
+
* @memberof ContentPlayed
|
|
62933
|
+
* @static
|
|
62934
|
+
* @param {Object.<string,*>} object Plain object
|
|
62935
|
+
* @returns {ContentPlayed} ContentPlayed
|
|
62936
|
+
*/
|
|
62937
|
+
ContentPlayed.fromObject = function fromObject(object) {
|
|
62938
|
+
if (object instanceof $root.ContentPlayed)
|
|
62939
|
+
return object;
|
|
62940
|
+
var message = new $root.ContentPlayed();
|
|
62941
|
+
if (object.timestamp != null)
|
|
62942
|
+
if ($util.Long)
|
|
62943
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
62944
|
+
else if (typeof object.timestamp === "string")
|
|
62945
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
62946
|
+
else if (typeof object.timestamp === "number")
|
|
62947
|
+
message.timestamp = object.timestamp;
|
|
62948
|
+
else if (typeof object.timestamp === "object")
|
|
62949
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
62950
|
+
if (object.contentId != null)
|
|
62951
|
+
message.contentId = object.contentId >>> 0;
|
|
62952
|
+
if (object.userId != null)
|
|
62953
|
+
message.userId = String(object.userId);
|
|
62954
|
+
switch (object.contentType) {
|
|
62955
|
+
case "CONTENT_TYPE_UNRECOGNIZED":
|
|
62956
|
+
case 0:
|
|
62957
|
+
message.contentType = 0;
|
|
62958
|
+
break;
|
|
62959
|
+
case "CONTENT_TYPE_COURSE":
|
|
62960
|
+
case 1:
|
|
62961
|
+
message.contentType = 1;
|
|
62962
|
+
break;
|
|
62963
|
+
case "CONTENT_TYPE_ONEOFF":
|
|
62964
|
+
case 2:
|
|
62965
|
+
message.contentType = 2;
|
|
62966
|
+
break;
|
|
62967
|
+
case "CONTENT_TYPE_ANIMATION":
|
|
62968
|
+
case 3:
|
|
62969
|
+
message.contentType = 3;
|
|
62970
|
+
break;
|
|
62971
|
+
case "CONTENT_TYPE_SLEEPCAST":
|
|
62972
|
+
case 4:
|
|
62973
|
+
message.contentType = 4;
|
|
62974
|
+
break;
|
|
62975
|
+
case "CONTENT_TYPE_OBSTACLE":
|
|
62976
|
+
case 5:
|
|
62977
|
+
message.contentType = 5;
|
|
62038
62978
|
break;
|
|
62039
62979
|
case "CONTENT_TYPE_PLAYLIST":
|
|
62040
62980
|
case 6:
|
|
@@ -65063,6 +66003,7 @@ $root.TopicCreated = (function() {
|
|
|
65063
66003
|
* @property {string|null} [slug] TopicCreated slug
|
|
65064
66004
|
* @property {Array.<contentful.ISlugReference>|null} [accessGroups] TopicCreated accessGroups
|
|
65065
66005
|
* @property {number|Long|null} [createdAt] TopicCreated createdAt
|
|
66006
|
+
* @property {boolean|null} [isInternationalOnly] TopicCreated isInternationalOnly
|
|
65066
66007
|
*/
|
|
65067
66008
|
|
|
65068
66009
|
/**
|
|
@@ -65105,6 +66046,14 @@ $root.TopicCreated = (function() {
|
|
|
65105
66046
|
*/
|
|
65106
66047
|
TopicCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
65107
66048
|
|
|
66049
|
+
/**
|
|
66050
|
+
* TopicCreated isInternationalOnly.
|
|
66051
|
+
* @member {boolean} isInternationalOnly
|
|
66052
|
+
* @memberof TopicCreated
|
|
66053
|
+
* @instance
|
|
66054
|
+
*/
|
|
66055
|
+
TopicCreated.prototype.isInternationalOnly = false;
|
|
66056
|
+
|
|
65108
66057
|
/**
|
|
65109
66058
|
* Creates a new TopicCreated instance using the specified properties.
|
|
65110
66059
|
* @function create
|
|
@@ -65136,6 +66085,8 @@ $root.TopicCreated = (function() {
|
|
|
65136
66085
|
$root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
65137
66086
|
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
65138
66087
|
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.createdAt);
|
|
66088
|
+
if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
|
|
66089
|
+
writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isInternationalOnly);
|
|
65139
66090
|
return writer;
|
|
65140
66091
|
};
|
|
65141
66092
|
|
|
@@ -65181,6 +66132,9 @@ $root.TopicCreated = (function() {
|
|
|
65181
66132
|
case 3:
|
|
65182
66133
|
message.createdAt = reader.uint64();
|
|
65183
66134
|
break;
|
|
66135
|
+
case 4:
|
|
66136
|
+
message.isInternationalOnly = reader.bool();
|
|
66137
|
+
break;
|
|
65184
66138
|
default:
|
|
65185
66139
|
reader.skipType(tag & 7);
|
|
65186
66140
|
break;
|
|
@@ -65231,6 +66185,9 @@ $root.TopicCreated = (function() {
|
|
|
65231
66185
|
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
65232
66186
|
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
65233
66187
|
return "createdAt: integer|Long expected";
|
|
66188
|
+
if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
|
|
66189
|
+
if (typeof message.isInternationalOnly !== "boolean")
|
|
66190
|
+
return "isInternationalOnly: boolean expected";
|
|
65234
66191
|
return null;
|
|
65235
66192
|
};
|
|
65236
66193
|
|
|
@@ -65267,6 +66224,8 @@ $root.TopicCreated = (function() {
|
|
|
65267
66224
|
message.createdAt = object.createdAt;
|
|
65268
66225
|
else if (typeof object.createdAt === "object")
|
|
65269
66226
|
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
66227
|
+
if (object.isInternationalOnly != null)
|
|
66228
|
+
message.isInternationalOnly = Boolean(object.isInternationalOnly);
|
|
65270
66229
|
return message;
|
|
65271
66230
|
};
|
|
65272
66231
|
|
|
@@ -65292,6 +66251,7 @@ $root.TopicCreated = (function() {
|
|
|
65292
66251
|
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
65293
66252
|
} else
|
|
65294
66253
|
object.createdAt = options.longs === String ? "0" : 0;
|
|
66254
|
+
object.isInternationalOnly = false;
|
|
65295
66255
|
}
|
|
65296
66256
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
65297
66257
|
object.slug = message.slug;
|
|
@@ -65305,6 +66265,8 @@ $root.TopicCreated = (function() {
|
|
|
65305
66265
|
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
65306
66266
|
else
|
|
65307
66267
|
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;
|
|
66268
|
+
if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
|
|
66269
|
+
object.isInternationalOnly = message.isInternationalOnly;
|
|
65308
66270
|
return object;
|
|
65309
66271
|
};
|
|
65310
66272
|
|
|
@@ -65331,6 +66293,7 @@ $root.TopicUpdated = (function() {
|
|
|
65331
66293
|
* @property {string|null} [slug] TopicUpdated slug
|
|
65332
66294
|
* @property {Array.<contentful.ISlugReference>|null} [accessGroups] TopicUpdated accessGroups
|
|
65333
66295
|
* @property {number|Long|null} [updatedAt] TopicUpdated updatedAt
|
|
66296
|
+
* @property {boolean|null} [isInternationalOnly] TopicUpdated isInternationalOnly
|
|
65334
66297
|
*/
|
|
65335
66298
|
|
|
65336
66299
|
/**
|
|
@@ -65373,6 +66336,14 @@ $root.TopicUpdated = (function() {
|
|
|
65373
66336
|
*/
|
|
65374
66337
|
TopicUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
65375
66338
|
|
|
66339
|
+
/**
|
|
66340
|
+
* TopicUpdated isInternationalOnly.
|
|
66341
|
+
* @member {boolean} isInternationalOnly
|
|
66342
|
+
* @memberof TopicUpdated
|
|
66343
|
+
* @instance
|
|
66344
|
+
*/
|
|
66345
|
+
TopicUpdated.prototype.isInternationalOnly = false;
|
|
66346
|
+
|
|
65376
66347
|
/**
|
|
65377
66348
|
* Creates a new TopicUpdated instance using the specified properties.
|
|
65378
66349
|
* @function create
|
|
@@ -65404,6 +66375,8 @@ $root.TopicUpdated = (function() {
|
|
|
65404
66375
|
$root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
65405
66376
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
65406
66377
|
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.updatedAt);
|
|
66378
|
+
if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
|
|
66379
|
+
writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isInternationalOnly);
|
|
65407
66380
|
return writer;
|
|
65408
66381
|
};
|
|
65409
66382
|
|
|
@@ -65449,6 +66422,9 @@ $root.TopicUpdated = (function() {
|
|
|
65449
66422
|
case 3:
|
|
65450
66423
|
message.updatedAt = reader.uint64();
|
|
65451
66424
|
break;
|
|
66425
|
+
case 4:
|
|
66426
|
+
message.isInternationalOnly = reader.bool();
|
|
66427
|
+
break;
|
|
65452
66428
|
default:
|
|
65453
66429
|
reader.skipType(tag & 7);
|
|
65454
66430
|
break;
|
|
@@ -65499,6 +66475,9 @@ $root.TopicUpdated = (function() {
|
|
|
65499
66475
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
65500
66476
|
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
65501
66477
|
return "updatedAt: integer|Long expected";
|
|
66478
|
+
if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
|
|
66479
|
+
if (typeof message.isInternationalOnly !== "boolean")
|
|
66480
|
+
return "isInternationalOnly: boolean expected";
|
|
65502
66481
|
return null;
|
|
65503
66482
|
};
|
|
65504
66483
|
|
|
@@ -65535,6 +66514,8 @@ $root.TopicUpdated = (function() {
|
|
|
65535
66514
|
message.updatedAt = object.updatedAt;
|
|
65536
66515
|
else if (typeof object.updatedAt === "object")
|
|
65537
66516
|
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
66517
|
+
if (object.isInternationalOnly != null)
|
|
66518
|
+
message.isInternationalOnly = Boolean(object.isInternationalOnly);
|
|
65538
66519
|
return message;
|
|
65539
66520
|
};
|
|
65540
66521
|
|
|
@@ -65560,6 +66541,7 @@ $root.TopicUpdated = (function() {
|
|
|
65560
66541
|
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
65561
66542
|
} else
|
|
65562
66543
|
object.updatedAt = options.longs === String ? "0" : 0;
|
|
66544
|
+
object.isInternationalOnly = false;
|
|
65563
66545
|
}
|
|
65564
66546
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
65565
66547
|
object.slug = message.slug;
|
|
@@ -65573,6 +66555,8 @@ $root.TopicUpdated = (function() {
|
|
|
65573
66555
|
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
65574
66556
|
else
|
|
65575
66557
|
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;
|
|
66558
|
+
if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
|
|
66559
|
+
object.isInternationalOnly = message.isInternationalOnly;
|
|
65576
66560
|
return object;
|
|
65577
66561
|
};
|
|
65578
66562
|
|