@headspace/protos-events 1.152.0 → 1.153.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
@@ -9389,6 +9389,330 @@ export class ContentfulModuleDescriptorDeleted implements IContentfulModuleDescr
9389
9389
  public toJSON(): { [k: string]: any };
9390
9390
  }
9391
9391
 
9392
+ /** Properties of a ContentfulFeaturedContentCreated. */
9393
+ export interface IContentfulFeaturedContentCreated {
9394
+
9395
+ /** ContentfulFeaturedContentCreated slug */
9396
+ slug?: (string|null);
9397
+
9398
+ /** ContentfulFeaturedContentCreated featureType */
9399
+ featureType?: (string|null);
9400
+
9401
+ /** ContentfulFeaturedContentCreated mode */
9402
+ mode?: (string|null);
9403
+
9404
+ /** ContentfulFeaturedContentCreated content */
9405
+ content?: (contentful.ISlugReference[]|null);
9406
+
9407
+ /** ContentfulFeaturedContentCreated createdAt */
9408
+ createdAt?: (number|Long|null);
9409
+ }
9410
+
9411
+ /** Represents a ContentfulFeaturedContentCreated. */
9412
+ export class ContentfulFeaturedContentCreated implements IContentfulFeaturedContentCreated {
9413
+
9414
+ /**
9415
+ * Constructs a new ContentfulFeaturedContentCreated.
9416
+ * @param [properties] Properties to set
9417
+ */
9418
+ constructor(properties?: IContentfulFeaturedContentCreated);
9419
+
9420
+ /** ContentfulFeaturedContentCreated slug. */
9421
+ public slug: string;
9422
+
9423
+ /** ContentfulFeaturedContentCreated featureType. */
9424
+ public featureType: string;
9425
+
9426
+ /** ContentfulFeaturedContentCreated mode. */
9427
+ public mode: string;
9428
+
9429
+ /** ContentfulFeaturedContentCreated content. */
9430
+ public content: contentful.ISlugReference[];
9431
+
9432
+ /** ContentfulFeaturedContentCreated createdAt. */
9433
+ public createdAt: (number|Long);
9434
+
9435
+ /**
9436
+ * Creates a new ContentfulFeaturedContentCreated instance using the specified properties.
9437
+ * @param [properties] Properties to set
9438
+ * @returns ContentfulFeaturedContentCreated instance
9439
+ */
9440
+ public static create(properties?: IContentfulFeaturedContentCreated): ContentfulFeaturedContentCreated;
9441
+
9442
+ /**
9443
+ * Encodes the specified ContentfulFeaturedContentCreated message. Does not implicitly {@link ContentfulFeaturedContentCreated.verify|verify} messages.
9444
+ * @param message ContentfulFeaturedContentCreated message or plain object to encode
9445
+ * @param [writer] Writer to encode to
9446
+ * @returns Writer
9447
+ */
9448
+ public static encode(message: IContentfulFeaturedContentCreated, writer?: $protobuf.Writer): $protobuf.Writer;
9449
+
9450
+ /**
9451
+ * Encodes the specified ContentfulFeaturedContentCreated message, length delimited. Does not implicitly {@link ContentfulFeaturedContentCreated.verify|verify} messages.
9452
+ * @param message ContentfulFeaturedContentCreated message or plain object to encode
9453
+ * @param [writer] Writer to encode to
9454
+ * @returns Writer
9455
+ */
9456
+ public static encodeDelimited(message: IContentfulFeaturedContentCreated, writer?: $protobuf.Writer): $protobuf.Writer;
9457
+
9458
+ /**
9459
+ * Decodes a ContentfulFeaturedContentCreated message from the specified reader or buffer.
9460
+ * @param reader Reader or buffer to decode from
9461
+ * @param [length] Message length if known beforehand
9462
+ * @returns ContentfulFeaturedContentCreated
9463
+ * @throws {Error} If the payload is not a reader or valid buffer
9464
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9465
+ */
9466
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ContentfulFeaturedContentCreated;
9467
+
9468
+ /**
9469
+ * Decodes a ContentfulFeaturedContentCreated message from the specified reader or buffer, length delimited.
9470
+ * @param reader Reader or buffer to decode from
9471
+ * @returns ContentfulFeaturedContentCreated
9472
+ * @throws {Error} If the payload is not a reader or valid buffer
9473
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9474
+ */
9475
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ContentfulFeaturedContentCreated;
9476
+
9477
+ /**
9478
+ * Verifies a ContentfulFeaturedContentCreated message.
9479
+ * @param message Plain object to verify
9480
+ * @returns `null` if valid, otherwise the reason why it is not
9481
+ */
9482
+ public static verify(message: { [k: string]: any }): (string|null);
9483
+
9484
+ /**
9485
+ * Creates a ContentfulFeaturedContentCreated message from a plain object. Also converts values to their respective internal types.
9486
+ * @param object Plain object
9487
+ * @returns ContentfulFeaturedContentCreated
9488
+ */
9489
+ public static fromObject(object: { [k: string]: any }): ContentfulFeaturedContentCreated;
9490
+
9491
+ /**
9492
+ * Creates a plain object from a ContentfulFeaturedContentCreated message. Also converts values to other types if specified.
9493
+ * @param message ContentfulFeaturedContentCreated
9494
+ * @param [options] Conversion options
9495
+ * @returns Plain object
9496
+ */
9497
+ public static toObject(message: ContentfulFeaturedContentCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
9498
+
9499
+ /**
9500
+ * Converts this ContentfulFeaturedContentCreated to JSON.
9501
+ * @returns JSON object
9502
+ */
9503
+ public toJSON(): { [k: string]: any };
9504
+ }
9505
+
9506
+ /** Properties of a ContentfulFeaturedContentUpdated. */
9507
+ export interface IContentfulFeaturedContentUpdated {
9508
+
9509
+ /** ContentfulFeaturedContentUpdated slug */
9510
+ slug?: (string|null);
9511
+
9512
+ /** ContentfulFeaturedContentUpdated featureType */
9513
+ featureType?: (string|null);
9514
+
9515
+ /** ContentfulFeaturedContentUpdated mode */
9516
+ mode?: (string|null);
9517
+
9518
+ /** ContentfulFeaturedContentUpdated content */
9519
+ content?: (contentful.ISlugReference[]|null);
9520
+
9521
+ /** ContentfulFeaturedContentUpdated updatedAt */
9522
+ updatedAt?: (number|Long|null);
9523
+ }
9524
+
9525
+ /** Represents a ContentfulFeaturedContentUpdated. */
9526
+ export class ContentfulFeaturedContentUpdated implements IContentfulFeaturedContentUpdated {
9527
+
9528
+ /**
9529
+ * Constructs a new ContentfulFeaturedContentUpdated.
9530
+ * @param [properties] Properties to set
9531
+ */
9532
+ constructor(properties?: IContentfulFeaturedContentUpdated);
9533
+
9534
+ /** ContentfulFeaturedContentUpdated slug. */
9535
+ public slug: string;
9536
+
9537
+ /** ContentfulFeaturedContentUpdated featureType. */
9538
+ public featureType: string;
9539
+
9540
+ /** ContentfulFeaturedContentUpdated mode. */
9541
+ public mode: string;
9542
+
9543
+ /** ContentfulFeaturedContentUpdated content. */
9544
+ public content: contentful.ISlugReference[];
9545
+
9546
+ /** ContentfulFeaturedContentUpdated updatedAt. */
9547
+ public updatedAt: (number|Long);
9548
+
9549
+ /**
9550
+ * Creates a new ContentfulFeaturedContentUpdated instance using the specified properties.
9551
+ * @param [properties] Properties to set
9552
+ * @returns ContentfulFeaturedContentUpdated instance
9553
+ */
9554
+ public static create(properties?: IContentfulFeaturedContentUpdated): ContentfulFeaturedContentUpdated;
9555
+
9556
+ /**
9557
+ * Encodes the specified ContentfulFeaturedContentUpdated message. Does not implicitly {@link ContentfulFeaturedContentUpdated.verify|verify} messages.
9558
+ * @param message ContentfulFeaturedContentUpdated message or plain object to encode
9559
+ * @param [writer] Writer to encode to
9560
+ * @returns Writer
9561
+ */
9562
+ public static encode(message: IContentfulFeaturedContentUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
9563
+
9564
+ /**
9565
+ * Encodes the specified ContentfulFeaturedContentUpdated message, length delimited. Does not implicitly {@link ContentfulFeaturedContentUpdated.verify|verify} messages.
9566
+ * @param message ContentfulFeaturedContentUpdated message or plain object to encode
9567
+ * @param [writer] Writer to encode to
9568
+ * @returns Writer
9569
+ */
9570
+ public static encodeDelimited(message: IContentfulFeaturedContentUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
9571
+
9572
+ /**
9573
+ * Decodes a ContentfulFeaturedContentUpdated message from the specified reader or buffer.
9574
+ * @param reader Reader or buffer to decode from
9575
+ * @param [length] Message length if known beforehand
9576
+ * @returns ContentfulFeaturedContentUpdated
9577
+ * @throws {Error} If the payload is not a reader or valid buffer
9578
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9579
+ */
9580
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ContentfulFeaturedContentUpdated;
9581
+
9582
+ /**
9583
+ * Decodes a ContentfulFeaturedContentUpdated message from the specified reader or buffer, length delimited.
9584
+ * @param reader Reader or buffer to decode from
9585
+ * @returns ContentfulFeaturedContentUpdated
9586
+ * @throws {Error} If the payload is not a reader or valid buffer
9587
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9588
+ */
9589
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ContentfulFeaturedContentUpdated;
9590
+
9591
+ /**
9592
+ * Verifies a ContentfulFeaturedContentUpdated message.
9593
+ * @param message Plain object to verify
9594
+ * @returns `null` if valid, otherwise the reason why it is not
9595
+ */
9596
+ public static verify(message: { [k: string]: any }): (string|null);
9597
+
9598
+ /**
9599
+ * Creates a ContentfulFeaturedContentUpdated message from a plain object. Also converts values to their respective internal types.
9600
+ * @param object Plain object
9601
+ * @returns ContentfulFeaturedContentUpdated
9602
+ */
9603
+ public static fromObject(object: { [k: string]: any }): ContentfulFeaturedContentUpdated;
9604
+
9605
+ /**
9606
+ * Creates a plain object from a ContentfulFeaturedContentUpdated message. Also converts values to other types if specified.
9607
+ * @param message ContentfulFeaturedContentUpdated
9608
+ * @param [options] Conversion options
9609
+ * @returns Plain object
9610
+ */
9611
+ public static toObject(message: ContentfulFeaturedContentUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
9612
+
9613
+ /**
9614
+ * Converts this ContentfulFeaturedContentUpdated to JSON.
9615
+ * @returns JSON object
9616
+ */
9617
+ public toJSON(): { [k: string]: any };
9618
+ }
9619
+
9620
+ /** Properties of a ContentfulFeaturedContentDeleted. */
9621
+ export interface IContentfulFeaturedContentDeleted {
9622
+
9623
+ /** ContentfulFeaturedContentDeleted slug */
9624
+ slug?: (string|null);
9625
+
9626
+ /** ContentfulFeaturedContentDeleted deletedAt */
9627
+ deletedAt?: (number|Long|null);
9628
+ }
9629
+
9630
+ /** Represents a ContentfulFeaturedContentDeleted. */
9631
+ export class ContentfulFeaturedContentDeleted implements IContentfulFeaturedContentDeleted {
9632
+
9633
+ /**
9634
+ * Constructs a new ContentfulFeaturedContentDeleted.
9635
+ * @param [properties] Properties to set
9636
+ */
9637
+ constructor(properties?: IContentfulFeaturedContentDeleted);
9638
+
9639
+ /** ContentfulFeaturedContentDeleted slug. */
9640
+ public slug: string;
9641
+
9642
+ /** ContentfulFeaturedContentDeleted deletedAt. */
9643
+ public deletedAt: (number|Long);
9644
+
9645
+ /**
9646
+ * Creates a new ContentfulFeaturedContentDeleted instance using the specified properties.
9647
+ * @param [properties] Properties to set
9648
+ * @returns ContentfulFeaturedContentDeleted instance
9649
+ */
9650
+ public static create(properties?: IContentfulFeaturedContentDeleted): ContentfulFeaturedContentDeleted;
9651
+
9652
+ /**
9653
+ * Encodes the specified ContentfulFeaturedContentDeleted message. Does not implicitly {@link ContentfulFeaturedContentDeleted.verify|verify} messages.
9654
+ * @param message ContentfulFeaturedContentDeleted message or plain object to encode
9655
+ * @param [writer] Writer to encode to
9656
+ * @returns Writer
9657
+ */
9658
+ public static encode(message: IContentfulFeaturedContentDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
9659
+
9660
+ /**
9661
+ * Encodes the specified ContentfulFeaturedContentDeleted message, length delimited. Does not implicitly {@link ContentfulFeaturedContentDeleted.verify|verify} messages.
9662
+ * @param message ContentfulFeaturedContentDeleted message or plain object to encode
9663
+ * @param [writer] Writer to encode to
9664
+ * @returns Writer
9665
+ */
9666
+ public static encodeDelimited(message: IContentfulFeaturedContentDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
9667
+
9668
+ /**
9669
+ * Decodes a ContentfulFeaturedContentDeleted message from the specified reader or buffer.
9670
+ * @param reader Reader or buffer to decode from
9671
+ * @param [length] Message length if known beforehand
9672
+ * @returns ContentfulFeaturedContentDeleted
9673
+ * @throws {Error} If the payload is not a reader or valid buffer
9674
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9675
+ */
9676
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ContentfulFeaturedContentDeleted;
9677
+
9678
+ /**
9679
+ * Decodes a ContentfulFeaturedContentDeleted message from the specified reader or buffer, length delimited.
9680
+ * @param reader Reader or buffer to decode from
9681
+ * @returns ContentfulFeaturedContentDeleted
9682
+ * @throws {Error} If the payload is not a reader or valid buffer
9683
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9684
+ */
9685
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ContentfulFeaturedContentDeleted;
9686
+
9687
+ /**
9688
+ * Verifies a ContentfulFeaturedContentDeleted message.
9689
+ * @param message Plain object to verify
9690
+ * @returns `null` if valid, otherwise the reason why it is not
9691
+ */
9692
+ public static verify(message: { [k: string]: any }): (string|null);
9693
+
9694
+ /**
9695
+ * Creates a ContentfulFeaturedContentDeleted message from a plain object. Also converts values to their respective internal types.
9696
+ * @param object Plain object
9697
+ * @returns ContentfulFeaturedContentDeleted
9698
+ */
9699
+ public static fromObject(object: { [k: string]: any }): ContentfulFeaturedContentDeleted;
9700
+
9701
+ /**
9702
+ * Creates a plain object from a ContentfulFeaturedContentDeleted message. Also converts values to other types if specified.
9703
+ * @param message ContentfulFeaturedContentDeleted
9704
+ * @param [options] Conversion options
9705
+ * @returns Plain object
9706
+ */
9707
+ public static toObject(message: ContentfulFeaturedContentDeleted, options?: $protobuf.IConversionOptions): { [k: string]: any };
9708
+
9709
+ /**
9710
+ * Converts this ContentfulFeaturedContentDeleted to JSON.
9711
+ * @returns JSON object
9712
+ */
9713
+ public toJSON(): { [k: string]: any };
9714
+ }
9715
+
9392
9716
  /** Properties of a ContentfulContentModelCreated. */
9393
9717
  export interface IContentfulContentModelCreated {
9394
9718
 
package/lib/index.js CHANGED
@@ -25977,6 +25977,854 @@ $root.ContentfulModuleDescriptorDeleted = (function() {
25977
25977
  return ContentfulModuleDescriptorDeleted;
25978
25978
  })();
25979
25979
 
25980
+ $root.ContentfulFeaturedContentCreated = (function() {
25981
+
25982
+ /**
25983
+ * Properties of a ContentfulFeaturedContentCreated.
25984
+ * @exports IContentfulFeaturedContentCreated
25985
+ * @interface IContentfulFeaturedContentCreated
25986
+ * @property {string|null} [slug] ContentfulFeaturedContentCreated slug
25987
+ * @property {string|null} [featureType] ContentfulFeaturedContentCreated featureType
25988
+ * @property {string|null} [mode] ContentfulFeaturedContentCreated mode
25989
+ * @property {Array.<contentful.ISlugReference>|null} [content] ContentfulFeaturedContentCreated content
25990
+ * @property {number|Long|null} [createdAt] ContentfulFeaturedContentCreated createdAt
25991
+ */
25992
+
25993
+ /**
25994
+ * Constructs a new ContentfulFeaturedContentCreated.
25995
+ * @exports ContentfulFeaturedContentCreated
25996
+ * @classdesc Represents a ContentfulFeaturedContentCreated.
25997
+ * @implements IContentfulFeaturedContentCreated
25998
+ * @constructor
25999
+ * @param {IContentfulFeaturedContentCreated=} [properties] Properties to set
26000
+ */
26001
+ function ContentfulFeaturedContentCreated(properties) {
26002
+ this.content = [];
26003
+ if (properties)
26004
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
26005
+ if (properties[keys[i]] != null)
26006
+ this[keys[i]] = properties[keys[i]];
26007
+ }
26008
+
26009
+ /**
26010
+ * ContentfulFeaturedContentCreated slug.
26011
+ * @member {string} slug
26012
+ * @memberof ContentfulFeaturedContentCreated
26013
+ * @instance
26014
+ */
26015
+ ContentfulFeaturedContentCreated.prototype.slug = "";
26016
+
26017
+ /**
26018
+ * ContentfulFeaturedContentCreated featureType.
26019
+ * @member {string} featureType
26020
+ * @memberof ContentfulFeaturedContentCreated
26021
+ * @instance
26022
+ */
26023
+ ContentfulFeaturedContentCreated.prototype.featureType = "";
26024
+
26025
+ /**
26026
+ * ContentfulFeaturedContentCreated mode.
26027
+ * @member {string} mode
26028
+ * @memberof ContentfulFeaturedContentCreated
26029
+ * @instance
26030
+ */
26031
+ ContentfulFeaturedContentCreated.prototype.mode = "";
26032
+
26033
+ /**
26034
+ * ContentfulFeaturedContentCreated content.
26035
+ * @member {Array.<contentful.ISlugReference>} content
26036
+ * @memberof ContentfulFeaturedContentCreated
26037
+ * @instance
26038
+ */
26039
+ ContentfulFeaturedContentCreated.prototype.content = $util.emptyArray;
26040
+
26041
+ /**
26042
+ * ContentfulFeaturedContentCreated createdAt.
26043
+ * @member {number|Long} createdAt
26044
+ * @memberof ContentfulFeaturedContentCreated
26045
+ * @instance
26046
+ */
26047
+ ContentfulFeaturedContentCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
26048
+
26049
+ /**
26050
+ * Creates a new ContentfulFeaturedContentCreated instance using the specified properties.
26051
+ * @function create
26052
+ * @memberof ContentfulFeaturedContentCreated
26053
+ * @static
26054
+ * @param {IContentfulFeaturedContentCreated=} [properties] Properties to set
26055
+ * @returns {ContentfulFeaturedContentCreated} ContentfulFeaturedContentCreated instance
26056
+ */
26057
+ ContentfulFeaturedContentCreated.create = function create(properties) {
26058
+ return new ContentfulFeaturedContentCreated(properties);
26059
+ };
26060
+
26061
+ /**
26062
+ * Encodes the specified ContentfulFeaturedContentCreated message. Does not implicitly {@link ContentfulFeaturedContentCreated.verify|verify} messages.
26063
+ * @function encode
26064
+ * @memberof ContentfulFeaturedContentCreated
26065
+ * @static
26066
+ * @param {IContentfulFeaturedContentCreated} message ContentfulFeaturedContentCreated message or plain object to encode
26067
+ * @param {$protobuf.Writer} [writer] Writer to encode to
26068
+ * @returns {$protobuf.Writer} Writer
26069
+ */
26070
+ ContentfulFeaturedContentCreated.encode = function encode(message, writer) {
26071
+ if (!writer)
26072
+ writer = $Writer.create();
26073
+ if (message.slug != null && message.hasOwnProperty("slug"))
26074
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
26075
+ if (message.featureType != null && message.hasOwnProperty("featureType"))
26076
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.featureType);
26077
+ if (message.mode != null && message.hasOwnProperty("mode"))
26078
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.mode);
26079
+ if (message.content != null && message.content.length)
26080
+ for (var i = 0; i < message.content.length; ++i)
26081
+ $root.contentful.SlugReference.encode(message.content[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
26082
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
26083
+ writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.createdAt);
26084
+ return writer;
26085
+ };
26086
+
26087
+ /**
26088
+ * Encodes the specified ContentfulFeaturedContentCreated message, length delimited. Does not implicitly {@link ContentfulFeaturedContentCreated.verify|verify} messages.
26089
+ * @function encodeDelimited
26090
+ * @memberof ContentfulFeaturedContentCreated
26091
+ * @static
26092
+ * @param {IContentfulFeaturedContentCreated} message ContentfulFeaturedContentCreated message or plain object to encode
26093
+ * @param {$protobuf.Writer} [writer] Writer to encode to
26094
+ * @returns {$protobuf.Writer} Writer
26095
+ */
26096
+ ContentfulFeaturedContentCreated.encodeDelimited = function encodeDelimited(message, writer) {
26097
+ return this.encode(message, writer).ldelim();
26098
+ };
26099
+
26100
+ /**
26101
+ * Decodes a ContentfulFeaturedContentCreated message from the specified reader or buffer.
26102
+ * @function decode
26103
+ * @memberof ContentfulFeaturedContentCreated
26104
+ * @static
26105
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
26106
+ * @param {number} [length] Message length if known beforehand
26107
+ * @returns {ContentfulFeaturedContentCreated} ContentfulFeaturedContentCreated
26108
+ * @throws {Error} If the payload is not a reader or valid buffer
26109
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
26110
+ */
26111
+ ContentfulFeaturedContentCreated.decode = function decode(reader, length) {
26112
+ if (!(reader instanceof $Reader))
26113
+ reader = $Reader.create(reader);
26114
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulFeaturedContentCreated();
26115
+ while (reader.pos < end) {
26116
+ var tag = reader.uint32();
26117
+ switch (tag >>> 3) {
26118
+ case 1:
26119
+ message.slug = reader.string();
26120
+ break;
26121
+ case 2:
26122
+ message.featureType = reader.string();
26123
+ break;
26124
+ case 3:
26125
+ message.mode = reader.string();
26126
+ break;
26127
+ case 4:
26128
+ if (!(message.content && message.content.length))
26129
+ message.content = [];
26130
+ message.content.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
26131
+ break;
26132
+ case 5:
26133
+ message.createdAt = reader.uint64();
26134
+ break;
26135
+ default:
26136
+ reader.skipType(tag & 7);
26137
+ break;
26138
+ }
26139
+ }
26140
+ return message;
26141
+ };
26142
+
26143
+ /**
26144
+ * Decodes a ContentfulFeaturedContentCreated message from the specified reader or buffer, length delimited.
26145
+ * @function decodeDelimited
26146
+ * @memberof ContentfulFeaturedContentCreated
26147
+ * @static
26148
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
26149
+ * @returns {ContentfulFeaturedContentCreated} ContentfulFeaturedContentCreated
26150
+ * @throws {Error} If the payload is not a reader or valid buffer
26151
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
26152
+ */
26153
+ ContentfulFeaturedContentCreated.decodeDelimited = function decodeDelimited(reader) {
26154
+ if (!(reader instanceof $Reader))
26155
+ reader = new $Reader(reader);
26156
+ return this.decode(reader, reader.uint32());
26157
+ };
26158
+
26159
+ /**
26160
+ * Verifies a ContentfulFeaturedContentCreated message.
26161
+ * @function verify
26162
+ * @memberof ContentfulFeaturedContentCreated
26163
+ * @static
26164
+ * @param {Object.<string,*>} message Plain object to verify
26165
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
26166
+ */
26167
+ ContentfulFeaturedContentCreated.verify = function verify(message) {
26168
+ if (typeof message !== "object" || message === null)
26169
+ return "object expected";
26170
+ if (message.slug != null && message.hasOwnProperty("slug"))
26171
+ if (!$util.isString(message.slug))
26172
+ return "slug: string expected";
26173
+ if (message.featureType != null && message.hasOwnProperty("featureType"))
26174
+ if (!$util.isString(message.featureType))
26175
+ return "featureType: string expected";
26176
+ if (message.mode != null && message.hasOwnProperty("mode"))
26177
+ if (!$util.isString(message.mode))
26178
+ return "mode: string expected";
26179
+ if (message.content != null && message.hasOwnProperty("content")) {
26180
+ if (!Array.isArray(message.content))
26181
+ return "content: array expected";
26182
+ for (var i = 0; i < message.content.length; ++i) {
26183
+ var error = $root.contentful.SlugReference.verify(message.content[i]);
26184
+ if (error)
26185
+ return "content." + error;
26186
+ }
26187
+ }
26188
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
26189
+ if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
26190
+ return "createdAt: integer|Long expected";
26191
+ return null;
26192
+ };
26193
+
26194
+ /**
26195
+ * Creates a ContentfulFeaturedContentCreated message from a plain object. Also converts values to their respective internal types.
26196
+ * @function fromObject
26197
+ * @memberof ContentfulFeaturedContentCreated
26198
+ * @static
26199
+ * @param {Object.<string,*>} object Plain object
26200
+ * @returns {ContentfulFeaturedContentCreated} ContentfulFeaturedContentCreated
26201
+ */
26202
+ ContentfulFeaturedContentCreated.fromObject = function fromObject(object) {
26203
+ if (object instanceof $root.ContentfulFeaturedContentCreated)
26204
+ return object;
26205
+ var message = new $root.ContentfulFeaturedContentCreated();
26206
+ if (object.slug != null)
26207
+ message.slug = String(object.slug);
26208
+ if (object.featureType != null)
26209
+ message.featureType = String(object.featureType);
26210
+ if (object.mode != null)
26211
+ message.mode = String(object.mode);
26212
+ if (object.content) {
26213
+ if (!Array.isArray(object.content))
26214
+ throw TypeError(".ContentfulFeaturedContentCreated.content: array expected");
26215
+ message.content = [];
26216
+ for (var i = 0; i < object.content.length; ++i) {
26217
+ if (typeof object.content[i] !== "object")
26218
+ throw TypeError(".ContentfulFeaturedContentCreated.content: object expected");
26219
+ message.content[i] = $root.contentful.SlugReference.fromObject(object.content[i]);
26220
+ }
26221
+ }
26222
+ if (object.createdAt != null)
26223
+ if ($util.Long)
26224
+ (message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
26225
+ else if (typeof object.createdAt === "string")
26226
+ message.createdAt = parseInt(object.createdAt, 10);
26227
+ else if (typeof object.createdAt === "number")
26228
+ message.createdAt = object.createdAt;
26229
+ else if (typeof object.createdAt === "object")
26230
+ message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
26231
+ return message;
26232
+ };
26233
+
26234
+ /**
26235
+ * Creates a plain object from a ContentfulFeaturedContentCreated message. Also converts values to other types if specified.
26236
+ * @function toObject
26237
+ * @memberof ContentfulFeaturedContentCreated
26238
+ * @static
26239
+ * @param {ContentfulFeaturedContentCreated} message ContentfulFeaturedContentCreated
26240
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
26241
+ * @returns {Object.<string,*>} Plain object
26242
+ */
26243
+ ContentfulFeaturedContentCreated.toObject = function toObject(message, options) {
26244
+ if (!options)
26245
+ options = {};
26246
+ var object = {};
26247
+ if (options.arrays || options.defaults)
26248
+ object.content = [];
26249
+ if (options.defaults) {
26250
+ object.slug = "";
26251
+ object.featureType = "";
26252
+ object.mode = "";
26253
+ if ($util.Long) {
26254
+ var long = new $util.Long(0, 0, true);
26255
+ object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
26256
+ } else
26257
+ object.createdAt = options.longs === String ? "0" : 0;
26258
+ }
26259
+ if (message.slug != null && message.hasOwnProperty("slug"))
26260
+ object.slug = message.slug;
26261
+ if (message.featureType != null && message.hasOwnProperty("featureType"))
26262
+ object.featureType = message.featureType;
26263
+ if (message.mode != null && message.hasOwnProperty("mode"))
26264
+ object.mode = message.mode;
26265
+ if (message.content && message.content.length) {
26266
+ object.content = [];
26267
+ for (var j = 0; j < message.content.length; ++j)
26268
+ object.content[j] = $root.contentful.SlugReference.toObject(message.content[j], options);
26269
+ }
26270
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
26271
+ if (typeof message.createdAt === "number")
26272
+ object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
26273
+ else
26274
+ 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;
26275
+ return object;
26276
+ };
26277
+
26278
+ /**
26279
+ * Converts this ContentfulFeaturedContentCreated to JSON.
26280
+ * @function toJSON
26281
+ * @memberof ContentfulFeaturedContentCreated
26282
+ * @instance
26283
+ * @returns {Object.<string,*>} JSON object
26284
+ */
26285
+ ContentfulFeaturedContentCreated.prototype.toJSON = function toJSON() {
26286
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
26287
+ };
26288
+
26289
+ return ContentfulFeaturedContentCreated;
26290
+ })();
26291
+
26292
+ $root.ContentfulFeaturedContentUpdated = (function() {
26293
+
26294
+ /**
26295
+ * Properties of a ContentfulFeaturedContentUpdated.
26296
+ * @exports IContentfulFeaturedContentUpdated
26297
+ * @interface IContentfulFeaturedContentUpdated
26298
+ * @property {string|null} [slug] ContentfulFeaturedContentUpdated slug
26299
+ * @property {string|null} [featureType] ContentfulFeaturedContentUpdated featureType
26300
+ * @property {string|null} [mode] ContentfulFeaturedContentUpdated mode
26301
+ * @property {Array.<contentful.ISlugReference>|null} [content] ContentfulFeaturedContentUpdated content
26302
+ * @property {number|Long|null} [updatedAt] ContentfulFeaturedContentUpdated updatedAt
26303
+ */
26304
+
26305
+ /**
26306
+ * Constructs a new ContentfulFeaturedContentUpdated.
26307
+ * @exports ContentfulFeaturedContentUpdated
26308
+ * @classdesc Represents a ContentfulFeaturedContentUpdated.
26309
+ * @implements IContentfulFeaturedContentUpdated
26310
+ * @constructor
26311
+ * @param {IContentfulFeaturedContentUpdated=} [properties] Properties to set
26312
+ */
26313
+ function ContentfulFeaturedContentUpdated(properties) {
26314
+ this.content = [];
26315
+ if (properties)
26316
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
26317
+ if (properties[keys[i]] != null)
26318
+ this[keys[i]] = properties[keys[i]];
26319
+ }
26320
+
26321
+ /**
26322
+ * ContentfulFeaturedContentUpdated slug.
26323
+ * @member {string} slug
26324
+ * @memberof ContentfulFeaturedContentUpdated
26325
+ * @instance
26326
+ */
26327
+ ContentfulFeaturedContentUpdated.prototype.slug = "";
26328
+
26329
+ /**
26330
+ * ContentfulFeaturedContentUpdated featureType.
26331
+ * @member {string} featureType
26332
+ * @memberof ContentfulFeaturedContentUpdated
26333
+ * @instance
26334
+ */
26335
+ ContentfulFeaturedContentUpdated.prototype.featureType = "";
26336
+
26337
+ /**
26338
+ * ContentfulFeaturedContentUpdated mode.
26339
+ * @member {string} mode
26340
+ * @memberof ContentfulFeaturedContentUpdated
26341
+ * @instance
26342
+ */
26343
+ ContentfulFeaturedContentUpdated.prototype.mode = "";
26344
+
26345
+ /**
26346
+ * ContentfulFeaturedContentUpdated content.
26347
+ * @member {Array.<contentful.ISlugReference>} content
26348
+ * @memberof ContentfulFeaturedContentUpdated
26349
+ * @instance
26350
+ */
26351
+ ContentfulFeaturedContentUpdated.prototype.content = $util.emptyArray;
26352
+
26353
+ /**
26354
+ * ContentfulFeaturedContentUpdated updatedAt.
26355
+ * @member {number|Long} updatedAt
26356
+ * @memberof ContentfulFeaturedContentUpdated
26357
+ * @instance
26358
+ */
26359
+ ContentfulFeaturedContentUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
26360
+
26361
+ /**
26362
+ * Creates a new ContentfulFeaturedContentUpdated instance using the specified properties.
26363
+ * @function create
26364
+ * @memberof ContentfulFeaturedContentUpdated
26365
+ * @static
26366
+ * @param {IContentfulFeaturedContentUpdated=} [properties] Properties to set
26367
+ * @returns {ContentfulFeaturedContentUpdated} ContentfulFeaturedContentUpdated instance
26368
+ */
26369
+ ContentfulFeaturedContentUpdated.create = function create(properties) {
26370
+ return new ContentfulFeaturedContentUpdated(properties);
26371
+ };
26372
+
26373
+ /**
26374
+ * Encodes the specified ContentfulFeaturedContentUpdated message. Does not implicitly {@link ContentfulFeaturedContentUpdated.verify|verify} messages.
26375
+ * @function encode
26376
+ * @memberof ContentfulFeaturedContentUpdated
26377
+ * @static
26378
+ * @param {IContentfulFeaturedContentUpdated} message ContentfulFeaturedContentUpdated message or plain object to encode
26379
+ * @param {$protobuf.Writer} [writer] Writer to encode to
26380
+ * @returns {$protobuf.Writer} Writer
26381
+ */
26382
+ ContentfulFeaturedContentUpdated.encode = function encode(message, writer) {
26383
+ if (!writer)
26384
+ writer = $Writer.create();
26385
+ if (message.slug != null && message.hasOwnProperty("slug"))
26386
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
26387
+ if (message.featureType != null && message.hasOwnProperty("featureType"))
26388
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.featureType);
26389
+ if (message.mode != null && message.hasOwnProperty("mode"))
26390
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.mode);
26391
+ if (message.content != null && message.content.length)
26392
+ for (var i = 0; i < message.content.length; ++i)
26393
+ $root.contentful.SlugReference.encode(message.content[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
26394
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
26395
+ writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.updatedAt);
26396
+ return writer;
26397
+ };
26398
+
26399
+ /**
26400
+ * Encodes the specified ContentfulFeaturedContentUpdated message, length delimited. Does not implicitly {@link ContentfulFeaturedContentUpdated.verify|verify} messages.
26401
+ * @function encodeDelimited
26402
+ * @memberof ContentfulFeaturedContentUpdated
26403
+ * @static
26404
+ * @param {IContentfulFeaturedContentUpdated} message ContentfulFeaturedContentUpdated message or plain object to encode
26405
+ * @param {$protobuf.Writer} [writer] Writer to encode to
26406
+ * @returns {$protobuf.Writer} Writer
26407
+ */
26408
+ ContentfulFeaturedContentUpdated.encodeDelimited = function encodeDelimited(message, writer) {
26409
+ return this.encode(message, writer).ldelim();
26410
+ };
26411
+
26412
+ /**
26413
+ * Decodes a ContentfulFeaturedContentUpdated message from the specified reader or buffer.
26414
+ * @function decode
26415
+ * @memberof ContentfulFeaturedContentUpdated
26416
+ * @static
26417
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
26418
+ * @param {number} [length] Message length if known beforehand
26419
+ * @returns {ContentfulFeaturedContentUpdated} ContentfulFeaturedContentUpdated
26420
+ * @throws {Error} If the payload is not a reader or valid buffer
26421
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
26422
+ */
26423
+ ContentfulFeaturedContentUpdated.decode = function decode(reader, length) {
26424
+ if (!(reader instanceof $Reader))
26425
+ reader = $Reader.create(reader);
26426
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulFeaturedContentUpdated();
26427
+ while (reader.pos < end) {
26428
+ var tag = reader.uint32();
26429
+ switch (tag >>> 3) {
26430
+ case 1:
26431
+ message.slug = reader.string();
26432
+ break;
26433
+ case 2:
26434
+ message.featureType = reader.string();
26435
+ break;
26436
+ case 3:
26437
+ message.mode = reader.string();
26438
+ break;
26439
+ case 4:
26440
+ if (!(message.content && message.content.length))
26441
+ message.content = [];
26442
+ message.content.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
26443
+ break;
26444
+ case 5:
26445
+ message.updatedAt = reader.uint64();
26446
+ break;
26447
+ default:
26448
+ reader.skipType(tag & 7);
26449
+ break;
26450
+ }
26451
+ }
26452
+ return message;
26453
+ };
26454
+
26455
+ /**
26456
+ * Decodes a ContentfulFeaturedContentUpdated message from the specified reader or buffer, length delimited.
26457
+ * @function decodeDelimited
26458
+ * @memberof ContentfulFeaturedContentUpdated
26459
+ * @static
26460
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
26461
+ * @returns {ContentfulFeaturedContentUpdated} ContentfulFeaturedContentUpdated
26462
+ * @throws {Error} If the payload is not a reader or valid buffer
26463
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
26464
+ */
26465
+ ContentfulFeaturedContentUpdated.decodeDelimited = function decodeDelimited(reader) {
26466
+ if (!(reader instanceof $Reader))
26467
+ reader = new $Reader(reader);
26468
+ return this.decode(reader, reader.uint32());
26469
+ };
26470
+
26471
+ /**
26472
+ * Verifies a ContentfulFeaturedContentUpdated message.
26473
+ * @function verify
26474
+ * @memberof ContentfulFeaturedContentUpdated
26475
+ * @static
26476
+ * @param {Object.<string,*>} message Plain object to verify
26477
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
26478
+ */
26479
+ ContentfulFeaturedContentUpdated.verify = function verify(message) {
26480
+ if (typeof message !== "object" || message === null)
26481
+ return "object expected";
26482
+ if (message.slug != null && message.hasOwnProperty("slug"))
26483
+ if (!$util.isString(message.slug))
26484
+ return "slug: string expected";
26485
+ if (message.featureType != null && message.hasOwnProperty("featureType"))
26486
+ if (!$util.isString(message.featureType))
26487
+ return "featureType: string expected";
26488
+ if (message.mode != null && message.hasOwnProperty("mode"))
26489
+ if (!$util.isString(message.mode))
26490
+ return "mode: string expected";
26491
+ if (message.content != null && message.hasOwnProperty("content")) {
26492
+ if (!Array.isArray(message.content))
26493
+ return "content: array expected";
26494
+ for (var i = 0; i < message.content.length; ++i) {
26495
+ var error = $root.contentful.SlugReference.verify(message.content[i]);
26496
+ if (error)
26497
+ return "content." + error;
26498
+ }
26499
+ }
26500
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
26501
+ if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
26502
+ return "updatedAt: integer|Long expected";
26503
+ return null;
26504
+ };
26505
+
26506
+ /**
26507
+ * Creates a ContentfulFeaturedContentUpdated message from a plain object. Also converts values to their respective internal types.
26508
+ * @function fromObject
26509
+ * @memberof ContentfulFeaturedContentUpdated
26510
+ * @static
26511
+ * @param {Object.<string,*>} object Plain object
26512
+ * @returns {ContentfulFeaturedContentUpdated} ContentfulFeaturedContentUpdated
26513
+ */
26514
+ ContentfulFeaturedContentUpdated.fromObject = function fromObject(object) {
26515
+ if (object instanceof $root.ContentfulFeaturedContentUpdated)
26516
+ return object;
26517
+ var message = new $root.ContentfulFeaturedContentUpdated();
26518
+ if (object.slug != null)
26519
+ message.slug = String(object.slug);
26520
+ if (object.featureType != null)
26521
+ message.featureType = String(object.featureType);
26522
+ if (object.mode != null)
26523
+ message.mode = String(object.mode);
26524
+ if (object.content) {
26525
+ if (!Array.isArray(object.content))
26526
+ throw TypeError(".ContentfulFeaturedContentUpdated.content: array expected");
26527
+ message.content = [];
26528
+ for (var i = 0; i < object.content.length; ++i) {
26529
+ if (typeof object.content[i] !== "object")
26530
+ throw TypeError(".ContentfulFeaturedContentUpdated.content: object expected");
26531
+ message.content[i] = $root.contentful.SlugReference.fromObject(object.content[i]);
26532
+ }
26533
+ }
26534
+ if (object.updatedAt != null)
26535
+ if ($util.Long)
26536
+ (message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
26537
+ else if (typeof object.updatedAt === "string")
26538
+ message.updatedAt = parseInt(object.updatedAt, 10);
26539
+ else if (typeof object.updatedAt === "number")
26540
+ message.updatedAt = object.updatedAt;
26541
+ else if (typeof object.updatedAt === "object")
26542
+ message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
26543
+ return message;
26544
+ };
26545
+
26546
+ /**
26547
+ * Creates a plain object from a ContentfulFeaturedContentUpdated message. Also converts values to other types if specified.
26548
+ * @function toObject
26549
+ * @memberof ContentfulFeaturedContentUpdated
26550
+ * @static
26551
+ * @param {ContentfulFeaturedContentUpdated} message ContentfulFeaturedContentUpdated
26552
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
26553
+ * @returns {Object.<string,*>} Plain object
26554
+ */
26555
+ ContentfulFeaturedContentUpdated.toObject = function toObject(message, options) {
26556
+ if (!options)
26557
+ options = {};
26558
+ var object = {};
26559
+ if (options.arrays || options.defaults)
26560
+ object.content = [];
26561
+ if (options.defaults) {
26562
+ object.slug = "";
26563
+ object.featureType = "";
26564
+ object.mode = "";
26565
+ if ($util.Long) {
26566
+ var long = new $util.Long(0, 0, true);
26567
+ object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
26568
+ } else
26569
+ object.updatedAt = options.longs === String ? "0" : 0;
26570
+ }
26571
+ if (message.slug != null && message.hasOwnProperty("slug"))
26572
+ object.slug = message.slug;
26573
+ if (message.featureType != null && message.hasOwnProperty("featureType"))
26574
+ object.featureType = message.featureType;
26575
+ if (message.mode != null && message.hasOwnProperty("mode"))
26576
+ object.mode = message.mode;
26577
+ if (message.content && message.content.length) {
26578
+ object.content = [];
26579
+ for (var j = 0; j < message.content.length; ++j)
26580
+ object.content[j] = $root.contentful.SlugReference.toObject(message.content[j], options);
26581
+ }
26582
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
26583
+ if (typeof message.updatedAt === "number")
26584
+ object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
26585
+ else
26586
+ 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;
26587
+ return object;
26588
+ };
26589
+
26590
+ /**
26591
+ * Converts this ContentfulFeaturedContentUpdated to JSON.
26592
+ * @function toJSON
26593
+ * @memberof ContentfulFeaturedContentUpdated
26594
+ * @instance
26595
+ * @returns {Object.<string,*>} JSON object
26596
+ */
26597
+ ContentfulFeaturedContentUpdated.prototype.toJSON = function toJSON() {
26598
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
26599
+ };
26600
+
26601
+ return ContentfulFeaturedContentUpdated;
26602
+ })();
26603
+
26604
+ $root.ContentfulFeaturedContentDeleted = (function() {
26605
+
26606
+ /**
26607
+ * Properties of a ContentfulFeaturedContentDeleted.
26608
+ * @exports IContentfulFeaturedContentDeleted
26609
+ * @interface IContentfulFeaturedContentDeleted
26610
+ * @property {string|null} [slug] ContentfulFeaturedContentDeleted slug
26611
+ * @property {number|Long|null} [deletedAt] ContentfulFeaturedContentDeleted deletedAt
26612
+ */
26613
+
26614
+ /**
26615
+ * Constructs a new ContentfulFeaturedContentDeleted.
26616
+ * @exports ContentfulFeaturedContentDeleted
26617
+ * @classdesc Represents a ContentfulFeaturedContentDeleted.
26618
+ * @implements IContentfulFeaturedContentDeleted
26619
+ * @constructor
26620
+ * @param {IContentfulFeaturedContentDeleted=} [properties] Properties to set
26621
+ */
26622
+ function ContentfulFeaturedContentDeleted(properties) {
26623
+ if (properties)
26624
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
26625
+ if (properties[keys[i]] != null)
26626
+ this[keys[i]] = properties[keys[i]];
26627
+ }
26628
+
26629
+ /**
26630
+ * ContentfulFeaturedContentDeleted slug.
26631
+ * @member {string} slug
26632
+ * @memberof ContentfulFeaturedContentDeleted
26633
+ * @instance
26634
+ */
26635
+ ContentfulFeaturedContentDeleted.prototype.slug = "";
26636
+
26637
+ /**
26638
+ * ContentfulFeaturedContentDeleted deletedAt.
26639
+ * @member {number|Long} deletedAt
26640
+ * @memberof ContentfulFeaturedContentDeleted
26641
+ * @instance
26642
+ */
26643
+ ContentfulFeaturedContentDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
26644
+
26645
+ /**
26646
+ * Creates a new ContentfulFeaturedContentDeleted instance using the specified properties.
26647
+ * @function create
26648
+ * @memberof ContentfulFeaturedContentDeleted
26649
+ * @static
26650
+ * @param {IContentfulFeaturedContentDeleted=} [properties] Properties to set
26651
+ * @returns {ContentfulFeaturedContentDeleted} ContentfulFeaturedContentDeleted instance
26652
+ */
26653
+ ContentfulFeaturedContentDeleted.create = function create(properties) {
26654
+ return new ContentfulFeaturedContentDeleted(properties);
26655
+ };
26656
+
26657
+ /**
26658
+ * Encodes the specified ContentfulFeaturedContentDeleted message. Does not implicitly {@link ContentfulFeaturedContentDeleted.verify|verify} messages.
26659
+ * @function encode
26660
+ * @memberof ContentfulFeaturedContentDeleted
26661
+ * @static
26662
+ * @param {IContentfulFeaturedContentDeleted} message ContentfulFeaturedContentDeleted message or plain object to encode
26663
+ * @param {$protobuf.Writer} [writer] Writer to encode to
26664
+ * @returns {$protobuf.Writer} Writer
26665
+ */
26666
+ ContentfulFeaturedContentDeleted.encode = function encode(message, writer) {
26667
+ if (!writer)
26668
+ writer = $Writer.create();
26669
+ if (message.slug != null && message.hasOwnProperty("slug"))
26670
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
26671
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
26672
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.deletedAt);
26673
+ return writer;
26674
+ };
26675
+
26676
+ /**
26677
+ * Encodes the specified ContentfulFeaturedContentDeleted message, length delimited. Does not implicitly {@link ContentfulFeaturedContentDeleted.verify|verify} messages.
26678
+ * @function encodeDelimited
26679
+ * @memberof ContentfulFeaturedContentDeleted
26680
+ * @static
26681
+ * @param {IContentfulFeaturedContentDeleted} message ContentfulFeaturedContentDeleted message or plain object to encode
26682
+ * @param {$protobuf.Writer} [writer] Writer to encode to
26683
+ * @returns {$protobuf.Writer} Writer
26684
+ */
26685
+ ContentfulFeaturedContentDeleted.encodeDelimited = function encodeDelimited(message, writer) {
26686
+ return this.encode(message, writer).ldelim();
26687
+ };
26688
+
26689
+ /**
26690
+ * Decodes a ContentfulFeaturedContentDeleted message from the specified reader or buffer.
26691
+ * @function decode
26692
+ * @memberof ContentfulFeaturedContentDeleted
26693
+ * @static
26694
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
26695
+ * @param {number} [length] Message length if known beforehand
26696
+ * @returns {ContentfulFeaturedContentDeleted} ContentfulFeaturedContentDeleted
26697
+ * @throws {Error} If the payload is not a reader or valid buffer
26698
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
26699
+ */
26700
+ ContentfulFeaturedContentDeleted.decode = function decode(reader, length) {
26701
+ if (!(reader instanceof $Reader))
26702
+ reader = $Reader.create(reader);
26703
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulFeaturedContentDeleted();
26704
+ while (reader.pos < end) {
26705
+ var tag = reader.uint32();
26706
+ switch (tag >>> 3) {
26707
+ case 1:
26708
+ message.slug = reader.string();
26709
+ break;
26710
+ case 2:
26711
+ message.deletedAt = reader.uint64();
26712
+ break;
26713
+ default:
26714
+ reader.skipType(tag & 7);
26715
+ break;
26716
+ }
26717
+ }
26718
+ return message;
26719
+ };
26720
+
26721
+ /**
26722
+ * Decodes a ContentfulFeaturedContentDeleted message from the specified reader or buffer, length delimited.
26723
+ * @function decodeDelimited
26724
+ * @memberof ContentfulFeaturedContentDeleted
26725
+ * @static
26726
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
26727
+ * @returns {ContentfulFeaturedContentDeleted} ContentfulFeaturedContentDeleted
26728
+ * @throws {Error} If the payload is not a reader or valid buffer
26729
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
26730
+ */
26731
+ ContentfulFeaturedContentDeleted.decodeDelimited = function decodeDelimited(reader) {
26732
+ if (!(reader instanceof $Reader))
26733
+ reader = new $Reader(reader);
26734
+ return this.decode(reader, reader.uint32());
26735
+ };
26736
+
26737
+ /**
26738
+ * Verifies a ContentfulFeaturedContentDeleted message.
26739
+ * @function verify
26740
+ * @memberof ContentfulFeaturedContentDeleted
26741
+ * @static
26742
+ * @param {Object.<string,*>} message Plain object to verify
26743
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
26744
+ */
26745
+ ContentfulFeaturedContentDeleted.verify = function verify(message) {
26746
+ if (typeof message !== "object" || message === null)
26747
+ return "object expected";
26748
+ if (message.slug != null && message.hasOwnProperty("slug"))
26749
+ if (!$util.isString(message.slug))
26750
+ return "slug: string expected";
26751
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
26752
+ if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
26753
+ return "deletedAt: integer|Long expected";
26754
+ return null;
26755
+ };
26756
+
26757
+ /**
26758
+ * Creates a ContentfulFeaturedContentDeleted message from a plain object. Also converts values to their respective internal types.
26759
+ * @function fromObject
26760
+ * @memberof ContentfulFeaturedContentDeleted
26761
+ * @static
26762
+ * @param {Object.<string,*>} object Plain object
26763
+ * @returns {ContentfulFeaturedContentDeleted} ContentfulFeaturedContentDeleted
26764
+ */
26765
+ ContentfulFeaturedContentDeleted.fromObject = function fromObject(object) {
26766
+ if (object instanceof $root.ContentfulFeaturedContentDeleted)
26767
+ return object;
26768
+ var message = new $root.ContentfulFeaturedContentDeleted();
26769
+ if (object.slug != null)
26770
+ message.slug = String(object.slug);
26771
+ if (object.deletedAt != null)
26772
+ if ($util.Long)
26773
+ (message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
26774
+ else if (typeof object.deletedAt === "string")
26775
+ message.deletedAt = parseInt(object.deletedAt, 10);
26776
+ else if (typeof object.deletedAt === "number")
26777
+ message.deletedAt = object.deletedAt;
26778
+ else if (typeof object.deletedAt === "object")
26779
+ message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
26780
+ return message;
26781
+ };
26782
+
26783
+ /**
26784
+ * Creates a plain object from a ContentfulFeaturedContentDeleted message. Also converts values to other types if specified.
26785
+ * @function toObject
26786
+ * @memberof ContentfulFeaturedContentDeleted
26787
+ * @static
26788
+ * @param {ContentfulFeaturedContentDeleted} message ContentfulFeaturedContentDeleted
26789
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
26790
+ * @returns {Object.<string,*>} Plain object
26791
+ */
26792
+ ContentfulFeaturedContentDeleted.toObject = function toObject(message, options) {
26793
+ if (!options)
26794
+ options = {};
26795
+ var object = {};
26796
+ if (options.defaults) {
26797
+ object.slug = "";
26798
+ if ($util.Long) {
26799
+ var long = new $util.Long(0, 0, true);
26800
+ object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
26801
+ } else
26802
+ object.deletedAt = options.longs === String ? "0" : 0;
26803
+ }
26804
+ if (message.slug != null && message.hasOwnProperty("slug"))
26805
+ object.slug = message.slug;
26806
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
26807
+ if (typeof message.deletedAt === "number")
26808
+ object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
26809
+ else
26810
+ 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;
26811
+ return object;
26812
+ };
26813
+
26814
+ /**
26815
+ * Converts this ContentfulFeaturedContentDeleted to JSON.
26816
+ * @function toJSON
26817
+ * @memberof ContentfulFeaturedContentDeleted
26818
+ * @instance
26819
+ * @returns {Object.<string,*>} JSON object
26820
+ */
26821
+ ContentfulFeaturedContentDeleted.prototype.toJSON = function toJSON() {
26822
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
26823
+ };
26824
+
26825
+ return ContentfulFeaturedContentDeleted;
26826
+ })();
26827
+
25980
26828
  $root.ContentfulContentModelCreated = (function() {
25981
26829
 
25982
26830
  /**
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.152.0"
19
+ "version": "1.153.0"
20
20
  }