@headspace/protos-events 1.121.0 → 1.122.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
@@ -8984,6 +8984,342 @@ export class WakeupPlaylistDeleted implements IWakeupPlaylistDeleted {
8984
8984
  public toJSON(): { [k: string]: any };
8985
8985
  }
8986
8986
 
8987
+ /** Properties of a WorkoutPlaylistCreated. */
8988
+ export interface IWorkoutPlaylistCreated {
8989
+
8990
+ /** WorkoutPlaylistCreated slug */
8991
+ slug?: (string|null);
8992
+
8993
+ /** WorkoutPlaylistCreated entityId */
8994
+ entityId?: (number|null);
8995
+
8996
+ /** WorkoutPlaylistCreated entityType */
8997
+ entityType?: (string|null);
8998
+
8999
+ /** WorkoutPlaylistCreated accessGroups */
9000
+ accessGroups?: (contentful.ISlugReference[]|null);
9001
+
9002
+ /** WorkoutPlaylistCreated createdAt */
9003
+ createdAt?: (number|Long|null);
9004
+ }
9005
+
9006
+ /** Represents a WorkoutPlaylistCreated. */
9007
+ export class WorkoutPlaylistCreated implements IWorkoutPlaylistCreated {
9008
+
9009
+ /**
9010
+ * Constructs a new WorkoutPlaylistCreated.
9011
+ * @param [properties] Properties to set
9012
+ */
9013
+ constructor(properties?: IWorkoutPlaylistCreated);
9014
+
9015
+ /** WorkoutPlaylistCreated slug. */
9016
+ public slug: string;
9017
+
9018
+ /** WorkoutPlaylistCreated entityId. */
9019
+ public entityId: number;
9020
+
9021
+ /** WorkoutPlaylistCreated entityType. */
9022
+ public entityType: string;
9023
+
9024
+ /** WorkoutPlaylistCreated accessGroups. */
9025
+ public accessGroups: contentful.ISlugReference[];
9026
+
9027
+ /** WorkoutPlaylistCreated createdAt. */
9028
+ public createdAt: (number|Long);
9029
+
9030
+ /**
9031
+ * Creates a new WorkoutPlaylistCreated instance using the specified properties.
9032
+ * @param [properties] Properties to set
9033
+ * @returns WorkoutPlaylistCreated instance
9034
+ */
9035
+ public static create(properties?: IWorkoutPlaylistCreated): WorkoutPlaylistCreated;
9036
+
9037
+ /**
9038
+ * Encodes the specified WorkoutPlaylistCreated message. Does not implicitly {@link WorkoutPlaylistCreated.verify|verify} messages.
9039
+ * @param message WorkoutPlaylistCreated message or plain object to encode
9040
+ * @param [writer] Writer to encode to
9041
+ * @returns Writer
9042
+ */
9043
+ public static encode(message: IWorkoutPlaylistCreated, writer?: $protobuf.Writer): $protobuf.Writer;
9044
+
9045
+ /**
9046
+ * Encodes the specified WorkoutPlaylistCreated message, length delimited. Does not implicitly {@link WorkoutPlaylistCreated.verify|verify} messages.
9047
+ * @param message WorkoutPlaylistCreated message or plain object to encode
9048
+ * @param [writer] Writer to encode to
9049
+ * @returns Writer
9050
+ */
9051
+ public static encodeDelimited(message: IWorkoutPlaylistCreated, writer?: $protobuf.Writer): $protobuf.Writer;
9052
+
9053
+ /**
9054
+ * Decodes a WorkoutPlaylistCreated message from the specified reader or buffer.
9055
+ * @param reader Reader or buffer to decode from
9056
+ * @param [length] Message length if known beforehand
9057
+ * @returns WorkoutPlaylistCreated
9058
+ * @throws {Error} If the payload is not a reader or valid buffer
9059
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9060
+ */
9061
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): WorkoutPlaylistCreated;
9062
+
9063
+ /**
9064
+ * Decodes a WorkoutPlaylistCreated message from the specified reader or buffer, length delimited.
9065
+ * @param reader Reader or buffer to decode from
9066
+ * @returns WorkoutPlaylistCreated
9067
+ * @throws {Error} If the payload is not a reader or valid buffer
9068
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9069
+ */
9070
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): WorkoutPlaylistCreated;
9071
+
9072
+ /**
9073
+ * Verifies a WorkoutPlaylistCreated message.
9074
+ * @param message Plain object to verify
9075
+ * @returns `null` if valid, otherwise the reason why it is not
9076
+ */
9077
+ public static verify(message: { [k: string]: any }): (string|null);
9078
+
9079
+ /**
9080
+ * Creates a WorkoutPlaylistCreated message from a plain object. Also converts values to their respective internal types.
9081
+ * @param object Plain object
9082
+ * @returns WorkoutPlaylistCreated
9083
+ */
9084
+ public static fromObject(object: { [k: string]: any }): WorkoutPlaylistCreated;
9085
+
9086
+ /**
9087
+ * Creates a plain object from a WorkoutPlaylistCreated message. Also converts values to other types if specified.
9088
+ * @param message WorkoutPlaylistCreated
9089
+ * @param [options] Conversion options
9090
+ * @returns Plain object
9091
+ */
9092
+ public static toObject(message: WorkoutPlaylistCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
9093
+
9094
+ /**
9095
+ * Converts this WorkoutPlaylistCreated to JSON.
9096
+ * @returns JSON object
9097
+ */
9098
+ public toJSON(): { [k: string]: any };
9099
+ }
9100
+
9101
+ /** Properties of a WorkoutPlaylistUpdated. */
9102
+ export interface IWorkoutPlaylistUpdated {
9103
+
9104
+ /** WorkoutPlaylistUpdated slug */
9105
+ slug?: (string|null);
9106
+
9107
+ /** WorkoutPlaylistUpdated entityId */
9108
+ entityId?: (number|null);
9109
+
9110
+ /** WorkoutPlaylistUpdated entityType */
9111
+ entityType?: (string|null);
9112
+
9113
+ /** WorkoutPlaylistUpdated accessGroups */
9114
+ accessGroups?: (contentful.ISlugReference[]|null);
9115
+
9116
+ /** WorkoutPlaylistUpdated updatedAt */
9117
+ updatedAt?: (number|Long|null);
9118
+ }
9119
+
9120
+ /** Represents a WorkoutPlaylistUpdated. */
9121
+ export class WorkoutPlaylistUpdated implements IWorkoutPlaylistUpdated {
9122
+
9123
+ /**
9124
+ * Constructs a new WorkoutPlaylistUpdated.
9125
+ * @param [properties] Properties to set
9126
+ */
9127
+ constructor(properties?: IWorkoutPlaylistUpdated);
9128
+
9129
+ /** WorkoutPlaylistUpdated slug. */
9130
+ public slug: string;
9131
+
9132
+ /** WorkoutPlaylistUpdated entityId. */
9133
+ public entityId: number;
9134
+
9135
+ /** WorkoutPlaylistUpdated entityType. */
9136
+ public entityType: string;
9137
+
9138
+ /** WorkoutPlaylistUpdated accessGroups. */
9139
+ public accessGroups: contentful.ISlugReference[];
9140
+
9141
+ /** WorkoutPlaylistUpdated updatedAt. */
9142
+ public updatedAt: (number|Long);
9143
+
9144
+ /**
9145
+ * Creates a new WorkoutPlaylistUpdated instance using the specified properties.
9146
+ * @param [properties] Properties to set
9147
+ * @returns WorkoutPlaylistUpdated instance
9148
+ */
9149
+ public static create(properties?: IWorkoutPlaylistUpdated): WorkoutPlaylistUpdated;
9150
+
9151
+ /**
9152
+ * Encodes the specified WorkoutPlaylistUpdated message. Does not implicitly {@link WorkoutPlaylistUpdated.verify|verify} messages.
9153
+ * @param message WorkoutPlaylistUpdated message or plain object to encode
9154
+ * @param [writer] Writer to encode to
9155
+ * @returns Writer
9156
+ */
9157
+ public static encode(message: IWorkoutPlaylistUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
9158
+
9159
+ /**
9160
+ * Encodes the specified WorkoutPlaylistUpdated message, length delimited. Does not implicitly {@link WorkoutPlaylistUpdated.verify|verify} messages.
9161
+ * @param message WorkoutPlaylistUpdated message or plain object to encode
9162
+ * @param [writer] Writer to encode to
9163
+ * @returns Writer
9164
+ */
9165
+ public static encodeDelimited(message: IWorkoutPlaylistUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
9166
+
9167
+ /**
9168
+ * Decodes a WorkoutPlaylistUpdated message from the specified reader or buffer.
9169
+ * @param reader Reader or buffer to decode from
9170
+ * @param [length] Message length if known beforehand
9171
+ * @returns WorkoutPlaylistUpdated
9172
+ * @throws {Error} If the payload is not a reader or valid buffer
9173
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9174
+ */
9175
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): WorkoutPlaylistUpdated;
9176
+
9177
+ /**
9178
+ * Decodes a WorkoutPlaylistUpdated message from the specified reader or buffer, length delimited.
9179
+ * @param reader Reader or buffer to decode from
9180
+ * @returns WorkoutPlaylistUpdated
9181
+ * @throws {Error} If the payload is not a reader or valid buffer
9182
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9183
+ */
9184
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): WorkoutPlaylistUpdated;
9185
+
9186
+ /**
9187
+ * Verifies a WorkoutPlaylistUpdated message.
9188
+ * @param message Plain object to verify
9189
+ * @returns `null` if valid, otherwise the reason why it is not
9190
+ */
9191
+ public static verify(message: { [k: string]: any }): (string|null);
9192
+
9193
+ /**
9194
+ * Creates a WorkoutPlaylistUpdated message from a plain object. Also converts values to their respective internal types.
9195
+ * @param object Plain object
9196
+ * @returns WorkoutPlaylistUpdated
9197
+ */
9198
+ public static fromObject(object: { [k: string]: any }): WorkoutPlaylistUpdated;
9199
+
9200
+ /**
9201
+ * Creates a plain object from a WorkoutPlaylistUpdated message. Also converts values to other types if specified.
9202
+ * @param message WorkoutPlaylistUpdated
9203
+ * @param [options] Conversion options
9204
+ * @returns Plain object
9205
+ */
9206
+ public static toObject(message: WorkoutPlaylistUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
9207
+
9208
+ /**
9209
+ * Converts this WorkoutPlaylistUpdated to JSON.
9210
+ * @returns JSON object
9211
+ */
9212
+ public toJSON(): { [k: string]: any };
9213
+ }
9214
+
9215
+ /** Properties of a WorkoutPlaylistDeleted. */
9216
+ export interface IWorkoutPlaylistDeleted {
9217
+
9218
+ /** WorkoutPlaylistDeleted slug */
9219
+ slug?: (string|null);
9220
+
9221
+ /** WorkoutPlaylistDeleted entityId */
9222
+ entityId?: (number|null);
9223
+
9224
+ /** WorkoutPlaylistDeleted entityType */
9225
+ entityType?: (string|null);
9226
+
9227
+ /** WorkoutPlaylistDeleted deletedAt */
9228
+ deletedAt?: (number|Long|null);
9229
+ }
9230
+
9231
+ /** Represents a WorkoutPlaylistDeleted. */
9232
+ export class WorkoutPlaylistDeleted implements IWorkoutPlaylistDeleted {
9233
+
9234
+ /**
9235
+ * Constructs a new WorkoutPlaylistDeleted.
9236
+ * @param [properties] Properties to set
9237
+ */
9238
+ constructor(properties?: IWorkoutPlaylistDeleted);
9239
+
9240
+ /** WorkoutPlaylistDeleted slug. */
9241
+ public slug: string;
9242
+
9243
+ /** WorkoutPlaylistDeleted entityId. */
9244
+ public entityId: number;
9245
+
9246
+ /** WorkoutPlaylistDeleted entityType. */
9247
+ public entityType: string;
9248
+
9249
+ /** WorkoutPlaylistDeleted deletedAt. */
9250
+ public deletedAt: (number|Long);
9251
+
9252
+ /**
9253
+ * Creates a new WorkoutPlaylistDeleted instance using the specified properties.
9254
+ * @param [properties] Properties to set
9255
+ * @returns WorkoutPlaylistDeleted instance
9256
+ */
9257
+ public static create(properties?: IWorkoutPlaylistDeleted): WorkoutPlaylistDeleted;
9258
+
9259
+ /**
9260
+ * Encodes the specified WorkoutPlaylistDeleted message. Does not implicitly {@link WorkoutPlaylistDeleted.verify|verify} messages.
9261
+ * @param message WorkoutPlaylistDeleted message or plain object to encode
9262
+ * @param [writer] Writer to encode to
9263
+ * @returns Writer
9264
+ */
9265
+ public static encode(message: IWorkoutPlaylistDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
9266
+
9267
+ /**
9268
+ * Encodes the specified WorkoutPlaylistDeleted message, length delimited. Does not implicitly {@link WorkoutPlaylistDeleted.verify|verify} messages.
9269
+ * @param message WorkoutPlaylistDeleted message or plain object to encode
9270
+ * @param [writer] Writer to encode to
9271
+ * @returns Writer
9272
+ */
9273
+ public static encodeDelimited(message: IWorkoutPlaylistDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
9274
+
9275
+ /**
9276
+ * Decodes a WorkoutPlaylistDeleted message from the specified reader or buffer.
9277
+ * @param reader Reader or buffer to decode from
9278
+ * @param [length] Message length if known beforehand
9279
+ * @returns WorkoutPlaylistDeleted
9280
+ * @throws {Error} If the payload is not a reader or valid buffer
9281
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9282
+ */
9283
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): WorkoutPlaylistDeleted;
9284
+
9285
+ /**
9286
+ * Decodes a WorkoutPlaylistDeleted message from the specified reader or buffer, length delimited.
9287
+ * @param reader Reader or buffer to decode from
9288
+ * @returns WorkoutPlaylistDeleted
9289
+ * @throws {Error} If the payload is not a reader or valid buffer
9290
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9291
+ */
9292
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): WorkoutPlaylistDeleted;
9293
+
9294
+ /**
9295
+ * Verifies a WorkoutPlaylistDeleted message.
9296
+ * @param message Plain object to verify
9297
+ * @returns `null` if valid, otherwise the reason why it is not
9298
+ */
9299
+ public static verify(message: { [k: string]: any }): (string|null);
9300
+
9301
+ /**
9302
+ * Creates a WorkoutPlaylistDeleted message from a plain object. Also converts values to their respective internal types.
9303
+ * @param object Plain object
9304
+ * @returns WorkoutPlaylistDeleted
9305
+ */
9306
+ public static fromObject(object: { [k: string]: any }): WorkoutPlaylistDeleted;
9307
+
9308
+ /**
9309
+ * Creates a plain object from a WorkoutPlaylistDeleted message. Also converts values to other types if specified.
9310
+ * @param message WorkoutPlaylistDeleted
9311
+ * @param [options] Conversion options
9312
+ * @returns Plain object
9313
+ */
9314
+ public static toObject(message: WorkoutPlaylistDeleted, options?: $protobuf.IConversionOptions): { [k: string]: any };
9315
+
9316
+ /**
9317
+ * Converts this WorkoutPlaylistDeleted to JSON.
9318
+ * @returns JSON object
9319
+ */
9320
+ public toJSON(): { [k: string]: any };
9321
+ }
9322
+
8987
9323
  /** Properties of an ExperimentContentMapCreated. */
8988
9324
  export interface IExperimentContentMapCreated {
8989
9325
 
package/lib/index.js CHANGED
@@ -23296,6 +23296,898 @@ $root.WakeupPlaylistDeleted = (function() {
23296
23296
  return WakeupPlaylistDeleted;
23297
23297
  })();
23298
23298
 
23299
+ $root.WorkoutPlaylistCreated = (function() {
23300
+
23301
+ /**
23302
+ * Properties of a WorkoutPlaylistCreated.
23303
+ * @exports IWorkoutPlaylistCreated
23304
+ * @interface IWorkoutPlaylistCreated
23305
+ * @property {string|null} [slug] WorkoutPlaylistCreated slug
23306
+ * @property {number|null} [entityId] WorkoutPlaylistCreated entityId
23307
+ * @property {string|null} [entityType] WorkoutPlaylistCreated entityType
23308
+ * @property {Array.<contentful.ISlugReference>|null} [accessGroups] WorkoutPlaylistCreated accessGroups
23309
+ * @property {number|Long|null} [createdAt] WorkoutPlaylistCreated createdAt
23310
+ */
23311
+
23312
+ /**
23313
+ * Constructs a new WorkoutPlaylistCreated.
23314
+ * @exports WorkoutPlaylistCreated
23315
+ * @classdesc Represents a WorkoutPlaylistCreated.
23316
+ * @implements IWorkoutPlaylistCreated
23317
+ * @constructor
23318
+ * @param {IWorkoutPlaylistCreated=} [properties] Properties to set
23319
+ */
23320
+ function WorkoutPlaylistCreated(properties) {
23321
+ this.accessGroups = [];
23322
+ if (properties)
23323
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
23324
+ if (properties[keys[i]] != null)
23325
+ this[keys[i]] = properties[keys[i]];
23326
+ }
23327
+
23328
+ /**
23329
+ * WorkoutPlaylistCreated slug.
23330
+ * @member {string} slug
23331
+ * @memberof WorkoutPlaylistCreated
23332
+ * @instance
23333
+ */
23334
+ WorkoutPlaylistCreated.prototype.slug = "";
23335
+
23336
+ /**
23337
+ * WorkoutPlaylistCreated entityId.
23338
+ * @member {number} entityId
23339
+ * @memberof WorkoutPlaylistCreated
23340
+ * @instance
23341
+ */
23342
+ WorkoutPlaylistCreated.prototype.entityId = 0;
23343
+
23344
+ /**
23345
+ * WorkoutPlaylistCreated entityType.
23346
+ * @member {string} entityType
23347
+ * @memberof WorkoutPlaylistCreated
23348
+ * @instance
23349
+ */
23350
+ WorkoutPlaylistCreated.prototype.entityType = "";
23351
+
23352
+ /**
23353
+ * WorkoutPlaylistCreated accessGroups.
23354
+ * @member {Array.<contentful.ISlugReference>} accessGroups
23355
+ * @memberof WorkoutPlaylistCreated
23356
+ * @instance
23357
+ */
23358
+ WorkoutPlaylistCreated.prototype.accessGroups = $util.emptyArray;
23359
+
23360
+ /**
23361
+ * WorkoutPlaylistCreated createdAt.
23362
+ * @member {number|Long} createdAt
23363
+ * @memberof WorkoutPlaylistCreated
23364
+ * @instance
23365
+ */
23366
+ WorkoutPlaylistCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
23367
+
23368
+ /**
23369
+ * Creates a new WorkoutPlaylistCreated instance using the specified properties.
23370
+ * @function create
23371
+ * @memberof WorkoutPlaylistCreated
23372
+ * @static
23373
+ * @param {IWorkoutPlaylistCreated=} [properties] Properties to set
23374
+ * @returns {WorkoutPlaylistCreated} WorkoutPlaylistCreated instance
23375
+ */
23376
+ WorkoutPlaylistCreated.create = function create(properties) {
23377
+ return new WorkoutPlaylistCreated(properties);
23378
+ };
23379
+
23380
+ /**
23381
+ * Encodes the specified WorkoutPlaylistCreated message. Does not implicitly {@link WorkoutPlaylistCreated.verify|verify} messages.
23382
+ * @function encode
23383
+ * @memberof WorkoutPlaylistCreated
23384
+ * @static
23385
+ * @param {IWorkoutPlaylistCreated} message WorkoutPlaylistCreated message or plain object to encode
23386
+ * @param {$protobuf.Writer} [writer] Writer to encode to
23387
+ * @returns {$protobuf.Writer} Writer
23388
+ */
23389
+ WorkoutPlaylistCreated.encode = function encode(message, writer) {
23390
+ if (!writer)
23391
+ writer = $Writer.create();
23392
+ if (message.slug != null && message.hasOwnProperty("slug"))
23393
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
23394
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
23395
+ writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.entityId);
23396
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
23397
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.entityType);
23398
+ if (message.accessGroups != null && message.accessGroups.length)
23399
+ for (var i = 0; i < message.accessGroups.length; ++i)
23400
+ $root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
23401
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
23402
+ writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.createdAt);
23403
+ return writer;
23404
+ };
23405
+
23406
+ /**
23407
+ * Encodes the specified WorkoutPlaylistCreated message, length delimited. Does not implicitly {@link WorkoutPlaylistCreated.verify|verify} messages.
23408
+ * @function encodeDelimited
23409
+ * @memberof WorkoutPlaylistCreated
23410
+ * @static
23411
+ * @param {IWorkoutPlaylistCreated} message WorkoutPlaylistCreated message or plain object to encode
23412
+ * @param {$protobuf.Writer} [writer] Writer to encode to
23413
+ * @returns {$protobuf.Writer} Writer
23414
+ */
23415
+ WorkoutPlaylistCreated.encodeDelimited = function encodeDelimited(message, writer) {
23416
+ return this.encode(message, writer).ldelim();
23417
+ };
23418
+
23419
+ /**
23420
+ * Decodes a WorkoutPlaylistCreated message from the specified reader or buffer.
23421
+ * @function decode
23422
+ * @memberof WorkoutPlaylistCreated
23423
+ * @static
23424
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
23425
+ * @param {number} [length] Message length if known beforehand
23426
+ * @returns {WorkoutPlaylistCreated} WorkoutPlaylistCreated
23427
+ * @throws {Error} If the payload is not a reader or valid buffer
23428
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
23429
+ */
23430
+ WorkoutPlaylistCreated.decode = function decode(reader, length) {
23431
+ if (!(reader instanceof $Reader))
23432
+ reader = $Reader.create(reader);
23433
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.WorkoutPlaylistCreated();
23434
+ while (reader.pos < end) {
23435
+ var tag = reader.uint32();
23436
+ switch (tag >>> 3) {
23437
+ case 1:
23438
+ message.slug = reader.string();
23439
+ break;
23440
+ case 2:
23441
+ message.entityId = reader.uint32();
23442
+ break;
23443
+ case 3:
23444
+ message.entityType = reader.string();
23445
+ break;
23446
+ case 4:
23447
+ if (!(message.accessGroups && message.accessGroups.length))
23448
+ message.accessGroups = [];
23449
+ message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
23450
+ break;
23451
+ case 5:
23452
+ message.createdAt = reader.uint64();
23453
+ break;
23454
+ default:
23455
+ reader.skipType(tag & 7);
23456
+ break;
23457
+ }
23458
+ }
23459
+ return message;
23460
+ };
23461
+
23462
+ /**
23463
+ * Decodes a WorkoutPlaylistCreated message from the specified reader or buffer, length delimited.
23464
+ * @function decodeDelimited
23465
+ * @memberof WorkoutPlaylistCreated
23466
+ * @static
23467
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
23468
+ * @returns {WorkoutPlaylistCreated} WorkoutPlaylistCreated
23469
+ * @throws {Error} If the payload is not a reader or valid buffer
23470
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
23471
+ */
23472
+ WorkoutPlaylistCreated.decodeDelimited = function decodeDelimited(reader) {
23473
+ if (!(reader instanceof $Reader))
23474
+ reader = new $Reader(reader);
23475
+ return this.decode(reader, reader.uint32());
23476
+ };
23477
+
23478
+ /**
23479
+ * Verifies a WorkoutPlaylistCreated message.
23480
+ * @function verify
23481
+ * @memberof WorkoutPlaylistCreated
23482
+ * @static
23483
+ * @param {Object.<string,*>} message Plain object to verify
23484
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
23485
+ */
23486
+ WorkoutPlaylistCreated.verify = function verify(message) {
23487
+ if (typeof message !== "object" || message === null)
23488
+ return "object expected";
23489
+ if (message.slug != null && message.hasOwnProperty("slug"))
23490
+ if (!$util.isString(message.slug))
23491
+ return "slug: string expected";
23492
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
23493
+ if (!$util.isInteger(message.entityId))
23494
+ return "entityId: integer expected";
23495
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
23496
+ if (!$util.isString(message.entityType))
23497
+ return "entityType: string expected";
23498
+ if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
23499
+ if (!Array.isArray(message.accessGroups))
23500
+ return "accessGroups: array expected";
23501
+ for (var i = 0; i < message.accessGroups.length; ++i) {
23502
+ var error = $root.contentful.SlugReference.verify(message.accessGroups[i]);
23503
+ if (error)
23504
+ return "accessGroups." + error;
23505
+ }
23506
+ }
23507
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
23508
+ if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
23509
+ return "createdAt: integer|Long expected";
23510
+ return null;
23511
+ };
23512
+
23513
+ /**
23514
+ * Creates a WorkoutPlaylistCreated message from a plain object. Also converts values to their respective internal types.
23515
+ * @function fromObject
23516
+ * @memberof WorkoutPlaylistCreated
23517
+ * @static
23518
+ * @param {Object.<string,*>} object Plain object
23519
+ * @returns {WorkoutPlaylistCreated} WorkoutPlaylistCreated
23520
+ */
23521
+ WorkoutPlaylistCreated.fromObject = function fromObject(object) {
23522
+ if (object instanceof $root.WorkoutPlaylistCreated)
23523
+ return object;
23524
+ var message = new $root.WorkoutPlaylistCreated();
23525
+ if (object.slug != null)
23526
+ message.slug = String(object.slug);
23527
+ if (object.entityId != null)
23528
+ message.entityId = object.entityId >>> 0;
23529
+ if (object.entityType != null)
23530
+ message.entityType = String(object.entityType);
23531
+ if (object.accessGroups) {
23532
+ if (!Array.isArray(object.accessGroups))
23533
+ throw TypeError(".WorkoutPlaylistCreated.accessGroups: array expected");
23534
+ message.accessGroups = [];
23535
+ for (var i = 0; i < object.accessGroups.length; ++i) {
23536
+ if (typeof object.accessGroups[i] !== "object")
23537
+ throw TypeError(".WorkoutPlaylistCreated.accessGroups: object expected");
23538
+ message.accessGroups[i] = $root.contentful.SlugReference.fromObject(object.accessGroups[i]);
23539
+ }
23540
+ }
23541
+ if (object.createdAt != null)
23542
+ if ($util.Long)
23543
+ (message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
23544
+ else if (typeof object.createdAt === "string")
23545
+ message.createdAt = parseInt(object.createdAt, 10);
23546
+ else if (typeof object.createdAt === "number")
23547
+ message.createdAt = object.createdAt;
23548
+ else if (typeof object.createdAt === "object")
23549
+ message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
23550
+ return message;
23551
+ };
23552
+
23553
+ /**
23554
+ * Creates a plain object from a WorkoutPlaylistCreated message. Also converts values to other types if specified.
23555
+ * @function toObject
23556
+ * @memberof WorkoutPlaylistCreated
23557
+ * @static
23558
+ * @param {WorkoutPlaylistCreated} message WorkoutPlaylistCreated
23559
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
23560
+ * @returns {Object.<string,*>} Plain object
23561
+ */
23562
+ WorkoutPlaylistCreated.toObject = function toObject(message, options) {
23563
+ if (!options)
23564
+ options = {};
23565
+ var object = {};
23566
+ if (options.arrays || options.defaults)
23567
+ object.accessGroups = [];
23568
+ if (options.defaults) {
23569
+ object.slug = "";
23570
+ object.entityId = 0;
23571
+ object.entityType = "";
23572
+ if ($util.Long) {
23573
+ var long = new $util.Long(0, 0, true);
23574
+ object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
23575
+ } else
23576
+ object.createdAt = options.longs === String ? "0" : 0;
23577
+ }
23578
+ if (message.slug != null && message.hasOwnProperty("slug"))
23579
+ object.slug = message.slug;
23580
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
23581
+ object.entityId = message.entityId;
23582
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
23583
+ object.entityType = message.entityType;
23584
+ if (message.accessGroups && message.accessGroups.length) {
23585
+ object.accessGroups = [];
23586
+ for (var j = 0; j < message.accessGroups.length; ++j)
23587
+ object.accessGroups[j] = $root.contentful.SlugReference.toObject(message.accessGroups[j], options);
23588
+ }
23589
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
23590
+ if (typeof message.createdAt === "number")
23591
+ object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
23592
+ else
23593
+ 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;
23594
+ return object;
23595
+ };
23596
+
23597
+ /**
23598
+ * Converts this WorkoutPlaylistCreated to JSON.
23599
+ * @function toJSON
23600
+ * @memberof WorkoutPlaylistCreated
23601
+ * @instance
23602
+ * @returns {Object.<string,*>} JSON object
23603
+ */
23604
+ WorkoutPlaylistCreated.prototype.toJSON = function toJSON() {
23605
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
23606
+ };
23607
+
23608
+ return WorkoutPlaylistCreated;
23609
+ })();
23610
+
23611
+ $root.WorkoutPlaylistUpdated = (function() {
23612
+
23613
+ /**
23614
+ * Properties of a WorkoutPlaylistUpdated.
23615
+ * @exports IWorkoutPlaylistUpdated
23616
+ * @interface IWorkoutPlaylistUpdated
23617
+ * @property {string|null} [slug] WorkoutPlaylistUpdated slug
23618
+ * @property {number|null} [entityId] WorkoutPlaylistUpdated entityId
23619
+ * @property {string|null} [entityType] WorkoutPlaylistUpdated entityType
23620
+ * @property {Array.<contentful.ISlugReference>|null} [accessGroups] WorkoutPlaylistUpdated accessGroups
23621
+ * @property {number|Long|null} [updatedAt] WorkoutPlaylistUpdated updatedAt
23622
+ */
23623
+
23624
+ /**
23625
+ * Constructs a new WorkoutPlaylistUpdated.
23626
+ * @exports WorkoutPlaylistUpdated
23627
+ * @classdesc Represents a WorkoutPlaylistUpdated.
23628
+ * @implements IWorkoutPlaylistUpdated
23629
+ * @constructor
23630
+ * @param {IWorkoutPlaylistUpdated=} [properties] Properties to set
23631
+ */
23632
+ function WorkoutPlaylistUpdated(properties) {
23633
+ this.accessGroups = [];
23634
+ if (properties)
23635
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
23636
+ if (properties[keys[i]] != null)
23637
+ this[keys[i]] = properties[keys[i]];
23638
+ }
23639
+
23640
+ /**
23641
+ * WorkoutPlaylistUpdated slug.
23642
+ * @member {string} slug
23643
+ * @memberof WorkoutPlaylistUpdated
23644
+ * @instance
23645
+ */
23646
+ WorkoutPlaylistUpdated.prototype.slug = "";
23647
+
23648
+ /**
23649
+ * WorkoutPlaylistUpdated entityId.
23650
+ * @member {number} entityId
23651
+ * @memberof WorkoutPlaylistUpdated
23652
+ * @instance
23653
+ */
23654
+ WorkoutPlaylistUpdated.prototype.entityId = 0;
23655
+
23656
+ /**
23657
+ * WorkoutPlaylistUpdated entityType.
23658
+ * @member {string} entityType
23659
+ * @memberof WorkoutPlaylistUpdated
23660
+ * @instance
23661
+ */
23662
+ WorkoutPlaylistUpdated.prototype.entityType = "";
23663
+
23664
+ /**
23665
+ * WorkoutPlaylistUpdated accessGroups.
23666
+ * @member {Array.<contentful.ISlugReference>} accessGroups
23667
+ * @memberof WorkoutPlaylistUpdated
23668
+ * @instance
23669
+ */
23670
+ WorkoutPlaylistUpdated.prototype.accessGroups = $util.emptyArray;
23671
+
23672
+ /**
23673
+ * WorkoutPlaylistUpdated updatedAt.
23674
+ * @member {number|Long} updatedAt
23675
+ * @memberof WorkoutPlaylistUpdated
23676
+ * @instance
23677
+ */
23678
+ WorkoutPlaylistUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
23679
+
23680
+ /**
23681
+ * Creates a new WorkoutPlaylistUpdated instance using the specified properties.
23682
+ * @function create
23683
+ * @memberof WorkoutPlaylistUpdated
23684
+ * @static
23685
+ * @param {IWorkoutPlaylistUpdated=} [properties] Properties to set
23686
+ * @returns {WorkoutPlaylistUpdated} WorkoutPlaylistUpdated instance
23687
+ */
23688
+ WorkoutPlaylistUpdated.create = function create(properties) {
23689
+ return new WorkoutPlaylistUpdated(properties);
23690
+ };
23691
+
23692
+ /**
23693
+ * Encodes the specified WorkoutPlaylistUpdated message. Does not implicitly {@link WorkoutPlaylistUpdated.verify|verify} messages.
23694
+ * @function encode
23695
+ * @memberof WorkoutPlaylistUpdated
23696
+ * @static
23697
+ * @param {IWorkoutPlaylistUpdated} message WorkoutPlaylistUpdated message or plain object to encode
23698
+ * @param {$protobuf.Writer} [writer] Writer to encode to
23699
+ * @returns {$protobuf.Writer} Writer
23700
+ */
23701
+ WorkoutPlaylistUpdated.encode = function encode(message, writer) {
23702
+ if (!writer)
23703
+ writer = $Writer.create();
23704
+ if (message.slug != null && message.hasOwnProperty("slug"))
23705
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
23706
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
23707
+ writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.entityId);
23708
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
23709
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.entityType);
23710
+ if (message.accessGroups != null && message.accessGroups.length)
23711
+ for (var i = 0; i < message.accessGroups.length; ++i)
23712
+ $root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
23713
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
23714
+ writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.updatedAt);
23715
+ return writer;
23716
+ };
23717
+
23718
+ /**
23719
+ * Encodes the specified WorkoutPlaylistUpdated message, length delimited. Does not implicitly {@link WorkoutPlaylistUpdated.verify|verify} messages.
23720
+ * @function encodeDelimited
23721
+ * @memberof WorkoutPlaylistUpdated
23722
+ * @static
23723
+ * @param {IWorkoutPlaylistUpdated} message WorkoutPlaylistUpdated message or plain object to encode
23724
+ * @param {$protobuf.Writer} [writer] Writer to encode to
23725
+ * @returns {$protobuf.Writer} Writer
23726
+ */
23727
+ WorkoutPlaylistUpdated.encodeDelimited = function encodeDelimited(message, writer) {
23728
+ return this.encode(message, writer).ldelim();
23729
+ };
23730
+
23731
+ /**
23732
+ * Decodes a WorkoutPlaylistUpdated message from the specified reader or buffer.
23733
+ * @function decode
23734
+ * @memberof WorkoutPlaylistUpdated
23735
+ * @static
23736
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
23737
+ * @param {number} [length] Message length if known beforehand
23738
+ * @returns {WorkoutPlaylistUpdated} WorkoutPlaylistUpdated
23739
+ * @throws {Error} If the payload is not a reader or valid buffer
23740
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
23741
+ */
23742
+ WorkoutPlaylistUpdated.decode = function decode(reader, length) {
23743
+ if (!(reader instanceof $Reader))
23744
+ reader = $Reader.create(reader);
23745
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.WorkoutPlaylistUpdated();
23746
+ while (reader.pos < end) {
23747
+ var tag = reader.uint32();
23748
+ switch (tag >>> 3) {
23749
+ case 1:
23750
+ message.slug = reader.string();
23751
+ break;
23752
+ case 2:
23753
+ message.entityId = reader.uint32();
23754
+ break;
23755
+ case 3:
23756
+ message.entityType = reader.string();
23757
+ break;
23758
+ case 4:
23759
+ if (!(message.accessGroups && message.accessGroups.length))
23760
+ message.accessGroups = [];
23761
+ message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
23762
+ break;
23763
+ case 5:
23764
+ message.updatedAt = reader.uint64();
23765
+ break;
23766
+ default:
23767
+ reader.skipType(tag & 7);
23768
+ break;
23769
+ }
23770
+ }
23771
+ return message;
23772
+ };
23773
+
23774
+ /**
23775
+ * Decodes a WorkoutPlaylistUpdated message from the specified reader or buffer, length delimited.
23776
+ * @function decodeDelimited
23777
+ * @memberof WorkoutPlaylistUpdated
23778
+ * @static
23779
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
23780
+ * @returns {WorkoutPlaylistUpdated} WorkoutPlaylistUpdated
23781
+ * @throws {Error} If the payload is not a reader or valid buffer
23782
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
23783
+ */
23784
+ WorkoutPlaylistUpdated.decodeDelimited = function decodeDelimited(reader) {
23785
+ if (!(reader instanceof $Reader))
23786
+ reader = new $Reader(reader);
23787
+ return this.decode(reader, reader.uint32());
23788
+ };
23789
+
23790
+ /**
23791
+ * Verifies a WorkoutPlaylistUpdated message.
23792
+ * @function verify
23793
+ * @memberof WorkoutPlaylistUpdated
23794
+ * @static
23795
+ * @param {Object.<string,*>} message Plain object to verify
23796
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
23797
+ */
23798
+ WorkoutPlaylistUpdated.verify = function verify(message) {
23799
+ if (typeof message !== "object" || message === null)
23800
+ return "object expected";
23801
+ if (message.slug != null && message.hasOwnProperty("slug"))
23802
+ if (!$util.isString(message.slug))
23803
+ return "slug: string expected";
23804
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
23805
+ if (!$util.isInteger(message.entityId))
23806
+ return "entityId: integer expected";
23807
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
23808
+ if (!$util.isString(message.entityType))
23809
+ return "entityType: string expected";
23810
+ if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
23811
+ if (!Array.isArray(message.accessGroups))
23812
+ return "accessGroups: array expected";
23813
+ for (var i = 0; i < message.accessGroups.length; ++i) {
23814
+ var error = $root.contentful.SlugReference.verify(message.accessGroups[i]);
23815
+ if (error)
23816
+ return "accessGroups." + error;
23817
+ }
23818
+ }
23819
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
23820
+ if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
23821
+ return "updatedAt: integer|Long expected";
23822
+ return null;
23823
+ };
23824
+
23825
+ /**
23826
+ * Creates a WorkoutPlaylistUpdated message from a plain object. Also converts values to their respective internal types.
23827
+ * @function fromObject
23828
+ * @memberof WorkoutPlaylistUpdated
23829
+ * @static
23830
+ * @param {Object.<string,*>} object Plain object
23831
+ * @returns {WorkoutPlaylistUpdated} WorkoutPlaylistUpdated
23832
+ */
23833
+ WorkoutPlaylistUpdated.fromObject = function fromObject(object) {
23834
+ if (object instanceof $root.WorkoutPlaylistUpdated)
23835
+ return object;
23836
+ var message = new $root.WorkoutPlaylistUpdated();
23837
+ if (object.slug != null)
23838
+ message.slug = String(object.slug);
23839
+ if (object.entityId != null)
23840
+ message.entityId = object.entityId >>> 0;
23841
+ if (object.entityType != null)
23842
+ message.entityType = String(object.entityType);
23843
+ if (object.accessGroups) {
23844
+ if (!Array.isArray(object.accessGroups))
23845
+ throw TypeError(".WorkoutPlaylistUpdated.accessGroups: array expected");
23846
+ message.accessGroups = [];
23847
+ for (var i = 0; i < object.accessGroups.length; ++i) {
23848
+ if (typeof object.accessGroups[i] !== "object")
23849
+ throw TypeError(".WorkoutPlaylistUpdated.accessGroups: object expected");
23850
+ message.accessGroups[i] = $root.contentful.SlugReference.fromObject(object.accessGroups[i]);
23851
+ }
23852
+ }
23853
+ if (object.updatedAt != null)
23854
+ if ($util.Long)
23855
+ (message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
23856
+ else if (typeof object.updatedAt === "string")
23857
+ message.updatedAt = parseInt(object.updatedAt, 10);
23858
+ else if (typeof object.updatedAt === "number")
23859
+ message.updatedAt = object.updatedAt;
23860
+ else if (typeof object.updatedAt === "object")
23861
+ message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
23862
+ return message;
23863
+ };
23864
+
23865
+ /**
23866
+ * Creates a plain object from a WorkoutPlaylistUpdated message. Also converts values to other types if specified.
23867
+ * @function toObject
23868
+ * @memberof WorkoutPlaylistUpdated
23869
+ * @static
23870
+ * @param {WorkoutPlaylistUpdated} message WorkoutPlaylistUpdated
23871
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
23872
+ * @returns {Object.<string,*>} Plain object
23873
+ */
23874
+ WorkoutPlaylistUpdated.toObject = function toObject(message, options) {
23875
+ if (!options)
23876
+ options = {};
23877
+ var object = {};
23878
+ if (options.arrays || options.defaults)
23879
+ object.accessGroups = [];
23880
+ if (options.defaults) {
23881
+ object.slug = "";
23882
+ object.entityId = 0;
23883
+ object.entityType = "";
23884
+ if ($util.Long) {
23885
+ var long = new $util.Long(0, 0, true);
23886
+ object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
23887
+ } else
23888
+ object.updatedAt = options.longs === String ? "0" : 0;
23889
+ }
23890
+ if (message.slug != null && message.hasOwnProperty("slug"))
23891
+ object.slug = message.slug;
23892
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
23893
+ object.entityId = message.entityId;
23894
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
23895
+ object.entityType = message.entityType;
23896
+ if (message.accessGroups && message.accessGroups.length) {
23897
+ object.accessGroups = [];
23898
+ for (var j = 0; j < message.accessGroups.length; ++j)
23899
+ object.accessGroups[j] = $root.contentful.SlugReference.toObject(message.accessGroups[j], options);
23900
+ }
23901
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
23902
+ if (typeof message.updatedAt === "number")
23903
+ object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
23904
+ else
23905
+ 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;
23906
+ return object;
23907
+ };
23908
+
23909
+ /**
23910
+ * Converts this WorkoutPlaylistUpdated to JSON.
23911
+ * @function toJSON
23912
+ * @memberof WorkoutPlaylistUpdated
23913
+ * @instance
23914
+ * @returns {Object.<string,*>} JSON object
23915
+ */
23916
+ WorkoutPlaylistUpdated.prototype.toJSON = function toJSON() {
23917
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
23918
+ };
23919
+
23920
+ return WorkoutPlaylistUpdated;
23921
+ })();
23922
+
23923
+ $root.WorkoutPlaylistDeleted = (function() {
23924
+
23925
+ /**
23926
+ * Properties of a WorkoutPlaylistDeleted.
23927
+ * @exports IWorkoutPlaylistDeleted
23928
+ * @interface IWorkoutPlaylistDeleted
23929
+ * @property {string|null} [slug] WorkoutPlaylistDeleted slug
23930
+ * @property {number|null} [entityId] WorkoutPlaylistDeleted entityId
23931
+ * @property {string|null} [entityType] WorkoutPlaylistDeleted entityType
23932
+ * @property {number|Long|null} [deletedAt] WorkoutPlaylistDeleted deletedAt
23933
+ */
23934
+
23935
+ /**
23936
+ * Constructs a new WorkoutPlaylistDeleted.
23937
+ * @exports WorkoutPlaylistDeleted
23938
+ * @classdesc Represents a WorkoutPlaylistDeleted.
23939
+ * @implements IWorkoutPlaylistDeleted
23940
+ * @constructor
23941
+ * @param {IWorkoutPlaylistDeleted=} [properties] Properties to set
23942
+ */
23943
+ function WorkoutPlaylistDeleted(properties) {
23944
+ if (properties)
23945
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
23946
+ if (properties[keys[i]] != null)
23947
+ this[keys[i]] = properties[keys[i]];
23948
+ }
23949
+
23950
+ /**
23951
+ * WorkoutPlaylistDeleted slug.
23952
+ * @member {string} slug
23953
+ * @memberof WorkoutPlaylistDeleted
23954
+ * @instance
23955
+ */
23956
+ WorkoutPlaylistDeleted.prototype.slug = "";
23957
+
23958
+ /**
23959
+ * WorkoutPlaylistDeleted entityId.
23960
+ * @member {number} entityId
23961
+ * @memberof WorkoutPlaylistDeleted
23962
+ * @instance
23963
+ */
23964
+ WorkoutPlaylistDeleted.prototype.entityId = 0;
23965
+
23966
+ /**
23967
+ * WorkoutPlaylistDeleted entityType.
23968
+ * @member {string} entityType
23969
+ * @memberof WorkoutPlaylistDeleted
23970
+ * @instance
23971
+ */
23972
+ WorkoutPlaylistDeleted.prototype.entityType = "";
23973
+
23974
+ /**
23975
+ * WorkoutPlaylistDeleted deletedAt.
23976
+ * @member {number|Long} deletedAt
23977
+ * @memberof WorkoutPlaylistDeleted
23978
+ * @instance
23979
+ */
23980
+ WorkoutPlaylistDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
23981
+
23982
+ /**
23983
+ * Creates a new WorkoutPlaylistDeleted instance using the specified properties.
23984
+ * @function create
23985
+ * @memberof WorkoutPlaylistDeleted
23986
+ * @static
23987
+ * @param {IWorkoutPlaylistDeleted=} [properties] Properties to set
23988
+ * @returns {WorkoutPlaylistDeleted} WorkoutPlaylistDeleted instance
23989
+ */
23990
+ WorkoutPlaylistDeleted.create = function create(properties) {
23991
+ return new WorkoutPlaylistDeleted(properties);
23992
+ };
23993
+
23994
+ /**
23995
+ * Encodes the specified WorkoutPlaylistDeleted message. Does not implicitly {@link WorkoutPlaylistDeleted.verify|verify} messages.
23996
+ * @function encode
23997
+ * @memberof WorkoutPlaylistDeleted
23998
+ * @static
23999
+ * @param {IWorkoutPlaylistDeleted} message WorkoutPlaylistDeleted message or plain object to encode
24000
+ * @param {$protobuf.Writer} [writer] Writer to encode to
24001
+ * @returns {$protobuf.Writer} Writer
24002
+ */
24003
+ WorkoutPlaylistDeleted.encode = function encode(message, writer) {
24004
+ if (!writer)
24005
+ writer = $Writer.create();
24006
+ if (message.slug != null && message.hasOwnProperty("slug"))
24007
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
24008
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
24009
+ writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.entityId);
24010
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
24011
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.entityType);
24012
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
24013
+ writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.deletedAt);
24014
+ return writer;
24015
+ };
24016
+
24017
+ /**
24018
+ * Encodes the specified WorkoutPlaylistDeleted message, length delimited. Does not implicitly {@link WorkoutPlaylistDeleted.verify|verify} messages.
24019
+ * @function encodeDelimited
24020
+ * @memberof WorkoutPlaylistDeleted
24021
+ * @static
24022
+ * @param {IWorkoutPlaylistDeleted} message WorkoutPlaylistDeleted message or plain object to encode
24023
+ * @param {$protobuf.Writer} [writer] Writer to encode to
24024
+ * @returns {$protobuf.Writer} Writer
24025
+ */
24026
+ WorkoutPlaylistDeleted.encodeDelimited = function encodeDelimited(message, writer) {
24027
+ return this.encode(message, writer).ldelim();
24028
+ };
24029
+
24030
+ /**
24031
+ * Decodes a WorkoutPlaylistDeleted message from the specified reader or buffer.
24032
+ * @function decode
24033
+ * @memberof WorkoutPlaylistDeleted
24034
+ * @static
24035
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
24036
+ * @param {number} [length] Message length if known beforehand
24037
+ * @returns {WorkoutPlaylistDeleted} WorkoutPlaylistDeleted
24038
+ * @throws {Error} If the payload is not a reader or valid buffer
24039
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
24040
+ */
24041
+ WorkoutPlaylistDeleted.decode = function decode(reader, length) {
24042
+ if (!(reader instanceof $Reader))
24043
+ reader = $Reader.create(reader);
24044
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.WorkoutPlaylistDeleted();
24045
+ while (reader.pos < end) {
24046
+ var tag = reader.uint32();
24047
+ switch (tag >>> 3) {
24048
+ case 1:
24049
+ message.slug = reader.string();
24050
+ break;
24051
+ case 2:
24052
+ message.entityId = reader.uint32();
24053
+ break;
24054
+ case 3:
24055
+ message.entityType = reader.string();
24056
+ break;
24057
+ case 4:
24058
+ message.deletedAt = reader.uint64();
24059
+ break;
24060
+ default:
24061
+ reader.skipType(tag & 7);
24062
+ break;
24063
+ }
24064
+ }
24065
+ return message;
24066
+ };
24067
+
24068
+ /**
24069
+ * Decodes a WorkoutPlaylistDeleted message from the specified reader or buffer, length delimited.
24070
+ * @function decodeDelimited
24071
+ * @memberof WorkoutPlaylistDeleted
24072
+ * @static
24073
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
24074
+ * @returns {WorkoutPlaylistDeleted} WorkoutPlaylistDeleted
24075
+ * @throws {Error} If the payload is not a reader or valid buffer
24076
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
24077
+ */
24078
+ WorkoutPlaylistDeleted.decodeDelimited = function decodeDelimited(reader) {
24079
+ if (!(reader instanceof $Reader))
24080
+ reader = new $Reader(reader);
24081
+ return this.decode(reader, reader.uint32());
24082
+ };
24083
+
24084
+ /**
24085
+ * Verifies a WorkoutPlaylistDeleted message.
24086
+ * @function verify
24087
+ * @memberof WorkoutPlaylistDeleted
24088
+ * @static
24089
+ * @param {Object.<string,*>} message Plain object to verify
24090
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
24091
+ */
24092
+ WorkoutPlaylistDeleted.verify = function verify(message) {
24093
+ if (typeof message !== "object" || message === null)
24094
+ return "object expected";
24095
+ if (message.slug != null && message.hasOwnProperty("slug"))
24096
+ if (!$util.isString(message.slug))
24097
+ return "slug: string expected";
24098
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
24099
+ if (!$util.isInteger(message.entityId))
24100
+ return "entityId: integer expected";
24101
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
24102
+ if (!$util.isString(message.entityType))
24103
+ return "entityType: string expected";
24104
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
24105
+ if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
24106
+ return "deletedAt: integer|Long expected";
24107
+ return null;
24108
+ };
24109
+
24110
+ /**
24111
+ * Creates a WorkoutPlaylistDeleted message from a plain object. Also converts values to their respective internal types.
24112
+ * @function fromObject
24113
+ * @memberof WorkoutPlaylistDeleted
24114
+ * @static
24115
+ * @param {Object.<string,*>} object Plain object
24116
+ * @returns {WorkoutPlaylistDeleted} WorkoutPlaylistDeleted
24117
+ */
24118
+ WorkoutPlaylistDeleted.fromObject = function fromObject(object) {
24119
+ if (object instanceof $root.WorkoutPlaylistDeleted)
24120
+ return object;
24121
+ var message = new $root.WorkoutPlaylistDeleted();
24122
+ if (object.slug != null)
24123
+ message.slug = String(object.slug);
24124
+ if (object.entityId != null)
24125
+ message.entityId = object.entityId >>> 0;
24126
+ if (object.entityType != null)
24127
+ message.entityType = String(object.entityType);
24128
+ if (object.deletedAt != null)
24129
+ if ($util.Long)
24130
+ (message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
24131
+ else if (typeof object.deletedAt === "string")
24132
+ message.deletedAt = parseInt(object.deletedAt, 10);
24133
+ else if (typeof object.deletedAt === "number")
24134
+ message.deletedAt = object.deletedAt;
24135
+ else if (typeof object.deletedAt === "object")
24136
+ message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
24137
+ return message;
24138
+ };
24139
+
24140
+ /**
24141
+ * Creates a plain object from a WorkoutPlaylistDeleted message. Also converts values to other types if specified.
24142
+ * @function toObject
24143
+ * @memberof WorkoutPlaylistDeleted
24144
+ * @static
24145
+ * @param {WorkoutPlaylistDeleted} message WorkoutPlaylistDeleted
24146
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
24147
+ * @returns {Object.<string,*>} Plain object
24148
+ */
24149
+ WorkoutPlaylistDeleted.toObject = function toObject(message, options) {
24150
+ if (!options)
24151
+ options = {};
24152
+ var object = {};
24153
+ if (options.defaults) {
24154
+ object.slug = "";
24155
+ object.entityId = 0;
24156
+ object.entityType = "";
24157
+ if ($util.Long) {
24158
+ var long = new $util.Long(0, 0, true);
24159
+ object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
24160
+ } else
24161
+ object.deletedAt = options.longs === String ? "0" : 0;
24162
+ }
24163
+ if (message.slug != null && message.hasOwnProperty("slug"))
24164
+ object.slug = message.slug;
24165
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
24166
+ object.entityId = message.entityId;
24167
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
24168
+ object.entityType = message.entityType;
24169
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
24170
+ if (typeof message.deletedAt === "number")
24171
+ object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
24172
+ else
24173
+ 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;
24174
+ return object;
24175
+ };
24176
+
24177
+ /**
24178
+ * Converts this WorkoutPlaylistDeleted to JSON.
24179
+ * @function toJSON
24180
+ * @memberof WorkoutPlaylistDeleted
24181
+ * @instance
24182
+ * @returns {Object.<string,*>} JSON object
24183
+ */
24184
+ WorkoutPlaylistDeleted.prototype.toJSON = function toJSON() {
24185
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
24186
+ };
24187
+
24188
+ return WorkoutPlaylistDeleted;
24189
+ })();
24190
+
23299
24191
  $root.ExperimentContentMapCreated = (function() {
23300
24192
 
23301
24193
  /**
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.121.0"
19
+ "version": "1.122.0"
20
20
  }