@headspace/protos-events 1.136.0 → 1.138.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 +450 -0
  2. package/lib/index.js +1328 -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,1126 @@ $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 {Object.<string,string>|null} [statCardText] ContentfulActivityCreated statCardText
17708
+ * @property {Array.<contentful.ISlugReference>|null} [accessGroup] ContentfulActivityCreated accessGroup
17709
+ * @property {number|Long|null} [createdAt] ContentfulActivityCreated createdAt
17710
+ */
17711
+
17712
+ /**
17713
+ * Constructs a new ContentfulActivityCreated.
17714
+ * @exports ContentfulActivityCreated
17715
+ * @classdesc Represents a ContentfulActivityCreated.
17716
+ * @implements IContentfulActivityCreated
17717
+ * @constructor
17718
+ * @param {IContentfulActivityCreated=} [properties] Properties to set
17719
+ */
17720
+ function ContentfulActivityCreated(properties) {
17721
+ this.name = {};
17722
+ this.variations = {};
17723
+ this.statCardText = {};
17724
+ this.accessGroup = [];
17725
+ if (properties)
17726
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
17727
+ if (properties[keys[i]] != null)
17728
+ this[keys[i]] = properties[keys[i]];
17729
+ }
17730
+
17731
+ /**
17732
+ * ContentfulActivityCreated name.
17733
+ * @member {Object.<string,string>} name
17734
+ * @memberof ContentfulActivityCreated
17735
+ * @instance
17736
+ */
17737
+ ContentfulActivityCreated.prototype.name = $util.emptyObject;
17738
+
17739
+ /**
17740
+ * ContentfulActivityCreated slug.
17741
+ * @member {string} slug
17742
+ * @memberof ContentfulActivityCreated
17743
+ * @instance
17744
+ */
17745
+ ContentfulActivityCreated.prototype.slug = "";
17746
+
17747
+ /**
17748
+ * ContentfulActivityCreated format.
17749
+ * @member {string} format
17750
+ * @memberof ContentfulActivityCreated
17751
+ * @instance
17752
+ */
17753
+ ContentfulActivityCreated.prototype.format = "";
17754
+
17755
+ /**
17756
+ * ContentfulActivityCreated enabled.
17757
+ * @member {string} enabled
17758
+ * @memberof ContentfulActivityCreated
17759
+ * @instance
17760
+ */
17761
+ ContentfulActivityCreated.prototype.enabled = "";
17762
+
17763
+ /**
17764
+ * ContentfulActivityCreated variations.
17765
+ * @member {Object.<string,contentful.ISlugReferences>} variations
17766
+ * @memberof ContentfulActivityCreated
17767
+ * @instance
17768
+ */
17769
+ ContentfulActivityCreated.prototype.variations = $util.emptyObject;
17770
+
17771
+ /**
17772
+ * ContentfulActivityCreated statCardText.
17773
+ * @member {Object.<string,string>} statCardText
17774
+ * @memberof ContentfulActivityCreated
17775
+ * @instance
17776
+ */
17777
+ ContentfulActivityCreated.prototype.statCardText = $util.emptyObject;
17778
+
17779
+ /**
17780
+ * ContentfulActivityCreated accessGroup.
17781
+ * @member {Array.<contentful.ISlugReference>} accessGroup
17782
+ * @memberof ContentfulActivityCreated
17783
+ * @instance
17784
+ */
17785
+ ContentfulActivityCreated.prototype.accessGroup = $util.emptyArray;
17786
+
17787
+ /**
17788
+ * ContentfulActivityCreated createdAt.
17789
+ * @member {number|Long} createdAt
17790
+ * @memberof ContentfulActivityCreated
17791
+ * @instance
17792
+ */
17793
+ ContentfulActivityCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
17794
+
17795
+ /**
17796
+ * Creates a new ContentfulActivityCreated instance using the specified properties.
17797
+ * @function create
17798
+ * @memberof ContentfulActivityCreated
17799
+ * @static
17800
+ * @param {IContentfulActivityCreated=} [properties] Properties to set
17801
+ * @returns {ContentfulActivityCreated} ContentfulActivityCreated instance
17802
+ */
17803
+ ContentfulActivityCreated.create = function create(properties) {
17804
+ return new ContentfulActivityCreated(properties);
17805
+ };
17806
+
17807
+ /**
17808
+ * Encodes the specified ContentfulActivityCreated message. Does not implicitly {@link ContentfulActivityCreated.verify|verify} messages.
17809
+ * @function encode
17810
+ * @memberof ContentfulActivityCreated
17811
+ * @static
17812
+ * @param {IContentfulActivityCreated} message ContentfulActivityCreated message or plain object to encode
17813
+ * @param {$protobuf.Writer} [writer] Writer to encode to
17814
+ * @returns {$protobuf.Writer} Writer
17815
+ */
17816
+ ContentfulActivityCreated.encode = function encode(message, writer) {
17817
+ if (!writer)
17818
+ writer = $Writer.create();
17819
+ if (message.name != null && message.hasOwnProperty("name"))
17820
+ for (var keys = Object.keys(message.name), i = 0; i < keys.length; ++i)
17821
+ 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();
17822
+ if (message.slug != null && message.hasOwnProperty("slug"))
17823
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
17824
+ if (message.format != null && message.hasOwnProperty("format"))
17825
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.format);
17826
+ if (message.enabled != null && message.hasOwnProperty("enabled"))
17827
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.enabled);
17828
+ if (message.variations != null && message.hasOwnProperty("variations"))
17829
+ for (var keys = Object.keys(message.variations), i = 0; i < keys.length; ++i) {
17830
+ writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
17831
+ $root.contentful.SlugReferences.encode(message.variations[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
17832
+ }
17833
+ if (message.statCardText != null && message.hasOwnProperty("statCardText"))
17834
+ for (var keys = Object.keys(message.statCardText), i = 0; i < keys.length; ++i)
17835
+ writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.statCardText[keys[i]]).ldelim();
17836
+ if (message.accessGroup != null && message.accessGroup.length)
17837
+ for (var i = 0; i < message.accessGroup.length; ++i)
17838
+ $root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
17839
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
17840
+ writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.createdAt);
17841
+ return writer;
17842
+ };
17843
+
17844
+ /**
17845
+ * Encodes the specified ContentfulActivityCreated message, length delimited. Does not implicitly {@link ContentfulActivityCreated.verify|verify} messages.
17846
+ * @function encodeDelimited
17847
+ * @memberof ContentfulActivityCreated
17848
+ * @static
17849
+ * @param {IContentfulActivityCreated} message ContentfulActivityCreated message or plain object to encode
17850
+ * @param {$protobuf.Writer} [writer] Writer to encode to
17851
+ * @returns {$protobuf.Writer} Writer
17852
+ */
17853
+ ContentfulActivityCreated.encodeDelimited = function encodeDelimited(message, writer) {
17854
+ return this.encode(message, writer).ldelim();
17855
+ };
17856
+
17857
+ /**
17858
+ * Decodes a ContentfulActivityCreated message from the specified reader or buffer.
17859
+ * @function decode
17860
+ * @memberof ContentfulActivityCreated
17861
+ * @static
17862
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
17863
+ * @param {number} [length] Message length if known beforehand
17864
+ * @returns {ContentfulActivityCreated} ContentfulActivityCreated
17865
+ * @throws {Error} If the payload is not a reader or valid buffer
17866
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17867
+ */
17868
+ ContentfulActivityCreated.decode = function decode(reader, length) {
17869
+ if (!(reader instanceof $Reader))
17870
+ reader = $Reader.create(reader);
17871
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulActivityCreated(), key;
17872
+ while (reader.pos < end) {
17873
+ var tag = reader.uint32();
17874
+ switch (tag >>> 3) {
17875
+ case 1:
17876
+ reader.skip().pos++;
17877
+ if (message.name === $util.emptyObject)
17878
+ message.name = {};
17879
+ key = reader.string();
17880
+ reader.pos++;
17881
+ message.name[key] = reader.string();
17882
+ break;
17883
+ case 2:
17884
+ message.slug = reader.string();
17885
+ break;
17886
+ case 3:
17887
+ message.format = reader.string();
17888
+ break;
17889
+ case 4:
17890
+ message.enabled = reader.string();
17891
+ break;
17892
+ case 5:
17893
+ reader.skip().pos++;
17894
+ if (message.variations === $util.emptyObject)
17895
+ message.variations = {};
17896
+ key = reader.string();
17897
+ reader.pos++;
17898
+ message.variations[key] = $root.contentful.SlugReferences.decode(reader, reader.uint32());
17899
+ break;
17900
+ case 6:
17901
+ reader.skip().pos++;
17902
+ if (message.statCardText === $util.emptyObject)
17903
+ message.statCardText = {};
17904
+ key = reader.string();
17905
+ reader.pos++;
17906
+ message.statCardText[key] = reader.string();
17907
+ break;
17908
+ case 7:
17909
+ if (!(message.accessGroup && message.accessGroup.length))
17910
+ message.accessGroup = [];
17911
+ message.accessGroup.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
17912
+ break;
17913
+ case 8:
17914
+ message.createdAt = reader.uint64();
17915
+ break;
17916
+ default:
17917
+ reader.skipType(tag & 7);
17918
+ break;
17919
+ }
17920
+ }
17921
+ return message;
17922
+ };
17923
+
17924
+ /**
17925
+ * Decodes a ContentfulActivityCreated message from the specified reader or buffer, length delimited.
17926
+ * @function decodeDelimited
17927
+ * @memberof ContentfulActivityCreated
17928
+ * @static
17929
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
17930
+ * @returns {ContentfulActivityCreated} ContentfulActivityCreated
17931
+ * @throws {Error} If the payload is not a reader or valid buffer
17932
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17933
+ */
17934
+ ContentfulActivityCreated.decodeDelimited = function decodeDelimited(reader) {
17935
+ if (!(reader instanceof $Reader))
17936
+ reader = new $Reader(reader);
17937
+ return this.decode(reader, reader.uint32());
17938
+ };
17939
+
17940
+ /**
17941
+ * Verifies a ContentfulActivityCreated message.
17942
+ * @function verify
17943
+ * @memberof ContentfulActivityCreated
17944
+ * @static
17945
+ * @param {Object.<string,*>} message Plain object to verify
17946
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
17947
+ */
17948
+ ContentfulActivityCreated.verify = function verify(message) {
17949
+ if (typeof message !== "object" || message === null)
17950
+ return "object expected";
17951
+ if (message.name != null && message.hasOwnProperty("name")) {
17952
+ if (!$util.isObject(message.name))
17953
+ return "name: object expected";
17954
+ var key = Object.keys(message.name);
17955
+ for (var i = 0; i < key.length; ++i)
17956
+ if (!$util.isString(message.name[key[i]]))
17957
+ return "name: string{k:string} expected";
17958
+ }
17959
+ if (message.slug != null && message.hasOwnProperty("slug"))
17960
+ if (!$util.isString(message.slug))
17961
+ return "slug: string expected";
17962
+ if (message.format != null && message.hasOwnProperty("format"))
17963
+ if (!$util.isString(message.format))
17964
+ return "format: string expected";
17965
+ if (message.enabled != null && message.hasOwnProperty("enabled"))
17966
+ if (!$util.isString(message.enabled))
17967
+ return "enabled: string expected";
17968
+ if (message.variations != null && message.hasOwnProperty("variations")) {
17969
+ if (!$util.isObject(message.variations))
17970
+ return "variations: object expected";
17971
+ var key = Object.keys(message.variations);
17972
+ for (var i = 0; i < key.length; ++i) {
17973
+ var error = $root.contentful.SlugReferences.verify(message.variations[key[i]]);
17974
+ if (error)
17975
+ return "variations." + error;
17976
+ }
17977
+ }
17978
+ if (message.statCardText != null && message.hasOwnProperty("statCardText")) {
17979
+ if (!$util.isObject(message.statCardText))
17980
+ return "statCardText: object expected";
17981
+ var key = Object.keys(message.statCardText);
17982
+ for (var i = 0; i < key.length; ++i)
17983
+ if (!$util.isString(message.statCardText[key[i]]))
17984
+ return "statCardText: string{k:string} expected";
17985
+ }
17986
+ if (message.accessGroup != null && message.hasOwnProperty("accessGroup")) {
17987
+ if (!Array.isArray(message.accessGroup))
17988
+ return "accessGroup: array expected";
17989
+ for (var i = 0; i < message.accessGroup.length; ++i) {
17990
+ var error = $root.contentful.SlugReference.verify(message.accessGroup[i]);
17991
+ if (error)
17992
+ return "accessGroup." + error;
17993
+ }
17994
+ }
17995
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
17996
+ if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
17997
+ return "createdAt: integer|Long expected";
17998
+ return null;
17999
+ };
18000
+
18001
+ /**
18002
+ * Creates a ContentfulActivityCreated message from a plain object. Also converts values to their respective internal types.
18003
+ * @function fromObject
18004
+ * @memberof ContentfulActivityCreated
18005
+ * @static
18006
+ * @param {Object.<string,*>} object Plain object
18007
+ * @returns {ContentfulActivityCreated} ContentfulActivityCreated
18008
+ */
18009
+ ContentfulActivityCreated.fromObject = function fromObject(object) {
18010
+ if (object instanceof $root.ContentfulActivityCreated)
18011
+ return object;
18012
+ var message = new $root.ContentfulActivityCreated();
18013
+ if (object.name) {
18014
+ if (typeof object.name !== "object")
18015
+ throw TypeError(".ContentfulActivityCreated.name: object expected");
18016
+ message.name = {};
18017
+ for (var keys = Object.keys(object.name), i = 0; i < keys.length; ++i)
18018
+ message.name[keys[i]] = String(object.name[keys[i]]);
18019
+ }
18020
+ if (object.slug != null)
18021
+ message.slug = String(object.slug);
18022
+ if (object.format != null)
18023
+ message.format = String(object.format);
18024
+ if (object.enabled != null)
18025
+ message.enabled = String(object.enabled);
18026
+ if (object.variations) {
18027
+ if (typeof object.variations !== "object")
18028
+ throw TypeError(".ContentfulActivityCreated.variations: object expected");
18029
+ message.variations = {};
18030
+ for (var keys = Object.keys(object.variations), i = 0; i < keys.length; ++i) {
18031
+ if (typeof object.variations[keys[i]] !== "object")
18032
+ throw TypeError(".ContentfulActivityCreated.variations: object expected");
18033
+ message.variations[keys[i]] = $root.contentful.SlugReferences.fromObject(object.variations[keys[i]]);
18034
+ }
18035
+ }
18036
+ if (object.statCardText) {
18037
+ if (typeof object.statCardText !== "object")
18038
+ throw TypeError(".ContentfulActivityCreated.statCardText: object expected");
18039
+ message.statCardText = {};
18040
+ for (var keys = Object.keys(object.statCardText), i = 0; i < keys.length; ++i)
18041
+ message.statCardText[keys[i]] = String(object.statCardText[keys[i]]);
18042
+ }
18043
+ if (object.accessGroup) {
18044
+ if (!Array.isArray(object.accessGroup))
18045
+ throw TypeError(".ContentfulActivityCreated.accessGroup: array expected");
18046
+ message.accessGroup = [];
18047
+ for (var i = 0; i < object.accessGroup.length; ++i) {
18048
+ if (typeof object.accessGroup[i] !== "object")
18049
+ throw TypeError(".ContentfulActivityCreated.accessGroup: object expected");
18050
+ message.accessGroup[i] = $root.contentful.SlugReference.fromObject(object.accessGroup[i]);
18051
+ }
18052
+ }
18053
+ if (object.createdAt != null)
18054
+ if ($util.Long)
18055
+ (message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
18056
+ else if (typeof object.createdAt === "string")
18057
+ message.createdAt = parseInt(object.createdAt, 10);
18058
+ else if (typeof object.createdAt === "number")
18059
+ message.createdAt = object.createdAt;
18060
+ else if (typeof object.createdAt === "object")
18061
+ message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
18062
+ return message;
18063
+ };
18064
+
18065
+ /**
18066
+ * Creates a plain object from a ContentfulActivityCreated message. Also converts values to other types if specified.
18067
+ * @function toObject
18068
+ * @memberof ContentfulActivityCreated
18069
+ * @static
18070
+ * @param {ContentfulActivityCreated} message ContentfulActivityCreated
18071
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
18072
+ * @returns {Object.<string,*>} Plain object
18073
+ */
18074
+ ContentfulActivityCreated.toObject = function toObject(message, options) {
18075
+ if (!options)
18076
+ options = {};
18077
+ var object = {};
18078
+ if (options.arrays || options.defaults)
18079
+ object.accessGroup = [];
18080
+ if (options.objects || options.defaults) {
18081
+ object.name = {};
18082
+ object.variations = {};
18083
+ object.statCardText = {};
18084
+ }
18085
+ if (options.defaults) {
18086
+ object.slug = "";
18087
+ object.format = "";
18088
+ object.enabled = "";
18089
+ if ($util.Long) {
18090
+ var long = new $util.Long(0, 0, true);
18091
+ object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
18092
+ } else
18093
+ object.createdAt = options.longs === String ? "0" : 0;
18094
+ }
18095
+ var keys2;
18096
+ if (message.name && (keys2 = Object.keys(message.name)).length) {
18097
+ object.name = {};
18098
+ for (var j = 0; j < keys2.length; ++j)
18099
+ object.name[keys2[j]] = message.name[keys2[j]];
18100
+ }
18101
+ if (message.slug != null && message.hasOwnProperty("slug"))
18102
+ object.slug = message.slug;
18103
+ if (message.format != null && message.hasOwnProperty("format"))
18104
+ object.format = message.format;
18105
+ if (message.enabled != null && message.hasOwnProperty("enabled"))
18106
+ object.enabled = message.enabled;
18107
+ if (message.variations && (keys2 = Object.keys(message.variations)).length) {
18108
+ object.variations = {};
18109
+ for (var j = 0; j < keys2.length; ++j)
18110
+ object.variations[keys2[j]] = $root.contentful.SlugReferences.toObject(message.variations[keys2[j]], options);
18111
+ }
18112
+ if (message.statCardText && (keys2 = Object.keys(message.statCardText)).length) {
18113
+ object.statCardText = {};
18114
+ for (var j = 0; j < keys2.length; ++j)
18115
+ object.statCardText[keys2[j]] = message.statCardText[keys2[j]];
18116
+ }
18117
+ if (message.accessGroup && message.accessGroup.length) {
18118
+ object.accessGroup = [];
18119
+ for (var j = 0; j < message.accessGroup.length; ++j)
18120
+ object.accessGroup[j] = $root.contentful.SlugReference.toObject(message.accessGroup[j], options);
18121
+ }
18122
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
18123
+ if (typeof message.createdAt === "number")
18124
+ object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
18125
+ else
18126
+ 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;
18127
+ return object;
18128
+ };
18129
+
18130
+ /**
18131
+ * Converts this ContentfulActivityCreated to JSON.
18132
+ * @function toJSON
18133
+ * @memberof ContentfulActivityCreated
18134
+ * @instance
18135
+ * @returns {Object.<string,*>} JSON object
18136
+ */
18137
+ ContentfulActivityCreated.prototype.toJSON = function toJSON() {
18138
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
18139
+ };
18140
+
18141
+ return ContentfulActivityCreated;
18142
+ })();
18143
+
18144
+ $root.ContentfulActivityUpdated = (function() {
18145
+
18146
+ /**
18147
+ * Properties of a ContentfulActivityUpdated.
18148
+ * @exports IContentfulActivityUpdated
18149
+ * @interface IContentfulActivityUpdated
18150
+ * @property {Object.<string,string>|null} [name] ContentfulActivityUpdated name
18151
+ * @property {string|null} [slug] ContentfulActivityUpdated slug
18152
+ * @property {string|null} [format] ContentfulActivityUpdated format
18153
+ * @property {string|null} [enabled] ContentfulActivityUpdated enabled
18154
+ * @property {Object.<string,contentful.ISlugReferences>|null} [variations] ContentfulActivityUpdated variations
18155
+ * @property {Object.<string,string>|null} [statCardText] ContentfulActivityUpdated statCardText
18156
+ * @property {Array.<contentful.ISlugReference>|null} [accessGroup] ContentfulActivityUpdated accessGroup
18157
+ * @property {number|Long|null} [updatedAt] ContentfulActivityUpdated updatedAt
18158
+ */
18159
+
18160
+ /**
18161
+ * Constructs a new ContentfulActivityUpdated.
18162
+ * @exports ContentfulActivityUpdated
18163
+ * @classdesc Represents a ContentfulActivityUpdated.
18164
+ * @implements IContentfulActivityUpdated
18165
+ * @constructor
18166
+ * @param {IContentfulActivityUpdated=} [properties] Properties to set
18167
+ */
18168
+ function ContentfulActivityUpdated(properties) {
18169
+ this.name = {};
18170
+ this.variations = {};
18171
+ this.statCardText = {};
18172
+ this.accessGroup = [];
18173
+ if (properties)
18174
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
18175
+ if (properties[keys[i]] != null)
18176
+ this[keys[i]] = properties[keys[i]];
18177
+ }
18178
+
18179
+ /**
18180
+ * ContentfulActivityUpdated name.
18181
+ * @member {Object.<string,string>} name
18182
+ * @memberof ContentfulActivityUpdated
18183
+ * @instance
18184
+ */
18185
+ ContentfulActivityUpdated.prototype.name = $util.emptyObject;
18186
+
18187
+ /**
18188
+ * ContentfulActivityUpdated slug.
18189
+ * @member {string} slug
18190
+ * @memberof ContentfulActivityUpdated
18191
+ * @instance
18192
+ */
18193
+ ContentfulActivityUpdated.prototype.slug = "";
18194
+
18195
+ /**
18196
+ * ContentfulActivityUpdated format.
18197
+ * @member {string} format
18198
+ * @memberof ContentfulActivityUpdated
18199
+ * @instance
18200
+ */
18201
+ ContentfulActivityUpdated.prototype.format = "";
18202
+
18203
+ /**
18204
+ * ContentfulActivityUpdated enabled.
18205
+ * @member {string} enabled
18206
+ * @memberof ContentfulActivityUpdated
18207
+ * @instance
18208
+ */
18209
+ ContentfulActivityUpdated.prototype.enabled = "";
18210
+
18211
+ /**
18212
+ * ContentfulActivityUpdated variations.
18213
+ * @member {Object.<string,contentful.ISlugReferences>} variations
18214
+ * @memberof ContentfulActivityUpdated
18215
+ * @instance
18216
+ */
18217
+ ContentfulActivityUpdated.prototype.variations = $util.emptyObject;
18218
+
18219
+ /**
18220
+ * ContentfulActivityUpdated statCardText.
18221
+ * @member {Object.<string,string>} statCardText
18222
+ * @memberof ContentfulActivityUpdated
18223
+ * @instance
18224
+ */
18225
+ ContentfulActivityUpdated.prototype.statCardText = $util.emptyObject;
18226
+
18227
+ /**
18228
+ * ContentfulActivityUpdated accessGroup.
18229
+ * @member {Array.<contentful.ISlugReference>} accessGroup
18230
+ * @memberof ContentfulActivityUpdated
18231
+ * @instance
18232
+ */
18233
+ ContentfulActivityUpdated.prototype.accessGroup = $util.emptyArray;
18234
+
18235
+ /**
18236
+ * ContentfulActivityUpdated updatedAt.
18237
+ * @member {number|Long} updatedAt
18238
+ * @memberof ContentfulActivityUpdated
18239
+ * @instance
18240
+ */
18241
+ ContentfulActivityUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
18242
+
18243
+ /**
18244
+ * Creates a new ContentfulActivityUpdated instance using the specified properties.
18245
+ * @function create
18246
+ * @memberof ContentfulActivityUpdated
18247
+ * @static
18248
+ * @param {IContentfulActivityUpdated=} [properties] Properties to set
18249
+ * @returns {ContentfulActivityUpdated} ContentfulActivityUpdated instance
18250
+ */
18251
+ ContentfulActivityUpdated.create = function create(properties) {
18252
+ return new ContentfulActivityUpdated(properties);
18253
+ };
18254
+
18255
+ /**
18256
+ * Encodes the specified ContentfulActivityUpdated message. Does not implicitly {@link ContentfulActivityUpdated.verify|verify} messages.
18257
+ * @function encode
18258
+ * @memberof ContentfulActivityUpdated
18259
+ * @static
18260
+ * @param {IContentfulActivityUpdated} message ContentfulActivityUpdated message or plain object to encode
18261
+ * @param {$protobuf.Writer} [writer] Writer to encode to
18262
+ * @returns {$protobuf.Writer} Writer
18263
+ */
18264
+ ContentfulActivityUpdated.encode = function encode(message, writer) {
18265
+ if (!writer)
18266
+ writer = $Writer.create();
18267
+ if (message.name != null && message.hasOwnProperty("name"))
18268
+ for (var keys = Object.keys(message.name), i = 0; i < keys.length; ++i)
18269
+ 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();
18270
+ if (message.slug != null && message.hasOwnProperty("slug"))
18271
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
18272
+ if (message.format != null && message.hasOwnProperty("format"))
18273
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.format);
18274
+ if (message.enabled != null && message.hasOwnProperty("enabled"))
18275
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.enabled);
18276
+ if (message.variations != null && message.hasOwnProperty("variations"))
18277
+ for (var keys = Object.keys(message.variations), i = 0; i < keys.length; ++i) {
18278
+ writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
18279
+ $root.contentful.SlugReferences.encode(message.variations[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
18280
+ }
18281
+ if (message.statCardText != null && message.hasOwnProperty("statCardText"))
18282
+ for (var keys = Object.keys(message.statCardText), i = 0; i < keys.length; ++i)
18283
+ writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.statCardText[keys[i]]).ldelim();
18284
+ if (message.accessGroup != null && message.accessGroup.length)
18285
+ for (var i = 0; i < message.accessGroup.length; ++i)
18286
+ $root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
18287
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
18288
+ writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.updatedAt);
18289
+ return writer;
18290
+ };
18291
+
18292
+ /**
18293
+ * Encodes the specified ContentfulActivityUpdated message, length delimited. Does not implicitly {@link ContentfulActivityUpdated.verify|verify} messages.
18294
+ * @function encodeDelimited
18295
+ * @memberof ContentfulActivityUpdated
18296
+ * @static
18297
+ * @param {IContentfulActivityUpdated} message ContentfulActivityUpdated message or plain object to encode
18298
+ * @param {$protobuf.Writer} [writer] Writer to encode to
18299
+ * @returns {$protobuf.Writer} Writer
18300
+ */
18301
+ ContentfulActivityUpdated.encodeDelimited = function encodeDelimited(message, writer) {
18302
+ return this.encode(message, writer).ldelim();
18303
+ };
18304
+
18305
+ /**
18306
+ * Decodes a ContentfulActivityUpdated message from the specified reader or buffer.
18307
+ * @function decode
18308
+ * @memberof ContentfulActivityUpdated
18309
+ * @static
18310
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
18311
+ * @param {number} [length] Message length if known beforehand
18312
+ * @returns {ContentfulActivityUpdated} ContentfulActivityUpdated
18313
+ * @throws {Error} If the payload is not a reader or valid buffer
18314
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
18315
+ */
18316
+ ContentfulActivityUpdated.decode = function decode(reader, length) {
18317
+ if (!(reader instanceof $Reader))
18318
+ reader = $Reader.create(reader);
18319
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulActivityUpdated(), key;
18320
+ while (reader.pos < end) {
18321
+ var tag = reader.uint32();
18322
+ switch (tag >>> 3) {
18323
+ case 1:
18324
+ reader.skip().pos++;
18325
+ if (message.name === $util.emptyObject)
18326
+ message.name = {};
18327
+ key = reader.string();
18328
+ reader.pos++;
18329
+ message.name[key] = reader.string();
18330
+ break;
18331
+ case 2:
18332
+ message.slug = reader.string();
18333
+ break;
18334
+ case 3:
18335
+ message.format = reader.string();
18336
+ break;
18337
+ case 4:
18338
+ message.enabled = reader.string();
18339
+ break;
18340
+ case 5:
18341
+ reader.skip().pos++;
18342
+ if (message.variations === $util.emptyObject)
18343
+ message.variations = {};
18344
+ key = reader.string();
18345
+ reader.pos++;
18346
+ message.variations[key] = $root.contentful.SlugReferences.decode(reader, reader.uint32());
18347
+ break;
18348
+ case 6:
18349
+ reader.skip().pos++;
18350
+ if (message.statCardText === $util.emptyObject)
18351
+ message.statCardText = {};
18352
+ key = reader.string();
18353
+ reader.pos++;
18354
+ message.statCardText[key] = reader.string();
18355
+ break;
18356
+ case 7:
18357
+ if (!(message.accessGroup && message.accessGroup.length))
18358
+ message.accessGroup = [];
18359
+ message.accessGroup.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
18360
+ break;
18361
+ case 8:
18362
+ message.updatedAt = reader.uint64();
18363
+ break;
18364
+ default:
18365
+ reader.skipType(tag & 7);
18366
+ break;
18367
+ }
18368
+ }
18369
+ return message;
18370
+ };
18371
+
18372
+ /**
18373
+ * Decodes a ContentfulActivityUpdated message from the specified reader or buffer, length delimited.
18374
+ * @function decodeDelimited
18375
+ * @memberof ContentfulActivityUpdated
18376
+ * @static
18377
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
18378
+ * @returns {ContentfulActivityUpdated} ContentfulActivityUpdated
18379
+ * @throws {Error} If the payload is not a reader or valid buffer
18380
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
18381
+ */
18382
+ ContentfulActivityUpdated.decodeDelimited = function decodeDelimited(reader) {
18383
+ if (!(reader instanceof $Reader))
18384
+ reader = new $Reader(reader);
18385
+ return this.decode(reader, reader.uint32());
18386
+ };
18387
+
18388
+ /**
18389
+ * Verifies a ContentfulActivityUpdated message.
18390
+ * @function verify
18391
+ * @memberof ContentfulActivityUpdated
18392
+ * @static
18393
+ * @param {Object.<string,*>} message Plain object to verify
18394
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
18395
+ */
18396
+ ContentfulActivityUpdated.verify = function verify(message) {
18397
+ if (typeof message !== "object" || message === null)
18398
+ return "object expected";
18399
+ if (message.name != null && message.hasOwnProperty("name")) {
18400
+ if (!$util.isObject(message.name))
18401
+ return "name: object expected";
18402
+ var key = Object.keys(message.name);
18403
+ for (var i = 0; i < key.length; ++i)
18404
+ if (!$util.isString(message.name[key[i]]))
18405
+ return "name: string{k:string} expected";
18406
+ }
18407
+ if (message.slug != null && message.hasOwnProperty("slug"))
18408
+ if (!$util.isString(message.slug))
18409
+ return "slug: string expected";
18410
+ if (message.format != null && message.hasOwnProperty("format"))
18411
+ if (!$util.isString(message.format))
18412
+ return "format: string expected";
18413
+ if (message.enabled != null && message.hasOwnProperty("enabled"))
18414
+ if (!$util.isString(message.enabled))
18415
+ return "enabled: string expected";
18416
+ if (message.variations != null && message.hasOwnProperty("variations")) {
18417
+ if (!$util.isObject(message.variations))
18418
+ return "variations: object expected";
18419
+ var key = Object.keys(message.variations);
18420
+ for (var i = 0; i < key.length; ++i) {
18421
+ var error = $root.contentful.SlugReferences.verify(message.variations[key[i]]);
18422
+ if (error)
18423
+ return "variations." + error;
18424
+ }
18425
+ }
18426
+ if (message.statCardText != null && message.hasOwnProperty("statCardText")) {
18427
+ if (!$util.isObject(message.statCardText))
18428
+ return "statCardText: object expected";
18429
+ var key = Object.keys(message.statCardText);
18430
+ for (var i = 0; i < key.length; ++i)
18431
+ if (!$util.isString(message.statCardText[key[i]]))
18432
+ return "statCardText: string{k:string} expected";
18433
+ }
18434
+ if (message.accessGroup != null && message.hasOwnProperty("accessGroup")) {
18435
+ if (!Array.isArray(message.accessGroup))
18436
+ return "accessGroup: array expected";
18437
+ for (var i = 0; i < message.accessGroup.length; ++i) {
18438
+ var error = $root.contentful.SlugReference.verify(message.accessGroup[i]);
18439
+ if (error)
18440
+ return "accessGroup." + error;
18441
+ }
18442
+ }
18443
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
18444
+ if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
18445
+ return "updatedAt: integer|Long expected";
18446
+ return null;
18447
+ };
18448
+
18449
+ /**
18450
+ * Creates a ContentfulActivityUpdated message from a plain object. Also converts values to their respective internal types.
18451
+ * @function fromObject
18452
+ * @memberof ContentfulActivityUpdated
18453
+ * @static
18454
+ * @param {Object.<string,*>} object Plain object
18455
+ * @returns {ContentfulActivityUpdated} ContentfulActivityUpdated
18456
+ */
18457
+ ContentfulActivityUpdated.fromObject = function fromObject(object) {
18458
+ if (object instanceof $root.ContentfulActivityUpdated)
18459
+ return object;
18460
+ var message = new $root.ContentfulActivityUpdated();
18461
+ if (object.name) {
18462
+ if (typeof object.name !== "object")
18463
+ throw TypeError(".ContentfulActivityUpdated.name: object expected");
18464
+ message.name = {};
18465
+ for (var keys = Object.keys(object.name), i = 0; i < keys.length; ++i)
18466
+ message.name[keys[i]] = String(object.name[keys[i]]);
18467
+ }
18468
+ if (object.slug != null)
18469
+ message.slug = String(object.slug);
18470
+ if (object.format != null)
18471
+ message.format = String(object.format);
18472
+ if (object.enabled != null)
18473
+ message.enabled = String(object.enabled);
18474
+ if (object.variations) {
18475
+ if (typeof object.variations !== "object")
18476
+ throw TypeError(".ContentfulActivityUpdated.variations: object expected");
18477
+ message.variations = {};
18478
+ for (var keys = Object.keys(object.variations), i = 0; i < keys.length; ++i) {
18479
+ if (typeof object.variations[keys[i]] !== "object")
18480
+ throw TypeError(".ContentfulActivityUpdated.variations: object expected");
18481
+ message.variations[keys[i]] = $root.contentful.SlugReferences.fromObject(object.variations[keys[i]]);
18482
+ }
18483
+ }
18484
+ if (object.statCardText) {
18485
+ if (typeof object.statCardText !== "object")
18486
+ throw TypeError(".ContentfulActivityUpdated.statCardText: object expected");
18487
+ message.statCardText = {};
18488
+ for (var keys = Object.keys(object.statCardText), i = 0; i < keys.length; ++i)
18489
+ message.statCardText[keys[i]] = String(object.statCardText[keys[i]]);
18490
+ }
18491
+ if (object.accessGroup) {
18492
+ if (!Array.isArray(object.accessGroup))
18493
+ throw TypeError(".ContentfulActivityUpdated.accessGroup: array expected");
18494
+ message.accessGroup = [];
18495
+ for (var i = 0; i < object.accessGroup.length; ++i) {
18496
+ if (typeof object.accessGroup[i] !== "object")
18497
+ throw TypeError(".ContentfulActivityUpdated.accessGroup: object expected");
18498
+ message.accessGroup[i] = $root.contentful.SlugReference.fromObject(object.accessGroup[i]);
18499
+ }
18500
+ }
18501
+ if (object.updatedAt != null)
18502
+ if ($util.Long)
18503
+ (message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
18504
+ else if (typeof object.updatedAt === "string")
18505
+ message.updatedAt = parseInt(object.updatedAt, 10);
18506
+ else if (typeof object.updatedAt === "number")
18507
+ message.updatedAt = object.updatedAt;
18508
+ else if (typeof object.updatedAt === "object")
18509
+ message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
18510
+ return message;
18511
+ };
18512
+
18513
+ /**
18514
+ * Creates a plain object from a ContentfulActivityUpdated message. Also converts values to other types if specified.
18515
+ * @function toObject
18516
+ * @memberof ContentfulActivityUpdated
18517
+ * @static
18518
+ * @param {ContentfulActivityUpdated} message ContentfulActivityUpdated
18519
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
18520
+ * @returns {Object.<string,*>} Plain object
18521
+ */
18522
+ ContentfulActivityUpdated.toObject = function toObject(message, options) {
18523
+ if (!options)
18524
+ options = {};
18525
+ var object = {};
18526
+ if (options.arrays || options.defaults)
18527
+ object.accessGroup = [];
18528
+ if (options.objects || options.defaults) {
18529
+ object.name = {};
18530
+ object.variations = {};
18531
+ object.statCardText = {};
18532
+ }
18533
+ if (options.defaults) {
18534
+ object.slug = "";
18535
+ object.format = "";
18536
+ object.enabled = "";
18537
+ if ($util.Long) {
18538
+ var long = new $util.Long(0, 0, true);
18539
+ object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
18540
+ } else
18541
+ object.updatedAt = options.longs === String ? "0" : 0;
18542
+ }
18543
+ var keys2;
18544
+ if (message.name && (keys2 = Object.keys(message.name)).length) {
18545
+ object.name = {};
18546
+ for (var j = 0; j < keys2.length; ++j)
18547
+ object.name[keys2[j]] = message.name[keys2[j]];
18548
+ }
18549
+ if (message.slug != null && message.hasOwnProperty("slug"))
18550
+ object.slug = message.slug;
18551
+ if (message.format != null && message.hasOwnProperty("format"))
18552
+ object.format = message.format;
18553
+ if (message.enabled != null && message.hasOwnProperty("enabled"))
18554
+ object.enabled = message.enabled;
18555
+ if (message.variations && (keys2 = Object.keys(message.variations)).length) {
18556
+ object.variations = {};
18557
+ for (var j = 0; j < keys2.length; ++j)
18558
+ object.variations[keys2[j]] = $root.contentful.SlugReferences.toObject(message.variations[keys2[j]], options);
18559
+ }
18560
+ if (message.statCardText && (keys2 = Object.keys(message.statCardText)).length) {
18561
+ object.statCardText = {};
18562
+ for (var j = 0; j < keys2.length; ++j)
18563
+ object.statCardText[keys2[j]] = message.statCardText[keys2[j]];
18564
+ }
18565
+ if (message.accessGroup && message.accessGroup.length) {
18566
+ object.accessGroup = [];
18567
+ for (var j = 0; j < message.accessGroup.length; ++j)
18568
+ object.accessGroup[j] = $root.contentful.SlugReference.toObject(message.accessGroup[j], options);
18569
+ }
18570
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
18571
+ if (typeof message.updatedAt === "number")
18572
+ object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
18573
+ else
18574
+ 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;
18575
+ return object;
18576
+ };
18577
+
18578
+ /**
18579
+ * Converts this ContentfulActivityUpdated to JSON.
18580
+ * @function toJSON
18581
+ * @memberof ContentfulActivityUpdated
18582
+ * @instance
18583
+ * @returns {Object.<string,*>} JSON object
18584
+ */
18585
+ ContentfulActivityUpdated.prototype.toJSON = function toJSON() {
18586
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
18587
+ };
18588
+
18589
+ return ContentfulActivityUpdated;
18590
+ })();
18591
+
18592
+ $root.ContentfulActivityDeleted = (function() {
18593
+
18594
+ /**
18595
+ * Properties of a ContentfulActivityDeleted.
18596
+ * @exports IContentfulActivityDeleted
18597
+ * @interface IContentfulActivityDeleted
18598
+ * @property {string|null} [slug] ContentfulActivityDeleted slug
18599
+ * @property {number|Long|null} [deletedAt] ContentfulActivityDeleted deletedAt
18600
+ */
18601
+
18602
+ /**
18603
+ * Constructs a new ContentfulActivityDeleted.
18604
+ * @exports ContentfulActivityDeleted
18605
+ * @classdesc Represents a ContentfulActivityDeleted.
18606
+ * @implements IContentfulActivityDeleted
18607
+ * @constructor
18608
+ * @param {IContentfulActivityDeleted=} [properties] Properties to set
18609
+ */
18610
+ function ContentfulActivityDeleted(properties) {
18611
+ if (properties)
18612
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
18613
+ if (properties[keys[i]] != null)
18614
+ this[keys[i]] = properties[keys[i]];
18615
+ }
18616
+
18617
+ /**
18618
+ * ContentfulActivityDeleted slug.
18619
+ * @member {string} slug
18620
+ * @memberof ContentfulActivityDeleted
18621
+ * @instance
18622
+ */
18623
+ ContentfulActivityDeleted.prototype.slug = "";
18624
+
18625
+ /**
18626
+ * ContentfulActivityDeleted deletedAt.
18627
+ * @member {number|Long} deletedAt
18628
+ * @memberof ContentfulActivityDeleted
18629
+ * @instance
18630
+ */
18631
+ ContentfulActivityDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
18632
+
18633
+ /**
18634
+ * Creates a new ContentfulActivityDeleted instance using the specified properties.
18635
+ * @function create
18636
+ * @memberof ContentfulActivityDeleted
18637
+ * @static
18638
+ * @param {IContentfulActivityDeleted=} [properties] Properties to set
18639
+ * @returns {ContentfulActivityDeleted} ContentfulActivityDeleted instance
18640
+ */
18641
+ ContentfulActivityDeleted.create = function create(properties) {
18642
+ return new ContentfulActivityDeleted(properties);
18643
+ };
18644
+
18645
+ /**
18646
+ * Encodes the specified ContentfulActivityDeleted message. Does not implicitly {@link ContentfulActivityDeleted.verify|verify} messages.
18647
+ * @function encode
18648
+ * @memberof ContentfulActivityDeleted
18649
+ * @static
18650
+ * @param {IContentfulActivityDeleted} message ContentfulActivityDeleted message or plain object to encode
18651
+ * @param {$protobuf.Writer} [writer] Writer to encode to
18652
+ * @returns {$protobuf.Writer} Writer
18653
+ */
18654
+ ContentfulActivityDeleted.encode = function encode(message, writer) {
18655
+ if (!writer)
18656
+ writer = $Writer.create();
18657
+ if (message.slug != null && message.hasOwnProperty("slug"))
18658
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
18659
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
18660
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.deletedAt);
18661
+ return writer;
18662
+ };
18663
+
18664
+ /**
18665
+ * Encodes the specified ContentfulActivityDeleted message, length delimited. Does not implicitly {@link ContentfulActivityDeleted.verify|verify} messages.
18666
+ * @function encodeDelimited
18667
+ * @memberof ContentfulActivityDeleted
18668
+ * @static
18669
+ * @param {IContentfulActivityDeleted} message ContentfulActivityDeleted message or plain object to encode
18670
+ * @param {$protobuf.Writer} [writer] Writer to encode to
18671
+ * @returns {$protobuf.Writer} Writer
18672
+ */
18673
+ ContentfulActivityDeleted.encodeDelimited = function encodeDelimited(message, writer) {
18674
+ return this.encode(message, writer).ldelim();
18675
+ };
18676
+
18677
+ /**
18678
+ * Decodes a ContentfulActivityDeleted message from the specified reader or buffer.
18679
+ * @function decode
18680
+ * @memberof ContentfulActivityDeleted
18681
+ * @static
18682
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
18683
+ * @param {number} [length] Message length if known beforehand
18684
+ * @returns {ContentfulActivityDeleted} ContentfulActivityDeleted
18685
+ * @throws {Error} If the payload is not a reader or valid buffer
18686
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
18687
+ */
18688
+ ContentfulActivityDeleted.decode = function decode(reader, length) {
18689
+ if (!(reader instanceof $Reader))
18690
+ reader = $Reader.create(reader);
18691
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulActivityDeleted();
18692
+ while (reader.pos < end) {
18693
+ var tag = reader.uint32();
18694
+ switch (tag >>> 3) {
18695
+ case 1:
18696
+ message.slug = reader.string();
18697
+ break;
18698
+ case 2:
18699
+ message.deletedAt = reader.uint64();
18700
+ break;
18701
+ default:
18702
+ reader.skipType(tag & 7);
18703
+ break;
18704
+ }
18705
+ }
18706
+ return message;
18707
+ };
18708
+
18709
+ /**
18710
+ * Decodes a ContentfulActivityDeleted message from the specified reader or buffer, length delimited.
18711
+ * @function decodeDelimited
18712
+ * @memberof ContentfulActivityDeleted
18713
+ * @static
18714
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
18715
+ * @returns {ContentfulActivityDeleted} ContentfulActivityDeleted
18716
+ * @throws {Error} If the payload is not a reader or valid buffer
18717
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
18718
+ */
18719
+ ContentfulActivityDeleted.decodeDelimited = function decodeDelimited(reader) {
18720
+ if (!(reader instanceof $Reader))
18721
+ reader = new $Reader(reader);
18722
+ return this.decode(reader, reader.uint32());
18723
+ };
18724
+
18725
+ /**
18726
+ * Verifies a ContentfulActivityDeleted message.
18727
+ * @function verify
18728
+ * @memberof ContentfulActivityDeleted
18729
+ * @static
18730
+ * @param {Object.<string,*>} message Plain object to verify
18731
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
18732
+ */
18733
+ ContentfulActivityDeleted.verify = function verify(message) {
18734
+ if (typeof message !== "object" || message === null)
18735
+ return "object expected";
18736
+ if (message.slug != null && message.hasOwnProperty("slug"))
18737
+ if (!$util.isString(message.slug))
18738
+ return "slug: string expected";
18739
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
18740
+ if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
18741
+ return "deletedAt: integer|Long expected";
18742
+ return null;
18743
+ };
18744
+
18745
+ /**
18746
+ * Creates a ContentfulActivityDeleted message from a plain object. Also converts values to their respective internal types.
18747
+ * @function fromObject
18748
+ * @memberof ContentfulActivityDeleted
18749
+ * @static
18750
+ * @param {Object.<string,*>} object Plain object
18751
+ * @returns {ContentfulActivityDeleted} ContentfulActivityDeleted
18752
+ */
18753
+ ContentfulActivityDeleted.fromObject = function fromObject(object) {
18754
+ if (object instanceof $root.ContentfulActivityDeleted)
18755
+ return object;
18756
+ var message = new $root.ContentfulActivityDeleted();
18757
+ if (object.slug != null)
18758
+ message.slug = String(object.slug);
18759
+ if (object.deletedAt != null)
18760
+ if ($util.Long)
18761
+ (message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
18762
+ else if (typeof object.deletedAt === "string")
18763
+ message.deletedAt = parseInt(object.deletedAt, 10);
18764
+ else if (typeof object.deletedAt === "number")
18765
+ message.deletedAt = object.deletedAt;
18766
+ else if (typeof object.deletedAt === "object")
18767
+ message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
18768
+ return message;
18769
+ };
18770
+
18771
+ /**
18772
+ * Creates a plain object from a ContentfulActivityDeleted message. Also converts values to other types if specified.
18773
+ * @function toObject
18774
+ * @memberof ContentfulActivityDeleted
18775
+ * @static
18776
+ * @param {ContentfulActivityDeleted} message ContentfulActivityDeleted
18777
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
18778
+ * @returns {Object.<string,*>} Plain object
18779
+ */
18780
+ ContentfulActivityDeleted.toObject = function toObject(message, options) {
18781
+ if (!options)
18782
+ options = {};
18783
+ var object = {};
18784
+ if (options.defaults) {
18785
+ object.slug = "";
18786
+ if ($util.Long) {
18787
+ var long = new $util.Long(0, 0, true);
18788
+ object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
18789
+ } else
18790
+ object.deletedAt = options.longs === String ? "0" : 0;
18791
+ }
18792
+ if (message.slug != null && message.hasOwnProperty("slug"))
18793
+ object.slug = message.slug;
18794
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
18795
+ if (typeof message.deletedAt === "number")
18796
+ object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
18797
+ else
18798
+ 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;
18799
+ return object;
18800
+ };
18801
+
18802
+ /**
18803
+ * Converts this ContentfulActivityDeleted to JSON.
18804
+ * @function toJSON
18805
+ * @memberof ContentfulActivityDeleted
18806
+ * @instance
18807
+ * @returns {Object.<string,*>} JSON object
18808
+ */
18809
+ ContentfulActivityDeleted.prototype.toJSON = function toJSON() {
18810
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
18811
+ };
18812
+
18813
+ return ContentfulActivityDeleted;
18814
+ })();
18815
+
17488
18816
  $root.ContentfulContentModelCreated = (function() {
17489
18817
 
17490
18818
  /**