@headspace/protos-events 1.293.0 → 1.295.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 +342 -0
- package/lib/index.js +940 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -61732,6 +61732,902 @@ $root.ActivityDeleted = (function() {
|
|
|
61732
61732
|
return ActivityDeleted;
|
|
61733
61733
|
})();
|
|
61734
61734
|
|
|
61735
|
+
$root.CollectionCreated = (function() {
|
|
61736
|
+
|
|
61737
|
+
/**
|
|
61738
|
+
* Properties of a CollectionCreated.
|
|
61739
|
+
* @exports ICollectionCreated
|
|
61740
|
+
* @interface ICollectionCreated
|
|
61741
|
+
* @property {string|null} [slug] CollectionCreated slug
|
|
61742
|
+
* @property {string|null} [contentType] CollectionCreated contentType
|
|
61743
|
+
* @property {ContentCollectionType|null} [collectionType] CollectionCreated collectionType
|
|
61744
|
+
* @property {Array.<contentful.ISlugReference>|null} [accessGroup] CollectionCreated accessGroup
|
|
61745
|
+
* @property {number|Long|null} [createdAt] CollectionCreated createdAt
|
|
61746
|
+
*/
|
|
61747
|
+
|
|
61748
|
+
/**
|
|
61749
|
+
* Constructs a new CollectionCreated.
|
|
61750
|
+
* @exports CollectionCreated
|
|
61751
|
+
* @classdesc Represents a CollectionCreated.
|
|
61752
|
+
* @implements ICollectionCreated
|
|
61753
|
+
* @constructor
|
|
61754
|
+
* @param {ICollectionCreated=} [properties] Properties to set
|
|
61755
|
+
*/
|
|
61756
|
+
function CollectionCreated(properties) {
|
|
61757
|
+
this.accessGroup = [];
|
|
61758
|
+
if (properties)
|
|
61759
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
61760
|
+
if (properties[keys[i]] != null)
|
|
61761
|
+
this[keys[i]] = properties[keys[i]];
|
|
61762
|
+
}
|
|
61763
|
+
|
|
61764
|
+
/**
|
|
61765
|
+
* CollectionCreated slug.
|
|
61766
|
+
* @member {string} slug
|
|
61767
|
+
* @memberof CollectionCreated
|
|
61768
|
+
* @instance
|
|
61769
|
+
*/
|
|
61770
|
+
CollectionCreated.prototype.slug = "";
|
|
61771
|
+
|
|
61772
|
+
/**
|
|
61773
|
+
* CollectionCreated contentType.
|
|
61774
|
+
* @member {string} contentType
|
|
61775
|
+
* @memberof CollectionCreated
|
|
61776
|
+
* @instance
|
|
61777
|
+
*/
|
|
61778
|
+
CollectionCreated.prototype.contentType = "";
|
|
61779
|
+
|
|
61780
|
+
/**
|
|
61781
|
+
* CollectionCreated collectionType.
|
|
61782
|
+
* @member {ContentCollectionType} collectionType
|
|
61783
|
+
* @memberof CollectionCreated
|
|
61784
|
+
* @instance
|
|
61785
|
+
*/
|
|
61786
|
+
CollectionCreated.prototype.collectionType = 0;
|
|
61787
|
+
|
|
61788
|
+
/**
|
|
61789
|
+
* CollectionCreated accessGroup.
|
|
61790
|
+
* @member {Array.<contentful.ISlugReference>} accessGroup
|
|
61791
|
+
* @memberof CollectionCreated
|
|
61792
|
+
* @instance
|
|
61793
|
+
*/
|
|
61794
|
+
CollectionCreated.prototype.accessGroup = $util.emptyArray;
|
|
61795
|
+
|
|
61796
|
+
/**
|
|
61797
|
+
* CollectionCreated createdAt.
|
|
61798
|
+
* @member {number|Long} createdAt
|
|
61799
|
+
* @memberof CollectionCreated
|
|
61800
|
+
* @instance
|
|
61801
|
+
*/
|
|
61802
|
+
CollectionCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
61803
|
+
|
|
61804
|
+
/**
|
|
61805
|
+
* Creates a new CollectionCreated instance using the specified properties.
|
|
61806
|
+
* @function create
|
|
61807
|
+
* @memberof CollectionCreated
|
|
61808
|
+
* @static
|
|
61809
|
+
* @param {ICollectionCreated=} [properties] Properties to set
|
|
61810
|
+
* @returns {CollectionCreated} CollectionCreated instance
|
|
61811
|
+
*/
|
|
61812
|
+
CollectionCreated.create = function create(properties) {
|
|
61813
|
+
return new CollectionCreated(properties);
|
|
61814
|
+
};
|
|
61815
|
+
|
|
61816
|
+
/**
|
|
61817
|
+
* Encodes the specified CollectionCreated message. Does not implicitly {@link CollectionCreated.verify|verify} messages.
|
|
61818
|
+
* @function encode
|
|
61819
|
+
* @memberof CollectionCreated
|
|
61820
|
+
* @static
|
|
61821
|
+
* @param {ICollectionCreated} message CollectionCreated message or plain object to encode
|
|
61822
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
61823
|
+
* @returns {$protobuf.Writer} Writer
|
|
61824
|
+
*/
|
|
61825
|
+
CollectionCreated.encode = function encode(message, writer) {
|
|
61826
|
+
if (!writer)
|
|
61827
|
+
writer = $Writer.create();
|
|
61828
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
61829
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
61830
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
61831
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.contentType);
|
|
61832
|
+
if (message.collectionType != null && message.hasOwnProperty("collectionType"))
|
|
61833
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.collectionType);
|
|
61834
|
+
if (message.accessGroup != null && message.accessGroup.length)
|
|
61835
|
+
for (var i = 0; i < message.accessGroup.length; ++i)
|
|
61836
|
+
$root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
61837
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
61838
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.createdAt);
|
|
61839
|
+
return writer;
|
|
61840
|
+
};
|
|
61841
|
+
|
|
61842
|
+
/**
|
|
61843
|
+
* Encodes the specified CollectionCreated message, length delimited. Does not implicitly {@link CollectionCreated.verify|verify} messages.
|
|
61844
|
+
* @function encodeDelimited
|
|
61845
|
+
* @memberof CollectionCreated
|
|
61846
|
+
* @static
|
|
61847
|
+
* @param {ICollectionCreated} message CollectionCreated message or plain object to encode
|
|
61848
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
61849
|
+
* @returns {$protobuf.Writer} Writer
|
|
61850
|
+
*/
|
|
61851
|
+
CollectionCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
61852
|
+
return this.encode(message, writer).ldelim();
|
|
61853
|
+
};
|
|
61854
|
+
|
|
61855
|
+
/**
|
|
61856
|
+
* Decodes a CollectionCreated message from the specified reader or buffer.
|
|
61857
|
+
* @function decode
|
|
61858
|
+
* @memberof CollectionCreated
|
|
61859
|
+
* @static
|
|
61860
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
61861
|
+
* @param {number} [length] Message length if known beforehand
|
|
61862
|
+
* @returns {CollectionCreated} CollectionCreated
|
|
61863
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
61864
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
61865
|
+
*/
|
|
61866
|
+
CollectionCreated.decode = function decode(reader, length) {
|
|
61867
|
+
if (!(reader instanceof $Reader))
|
|
61868
|
+
reader = $Reader.create(reader);
|
|
61869
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CollectionCreated();
|
|
61870
|
+
while (reader.pos < end) {
|
|
61871
|
+
var tag = reader.uint32();
|
|
61872
|
+
switch (tag >>> 3) {
|
|
61873
|
+
case 1:
|
|
61874
|
+
message.slug = reader.string();
|
|
61875
|
+
break;
|
|
61876
|
+
case 2:
|
|
61877
|
+
message.contentType = reader.string();
|
|
61878
|
+
break;
|
|
61879
|
+
case 3:
|
|
61880
|
+
message.collectionType = reader.int32();
|
|
61881
|
+
break;
|
|
61882
|
+
case 4:
|
|
61883
|
+
if (!(message.accessGroup && message.accessGroup.length))
|
|
61884
|
+
message.accessGroup = [];
|
|
61885
|
+
message.accessGroup.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
61886
|
+
break;
|
|
61887
|
+
case 5:
|
|
61888
|
+
message.createdAt = reader.uint64();
|
|
61889
|
+
break;
|
|
61890
|
+
default:
|
|
61891
|
+
reader.skipType(tag & 7);
|
|
61892
|
+
break;
|
|
61893
|
+
}
|
|
61894
|
+
}
|
|
61895
|
+
return message;
|
|
61896
|
+
};
|
|
61897
|
+
|
|
61898
|
+
/**
|
|
61899
|
+
* Decodes a CollectionCreated message from the specified reader or buffer, length delimited.
|
|
61900
|
+
* @function decodeDelimited
|
|
61901
|
+
* @memberof CollectionCreated
|
|
61902
|
+
* @static
|
|
61903
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
61904
|
+
* @returns {CollectionCreated} CollectionCreated
|
|
61905
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
61906
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
61907
|
+
*/
|
|
61908
|
+
CollectionCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
61909
|
+
if (!(reader instanceof $Reader))
|
|
61910
|
+
reader = new $Reader(reader);
|
|
61911
|
+
return this.decode(reader, reader.uint32());
|
|
61912
|
+
};
|
|
61913
|
+
|
|
61914
|
+
/**
|
|
61915
|
+
* Verifies a CollectionCreated message.
|
|
61916
|
+
* @function verify
|
|
61917
|
+
* @memberof CollectionCreated
|
|
61918
|
+
* @static
|
|
61919
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
61920
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
61921
|
+
*/
|
|
61922
|
+
CollectionCreated.verify = function verify(message) {
|
|
61923
|
+
if (typeof message !== "object" || message === null)
|
|
61924
|
+
return "object expected";
|
|
61925
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
61926
|
+
if (!$util.isString(message.slug))
|
|
61927
|
+
return "slug: string expected";
|
|
61928
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
61929
|
+
if (!$util.isString(message.contentType))
|
|
61930
|
+
return "contentType: string expected";
|
|
61931
|
+
if (message.collectionType != null && message.hasOwnProperty("collectionType"))
|
|
61932
|
+
switch (message.collectionType) {
|
|
61933
|
+
default:
|
|
61934
|
+
return "collectionType: enum value expected";
|
|
61935
|
+
case 0:
|
|
61936
|
+
case 1:
|
|
61937
|
+
break;
|
|
61938
|
+
}
|
|
61939
|
+
if (message.accessGroup != null && message.hasOwnProperty("accessGroup")) {
|
|
61940
|
+
if (!Array.isArray(message.accessGroup))
|
|
61941
|
+
return "accessGroup: array expected";
|
|
61942
|
+
for (var i = 0; i < message.accessGroup.length; ++i) {
|
|
61943
|
+
var error = $root.contentful.SlugReference.verify(message.accessGroup[i]);
|
|
61944
|
+
if (error)
|
|
61945
|
+
return "accessGroup." + error;
|
|
61946
|
+
}
|
|
61947
|
+
}
|
|
61948
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
61949
|
+
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
61950
|
+
return "createdAt: integer|Long expected";
|
|
61951
|
+
return null;
|
|
61952
|
+
};
|
|
61953
|
+
|
|
61954
|
+
/**
|
|
61955
|
+
* Creates a CollectionCreated message from a plain object. Also converts values to their respective internal types.
|
|
61956
|
+
* @function fromObject
|
|
61957
|
+
* @memberof CollectionCreated
|
|
61958
|
+
* @static
|
|
61959
|
+
* @param {Object.<string,*>} object Plain object
|
|
61960
|
+
* @returns {CollectionCreated} CollectionCreated
|
|
61961
|
+
*/
|
|
61962
|
+
CollectionCreated.fromObject = function fromObject(object) {
|
|
61963
|
+
if (object instanceof $root.CollectionCreated)
|
|
61964
|
+
return object;
|
|
61965
|
+
var message = new $root.CollectionCreated();
|
|
61966
|
+
if (object.slug != null)
|
|
61967
|
+
message.slug = String(object.slug);
|
|
61968
|
+
if (object.contentType != null)
|
|
61969
|
+
message.contentType = String(object.contentType);
|
|
61970
|
+
switch (object.collectionType) {
|
|
61971
|
+
case "CONTENT_COLLECTION_TYPE_UNRECOGNIZED":
|
|
61972
|
+
case 0:
|
|
61973
|
+
message.collectionType = 0;
|
|
61974
|
+
break;
|
|
61975
|
+
case "CONTENT_COLLECTION_TYPE_GENERIC":
|
|
61976
|
+
case 1:
|
|
61977
|
+
message.collectionType = 1;
|
|
61978
|
+
break;
|
|
61979
|
+
}
|
|
61980
|
+
if (object.accessGroup) {
|
|
61981
|
+
if (!Array.isArray(object.accessGroup))
|
|
61982
|
+
throw TypeError(".CollectionCreated.accessGroup: array expected");
|
|
61983
|
+
message.accessGroup = [];
|
|
61984
|
+
for (var i = 0; i < object.accessGroup.length; ++i) {
|
|
61985
|
+
if (typeof object.accessGroup[i] !== "object")
|
|
61986
|
+
throw TypeError(".CollectionCreated.accessGroup: object expected");
|
|
61987
|
+
message.accessGroup[i] = $root.contentful.SlugReference.fromObject(object.accessGroup[i]);
|
|
61988
|
+
}
|
|
61989
|
+
}
|
|
61990
|
+
if (object.createdAt != null)
|
|
61991
|
+
if ($util.Long)
|
|
61992
|
+
(message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
|
|
61993
|
+
else if (typeof object.createdAt === "string")
|
|
61994
|
+
message.createdAt = parseInt(object.createdAt, 10);
|
|
61995
|
+
else if (typeof object.createdAt === "number")
|
|
61996
|
+
message.createdAt = object.createdAt;
|
|
61997
|
+
else if (typeof object.createdAt === "object")
|
|
61998
|
+
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
61999
|
+
return message;
|
|
62000
|
+
};
|
|
62001
|
+
|
|
62002
|
+
/**
|
|
62003
|
+
* Creates a plain object from a CollectionCreated message. Also converts values to other types if specified.
|
|
62004
|
+
* @function toObject
|
|
62005
|
+
* @memberof CollectionCreated
|
|
62006
|
+
* @static
|
|
62007
|
+
* @param {CollectionCreated} message CollectionCreated
|
|
62008
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
62009
|
+
* @returns {Object.<string,*>} Plain object
|
|
62010
|
+
*/
|
|
62011
|
+
CollectionCreated.toObject = function toObject(message, options) {
|
|
62012
|
+
if (!options)
|
|
62013
|
+
options = {};
|
|
62014
|
+
var object = {};
|
|
62015
|
+
if (options.arrays || options.defaults)
|
|
62016
|
+
object.accessGroup = [];
|
|
62017
|
+
if (options.defaults) {
|
|
62018
|
+
object.slug = "";
|
|
62019
|
+
object.contentType = "";
|
|
62020
|
+
object.collectionType = options.enums === String ? "CONTENT_COLLECTION_TYPE_UNRECOGNIZED" : 0;
|
|
62021
|
+
if ($util.Long) {
|
|
62022
|
+
var long = new $util.Long(0, 0, true);
|
|
62023
|
+
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
62024
|
+
} else
|
|
62025
|
+
object.createdAt = options.longs === String ? "0" : 0;
|
|
62026
|
+
}
|
|
62027
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
62028
|
+
object.slug = message.slug;
|
|
62029
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
62030
|
+
object.contentType = message.contentType;
|
|
62031
|
+
if (message.collectionType != null && message.hasOwnProperty("collectionType"))
|
|
62032
|
+
object.collectionType = options.enums === String ? $root.ContentCollectionType[message.collectionType] : message.collectionType;
|
|
62033
|
+
if (message.accessGroup && message.accessGroup.length) {
|
|
62034
|
+
object.accessGroup = [];
|
|
62035
|
+
for (var j = 0; j < message.accessGroup.length; ++j)
|
|
62036
|
+
object.accessGroup[j] = $root.contentful.SlugReference.toObject(message.accessGroup[j], options);
|
|
62037
|
+
}
|
|
62038
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
62039
|
+
if (typeof message.createdAt === "number")
|
|
62040
|
+
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
62041
|
+
else
|
|
62042
|
+
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;
|
|
62043
|
+
return object;
|
|
62044
|
+
};
|
|
62045
|
+
|
|
62046
|
+
/**
|
|
62047
|
+
* Converts this CollectionCreated to JSON.
|
|
62048
|
+
* @function toJSON
|
|
62049
|
+
* @memberof CollectionCreated
|
|
62050
|
+
* @instance
|
|
62051
|
+
* @returns {Object.<string,*>} JSON object
|
|
62052
|
+
*/
|
|
62053
|
+
CollectionCreated.prototype.toJSON = function toJSON() {
|
|
62054
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
62055
|
+
};
|
|
62056
|
+
|
|
62057
|
+
return CollectionCreated;
|
|
62058
|
+
})();
|
|
62059
|
+
|
|
62060
|
+
$root.CollectionUpdated = (function() {
|
|
62061
|
+
|
|
62062
|
+
/**
|
|
62063
|
+
* Properties of a CollectionUpdated.
|
|
62064
|
+
* @exports ICollectionUpdated
|
|
62065
|
+
* @interface ICollectionUpdated
|
|
62066
|
+
* @property {string|null} [slug] CollectionUpdated slug
|
|
62067
|
+
* @property {string|null} [contentType] CollectionUpdated contentType
|
|
62068
|
+
* @property {ContentCollectionType|null} [collectionType] CollectionUpdated collectionType
|
|
62069
|
+
* @property {Array.<contentful.ISlugReference>|null} [accessGroup] CollectionUpdated accessGroup
|
|
62070
|
+
* @property {number|Long|null} [updatedAt] CollectionUpdated updatedAt
|
|
62071
|
+
*/
|
|
62072
|
+
|
|
62073
|
+
/**
|
|
62074
|
+
* Constructs a new CollectionUpdated.
|
|
62075
|
+
* @exports CollectionUpdated
|
|
62076
|
+
* @classdesc Represents a CollectionUpdated.
|
|
62077
|
+
* @implements ICollectionUpdated
|
|
62078
|
+
* @constructor
|
|
62079
|
+
* @param {ICollectionUpdated=} [properties] Properties to set
|
|
62080
|
+
*/
|
|
62081
|
+
function CollectionUpdated(properties) {
|
|
62082
|
+
this.accessGroup = [];
|
|
62083
|
+
if (properties)
|
|
62084
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
62085
|
+
if (properties[keys[i]] != null)
|
|
62086
|
+
this[keys[i]] = properties[keys[i]];
|
|
62087
|
+
}
|
|
62088
|
+
|
|
62089
|
+
/**
|
|
62090
|
+
* CollectionUpdated slug.
|
|
62091
|
+
* @member {string} slug
|
|
62092
|
+
* @memberof CollectionUpdated
|
|
62093
|
+
* @instance
|
|
62094
|
+
*/
|
|
62095
|
+
CollectionUpdated.prototype.slug = "";
|
|
62096
|
+
|
|
62097
|
+
/**
|
|
62098
|
+
* CollectionUpdated contentType.
|
|
62099
|
+
* @member {string} contentType
|
|
62100
|
+
* @memberof CollectionUpdated
|
|
62101
|
+
* @instance
|
|
62102
|
+
*/
|
|
62103
|
+
CollectionUpdated.prototype.contentType = "";
|
|
62104
|
+
|
|
62105
|
+
/**
|
|
62106
|
+
* CollectionUpdated collectionType.
|
|
62107
|
+
* @member {ContentCollectionType} collectionType
|
|
62108
|
+
* @memberof CollectionUpdated
|
|
62109
|
+
* @instance
|
|
62110
|
+
*/
|
|
62111
|
+
CollectionUpdated.prototype.collectionType = 0;
|
|
62112
|
+
|
|
62113
|
+
/**
|
|
62114
|
+
* CollectionUpdated accessGroup.
|
|
62115
|
+
* @member {Array.<contentful.ISlugReference>} accessGroup
|
|
62116
|
+
* @memberof CollectionUpdated
|
|
62117
|
+
* @instance
|
|
62118
|
+
*/
|
|
62119
|
+
CollectionUpdated.prototype.accessGroup = $util.emptyArray;
|
|
62120
|
+
|
|
62121
|
+
/**
|
|
62122
|
+
* CollectionUpdated updatedAt.
|
|
62123
|
+
* @member {number|Long} updatedAt
|
|
62124
|
+
* @memberof CollectionUpdated
|
|
62125
|
+
* @instance
|
|
62126
|
+
*/
|
|
62127
|
+
CollectionUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
62128
|
+
|
|
62129
|
+
/**
|
|
62130
|
+
* Creates a new CollectionUpdated instance using the specified properties.
|
|
62131
|
+
* @function create
|
|
62132
|
+
* @memberof CollectionUpdated
|
|
62133
|
+
* @static
|
|
62134
|
+
* @param {ICollectionUpdated=} [properties] Properties to set
|
|
62135
|
+
* @returns {CollectionUpdated} CollectionUpdated instance
|
|
62136
|
+
*/
|
|
62137
|
+
CollectionUpdated.create = function create(properties) {
|
|
62138
|
+
return new CollectionUpdated(properties);
|
|
62139
|
+
};
|
|
62140
|
+
|
|
62141
|
+
/**
|
|
62142
|
+
* Encodes the specified CollectionUpdated message. Does not implicitly {@link CollectionUpdated.verify|verify} messages.
|
|
62143
|
+
* @function encode
|
|
62144
|
+
* @memberof CollectionUpdated
|
|
62145
|
+
* @static
|
|
62146
|
+
* @param {ICollectionUpdated} message CollectionUpdated message or plain object to encode
|
|
62147
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
62148
|
+
* @returns {$protobuf.Writer} Writer
|
|
62149
|
+
*/
|
|
62150
|
+
CollectionUpdated.encode = function encode(message, writer) {
|
|
62151
|
+
if (!writer)
|
|
62152
|
+
writer = $Writer.create();
|
|
62153
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
62154
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
62155
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
62156
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.contentType);
|
|
62157
|
+
if (message.collectionType != null && message.hasOwnProperty("collectionType"))
|
|
62158
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.collectionType);
|
|
62159
|
+
if (message.accessGroup != null && message.accessGroup.length)
|
|
62160
|
+
for (var i = 0; i < message.accessGroup.length; ++i)
|
|
62161
|
+
$root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
62162
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
62163
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.updatedAt);
|
|
62164
|
+
return writer;
|
|
62165
|
+
};
|
|
62166
|
+
|
|
62167
|
+
/**
|
|
62168
|
+
* Encodes the specified CollectionUpdated message, length delimited. Does not implicitly {@link CollectionUpdated.verify|verify} messages.
|
|
62169
|
+
* @function encodeDelimited
|
|
62170
|
+
* @memberof CollectionUpdated
|
|
62171
|
+
* @static
|
|
62172
|
+
* @param {ICollectionUpdated} message CollectionUpdated message or plain object to encode
|
|
62173
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
62174
|
+
* @returns {$protobuf.Writer} Writer
|
|
62175
|
+
*/
|
|
62176
|
+
CollectionUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
62177
|
+
return this.encode(message, writer).ldelim();
|
|
62178
|
+
};
|
|
62179
|
+
|
|
62180
|
+
/**
|
|
62181
|
+
* Decodes a CollectionUpdated message from the specified reader or buffer.
|
|
62182
|
+
* @function decode
|
|
62183
|
+
* @memberof CollectionUpdated
|
|
62184
|
+
* @static
|
|
62185
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
62186
|
+
* @param {number} [length] Message length if known beforehand
|
|
62187
|
+
* @returns {CollectionUpdated} CollectionUpdated
|
|
62188
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
62189
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
62190
|
+
*/
|
|
62191
|
+
CollectionUpdated.decode = function decode(reader, length) {
|
|
62192
|
+
if (!(reader instanceof $Reader))
|
|
62193
|
+
reader = $Reader.create(reader);
|
|
62194
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CollectionUpdated();
|
|
62195
|
+
while (reader.pos < end) {
|
|
62196
|
+
var tag = reader.uint32();
|
|
62197
|
+
switch (tag >>> 3) {
|
|
62198
|
+
case 1:
|
|
62199
|
+
message.slug = reader.string();
|
|
62200
|
+
break;
|
|
62201
|
+
case 2:
|
|
62202
|
+
message.contentType = reader.string();
|
|
62203
|
+
break;
|
|
62204
|
+
case 3:
|
|
62205
|
+
message.collectionType = reader.int32();
|
|
62206
|
+
break;
|
|
62207
|
+
case 4:
|
|
62208
|
+
if (!(message.accessGroup && message.accessGroup.length))
|
|
62209
|
+
message.accessGroup = [];
|
|
62210
|
+
message.accessGroup.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
62211
|
+
break;
|
|
62212
|
+
case 5:
|
|
62213
|
+
message.updatedAt = reader.uint64();
|
|
62214
|
+
break;
|
|
62215
|
+
default:
|
|
62216
|
+
reader.skipType(tag & 7);
|
|
62217
|
+
break;
|
|
62218
|
+
}
|
|
62219
|
+
}
|
|
62220
|
+
return message;
|
|
62221
|
+
};
|
|
62222
|
+
|
|
62223
|
+
/**
|
|
62224
|
+
* Decodes a CollectionUpdated message from the specified reader or buffer, length delimited.
|
|
62225
|
+
* @function decodeDelimited
|
|
62226
|
+
* @memberof CollectionUpdated
|
|
62227
|
+
* @static
|
|
62228
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
62229
|
+
* @returns {CollectionUpdated} CollectionUpdated
|
|
62230
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
62231
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
62232
|
+
*/
|
|
62233
|
+
CollectionUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
62234
|
+
if (!(reader instanceof $Reader))
|
|
62235
|
+
reader = new $Reader(reader);
|
|
62236
|
+
return this.decode(reader, reader.uint32());
|
|
62237
|
+
};
|
|
62238
|
+
|
|
62239
|
+
/**
|
|
62240
|
+
* Verifies a CollectionUpdated message.
|
|
62241
|
+
* @function verify
|
|
62242
|
+
* @memberof CollectionUpdated
|
|
62243
|
+
* @static
|
|
62244
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
62245
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
62246
|
+
*/
|
|
62247
|
+
CollectionUpdated.verify = function verify(message) {
|
|
62248
|
+
if (typeof message !== "object" || message === null)
|
|
62249
|
+
return "object expected";
|
|
62250
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
62251
|
+
if (!$util.isString(message.slug))
|
|
62252
|
+
return "slug: string expected";
|
|
62253
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
62254
|
+
if (!$util.isString(message.contentType))
|
|
62255
|
+
return "contentType: string expected";
|
|
62256
|
+
if (message.collectionType != null && message.hasOwnProperty("collectionType"))
|
|
62257
|
+
switch (message.collectionType) {
|
|
62258
|
+
default:
|
|
62259
|
+
return "collectionType: enum value expected";
|
|
62260
|
+
case 0:
|
|
62261
|
+
case 1:
|
|
62262
|
+
break;
|
|
62263
|
+
}
|
|
62264
|
+
if (message.accessGroup != null && message.hasOwnProperty("accessGroup")) {
|
|
62265
|
+
if (!Array.isArray(message.accessGroup))
|
|
62266
|
+
return "accessGroup: array expected";
|
|
62267
|
+
for (var i = 0; i < message.accessGroup.length; ++i) {
|
|
62268
|
+
var error = $root.contentful.SlugReference.verify(message.accessGroup[i]);
|
|
62269
|
+
if (error)
|
|
62270
|
+
return "accessGroup." + error;
|
|
62271
|
+
}
|
|
62272
|
+
}
|
|
62273
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
62274
|
+
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
62275
|
+
return "updatedAt: integer|Long expected";
|
|
62276
|
+
return null;
|
|
62277
|
+
};
|
|
62278
|
+
|
|
62279
|
+
/**
|
|
62280
|
+
* Creates a CollectionUpdated message from a plain object. Also converts values to their respective internal types.
|
|
62281
|
+
* @function fromObject
|
|
62282
|
+
* @memberof CollectionUpdated
|
|
62283
|
+
* @static
|
|
62284
|
+
* @param {Object.<string,*>} object Plain object
|
|
62285
|
+
* @returns {CollectionUpdated} CollectionUpdated
|
|
62286
|
+
*/
|
|
62287
|
+
CollectionUpdated.fromObject = function fromObject(object) {
|
|
62288
|
+
if (object instanceof $root.CollectionUpdated)
|
|
62289
|
+
return object;
|
|
62290
|
+
var message = new $root.CollectionUpdated();
|
|
62291
|
+
if (object.slug != null)
|
|
62292
|
+
message.slug = String(object.slug);
|
|
62293
|
+
if (object.contentType != null)
|
|
62294
|
+
message.contentType = String(object.contentType);
|
|
62295
|
+
switch (object.collectionType) {
|
|
62296
|
+
case "CONTENT_COLLECTION_TYPE_UNRECOGNIZED":
|
|
62297
|
+
case 0:
|
|
62298
|
+
message.collectionType = 0;
|
|
62299
|
+
break;
|
|
62300
|
+
case "CONTENT_COLLECTION_TYPE_GENERIC":
|
|
62301
|
+
case 1:
|
|
62302
|
+
message.collectionType = 1;
|
|
62303
|
+
break;
|
|
62304
|
+
}
|
|
62305
|
+
if (object.accessGroup) {
|
|
62306
|
+
if (!Array.isArray(object.accessGroup))
|
|
62307
|
+
throw TypeError(".CollectionUpdated.accessGroup: array expected");
|
|
62308
|
+
message.accessGroup = [];
|
|
62309
|
+
for (var i = 0; i < object.accessGroup.length; ++i) {
|
|
62310
|
+
if (typeof object.accessGroup[i] !== "object")
|
|
62311
|
+
throw TypeError(".CollectionUpdated.accessGroup: object expected");
|
|
62312
|
+
message.accessGroup[i] = $root.contentful.SlugReference.fromObject(object.accessGroup[i]);
|
|
62313
|
+
}
|
|
62314
|
+
}
|
|
62315
|
+
if (object.updatedAt != null)
|
|
62316
|
+
if ($util.Long)
|
|
62317
|
+
(message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
|
|
62318
|
+
else if (typeof object.updatedAt === "string")
|
|
62319
|
+
message.updatedAt = parseInt(object.updatedAt, 10);
|
|
62320
|
+
else if (typeof object.updatedAt === "number")
|
|
62321
|
+
message.updatedAt = object.updatedAt;
|
|
62322
|
+
else if (typeof object.updatedAt === "object")
|
|
62323
|
+
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
62324
|
+
return message;
|
|
62325
|
+
};
|
|
62326
|
+
|
|
62327
|
+
/**
|
|
62328
|
+
* Creates a plain object from a CollectionUpdated message. Also converts values to other types if specified.
|
|
62329
|
+
* @function toObject
|
|
62330
|
+
* @memberof CollectionUpdated
|
|
62331
|
+
* @static
|
|
62332
|
+
* @param {CollectionUpdated} message CollectionUpdated
|
|
62333
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
62334
|
+
* @returns {Object.<string,*>} Plain object
|
|
62335
|
+
*/
|
|
62336
|
+
CollectionUpdated.toObject = function toObject(message, options) {
|
|
62337
|
+
if (!options)
|
|
62338
|
+
options = {};
|
|
62339
|
+
var object = {};
|
|
62340
|
+
if (options.arrays || options.defaults)
|
|
62341
|
+
object.accessGroup = [];
|
|
62342
|
+
if (options.defaults) {
|
|
62343
|
+
object.slug = "";
|
|
62344
|
+
object.contentType = "";
|
|
62345
|
+
object.collectionType = options.enums === String ? "CONTENT_COLLECTION_TYPE_UNRECOGNIZED" : 0;
|
|
62346
|
+
if ($util.Long) {
|
|
62347
|
+
var long = new $util.Long(0, 0, true);
|
|
62348
|
+
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
62349
|
+
} else
|
|
62350
|
+
object.updatedAt = options.longs === String ? "0" : 0;
|
|
62351
|
+
}
|
|
62352
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
62353
|
+
object.slug = message.slug;
|
|
62354
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
62355
|
+
object.contentType = message.contentType;
|
|
62356
|
+
if (message.collectionType != null && message.hasOwnProperty("collectionType"))
|
|
62357
|
+
object.collectionType = options.enums === String ? $root.ContentCollectionType[message.collectionType] : message.collectionType;
|
|
62358
|
+
if (message.accessGroup && message.accessGroup.length) {
|
|
62359
|
+
object.accessGroup = [];
|
|
62360
|
+
for (var j = 0; j < message.accessGroup.length; ++j)
|
|
62361
|
+
object.accessGroup[j] = $root.contentful.SlugReference.toObject(message.accessGroup[j], options);
|
|
62362
|
+
}
|
|
62363
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
62364
|
+
if (typeof message.updatedAt === "number")
|
|
62365
|
+
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
62366
|
+
else
|
|
62367
|
+
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;
|
|
62368
|
+
return object;
|
|
62369
|
+
};
|
|
62370
|
+
|
|
62371
|
+
/**
|
|
62372
|
+
* Converts this CollectionUpdated to JSON.
|
|
62373
|
+
* @function toJSON
|
|
62374
|
+
* @memberof CollectionUpdated
|
|
62375
|
+
* @instance
|
|
62376
|
+
* @returns {Object.<string,*>} JSON object
|
|
62377
|
+
*/
|
|
62378
|
+
CollectionUpdated.prototype.toJSON = function toJSON() {
|
|
62379
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
62380
|
+
};
|
|
62381
|
+
|
|
62382
|
+
return CollectionUpdated;
|
|
62383
|
+
})();
|
|
62384
|
+
|
|
62385
|
+
$root.CollectionDeleted = (function() {
|
|
62386
|
+
|
|
62387
|
+
/**
|
|
62388
|
+
* Properties of a CollectionDeleted.
|
|
62389
|
+
* @exports ICollectionDeleted
|
|
62390
|
+
* @interface ICollectionDeleted
|
|
62391
|
+
* @property {string|null} [slug] CollectionDeleted slug
|
|
62392
|
+
* @property {string|null} [contentType] CollectionDeleted contentType
|
|
62393
|
+
* @property {number|Long|null} [deletedAt] CollectionDeleted deletedAt
|
|
62394
|
+
*/
|
|
62395
|
+
|
|
62396
|
+
/**
|
|
62397
|
+
* Constructs a new CollectionDeleted.
|
|
62398
|
+
* @exports CollectionDeleted
|
|
62399
|
+
* @classdesc Represents a CollectionDeleted.
|
|
62400
|
+
* @implements ICollectionDeleted
|
|
62401
|
+
* @constructor
|
|
62402
|
+
* @param {ICollectionDeleted=} [properties] Properties to set
|
|
62403
|
+
*/
|
|
62404
|
+
function CollectionDeleted(properties) {
|
|
62405
|
+
if (properties)
|
|
62406
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
62407
|
+
if (properties[keys[i]] != null)
|
|
62408
|
+
this[keys[i]] = properties[keys[i]];
|
|
62409
|
+
}
|
|
62410
|
+
|
|
62411
|
+
/**
|
|
62412
|
+
* CollectionDeleted slug.
|
|
62413
|
+
* @member {string} slug
|
|
62414
|
+
* @memberof CollectionDeleted
|
|
62415
|
+
* @instance
|
|
62416
|
+
*/
|
|
62417
|
+
CollectionDeleted.prototype.slug = "";
|
|
62418
|
+
|
|
62419
|
+
/**
|
|
62420
|
+
* CollectionDeleted contentType.
|
|
62421
|
+
* @member {string} contentType
|
|
62422
|
+
* @memberof CollectionDeleted
|
|
62423
|
+
* @instance
|
|
62424
|
+
*/
|
|
62425
|
+
CollectionDeleted.prototype.contentType = "";
|
|
62426
|
+
|
|
62427
|
+
/**
|
|
62428
|
+
* CollectionDeleted deletedAt.
|
|
62429
|
+
* @member {number|Long} deletedAt
|
|
62430
|
+
* @memberof CollectionDeleted
|
|
62431
|
+
* @instance
|
|
62432
|
+
*/
|
|
62433
|
+
CollectionDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
62434
|
+
|
|
62435
|
+
/**
|
|
62436
|
+
* Creates a new CollectionDeleted instance using the specified properties.
|
|
62437
|
+
* @function create
|
|
62438
|
+
* @memberof CollectionDeleted
|
|
62439
|
+
* @static
|
|
62440
|
+
* @param {ICollectionDeleted=} [properties] Properties to set
|
|
62441
|
+
* @returns {CollectionDeleted} CollectionDeleted instance
|
|
62442
|
+
*/
|
|
62443
|
+
CollectionDeleted.create = function create(properties) {
|
|
62444
|
+
return new CollectionDeleted(properties);
|
|
62445
|
+
};
|
|
62446
|
+
|
|
62447
|
+
/**
|
|
62448
|
+
* Encodes the specified CollectionDeleted message. Does not implicitly {@link CollectionDeleted.verify|verify} messages.
|
|
62449
|
+
* @function encode
|
|
62450
|
+
* @memberof CollectionDeleted
|
|
62451
|
+
* @static
|
|
62452
|
+
* @param {ICollectionDeleted} message CollectionDeleted message or plain object to encode
|
|
62453
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
62454
|
+
* @returns {$protobuf.Writer} Writer
|
|
62455
|
+
*/
|
|
62456
|
+
CollectionDeleted.encode = function encode(message, writer) {
|
|
62457
|
+
if (!writer)
|
|
62458
|
+
writer = $Writer.create();
|
|
62459
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
62460
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
62461
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
62462
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.contentType);
|
|
62463
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
62464
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.deletedAt);
|
|
62465
|
+
return writer;
|
|
62466
|
+
};
|
|
62467
|
+
|
|
62468
|
+
/**
|
|
62469
|
+
* Encodes the specified CollectionDeleted message, length delimited. Does not implicitly {@link CollectionDeleted.verify|verify} messages.
|
|
62470
|
+
* @function encodeDelimited
|
|
62471
|
+
* @memberof CollectionDeleted
|
|
62472
|
+
* @static
|
|
62473
|
+
* @param {ICollectionDeleted} message CollectionDeleted message or plain object to encode
|
|
62474
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
62475
|
+
* @returns {$protobuf.Writer} Writer
|
|
62476
|
+
*/
|
|
62477
|
+
CollectionDeleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
62478
|
+
return this.encode(message, writer).ldelim();
|
|
62479
|
+
};
|
|
62480
|
+
|
|
62481
|
+
/**
|
|
62482
|
+
* Decodes a CollectionDeleted message from the specified reader or buffer.
|
|
62483
|
+
* @function decode
|
|
62484
|
+
* @memberof CollectionDeleted
|
|
62485
|
+
* @static
|
|
62486
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
62487
|
+
* @param {number} [length] Message length if known beforehand
|
|
62488
|
+
* @returns {CollectionDeleted} CollectionDeleted
|
|
62489
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
62490
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
62491
|
+
*/
|
|
62492
|
+
CollectionDeleted.decode = function decode(reader, length) {
|
|
62493
|
+
if (!(reader instanceof $Reader))
|
|
62494
|
+
reader = $Reader.create(reader);
|
|
62495
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CollectionDeleted();
|
|
62496
|
+
while (reader.pos < end) {
|
|
62497
|
+
var tag = reader.uint32();
|
|
62498
|
+
switch (tag >>> 3) {
|
|
62499
|
+
case 1:
|
|
62500
|
+
message.slug = reader.string();
|
|
62501
|
+
break;
|
|
62502
|
+
case 2:
|
|
62503
|
+
message.contentType = reader.string();
|
|
62504
|
+
break;
|
|
62505
|
+
case 3:
|
|
62506
|
+
message.deletedAt = reader.uint64();
|
|
62507
|
+
break;
|
|
62508
|
+
default:
|
|
62509
|
+
reader.skipType(tag & 7);
|
|
62510
|
+
break;
|
|
62511
|
+
}
|
|
62512
|
+
}
|
|
62513
|
+
return message;
|
|
62514
|
+
};
|
|
62515
|
+
|
|
62516
|
+
/**
|
|
62517
|
+
* Decodes a CollectionDeleted message from the specified reader or buffer, length delimited.
|
|
62518
|
+
* @function decodeDelimited
|
|
62519
|
+
* @memberof CollectionDeleted
|
|
62520
|
+
* @static
|
|
62521
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
62522
|
+
* @returns {CollectionDeleted} CollectionDeleted
|
|
62523
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
62524
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
62525
|
+
*/
|
|
62526
|
+
CollectionDeleted.decodeDelimited = function decodeDelimited(reader) {
|
|
62527
|
+
if (!(reader instanceof $Reader))
|
|
62528
|
+
reader = new $Reader(reader);
|
|
62529
|
+
return this.decode(reader, reader.uint32());
|
|
62530
|
+
};
|
|
62531
|
+
|
|
62532
|
+
/**
|
|
62533
|
+
* Verifies a CollectionDeleted message.
|
|
62534
|
+
* @function verify
|
|
62535
|
+
* @memberof CollectionDeleted
|
|
62536
|
+
* @static
|
|
62537
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
62538
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
62539
|
+
*/
|
|
62540
|
+
CollectionDeleted.verify = function verify(message) {
|
|
62541
|
+
if (typeof message !== "object" || message === null)
|
|
62542
|
+
return "object expected";
|
|
62543
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
62544
|
+
if (!$util.isString(message.slug))
|
|
62545
|
+
return "slug: string expected";
|
|
62546
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
62547
|
+
if (!$util.isString(message.contentType))
|
|
62548
|
+
return "contentType: string expected";
|
|
62549
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
62550
|
+
if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
|
|
62551
|
+
return "deletedAt: integer|Long expected";
|
|
62552
|
+
return null;
|
|
62553
|
+
};
|
|
62554
|
+
|
|
62555
|
+
/**
|
|
62556
|
+
* Creates a CollectionDeleted message from a plain object. Also converts values to their respective internal types.
|
|
62557
|
+
* @function fromObject
|
|
62558
|
+
* @memberof CollectionDeleted
|
|
62559
|
+
* @static
|
|
62560
|
+
* @param {Object.<string,*>} object Plain object
|
|
62561
|
+
* @returns {CollectionDeleted} CollectionDeleted
|
|
62562
|
+
*/
|
|
62563
|
+
CollectionDeleted.fromObject = function fromObject(object) {
|
|
62564
|
+
if (object instanceof $root.CollectionDeleted)
|
|
62565
|
+
return object;
|
|
62566
|
+
var message = new $root.CollectionDeleted();
|
|
62567
|
+
if (object.slug != null)
|
|
62568
|
+
message.slug = String(object.slug);
|
|
62569
|
+
if (object.contentType != null)
|
|
62570
|
+
message.contentType = String(object.contentType);
|
|
62571
|
+
if (object.deletedAt != null)
|
|
62572
|
+
if ($util.Long)
|
|
62573
|
+
(message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
|
|
62574
|
+
else if (typeof object.deletedAt === "string")
|
|
62575
|
+
message.deletedAt = parseInt(object.deletedAt, 10);
|
|
62576
|
+
else if (typeof object.deletedAt === "number")
|
|
62577
|
+
message.deletedAt = object.deletedAt;
|
|
62578
|
+
else if (typeof object.deletedAt === "object")
|
|
62579
|
+
message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
|
|
62580
|
+
return message;
|
|
62581
|
+
};
|
|
62582
|
+
|
|
62583
|
+
/**
|
|
62584
|
+
* Creates a plain object from a CollectionDeleted message. Also converts values to other types if specified.
|
|
62585
|
+
* @function toObject
|
|
62586
|
+
* @memberof CollectionDeleted
|
|
62587
|
+
* @static
|
|
62588
|
+
* @param {CollectionDeleted} message CollectionDeleted
|
|
62589
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
62590
|
+
* @returns {Object.<string,*>} Plain object
|
|
62591
|
+
*/
|
|
62592
|
+
CollectionDeleted.toObject = function toObject(message, options) {
|
|
62593
|
+
if (!options)
|
|
62594
|
+
options = {};
|
|
62595
|
+
var object = {};
|
|
62596
|
+
if (options.defaults) {
|
|
62597
|
+
object.slug = "";
|
|
62598
|
+
object.contentType = "";
|
|
62599
|
+
if ($util.Long) {
|
|
62600
|
+
var long = new $util.Long(0, 0, true);
|
|
62601
|
+
object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
62602
|
+
} else
|
|
62603
|
+
object.deletedAt = options.longs === String ? "0" : 0;
|
|
62604
|
+
}
|
|
62605
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
62606
|
+
object.slug = message.slug;
|
|
62607
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
62608
|
+
object.contentType = message.contentType;
|
|
62609
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
62610
|
+
if (typeof message.deletedAt === "number")
|
|
62611
|
+
object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
|
|
62612
|
+
else
|
|
62613
|
+
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;
|
|
62614
|
+
return object;
|
|
62615
|
+
};
|
|
62616
|
+
|
|
62617
|
+
/**
|
|
62618
|
+
* Converts this CollectionDeleted to JSON.
|
|
62619
|
+
* @function toJSON
|
|
62620
|
+
* @memberof CollectionDeleted
|
|
62621
|
+
* @instance
|
|
62622
|
+
* @returns {Object.<string,*>} JSON object
|
|
62623
|
+
*/
|
|
62624
|
+
CollectionDeleted.prototype.toJSON = function toJSON() {
|
|
62625
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
62626
|
+
};
|
|
62627
|
+
|
|
62628
|
+
return CollectionDeleted;
|
|
62629
|
+
})();
|
|
62630
|
+
|
|
61735
62631
|
$root.ContentPlayed = (function() {
|
|
61736
62632
|
|
|
61737
62633
|
/**
|
|
@@ -69188,6 +70084,7 @@ $root.SleepcastCreated = (function() {
|
|
|
69188
70084
|
* @property {Array.<contentful.ISlugReference>|null} [accessGroup] SleepcastCreated accessGroup
|
|
69189
70085
|
* @property {number|Long|null} [createdAt] SleepcastCreated createdAt
|
|
69190
70086
|
* @property {Object.<string,contentful.ITags>|null} [tags] SleepcastCreated tags
|
|
70087
|
+
* @property {boolean|null} [isInternationalOnly] SleepcastCreated isInternationalOnly
|
|
69191
70088
|
*/
|
|
69192
70089
|
|
|
69193
70090
|
/**
|
|
@@ -69255,6 +70152,14 @@ $root.SleepcastCreated = (function() {
|
|
|
69255
70152
|
*/
|
|
69256
70153
|
SleepcastCreated.prototype.tags = $util.emptyObject;
|
|
69257
70154
|
|
|
70155
|
+
/**
|
|
70156
|
+
* SleepcastCreated isInternationalOnly.
|
|
70157
|
+
* @member {boolean} isInternationalOnly
|
|
70158
|
+
* @memberof SleepcastCreated
|
|
70159
|
+
* @instance
|
|
70160
|
+
*/
|
|
70161
|
+
SleepcastCreated.prototype.isInternationalOnly = false;
|
|
70162
|
+
|
|
69258
70163
|
/**
|
|
69259
70164
|
* Creates a new SleepcastCreated instance using the specified properties.
|
|
69260
70165
|
* @function create
|
|
@@ -69295,6 +70200,8 @@ $root.SleepcastCreated = (function() {
|
|
|
69295
70200
|
writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
69296
70201
|
$root.contentful.Tags.encode(message.tags[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
69297
70202
|
}
|
|
70203
|
+
if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
|
|
70204
|
+
writer.uint32(/* id 7, wireType 0 =*/56).bool(message.isInternationalOnly);
|
|
69298
70205
|
return writer;
|
|
69299
70206
|
};
|
|
69300
70207
|
|
|
@@ -69354,6 +70261,9 @@ $root.SleepcastCreated = (function() {
|
|
|
69354
70261
|
reader.pos++;
|
|
69355
70262
|
message.tags[key] = $root.contentful.Tags.decode(reader, reader.uint32());
|
|
69356
70263
|
break;
|
|
70264
|
+
case 7:
|
|
70265
|
+
message.isInternationalOnly = reader.bool();
|
|
70266
|
+
break;
|
|
69357
70267
|
default:
|
|
69358
70268
|
reader.skipType(tag & 7);
|
|
69359
70269
|
break;
|
|
@@ -69420,6 +70330,9 @@ $root.SleepcastCreated = (function() {
|
|
|
69420
70330
|
return "tags." + error;
|
|
69421
70331
|
}
|
|
69422
70332
|
}
|
|
70333
|
+
if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
|
|
70334
|
+
if (typeof message.isInternationalOnly !== "boolean")
|
|
70335
|
+
return "isInternationalOnly: boolean expected";
|
|
69423
70336
|
return null;
|
|
69424
70337
|
};
|
|
69425
70338
|
|
|
@@ -69470,6 +70383,8 @@ $root.SleepcastCreated = (function() {
|
|
|
69470
70383
|
message.tags[keys[i]] = $root.contentful.Tags.fromObject(object.tags[keys[i]]);
|
|
69471
70384
|
}
|
|
69472
70385
|
}
|
|
70386
|
+
if (object.isInternationalOnly != null)
|
|
70387
|
+
message.isInternationalOnly = Boolean(object.isInternationalOnly);
|
|
69473
70388
|
return message;
|
|
69474
70389
|
};
|
|
69475
70390
|
|
|
@@ -69499,6 +70414,7 @@ $root.SleepcastCreated = (function() {
|
|
|
69499
70414
|
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
69500
70415
|
} else
|
|
69501
70416
|
object.createdAt = options.longs === String ? "0" : 0;
|
|
70417
|
+
object.isInternationalOnly = false;
|
|
69502
70418
|
}
|
|
69503
70419
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
69504
70420
|
object.slug = message.slug;
|
|
@@ -69522,6 +70438,8 @@ $root.SleepcastCreated = (function() {
|
|
|
69522
70438
|
for (var j = 0; j < keys2.length; ++j)
|
|
69523
70439
|
object.tags[keys2[j]] = $root.contentful.Tags.toObject(message.tags[keys2[j]], options);
|
|
69524
70440
|
}
|
|
70441
|
+
if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
|
|
70442
|
+
object.isInternationalOnly = message.isInternationalOnly;
|
|
69525
70443
|
return object;
|
|
69526
70444
|
};
|
|
69527
70445
|
|
|
@@ -69551,6 +70469,7 @@ $root.SleepcastUpdated = (function() {
|
|
|
69551
70469
|
* @property {Array.<contentful.ISlugReference>|null} [accessGroup] SleepcastUpdated accessGroup
|
|
69552
70470
|
* @property {number|Long|null} [updatedAt] SleepcastUpdated updatedAt
|
|
69553
70471
|
* @property {Object.<string,contentful.ITags>|null} [tags] SleepcastUpdated tags
|
|
70472
|
+
* @property {boolean|null} [isInternationalOnly] SleepcastUpdated isInternationalOnly
|
|
69554
70473
|
*/
|
|
69555
70474
|
|
|
69556
70475
|
/**
|
|
@@ -69618,6 +70537,14 @@ $root.SleepcastUpdated = (function() {
|
|
|
69618
70537
|
*/
|
|
69619
70538
|
SleepcastUpdated.prototype.tags = $util.emptyObject;
|
|
69620
70539
|
|
|
70540
|
+
/**
|
|
70541
|
+
* SleepcastUpdated isInternationalOnly.
|
|
70542
|
+
* @member {boolean} isInternationalOnly
|
|
70543
|
+
* @memberof SleepcastUpdated
|
|
70544
|
+
* @instance
|
|
70545
|
+
*/
|
|
70546
|
+
SleepcastUpdated.prototype.isInternationalOnly = false;
|
|
70547
|
+
|
|
69621
70548
|
/**
|
|
69622
70549
|
* Creates a new SleepcastUpdated instance using the specified properties.
|
|
69623
70550
|
* @function create
|
|
@@ -69658,6 +70585,8 @@ $root.SleepcastUpdated = (function() {
|
|
|
69658
70585
|
writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
69659
70586
|
$root.contentful.Tags.encode(message.tags[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
69660
70587
|
}
|
|
70588
|
+
if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
|
|
70589
|
+
writer.uint32(/* id 7, wireType 0 =*/56).bool(message.isInternationalOnly);
|
|
69661
70590
|
return writer;
|
|
69662
70591
|
};
|
|
69663
70592
|
|
|
@@ -69717,6 +70646,9 @@ $root.SleepcastUpdated = (function() {
|
|
|
69717
70646
|
reader.pos++;
|
|
69718
70647
|
message.tags[key] = $root.contentful.Tags.decode(reader, reader.uint32());
|
|
69719
70648
|
break;
|
|
70649
|
+
case 7:
|
|
70650
|
+
message.isInternationalOnly = reader.bool();
|
|
70651
|
+
break;
|
|
69720
70652
|
default:
|
|
69721
70653
|
reader.skipType(tag & 7);
|
|
69722
70654
|
break;
|
|
@@ -69783,6 +70715,9 @@ $root.SleepcastUpdated = (function() {
|
|
|
69783
70715
|
return "tags." + error;
|
|
69784
70716
|
}
|
|
69785
70717
|
}
|
|
70718
|
+
if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
|
|
70719
|
+
if (typeof message.isInternationalOnly !== "boolean")
|
|
70720
|
+
return "isInternationalOnly: boolean expected";
|
|
69786
70721
|
return null;
|
|
69787
70722
|
};
|
|
69788
70723
|
|
|
@@ -69833,6 +70768,8 @@ $root.SleepcastUpdated = (function() {
|
|
|
69833
70768
|
message.tags[keys[i]] = $root.contentful.Tags.fromObject(object.tags[keys[i]]);
|
|
69834
70769
|
}
|
|
69835
70770
|
}
|
|
70771
|
+
if (object.isInternationalOnly != null)
|
|
70772
|
+
message.isInternationalOnly = Boolean(object.isInternationalOnly);
|
|
69836
70773
|
return message;
|
|
69837
70774
|
};
|
|
69838
70775
|
|
|
@@ -69862,6 +70799,7 @@ $root.SleepcastUpdated = (function() {
|
|
|
69862
70799
|
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
69863
70800
|
} else
|
|
69864
70801
|
object.updatedAt = options.longs === String ? "0" : 0;
|
|
70802
|
+
object.isInternationalOnly = false;
|
|
69865
70803
|
}
|
|
69866
70804
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
69867
70805
|
object.slug = message.slug;
|
|
@@ -69885,6 +70823,8 @@ $root.SleepcastUpdated = (function() {
|
|
|
69885
70823
|
for (var j = 0; j < keys2.length; ++j)
|
|
69886
70824
|
object.tags[keys2[j]] = $root.contentful.Tags.toObject(message.tags[keys2[j]], options);
|
|
69887
70825
|
}
|
|
70826
|
+
if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
|
|
70827
|
+
object.isInternationalOnly = message.isInternationalOnly;
|
|
69888
70828
|
return object;
|
|
69889
70829
|
};
|
|
69890
70830
|
|