@headspace/protos-events 1.135.0 → 1.136.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
@@ -6070,6 +6070,318 @@ export class ContentfulOrderedCategoriesUpdated implements IContentfulOrderedCat
6070
6070
  public toJSON(): { [k: string]: any };
6071
6071
  }
6072
6072
 
6073
+ /** Properties of a ContentfulActivityVariationCreated. */
6074
+ export interface IContentfulActivityVariationCreated {
6075
+
6076
+ /** ContentfulActivityVariationCreated slug */
6077
+ slug?: (string|null);
6078
+
6079
+ /** ContentfulActivityVariationCreated duration */
6080
+ duration?: ({ [k: string]: number }|null);
6081
+
6082
+ /** ContentfulActivityVariationCreated media */
6083
+ media?: ({ [k: string]: contentful.IIdReference }|null);
6084
+
6085
+ /** ContentfulActivityVariationCreated createdAt */
6086
+ createdAt?: (number|Long|null);
6087
+ }
6088
+
6089
+ /** Represents a ContentfulActivityVariationCreated. */
6090
+ export class ContentfulActivityVariationCreated implements IContentfulActivityVariationCreated {
6091
+
6092
+ /**
6093
+ * Constructs a new ContentfulActivityVariationCreated.
6094
+ * @param [properties] Properties to set
6095
+ */
6096
+ constructor(properties?: IContentfulActivityVariationCreated);
6097
+
6098
+ /** ContentfulActivityVariationCreated slug. */
6099
+ public slug: string;
6100
+
6101
+ /** ContentfulActivityVariationCreated duration. */
6102
+ public duration: { [k: string]: number };
6103
+
6104
+ /** ContentfulActivityVariationCreated media. */
6105
+ public media: { [k: string]: contentful.IIdReference };
6106
+
6107
+ /** ContentfulActivityVariationCreated createdAt. */
6108
+ public createdAt: (number|Long);
6109
+
6110
+ /**
6111
+ * Creates a new ContentfulActivityVariationCreated instance using the specified properties.
6112
+ * @param [properties] Properties to set
6113
+ * @returns ContentfulActivityVariationCreated instance
6114
+ */
6115
+ public static create(properties?: IContentfulActivityVariationCreated): ContentfulActivityVariationCreated;
6116
+
6117
+ /**
6118
+ * Encodes the specified ContentfulActivityVariationCreated message. Does not implicitly {@link ContentfulActivityVariationCreated.verify|verify} messages.
6119
+ * @param message ContentfulActivityVariationCreated message or plain object to encode
6120
+ * @param [writer] Writer to encode to
6121
+ * @returns Writer
6122
+ */
6123
+ public static encode(message: IContentfulActivityVariationCreated, writer?: $protobuf.Writer): $protobuf.Writer;
6124
+
6125
+ /**
6126
+ * Encodes the specified ContentfulActivityVariationCreated message, length delimited. Does not implicitly {@link ContentfulActivityVariationCreated.verify|verify} messages.
6127
+ * @param message ContentfulActivityVariationCreated message or plain object to encode
6128
+ * @param [writer] Writer to encode to
6129
+ * @returns Writer
6130
+ */
6131
+ public static encodeDelimited(message: IContentfulActivityVariationCreated, writer?: $protobuf.Writer): $protobuf.Writer;
6132
+
6133
+ /**
6134
+ * Decodes a ContentfulActivityVariationCreated message from the specified reader or buffer.
6135
+ * @param reader Reader or buffer to decode from
6136
+ * @param [length] Message length if known beforehand
6137
+ * @returns ContentfulActivityVariationCreated
6138
+ * @throws {Error} If the payload is not a reader or valid buffer
6139
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
6140
+ */
6141
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ContentfulActivityVariationCreated;
6142
+
6143
+ /**
6144
+ * Decodes a ContentfulActivityVariationCreated message from the specified reader or buffer, length delimited.
6145
+ * @param reader Reader or buffer to decode from
6146
+ * @returns ContentfulActivityVariationCreated
6147
+ * @throws {Error} If the payload is not a reader or valid buffer
6148
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
6149
+ */
6150
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ContentfulActivityVariationCreated;
6151
+
6152
+ /**
6153
+ * Verifies a ContentfulActivityVariationCreated message.
6154
+ * @param message Plain object to verify
6155
+ * @returns `null` if valid, otherwise the reason why it is not
6156
+ */
6157
+ public static verify(message: { [k: string]: any }): (string|null);
6158
+
6159
+ /**
6160
+ * Creates a ContentfulActivityVariationCreated message from a plain object. Also converts values to their respective internal types.
6161
+ * @param object Plain object
6162
+ * @returns ContentfulActivityVariationCreated
6163
+ */
6164
+ public static fromObject(object: { [k: string]: any }): ContentfulActivityVariationCreated;
6165
+
6166
+ /**
6167
+ * Creates a plain object from a ContentfulActivityVariationCreated message. Also converts values to other types if specified.
6168
+ * @param message ContentfulActivityVariationCreated
6169
+ * @param [options] Conversion options
6170
+ * @returns Plain object
6171
+ */
6172
+ public static toObject(message: ContentfulActivityVariationCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
6173
+
6174
+ /**
6175
+ * Converts this ContentfulActivityVariationCreated to JSON.
6176
+ * @returns JSON object
6177
+ */
6178
+ public toJSON(): { [k: string]: any };
6179
+ }
6180
+
6181
+ /** Properties of a ContentfulActivityVariationUpdated. */
6182
+ export interface IContentfulActivityVariationUpdated {
6183
+
6184
+ /** ContentfulActivityVariationUpdated slug */
6185
+ slug?: (string|null);
6186
+
6187
+ /** ContentfulActivityVariationUpdated duration */
6188
+ duration?: ({ [k: string]: number }|null);
6189
+
6190
+ /** ContentfulActivityVariationUpdated media */
6191
+ media?: ({ [k: string]: contentful.IIdReference }|null);
6192
+
6193
+ /** ContentfulActivityVariationUpdated updatedAt */
6194
+ updatedAt?: (number|Long|null);
6195
+ }
6196
+
6197
+ /** Represents a ContentfulActivityVariationUpdated. */
6198
+ export class ContentfulActivityVariationUpdated implements IContentfulActivityVariationUpdated {
6199
+
6200
+ /**
6201
+ * Constructs a new ContentfulActivityVariationUpdated.
6202
+ * @param [properties] Properties to set
6203
+ */
6204
+ constructor(properties?: IContentfulActivityVariationUpdated);
6205
+
6206
+ /** ContentfulActivityVariationUpdated slug. */
6207
+ public slug: string;
6208
+
6209
+ /** ContentfulActivityVariationUpdated duration. */
6210
+ public duration: { [k: string]: number };
6211
+
6212
+ /** ContentfulActivityVariationUpdated media. */
6213
+ public media: { [k: string]: contentful.IIdReference };
6214
+
6215
+ /** ContentfulActivityVariationUpdated updatedAt. */
6216
+ public updatedAt: (number|Long);
6217
+
6218
+ /**
6219
+ * Creates a new ContentfulActivityVariationUpdated instance using the specified properties.
6220
+ * @param [properties] Properties to set
6221
+ * @returns ContentfulActivityVariationUpdated instance
6222
+ */
6223
+ public static create(properties?: IContentfulActivityVariationUpdated): ContentfulActivityVariationUpdated;
6224
+
6225
+ /**
6226
+ * Encodes the specified ContentfulActivityVariationUpdated message. Does not implicitly {@link ContentfulActivityVariationUpdated.verify|verify} messages.
6227
+ * @param message ContentfulActivityVariationUpdated message or plain object to encode
6228
+ * @param [writer] Writer to encode to
6229
+ * @returns Writer
6230
+ */
6231
+ public static encode(message: IContentfulActivityVariationUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
6232
+
6233
+ /**
6234
+ * Encodes the specified ContentfulActivityVariationUpdated message, length delimited. Does not implicitly {@link ContentfulActivityVariationUpdated.verify|verify} messages.
6235
+ * @param message ContentfulActivityVariationUpdated message or plain object to encode
6236
+ * @param [writer] Writer to encode to
6237
+ * @returns Writer
6238
+ */
6239
+ public static encodeDelimited(message: IContentfulActivityVariationUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
6240
+
6241
+ /**
6242
+ * Decodes a ContentfulActivityVariationUpdated message from the specified reader or buffer.
6243
+ * @param reader Reader or buffer to decode from
6244
+ * @param [length] Message length if known beforehand
6245
+ * @returns ContentfulActivityVariationUpdated
6246
+ * @throws {Error} If the payload is not a reader or valid buffer
6247
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
6248
+ */
6249
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ContentfulActivityVariationUpdated;
6250
+
6251
+ /**
6252
+ * Decodes a ContentfulActivityVariationUpdated message from the specified reader or buffer, length delimited.
6253
+ * @param reader Reader or buffer to decode from
6254
+ * @returns ContentfulActivityVariationUpdated
6255
+ * @throws {Error} If the payload is not a reader or valid buffer
6256
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
6257
+ */
6258
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ContentfulActivityVariationUpdated;
6259
+
6260
+ /**
6261
+ * Verifies a ContentfulActivityVariationUpdated message.
6262
+ * @param message Plain object to verify
6263
+ * @returns `null` if valid, otherwise the reason why it is not
6264
+ */
6265
+ public static verify(message: { [k: string]: any }): (string|null);
6266
+
6267
+ /**
6268
+ * Creates a ContentfulActivityVariationUpdated message from a plain object. Also converts values to their respective internal types.
6269
+ * @param object Plain object
6270
+ * @returns ContentfulActivityVariationUpdated
6271
+ */
6272
+ public static fromObject(object: { [k: string]: any }): ContentfulActivityVariationUpdated;
6273
+
6274
+ /**
6275
+ * Creates a plain object from a ContentfulActivityVariationUpdated message. Also converts values to other types if specified.
6276
+ * @param message ContentfulActivityVariationUpdated
6277
+ * @param [options] Conversion options
6278
+ * @returns Plain object
6279
+ */
6280
+ public static toObject(message: ContentfulActivityVariationUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
6281
+
6282
+ /**
6283
+ * Converts this ContentfulActivityVariationUpdated to JSON.
6284
+ * @returns JSON object
6285
+ */
6286
+ public toJSON(): { [k: string]: any };
6287
+ }
6288
+
6289
+ /** Properties of a ContentfulActivityVariationDeleted. */
6290
+ export interface IContentfulActivityVariationDeleted {
6291
+
6292
+ /** ContentfulActivityVariationDeleted slug */
6293
+ slug?: (string|null);
6294
+
6295
+ /** ContentfulActivityVariationDeleted deletedAt */
6296
+ deletedAt?: (number|Long|null);
6297
+ }
6298
+
6299
+ /** Represents a ContentfulActivityVariationDeleted. */
6300
+ export class ContentfulActivityVariationDeleted implements IContentfulActivityVariationDeleted {
6301
+
6302
+ /**
6303
+ * Constructs a new ContentfulActivityVariationDeleted.
6304
+ * @param [properties] Properties to set
6305
+ */
6306
+ constructor(properties?: IContentfulActivityVariationDeleted);
6307
+
6308
+ /** ContentfulActivityVariationDeleted slug. */
6309
+ public slug: string;
6310
+
6311
+ /** ContentfulActivityVariationDeleted deletedAt. */
6312
+ public deletedAt: (number|Long);
6313
+
6314
+ /**
6315
+ * Creates a new ContentfulActivityVariationDeleted instance using the specified properties.
6316
+ * @param [properties] Properties to set
6317
+ * @returns ContentfulActivityVariationDeleted instance
6318
+ */
6319
+ public static create(properties?: IContentfulActivityVariationDeleted): ContentfulActivityVariationDeleted;
6320
+
6321
+ /**
6322
+ * Encodes the specified ContentfulActivityVariationDeleted message. Does not implicitly {@link ContentfulActivityVariationDeleted.verify|verify} messages.
6323
+ * @param message ContentfulActivityVariationDeleted message or plain object to encode
6324
+ * @param [writer] Writer to encode to
6325
+ * @returns Writer
6326
+ */
6327
+ public static encode(message: IContentfulActivityVariationDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
6328
+
6329
+ /**
6330
+ * Encodes the specified ContentfulActivityVariationDeleted message, length delimited. Does not implicitly {@link ContentfulActivityVariationDeleted.verify|verify} messages.
6331
+ * @param message ContentfulActivityVariationDeleted message or plain object to encode
6332
+ * @param [writer] Writer to encode to
6333
+ * @returns Writer
6334
+ */
6335
+ public static encodeDelimited(message: IContentfulActivityVariationDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
6336
+
6337
+ /**
6338
+ * Decodes a ContentfulActivityVariationDeleted message from the specified reader or buffer.
6339
+ * @param reader Reader or buffer to decode from
6340
+ * @param [length] Message length if known beforehand
6341
+ * @returns ContentfulActivityVariationDeleted
6342
+ * @throws {Error} If the payload is not a reader or valid buffer
6343
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
6344
+ */
6345
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ContentfulActivityVariationDeleted;
6346
+
6347
+ /**
6348
+ * Decodes a ContentfulActivityVariationDeleted message from the specified reader or buffer, length delimited.
6349
+ * @param reader Reader or buffer to decode from
6350
+ * @returns ContentfulActivityVariationDeleted
6351
+ * @throws {Error} If the payload is not a reader or valid buffer
6352
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
6353
+ */
6354
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ContentfulActivityVariationDeleted;
6355
+
6356
+ /**
6357
+ * Verifies a ContentfulActivityVariationDeleted message.
6358
+ * @param message Plain object to verify
6359
+ * @returns `null` if valid, otherwise the reason why it is not
6360
+ */
6361
+ public static verify(message: { [k: string]: any }): (string|null);
6362
+
6363
+ /**
6364
+ * Creates a ContentfulActivityVariationDeleted message from a plain object. Also converts values to their respective internal types.
6365
+ * @param object Plain object
6366
+ * @returns ContentfulActivityVariationDeleted
6367
+ */
6368
+ public static fromObject(object: { [k: string]: any }): ContentfulActivityVariationDeleted;
6369
+
6370
+ /**
6371
+ * Creates a plain object from a ContentfulActivityVariationDeleted message. Also converts values to other types if specified.
6372
+ * @param message ContentfulActivityVariationDeleted
6373
+ * @param [options] Conversion options
6374
+ * @returns Plain object
6375
+ */
6376
+ public static toObject(message: ContentfulActivityVariationDeleted, options?: $protobuf.IConversionOptions): { [k: string]: any };
6377
+
6378
+ /**
6379
+ * Converts this ContentfulActivityVariationDeleted to JSON.
6380
+ * @returns JSON object
6381
+ */
6382
+ public toJSON(): { [k: string]: any };
6383
+ }
6384
+
6073
6385
  /** Properties of a ContentfulContentModelCreated. */
6074
6386
  export interface IContentfulContentModelCreated {
6075
6387
 
package/lib/index.js CHANGED
@@ -16625,6 +16625,866 @@ $root.ContentfulOrderedCategoriesUpdated = (function() {
16625
16625
  return ContentfulOrderedCategoriesUpdated;
16626
16626
  })();
16627
16627
 
16628
+ $root.ContentfulActivityVariationCreated = (function() {
16629
+
16630
+ /**
16631
+ * Properties of a ContentfulActivityVariationCreated.
16632
+ * @exports IContentfulActivityVariationCreated
16633
+ * @interface IContentfulActivityVariationCreated
16634
+ * @property {string|null} [slug] ContentfulActivityVariationCreated slug
16635
+ * @property {Object.<string,number>|null} [duration] ContentfulActivityVariationCreated duration
16636
+ * @property {Object.<string,contentful.IIdReference>|null} [media] ContentfulActivityVariationCreated media
16637
+ * @property {number|Long|null} [createdAt] ContentfulActivityVariationCreated createdAt
16638
+ */
16639
+
16640
+ /**
16641
+ * Constructs a new ContentfulActivityVariationCreated.
16642
+ * @exports ContentfulActivityVariationCreated
16643
+ * @classdesc Represents a ContentfulActivityVariationCreated.
16644
+ * @implements IContentfulActivityVariationCreated
16645
+ * @constructor
16646
+ * @param {IContentfulActivityVariationCreated=} [properties] Properties to set
16647
+ */
16648
+ function ContentfulActivityVariationCreated(properties) {
16649
+ this.duration = {};
16650
+ this.media = {};
16651
+ if (properties)
16652
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
16653
+ if (properties[keys[i]] != null)
16654
+ this[keys[i]] = properties[keys[i]];
16655
+ }
16656
+
16657
+ /**
16658
+ * ContentfulActivityVariationCreated slug.
16659
+ * @member {string} slug
16660
+ * @memberof ContentfulActivityVariationCreated
16661
+ * @instance
16662
+ */
16663
+ ContentfulActivityVariationCreated.prototype.slug = "";
16664
+
16665
+ /**
16666
+ * ContentfulActivityVariationCreated duration.
16667
+ * @member {Object.<string,number>} duration
16668
+ * @memberof ContentfulActivityVariationCreated
16669
+ * @instance
16670
+ */
16671
+ ContentfulActivityVariationCreated.prototype.duration = $util.emptyObject;
16672
+
16673
+ /**
16674
+ * ContentfulActivityVariationCreated media.
16675
+ * @member {Object.<string,contentful.IIdReference>} media
16676
+ * @memberof ContentfulActivityVariationCreated
16677
+ * @instance
16678
+ */
16679
+ ContentfulActivityVariationCreated.prototype.media = $util.emptyObject;
16680
+
16681
+ /**
16682
+ * ContentfulActivityVariationCreated createdAt.
16683
+ * @member {number|Long} createdAt
16684
+ * @memberof ContentfulActivityVariationCreated
16685
+ * @instance
16686
+ */
16687
+ ContentfulActivityVariationCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
16688
+
16689
+ /**
16690
+ * Creates a new ContentfulActivityVariationCreated instance using the specified properties.
16691
+ * @function create
16692
+ * @memberof ContentfulActivityVariationCreated
16693
+ * @static
16694
+ * @param {IContentfulActivityVariationCreated=} [properties] Properties to set
16695
+ * @returns {ContentfulActivityVariationCreated} ContentfulActivityVariationCreated instance
16696
+ */
16697
+ ContentfulActivityVariationCreated.create = function create(properties) {
16698
+ return new ContentfulActivityVariationCreated(properties);
16699
+ };
16700
+
16701
+ /**
16702
+ * Encodes the specified ContentfulActivityVariationCreated message. Does not implicitly {@link ContentfulActivityVariationCreated.verify|verify} messages.
16703
+ * @function encode
16704
+ * @memberof ContentfulActivityVariationCreated
16705
+ * @static
16706
+ * @param {IContentfulActivityVariationCreated} message ContentfulActivityVariationCreated message or plain object to encode
16707
+ * @param {$protobuf.Writer} [writer] Writer to encode to
16708
+ * @returns {$protobuf.Writer} Writer
16709
+ */
16710
+ ContentfulActivityVariationCreated.encode = function encode(message, writer) {
16711
+ if (!writer)
16712
+ writer = $Writer.create();
16713
+ if (message.slug != null && message.hasOwnProperty("slug"))
16714
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
16715
+ if (message.duration != null && message.hasOwnProperty("duration"))
16716
+ for (var keys = Object.keys(message.duration), i = 0; i < keys.length; ++i)
16717
+ writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).int32(message.duration[keys[i]]).ldelim();
16718
+ if (message.media != null && message.hasOwnProperty("media"))
16719
+ for (var keys = Object.keys(message.media), i = 0; i < keys.length; ++i) {
16720
+ writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
16721
+ $root.contentful.IdReference.encode(message.media[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
16722
+ }
16723
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
16724
+ writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.createdAt);
16725
+ return writer;
16726
+ };
16727
+
16728
+ /**
16729
+ * Encodes the specified ContentfulActivityVariationCreated message, length delimited. Does not implicitly {@link ContentfulActivityVariationCreated.verify|verify} messages.
16730
+ * @function encodeDelimited
16731
+ * @memberof ContentfulActivityVariationCreated
16732
+ * @static
16733
+ * @param {IContentfulActivityVariationCreated} message ContentfulActivityVariationCreated message or plain object to encode
16734
+ * @param {$protobuf.Writer} [writer] Writer to encode to
16735
+ * @returns {$protobuf.Writer} Writer
16736
+ */
16737
+ ContentfulActivityVariationCreated.encodeDelimited = function encodeDelimited(message, writer) {
16738
+ return this.encode(message, writer).ldelim();
16739
+ };
16740
+
16741
+ /**
16742
+ * Decodes a ContentfulActivityVariationCreated message from the specified reader or buffer.
16743
+ * @function decode
16744
+ * @memberof ContentfulActivityVariationCreated
16745
+ * @static
16746
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
16747
+ * @param {number} [length] Message length if known beforehand
16748
+ * @returns {ContentfulActivityVariationCreated} ContentfulActivityVariationCreated
16749
+ * @throws {Error} If the payload is not a reader or valid buffer
16750
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
16751
+ */
16752
+ ContentfulActivityVariationCreated.decode = function decode(reader, length) {
16753
+ if (!(reader instanceof $Reader))
16754
+ reader = $Reader.create(reader);
16755
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulActivityVariationCreated(), key;
16756
+ while (reader.pos < end) {
16757
+ var tag = reader.uint32();
16758
+ switch (tag >>> 3) {
16759
+ case 1:
16760
+ message.slug = reader.string();
16761
+ break;
16762
+ case 2:
16763
+ reader.skip().pos++;
16764
+ if (message.duration === $util.emptyObject)
16765
+ message.duration = {};
16766
+ key = reader.string();
16767
+ reader.pos++;
16768
+ message.duration[key] = reader.int32();
16769
+ break;
16770
+ case 3:
16771
+ reader.skip().pos++;
16772
+ if (message.media === $util.emptyObject)
16773
+ message.media = {};
16774
+ key = reader.string();
16775
+ reader.pos++;
16776
+ message.media[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
16777
+ break;
16778
+ case 4:
16779
+ message.createdAt = reader.uint64();
16780
+ break;
16781
+ default:
16782
+ reader.skipType(tag & 7);
16783
+ break;
16784
+ }
16785
+ }
16786
+ return message;
16787
+ };
16788
+
16789
+ /**
16790
+ * Decodes a ContentfulActivityVariationCreated message from the specified reader or buffer, length delimited.
16791
+ * @function decodeDelimited
16792
+ * @memberof ContentfulActivityVariationCreated
16793
+ * @static
16794
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
16795
+ * @returns {ContentfulActivityVariationCreated} ContentfulActivityVariationCreated
16796
+ * @throws {Error} If the payload is not a reader or valid buffer
16797
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
16798
+ */
16799
+ ContentfulActivityVariationCreated.decodeDelimited = function decodeDelimited(reader) {
16800
+ if (!(reader instanceof $Reader))
16801
+ reader = new $Reader(reader);
16802
+ return this.decode(reader, reader.uint32());
16803
+ };
16804
+
16805
+ /**
16806
+ * Verifies a ContentfulActivityVariationCreated message.
16807
+ * @function verify
16808
+ * @memberof ContentfulActivityVariationCreated
16809
+ * @static
16810
+ * @param {Object.<string,*>} message Plain object to verify
16811
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
16812
+ */
16813
+ ContentfulActivityVariationCreated.verify = function verify(message) {
16814
+ if (typeof message !== "object" || message === null)
16815
+ return "object expected";
16816
+ if (message.slug != null && message.hasOwnProperty("slug"))
16817
+ if (!$util.isString(message.slug))
16818
+ return "slug: string expected";
16819
+ if (message.duration != null && message.hasOwnProperty("duration")) {
16820
+ if (!$util.isObject(message.duration))
16821
+ return "duration: object expected";
16822
+ var key = Object.keys(message.duration);
16823
+ for (var i = 0; i < key.length; ++i)
16824
+ if (!$util.isInteger(message.duration[key[i]]))
16825
+ return "duration: integer{k:string} expected";
16826
+ }
16827
+ if (message.media != null && message.hasOwnProperty("media")) {
16828
+ if (!$util.isObject(message.media))
16829
+ return "media: object expected";
16830
+ var key = Object.keys(message.media);
16831
+ for (var i = 0; i < key.length; ++i) {
16832
+ var error = $root.contentful.IdReference.verify(message.media[key[i]]);
16833
+ if (error)
16834
+ return "media." + error;
16835
+ }
16836
+ }
16837
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
16838
+ if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
16839
+ return "createdAt: integer|Long expected";
16840
+ return null;
16841
+ };
16842
+
16843
+ /**
16844
+ * Creates a ContentfulActivityVariationCreated message from a plain object. Also converts values to their respective internal types.
16845
+ * @function fromObject
16846
+ * @memberof ContentfulActivityVariationCreated
16847
+ * @static
16848
+ * @param {Object.<string,*>} object Plain object
16849
+ * @returns {ContentfulActivityVariationCreated} ContentfulActivityVariationCreated
16850
+ */
16851
+ ContentfulActivityVariationCreated.fromObject = function fromObject(object) {
16852
+ if (object instanceof $root.ContentfulActivityVariationCreated)
16853
+ return object;
16854
+ var message = new $root.ContentfulActivityVariationCreated();
16855
+ if (object.slug != null)
16856
+ message.slug = String(object.slug);
16857
+ if (object.duration) {
16858
+ if (typeof object.duration !== "object")
16859
+ throw TypeError(".ContentfulActivityVariationCreated.duration: object expected");
16860
+ message.duration = {};
16861
+ for (var keys = Object.keys(object.duration), i = 0; i < keys.length; ++i)
16862
+ message.duration[keys[i]] = object.duration[keys[i]] | 0;
16863
+ }
16864
+ if (object.media) {
16865
+ if (typeof object.media !== "object")
16866
+ throw TypeError(".ContentfulActivityVariationCreated.media: object expected");
16867
+ message.media = {};
16868
+ for (var keys = Object.keys(object.media), i = 0; i < keys.length; ++i) {
16869
+ if (typeof object.media[keys[i]] !== "object")
16870
+ throw TypeError(".ContentfulActivityVariationCreated.media: object expected");
16871
+ message.media[keys[i]] = $root.contentful.IdReference.fromObject(object.media[keys[i]]);
16872
+ }
16873
+ }
16874
+ if (object.createdAt != null)
16875
+ if ($util.Long)
16876
+ (message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
16877
+ else if (typeof object.createdAt === "string")
16878
+ message.createdAt = parseInt(object.createdAt, 10);
16879
+ else if (typeof object.createdAt === "number")
16880
+ message.createdAt = object.createdAt;
16881
+ else if (typeof object.createdAt === "object")
16882
+ message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
16883
+ return message;
16884
+ };
16885
+
16886
+ /**
16887
+ * Creates a plain object from a ContentfulActivityVariationCreated message. Also converts values to other types if specified.
16888
+ * @function toObject
16889
+ * @memberof ContentfulActivityVariationCreated
16890
+ * @static
16891
+ * @param {ContentfulActivityVariationCreated} message ContentfulActivityVariationCreated
16892
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
16893
+ * @returns {Object.<string,*>} Plain object
16894
+ */
16895
+ ContentfulActivityVariationCreated.toObject = function toObject(message, options) {
16896
+ if (!options)
16897
+ options = {};
16898
+ var object = {};
16899
+ if (options.objects || options.defaults) {
16900
+ object.duration = {};
16901
+ object.media = {};
16902
+ }
16903
+ if (options.defaults) {
16904
+ object.slug = "";
16905
+ if ($util.Long) {
16906
+ var long = new $util.Long(0, 0, true);
16907
+ object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
16908
+ } else
16909
+ object.createdAt = options.longs === String ? "0" : 0;
16910
+ }
16911
+ if (message.slug != null && message.hasOwnProperty("slug"))
16912
+ object.slug = message.slug;
16913
+ var keys2;
16914
+ if (message.duration && (keys2 = Object.keys(message.duration)).length) {
16915
+ object.duration = {};
16916
+ for (var j = 0; j < keys2.length; ++j)
16917
+ object.duration[keys2[j]] = message.duration[keys2[j]];
16918
+ }
16919
+ if (message.media && (keys2 = Object.keys(message.media)).length) {
16920
+ object.media = {};
16921
+ for (var j = 0; j < keys2.length; ++j)
16922
+ object.media[keys2[j]] = $root.contentful.IdReference.toObject(message.media[keys2[j]], options);
16923
+ }
16924
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
16925
+ if (typeof message.createdAt === "number")
16926
+ object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
16927
+ else
16928
+ 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;
16929
+ return object;
16930
+ };
16931
+
16932
+ /**
16933
+ * Converts this ContentfulActivityVariationCreated to JSON.
16934
+ * @function toJSON
16935
+ * @memberof ContentfulActivityVariationCreated
16936
+ * @instance
16937
+ * @returns {Object.<string,*>} JSON object
16938
+ */
16939
+ ContentfulActivityVariationCreated.prototype.toJSON = function toJSON() {
16940
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
16941
+ };
16942
+
16943
+ return ContentfulActivityVariationCreated;
16944
+ })();
16945
+
16946
+ $root.ContentfulActivityVariationUpdated = (function() {
16947
+
16948
+ /**
16949
+ * Properties of a ContentfulActivityVariationUpdated.
16950
+ * @exports IContentfulActivityVariationUpdated
16951
+ * @interface IContentfulActivityVariationUpdated
16952
+ * @property {string|null} [slug] ContentfulActivityVariationUpdated slug
16953
+ * @property {Object.<string,number>|null} [duration] ContentfulActivityVariationUpdated duration
16954
+ * @property {Object.<string,contentful.IIdReference>|null} [media] ContentfulActivityVariationUpdated media
16955
+ * @property {number|Long|null} [updatedAt] ContentfulActivityVariationUpdated updatedAt
16956
+ */
16957
+
16958
+ /**
16959
+ * Constructs a new ContentfulActivityVariationUpdated.
16960
+ * @exports ContentfulActivityVariationUpdated
16961
+ * @classdesc Represents a ContentfulActivityVariationUpdated.
16962
+ * @implements IContentfulActivityVariationUpdated
16963
+ * @constructor
16964
+ * @param {IContentfulActivityVariationUpdated=} [properties] Properties to set
16965
+ */
16966
+ function ContentfulActivityVariationUpdated(properties) {
16967
+ this.duration = {};
16968
+ this.media = {};
16969
+ if (properties)
16970
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
16971
+ if (properties[keys[i]] != null)
16972
+ this[keys[i]] = properties[keys[i]];
16973
+ }
16974
+
16975
+ /**
16976
+ * ContentfulActivityVariationUpdated slug.
16977
+ * @member {string} slug
16978
+ * @memberof ContentfulActivityVariationUpdated
16979
+ * @instance
16980
+ */
16981
+ ContentfulActivityVariationUpdated.prototype.slug = "";
16982
+
16983
+ /**
16984
+ * ContentfulActivityVariationUpdated duration.
16985
+ * @member {Object.<string,number>} duration
16986
+ * @memberof ContentfulActivityVariationUpdated
16987
+ * @instance
16988
+ */
16989
+ ContentfulActivityVariationUpdated.prototype.duration = $util.emptyObject;
16990
+
16991
+ /**
16992
+ * ContentfulActivityVariationUpdated media.
16993
+ * @member {Object.<string,contentful.IIdReference>} media
16994
+ * @memberof ContentfulActivityVariationUpdated
16995
+ * @instance
16996
+ */
16997
+ ContentfulActivityVariationUpdated.prototype.media = $util.emptyObject;
16998
+
16999
+ /**
17000
+ * ContentfulActivityVariationUpdated updatedAt.
17001
+ * @member {number|Long} updatedAt
17002
+ * @memberof ContentfulActivityVariationUpdated
17003
+ * @instance
17004
+ */
17005
+ ContentfulActivityVariationUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
17006
+
17007
+ /**
17008
+ * Creates a new ContentfulActivityVariationUpdated instance using the specified properties.
17009
+ * @function create
17010
+ * @memberof ContentfulActivityVariationUpdated
17011
+ * @static
17012
+ * @param {IContentfulActivityVariationUpdated=} [properties] Properties to set
17013
+ * @returns {ContentfulActivityVariationUpdated} ContentfulActivityVariationUpdated instance
17014
+ */
17015
+ ContentfulActivityVariationUpdated.create = function create(properties) {
17016
+ return new ContentfulActivityVariationUpdated(properties);
17017
+ };
17018
+
17019
+ /**
17020
+ * Encodes the specified ContentfulActivityVariationUpdated message. Does not implicitly {@link ContentfulActivityVariationUpdated.verify|verify} messages.
17021
+ * @function encode
17022
+ * @memberof ContentfulActivityVariationUpdated
17023
+ * @static
17024
+ * @param {IContentfulActivityVariationUpdated} message ContentfulActivityVariationUpdated message or plain object to encode
17025
+ * @param {$protobuf.Writer} [writer] Writer to encode to
17026
+ * @returns {$protobuf.Writer} Writer
17027
+ */
17028
+ ContentfulActivityVariationUpdated.encode = function encode(message, writer) {
17029
+ if (!writer)
17030
+ writer = $Writer.create();
17031
+ if (message.slug != null && message.hasOwnProperty("slug"))
17032
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
17033
+ if (message.duration != null && message.hasOwnProperty("duration"))
17034
+ for (var keys = Object.keys(message.duration), i = 0; i < keys.length; ++i)
17035
+ writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).int32(message.duration[keys[i]]).ldelim();
17036
+ if (message.media != null && message.hasOwnProperty("media"))
17037
+ for (var keys = Object.keys(message.media), i = 0; i < keys.length; ++i) {
17038
+ writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
17039
+ $root.contentful.IdReference.encode(message.media[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
17040
+ }
17041
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
17042
+ writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.updatedAt);
17043
+ return writer;
17044
+ };
17045
+
17046
+ /**
17047
+ * Encodes the specified ContentfulActivityVariationUpdated message, length delimited. Does not implicitly {@link ContentfulActivityVariationUpdated.verify|verify} messages.
17048
+ * @function encodeDelimited
17049
+ * @memberof ContentfulActivityVariationUpdated
17050
+ * @static
17051
+ * @param {IContentfulActivityVariationUpdated} message ContentfulActivityVariationUpdated message or plain object to encode
17052
+ * @param {$protobuf.Writer} [writer] Writer to encode to
17053
+ * @returns {$protobuf.Writer} Writer
17054
+ */
17055
+ ContentfulActivityVariationUpdated.encodeDelimited = function encodeDelimited(message, writer) {
17056
+ return this.encode(message, writer).ldelim();
17057
+ };
17058
+
17059
+ /**
17060
+ * Decodes a ContentfulActivityVariationUpdated message from the specified reader or buffer.
17061
+ * @function decode
17062
+ * @memberof ContentfulActivityVariationUpdated
17063
+ * @static
17064
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
17065
+ * @param {number} [length] Message length if known beforehand
17066
+ * @returns {ContentfulActivityVariationUpdated} ContentfulActivityVariationUpdated
17067
+ * @throws {Error} If the payload is not a reader or valid buffer
17068
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17069
+ */
17070
+ ContentfulActivityVariationUpdated.decode = function decode(reader, length) {
17071
+ if (!(reader instanceof $Reader))
17072
+ reader = $Reader.create(reader);
17073
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulActivityVariationUpdated(), key;
17074
+ while (reader.pos < end) {
17075
+ var tag = reader.uint32();
17076
+ switch (tag >>> 3) {
17077
+ case 1:
17078
+ message.slug = reader.string();
17079
+ break;
17080
+ case 2:
17081
+ reader.skip().pos++;
17082
+ if (message.duration === $util.emptyObject)
17083
+ message.duration = {};
17084
+ key = reader.string();
17085
+ reader.pos++;
17086
+ message.duration[key] = reader.int32();
17087
+ break;
17088
+ case 3:
17089
+ reader.skip().pos++;
17090
+ if (message.media === $util.emptyObject)
17091
+ message.media = {};
17092
+ key = reader.string();
17093
+ reader.pos++;
17094
+ message.media[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
17095
+ break;
17096
+ case 4:
17097
+ message.updatedAt = reader.uint64();
17098
+ break;
17099
+ default:
17100
+ reader.skipType(tag & 7);
17101
+ break;
17102
+ }
17103
+ }
17104
+ return message;
17105
+ };
17106
+
17107
+ /**
17108
+ * Decodes a ContentfulActivityVariationUpdated message from the specified reader or buffer, length delimited.
17109
+ * @function decodeDelimited
17110
+ * @memberof ContentfulActivityVariationUpdated
17111
+ * @static
17112
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
17113
+ * @returns {ContentfulActivityVariationUpdated} ContentfulActivityVariationUpdated
17114
+ * @throws {Error} If the payload is not a reader or valid buffer
17115
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17116
+ */
17117
+ ContentfulActivityVariationUpdated.decodeDelimited = function decodeDelimited(reader) {
17118
+ if (!(reader instanceof $Reader))
17119
+ reader = new $Reader(reader);
17120
+ return this.decode(reader, reader.uint32());
17121
+ };
17122
+
17123
+ /**
17124
+ * Verifies a ContentfulActivityVariationUpdated message.
17125
+ * @function verify
17126
+ * @memberof ContentfulActivityVariationUpdated
17127
+ * @static
17128
+ * @param {Object.<string,*>} message Plain object to verify
17129
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
17130
+ */
17131
+ ContentfulActivityVariationUpdated.verify = function verify(message) {
17132
+ if (typeof message !== "object" || message === null)
17133
+ return "object expected";
17134
+ if (message.slug != null && message.hasOwnProperty("slug"))
17135
+ if (!$util.isString(message.slug))
17136
+ return "slug: string expected";
17137
+ if (message.duration != null && message.hasOwnProperty("duration")) {
17138
+ if (!$util.isObject(message.duration))
17139
+ return "duration: object expected";
17140
+ var key = Object.keys(message.duration);
17141
+ for (var i = 0; i < key.length; ++i)
17142
+ if (!$util.isInteger(message.duration[key[i]]))
17143
+ return "duration: integer{k:string} expected";
17144
+ }
17145
+ if (message.media != null && message.hasOwnProperty("media")) {
17146
+ if (!$util.isObject(message.media))
17147
+ return "media: object expected";
17148
+ var key = Object.keys(message.media);
17149
+ for (var i = 0; i < key.length; ++i) {
17150
+ var error = $root.contentful.IdReference.verify(message.media[key[i]]);
17151
+ if (error)
17152
+ return "media." + error;
17153
+ }
17154
+ }
17155
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
17156
+ if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
17157
+ return "updatedAt: integer|Long expected";
17158
+ return null;
17159
+ };
17160
+
17161
+ /**
17162
+ * Creates a ContentfulActivityVariationUpdated message from a plain object. Also converts values to their respective internal types.
17163
+ * @function fromObject
17164
+ * @memberof ContentfulActivityVariationUpdated
17165
+ * @static
17166
+ * @param {Object.<string,*>} object Plain object
17167
+ * @returns {ContentfulActivityVariationUpdated} ContentfulActivityVariationUpdated
17168
+ */
17169
+ ContentfulActivityVariationUpdated.fromObject = function fromObject(object) {
17170
+ if (object instanceof $root.ContentfulActivityVariationUpdated)
17171
+ return object;
17172
+ var message = new $root.ContentfulActivityVariationUpdated();
17173
+ if (object.slug != null)
17174
+ message.slug = String(object.slug);
17175
+ if (object.duration) {
17176
+ if (typeof object.duration !== "object")
17177
+ throw TypeError(".ContentfulActivityVariationUpdated.duration: object expected");
17178
+ message.duration = {};
17179
+ for (var keys = Object.keys(object.duration), i = 0; i < keys.length; ++i)
17180
+ message.duration[keys[i]] = object.duration[keys[i]] | 0;
17181
+ }
17182
+ if (object.media) {
17183
+ if (typeof object.media !== "object")
17184
+ throw TypeError(".ContentfulActivityVariationUpdated.media: object expected");
17185
+ message.media = {};
17186
+ for (var keys = Object.keys(object.media), i = 0; i < keys.length; ++i) {
17187
+ if (typeof object.media[keys[i]] !== "object")
17188
+ throw TypeError(".ContentfulActivityVariationUpdated.media: object expected");
17189
+ message.media[keys[i]] = $root.contentful.IdReference.fromObject(object.media[keys[i]]);
17190
+ }
17191
+ }
17192
+ if (object.updatedAt != null)
17193
+ if ($util.Long)
17194
+ (message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
17195
+ else if (typeof object.updatedAt === "string")
17196
+ message.updatedAt = parseInt(object.updatedAt, 10);
17197
+ else if (typeof object.updatedAt === "number")
17198
+ message.updatedAt = object.updatedAt;
17199
+ else if (typeof object.updatedAt === "object")
17200
+ message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
17201
+ return message;
17202
+ };
17203
+
17204
+ /**
17205
+ * Creates a plain object from a ContentfulActivityVariationUpdated message. Also converts values to other types if specified.
17206
+ * @function toObject
17207
+ * @memberof ContentfulActivityVariationUpdated
17208
+ * @static
17209
+ * @param {ContentfulActivityVariationUpdated} message ContentfulActivityVariationUpdated
17210
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
17211
+ * @returns {Object.<string,*>} Plain object
17212
+ */
17213
+ ContentfulActivityVariationUpdated.toObject = function toObject(message, options) {
17214
+ if (!options)
17215
+ options = {};
17216
+ var object = {};
17217
+ if (options.objects || options.defaults) {
17218
+ object.duration = {};
17219
+ object.media = {};
17220
+ }
17221
+ if (options.defaults) {
17222
+ object.slug = "";
17223
+ if ($util.Long) {
17224
+ var long = new $util.Long(0, 0, true);
17225
+ object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
17226
+ } else
17227
+ object.updatedAt = options.longs === String ? "0" : 0;
17228
+ }
17229
+ if (message.slug != null && message.hasOwnProperty("slug"))
17230
+ object.slug = message.slug;
17231
+ var keys2;
17232
+ if (message.duration && (keys2 = Object.keys(message.duration)).length) {
17233
+ object.duration = {};
17234
+ for (var j = 0; j < keys2.length; ++j)
17235
+ object.duration[keys2[j]] = message.duration[keys2[j]];
17236
+ }
17237
+ if (message.media && (keys2 = Object.keys(message.media)).length) {
17238
+ object.media = {};
17239
+ for (var j = 0; j < keys2.length; ++j)
17240
+ object.media[keys2[j]] = $root.contentful.IdReference.toObject(message.media[keys2[j]], options);
17241
+ }
17242
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
17243
+ if (typeof message.updatedAt === "number")
17244
+ object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
17245
+ else
17246
+ 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;
17247
+ return object;
17248
+ };
17249
+
17250
+ /**
17251
+ * Converts this ContentfulActivityVariationUpdated to JSON.
17252
+ * @function toJSON
17253
+ * @memberof ContentfulActivityVariationUpdated
17254
+ * @instance
17255
+ * @returns {Object.<string,*>} JSON object
17256
+ */
17257
+ ContentfulActivityVariationUpdated.prototype.toJSON = function toJSON() {
17258
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
17259
+ };
17260
+
17261
+ return ContentfulActivityVariationUpdated;
17262
+ })();
17263
+
17264
+ $root.ContentfulActivityVariationDeleted = (function() {
17265
+
17266
+ /**
17267
+ * Properties of a ContentfulActivityVariationDeleted.
17268
+ * @exports IContentfulActivityVariationDeleted
17269
+ * @interface IContentfulActivityVariationDeleted
17270
+ * @property {string|null} [slug] ContentfulActivityVariationDeleted slug
17271
+ * @property {number|Long|null} [deletedAt] ContentfulActivityVariationDeleted deletedAt
17272
+ */
17273
+
17274
+ /**
17275
+ * Constructs a new ContentfulActivityVariationDeleted.
17276
+ * @exports ContentfulActivityVariationDeleted
17277
+ * @classdesc Represents a ContentfulActivityVariationDeleted.
17278
+ * @implements IContentfulActivityVariationDeleted
17279
+ * @constructor
17280
+ * @param {IContentfulActivityVariationDeleted=} [properties] Properties to set
17281
+ */
17282
+ function ContentfulActivityVariationDeleted(properties) {
17283
+ if (properties)
17284
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
17285
+ if (properties[keys[i]] != null)
17286
+ this[keys[i]] = properties[keys[i]];
17287
+ }
17288
+
17289
+ /**
17290
+ * ContentfulActivityVariationDeleted slug.
17291
+ * @member {string} slug
17292
+ * @memberof ContentfulActivityVariationDeleted
17293
+ * @instance
17294
+ */
17295
+ ContentfulActivityVariationDeleted.prototype.slug = "";
17296
+
17297
+ /**
17298
+ * ContentfulActivityVariationDeleted deletedAt.
17299
+ * @member {number|Long} deletedAt
17300
+ * @memberof ContentfulActivityVariationDeleted
17301
+ * @instance
17302
+ */
17303
+ ContentfulActivityVariationDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
17304
+
17305
+ /**
17306
+ * Creates a new ContentfulActivityVariationDeleted instance using the specified properties.
17307
+ * @function create
17308
+ * @memberof ContentfulActivityVariationDeleted
17309
+ * @static
17310
+ * @param {IContentfulActivityVariationDeleted=} [properties] Properties to set
17311
+ * @returns {ContentfulActivityVariationDeleted} ContentfulActivityVariationDeleted instance
17312
+ */
17313
+ ContentfulActivityVariationDeleted.create = function create(properties) {
17314
+ return new ContentfulActivityVariationDeleted(properties);
17315
+ };
17316
+
17317
+ /**
17318
+ * Encodes the specified ContentfulActivityVariationDeleted message. Does not implicitly {@link ContentfulActivityVariationDeleted.verify|verify} messages.
17319
+ * @function encode
17320
+ * @memberof ContentfulActivityVariationDeleted
17321
+ * @static
17322
+ * @param {IContentfulActivityVariationDeleted} message ContentfulActivityVariationDeleted message or plain object to encode
17323
+ * @param {$protobuf.Writer} [writer] Writer to encode to
17324
+ * @returns {$protobuf.Writer} Writer
17325
+ */
17326
+ ContentfulActivityVariationDeleted.encode = function encode(message, writer) {
17327
+ if (!writer)
17328
+ writer = $Writer.create();
17329
+ if (message.slug != null && message.hasOwnProperty("slug"))
17330
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
17331
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
17332
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.deletedAt);
17333
+ return writer;
17334
+ };
17335
+
17336
+ /**
17337
+ * Encodes the specified ContentfulActivityVariationDeleted message, length delimited. Does not implicitly {@link ContentfulActivityVariationDeleted.verify|verify} messages.
17338
+ * @function encodeDelimited
17339
+ * @memberof ContentfulActivityVariationDeleted
17340
+ * @static
17341
+ * @param {IContentfulActivityVariationDeleted} message ContentfulActivityVariationDeleted message or plain object to encode
17342
+ * @param {$protobuf.Writer} [writer] Writer to encode to
17343
+ * @returns {$protobuf.Writer} Writer
17344
+ */
17345
+ ContentfulActivityVariationDeleted.encodeDelimited = function encodeDelimited(message, writer) {
17346
+ return this.encode(message, writer).ldelim();
17347
+ };
17348
+
17349
+ /**
17350
+ * Decodes a ContentfulActivityVariationDeleted message from the specified reader or buffer.
17351
+ * @function decode
17352
+ * @memberof ContentfulActivityVariationDeleted
17353
+ * @static
17354
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
17355
+ * @param {number} [length] Message length if known beforehand
17356
+ * @returns {ContentfulActivityVariationDeleted} ContentfulActivityVariationDeleted
17357
+ * @throws {Error} If the payload is not a reader or valid buffer
17358
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17359
+ */
17360
+ ContentfulActivityVariationDeleted.decode = function decode(reader, length) {
17361
+ if (!(reader instanceof $Reader))
17362
+ reader = $Reader.create(reader);
17363
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulActivityVariationDeleted();
17364
+ while (reader.pos < end) {
17365
+ var tag = reader.uint32();
17366
+ switch (tag >>> 3) {
17367
+ case 1:
17368
+ message.slug = reader.string();
17369
+ break;
17370
+ case 2:
17371
+ message.deletedAt = reader.uint64();
17372
+ break;
17373
+ default:
17374
+ reader.skipType(tag & 7);
17375
+ break;
17376
+ }
17377
+ }
17378
+ return message;
17379
+ };
17380
+
17381
+ /**
17382
+ * Decodes a ContentfulActivityVariationDeleted message from the specified reader or buffer, length delimited.
17383
+ * @function decodeDelimited
17384
+ * @memberof ContentfulActivityVariationDeleted
17385
+ * @static
17386
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
17387
+ * @returns {ContentfulActivityVariationDeleted} ContentfulActivityVariationDeleted
17388
+ * @throws {Error} If the payload is not a reader or valid buffer
17389
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17390
+ */
17391
+ ContentfulActivityVariationDeleted.decodeDelimited = function decodeDelimited(reader) {
17392
+ if (!(reader instanceof $Reader))
17393
+ reader = new $Reader(reader);
17394
+ return this.decode(reader, reader.uint32());
17395
+ };
17396
+
17397
+ /**
17398
+ * Verifies a ContentfulActivityVariationDeleted message.
17399
+ * @function verify
17400
+ * @memberof ContentfulActivityVariationDeleted
17401
+ * @static
17402
+ * @param {Object.<string,*>} message Plain object to verify
17403
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
17404
+ */
17405
+ ContentfulActivityVariationDeleted.verify = function verify(message) {
17406
+ if (typeof message !== "object" || message === null)
17407
+ return "object expected";
17408
+ if (message.slug != null && message.hasOwnProperty("slug"))
17409
+ if (!$util.isString(message.slug))
17410
+ return "slug: string expected";
17411
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
17412
+ if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
17413
+ return "deletedAt: integer|Long expected";
17414
+ return null;
17415
+ };
17416
+
17417
+ /**
17418
+ * Creates a ContentfulActivityVariationDeleted message from a plain object. Also converts values to their respective internal types.
17419
+ * @function fromObject
17420
+ * @memberof ContentfulActivityVariationDeleted
17421
+ * @static
17422
+ * @param {Object.<string,*>} object Plain object
17423
+ * @returns {ContentfulActivityVariationDeleted} ContentfulActivityVariationDeleted
17424
+ */
17425
+ ContentfulActivityVariationDeleted.fromObject = function fromObject(object) {
17426
+ if (object instanceof $root.ContentfulActivityVariationDeleted)
17427
+ return object;
17428
+ var message = new $root.ContentfulActivityVariationDeleted();
17429
+ if (object.slug != null)
17430
+ message.slug = String(object.slug);
17431
+ if (object.deletedAt != null)
17432
+ if ($util.Long)
17433
+ (message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
17434
+ else if (typeof object.deletedAt === "string")
17435
+ message.deletedAt = parseInt(object.deletedAt, 10);
17436
+ else if (typeof object.deletedAt === "number")
17437
+ message.deletedAt = object.deletedAt;
17438
+ else if (typeof object.deletedAt === "object")
17439
+ message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
17440
+ return message;
17441
+ };
17442
+
17443
+ /**
17444
+ * Creates a plain object from a ContentfulActivityVariationDeleted message. Also converts values to other types if specified.
17445
+ * @function toObject
17446
+ * @memberof ContentfulActivityVariationDeleted
17447
+ * @static
17448
+ * @param {ContentfulActivityVariationDeleted} message ContentfulActivityVariationDeleted
17449
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
17450
+ * @returns {Object.<string,*>} Plain object
17451
+ */
17452
+ ContentfulActivityVariationDeleted.toObject = function toObject(message, options) {
17453
+ if (!options)
17454
+ options = {};
17455
+ var object = {};
17456
+ if (options.defaults) {
17457
+ object.slug = "";
17458
+ if ($util.Long) {
17459
+ var long = new $util.Long(0, 0, true);
17460
+ object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
17461
+ } else
17462
+ object.deletedAt = options.longs === String ? "0" : 0;
17463
+ }
17464
+ if (message.slug != null && message.hasOwnProperty("slug"))
17465
+ object.slug = message.slug;
17466
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
17467
+ if (typeof message.deletedAt === "number")
17468
+ object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
17469
+ else
17470
+ 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;
17471
+ return object;
17472
+ };
17473
+
17474
+ /**
17475
+ * Converts this ContentfulActivityVariationDeleted to JSON.
17476
+ * @function toJSON
17477
+ * @memberof ContentfulActivityVariationDeleted
17478
+ * @instance
17479
+ * @returns {Object.<string,*>} JSON object
17480
+ */
17481
+ ContentfulActivityVariationDeleted.prototype.toJSON = function toJSON() {
17482
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
17483
+ };
17484
+
17485
+ return ContentfulActivityVariationDeleted;
17486
+ })();
17487
+
16628
17488
  $root.ContentfulContentModelCreated = (function() {
16629
17489
 
16630
17490
  /**
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.135.0"
19
+ "version": "1.136.0"
20
20
  }