@headspace/protos-events 1.240.0 → 1.241.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.d.ts CHANGED
@@ -12887,6 +12887,318 @@ export class ContentfulVariationContainerDeleted implements IContentfulVariation
12887
12887
  public toJSON(): { [k: string]: any };
12888
12888
  }
12889
12889
 
12890
+ /** Properties of a ContentfulEDHSSessionCreated. */
12891
+ export interface IContentfulEDHSSessionCreated {
12892
+
12893
+ /** ContentfulEDHSSessionCreated slug */
12894
+ slug?: (string|null);
12895
+
12896
+ /** ContentfulEDHSSessionCreated activityGroup */
12897
+ activityGroup?: (contentful.ISlugReference|null);
12898
+
12899
+ /** ContentfulEDHSSessionCreated date */
12900
+ date?: (string|null);
12901
+
12902
+ /** ContentfulEDHSSessionCreated createdAt */
12903
+ createdAt?: (number|Long|null);
12904
+ }
12905
+
12906
+ /** Represents a ContentfulEDHSSessionCreated. */
12907
+ export class ContentfulEDHSSessionCreated implements IContentfulEDHSSessionCreated {
12908
+
12909
+ /**
12910
+ * Constructs a new ContentfulEDHSSessionCreated.
12911
+ * @param [properties] Properties to set
12912
+ */
12913
+ constructor(properties?: IContentfulEDHSSessionCreated);
12914
+
12915
+ /** ContentfulEDHSSessionCreated slug. */
12916
+ public slug: string;
12917
+
12918
+ /** ContentfulEDHSSessionCreated activityGroup. */
12919
+ public activityGroup?: (contentful.ISlugReference|null);
12920
+
12921
+ /** ContentfulEDHSSessionCreated date. */
12922
+ public date: string;
12923
+
12924
+ /** ContentfulEDHSSessionCreated createdAt. */
12925
+ public createdAt: (number|Long);
12926
+
12927
+ /**
12928
+ * Creates a new ContentfulEDHSSessionCreated instance using the specified properties.
12929
+ * @param [properties] Properties to set
12930
+ * @returns ContentfulEDHSSessionCreated instance
12931
+ */
12932
+ public static create(properties?: IContentfulEDHSSessionCreated): ContentfulEDHSSessionCreated;
12933
+
12934
+ /**
12935
+ * Encodes the specified ContentfulEDHSSessionCreated message. Does not implicitly {@link ContentfulEDHSSessionCreated.verify|verify} messages.
12936
+ * @param message ContentfulEDHSSessionCreated message or plain object to encode
12937
+ * @param [writer] Writer to encode to
12938
+ * @returns Writer
12939
+ */
12940
+ public static encode(message: IContentfulEDHSSessionCreated, writer?: $protobuf.Writer): $protobuf.Writer;
12941
+
12942
+ /**
12943
+ * Encodes the specified ContentfulEDHSSessionCreated message, length delimited. Does not implicitly {@link ContentfulEDHSSessionCreated.verify|verify} messages.
12944
+ * @param message ContentfulEDHSSessionCreated message or plain object to encode
12945
+ * @param [writer] Writer to encode to
12946
+ * @returns Writer
12947
+ */
12948
+ public static encodeDelimited(message: IContentfulEDHSSessionCreated, writer?: $protobuf.Writer): $protobuf.Writer;
12949
+
12950
+ /**
12951
+ * Decodes a ContentfulEDHSSessionCreated message from the specified reader or buffer.
12952
+ * @param reader Reader or buffer to decode from
12953
+ * @param [length] Message length if known beforehand
12954
+ * @returns ContentfulEDHSSessionCreated
12955
+ * @throws {Error} If the payload is not a reader or valid buffer
12956
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
12957
+ */
12958
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ContentfulEDHSSessionCreated;
12959
+
12960
+ /**
12961
+ * Decodes a ContentfulEDHSSessionCreated message from the specified reader or buffer, length delimited.
12962
+ * @param reader Reader or buffer to decode from
12963
+ * @returns ContentfulEDHSSessionCreated
12964
+ * @throws {Error} If the payload is not a reader or valid buffer
12965
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
12966
+ */
12967
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ContentfulEDHSSessionCreated;
12968
+
12969
+ /**
12970
+ * Verifies a ContentfulEDHSSessionCreated message.
12971
+ * @param message Plain object to verify
12972
+ * @returns `null` if valid, otherwise the reason why it is not
12973
+ */
12974
+ public static verify(message: { [k: string]: any }): (string|null);
12975
+
12976
+ /**
12977
+ * Creates a ContentfulEDHSSessionCreated message from a plain object. Also converts values to their respective internal types.
12978
+ * @param object Plain object
12979
+ * @returns ContentfulEDHSSessionCreated
12980
+ */
12981
+ public static fromObject(object: { [k: string]: any }): ContentfulEDHSSessionCreated;
12982
+
12983
+ /**
12984
+ * Creates a plain object from a ContentfulEDHSSessionCreated message. Also converts values to other types if specified.
12985
+ * @param message ContentfulEDHSSessionCreated
12986
+ * @param [options] Conversion options
12987
+ * @returns Plain object
12988
+ */
12989
+ public static toObject(message: ContentfulEDHSSessionCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
12990
+
12991
+ /**
12992
+ * Converts this ContentfulEDHSSessionCreated to JSON.
12993
+ * @returns JSON object
12994
+ */
12995
+ public toJSON(): { [k: string]: any };
12996
+ }
12997
+
12998
+ /** Properties of a ContentfulEDHSSessionUpdated. */
12999
+ export interface IContentfulEDHSSessionUpdated {
13000
+
13001
+ /** ContentfulEDHSSessionUpdated slug */
13002
+ slug?: (string|null);
13003
+
13004
+ /** ContentfulEDHSSessionUpdated activityGroup */
13005
+ activityGroup?: (contentful.ISlugReference|null);
13006
+
13007
+ /** ContentfulEDHSSessionUpdated date */
13008
+ date?: (string|null);
13009
+
13010
+ /** ContentfulEDHSSessionUpdated updatedAt */
13011
+ updatedAt?: (number|Long|null);
13012
+ }
13013
+
13014
+ /** Represents a ContentfulEDHSSessionUpdated. */
13015
+ export class ContentfulEDHSSessionUpdated implements IContentfulEDHSSessionUpdated {
13016
+
13017
+ /**
13018
+ * Constructs a new ContentfulEDHSSessionUpdated.
13019
+ * @param [properties] Properties to set
13020
+ */
13021
+ constructor(properties?: IContentfulEDHSSessionUpdated);
13022
+
13023
+ /** ContentfulEDHSSessionUpdated slug. */
13024
+ public slug: string;
13025
+
13026
+ /** ContentfulEDHSSessionUpdated activityGroup. */
13027
+ public activityGroup?: (contentful.ISlugReference|null);
13028
+
13029
+ /** ContentfulEDHSSessionUpdated date. */
13030
+ public date: string;
13031
+
13032
+ /** ContentfulEDHSSessionUpdated updatedAt. */
13033
+ public updatedAt: (number|Long);
13034
+
13035
+ /**
13036
+ * Creates a new ContentfulEDHSSessionUpdated instance using the specified properties.
13037
+ * @param [properties] Properties to set
13038
+ * @returns ContentfulEDHSSessionUpdated instance
13039
+ */
13040
+ public static create(properties?: IContentfulEDHSSessionUpdated): ContentfulEDHSSessionUpdated;
13041
+
13042
+ /**
13043
+ * Encodes the specified ContentfulEDHSSessionUpdated message. Does not implicitly {@link ContentfulEDHSSessionUpdated.verify|verify} messages.
13044
+ * @param message ContentfulEDHSSessionUpdated message or plain object to encode
13045
+ * @param [writer] Writer to encode to
13046
+ * @returns Writer
13047
+ */
13048
+ public static encode(message: IContentfulEDHSSessionUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
13049
+
13050
+ /**
13051
+ * Encodes the specified ContentfulEDHSSessionUpdated message, length delimited. Does not implicitly {@link ContentfulEDHSSessionUpdated.verify|verify} messages.
13052
+ * @param message ContentfulEDHSSessionUpdated message or plain object to encode
13053
+ * @param [writer] Writer to encode to
13054
+ * @returns Writer
13055
+ */
13056
+ public static encodeDelimited(message: IContentfulEDHSSessionUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
13057
+
13058
+ /**
13059
+ * Decodes a ContentfulEDHSSessionUpdated message from the specified reader or buffer.
13060
+ * @param reader Reader or buffer to decode from
13061
+ * @param [length] Message length if known beforehand
13062
+ * @returns ContentfulEDHSSessionUpdated
13063
+ * @throws {Error} If the payload is not a reader or valid buffer
13064
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13065
+ */
13066
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ContentfulEDHSSessionUpdated;
13067
+
13068
+ /**
13069
+ * Decodes a ContentfulEDHSSessionUpdated message from the specified reader or buffer, length delimited.
13070
+ * @param reader Reader or buffer to decode from
13071
+ * @returns ContentfulEDHSSessionUpdated
13072
+ * @throws {Error} If the payload is not a reader or valid buffer
13073
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13074
+ */
13075
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ContentfulEDHSSessionUpdated;
13076
+
13077
+ /**
13078
+ * Verifies a ContentfulEDHSSessionUpdated message.
13079
+ * @param message Plain object to verify
13080
+ * @returns `null` if valid, otherwise the reason why it is not
13081
+ */
13082
+ public static verify(message: { [k: string]: any }): (string|null);
13083
+
13084
+ /**
13085
+ * Creates a ContentfulEDHSSessionUpdated message from a plain object. Also converts values to their respective internal types.
13086
+ * @param object Plain object
13087
+ * @returns ContentfulEDHSSessionUpdated
13088
+ */
13089
+ public static fromObject(object: { [k: string]: any }): ContentfulEDHSSessionUpdated;
13090
+
13091
+ /**
13092
+ * Creates a plain object from a ContentfulEDHSSessionUpdated message. Also converts values to other types if specified.
13093
+ * @param message ContentfulEDHSSessionUpdated
13094
+ * @param [options] Conversion options
13095
+ * @returns Plain object
13096
+ */
13097
+ public static toObject(message: ContentfulEDHSSessionUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
13098
+
13099
+ /**
13100
+ * Converts this ContentfulEDHSSessionUpdated to JSON.
13101
+ * @returns JSON object
13102
+ */
13103
+ public toJSON(): { [k: string]: any };
13104
+ }
13105
+
13106
+ /** Properties of a ContentfulEDHSSessionDeleted. */
13107
+ export interface IContentfulEDHSSessionDeleted {
13108
+
13109
+ /** ContentfulEDHSSessionDeleted slug */
13110
+ slug?: (string|null);
13111
+
13112
+ /** ContentfulEDHSSessionDeleted deletedAt */
13113
+ deletedAt?: (number|Long|null);
13114
+ }
13115
+
13116
+ /** Represents a ContentfulEDHSSessionDeleted. */
13117
+ export class ContentfulEDHSSessionDeleted implements IContentfulEDHSSessionDeleted {
13118
+
13119
+ /**
13120
+ * Constructs a new ContentfulEDHSSessionDeleted.
13121
+ * @param [properties] Properties to set
13122
+ */
13123
+ constructor(properties?: IContentfulEDHSSessionDeleted);
13124
+
13125
+ /** ContentfulEDHSSessionDeleted slug. */
13126
+ public slug: string;
13127
+
13128
+ /** ContentfulEDHSSessionDeleted deletedAt. */
13129
+ public deletedAt: (number|Long);
13130
+
13131
+ /**
13132
+ * Creates a new ContentfulEDHSSessionDeleted instance using the specified properties.
13133
+ * @param [properties] Properties to set
13134
+ * @returns ContentfulEDHSSessionDeleted instance
13135
+ */
13136
+ public static create(properties?: IContentfulEDHSSessionDeleted): ContentfulEDHSSessionDeleted;
13137
+
13138
+ /**
13139
+ * Encodes the specified ContentfulEDHSSessionDeleted message. Does not implicitly {@link ContentfulEDHSSessionDeleted.verify|verify} messages.
13140
+ * @param message ContentfulEDHSSessionDeleted message or plain object to encode
13141
+ * @param [writer] Writer to encode to
13142
+ * @returns Writer
13143
+ */
13144
+ public static encode(message: IContentfulEDHSSessionDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
13145
+
13146
+ /**
13147
+ * Encodes the specified ContentfulEDHSSessionDeleted message, length delimited. Does not implicitly {@link ContentfulEDHSSessionDeleted.verify|verify} messages.
13148
+ * @param message ContentfulEDHSSessionDeleted message or plain object to encode
13149
+ * @param [writer] Writer to encode to
13150
+ * @returns Writer
13151
+ */
13152
+ public static encodeDelimited(message: IContentfulEDHSSessionDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
13153
+
13154
+ /**
13155
+ * Decodes a ContentfulEDHSSessionDeleted message from the specified reader or buffer.
13156
+ * @param reader Reader or buffer to decode from
13157
+ * @param [length] Message length if known beforehand
13158
+ * @returns ContentfulEDHSSessionDeleted
13159
+ * @throws {Error} If the payload is not a reader or valid buffer
13160
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13161
+ */
13162
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ContentfulEDHSSessionDeleted;
13163
+
13164
+ /**
13165
+ * Decodes a ContentfulEDHSSessionDeleted message from the specified reader or buffer, length delimited.
13166
+ * @param reader Reader or buffer to decode from
13167
+ * @returns ContentfulEDHSSessionDeleted
13168
+ * @throws {Error} If the payload is not a reader or valid buffer
13169
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13170
+ */
13171
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ContentfulEDHSSessionDeleted;
13172
+
13173
+ /**
13174
+ * Verifies a ContentfulEDHSSessionDeleted message.
13175
+ * @param message Plain object to verify
13176
+ * @returns `null` if valid, otherwise the reason why it is not
13177
+ */
13178
+ public static verify(message: { [k: string]: any }): (string|null);
13179
+
13180
+ /**
13181
+ * Creates a ContentfulEDHSSessionDeleted message from a plain object. Also converts values to their respective internal types.
13182
+ * @param object Plain object
13183
+ * @returns ContentfulEDHSSessionDeleted
13184
+ */
13185
+ public static fromObject(object: { [k: string]: any }): ContentfulEDHSSessionDeleted;
13186
+
13187
+ /**
13188
+ * Creates a plain object from a ContentfulEDHSSessionDeleted message. Also converts values to other types if specified.
13189
+ * @param message ContentfulEDHSSessionDeleted
13190
+ * @param [options] Conversion options
13191
+ * @returns Plain object
13192
+ */
13193
+ public static toObject(message: ContentfulEDHSSessionDeleted, options?: $protobuf.IConversionOptions): { [k: string]: any };
13194
+
13195
+ /**
13196
+ * Converts this ContentfulEDHSSessionDeleted to JSON.
13197
+ * @returns JSON object
13198
+ */
13199
+ public toJSON(): { [k: string]: any };
13200
+ }
13201
+
12890
13202
  /** Properties of a ContentfulContentModelCreated. */
12891
13203
  export interface IContentfulContentModelCreated {
12892
13204
 
package/lib/index.js CHANGED
@@ -36682,6 +36682,776 @@ $root.ContentfulVariationContainerDeleted = (function() {
36682
36682
  return ContentfulVariationContainerDeleted;
36683
36683
  })();
36684
36684
 
36685
+ $root.ContentfulEDHSSessionCreated = (function() {
36686
+
36687
+ /**
36688
+ * Properties of a ContentfulEDHSSessionCreated.
36689
+ * @exports IContentfulEDHSSessionCreated
36690
+ * @interface IContentfulEDHSSessionCreated
36691
+ * @property {string|null} [slug] ContentfulEDHSSessionCreated slug
36692
+ * @property {contentful.ISlugReference|null} [activityGroup] ContentfulEDHSSessionCreated activityGroup
36693
+ * @property {string|null} [date] ContentfulEDHSSessionCreated date
36694
+ * @property {number|Long|null} [createdAt] ContentfulEDHSSessionCreated createdAt
36695
+ */
36696
+
36697
+ /**
36698
+ * Constructs a new ContentfulEDHSSessionCreated.
36699
+ * @exports ContentfulEDHSSessionCreated
36700
+ * @classdesc Represents a ContentfulEDHSSessionCreated.
36701
+ * @implements IContentfulEDHSSessionCreated
36702
+ * @constructor
36703
+ * @param {IContentfulEDHSSessionCreated=} [properties] Properties to set
36704
+ */
36705
+ function ContentfulEDHSSessionCreated(properties) {
36706
+ if (properties)
36707
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
36708
+ if (properties[keys[i]] != null)
36709
+ this[keys[i]] = properties[keys[i]];
36710
+ }
36711
+
36712
+ /**
36713
+ * ContentfulEDHSSessionCreated slug.
36714
+ * @member {string} slug
36715
+ * @memberof ContentfulEDHSSessionCreated
36716
+ * @instance
36717
+ */
36718
+ ContentfulEDHSSessionCreated.prototype.slug = "";
36719
+
36720
+ /**
36721
+ * ContentfulEDHSSessionCreated activityGroup.
36722
+ * @member {contentful.ISlugReference|null|undefined} activityGroup
36723
+ * @memberof ContentfulEDHSSessionCreated
36724
+ * @instance
36725
+ */
36726
+ ContentfulEDHSSessionCreated.prototype.activityGroup = null;
36727
+
36728
+ /**
36729
+ * ContentfulEDHSSessionCreated date.
36730
+ * @member {string} date
36731
+ * @memberof ContentfulEDHSSessionCreated
36732
+ * @instance
36733
+ */
36734
+ ContentfulEDHSSessionCreated.prototype.date = "";
36735
+
36736
+ /**
36737
+ * ContentfulEDHSSessionCreated createdAt.
36738
+ * @member {number|Long} createdAt
36739
+ * @memberof ContentfulEDHSSessionCreated
36740
+ * @instance
36741
+ */
36742
+ ContentfulEDHSSessionCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
36743
+
36744
+ /**
36745
+ * Creates a new ContentfulEDHSSessionCreated instance using the specified properties.
36746
+ * @function create
36747
+ * @memberof ContentfulEDHSSessionCreated
36748
+ * @static
36749
+ * @param {IContentfulEDHSSessionCreated=} [properties] Properties to set
36750
+ * @returns {ContentfulEDHSSessionCreated} ContentfulEDHSSessionCreated instance
36751
+ */
36752
+ ContentfulEDHSSessionCreated.create = function create(properties) {
36753
+ return new ContentfulEDHSSessionCreated(properties);
36754
+ };
36755
+
36756
+ /**
36757
+ * Encodes the specified ContentfulEDHSSessionCreated message. Does not implicitly {@link ContentfulEDHSSessionCreated.verify|verify} messages.
36758
+ * @function encode
36759
+ * @memberof ContentfulEDHSSessionCreated
36760
+ * @static
36761
+ * @param {IContentfulEDHSSessionCreated} message ContentfulEDHSSessionCreated message or plain object to encode
36762
+ * @param {$protobuf.Writer} [writer] Writer to encode to
36763
+ * @returns {$protobuf.Writer} Writer
36764
+ */
36765
+ ContentfulEDHSSessionCreated.encode = function encode(message, writer) {
36766
+ if (!writer)
36767
+ writer = $Writer.create();
36768
+ if (message.slug != null && message.hasOwnProperty("slug"))
36769
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
36770
+ if (message.activityGroup != null && message.hasOwnProperty("activityGroup"))
36771
+ $root.contentful.SlugReference.encode(message.activityGroup, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
36772
+ if (message.date != null && message.hasOwnProperty("date"))
36773
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.date);
36774
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
36775
+ writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.createdAt);
36776
+ return writer;
36777
+ };
36778
+
36779
+ /**
36780
+ * Encodes the specified ContentfulEDHSSessionCreated message, length delimited. Does not implicitly {@link ContentfulEDHSSessionCreated.verify|verify} messages.
36781
+ * @function encodeDelimited
36782
+ * @memberof ContentfulEDHSSessionCreated
36783
+ * @static
36784
+ * @param {IContentfulEDHSSessionCreated} message ContentfulEDHSSessionCreated message or plain object to encode
36785
+ * @param {$protobuf.Writer} [writer] Writer to encode to
36786
+ * @returns {$protobuf.Writer} Writer
36787
+ */
36788
+ ContentfulEDHSSessionCreated.encodeDelimited = function encodeDelimited(message, writer) {
36789
+ return this.encode(message, writer).ldelim();
36790
+ };
36791
+
36792
+ /**
36793
+ * Decodes a ContentfulEDHSSessionCreated message from the specified reader or buffer.
36794
+ * @function decode
36795
+ * @memberof ContentfulEDHSSessionCreated
36796
+ * @static
36797
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
36798
+ * @param {number} [length] Message length if known beforehand
36799
+ * @returns {ContentfulEDHSSessionCreated} ContentfulEDHSSessionCreated
36800
+ * @throws {Error} If the payload is not a reader or valid buffer
36801
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
36802
+ */
36803
+ ContentfulEDHSSessionCreated.decode = function decode(reader, length) {
36804
+ if (!(reader instanceof $Reader))
36805
+ reader = $Reader.create(reader);
36806
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulEDHSSessionCreated();
36807
+ while (reader.pos < end) {
36808
+ var tag = reader.uint32();
36809
+ switch (tag >>> 3) {
36810
+ case 1:
36811
+ message.slug = reader.string();
36812
+ break;
36813
+ case 2:
36814
+ message.activityGroup = $root.contentful.SlugReference.decode(reader, reader.uint32());
36815
+ break;
36816
+ case 3:
36817
+ message.date = reader.string();
36818
+ break;
36819
+ case 4:
36820
+ message.createdAt = reader.uint64();
36821
+ break;
36822
+ default:
36823
+ reader.skipType(tag & 7);
36824
+ break;
36825
+ }
36826
+ }
36827
+ return message;
36828
+ };
36829
+
36830
+ /**
36831
+ * Decodes a ContentfulEDHSSessionCreated message from the specified reader or buffer, length delimited.
36832
+ * @function decodeDelimited
36833
+ * @memberof ContentfulEDHSSessionCreated
36834
+ * @static
36835
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
36836
+ * @returns {ContentfulEDHSSessionCreated} ContentfulEDHSSessionCreated
36837
+ * @throws {Error} If the payload is not a reader or valid buffer
36838
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
36839
+ */
36840
+ ContentfulEDHSSessionCreated.decodeDelimited = function decodeDelimited(reader) {
36841
+ if (!(reader instanceof $Reader))
36842
+ reader = new $Reader(reader);
36843
+ return this.decode(reader, reader.uint32());
36844
+ };
36845
+
36846
+ /**
36847
+ * Verifies a ContentfulEDHSSessionCreated message.
36848
+ * @function verify
36849
+ * @memberof ContentfulEDHSSessionCreated
36850
+ * @static
36851
+ * @param {Object.<string,*>} message Plain object to verify
36852
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
36853
+ */
36854
+ ContentfulEDHSSessionCreated.verify = function verify(message) {
36855
+ if (typeof message !== "object" || message === null)
36856
+ return "object expected";
36857
+ if (message.slug != null && message.hasOwnProperty("slug"))
36858
+ if (!$util.isString(message.slug))
36859
+ return "slug: string expected";
36860
+ if (message.activityGroup != null && message.hasOwnProperty("activityGroup")) {
36861
+ var error = $root.contentful.SlugReference.verify(message.activityGroup);
36862
+ if (error)
36863
+ return "activityGroup." + error;
36864
+ }
36865
+ if (message.date != null && message.hasOwnProperty("date"))
36866
+ if (!$util.isString(message.date))
36867
+ return "date: string expected";
36868
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
36869
+ if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
36870
+ return "createdAt: integer|Long expected";
36871
+ return null;
36872
+ };
36873
+
36874
+ /**
36875
+ * Creates a ContentfulEDHSSessionCreated message from a plain object. Also converts values to their respective internal types.
36876
+ * @function fromObject
36877
+ * @memberof ContentfulEDHSSessionCreated
36878
+ * @static
36879
+ * @param {Object.<string,*>} object Plain object
36880
+ * @returns {ContentfulEDHSSessionCreated} ContentfulEDHSSessionCreated
36881
+ */
36882
+ ContentfulEDHSSessionCreated.fromObject = function fromObject(object) {
36883
+ if (object instanceof $root.ContentfulEDHSSessionCreated)
36884
+ return object;
36885
+ var message = new $root.ContentfulEDHSSessionCreated();
36886
+ if (object.slug != null)
36887
+ message.slug = String(object.slug);
36888
+ if (object.activityGroup != null) {
36889
+ if (typeof object.activityGroup !== "object")
36890
+ throw TypeError(".ContentfulEDHSSessionCreated.activityGroup: object expected");
36891
+ message.activityGroup = $root.contentful.SlugReference.fromObject(object.activityGroup);
36892
+ }
36893
+ if (object.date != null)
36894
+ message.date = String(object.date);
36895
+ if (object.createdAt != null)
36896
+ if ($util.Long)
36897
+ (message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
36898
+ else if (typeof object.createdAt === "string")
36899
+ message.createdAt = parseInt(object.createdAt, 10);
36900
+ else if (typeof object.createdAt === "number")
36901
+ message.createdAt = object.createdAt;
36902
+ else if (typeof object.createdAt === "object")
36903
+ message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
36904
+ return message;
36905
+ };
36906
+
36907
+ /**
36908
+ * Creates a plain object from a ContentfulEDHSSessionCreated message. Also converts values to other types if specified.
36909
+ * @function toObject
36910
+ * @memberof ContentfulEDHSSessionCreated
36911
+ * @static
36912
+ * @param {ContentfulEDHSSessionCreated} message ContentfulEDHSSessionCreated
36913
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
36914
+ * @returns {Object.<string,*>} Plain object
36915
+ */
36916
+ ContentfulEDHSSessionCreated.toObject = function toObject(message, options) {
36917
+ if (!options)
36918
+ options = {};
36919
+ var object = {};
36920
+ if (options.defaults) {
36921
+ object.slug = "";
36922
+ object.activityGroup = null;
36923
+ object.date = "";
36924
+ if ($util.Long) {
36925
+ var long = new $util.Long(0, 0, true);
36926
+ object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
36927
+ } else
36928
+ object.createdAt = options.longs === String ? "0" : 0;
36929
+ }
36930
+ if (message.slug != null && message.hasOwnProperty("slug"))
36931
+ object.slug = message.slug;
36932
+ if (message.activityGroup != null && message.hasOwnProperty("activityGroup"))
36933
+ object.activityGroup = $root.contentful.SlugReference.toObject(message.activityGroup, options);
36934
+ if (message.date != null && message.hasOwnProperty("date"))
36935
+ object.date = message.date;
36936
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
36937
+ if (typeof message.createdAt === "number")
36938
+ object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
36939
+ else
36940
+ 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;
36941
+ return object;
36942
+ };
36943
+
36944
+ /**
36945
+ * Converts this ContentfulEDHSSessionCreated to JSON.
36946
+ * @function toJSON
36947
+ * @memberof ContentfulEDHSSessionCreated
36948
+ * @instance
36949
+ * @returns {Object.<string,*>} JSON object
36950
+ */
36951
+ ContentfulEDHSSessionCreated.prototype.toJSON = function toJSON() {
36952
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
36953
+ };
36954
+
36955
+ return ContentfulEDHSSessionCreated;
36956
+ })();
36957
+
36958
+ $root.ContentfulEDHSSessionUpdated = (function() {
36959
+
36960
+ /**
36961
+ * Properties of a ContentfulEDHSSessionUpdated.
36962
+ * @exports IContentfulEDHSSessionUpdated
36963
+ * @interface IContentfulEDHSSessionUpdated
36964
+ * @property {string|null} [slug] ContentfulEDHSSessionUpdated slug
36965
+ * @property {contentful.ISlugReference|null} [activityGroup] ContentfulEDHSSessionUpdated activityGroup
36966
+ * @property {string|null} [date] ContentfulEDHSSessionUpdated date
36967
+ * @property {number|Long|null} [updatedAt] ContentfulEDHSSessionUpdated updatedAt
36968
+ */
36969
+
36970
+ /**
36971
+ * Constructs a new ContentfulEDHSSessionUpdated.
36972
+ * @exports ContentfulEDHSSessionUpdated
36973
+ * @classdesc Represents a ContentfulEDHSSessionUpdated.
36974
+ * @implements IContentfulEDHSSessionUpdated
36975
+ * @constructor
36976
+ * @param {IContentfulEDHSSessionUpdated=} [properties] Properties to set
36977
+ */
36978
+ function ContentfulEDHSSessionUpdated(properties) {
36979
+ if (properties)
36980
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
36981
+ if (properties[keys[i]] != null)
36982
+ this[keys[i]] = properties[keys[i]];
36983
+ }
36984
+
36985
+ /**
36986
+ * ContentfulEDHSSessionUpdated slug.
36987
+ * @member {string} slug
36988
+ * @memberof ContentfulEDHSSessionUpdated
36989
+ * @instance
36990
+ */
36991
+ ContentfulEDHSSessionUpdated.prototype.slug = "";
36992
+
36993
+ /**
36994
+ * ContentfulEDHSSessionUpdated activityGroup.
36995
+ * @member {contentful.ISlugReference|null|undefined} activityGroup
36996
+ * @memberof ContentfulEDHSSessionUpdated
36997
+ * @instance
36998
+ */
36999
+ ContentfulEDHSSessionUpdated.prototype.activityGroup = null;
37000
+
37001
+ /**
37002
+ * ContentfulEDHSSessionUpdated date.
37003
+ * @member {string} date
37004
+ * @memberof ContentfulEDHSSessionUpdated
37005
+ * @instance
37006
+ */
37007
+ ContentfulEDHSSessionUpdated.prototype.date = "";
37008
+
37009
+ /**
37010
+ * ContentfulEDHSSessionUpdated updatedAt.
37011
+ * @member {number|Long} updatedAt
37012
+ * @memberof ContentfulEDHSSessionUpdated
37013
+ * @instance
37014
+ */
37015
+ ContentfulEDHSSessionUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
37016
+
37017
+ /**
37018
+ * Creates a new ContentfulEDHSSessionUpdated instance using the specified properties.
37019
+ * @function create
37020
+ * @memberof ContentfulEDHSSessionUpdated
37021
+ * @static
37022
+ * @param {IContentfulEDHSSessionUpdated=} [properties] Properties to set
37023
+ * @returns {ContentfulEDHSSessionUpdated} ContentfulEDHSSessionUpdated instance
37024
+ */
37025
+ ContentfulEDHSSessionUpdated.create = function create(properties) {
37026
+ return new ContentfulEDHSSessionUpdated(properties);
37027
+ };
37028
+
37029
+ /**
37030
+ * Encodes the specified ContentfulEDHSSessionUpdated message. Does not implicitly {@link ContentfulEDHSSessionUpdated.verify|verify} messages.
37031
+ * @function encode
37032
+ * @memberof ContentfulEDHSSessionUpdated
37033
+ * @static
37034
+ * @param {IContentfulEDHSSessionUpdated} message ContentfulEDHSSessionUpdated message or plain object to encode
37035
+ * @param {$protobuf.Writer} [writer] Writer to encode to
37036
+ * @returns {$protobuf.Writer} Writer
37037
+ */
37038
+ ContentfulEDHSSessionUpdated.encode = function encode(message, writer) {
37039
+ if (!writer)
37040
+ writer = $Writer.create();
37041
+ if (message.slug != null && message.hasOwnProperty("slug"))
37042
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
37043
+ if (message.activityGroup != null && message.hasOwnProperty("activityGroup"))
37044
+ $root.contentful.SlugReference.encode(message.activityGroup, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
37045
+ if (message.date != null && message.hasOwnProperty("date"))
37046
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.date);
37047
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
37048
+ writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.updatedAt);
37049
+ return writer;
37050
+ };
37051
+
37052
+ /**
37053
+ * Encodes the specified ContentfulEDHSSessionUpdated message, length delimited. Does not implicitly {@link ContentfulEDHSSessionUpdated.verify|verify} messages.
37054
+ * @function encodeDelimited
37055
+ * @memberof ContentfulEDHSSessionUpdated
37056
+ * @static
37057
+ * @param {IContentfulEDHSSessionUpdated} message ContentfulEDHSSessionUpdated message or plain object to encode
37058
+ * @param {$protobuf.Writer} [writer] Writer to encode to
37059
+ * @returns {$protobuf.Writer} Writer
37060
+ */
37061
+ ContentfulEDHSSessionUpdated.encodeDelimited = function encodeDelimited(message, writer) {
37062
+ return this.encode(message, writer).ldelim();
37063
+ };
37064
+
37065
+ /**
37066
+ * Decodes a ContentfulEDHSSessionUpdated message from the specified reader or buffer.
37067
+ * @function decode
37068
+ * @memberof ContentfulEDHSSessionUpdated
37069
+ * @static
37070
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
37071
+ * @param {number} [length] Message length if known beforehand
37072
+ * @returns {ContentfulEDHSSessionUpdated} ContentfulEDHSSessionUpdated
37073
+ * @throws {Error} If the payload is not a reader or valid buffer
37074
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
37075
+ */
37076
+ ContentfulEDHSSessionUpdated.decode = function decode(reader, length) {
37077
+ if (!(reader instanceof $Reader))
37078
+ reader = $Reader.create(reader);
37079
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulEDHSSessionUpdated();
37080
+ while (reader.pos < end) {
37081
+ var tag = reader.uint32();
37082
+ switch (tag >>> 3) {
37083
+ case 1:
37084
+ message.slug = reader.string();
37085
+ break;
37086
+ case 2:
37087
+ message.activityGroup = $root.contentful.SlugReference.decode(reader, reader.uint32());
37088
+ break;
37089
+ case 3:
37090
+ message.date = reader.string();
37091
+ break;
37092
+ case 4:
37093
+ message.updatedAt = reader.uint64();
37094
+ break;
37095
+ default:
37096
+ reader.skipType(tag & 7);
37097
+ break;
37098
+ }
37099
+ }
37100
+ return message;
37101
+ };
37102
+
37103
+ /**
37104
+ * Decodes a ContentfulEDHSSessionUpdated message from the specified reader or buffer, length delimited.
37105
+ * @function decodeDelimited
37106
+ * @memberof ContentfulEDHSSessionUpdated
37107
+ * @static
37108
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
37109
+ * @returns {ContentfulEDHSSessionUpdated} ContentfulEDHSSessionUpdated
37110
+ * @throws {Error} If the payload is not a reader or valid buffer
37111
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
37112
+ */
37113
+ ContentfulEDHSSessionUpdated.decodeDelimited = function decodeDelimited(reader) {
37114
+ if (!(reader instanceof $Reader))
37115
+ reader = new $Reader(reader);
37116
+ return this.decode(reader, reader.uint32());
37117
+ };
37118
+
37119
+ /**
37120
+ * Verifies a ContentfulEDHSSessionUpdated message.
37121
+ * @function verify
37122
+ * @memberof ContentfulEDHSSessionUpdated
37123
+ * @static
37124
+ * @param {Object.<string,*>} message Plain object to verify
37125
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
37126
+ */
37127
+ ContentfulEDHSSessionUpdated.verify = function verify(message) {
37128
+ if (typeof message !== "object" || message === null)
37129
+ return "object expected";
37130
+ if (message.slug != null && message.hasOwnProperty("slug"))
37131
+ if (!$util.isString(message.slug))
37132
+ return "slug: string expected";
37133
+ if (message.activityGroup != null && message.hasOwnProperty("activityGroup")) {
37134
+ var error = $root.contentful.SlugReference.verify(message.activityGroup);
37135
+ if (error)
37136
+ return "activityGroup." + error;
37137
+ }
37138
+ if (message.date != null && message.hasOwnProperty("date"))
37139
+ if (!$util.isString(message.date))
37140
+ return "date: string expected";
37141
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
37142
+ if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
37143
+ return "updatedAt: integer|Long expected";
37144
+ return null;
37145
+ };
37146
+
37147
+ /**
37148
+ * Creates a ContentfulEDHSSessionUpdated message from a plain object. Also converts values to their respective internal types.
37149
+ * @function fromObject
37150
+ * @memberof ContentfulEDHSSessionUpdated
37151
+ * @static
37152
+ * @param {Object.<string,*>} object Plain object
37153
+ * @returns {ContentfulEDHSSessionUpdated} ContentfulEDHSSessionUpdated
37154
+ */
37155
+ ContentfulEDHSSessionUpdated.fromObject = function fromObject(object) {
37156
+ if (object instanceof $root.ContentfulEDHSSessionUpdated)
37157
+ return object;
37158
+ var message = new $root.ContentfulEDHSSessionUpdated();
37159
+ if (object.slug != null)
37160
+ message.slug = String(object.slug);
37161
+ if (object.activityGroup != null) {
37162
+ if (typeof object.activityGroup !== "object")
37163
+ throw TypeError(".ContentfulEDHSSessionUpdated.activityGroup: object expected");
37164
+ message.activityGroup = $root.contentful.SlugReference.fromObject(object.activityGroup);
37165
+ }
37166
+ if (object.date != null)
37167
+ message.date = String(object.date);
37168
+ if (object.updatedAt != null)
37169
+ if ($util.Long)
37170
+ (message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
37171
+ else if (typeof object.updatedAt === "string")
37172
+ message.updatedAt = parseInt(object.updatedAt, 10);
37173
+ else if (typeof object.updatedAt === "number")
37174
+ message.updatedAt = object.updatedAt;
37175
+ else if (typeof object.updatedAt === "object")
37176
+ message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
37177
+ return message;
37178
+ };
37179
+
37180
+ /**
37181
+ * Creates a plain object from a ContentfulEDHSSessionUpdated message. Also converts values to other types if specified.
37182
+ * @function toObject
37183
+ * @memberof ContentfulEDHSSessionUpdated
37184
+ * @static
37185
+ * @param {ContentfulEDHSSessionUpdated} message ContentfulEDHSSessionUpdated
37186
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
37187
+ * @returns {Object.<string,*>} Plain object
37188
+ */
37189
+ ContentfulEDHSSessionUpdated.toObject = function toObject(message, options) {
37190
+ if (!options)
37191
+ options = {};
37192
+ var object = {};
37193
+ if (options.defaults) {
37194
+ object.slug = "";
37195
+ object.activityGroup = null;
37196
+ object.date = "";
37197
+ if ($util.Long) {
37198
+ var long = new $util.Long(0, 0, true);
37199
+ object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
37200
+ } else
37201
+ object.updatedAt = options.longs === String ? "0" : 0;
37202
+ }
37203
+ if (message.slug != null && message.hasOwnProperty("slug"))
37204
+ object.slug = message.slug;
37205
+ if (message.activityGroup != null && message.hasOwnProperty("activityGroup"))
37206
+ object.activityGroup = $root.contentful.SlugReference.toObject(message.activityGroup, options);
37207
+ if (message.date != null && message.hasOwnProperty("date"))
37208
+ object.date = message.date;
37209
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
37210
+ if (typeof message.updatedAt === "number")
37211
+ object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
37212
+ else
37213
+ 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;
37214
+ return object;
37215
+ };
37216
+
37217
+ /**
37218
+ * Converts this ContentfulEDHSSessionUpdated to JSON.
37219
+ * @function toJSON
37220
+ * @memberof ContentfulEDHSSessionUpdated
37221
+ * @instance
37222
+ * @returns {Object.<string,*>} JSON object
37223
+ */
37224
+ ContentfulEDHSSessionUpdated.prototype.toJSON = function toJSON() {
37225
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
37226
+ };
37227
+
37228
+ return ContentfulEDHSSessionUpdated;
37229
+ })();
37230
+
37231
+ $root.ContentfulEDHSSessionDeleted = (function() {
37232
+
37233
+ /**
37234
+ * Properties of a ContentfulEDHSSessionDeleted.
37235
+ * @exports IContentfulEDHSSessionDeleted
37236
+ * @interface IContentfulEDHSSessionDeleted
37237
+ * @property {string|null} [slug] ContentfulEDHSSessionDeleted slug
37238
+ * @property {number|Long|null} [deletedAt] ContentfulEDHSSessionDeleted deletedAt
37239
+ */
37240
+
37241
+ /**
37242
+ * Constructs a new ContentfulEDHSSessionDeleted.
37243
+ * @exports ContentfulEDHSSessionDeleted
37244
+ * @classdesc Represents a ContentfulEDHSSessionDeleted.
37245
+ * @implements IContentfulEDHSSessionDeleted
37246
+ * @constructor
37247
+ * @param {IContentfulEDHSSessionDeleted=} [properties] Properties to set
37248
+ */
37249
+ function ContentfulEDHSSessionDeleted(properties) {
37250
+ if (properties)
37251
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
37252
+ if (properties[keys[i]] != null)
37253
+ this[keys[i]] = properties[keys[i]];
37254
+ }
37255
+
37256
+ /**
37257
+ * ContentfulEDHSSessionDeleted slug.
37258
+ * @member {string} slug
37259
+ * @memberof ContentfulEDHSSessionDeleted
37260
+ * @instance
37261
+ */
37262
+ ContentfulEDHSSessionDeleted.prototype.slug = "";
37263
+
37264
+ /**
37265
+ * ContentfulEDHSSessionDeleted deletedAt.
37266
+ * @member {number|Long} deletedAt
37267
+ * @memberof ContentfulEDHSSessionDeleted
37268
+ * @instance
37269
+ */
37270
+ ContentfulEDHSSessionDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
37271
+
37272
+ /**
37273
+ * Creates a new ContentfulEDHSSessionDeleted instance using the specified properties.
37274
+ * @function create
37275
+ * @memberof ContentfulEDHSSessionDeleted
37276
+ * @static
37277
+ * @param {IContentfulEDHSSessionDeleted=} [properties] Properties to set
37278
+ * @returns {ContentfulEDHSSessionDeleted} ContentfulEDHSSessionDeleted instance
37279
+ */
37280
+ ContentfulEDHSSessionDeleted.create = function create(properties) {
37281
+ return new ContentfulEDHSSessionDeleted(properties);
37282
+ };
37283
+
37284
+ /**
37285
+ * Encodes the specified ContentfulEDHSSessionDeleted message. Does not implicitly {@link ContentfulEDHSSessionDeleted.verify|verify} messages.
37286
+ * @function encode
37287
+ * @memberof ContentfulEDHSSessionDeleted
37288
+ * @static
37289
+ * @param {IContentfulEDHSSessionDeleted} message ContentfulEDHSSessionDeleted message or plain object to encode
37290
+ * @param {$protobuf.Writer} [writer] Writer to encode to
37291
+ * @returns {$protobuf.Writer} Writer
37292
+ */
37293
+ ContentfulEDHSSessionDeleted.encode = function encode(message, writer) {
37294
+ if (!writer)
37295
+ writer = $Writer.create();
37296
+ if (message.slug != null && message.hasOwnProperty("slug"))
37297
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
37298
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
37299
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.deletedAt);
37300
+ return writer;
37301
+ };
37302
+
37303
+ /**
37304
+ * Encodes the specified ContentfulEDHSSessionDeleted message, length delimited. Does not implicitly {@link ContentfulEDHSSessionDeleted.verify|verify} messages.
37305
+ * @function encodeDelimited
37306
+ * @memberof ContentfulEDHSSessionDeleted
37307
+ * @static
37308
+ * @param {IContentfulEDHSSessionDeleted} message ContentfulEDHSSessionDeleted message or plain object to encode
37309
+ * @param {$protobuf.Writer} [writer] Writer to encode to
37310
+ * @returns {$protobuf.Writer} Writer
37311
+ */
37312
+ ContentfulEDHSSessionDeleted.encodeDelimited = function encodeDelimited(message, writer) {
37313
+ return this.encode(message, writer).ldelim();
37314
+ };
37315
+
37316
+ /**
37317
+ * Decodes a ContentfulEDHSSessionDeleted message from the specified reader or buffer.
37318
+ * @function decode
37319
+ * @memberof ContentfulEDHSSessionDeleted
37320
+ * @static
37321
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
37322
+ * @param {number} [length] Message length if known beforehand
37323
+ * @returns {ContentfulEDHSSessionDeleted} ContentfulEDHSSessionDeleted
37324
+ * @throws {Error} If the payload is not a reader or valid buffer
37325
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
37326
+ */
37327
+ ContentfulEDHSSessionDeleted.decode = function decode(reader, length) {
37328
+ if (!(reader instanceof $Reader))
37329
+ reader = $Reader.create(reader);
37330
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulEDHSSessionDeleted();
37331
+ while (reader.pos < end) {
37332
+ var tag = reader.uint32();
37333
+ switch (tag >>> 3) {
37334
+ case 1:
37335
+ message.slug = reader.string();
37336
+ break;
37337
+ case 2:
37338
+ message.deletedAt = reader.uint64();
37339
+ break;
37340
+ default:
37341
+ reader.skipType(tag & 7);
37342
+ break;
37343
+ }
37344
+ }
37345
+ return message;
37346
+ };
37347
+
37348
+ /**
37349
+ * Decodes a ContentfulEDHSSessionDeleted message from the specified reader or buffer, length delimited.
37350
+ * @function decodeDelimited
37351
+ * @memberof ContentfulEDHSSessionDeleted
37352
+ * @static
37353
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
37354
+ * @returns {ContentfulEDHSSessionDeleted} ContentfulEDHSSessionDeleted
37355
+ * @throws {Error} If the payload is not a reader or valid buffer
37356
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
37357
+ */
37358
+ ContentfulEDHSSessionDeleted.decodeDelimited = function decodeDelimited(reader) {
37359
+ if (!(reader instanceof $Reader))
37360
+ reader = new $Reader(reader);
37361
+ return this.decode(reader, reader.uint32());
37362
+ };
37363
+
37364
+ /**
37365
+ * Verifies a ContentfulEDHSSessionDeleted message.
37366
+ * @function verify
37367
+ * @memberof ContentfulEDHSSessionDeleted
37368
+ * @static
37369
+ * @param {Object.<string,*>} message Plain object to verify
37370
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
37371
+ */
37372
+ ContentfulEDHSSessionDeleted.verify = function verify(message) {
37373
+ if (typeof message !== "object" || message === null)
37374
+ return "object expected";
37375
+ if (message.slug != null && message.hasOwnProperty("slug"))
37376
+ if (!$util.isString(message.slug))
37377
+ return "slug: string expected";
37378
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
37379
+ if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
37380
+ return "deletedAt: integer|Long expected";
37381
+ return null;
37382
+ };
37383
+
37384
+ /**
37385
+ * Creates a ContentfulEDHSSessionDeleted message from a plain object. Also converts values to their respective internal types.
37386
+ * @function fromObject
37387
+ * @memberof ContentfulEDHSSessionDeleted
37388
+ * @static
37389
+ * @param {Object.<string,*>} object Plain object
37390
+ * @returns {ContentfulEDHSSessionDeleted} ContentfulEDHSSessionDeleted
37391
+ */
37392
+ ContentfulEDHSSessionDeleted.fromObject = function fromObject(object) {
37393
+ if (object instanceof $root.ContentfulEDHSSessionDeleted)
37394
+ return object;
37395
+ var message = new $root.ContentfulEDHSSessionDeleted();
37396
+ if (object.slug != null)
37397
+ message.slug = String(object.slug);
37398
+ if (object.deletedAt != null)
37399
+ if ($util.Long)
37400
+ (message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
37401
+ else if (typeof object.deletedAt === "string")
37402
+ message.deletedAt = parseInt(object.deletedAt, 10);
37403
+ else if (typeof object.deletedAt === "number")
37404
+ message.deletedAt = object.deletedAt;
37405
+ else if (typeof object.deletedAt === "object")
37406
+ message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
37407
+ return message;
37408
+ };
37409
+
37410
+ /**
37411
+ * Creates a plain object from a ContentfulEDHSSessionDeleted message. Also converts values to other types if specified.
37412
+ * @function toObject
37413
+ * @memberof ContentfulEDHSSessionDeleted
37414
+ * @static
37415
+ * @param {ContentfulEDHSSessionDeleted} message ContentfulEDHSSessionDeleted
37416
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
37417
+ * @returns {Object.<string,*>} Plain object
37418
+ */
37419
+ ContentfulEDHSSessionDeleted.toObject = function toObject(message, options) {
37420
+ if (!options)
37421
+ options = {};
37422
+ var object = {};
37423
+ if (options.defaults) {
37424
+ object.slug = "";
37425
+ if ($util.Long) {
37426
+ var long = new $util.Long(0, 0, true);
37427
+ object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
37428
+ } else
37429
+ object.deletedAt = options.longs === String ? "0" : 0;
37430
+ }
37431
+ if (message.slug != null && message.hasOwnProperty("slug"))
37432
+ object.slug = message.slug;
37433
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
37434
+ if (typeof message.deletedAt === "number")
37435
+ object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
37436
+ else
37437
+ 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;
37438
+ return object;
37439
+ };
37440
+
37441
+ /**
37442
+ * Converts this ContentfulEDHSSessionDeleted to JSON.
37443
+ * @function toJSON
37444
+ * @memberof ContentfulEDHSSessionDeleted
37445
+ * @instance
37446
+ * @returns {Object.<string,*>} JSON object
37447
+ */
37448
+ ContentfulEDHSSessionDeleted.prototype.toJSON = function toJSON() {
37449
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
37450
+ };
37451
+
37452
+ return ContentfulEDHSSessionDeleted;
37453
+ })();
37454
+
36685
37455
  $root.ContentfulContentModelCreated = (function() {
36686
37456
 
36687
37457
  /**
package/package.json CHANGED
@@ -16,5 +16,5 @@
16
16
  "main": "lib/index.js",
17
17
  "name": "@headspace/protos-events",
18
18
  "typings": "lib/index.d.ts",
19
- "version": "1.240.0"
19
+ "version": "1.241.0"
20
20
  }