@headspace/protos-events 1.136.0 → 1.137.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.
Files changed (3) hide show
  1. package/lib/index.d.ts +438 -0
  2. package/lib/index.js +1244 -0
  3. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -864,6 +864,214 @@ $root.contentful = (function() {
864
864
  return SlugReference;
865
865
  })();
866
866
 
867
+ contentful.SlugReferences = (function() {
868
+
869
+ /**
870
+ * Properties of a SlugReferences.
871
+ * @memberof contentful
872
+ * @interface ISlugReferences
873
+ * @property {Array.<contentful.ISlugReference>|null} [refs] SlugReferences refs
874
+ */
875
+
876
+ /**
877
+ * Constructs a new SlugReferences.
878
+ * @memberof contentful
879
+ * @classdesc Represents a SlugReferences.
880
+ * @implements ISlugReferences
881
+ * @constructor
882
+ * @param {contentful.ISlugReferences=} [properties] Properties to set
883
+ */
884
+ function SlugReferences(properties) {
885
+ this.refs = [];
886
+ if (properties)
887
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
888
+ if (properties[keys[i]] != null)
889
+ this[keys[i]] = properties[keys[i]];
890
+ }
891
+
892
+ /**
893
+ * SlugReferences refs.
894
+ * @member {Array.<contentful.ISlugReference>} refs
895
+ * @memberof contentful.SlugReferences
896
+ * @instance
897
+ */
898
+ SlugReferences.prototype.refs = $util.emptyArray;
899
+
900
+ /**
901
+ * Creates a new SlugReferences instance using the specified properties.
902
+ * @function create
903
+ * @memberof contentful.SlugReferences
904
+ * @static
905
+ * @param {contentful.ISlugReferences=} [properties] Properties to set
906
+ * @returns {contentful.SlugReferences} SlugReferences instance
907
+ */
908
+ SlugReferences.create = function create(properties) {
909
+ return new SlugReferences(properties);
910
+ };
911
+
912
+ /**
913
+ * Encodes the specified SlugReferences message. Does not implicitly {@link contentful.SlugReferences.verify|verify} messages.
914
+ * @function encode
915
+ * @memberof contentful.SlugReferences
916
+ * @static
917
+ * @param {contentful.ISlugReferences} message SlugReferences message or plain object to encode
918
+ * @param {$protobuf.Writer} [writer] Writer to encode to
919
+ * @returns {$protobuf.Writer} Writer
920
+ */
921
+ SlugReferences.encode = function encode(message, writer) {
922
+ if (!writer)
923
+ writer = $Writer.create();
924
+ if (message.refs != null && message.refs.length)
925
+ for (var i = 0; i < message.refs.length; ++i)
926
+ $root.contentful.SlugReference.encode(message.refs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
927
+ return writer;
928
+ };
929
+
930
+ /**
931
+ * Encodes the specified SlugReferences message, length delimited. Does not implicitly {@link contentful.SlugReferences.verify|verify} messages.
932
+ * @function encodeDelimited
933
+ * @memberof contentful.SlugReferences
934
+ * @static
935
+ * @param {contentful.ISlugReferences} message SlugReferences message or plain object to encode
936
+ * @param {$protobuf.Writer} [writer] Writer to encode to
937
+ * @returns {$protobuf.Writer} Writer
938
+ */
939
+ SlugReferences.encodeDelimited = function encodeDelimited(message, writer) {
940
+ return this.encode(message, writer).ldelim();
941
+ };
942
+
943
+ /**
944
+ * Decodes a SlugReferences message from the specified reader or buffer.
945
+ * @function decode
946
+ * @memberof contentful.SlugReferences
947
+ * @static
948
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
949
+ * @param {number} [length] Message length if known beforehand
950
+ * @returns {contentful.SlugReferences} SlugReferences
951
+ * @throws {Error} If the payload is not a reader or valid buffer
952
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
953
+ */
954
+ SlugReferences.decode = function decode(reader, length) {
955
+ if (!(reader instanceof $Reader))
956
+ reader = $Reader.create(reader);
957
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.contentful.SlugReferences();
958
+ while (reader.pos < end) {
959
+ var tag = reader.uint32();
960
+ switch (tag >>> 3) {
961
+ case 1:
962
+ if (!(message.refs && message.refs.length))
963
+ message.refs = [];
964
+ message.refs.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
965
+ break;
966
+ default:
967
+ reader.skipType(tag & 7);
968
+ break;
969
+ }
970
+ }
971
+ return message;
972
+ };
973
+
974
+ /**
975
+ * Decodes a SlugReferences message from the specified reader or buffer, length delimited.
976
+ * @function decodeDelimited
977
+ * @memberof contentful.SlugReferences
978
+ * @static
979
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
980
+ * @returns {contentful.SlugReferences} SlugReferences
981
+ * @throws {Error} If the payload is not a reader or valid buffer
982
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
983
+ */
984
+ SlugReferences.decodeDelimited = function decodeDelimited(reader) {
985
+ if (!(reader instanceof $Reader))
986
+ reader = new $Reader(reader);
987
+ return this.decode(reader, reader.uint32());
988
+ };
989
+
990
+ /**
991
+ * Verifies a SlugReferences message.
992
+ * @function verify
993
+ * @memberof contentful.SlugReferences
994
+ * @static
995
+ * @param {Object.<string,*>} message Plain object to verify
996
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
997
+ */
998
+ SlugReferences.verify = function verify(message) {
999
+ if (typeof message !== "object" || message === null)
1000
+ return "object expected";
1001
+ if (message.refs != null && message.hasOwnProperty("refs")) {
1002
+ if (!Array.isArray(message.refs))
1003
+ return "refs: array expected";
1004
+ for (var i = 0; i < message.refs.length; ++i) {
1005
+ var error = $root.contentful.SlugReference.verify(message.refs[i]);
1006
+ if (error)
1007
+ return "refs." + error;
1008
+ }
1009
+ }
1010
+ return null;
1011
+ };
1012
+
1013
+ /**
1014
+ * Creates a SlugReferences message from a plain object. Also converts values to their respective internal types.
1015
+ * @function fromObject
1016
+ * @memberof contentful.SlugReferences
1017
+ * @static
1018
+ * @param {Object.<string,*>} object Plain object
1019
+ * @returns {contentful.SlugReferences} SlugReferences
1020
+ */
1021
+ SlugReferences.fromObject = function fromObject(object) {
1022
+ if (object instanceof $root.contentful.SlugReferences)
1023
+ return object;
1024
+ var message = new $root.contentful.SlugReferences();
1025
+ if (object.refs) {
1026
+ if (!Array.isArray(object.refs))
1027
+ throw TypeError(".contentful.SlugReferences.refs: array expected");
1028
+ message.refs = [];
1029
+ for (var i = 0; i < object.refs.length; ++i) {
1030
+ if (typeof object.refs[i] !== "object")
1031
+ throw TypeError(".contentful.SlugReferences.refs: object expected");
1032
+ message.refs[i] = $root.contentful.SlugReference.fromObject(object.refs[i]);
1033
+ }
1034
+ }
1035
+ return message;
1036
+ };
1037
+
1038
+ /**
1039
+ * Creates a plain object from a SlugReferences message. Also converts values to other types if specified.
1040
+ * @function toObject
1041
+ * @memberof contentful.SlugReferences
1042
+ * @static
1043
+ * @param {contentful.SlugReferences} message SlugReferences
1044
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
1045
+ * @returns {Object.<string,*>} Plain object
1046
+ */
1047
+ SlugReferences.toObject = function toObject(message, options) {
1048
+ if (!options)
1049
+ options = {};
1050
+ var object = {};
1051
+ if (options.arrays || options.defaults)
1052
+ object.refs = [];
1053
+ if (message.refs && message.refs.length) {
1054
+ object.refs = [];
1055
+ for (var j = 0; j < message.refs.length; ++j)
1056
+ object.refs[j] = $root.contentful.SlugReference.toObject(message.refs[j], options);
1057
+ }
1058
+ return object;
1059
+ };
1060
+
1061
+ /**
1062
+ * Converts this SlugReferences to JSON.
1063
+ * @function toJSON
1064
+ * @memberof contentful.SlugReferences
1065
+ * @instance
1066
+ * @returns {Object.<string,*>} JSON object
1067
+ */
1068
+ SlugReferences.prototype.toJSON = function toJSON() {
1069
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
1070
+ };
1071
+
1072
+ return SlugReferences;
1073
+ })();
1074
+
867
1075
  contentful.IdReference = (function() {
868
1076
 
869
1077
  /**
@@ -17485,6 +17693,1042 @@ $root.ContentfulActivityVariationDeleted = (function() {
17485
17693
  return ContentfulActivityVariationDeleted;
17486
17694
  })();
17487
17695
 
17696
+ $root.ContentfulActivityCreated = (function() {
17697
+
17698
+ /**
17699
+ * Properties of a ContentfulActivityCreated.
17700
+ * @exports IContentfulActivityCreated
17701
+ * @interface IContentfulActivityCreated
17702
+ * @property {Object.<string,string>|null} [name] ContentfulActivityCreated name
17703
+ * @property {string|null} [slug] ContentfulActivityCreated slug
17704
+ * @property {string|null} [format] ContentfulActivityCreated format
17705
+ * @property {string|null} [enabled] ContentfulActivityCreated enabled
17706
+ * @property {Object.<string,contentful.ISlugReferences>|null} [variations] ContentfulActivityCreated variations
17707
+ * @property {Array.<contentful.ISlugReference>|null} [accessGroup] ContentfulActivityCreated accessGroup
17708
+ * @property {number|Long|null} [createdAt] ContentfulActivityCreated createdAt
17709
+ */
17710
+
17711
+ /**
17712
+ * Constructs a new ContentfulActivityCreated.
17713
+ * @exports ContentfulActivityCreated
17714
+ * @classdesc Represents a ContentfulActivityCreated.
17715
+ * @implements IContentfulActivityCreated
17716
+ * @constructor
17717
+ * @param {IContentfulActivityCreated=} [properties] Properties to set
17718
+ */
17719
+ function ContentfulActivityCreated(properties) {
17720
+ this.name = {};
17721
+ this.variations = {};
17722
+ this.accessGroup = [];
17723
+ if (properties)
17724
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
17725
+ if (properties[keys[i]] != null)
17726
+ this[keys[i]] = properties[keys[i]];
17727
+ }
17728
+
17729
+ /**
17730
+ * ContentfulActivityCreated name.
17731
+ * @member {Object.<string,string>} name
17732
+ * @memberof ContentfulActivityCreated
17733
+ * @instance
17734
+ */
17735
+ ContentfulActivityCreated.prototype.name = $util.emptyObject;
17736
+
17737
+ /**
17738
+ * ContentfulActivityCreated slug.
17739
+ * @member {string} slug
17740
+ * @memberof ContentfulActivityCreated
17741
+ * @instance
17742
+ */
17743
+ ContentfulActivityCreated.prototype.slug = "";
17744
+
17745
+ /**
17746
+ * ContentfulActivityCreated format.
17747
+ * @member {string} format
17748
+ * @memberof ContentfulActivityCreated
17749
+ * @instance
17750
+ */
17751
+ ContentfulActivityCreated.prototype.format = "";
17752
+
17753
+ /**
17754
+ * ContentfulActivityCreated enabled.
17755
+ * @member {string} enabled
17756
+ * @memberof ContentfulActivityCreated
17757
+ * @instance
17758
+ */
17759
+ ContentfulActivityCreated.prototype.enabled = "";
17760
+
17761
+ /**
17762
+ * ContentfulActivityCreated variations.
17763
+ * @member {Object.<string,contentful.ISlugReferences>} variations
17764
+ * @memberof ContentfulActivityCreated
17765
+ * @instance
17766
+ */
17767
+ ContentfulActivityCreated.prototype.variations = $util.emptyObject;
17768
+
17769
+ /**
17770
+ * ContentfulActivityCreated accessGroup.
17771
+ * @member {Array.<contentful.ISlugReference>} accessGroup
17772
+ * @memberof ContentfulActivityCreated
17773
+ * @instance
17774
+ */
17775
+ ContentfulActivityCreated.prototype.accessGroup = $util.emptyArray;
17776
+
17777
+ /**
17778
+ * ContentfulActivityCreated createdAt.
17779
+ * @member {number|Long} createdAt
17780
+ * @memberof ContentfulActivityCreated
17781
+ * @instance
17782
+ */
17783
+ ContentfulActivityCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
17784
+
17785
+ /**
17786
+ * Creates a new ContentfulActivityCreated instance using the specified properties.
17787
+ * @function create
17788
+ * @memberof ContentfulActivityCreated
17789
+ * @static
17790
+ * @param {IContentfulActivityCreated=} [properties] Properties to set
17791
+ * @returns {ContentfulActivityCreated} ContentfulActivityCreated instance
17792
+ */
17793
+ ContentfulActivityCreated.create = function create(properties) {
17794
+ return new ContentfulActivityCreated(properties);
17795
+ };
17796
+
17797
+ /**
17798
+ * Encodes the specified ContentfulActivityCreated message. Does not implicitly {@link ContentfulActivityCreated.verify|verify} messages.
17799
+ * @function encode
17800
+ * @memberof ContentfulActivityCreated
17801
+ * @static
17802
+ * @param {IContentfulActivityCreated} message ContentfulActivityCreated message or plain object to encode
17803
+ * @param {$protobuf.Writer} [writer] Writer to encode to
17804
+ * @returns {$protobuf.Writer} Writer
17805
+ */
17806
+ ContentfulActivityCreated.encode = function encode(message, writer) {
17807
+ if (!writer)
17808
+ writer = $Writer.create();
17809
+ if (message.name != null && message.hasOwnProperty("name"))
17810
+ for (var keys = Object.keys(message.name), i = 0; i < keys.length; ++i)
17811
+ writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.name[keys[i]]).ldelim();
17812
+ if (message.slug != null && message.hasOwnProperty("slug"))
17813
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
17814
+ if (message.format != null && message.hasOwnProperty("format"))
17815
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.format);
17816
+ if (message.enabled != null && message.hasOwnProperty("enabled"))
17817
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.enabled);
17818
+ if (message.variations != null && message.hasOwnProperty("variations"))
17819
+ for (var keys = Object.keys(message.variations), i = 0; i < keys.length; ++i) {
17820
+ writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
17821
+ $root.contentful.SlugReferences.encode(message.variations[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
17822
+ }
17823
+ if (message.accessGroup != null && message.accessGroup.length)
17824
+ for (var i = 0; i < message.accessGroup.length; ++i)
17825
+ $root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
17826
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
17827
+ writer.uint32(/* id 7, wireType 0 =*/56).uint64(message.createdAt);
17828
+ return writer;
17829
+ };
17830
+
17831
+ /**
17832
+ * Encodes the specified ContentfulActivityCreated message, length delimited. Does not implicitly {@link ContentfulActivityCreated.verify|verify} messages.
17833
+ * @function encodeDelimited
17834
+ * @memberof ContentfulActivityCreated
17835
+ * @static
17836
+ * @param {IContentfulActivityCreated} message ContentfulActivityCreated message or plain object to encode
17837
+ * @param {$protobuf.Writer} [writer] Writer to encode to
17838
+ * @returns {$protobuf.Writer} Writer
17839
+ */
17840
+ ContentfulActivityCreated.encodeDelimited = function encodeDelimited(message, writer) {
17841
+ return this.encode(message, writer).ldelim();
17842
+ };
17843
+
17844
+ /**
17845
+ * Decodes a ContentfulActivityCreated message from the specified reader or buffer.
17846
+ * @function decode
17847
+ * @memberof ContentfulActivityCreated
17848
+ * @static
17849
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
17850
+ * @param {number} [length] Message length if known beforehand
17851
+ * @returns {ContentfulActivityCreated} ContentfulActivityCreated
17852
+ * @throws {Error} If the payload is not a reader or valid buffer
17853
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17854
+ */
17855
+ ContentfulActivityCreated.decode = function decode(reader, length) {
17856
+ if (!(reader instanceof $Reader))
17857
+ reader = $Reader.create(reader);
17858
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulActivityCreated(), key;
17859
+ while (reader.pos < end) {
17860
+ var tag = reader.uint32();
17861
+ switch (tag >>> 3) {
17862
+ case 1:
17863
+ reader.skip().pos++;
17864
+ if (message.name === $util.emptyObject)
17865
+ message.name = {};
17866
+ key = reader.string();
17867
+ reader.pos++;
17868
+ message.name[key] = reader.string();
17869
+ break;
17870
+ case 2:
17871
+ message.slug = reader.string();
17872
+ break;
17873
+ case 3:
17874
+ message.format = reader.string();
17875
+ break;
17876
+ case 4:
17877
+ message.enabled = reader.string();
17878
+ break;
17879
+ case 5:
17880
+ reader.skip().pos++;
17881
+ if (message.variations === $util.emptyObject)
17882
+ message.variations = {};
17883
+ key = reader.string();
17884
+ reader.pos++;
17885
+ message.variations[key] = $root.contentful.SlugReferences.decode(reader, reader.uint32());
17886
+ break;
17887
+ case 6:
17888
+ if (!(message.accessGroup && message.accessGroup.length))
17889
+ message.accessGroup = [];
17890
+ message.accessGroup.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
17891
+ break;
17892
+ case 7:
17893
+ message.createdAt = reader.uint64();
17894
+ break;
17895
+ default:
17896
+ reader.skipType(tag & 7);
17897
+ break;
17898
+ }
17899
+ }
17900
+ return message;
17901
+ };
17902
+
17903
+ /**
17904
+ * Decodes a ContentfulActivityCreated message from the specified reader or buffer, length delimited.
17905
+ * @function decodeDelimited
17906
+ * @memberof ContentfulActivityCreated
17907
+ * @static
17908
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
17909
+ * @returns {ContentfulActivityCreated} ContentfulActivityCreated
17910
+ * @throws {Error} If the payload is not a reader or valid buffer
17911
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17912
+ */
17913
+ ContentfulActivityCreated.decodeDelimited = function decodeDelimited(reader) {
17914
+ if (!(reader instanceof $Reader))
17915
+ reader = new $Reader(reader);
17916
+ return this.decode(reader, reader.uint32());
17917
+ };
17918
+
17919
+ /**
17920
+ * Verifies a ContentfulActivityCreated message.
17921
+ * @function verify
17922
+ * @memberof ContentfulActivityCreated
17923
+ * @static
17924
+ * @param {Object.<string,*>} message Plain object to verify
17925
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
17926
+ */
17927
+ ContentfulActivityCreated.verify = function verify(message) {
17928
+ if (typeof message !== "object" || message === null)
17929
+ return "object expected";
17930
+ if (message.name != null && message.hasOwnProperty("name")) {
17931
+ if (!$util.isObject(message.name))
17932
+ return "name: object expected";
17933
+ var key = Object.keys(message.name);
17934
+ for (var i = 0; i < key.length; ++i)
17935
+ if (!$util.isString(message.name[key[i]]))
17936
+ return "name: string{k:string} expected";
17937
+ }
17938
+ if (message.slug != null && message.hasOwnProperty("slug"))
17939
+ if (!$util.isString(message.slug))
17940
+ return "slug: string expected";
17941
+ if (message.format != null && message.hasOwnProperty("format"))
17942
+ if (!$util.isString(message.format))
17943
+ return "format: string expected";
17944
+ if (message.enabled != null && message.hasOwnProperty("enabled"))
17945
+ if (!$util.isString(message.enabled))
17946
+ return "enabled: string expected";
17947
+ if (message.variations != null && message.hasOwnProperty("variations")) {
17948
+ if (!$util.isObject(message.variations))
17949
+ return "variations: object expected";
17950
+ var key = Object.keys(message.variations);
17951
+ for (var i = 0; i < key.length; ++i) {
17952
+ var error = $root.contentful.SlugReferences.verify(message.variations[key[i]]);
17953
+ if (error)
17954
+ return "variations." + error;
17955
+ }
17956
+ }
17957
+ if (message.accessGroup != null && message.hasOwnProperty("accessGroup")) {
17958
+ if (!Array.isArray(message.accessGroup))
17959
+ return "accessGroup: array expected";
17960
+ for (var i = 0; i < message.accessGroup.length; ++i) {
17961
+ var error = $root.contentful.SlugReference.verify(message.accessGroup[i]);
17962
+ if (error)
17963
+ return "accessGroup." + error;
17964
+ }
17965
+ }
17966
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
17967
+ if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
17968
+ return "createdAt: integer|Long expected";
17969
+ return null;
17970
+ };
17971
+
17972
+ /**
17973
+ * Creates a ContentfulActivityCreated message from a plain object. Also converts values to their respective internal types.
17974
+ * @function fromObject
17975
+ * @memberof ContentfulActivityCreated
17976
+ * @static
17977
+ * @param {Object.<string,*>} object Plain object
17978
+ * @returns {ContentfulActivityCreated} ContentfulActivityCreated
17979
+ */
17980
+ ContentfulActivityCreated.fromObject = function fromObject(object) {
17981
+ if (object instanceof $root.ContentfulActivityCreated)
17982
+ return object;
17983
+ var message = new $root.ContentfulActivityCreated();
17984
+ if (object.name) {
17985
+ if (typeof object.name !== "object")
17986
+ throw TypeError(".ContentfulActivityCreated.name: object expected");
17987
+ message.name = {};
17988
+ for (var keys = Object.keys(object.name), i = 0; i < keys.length; ++i)
17989
+ message.name[keys[i]] = String(object.name[keys[i]]);
17990
+ }
17991
+ if (object.slug != null)
17992
+ message.slug = String(object.slug);
17993
+ if (object.format != null)
17994
+ message.format = String(object.format);
17995
+ if (object.enabled != null)
17996
+ message.enabled = String(object.enabled);
17997
+ if (object.variations) {
17998
+ if (typeof object.variations !== "object")
17999
+ throw TypeError(".ContentfulActivityCreated.variations: object expected");
18000
+ message.variations = {};
18001
+ for (var keys = Object.keys(object.variations), i = 0; i < keys.length; ++i) {
18002
+ if (typeof object.variations[keys[i]] !== "object")
18003
+ throw TypeError(".ContentfulActivityCreated.variations: object expected");
18004
+ message.variations[keys[i]] = $root.contentful.SlugReferences.fromObject(object.variations[keys[i]]);
18005
+ }
18006
+ }
18007
+ if (object.accessGroup) {
18008
+ if (!Array.isArray(object.accessGroup))
18009
+ throw TypeError(".ContentfulActivityCreated.accessGroup: array expected");
18010
+ message.accessGroup = [];
18011
+ for (var i = 0; i < object.accessGroup.length; ++i) {
18012
+ if (typeof object.accessGroup[i] !== "object")
18013
+ throw TypeError(".ContentfulActivityCreated.accessGroup: object expected");
18014
+ message.accessGroup[i] = $root.contentful.SlugReference.fromObject(object.accessGroup[i]);
18015
+ }
18016
+ }
18017
+ if (object.createdAt != null)
18018
+ if ($util.Long)
18019
+ (message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
18020
+ else if (typeof object.createdAt === "string")
18021
+ message.createdAt = parseInt(object.createdAt, 10);
18022
+ else if (typeof object.createdAt === "number")
18023
+ message.createdAt = object.createdAt;
18024
+ else if (typeof object.createdAt === "object")
18025
+ message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
18026
+ return message;
18027
+ };
18028
+
18029
+ /**
18030
+ * Creates a plain object from a ContentfulActivityCreated message. Also converts values to other types if specified.
18031
+ * @function toObject
18032
+ * @memberof ContentfulActivityCreated
18033
+ * @static
18034
+ * @param {ContentfulActivityCreated} message ContentfulActivityCreated
18035
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
18036
+ * @returns {Object.<string,*>} Plain object
18037
+ */
18038
+ ContentfulActivityCreated.toObject = function toObject(message, options) {
18039
+ if (!options)
18040
+ options = {};
18041
+ var object = {};
18042
+ if (options.arrays || options.defaults)
18043
+ object.accessGroup = [];
18044
+ if (options.objects || options.defaults) {
18045
+ object.name = {};
18046
+ object.variations = {};
18047
+ }
18048
+ if (options.defaults) {
18049
+ object.slug = "";
18050
+ object.format = "";
18051
+ object.enabled = "";
18052
+ if ($util.Long) {
18053
+ var long = new $util.Long(0, 0, true);
18054
+ object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
18055
+ } else
18056
+ object.createdAt = options.longs === String ? "0" : 0;
18057
+ }
18058
+ var keys2;
18059
+ if (message.name && (keys2 = Object.keys(message.name)).length) {
18060
+ object.name = {};
18061
+ for (var j = 0; j < keys2.length; ++j)
18062
+ object.name[keys2[j]] = message.name[keys2[j]];
18063
+ }
18064
+ if (message.slug != null && message.hasOwnProperty("slug"))
18065
+ object.slug = message.slug;
18066
+ if (message.format != null && message.hasOwnProperty("format"))
18067
+ object.format = message.format;
18068
+ if (message.enabled != null && message.hasOwnProperty("enabled"))
18069
+ object.enabled = message.enabled;
18070
+ if (message.variations && (keys2 = Object.keys(message.variations)).length) {
18071
+ object.variations = {};
18072
+ for (var j = 0; j < keys2.length; ++j)
18073
+ object.variations[keys2[j]] = $root.contentful.SlugReferences.toObject(message.variations[keys2[j]], options);
18074
+ }
18075
+ if (message.accessGroup && message.accessGroup.length) {
18076
+ object.accessGroup = [];
18077
+ for (var j = 0; j < message.accessGroup.length; ++j)
18078
+ object.accessGroup[j] = $root.contentful.SlugReference.toObject(message.accessGroup[j], options);
18079
+ }
18080
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
18081
+ if (typeof message.createdAt === "number")
18082
+ object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
18083
+ else
18084
+ 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;
18085
+ return object;
18086
+ };
18087
+
18088
+ /**
18089
+ * Converts this ContentfulActivityCreated to JSON.
18090
+ * @function toJSON
18091
+ * @memberof ContentfulActivityCreated
18092
+ * @instance
18093
+ * @returns {Object.<string,*>} JSON object
18094
+ */
18095
+ ContentfulActivityCreated.prototype.toJSON = function toJSON() {
18096
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
18097
+ };
18098
+
18099
+ return ContentfulActivityCreated;
18100
+ })();
18101
+
18102
+ $root.ContentfulActivityUpdated = (function() {
18103
+
18104
+ /**
18105
+ * Properties of a ContentfulActivityUpdated.
18106
+ * @exports IContentfulActivityUpdated
18107
+ * @interface IContentfulActivityUpdated
18108
+ * @property {Object.<string,string>|null} [name] ContentfulActivityUpdated name
18109
+ * @property {string|null} [slug] ContentfulActivityUpdated slug
18110
+ * @property {string|null} [format] ContentfulActivityUpdated format
18111
+ * @property {string|null} [enabled] ContentfulActivityUpdated enabled
18112
+ * @property {Object.<string,contentful.ISlugReferences>|null} [variations] ContentfulActivityUpdated variations
18113
+ * @property {Array.<contentful.ISlugReference>|null} [accessGroup] ContentfulActivityUpdated accessGroup
18114
+ * @property {number|Long|null} [updatedAt] ContentfulActivityUpdated updatedAt
18115
+ */
18116
+
18117
+ /**
18118
+ * Constructs a new ContentfulActivityUpdated.
18119
+ * @exports ContentfulActivityUpdated
18120
+ * @classdesc Represents a ContentfulActivityUpdated.
18121
+ * @implements IContentfulActivityUpdated
18122
+ * @constructor
18123
+ * @param {IContentfulActivityUpdated=} [properties] Properties to set
18124
+ */
18125
+ function ContentfulActivityUpdated(properties) {
18126
+ this.name = {};
18127
+ this.variations = {};
18128
+ this.accessGroup = [];
18129
+ if (properties)
18130
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
18131
+ if (properties[keys[i]] != null)
18132
+ this[keys[i]] = properties[keys[i]];
18133
+ }
18134
+
18135
+ /**
18136
+ * ContentfulActivityUpdated name.
18137
+ * @member {Object.<string,string>} name
18138
+ * @memberof ContentfulActivityUpdated
18139
+ * @instance
18140
+ */
18141
+ ContentfulActivityUpdated.prototype.name = $util.emptyObject;
18142
+
18143
+ /**
18144
+ * ContentfulActivityUpdated slug.
18145
+ * @member {string} slug
18146
+ * @memberof ContentfulActivityUpdated
18147
+ * @instance
18148
+ */
18149
+ ContentfulActivityUpdated.prototype.slug = "";
18150
+
18151
+ /**
18152
+ * ContentfulActivityUpdated format.
18153
+ * @member {string} format
18154
+ * @memberof ContentfulActivityUpdated
18155
+ * @instance
18156
+ */
18157
+ ContentfulActivityUpdated.prototype.format = "";
18158
+
18159
+ /**
18160
+ * ContentfulActivityUpdated enabled.
18161
+ * @member {string} enabled
18162
+ * @memberof ContentfulActivityUpdated
18163
+ * @instance
18164
+ */
18165
+ ContentfulActivityUpdated.prototype.enabled = "";
18166
+
18167
+ /**
18168
+ * ContentfulActivityUpdated variations.
18169
+ * @member {Object.<string,contentful.ISlugReferences>} variations
18170
+ * @memberof ContentfulActivityUpdated
18171
+ * @instance
18172
+ */
18173
+ ContentfulActivityUpdated.prototype.variations = $util.emptyObject;
18174
+
18175
+ /**
18176
+ * ContentfulActivityUpdated accessGroup.
18177
+ * @member {Array.<contentful.ISlugReference>} accessGroup
18178
+ * @memberof ContentfulActivityUpdated
18179
+ * @instance
18180
+ */
18181
+ ContentfulActivityUpdated.prototype.accessGroup = $util.emptyArray;
18182
+
18183
+ /**
18184
+ * ContentfulActivityUpdated updatedAt.
18185
+ * @member {number|Long} updatedAt
18186
+ * @memberof ContentfulActivityUpdated
18187
+ * @instance
18188
+ */
18189
+ ContentfulActivityUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
18190
+
18191
+ /**
18192
+ * Creates a new ContentfulActivityUpdated instance using the specified properties.
18193
+ * @function create
18194
+ * @memberof ContentfulActivityUpdated
18195
+ * @static
18196
+ * @param {IContentfulActivityUpdated=} [properties] Properties to set
18197
+ * @returns {ContentfulActivityUpdated} ContentfulActivityUpdated instance
18198
+ */
18199
+ ContentfulActivityUpdated.create = function create(properties) {
18200
+ return new ContentfulActivityUpdated(properties);
18201
+ };
18202
+
18203
+ /**
18204
+ * Encodes the specified ContentfulActivityUpdated message. Does not implicitly {@link ContentfulActivityUpdated.verify|verify} messages.
18205
+ * @function encode
18206
+ * @memberof ContentfulActivityUpdated
18207
+ * @static
18208
+ * @param {IContentfulActivityUpdated} message ContentfulActivityUpdated message or plain object to encode
18209
+ * @param {$protobuf.Writer} [writer] Writer to encode to
18210
+ * @returns {$protobuf.Writer} Writer
18211
+ */
18212
+ ContentfulActivityUpdated.encode = function encode(message, writer) {
18213
+ if (!writer)
18214
+ writer = $Writer.create();
18215
+ if (message.name != null && message.hasOwnProperty("name"))
18216
+ for (var keys = Object.keys(message.name), i = 0; i < keys.length; ++i)
18217
+ writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.name[keys[i]]).ldelim();
18218
+ if (message.slug != null && message.hasOwnProperty("slug"))
18219
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
18220
+ if (message.format != null && message.hasOwnProperty("format"))
18221
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.format);
18222
+ if (message.enabled != null && message.hasOwnProperty("enabled"))
18223
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.enabled);
18224
+ if (message.variations != null && message.hasOwnProperty("variations"))
18225
+ for (var keys = Object.keys(message.variations), i = 0; i < keys.length; ++i) {
18226
+ writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
18227
+ $root.contentful.SlugReferences.encode(message.variations[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
18228
+ }
18229
+ if (message.accessGroup != null && message.accessGroup.length)
18230
+ for (var i = 0; i < message.accessGroup.length; ++i)
18231
+ $root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
18232
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
18233
+ writer.uint32(/* id 7, wireType 0 =*/56).uint64(message.updatedAt);
18234
+ return writer;
18235
+ };
18236
+
18237
+ /**
18238
+ * Encodes the specified ContentfulActivityUpdated message, length delimited. Does not implicitly {@link ContentfulActivityUpdated.verify|verify} messages.
18239
+ * @function encodeDelimited
18240
+ * @memberof ContentfulActivityUpdated
18241
+ * @static
18242
+ * @param {IContentfulActivityUpdated} message ContentfulActivityUpdated message or plain object to encode
18243
+ * @param {$protobuf.Writer} [writer] Writer to encode to
18244
+ * @returns {$protobuf.Writer} Writer
18245
+ */
18246
+ ContentfulActivityUpdated.encodeDelimited = function encodeDelimited(message, writer) {
18247
+ return this.encode(message, writer).ldelim();
18248
+ };
18249
+
18250
+ /**
18251
+ * Decodes a ContentfulActivityUpdated message from the specified reader or buffer.
18252
+ * @function decode
18253
+ * @memberof ContentfulActivityUpdated
18254
+ * @static
18255
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
18256
+ * @param {number} [length] Message length if known beforehand
18257
+ * @returns {ContentfulActivityUpdated} ContentfulActivityUpdated
18258
+ * @throws {Error} If the payload is not a reader or valid buffer
18259
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
18260
+ */
18261
+ ContentfulActivityUpdated.decode = function decode(reader, length) {
18262
+ if (!(reader instanceof $Reader))
18263
+ reader = $Reader.create(reader);
18264
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulActivityUpdated(), key;
18265
+ while (reader.pos < end) {
18266
+ var tag = reader.uint32();
18267
+ switch (tag >>> 3) {
18268
+ case 1:
18269
+ reader.skip().pos++;
18270
+ if (message.name === $util.emptyObject)
18271
+ message.name = {};
18272
+ key = reader.string();
18273
+ reader.pos++;
18274
+ message.name[key] = reader.string();
18275
+ break;
18276
+ case 2:
18277
+ message.slug = reader.string();
18278
+ break;
18279
+ case 3:
18280
+ message.format = reader.string();
18281
+ break;
18282
+ case 4:
18283
+ message.enabled = reader.string();
18284
+ break;
18285
+ case 5:
18286
+ reader.skip().pos++;
18287
+ if (message.variations === $util.emptyObject)
18288
+ message.variations = {};
18289
+ key = reader.string();
18290
+ reader.pos++;
18291
+ message.variations[key] = $root.contentful.SlugReferences.decode(reader, reader.uint32());
18292
+ break;
18293
+ case 6:
18294
+ if (!(message.accessGroup && message.accessGroup.length))
18295
+ message.accessGroup = [];
18296
+ message.accessGroup.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
18297
+ break;
18298
+ case 7:
18299
+ message.updatedAt = reader.uint64();
18300
+ break;
18301
+ default:
18302
+ reader.skipType(tag & 7);
18303
+ break;
18304
+ }
18305
+ }
18306
+ return message;
18307
+ };
18308
+
18309
+ /**
18310
+ * Decodes a ContentfulActivityUpdated message from the specified reader or buffer, length delimited.
18311
+ * @function decodeDelimited
18312
+ * @memberof ContentfulActivityUpdated
18313
+ * @static
18314
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
18315
+ * @returns {ContentfulActivityUpdated} ContentfulActivityUpdated
18316
+ * @throws {Error} If the payload is not a reader or valid buffer
18317
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
18318
+ */
18319
+ ContentfulActivityUpdated.decodeDelimited = function decodeDelimited(reader) {
18320
+ if (!(reader instanceof $Reader))
18321
+ reader = new $Reader(reader);
18322
+ return this.decode(reader, reader.uint32());
18323
+ };
18324
+
18325
+ /**
18326
+ * Verifies a ContentfulActivityUpdated message.
18327
+ * @function verify
18328
+ * @memberof ContentfulActivityUpdated
18329
+ * @static
18330
+ * @param {Object.<string,*>} message Plain object to verify
18331
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
18332
+ */
18333
+ ContentfulActivityUpdated.verify = function verify(message) {
18334
+ if (typeof message !== "object" || message === null)
18335
+ return "object expected";
18336
+ if (message.name != null && message.hasOwnProperty("name")) {
18337
+ if (!$util.isObject(message.name))
18338
+ return "name: object expected";
18339
+ var key = Object.keys(message.name);
18340
+ for (var i = 0; i < key.length; ++i)
18341
+ if (!$util.isString(message.name[key[i]]))
18342
+ return "name: string{k:string} expected";
18343
+ }
18344
+ if (message.slug != null && message.hasOwnProperty("slug"))
18345
+ if (!$util.isString(message.slug))
18346
+ return "slug: string expected";
18347
+ if (message.format != null && message.hasOwnProperty("format"))
18348
+ if (!$util.isString(message.format))
18349
+ return "format: string expected";
18350
+ if (message.enabled != null && message.hasOwnProperty("enabled"))
18351
+ if (!$util.isString(message.enabled))
18352
+ return "enabled: string expected";
18353
+ if (message.variations != null && message.hasOwnProperty("variations")) {
18354
+ if (!$util.isObject(message.variations))
18355
+ return "variations: object expected";
18356
+ var key = Object.keys(message.variations);
18357
+ for (var i = 0; i < key.length; ++i) {
18358
+ var error = $root.contentful.SlugReferences.verify(message.variations[key[i]]);
18359
+ if (error)
18360
+ return "variations." + error;
18361
+ }
18362
+ }
18363
+ if (message.accessGroup != null && message.hasOwnProperty("accessGroup")) {
18364
+ if (!Array.isArray(message.accessGroup))
18365
+ return "accessGroup: array expected";
18366
+ for (var i = 0; i < message.accessGroup.length; ++i) {
18367
+ var error = $root.contentful.SlugReference.verify(message.accessGroup[i]);
18368
+ if (error)
18369
+ return "accessGroup." + error;
18370
+ }
18371
+ }
18372
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
18373
+ if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
18374
+ return "updatedAt: integer|Long expected";
18375
+ return null;
18376
+ };
18377
+
18378
+ /**
18379
+ * Creates a ContentfulActivityUpdated message from a plain object. Also converts values to their respective internal types.
18380
+ * @function fromObject
18381
+ * @memberof ContentfulActivityUpdated
18382
+ * @static
18383
+ * @param {Object.<string,*>} object Plain object
18384
+ * @returns {ContentfulActivityUpdated} ContentfulActivityUpdated
18385
+ */
18386
+ ContentfulActivityUpdated.fromObject = function fromObject(object) {
18387
+ if (object instanceof $root.ContentfulActivityUpdated)
18388
+ return object;
18389
+ var message = new $root.ContentfulActivityUpdated();
18390
+ if (object.name) {
18391
+ if (typeof object.name !== "object")
18392
+ throw TypeError(".ContentfulActivityUpdated.name: object expected");
18393
+ message.name = {};
18394
+ for (var keys = Object.keys(object.name), i = 0; i < keys.length; ++i)
18395
+ message.name[keys[i]] = String(object.name[keys[i]]);
18396
+ }
18397
+ if (object.slug != null)
18398
+ message.slug = String(object.slug);
18399
+ if (object.format != null)
18400
+ message.format = String(object.format);
18401
+ if (object.enabled != null)
18402
+ message.enabled = String(object.enabled);
18403
+ if (object.variations) {
18404
+ if (typeof object.variations !== "object")
18405
+ throw TypeError(".ContentfulActivityUpdated.variations: object expected");
18406
+ message.variations = {};
18407
+ for (var keys = Object.keys(object.variations), i = 0; i < keys.length; ++i) {
18408
+ if (typeof object.variations[keys[i]] !== "object")
18409
+ throw TypeError(".ContentfulActivityUpdated.variations: object expected");
18410
+ message.variations[keys[i]] = $root.contentful.SlugReferences.fromObject(object.variations[keys[i]]);
18411
+ }
18412
+ }
18413
+ if (object.accessGroup) {
18414
+ if (!Array.isArray(object.accessGroup))
18415
+ throw TypeError(".ContentfulActivityUpdated.accessGroup: array expected");
18416
+ message.accessGroup = [];
18417
+ for (var i = 0; i < object.accessGroup.length; ++i) {
18418
+ if (typeof object.accessGroup[i] !== "object")
18419
+ throw TypeError(".ContentfulActivityUpdated.accessGroup: object expected");
18420
+ message.accessGroup[i] = $root.contentful.SlugReference.fromObject(object.accessGroup[i]);
18421
+ }
18422
+ }
18423
+ if (object.updatedAt != null)
18424
+ if ($util.Long)
18425
+ (message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
18426
+ else if (typeof object.updatedAt === "string")
18427
+ message.updatedAt = parseInt(object.updatedAt, 10);
18428
+ else if (typeof object.updatedAt === "number")
18429
+ message.updatedAt = object.updatedAt;
18430
+ else if (typeof object.updatedAt === "object")
18431
+ message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
18432
+ return message;
18433
+ };
18434
+
18435
+ /**
18436
+ * Creates a plain object from a ContentfulActivityUpdated message. Also converts values to other types if specified.
18437
+ * @function toObject
18438
+ * @memberof ContentfulActivityUpdated
18439
+ * @static
18440
+ * @param {ContentfulActivityUpdated} message ContentfulActivityUpdated
18441
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
18442
+ * @returns {Object.<string,*>} Plain object
18443
+ */
18444
+ ContentfulActivityUpdated.toObject = function toObject(message, options) {
18445
+ if (!options)
18446
+ options = {};
18447
+ var object = {};
18448
+ if (options.arrays || options.defaults)
18449
+ object.accessGroup = [];
18450
+ if (options.objects || options.defaults) {
18451
+ object.name = {};
18452
+ object.variations = {};
18453
+ }
18454
+ if (options.defaults) {
18455
+ object.slug = "";
18456
+ object.format = "";
18457
+ object.enabled = "";
18458
+ if ($util.Long) {
18459
+ var long = new $util.Long(0, 0, true);
18460
+ object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
18461
+ } else
18462
+ object.updatedAt = options.longs === String ? "0" : 0;
18463
+ }
18464
+ var keys2;
18465
+ if (message.name && (keys2 = Object.keys(message.name)).length) {
18466
+ object.name = {};
18467
+ for (var j = 0; j < keys2.length; ++j)
18468
+ object.name[keys2[j]] = message.name[keys2[j]];
18469
+ }
18470
+ if (message.slug != null && message.hasOwnProperty("slug"))
18471
+ object.slug = message.slug;
18472
+ if (message.format != null && message.hasOwnProperty("format"))
18473
+ object.format = message.format;
18474
+ if (message.enabled != null && message.hasOwnProperty("enabled"))
18475
+ object.enabled = message.enabled;
18476
+ if (message.variations && (keys2 = Object.keys(message.variations)).length) {
18477
+ object.variations = {};
18478
+ for (var j = 0; j < keys2.length; ++j)
18479
+ object.variations[keys2[j]] = $root.contentful.SlugReferences.toObject(message.variations[keys2[j]], options);
18480
+ }
18481
+ if (message.accessGroup && message.accessGroup.length) {
18482
+ object.accessGroup = [];
18483
+ for (var j = 0; j < message.accessGroup.length; ++j)
18484
+ object.accessGroup[j] = $root.contentful.SlugReference.toObject(message.accessGroup[j], options);
18485
+ }
18486
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
18487
+ if (typeof message.updatedAt === "number")
18488
+ object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
18489
+ else
18490
+ 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;
18491
+ return object;
18492
+ };
18493
+
18494
+ /**
18495
+ * Converts this ContentfulActivityUpdated to JSON.
18496
+ * @function toJSON
18497
+ * @memberof ContentfulActivityUpdated
18498
+ * @instance
18499
+ * @returns {Object.<string,*>} JSON object
18500
+ */
18501
+ ContentfulActivityUpdated.prototype.toJSON = function toJSON() {
18502
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
18503
+ };
18504
+
18505
+ return ContentfulActivityUpdated;
18506
+ })();
18507
+
18508
+ $root.ContentfulActivityDeleted = (function() {
18509
+
18510
+ /**
18511
+ * Properties of a ContentfulActivityDeleted.
18512
+ * @exports IContentfulActivityDeleted
18513
+ * @interface IContentfulActivityDeleted
18514
+ * @property {string|null} [slug] ContentfulActivityDeleted slug
18515
+ * @property {number|Long|null} [deletedAt] ContentfulActivityDeleted deletedAt
18516
+ */
18517
+
18518
+ /**
18519
+ * Constructs a new ContentfulActivityDeleted.
18520
+ * @exports ContentfulActivityDeleted
18521
+ * @classdesc Represents a ContentfulActivityDeleted.
18522
+ * @implements IContentfulActivityDeleted
18523
+ * @constructor
18524
+ * @param {IContentfulActivityDeleted=} [properties] Properties to set
18525
+ */
18526
+ function ContentfulActivityDeleted(properties) {
18527
+ if (properties)
18528
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
18529
+ if (properties[keys[i]] != null)
18530
+ this[keys[i]] = properties[keys[i]];
18531
+ }
18532
+
18533
+ /**
18534
+ * ContentfulActivityDeleted slug.
18535
+ * @member {string} slug
18536
+ * @memberof ContentfulActivityDeleted
18537
+ * @instance
18538
+ */
18539
+ ContentfulActivityDeleted.prototype.slug = "";
18540
+
18541
+ /**
18542
+ * ContentfulActivityDeleted deletedAt.
18543
+ * @member {number|Long} deletedAt
18544
+ * @memberof ContentfulActivityDeleted
18545
+ * @instance
18546
+ */
18547
+ ContentfulActivityDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
18548
+
18549
+ /**
18550
+ * Creates a new ContentfulActivityDeleted instance using the specified properties.
18551
+ * @function create
18552
+ * @memberof ContentfulActivityDeleted
18553
+ * @static
18554
+ * @param {IContentfulActivityDeleted=} [properties] Properties to set
18555
+ * @returns {ContentfulActivityDeleted} ContentfulActivityDeleted instance
18556
+ */
18557
+ ContentfulActivityDeleted.create = function create(properties) {
18558
+ return new ContentfulActivityDeleted(properties);
18559
+ };
18560
+
18561
+ /**
18562
+ * Encodes the specified ContentfulActivityDeleted message. Does not implicitly {@link ContentfulActivityDeleted.verify|verify} messages.
18563
+ * @function encode
18564
+ * @memberof ContentfulActivityDeleted
18565
+ * @static
18566
+ * @param {IContentfulActivityDeleted} message ContentfulActivityDeleted message or plain object to encode
18567
+ * @param {$protobuf.Writer} [writer] Writer to encode to
18568
+ * @returns {$protobuf.Writer} Writer
18569
+ */
18570
+ ContentfulActivityDeleted.encode = function encode(message, writer) {
18571
+ if (!writer)
18572
+ writer = $Writer.create();
18573
+ if (message.slug != null && message.hasOwnProperty("slug"))
18574
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
18575
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
18576
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.deletedAt);
18577
+ return writer;
18578
+ };
18579
+
18580
+ /**
18581
+ * Encodes the specified ContentfulActivityDeleted message, length delimited. Does not implicitly {@link ContentfulActivityDeleted.verify|verify} messages.
18582
+ * @function encodeDelimited
18583
+ * @memberof ContentfulActivityDeleted
18584
+ * @static
18585
+ * @param {IContentfulActivityDeleted} message ContentfulActivityDeleted message or plain object to encode
18586
+ * @param {$protobuf.Writer} [writer] Writer to encode to
18587
+ * @returns {$protobuf.Writer} Writer
18588
+ */
18589
+ ContentfulActivityDeleted.encodeDelimited = function encodeDelimited(message, writer) {
18590
+ return this.encode(message, writer).ldelim();
18591
+ };
18592
+
18593
+ /**
18594
+ * Decodes a ContentfulActivityDeleted message from the specified reader or buffer.
18595
+ * @function decode
18596
+ * @memberof ContentfulActivityDeleted
18597
+ * @static
18598
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
18599
+ * @param {number} [length] Message length if known beforehand
18600
+ * @returns {ContentfulActivityDeleted} ContentfulActivityDeleted
18601
+ * @throws {Error} If the payload is not a reader or valid buffer
18602
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
18603
+ */
18604
+ ContentfulActivityDeleted.decode = function decode(reader, length) {
18605
+ if (!(reader instanceof $Reader))
18606
+ reader = $Reader.create(reader);
18607
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulActivityDeleted();
18608
+ while (reader.pos < end) {
18609
+ var tag = reader.uint32();
18610
+ switch (tag >>> 3) {
18611
+ case 1:
18612
+ message.slug = reader.string();
18613
+ break;
18614
+ case 2:
18615
+ message.deletedAt = reader.uint64();
18616
+ break;
18617
+ default:
18618
+ reader.skipType(tag & 7);
18619
+ break;
18620
+ }
18621
+ }
18622
+ return message;
18623
+ };
18624
+
18625
+ /**
18626
+ * Decodes a ContentfulActivityDeleted message from the specified reader or buffer, length delimited.
18627
+ * @function decodeDelimited
18628
+ * @memberof ContentfulActivityDeleted
18629
+ * @static
18630
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
18631
+ * @returns {ContentfulActivityDeleted} ContentfulActivityDeleted
18632
+ * @throws {Error} If the payload is not a reader or valid buffer
18633
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
18634
+ */
18635
+ ContentfulActivityDeleted.decodeDelimited = function decodeDelimited(reader) {
18636
+ if (!(reader instanceof $Reader))
18637
+ reader = new $Reader(reader);
18638
+ return this.decode(reader, reader.uint32());
18639
+ };
18640
+
18641
+ /**
18642
+ * Verifies a ContentfulActivityDeleted message.
18643
+ * @function verify
18644
+ * @memberof ContentfulActivityDeleted
18645
+ * @static
18646
+ * @param {Object.<string,*>} message Plain object to verify
18647
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
18648
+ */
18649
+ ContentfulActivityDeleted.verify = function verify(message) {
18650
+ if (typeof message !== "object" || message === null)
18651
+ return "object expected";
18652
+ if (message.slug != null && message.hasOwnProperty("slug"))
18653
+ if (!$util.isString(message.slug))
18654
+ return "slug: string expected";
18655
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
18656
+ if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
18657
+ return "deletedAt: integer|Long expected";
18658
+ return null;
18659
+ };
18660
+
18661
+ /**
18662
+ * Creates a ContentfulActivityDeleted message from a plain object. Also converts values to their respective internal types.
18663
+ * @function fromObject
18664
+ * @memberof ContentfulActivityDeleted
18665
+ * @static
18666
+ * @param {Object.<string,*>} object Plain object
18667
+ * @returns {ContentfulActivityDeleted} ContentfulActivityDeleted
18668
+ */
18669
+ ContentfulActivityDeleted.fromObject = function fromObject(object) {
18670
+ if (object instanceof $root.ContentfulActivityDeleted)
18671
+ return object;
18672
+ var message = new $root.ContentfulActivityDeleted();
18673
+ if (object.slug != null)
18674
+ message.slug = String(object.slug);
18675
+ if (object.deletedAt != null)
18676
+ if ($util.Long)
18677
+ (message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
18678
+ else if (typeof object.deletedAt === "string")
18679
+ message.deletedAt = parseInt(object.deletedAt, 10);
18680
+ else if (typeof object.deletedAt === "number")
18681
+ message.deletedAt = object.deletedAt;
18682
+ else if (typeof object.deletedAt === "object")
18683
+ message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
18684
+ return message;
18685
+ };
18686
+
18687
+ /**
18688
+ * Creates a plain object from a ContentfulActivityDeleted message. Also converts values to other types if specified.
18689
+ * @function toObject
18690
+ * @memberof ContentfulActivityDeleted
18691
+ * @static
18692
+ * @param {ContentfulActivityDeleted} message ContentfulActivityDeleted
18693
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
18694
+ * @returns {Object.<string,*>} Plain object
18695
+ */
18696
+ ContentfulActivityDeleted.toObject = function toObject(message, options) {
18697
+ if (!options)
18698
+ options = {};
18699
+ var object = {};
18700
+ if (options.defaults) {
18701
+ object.slug = "";
18702
+ if ($util.Long) {
18703
+ var long = new $util.Long(0, 0, true);
18704
+ object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
18705
+ } else
18706
+ object.deletedAt = options.longs === String ? "0" : 0;
18707
+ }
18708
+ if (message.slug != null && message.hasOwnProperty("slug"))
18709
+ object.slug = message.slug;
18710
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
18711
+ if (typeof message.deletedAt === "number")
18712
+ object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
18713
+ else
18714
+ 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;
18715
+ return object;
18716
+ };
18717
+
18718
+ /**
18719
+ * Converts this ContentfulActivityDeleted to JSON.
18720
+ * @function toJSON
18721
+ * @memberof ContentfulActivityDeleted
18722
+ * @instance
18723
+ * @returns {Object.<string,*>} JSON object
18724
+ */
18725
+ ContentfulActivityDeleted.prototype.toJSON = function toJSON() {
18726
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
18727
+ };
18728
+
18729
+ return ContentfulActivityDeleted;
18730
+ })();
18731
+
17488
18732
  $root.ContentfulContentModelCreated = (function() {
17489
18733
 
17490
18734
  /**