@headspace/protos-events 1.422.0 → 1.424.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/lib/index.d.ts +420 -0
  2. package/lib/index.js +1467 -86
  3. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -80912,6 +80912,375 @@ $root.EligibilityFileProcessed = (function() {
80912
80912
  return EligibilityFileProcessed;
80913
80913
  })();
80914
80914
 
80915
+ $root.EligibilityLinked = (function() {
80916
+
80917
+ /**
80918
+ * Properties of an EligibilityLinked.
80919
+ * @exports IEligibilityLinked
80920
+ * @interface IEligibilityLinked
80921
+ * @property {string|null} [headspaceHealthOrgId] EligibilityLinked headspaceHealthOrgId
80922
+ * @property {string|null} [headspaceUserId] EligibilityLinked headspaceUserId
80923
+ * @property {string|null} [accountEmail] EligibilityLinked accountEmail
80924
+ * @property {KeyType|null} [keyType] EligibilityLinked keyType
80925
+ * @property {string|null} [workEmail] EligibilityLinked workEmail
80926
+ * @property {string|null} [workId] EligibilityLinked workId
80927
+ * @property {boolean|null} [isUmd] EligibilityLinked isUmd
80928
+ * @property {number|Long|null} [timestamp] EligibilityLinked timestamp
80929
+ */
80930
+
80931
+ /**
80932
+ * Constructs a new EligibilityLinked.
80933
+ * @exports EligibilityLinked
80934
+ * @classdesc Represents an EligibilityLinked.
80935
+ * @implements IEligibilityLinked
80936
+ * @constructor
80937
+ * @param {IEligibilityLinked=} [properties] Properties to set
80938
+ */
80939
+ function EligibilityLinked(properties) {
80940
+ if (properties)
80941
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
80942
+ if (properties[keys[i]] != null)
80943
+ this[keys[i]] = properties[keys[i]];
80944
+ }
80945
+
80946
+ /**
80947
+ * EligibilityLinked headspaceHealthOrgId.
80948
+ * @member {string} headspaceHealthOrgId
80949
+ * @memberof EligibilityLinked
80950
+ * @instance
80951
+ */
80952
+ EligibilityLinked.prototype.headspaceHealthOrgId = "";
80953
+
80954
+ /**
80955
+ * EligibilityLinked headspaceUserId.
80956
+ * @member {string} headspaceUserId
80957
+ * @memberof EligibilityLinked
80958
+ * @instance
80959
+ */
80960
+ EligibilityLinked.prototype.headspaceUserId = "";
80961
+
80962
+ /**
80963
+ * EligibilityLinked accountEmail.
80964
+ * @member {string} accountEmail
80965
+ * @memberof EligibilityLinked
80966
+ * @instance
80967
+ */
80968
+ EligibilityLinked.prototype.accountEmail = "";
80969
+
80970
+ /**
80971
+ * EligibilityLinked keyType.
80972
+ * @member {KeyType} keyType
80973
+ * @memberof EligibilityLinked
80974
+ * @instance
80975
+ */
80976
+ EligibilityLinked.prototype.keyType = 0;
80977
+
80978
+ /**
80979
+ * EligibilityLinked workEmail.
80980
+ * @member {string} workEmail
80981
+ * @memberof EligibilityLinked
80982
+ * @instance
80983
+ */
80984
+ EligibilityLinked.prototype.workEmail = "";
80985
+
80986
+ /**
80987
+ * EligibilityLinked workId.
80988
+ * @member {string} workId
80989
+ * @memberof EligibilityLinked
80990
+ * @instance
80991
+ */
80992
+ EligibilityLinked.prototype.workId = "";
80993
+
80994
+ /**
80995
+ * EligibilityLinked isUmd.
80996
+ * @member {boolean} isUmd
80997
+ * @memberof EligibilityLinked
80998
+ * @instance
80999
+ */
81000
+ EligibilityLinked.prototype.isUmd = false;
81001
+
81002
+ /**
81003
+ * EligibilityLinked timestamp.
81004
+ * @member {number|Long} timestamp
81005
+ * @memberof EligibilityLinked
81006
+ * @instance
81007
+ */
81008
+ EligibilityLinked.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
81009
+
81010
+ /**
81011
+ * Creates a new EligibilityLinked instance using the specified properties.
81012
+ * @function create
81013
+ * @memberof EligibilityLinked
81014
+ * @static
81015
+ * @param {IEligibilityLinked=} [properties] Properties to set
81016
+ * @returns {EligibilityLinked} EligibilityLinked instance
81017
+ */
81018
+ EligibilityLinked.create = function create(properties) {
81019
+ return new EligibilityLinked(properties);
81020
+ };
81021
+
81022
+ /**
81023
+ * Encodes the specified EligibilityLinked message. Does not implicitly {@link EligibilityLinked.verify|verify} messages.
81024
+ * @function encode
81025
+ * @memberof EligibilityLinked
81026
+ * @static
81027
+ * @param {IEligibilityLinked} message EligibilityLinked message or plain object to encode
81028
+ * @param {$protobuf.Writer} [writer] Writer to encode to
81029
+ * @returns {$protobuf.Writer} Writer
81030
+ */
81031
+ EligibilityLinked.encode = function encode(message, writer) {
81032
+ if (!writer)
81033
+ writer = $Writer.create();
81034
+ if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
81035
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.headspaceHealthOrgId);
81036
+ if (message.headspaceUserId != null && message.hasOwnProperty("headspaceUserId"))
81037
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.headspaceUserId);
81038
+ if (message.keyType != null && message.hasOwnProperty("keyType"))
81039
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.keyType);
81040
+ if (message.workEmail != null && message.hasOwnProperty("workEmail"))
81041
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.workEmail);
81042
+ if (message.workId != null && message.hasOwnProperty("workId"))
81043
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.workId);
81044
+ if (message.accountEmail != null && message.hasOwnProperty("accountEmail"))
81045
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.accountEmail);
81046
+ if (message.isUmd != null && message.hasOwnProperty("isUmd"))
81047
+ writer.uint32(/* id 7, wireType 0 =*/56).bool(message.isUmd);
81048
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
81049
+ writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.timestamp);
81050
+ return writer;
81051
+ };
81052
+
81053
+ /**
81054
+ * Encodes the specified EligibilityLinked message, length delimited. Does not implicitly {@link EligibilityLinked.verify|verify} messages.
81055
+ * @function encodeDelimited
81056
+ * @memberof EligibilityLinked
81057
+ * @static
81058
+ * @param {IEligibilityLinked} message EligibilityLinked message or plain object to encode
81059
+ * @param {$protobuf.Writer} [writer] Writer to encode to
81060
+ * @returns {$protobuf.Writer} Writer
81061
+ */
81062
+ EligibilityLinked.encodeDelimited = function encodeDelimited(message, writer) {
81063
+ return this.encode(message, writer).ldelim();
81064
+ };
81065
+
81066
+ /**
81067
+ * Decodes an EligibilityLinked message from the specified reader or buffer.
81068
+ * @function decode
81069
+ * @memberof EligibilityLinked
81070
+ * @static
81071
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
81072
+ * @param {number} [length] Message length if known beforehand
81073
+ * @returns {EligibilityLinked} EligibilityLinked
81074
+ * @throws {Error} If the payload is not a reader or valid buffer
81075
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
81076
+ */
81077
+ EligibilityLinked.decode = function decode(reader, length) {
81078
+ if (!(reader instanceof $Reader))
81079
+ reader = $Reader.create(reader);
81080
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.EligibilityLinked();
81081
+ while (reader.pos < end) {
81082
+ var tag = reader.uint32();
81083
+ switch (tag >>> 3) {
81084
+ case 1:
81085
+ message.headspaceHealthOrgId = reader.string();
81086
+ break;
81087
+ case 2:
81088
+ message.headspaceUserId = reader.string();
81089
+ break;
81090
+ case 6:
81091
+ message.accountEmail = reader.string();
81092
+ break;
81093
+ case 3:
81094
+ message.keyType = reader.int32();
81095
+ break;
81096
+ case 4:
81097
+ message.workEmail = reader.string();
81098
+ break;
81099
+ case 5:
81100
+ message.workId = reader.string();
81101
+ break;
81102
+ case 7:
81103
+ message.isUmd = reader.bool();
81104
+ break;
81105
+ case 8:
81106
+ message.timestamp = reader.uint64();
81107
+ break;
81108
+ default:
81109
+ reader.skipType(tag & 7);
81110
+ break;
81111
+ }
81112
+ }
81113
+ return message;
81114
+ };
81115
+
81116
+ /**
81117
+ * Decodes an EligibilityLinked message from the specified reader or buffer, length delimited.
81118
+ * @function decodeDelimited
81119
+ * @memberof EligibilityLinked
81120
+ * @static
81121
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
81122
+ * @returns {EligibilityLinked} EligibilityLinked
81123
+ * @throws {Error} If the payload is not a reader or valid buffer
81124
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
81125
+ */
81126
+ EligibilityLinked.decodeDelimited = function decodeDelimited(reader) {
81127
+ if (!(reader instanceof $Reader))
81128
+ reader = new $Reader(reader);
81129
+ return this.decode(reader, reader.uint32());
81130
+ };
81131
+
81132
+ /**
81133
+ * Verifies an EligibilityLinked message.
81134
+ * @function verify
81135
+ * @memberof EligibilityLinked
81136
+ * @static
81137
+ * @param {Object.<string,*>} message Plain object to verify
81138
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
81139
+ */
81140
+ EligibilityLinked.verify = function verify(message) {
81141
+ if (typeof message !== "object" || message === null)
81142
+ return "object expected";
81143
+ if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
81144
+ if (!$util.isString(message.headspaceHealthOrgId))
81145
+ return "headspaceHealthOrgId: string expected";
81146
+ if (message.headspaceUserId != null && message.hasOwnProperty("headspaceUserId"))
81147
+ if (!$util.isString(message.headspaceUserId))
81148
+ return "headspaceUserId: string expected";
81149
+ if (message.accountEmail != null && message.hasOwnProperty("accountEmail"))
81150
+ if (!$util.isString(message.accountEmail))
81151
+ return "accountEmail: string expected";
81152
+ if (message.keyType != null && message.hasOwnProperty("keyType"))
81153
+ switch (message.keyType) {
81154
+ default:
81155
+ return "keyType: enum value expected";
81156
+ case 0:
81157
+ case 1:
81158
+ break;
81159
+ }
81160
+ if (message.workEmail != null && message.hasOwnProperty("workEmail"))
81161
+ if (!$util.isString(message.workEmail))
81162
+ return "workEmail: string expected";
81163
+ if (message.workId != null && message.hasOwnProperty("workId"))
81164
+ if (!$util.isString(message.workId))
81165
+ return "workId: string expected";
81166
+ if (message.isUmd != null && message.hasOwnProperty("isUmd"))
81167
+ if (typeof message.isUmd !== "boolean")
81168
+ return "isUmd: boolean expected";
81169
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
81170
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
81171
+ return "timestamp: integer|Long expected";
81172
+ return null;
81173
+ };
81174
+
81175
+ /**
81176
+ * Creates an EligibilityLinked message from a plain object. Also converts values to their respective internal types.
81177
+ * @function fromObject
81178
+ * @memberof EligibilityLinked
81179
+ * @static
81180
+ * @param {Object.<string,*>} object Plain object
81181
+ * @returns {EligibilityLinked} EligibilityLinked
81182
+ */
81183
+ EligibilityLinked.fromObject = function fromObject(object) {
81184
+ if (object instanceof $root.EligibilityLinked)
81185
+ return object;
81186
+ var message = new $root.EligibilityLinked();
81187
+ if (object.headspaceHealthOrgId != null)
81188
+ message.headspaceHealthOrgId = String(object.headspaceHealthOrgId);
81189
+ if (object.headspaceUserId != null)
81190
+ message.headspaceUserId = String(object.headspaceUserId);
81191
+ if (object.accountEmail != null)
81192
+ message.accountEmail = String(object.accountEmail);
81193
+ switch (object.keyType) {
81194
+ case "WORK_ID":
81195
+ case 0:
81196
+ message.keyType = 0;
81197
+ break;
81198
+ case "WORK_EMAIL":
81199
+ case 1:
81200
+ message.keyType = 1;
81201
+ break;
81202
+ }
81203
+ if (object.workEmail != null)
81204
+ message.workEmail = String(object.workEmail);
81205
+ if (object.workId != null)
81206
+ message.workId = String(object.workId);
81207
+ if (object.isUmd != null)
81208
+ message.isUmd = Boolean(object.isUmd);
81209
+ if (object.timestamp != null)
81210
+ if ($util.Long)
81211
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
81212
+ else if (typeof object.timestamp === "string")
81213
+ message.timestamp = parseInt(object.timestamp, 10);
81214
+ else if (typeof object.timestamp === "number")
81215
+ message.timestamp = object.timestamp;
81216
+ else if (typeof object.timestamp === "object")
81217
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
81218
+ return message;
81219
+ };
81220
+
81221
+ /**
81222
+ * Creates a plain object from an EligibilityLinked message. Also converts values to other types if specified.
81223
+ * @function toObject
81224
+ * @memberof EligibilityLinked
81225
+ * @static
81226
+ * @param {EligibilityLinked} message EligibilityLinked
81227
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
81228
+ * @returns {Object.<string,*>} Plain object
81229
+ */
81230
+ EligibilityLinked.toObject = function toObject(message, options) {
81231
+ if (!options)
81232
+ options = {};
81233
+ var object = {};
81234
+ if (options.defaults) {
81235
+ object.headspaceHealthOrgId = "";
81236
+ object.headspaceUserId = "";
81237
+ object.keyType = options.enums === String ? "WORK_ID" : 0;
81238
+ object.workEmail = "";
81239
+ object.workId = "";
81240
+ object.accountEmail = "";
81241
+ object.isUmd = false;
81242
+ if ($util.Long) {
81243
+ var long = new $util.Long(0, 0, true);
81244
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
81245
+ } else
81246
+ object.timestamp = options.longs === String ? "0" : 0;
81247
+ }
81248
+ if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
81249
+ object.headspaceHealthOrgId = message.headspaceHealthOrgId;
81250
+ if (message.headspaceUserId != null && message.hasOwnProperty("headspaceUserId"))
81251
+ object.headspaceUserId = message.headspaceUserId;
81252
+ if (message.keyType != null && message.hasOwnProperty("keyType"))
81253
+ object.keyType = options.enums === String ? $root.KeyType[message.keyType] : message.keyType;
81254
+ if (message.workEmail != null && message.hasOwnProperty("workEmail"))
81255
+ object.workEmail = message.workEmail;
81256
+ if (message.workId != null && message.hasOwnProperty("workId"))
81257
+ object.workId = message.workId;
81258
+ if (message.accountEmail != null && message.hasOwnProperty("accountEmail"))
81259
+ object.accountEmail = message.accountEmail;
81260
+ if (message.isUmd != null && message.hasOwnProperty("isUmd"))
81261
+ object.isUmd = message.isUmd;
81262
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
81263
+ if (typeof message.timestamp === "number")
81264
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
81265
+ else
81266
+ object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
81267
+ return object;
81268
+ };
81269
+
81270
+ /**
81271
+ * Converts this EligibilityLinked to JSON.
81272
+ * @function toJSON
81273
+ * @memberof EligibilityLinked
81274
+ * @instance
81275
+ * @returns {Object.<string,*>} JSON object
81276
+ */
81277
+ EligibilityLinked.prototype.toJSON = function toJSON() {
81278
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
81279
+ };
81280
+
81281
+ return EligibilityLinked;
81282
+ })();
81283
+
80915
81284
  $root.Email = (function() {
80916
81285
 
80917
81286
  /**
@@ -104266,16 +104635,522 @@ $root.WorkoutPlaylistCreated = (function() {
104266
104635
  return WorkoutPlaylistCreated;
104267
104636
  })();
104268
104637
 
104269
- $root.WorkoutPlaylistUpdated = (function() {
104638
+ $root.WorkoutPlaylistCreatedV2 = (function() {
104270
104639
 
104271
104640
  /**
104272
- * Properties of a WorkoutPlaylistUpdated.
104273
- * @exports IWorkoutPlaylistUpdated
104274
- * @interface IWorkoutPlaylistUpdated
104275
- * @property {string|null} [slug] WorkoutPlaylistUpdated slug
104276
- * @property {number|null} [entityId] WorkoutPlaylistUpdated entityId
104277
- * @property {string|null} [entityType] WorkoutPlaylistUpdated entityType
104278
- * @property {Array.<contentful.ISlugReference>|null} [accessGroups] WorkoutPlaylistUpdated accessGroups
104641
+ * Properties of a WorkoutPlaylistCreatedV2.
104642
+ * @exports IWorkoutPlaylistCreatedV2
104643
+ * @interface IWorkoutPlaylistCreatedV2
104644
+ * @property {string|null} [slug] WorkoutPlaylistCreatedV2 slug
104645
+ * @property {number|null} [entityId] WorkoutPlaylistCreatedV2 entityId
104646
+ * @property {string|null} [entityType] WorkoutPlaylistCreatedV2 entityType
104647
+ * @property {Array.<contentful.ISlugReference>|null} [accessGroups] WorkoutPlaylistCreatedV2 accessGroups
104648
+ * @property {number|Long|null} [createdAt] WorkoutPlaylistCreatedV2 createdAt
104649
+ * @property {Object.<string,contentful.IIdReference>|null} [tileMedia] WorkoutPlaylistCreatedV2 tileMedia
104650
+ * @property {Object.<string,contentful.IIdReference>|null} [headerImageMedia] WorkoutPlaylistCreatedV2 headerImageMedia
104651
+ * @property {Object.<string,contentful.ITags>|null} [tags] WorkoutPlaylistCreatedV2 tags
104652
+ * @property {string|null} [contentType] WorkoutPlaylistCreatedV2 contentType
104653
+ * @property {string|null} [contentTypeDisplayValue] WorkoutPlaylistCreatedV2 contentTypeDisplayValue
104654
+ */
104655
+
104656
+ /**
104657
+ * Constructs a new WorkoutPlaylistCreatedV2.
104658
+ * @exports WorkoutPlaylistCreatedV2
104659
+ * @classdesc Represents a WorkoutPlaylistCreatedV2.
104660
+ * @implements IWorkoutPlaylistCreatedV2
104661
+ * @constructor
104662
+ * @param {IWorkoutPlaylistCreatedV2=} [properties] Properties to set
104663
+ */
104664
+ function WorkoutPlaylistCreatedV2(properties) {
104665
+ this.accessGroups = [];
104666
+ this.tileMedia = {};
104667
+ this.headerImageMedia = {};
104668
+ this.tags = {};
104669
+ if (properties)
104670
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
104671
+ if (properties[keys[i]] != null)
104672
+ this[keys[i]] = properties[keys[i]];
104673
+ }
104674
+
104675
+ /**
104676
+ * WorkoutPlaylistCreatedV2 slug.
104677
+ * @member {string} slug
104678
+ * @memberof WorkoutPlaylistCreatedV2
104679
+ * @instance
104680
+ */
104681
+ WorkoutPlaylistCreatedV2.prototype.slug = "";
104682
+
104683
+ /**
104684
+ * WorkoutPlaylistCreatedV2 entityId.
104685
+ * @member {number} entityId
104686
+ * @memberof WorkoutPlaylistCreatedV2
104687
+ * @instance
104688
+ */
104689
+ WorkoutPlaylistCreatedV2.prototype.entityId = 0;
104690
+
104691
+ /**
104692
+ * WorkoutPlaylistCreatedV2 entityType.
104693
+ * @member {string} entityType
104694
+ * @memberof WorkoutPlaylistCreatedV2
104695
+ * @instance
104696
+ */
104697
+ WorkoutPlaylistCreatedV2.prototype.entityType = "";
104698
+
104699
+ /**
104700
+ * WorkoutPlaylistCreatedV2 accessGroups.
104701
+ * @member {Array.<contentful.ISlugReference>} accessGroups
104702
+ * @memberof WorkoutPlaylistCreatedV2
104703
+ * @instance
104704
+ */
104705
+ WorkoutPlaylistCreatedV2.prototype.accessGroups = $util.emptyArray;
104706
+
104707
+ /**
104708
+ * WorkoutPlaylistCreatedV2 createdAt.
104709
+ * @member {number|Long} createdAt
104710
+ * @memberof WorkoutPlaylistCreatedV2
104711
+ * @instance
104712
+ */
104713
+ WorkoutPlaylistCreatedV2.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
104714
+
104715
+ /**
104716
+ * WorkoutPlaylistCreatedV2 tileMedia.
104717
+ * @member {Object.<string,contentful.IIdReference>} tileMedia
104718
+ * @memberof WorkoutPlaylistCreatedV2
104719
+ * @instance
104720
+ */
104721
+ WorkoutPlaylistCreatedV2.prototype.tileMedia = $util.emptyObject;
104722
+
104723
+ /**
104724
+ * WorkoutPlaylistCreatedV2 headerImageMedia.
104725
+ * @member {Object.<string,contentful.IIdReference>} headerImageMedia
104726
+ * @memberof WorkoutPlaylistCreatedV2
104727
+ * @instance
104728
+ */
104729
+ WorkoutPlaylistCreatedV2.prototype.headerImageMedia = $util.emptyObject;
104730
+
104731
+ /**
104732
+ * WorkoutPlaylistCreatedV2 tags.
104733
+ * @member {Object.<string,contentful.ITags>} tags
104734
+ * @memberof WorkoutPlaylistCreatedV2
104735
+ * @instance
104736
+ */
104737
+ WorkoutPlaylistCreatedV2.prototype.tags = $util.emptyObject;
104738
+
104739
+ /**
104740
+ * WorkoutPlaylistCreatedV2 contentType.
104741
+ * @member {string} contentType
104742
+ * @memberof WorkoutPlaylistCreatedV2
104743
+ * @instance
104744
+ */
104745
+ WorkoutPlaylistCreatedV2.prototype.contentType = "";
104746
+
104747
+ /**
104748
+ * WorkoutPlaylistCreatedV2 contentTypeDisplayValue.
104749
+ * @member {string} contentTypeDisplayValue
104750
+ * @memberof WorkoutPlaylistCreatedV2
104751
+ * @instance
104752
+ */
104753
+ WorkoutPlaylistCreatedV2.prototype.contentTypeDisplayValue = "";
104754
+
104755
+ /**
104756
+ * Creates a new WorkoutPlaylistCreatedV2 instance using the specified properties.
104757
+ * @function create
104758
+ * @memberof WorkoutPlaylistCreatedV2
104759
+ * @static
104760
+ * @param {IWorkoutPlaylistCreatedV2=} [properties] Properties to set
104761
+ * @returns {WorkoutPlaylistCreatedV2} WorkoutPlaylistCreatedV2 instance
104762
+ */
104763
+ WorkoutPlaylistCreatedV2.create = function create(properties) {
104764
+ return new WorkoutPlaylistCreatedV2(properties);
104765
+ };
104766
+
104767
+ /**
104768
+ * Encodes the specified WorkoutPlaylistCreatedV2 message. Does not implicitly {@link WorkoutPlaylistCreatedV2.verify|verify} messages.
104769
+ * @function encode
104770
+ * @memberof WorkoutPlaylistCreatedV2
104771
+ * @static
104772
+ * @param {IWorkoutPlaylistCreatedV2} message WorkoutPlaylistCreatedV2 message or plain object to encode
104773
+ * @param {$protobuf.Writer} [writer] Writer to encode to
104774
+ * @returns {$protobuf.Writer} Writer
104775
+ */
104776
+ WorkoutPlaylistCreatedV2.encode = function encode(message, writer) {
104777
+ if (!writer)
104778
+ writer = $Writer.create();
104779
+ if (message.slug != null && message.hasOwnProperty("slug"))
104780
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
104781
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
104782
+ writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.entityId);
104783
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
104784
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.entityType);
104785
+ if (message.accessGroups != null && message.accessGroups.length)
104786
+ for (var i = 0; i < message.accessGroups.length; ++i)
104787
+ $root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
104788
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
104789
+ writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.createdAt);
104790
+ if (message.tileMedia != null && message.hasOwnProperty("tileMedia"))
104791
+ for (var keys = Object.keys(message.tileMedia), i = 0; i < keys.length; ++i) {
104792
+ writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
104793
+ $root.contentful.IdReference.encode(message.tileMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
104794
+ }
104795
+ if (message.headerImageMedia != null && message.hasOwnProperty("headerImageMedia"))
104796
+ for (var keys = Object.keys(message.headerImageMedia), i = 0; i < keys.length; ++i) {
104797
+ writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
104798
+ $root.contentful.IdReference.encode(message.headerImageMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
104799
+ }
104800
+ if (message.tags != null && message.hasOwnProperty("tags"))
104801
+ for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) {
104802
+ writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
104803
+ $root.contentful.Tags.encode(message.tags[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
104804
+ }
104805
+ if (message.contentType != null && message.hasOwnProperty("contentType"))
104806
+ writer.uint32(/* id 9, wireType 2 =*/74).string(message.contentType);
104807
+ if (message.contentTypeDisplayValue != null && message.hasOwnProperty("contentTypeDisplayValue"))
104808
+ writer.uint32(/* id 10, wireType 2 =*/82).string(message.contentTypeDisplayValue);
104809
+ return writer;
104810
+ };
104811
+
104812
+ /**
104813
+ * Encodes the specified WorkoutPlaylistCreatedV2 message, length delimited. Does not implicitly {@link WorkoutPlaylistCreatedV2.verify|verify} messages.
104814
+ * @function encodeDelimited
104815
+ * @memberof WorkoutPlaylistCreatedV2
104816
+ * @static
104817
+ * @param {IWorkoutPlaylistCreatedV2} message WorkoutPlaylistCreatedV2 message or plain object to encode
104818
+ * @param {$protobuf.Writer} [writer] Writer to encode to
104819
+ * @returns {$protobuf.Writer} Writer
104820
+ */
104821
+ WorkoutPlaylistCreatedV2.encodeDelimited = function encodeDelimited(message, writer) {
104822
+ return this.encode(message, writer).ldelim();
104823
+ };
104824
+
104825
+ /**
104826
+ * Decodes a WorkoutPlaylistCreatedV2 message from the specified reader or buffer.
104827
+ * @function decode
104828
+ * @memberof WorkoutPlaylistCreatedV2
104829
+ * @static
104830
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
104831
+ * @param {number} [length] Message length if known beforehand
104832
+ * @returns {WorkoutPlaylistCreatedV2} WorkoutPlaylistCreatedV2
104833
+ * @throws {Error} If the payload is not a reader or valid buffer
104834
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
104835
+ */
104836
+ WorkoutPlaylistCreatedV2.decode = function decode(reader, length) {
104837
+ if (!(reader instanceof $Reader))
104838
+ reader = $Reader.create(reader);
104839
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.WorkoutPlaylistCreatedV2(), key;
104840
+ while (reader.pos < end) {
104841
+ var tag = reader.uint32();
104842
+ switch (tag >>> 3) {
104843
+ case 1:
104844
+ message.slug = reader.string();
104845
+ break;
104846
+ case 2:
104847
+ message.entityId = reader.uint32();
104848
+ break;
104849
+ case 3:
104850
+ message.entityType = reader.string();
104851
+ break;
104852
+ case 4:
104853
+ if (!(message.accessGroups && message.accessGroups.length))
104854
+ message.accessGroups = [];
104855
+ message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
104856
+ break;
104857
+ case 5:
104858
+ message.createdAt = reader.uint64();
104859
+ break;
104860
+ case 6:
104861
+ reader.skip().pos++;
104862
+ if (message.tileMedia === $util.emptyObject)
104863
+ message.tileMedia = {};
104864
+ key = reader.string();
104865
+ reader.pos++;
104866
+ message.tileMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
104867
+ break;
104868
+ case 7:
104869
+ reader.skip().pos++;
104870
+ if (message.headerImageMedia === $util.emptyObject)
104871
+ message.headerImageMedia = {};
104872
+ key = reader.string();
104873
+ reader.pos++;
104874
+ message.headerImageMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
104875
+ break;
104876
+ case 8:
104877
+ reader.skip().pos++;
104878
+ if (message.tags === $util.emptyObject)
104879
+ message.tags = {};
104880
+ key = reader.string();
104881
+ reader.pos++;
104882
+ message.tags[key] = $root.contentful.Tags.decode(reader, reader.uint32());
104883
+ break;
104884
+ case 9:
104885
+ message.contentType = reader.string();
104886
+ break;
104887
+ case 10:
104888
+ message.contentTypeDisplayValue = reader.string();
104889
+ break;
104890
+ default:
104891
+ reader.skipType(tag & 7);
104892
+ break;
104893
+ }
104894
+ }
104895
+ return message;
104896
+ };
104897
+
104898
+ /**
104899
+ * Decodes a WorkoutPlaylistCreatedV2 message from the specified reader or buffer, length delimited.
104900
+ * @function decodeDelimited
104901
+ * @memberof WorkoutPlaylistCreatedV2
104902
+ * @static
104903
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
104904
+ * @returns {WorkoutPlaylistCreatedV2} WorkoutPlaylistCreatedV2
104905
+ * @throws {Error} If the payload is not a reader or valid buffer
104906
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
104907
+ */
104908
+ WorkoutPlaylistCreatedV2.decodeDelimited = function decodeDelimited(reader) {
104909
+ if (!(reader instanceof $Reader))
104910
+ reader = new $Reader(reader);
104911
+ return this.decode(reader, reader.uint32());
104912
+ };
104913
+
104914
+ /**
104915
+ * Verifies a WorkoutPlaylistCreatedV2 message.
104916
+ * @function verify
104917
+ * @memberof WorkoutPlaylistCreatedV2
104918
+ * @static
104919
+ * @param {Object.<string,*>} message Plain object to verify
104920
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
104921
+ */
104922
+ WorkoutPlaylistCreatedV2.verify = function verify(message) {
104923
+ if (typeof message !== "object" || message === null)
104924
+ return "object expected";
104925
+ if (message.slug != null && message.hasOwnProperty("slug"))
104926
+ if (!$util.isString(message.slug))
104927
+ return "slug: string expected";
104928
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
104929
+ if (!$util.isInteger(message.entityId))
104930
+ return "entityId: integer expected";
104931
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
104932
+ if (!$util.isString(message.entityType))
104933
+ return "entityType: string expected";
104934
+ if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
104935
+ if (!Array.isArray(message.accessGroups))
104936
+ return "accessGroups: array expected";
104937
+ for (var i = 0; i < message.accessGroups.length; ++i) {
104938
+ var error = $root.contentful.SlugReference.verify(message.accessGroups[i]);
104939
+ if (error)
104940
+ return "accessGroups." + error;
104941
+ }
104942
+ }
104943
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
104944
+ if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
104945
+ return "createdAt: integer|Long expected";
104946
+ if (message.tileMedia != null && message.hasOwnProperty("tileMedia")) {
104947
+ if (!$util.isObject(message.tileMedia))
104948
+ return "tileMedia: object expected";
104949
+ var key = Object.keys(message.tileMedia);
104950
+ for (var i = 0; i < key.length; ++i) {
104951
+ var error = $root.contentful.IdReference.verify(message.tileMedia[key[i]]);
104952
+ if (error)
104953
+ return "tileMedia." + error;
104954
+ }
104955
+ }
104956
+ if (message.headerImageMedia != null && message.hasOwnProperty("headerImageMedia")) {
104957
+ if (!$util.isObject(message.headerImageMedia))
104958
+ return "headerImageMedia: object expected";
104959
+ var key = Object.keys(message.headerImageMedia);
104960
+ for (var i = 0; i < key.length; ++i) {
104961
+ var error = $root.contentful.IdReference.verify(message.headerImageMedia[key[i]]);
104962
+ if (error)
104963
+ return "headerImageMedia." + error;
104964
+ }
104965
+ }
104966
+ if (message.tags != null && message.hasOwnProperty("tags")) {
104967
+ if (!$util.isObject(message.tags))
104968
+ return "tags: object expected";
104969
+ var key = Object.keys(message.tags);
104970
+ for (var i = 0; i < key.length; ++i) {
104971
+ var error = $root.contentful.Tags.verify(message.tags[key[i]]);
104972
+ if (error)
104973
+ return "tags." + error;
104974
+ }
104975
+ }
104976
+ if (message.contentType != null && message.hasOwnProperty("contentType"))
104977
+ if (!$util.isString(message.contentType))
104978
+ return "contentType: string expected";
104979
+ if (message.contentTypeDisplayValue != null && message.hasOwnProperty("contentTypeDisplayValue"))
104980
+ if (!$util.isString(message.contentTypeDisplayValue))
104981
+ return "contentTypeDisplayValue: string expected";
104982
+ return null;
104983
+ };
104984
+
104985
+ /**
104986
+ * Creates a WorkoutPlaylistCreatedV2 message from a plain object. Also converts values to their respective internal types.
104987
+ * @function fromObject
104988
+ * @memberof WorkoutPlaylistCreatedV2
104989
+ * @static
104990
+ * @param {Object.<string,*>} object Plain object
104991
+ * @returns {WorkoutPlaylistCreatedV2} WorkoutPlaylistCreatedV2
104992
+ */
104993
+ WorkoutPlaylistCreatedV2.fromObject = function fromObject(object) {
104994
+ if (object instanceof $root.WorkoutPlaylistCreatedV2)
104995
+ return object;
104996
+ var message = new $root.WorkoutPlaylistCreatedV2();
104997
+ if (object.slug != null)
104998
+ message.slug = String(object.slug);
104999
+ if (object.entityId != null)
105000
+ message.entityId = object.entityId >>> 0;
105001
+ if (object.entityType != null)
105002
+ message.entityType = String(object.entityType);
105003
+ if (object.accessGroups) {
105004
+ if (!Array.isArray(object.accessGroups))
105005
+ throw TypeError(".WorkoutPlaylistCreatedV2.accessGroups: array expected");
105006
+ message.accessGroups = [];
105007
+ for (var i = 0; i < object.accessGroups.length; ++i) {
105008
+ if (typeof object.accessGroups[i] !== "object")
105009
+ throw TypeError(".WorkoutPlaylistCreatedV2.accessGroups: object expected");
105010
+ message.accessGroups[i] = $root.contentful.SlugReference.fromObject(object.accessGroups[i]);
105011
+ }
105012
+ }
105013
+ if (object.createdAt != null)
105014
+ if ($util.Long)
105015
+ (message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
105016
+ else if (typeof object.createdAt === "string")
105017
+ message.createdAt = parseInt(object.createdAt, 10);
105018
+ else if (typeof object.createdAt === "number")
105019
+ message.createdAt = object.createdAt;
105020
+ else if (typeof object.createdAt === "object")
105021
+ message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
105022
+ if (object.tileMedia) {
105023
+ if (typeof object.tileMedia !== "object")
105024
+ throw TypeError(".WorkoutPlaylistCreatedV2.tileMedia: object expected");
105025
+ message.tileMedia = {};
105026
+ for (var keys = Object.keys(object.tileMedia), i = 0; i < keys.length; ++i) {
105027
+ if (typeof object.tileMedia[keys[i]] !== "object")
105028
+ throw TypeError(".WorkoutPlaylistCreatedV2.tileMedia: object expected");
105029
+ message.tileMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.tileMedia[keys[i]]);
105030
+ }
105031
+ }
105032
+ if (object.headerImageMedia) {
105033
+ if (typeof object.headerImageMedia !== "object")
105034
+ throw TypeError(".WorkoutPlaylistCreatedV2.headerImageMedia: object expected");
105035
+ message.headerImageMedia = {};
105036
+ for (var keys = Object.keys(object.headerImageMedia), i = 0; i < keys.length; ++i) {
105037
+ if (typeof object.headerImageMedia[keys[i]] !== "object")
105038
+ throw TypeError(".WorkoutPlaylistCreatedV2.headerImageMedia: object expected");
105039
+ message.headerImageMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.headerImageMedia[keys[i]]);
105040
+ }
105041
+ }
105042
+ if (object.tags) {
105043
+ if (typeof object.tags !== "object")
105044
+ throw TypeError(".WorkoutPlaylistCreatedV2.tags: object expected");
105045
+ message.tags = {};
105046
+ for (var keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) {
105047
+ if (typeof object.tags[keys[i]] !== "object")
105048
+ throw TypeError(".WorkoutPlaylistCreatedV2.tags: object expected");
105049
+ message.tags[keys[i]] = $root.contentful.Tags.fromObject(object.tags[keys[i]]);
105050
+ }
105051
+ }
105052
+ if (object.contentType != null)
105053
+ message.contentType = String(object.contentType);
105054
+ if (object.contentTypeDisplayValue != null)
105055
+ message.contentTypeDisplayValue = String(object.contentTypeDisplayValue);
105056
+ return message;
105057
+ };
105058
+
105059
+ /**
105060
+ * Creates a plain object from a WorkoutPlaylistCreatedV2 message. Also converts values to other types if specified.
105061
+ * @function toObject
105062
+ * @memberof WorkoutPlaylistCreatedV2
105063
+ * @static
105064
+ * @param {WorkoutPlaylistCreatedV2} message WorkoutPlaylistCreatedV2
105065
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
105066
+ * @returns {Object.<string,*>} Plain object
105067
+ */
105068
+ WorkoutPlaylistCreatedV2.toObject = function toObject(message, options) {
105069
+ if (!options)
105070
+ options = {};
105071
+ var object = {};
105072
+ if (options.arrays || options.defaults)
105073
+ object.accessGroups = [];
105074
+ if (options.objects || options.defaults) {
105075
+ object.tileMedia = {};
105076
+ object.headerImageMedia = {};
105077
+ object.tags = {};
105078
+ }
105079
+ if (options.defaults) {
105080
+ object.slug = "";
105081
+ object.entityId = 0;
105082
+ object.entityType = "";
105083
+ if ($util.Long) {
105084
+ var long = new $util.Long(0, 0, true);
105085
+ object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
105086
+ } else
105087
+ object.createdAt = options.longs === String ? "0" : 0;
105088
+ object.contentType = "";
105089
+ object.contentTypeDisplayValue = "";
105090
+ }
105091
+ if (message.slug != null && message.hasOwnProperty("slug"))
105092
+ object.slug = message.slug;
105093
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
105094
+ object.entityId = message.entityId;
105095
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
105096
+ object.entityType = message.entityType;
105097
+ if (message.accessGroups && message.accessGroups.length) {
105098
+ object.accessGroups = [];
105099
+ for (var j = 0; j < message.accessGroups.length; ++j)
105100
+ object.accessGroups[j] = $root.contentful.SlugReference.toObject(message.accessGroups[j], options);
105101
+ }
105102
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
105103
+ if (typeof message.createdAt === "number")
105104
+ object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
105105
+ else
105106
+ 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;
105107
+ var keys2;
105108
+ if (message.tileMedia && (keys2 = Object.keys(message.tileMedia)).length) {
105109
+ object.tileMedia = {};
105110
+ for (var j = 0; j < keys2.length; ++j)
105111
+ object.tileMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.tileMedia[keys2[j]], options);
105112
+ }
105113
+ if (message.headerImageMedia && (keys2 = Object.keys(message.headerImageMedia)).length) {
105114
+ object.headerImageMedia = {};
105115
+ for (var j = 0; j < keys2.length; ++j)
105116
+ object.headerImageMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.headerImageMedia[keys2[j]], options);
105117
+ }
105118
+ if (message.tags && (keys2 = Object.keys(message.tags)).length) {
105119
+ object.tags = {};
105120
+ for (var j = 0; j < keys2.length; ++j)
105121
+ object.tags[keys2[j]] = $root.contentful.Tags.toObject(message.tags[keys2[j]], options);
105122
+ }
105123
+ if (message.contentType != null && message.hasOwnProperty("contentType"))
105124
+ object.contentType = message.contentType;
105125
+ if (message.contentTypeDisplayValue != null && message.hasOwnProperty("contentTypeDisplayValue"))
105126
+ object.contentTypeDisplayValue = message.contentTypeDisplayValue;
105127
+ return object;
105128
+ };
105129
+
105130
+ /**
105131
+ * Converts this WorkoutPlaylistCreatedV2 to JSON.
105132
+ * @function toJSON
105133
+ * @memberof WorkoutPlaylistCreatedV2
105134
+ * @instance
105135
+ * @returns {Object.<string,*>} JSON object
105136
+ */
105137
+ WorkoutPlaylistCreatedV2.prototype.toJSON = function toJSON() {
105138
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
105139
+ };
105140
+
105141
+ return WorkoutPlaylistCreatedV2;
105142
+ })();
105143
+
105144
+ $root.WorkoutPlaylistUpdated = (function() {
105145
+
105146
+ /**
105147
+ * Properties of a WorkoutPlaylistUpdated.
105148
+ * @exports IWorkoutPlaylistUpdated
105149
+ * @interface IWorkoutPlaylistUpdated
105150
+ * @property {string|null} [slug] WorkoutPlaylistUpdated slug
105151
+ * @property {number|null} [entityId] WorkoutPlaylistUpdated entityId
105152
+ * @property {string|null} [entityType] WorkoutPlaylistUpdated entityType
105153
+ * @property {Array.<contentful.ISlugReference>|null} [accessGroups] WorkoutPlaylistUpdated accessGroups
104279
105154
  * @property {number|Long|null} [updatedAt] WorkoutPlaylistUpdated updatedAt
104280
105155
  * @property {Object.<string,contentful.IIdReference>|null} [tileMedia] WorkoutPlaylistUpdated tileMedia
104281
105156
  * @property {Object.<string,contentful.IIdReference>|null} [headerImageMedia] WorkoutPlaylistUpdated headerImageMedia
@@ -104283,14 +105158,478 @@ $root.WorkoutPlaylistUpdated = (function() {
104283
105158
  */
104284
105159
 
104285
105160
  /**
104286
- * Constructs a new WorkoutPlaylistUpdated.
104287
- * @exports WorkoutPlaylistUpdated
104288
- * @classdesc Represents a WorkoutPlaylistUpdated.
104289
- * @implements IWorkoutPlaylistUpdated
105161
+ * Constructs a new WorkoutPlaylistUpdated.
105162
+ * @exports WorkoutPlaylistUpdated
105163
+ * @classdesc Represents a WorkoutPlaylistUpdated.
105164
+ * @implements IWorkoutPlaylistUpdated
105165
+ * @constructor
105166
+ * @param {IWorkoutPlaylistUpdated=} [properties] Properties to set
105167
+ */
105168
+ function WorkoutPlaylistUpdated(properties) {
105169
+ this.accessGroups = [];
105170
+ this.tileMedia = {};
105171
+ this.headerImageMedia = {};
105172
+ this.tags = {};
105173
+ if (properties)
105174
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
105175
+ if (properties[keys[i]] != null)
105176
+ this[keys[i]] = properties[keys[i]];
105177
+ }
105178
+
105179
+ /**
105180
+ * WorkoutPlaylistUpdated slug.
105181
+ * @member {string} slug
105182
+ * @memberof WorkoutPlaylistUpdated
105183
+ * @instance
105184
+ */
105185
+ WorkoutPlaylistUpdated.prototype.slug = "";
105186
+
105187
+ /**
105188
+ * WorkoutPlaylistUpdated entityId.
105189
+ * @member {number} entityId
105190
+ * @memberof WorkoutPlaylistUpdated
105191
+ * @instance
105192
+ */
105193
+ WorkoutPlaylistUpdated.prototype.entityId = 0;
105194
+
105195
+ /**
105196
+ * WorkoutPlaylistUpdated entityType.
105197
+ * @member {string} entityType
105198
+ * @memberof WorkoutPlaylistUpdated
105199
+ * @instance
105200
+ */
105201
+ WorkoutPlaylistUpdated.prototype.entityType = "";
105202
+
105203
+ /**
105204
+ * WorkoutPlaylistUpdated accessGroups.
105205
+ * @member {Array.<contentful.ISlugReference>} accessGroups
105206
+ * @memberof WorkoutPlaylistUpdated
105207
+ * @instance
105208
+ */
105209
+ WorkoutPlaylistUpdated.prototype.accessGroups = $util.emptyArray;
105210
+
105211
+ /**
105212
+ * WorkoutPlaylistUpdated updatedAt.
105213
+ * @member {number|Long} updatedAt
105214
+ * @memberof WorkoutPlaylistUpdated
105215
+ * @instance
105216
+ */
105217
+ WorkoutPlaylistUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
105218
+
105219
+ /**
105220
+ * WorkoutPlaylistUpdated tileMedia.
105221
+ * @member {Object.<string,contentful.IIdReference>} tileMedia
105222
+ * @memberof WorkoutPlaylistUpdated
105223
+ * @instance
105224
+ */
105225
+ WorkoutPlaylistUpdated.prototype.tileMedia = $util.emptyObject;
105226
+
105227
+ /**
105228
+ * WorkoutPlaylistUpdated headerImageMedia.
105229
+ * @member {Object.<string,contentful.IIdReference>} headerImageMedia
105230
+ * @memberof WorkoutPlaylistUpdated
105231
+ * @instance
105232
+ */
105233
+ WorkoutPlaylistUpdated.prototype.headerImageMedia = $util.emptyObject;
105234
+
105235
+ /**
105236
+ * WorkoutPlaylistUpdated tags.
105237
+ * @member {Object.<string,contentful.ITags>} tags
105238
+ * @memberof WorkoutPlaylistUpdated
105239
+ * @instance
105240
+ */
105241
+ WorkoutPlaylistUpdated.prototype.tags = $util.emptyObject;
105242
+
105243
+ /**
105244
+ * Creates a new WorkoutPlaylistUpdated instance using the specified properties.
105245
+ * @function create
105246
+ * @memberof WorkoutPlaylistUpdated
105247
+ * @static
105248
+ * @param {IWorkoutPlaylistUpdated=} [properties] Properties to set
105249
+ * @returns {WorkoutPlaylistUpdated} WorkoutPlaylistUpdated instance
105250
+ */
105251
+ WorkoutPlaylistUpdated.create = function create(properties) {
105252
+ return new WorkoutPlaylistUpdated(properties);
105253
+ };
105254
+
105255
+ /**
105256
+ * Encodes the specified WorkoutPlaylistUpdated message. Does not implicitly {@link WorkoutPlaylistUpdated.verify|verify} messages.
105257
+ * @function encode
105258
+ * @memberof WorkoutPlaylistUpdated
105259
+ * @static
105260
+ * @param {IWorkoutPlaylistUpdated} message WorkoutPlaylistUpdated message or plain object to encode
105261
+ * @param {$protobuf.Writer} [writer] Writer to encode to
105262
+ * @returns {$protobuf.Writer} Writer
105263
+ */
105264
+ WorkoutPlaylistUpdated.encode = function encode(message, writer) {
105265
+ if (!writer)
105266
+ writer = $Writer.create();
105267
+ if (message.slug != null && message.hasOwnProperty("slug"))
105268
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
105269
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
105270
+ writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.entityId);
105271
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
105272
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.entityType);
105273
+ if (message.accessGroups != null && message.accessGroups.length)
105274
+ for (var i = 0; i < message.accessGroups.length; ++i)
105275
+ $root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
105276
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
105277
+ writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.updatedAt);
105278
+ if (message.tileMedia != null && message.hasOwnProperty("tileMedia"))
105279
+ for (var keys = Object.keys(message.tileMedia), i = 0; i < keys.length; ++i) {
105280
+ writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
105281
+ $root.contentful.IdReference.encode(message.tileMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
105282
+ }
105283
+ if (message.headerImageMedia != null && message.hasOwnProperty("headerImageMedia"))
105284
+ for (var keys = Object.keys(message.headerImageMedia), i = 0; i < keys.length; ++i) {
105285
+ writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
105286
+ $root.contentful.IdReference.encode(message.headerImageMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
105287
+ }
105288
+ if (message.tags != null && message.hasOwnProperty("tags"))
105289
+ for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) {
105290
+ writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
105291
+ $root.contentful.Tags.encode(message.tags[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
105292
+ }
105293
+ return writer;
105294
+ };
105295
+
105296
+ /**
105297
+ * Encodes the specified WorkoutPlaylistUpdated message, length delimited. Does not implicitly {@link WorkoutPlaylistUpdated.verify|verify} messages.
105298
+ * @function encodeDelimited
105299
+ * @memberof WorkoutPlaylistUpdated
105300
+ * @static
105301
+ * @param {IWorkoutPlaylistUpdated} message WorkoutPlaylistUpdated message or plain object to encode
105302
+ * @param {$protobuf.Writer} [writer] Writer to encode to
105303
+ * @returns {$protobuf.Writer} Writer
105304
+ */
105305
+ WorkoutPlaylistUpdated.encodeDelimited = function encodeDelimited(message, writer) {
105306
+ return this.encode(message, writer).ldelim();
105307
+ };
105308
+
105309
+ /**
105310
+ * Decodes a WorkoutPlaylistUpdated message from the specified reader or buffer.
105311
+ * @function decode
105312
+ * @memberof WorkoutPlaylistUpdated
105313
+ * @static
105314
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
105315
+ * @param {number} [length] Message length if known beforehand
105316
+ * @returns {WorkoutPlaylistUpdated} WorkoutPlaylistUpdated
105317
+ * @throws {Error} If the payload is not a reader or valid buffer
105318
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
105319
+ */
105320
+ WorkoutPlaylistUpdated.decode = function decode(reader, length) {
105321
+ if (!(reader instanceof $Reader))
105322
+ reader = $Reader.create(reader);
105323
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.WorkoutPlaylistUpdated(), key;
105324
+ while (reader.pos < end) {
105325
+ var tag = reader.uint32();
105326
+ switch (tag >>> 3) {
105327
+ case 1:
105328
+ message.slug = reader.string();
105329
+ break;
105330
+ case 2:
105331
+ message.entityId = reader.uint32();
105332
+ break;
105333
+ case 3:
105334
+ message.entityType = reader.string();
105335
+ break;
105336
+ case 4:
105337
+ if (!(message.accessGroups && message.accessGroups.length))
105338
+ message.accessGroups = [];
105339
+ message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
105340
+ break;
105341
+ case 5:
105342
+ message.updatedAt = reader.uint64();
105343
+ break;
105344
+ case 6:
105345
+ reader.skip().pos++;
105346
+ if (message.tileMedia === $util.emptyObject)
105347
+ message.tileMedia = {};
105348
+ key = reader.string();
105349
+ reader.pos++;
105350
+ message.tileMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
105351
+ break;
105352
+ case 7:
105353
+ reader.skip().pos++;
105354
+ if (message.headerImageMedia === $util.emptyObject)
105355
+ message.headerImageMedia = {};
105356
+ key = reader.string();
105357
+ reader.pos++;
105358
+ message.headerImageMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
105359
+ break;
105360
+ case 8:
105361
+ reader.skip().pos++;
105362
+ if (message.tags === $util.emptyObject)
105363
+ message.tags = {};
105364
+ key = reader.string();
105365
+ reader.pos++;
105366
+ message.tags[key] = $root.contentful.Tags.decode(reader, reader.uint32());
105367
+ break;
105368
+ default:
105369
+ reader.skipType(tag & 7);
105370
+ break;
105371
+ }
105372
+ }
105373
+ return message;
105374
+ };
105375
+
105376
+ /**
105377
+ * Decodes a WorkoutPlaylistUpdated message from the specified reader or buffer, length delimited.
105378
+ * @function decodeDelimited
105379
+ * @memberof WorkoutPlaylistUpdated
105380
+ * @static
105381
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
105382
+ * @returns {WorkoutPlaylistUpdated} WorkoutPlaylistUpdated
105383
+ * @throws {Error} If the payload is not a reader or valid buffer
105384
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
105385
+ */
105386
+ WorkoutPlaylistUpdated.decodeDelimited = function decodeDelimited(reader) {
105387
+ if (!(reader instanceof $Reader))
105388
+ reader = new $Reader(reader);
105389
+ return this.decode(reader, reader.uint32());
105390
+ };
105391
+
105392
+ /**
105393
+ * Verifies a WorkoutPlaylistUpdated message.
105394
+ * @function verify
105395
+ * @memberof WorkoutPlaylistUpdated
105396
+ * @static
105397
+ * @param {Object.<string,*>} message Plain object to verify
105398
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
105399
+ */
105400
+ WorkoutPlaylistUpdated.verify = function verify(message) {
105401
+ if (typeof message !== "object" || message === null)
105402
+ return "object expected";
105403
+ if (message.slug != null && message.hasOwnProperty("slug"))
105404
+ if (!$util.isString(message.slug))
105405
+ return "slug: string expected";
105406
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
105407
+ if (!$util.isInteger(message.entityId))
105408
+ return "entityId: integer expected";
105409
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
105410
+ if (!$util.isString(message.entityType))
105411
+ return "entityType: string expected";
105412
+ if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
105413
+ if (!Array.isArray(message.accessGroups))
105414
+ return "accessGroups: array expected";
105415
+ for (var i = 0; i < message.accessGroups.length; ++i) {
105416
+ var error = $root.contentful.SlugReference.verify(message.accessGroups[i]);
105417
+ if (error)
105418
+ return "accessGroups." + error;
105419
+ }
105420
+ }
105421
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
105422
+ if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
105423
+ return "updatedAt: integer|Long expected";
105424
+ if (message.tileMedia != null && message.hasOwnProperty("tileMedia")) {
105425
+ if (!$util.isObject(message.tileMedia))
105426
+ return "tileMedia: object expected";
105427
+ var key = Object.keys(message.tileMedia);
105428
+ for (var i = 0; i < key.length; ++i) {
105429
+ var error = $root.contentful.IdReference.verify(message.tileMedia[key[i]]);
105430
+ if (error)
105431
+ return "tileMedia." + error;
105432
+ }
105433
+ }
105434
+ if (message.headerImageMedia != null && message.hasOwnProperty("headerImageMedia")) {
105435
+ if (!$util.isObject(message.headerImageMedia))
105436
+ return "headerImageMedia: object expected";
105437
+ var key = Object.keys(message.headerImageMedia);
105438
+ for (var i = 0; i < key.length; ++i) {
105439
+ var error = $root.contentful.IdReference.verify(message.headerImageMedia[key[i]]);
105440
+ if (error)
105441
+ return "headerImageMedia." + error;
105442
+ }
105443
+ }
105444
+ if (message.tags != null && message.hasOwnProperty("tags")) {
105445
+ if (!$util.isObject(message.tags))
105446
+ return "tags: object expected";
105447
+ var key = Object.keys(message.tags);
105448
+ for (var i = 0; i < key.length; ++i) {
105449
+ var error = $root.contentful.Tags.verify(message.tags[key[i]]);
105450
+ if (error)
105451
+ return "tags." + error;
105452
+ }
105453
+ }
105454
+ return null;
105455
+ };
105456
+
105457
+ /**
105458
+ * Creates a WorkoutPlaylistUpdated message from a plain object. Also converts values to their respective internal types.
105459
+ * @function fromObject
105460
+ * @memberof WorkoutPlaylistUpdated
105461
+ * @static
105462
+ * @param {Object.<string,*>} object Plain object
105463
+ * @returns {WorkoutPlaylistUpdated} WorkoutPlaylistUpdated
105464
+ */
105465
+ WorkoutPlaylistUpdated.fromObject = function fromObject(object) {
105466
+ if (object instanceof $root.WorkoutPlaylistUpdated)
105467
+ return object;
105468
+ var message = new $root.WorkoutPlaylistUpdated();
105469
+ if (object.slug != null)
105470
+ message.slug = String(object.slug);
105471
+ if (object.entityId != null)
105472
+ message.entityId = object.entityId >>> 0;
105473
+ if (object.entityType != null)
105474
+ message.entityType = String(object.entityType);
105475
+ if (object.accessGroups) {
105476
+ if (!Array.isArray(object.accessGroups))
105477
+ throw TypeError(".WorkoutPlaylistUpdated.accessGroups: array expected");
105478
+ message.accessGroups = [];
105479
+ for (var i = 0; i < object.accessGroups.length; ++i) {
105480
+ if (typeof object.accessGroups[i] !== "object")
105481
+ throw TypeError(".WorkoutPlaylistUpdated.accessGroups: object expected");
105482
+ message.accessGroups[i] = $root.contentful.SlugReference.fromObject(object.accessGroups[i]);
105483
+ }
105484
+ }
105485
+ if (object.updatedAt != null)
105486
+ if ($util.Long)
105487
+ (message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
105488
+ else if (typeof object.updatedAt === "string")
105489
+ message.updatedAt = parseInt(object.updatedAt, 10);
105490
+ else if (typeof object.updatedAt === "number")
105491
+ message.updatedAt = object.updatedAt;
105492
+ else if (typeof object.updatedAt === "object")
105493
+ message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
105494
+ if (object.tileMedia) {
105495
+ if (typeof object.tileMedia !== "object")
105496
+ throw TypeError(".WorkoutPlaylistUpdated.tileMedia: object expected");
105497
+ message.tileMedia = {};
105498
+ for (var keys = Object.keys(object.tileMedia), i = 0; i < keys.length; ++i) {
105499
+ if (typeof object.tileMedia[keys[i]] !== "object")
105500
+ throw TypeError(".WorkoutPlaylistUpdated.tileMedia: object expected");
105501
+ message.tileMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.tileMedia[keys[i]]);
105502
+ }
105503
+ }
105504
+ if (object.headerImageMedia) {
105505
+ if (typeof object.headerImageMedia !== "object")
105506
+ throw TypeError(".WorkoutPlaylistUpdated.headerImageMedia: object expected");
105507
+ message.headerImageMedia = {};
105508
+ for (var keys = Object.keys(object.headerImageMedia), i = 0; i < keys.length; ++i) {
105509
+ if (typeof object.headerImageMedia[keys[i]] !== "object")
105510
+ throw TypeError(".WorkoutPlaylistUpdated.headerImageMedia: object expected");
105511
+ message.headerImageMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.headerImageMedia[keys[i]]);
105512
+ }
105513
+ }
105514
+ if (object.tags) {
105515
+ if (typeof object.tags !== "object")
105516
+ throw TypeError(".WorkoutPlaylistUpdated.tags: object expected");
105517
+ message.tags = {};
105518
+ for (var keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) {
105519
+ if (typeof object.tags[keys[i]] !== "object")
105520
+ throw TypeError(".WorkoutPlaylistUpdated.tags: object expected");
105521
+ message.tags[keys[i]] = $root.contentful.Tags.fromObject(object.tags[keys[i]]);
105522
+ }
105523
+ }
105524
+ return message;
105525
+ };
105526
+
105527
+ /**
105528
+ * Creates a plain object from a WorkoutPlaylistUpdated message. Also converts values to other types if specified.
105529
+ * @function toObject
105530
+ * @memberof WorkoutPlaylistUpdated
105531
+ * @static
105532
+ * @param {WorkoutPlaylistUpdated} message WorkoutPlaylistUpdated
105533
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
105534
+ * @returns {Object.<string,*>} Plain object
105535
+ */
105536
+ WorkoutPlaylistUpdated.toObject = function toObject(message, options) {
105537
+ if (!options)
105538
+ options = {};
105539
+ var object = {};
105540
+ if (options.arrays || options.defaults)
105541
+ object.accessGroups = [];
105542
+ if (options.objects || options.defaults) {
105543
+ object.tileMedia = {};
105544
+ object.headerImageMedia = {};
105545
+ object.tags = {};
105546
+ }
105547
+ if (options.defaults) {
105548
+ object.slug = "";
105549
+ object.entityId = 0;
105550
+ object.entityType = "";
105551
+ if ($util.Long) {
105552
+ var long = new $util.Long(0, 0, true);
105553
+ object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
105554
+ } else
105555
+ object.updatedAt = options.longs === String ? "0" : 0;
105556
+ }
105557
+ if (message.slug != null && message.hasOwnProperty("slug"))
105558
+ object.slug = message.slug;
105559
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
105560
+ object.entityId = message.entityId;
105561
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
105562
+ object.entityType = message.entityType;
105563
+ if (message.accessGroups && message.accessGroups.length) {
105564
+ object.accessGroups = [];
105565
+ for (var j = 0; j < message.accessGroups.length; ++j)
105566
+ object.accessGroups[j] = $root.contentful.SlugReference.toObject(message.accessGroups[j], options);
105567
+ }
105568
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
105569
+ if (typeof message.updatedAt === "number")
105570
+ object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
105571
+ else
105572
+ 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;
105573
+ var keys2;
105574
+ if (message.tileMedia && (keys2 = Object.keys(message.tileMedia)).length) {
105575
+ object.tileMedia = {};
105576
+ for (var j = 0; j < keys2.length; ++j)
105577
+ object.tileMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.tileMedia[keys2[j]], options);
105578
+ }
105579
+ if (message.headerImageMedia && (keys2 = Object.keys(message.headerImageMedia)).length) {
105580
+ object.headerImageMedia = {};
105581
+ for (var j = 0; j < keys2.length; ++j)
105582
+ object.headerImageMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.headerImageMedia[keys2[j]], options);
105583
+ }
105584
+ if (message.tags && (keys2 = Object.keys(message.tags)).length) {
105585
+ object.tags = {};
105586
+ for (var j = 0; j < keys2.length; ++j)
105587
+ object.tags[keys2[j]] = $root.contentful.Tags.toObject(message.tags[keys2[j]], options);
105588
+ }
105589
+ return object;
105590
+ };
105591
+
105592
+ /**
105593
+ * Converts this WorkoutPlaylistUpdated to JSON.
105594
+ * @function toJSON
105595
+ * @memberof WorkoutPlaylistUpdated
105596
+ * @instance
105597
+ * @returns {Object.<string,*>} JSON object
105598
+ */
105599
+ WorkoutPlaylistUpdated.prototype.toJSON = function toJSON() {
105600
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
105601
+ };
105602
+
105603
+ return WorkoutPlaylistUpdated;
105604
+ })();
105605
+
105606
+ $root.WorkoutPlaylistUpdatedV2 = (function() {
105607
+
105608
+ /**
105609
+ * Properties of a WorkoutPlaylistUpdatedV2.
105610
+ * @exports IWorkoutPlaylistUpdatedV2
105611
+ * @interface IWorkoutPlaylistUpdatedV2
105612
+ * @property {string|null} [slug] WorkoutPlaylistUpdatedV2 slug
105613
+ * @property {number|null} [entityId] WorkoutPlaylistUpdatedV2 entityId
105614
+ * @property {string|null} [entityType] WorkoutPlaylistUpdatedV2 entityType
105615
+ * @property {Array.<contentful.ISlugReference>|null} [accessGroups] WorkoutPlaylistUpdatedV2 accessGroups
105616
+ * @property {number|Long|null} [updatedAt] WorkoutPlaylistUpdatedV2 updatedAt
105617
+ * @property {Object.<string,contentful.IIdReference>|null} [tileMedia] WorkoutPlaylistUpdatedV2 tileMedia
105618
+ * @property {Object.<string,contentful.IIdReference>|null} [headerImageMedia] WorkoutPlaylistUpdatedV2 headerImageMedia
105619
+ * @property {Object.<string,contentful.ITags>|null} [tags] WorkoutPlaylistUpdatedV2 tags
105620
+ * @property {string|null} [contentType] WorkoutPlaylistUpdatedV2 contentType
105621
+ * @property {string|null} [contentTypeDisplayValue] WorkoutPlaylistUpdatedV2 contentTypeDisplayValue
105622
+ */
105623
+
105624
+ /**
105625
+ * Constructs a new WorkoutPlaylistUpdatedV2.
105626
+ * @exports WorkoutPlaylistUpdatedV2
105627
+ * @classdesc Represents a WorkoutPlaylistUpdatedV2.
105628
+ * @implements IWorkoutPlaylistUpdatedV2
104290
105629
  * @constructor
104291
- * @param {IWorkoutPlaylistUpdated=} [properties] Properties to set
105630
+ * @param {IWorkoutPlaylistUpdatedV2=} [properties] Properties to set
104292
105631
  */
104293
- function WorkoutPlaylistUpdated(properties) {
105632
+ function WorkoutPlaylistUpdatedV2(properties) {
104294
105633
  this.accessGroups = [];
104295
105634
  this.tileMedia = {};
104296
105635
  this.headerImageMedia = {};
@@ -104302,91 +105641,107 @@ $root.WorkoutPlaylistUpdated = (function() {
104302
105641
  }
104303
105642
 
104304
105643
  /**
104305
- * WorkoutPlaylistUpdated slug.
105644
+ * WorkoutPlaylistUpdatedV2 slug.
104306
105645
  * @member {string} slug
104307
- * @memberof WorkoutPlaylistUpdated
105646
+ * @memberof WorkoutPlaylistUpdatedV2
104308
105647
  * @instance
104309
105648
  */
104310
- WorkoutPlaylistUpdated.prototype.slug = "";
105649
+ WorkoutPlaylistUpdatedV2.prototype.slug = "";
104311
105650
 
104312
105651
  /**
104313
- * WorkoutPlaylistUpdated entityId.
105652
+ * WorkoutPlaylistUpdatedV2 entityId.
104314
105653
  * @member {number} entityId
104315
- * @memberof WorkoutPlaylistUpdated
105654
+ * @memberof WorkoutPlaylistUpdatedV2
104316
105655
  * @instance
104317
105656
  */
104318
- WorkoutPlaylistUpdated.prototype.entityId = 0;
105657
+ WorkoutPlaylistUpdatedV2.prototype.entityId = 0;
104319
105658
 
104320
105659
  /**
104321
- * WorkoutPlaylistUpdated entityType.
105660
+ * WorkoutPlaylistUpdatedV2 entityType.
104322
105661
  * @member {string} entityType
104323
- * @memberof WorkoutPlaylistUpdated
105662
+ * @memberof WorkoutPlaylistUpdatedV2
104324
105663
  * @instance
104325
105664
  */
104326
- WorkoutPlaylistUpdated.prototype.entityType = "";
105665
+ WorkoutPlaylistUpdatedV2.prototype.entityType = "";
104327
105666
 
104328
105667
  /**
104329
- * WorkoutPlaylistUpdated accessGroups.
105668
+ * WorkoutPlaylistUpdatedV2 accessGroups.
104330
105669
  * @member {Array.<contentful.ISlugReference>} accessGroups
104331
- * @memberof WorkoutPlaylistUpdated
105670
+ * @memberof WorkoutPlaylistUpdatedV2
104332
105671
  * @instance
104333
105672
  */
104334
- WorkoutPlaylistUpdated.prototype.accessGroups = $util.emptyArray;
105673
+ WorkoutPlaylistUpdatedV2.prototype.accessGroups = $util.emptyArray;
104335
105674
 
104336
105675
  /**
104337
- * WorkoutPlaylistUpdated updatedAt.
105676
+ * WorkoutPlaylistUpdatedV2 updatedAt.
104338
105677
  * @member {number|Long} updatedAt
104339
- * @memberof WorkoutPlaylistUpdated
105678
+ * @memberof WorkoutPlaylistUpdatedV2
104340
105679
  * @instance
104341
105680
  */
104342
- WorkoutPlaylistUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
105681
+ WorkoutPlaylistUpdatedV2.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
104343
105682
 
104344
105683
  /**
104345
- * WorkoutPlaylistUpdated tileMedia.
105684
+ * WorkoutPlaylistUpdatedV2 tileMedia.
104346
105685
  * @member {Object.<string,contentful.IIdReference>} tileMedia
104347
- * @memberof WorkoutPlaylistUpdated
105686
+ * @memberof WorkoutPlaylistUpdatedV2
104348
105687
  * @instance
104349
105688
  */
104350
- WorkoutPlaylistUpdated.prototype.tileMedia = $util.emptyObject;
105689
+ WorkoutPlaylistUpdatedV2.prototype.tileMedia = $util.emptyObject;
104351
105690
 
104352
105691
  /**
104353
- * WorkoutPlaylistUpdated headerImageMedia.
105692
+ * WorkoutPlaylistUpdatedV2 headerImageMedia.
104354
105693
  * @member {Object.<string,contentful.IIdReference>} headerImageMedia
104355
- * @memberof WorkoutPlaylistUpdated
105694
+ * @memberof WorkoutPlaylistUpdatedV2
104356
105695
  * @instance
104357
105696
  */
104358
- WorkoutPlaylistUpdated.prototype.headerImageMedia = $util.emptyObject;
105697
+ WorkoutPlaylistUpdatedV2.prototype.headerImageMedia = $util.emptyObject;
104359
105698
 
104360
105699
  /**
104361
- * WorkoutPlaylistUpdated tags.
105700
+ * WorkoutPlaylistUpdatedV2 tags.
104362
105701
  * @member {Object.<string,contentful.ITags>} tags
104363
- * @memberof WorkoutPlaylistUpdated
105702
+ * @memberof WorkoutPlaylistUpdatedV2
104364
105703
  * @instance
104365
105704
  */
104366
- WorkoutPlaylistUpdated.prototype.tags = $util.emptyObject;
105705
+ WorkoutPlaylistUpdatedV2.prototype.tags = $util.emptyObject;
104367
105706
 
104368
105707
  /**
104369
- * Creates a new WorkoutPlaylistUpdated instance using the specified properties.
105708
+ * WorkoutPlaylistUpdatedV2 contentType.
105709
+ * @member {string} contentType
105710
+ * @memberof WorkoutPlaylistUpdatedV2
105711
+ * @instance
105712
+ */
105713
+ WorkoutPlaylistUpdatedV2.prototype.contentType = "";
105714
+
105715
+ /**
105716
+ * WorkoutPlaylistUpdatedV2 contentTypeDisplayValue.
105717
+ * @member {string} contentTypeDisplayValue
105718
+ * @memberof WorkoutPlaylistUpdatedV2
105719
+ * @instance
105720
+ */
105721
+ WorkoutPlaylistUpdatedV2.prototype.contentTypeDisplayValue = "";
105722
+
105723
+ /**
105724
+ * Creates a new WorkoutPlaylistUpdatedV2 instance using the specified properties.
104370
105725
  * @function create
104371
- * @memberof WorkoutPlaylistUpdated
105726
+ * @memberof WorkoutPlaylistUpdatedV2
104372
105727
  * @static
104373
- * @param {IWorkoutPlaylistUpdated=} [properties] Properties to set
104374
- * @returns {WorkoutPlaylistUpdated} WorkoutPlaylistUpdated instance
105728
+ * @param {IWorkoutPlaylistUpdatedV2=} [properties] Properties to set
105729
+ * @returns {WorkoutPlaylistUpdatedV2} WorkoutPlaylistUpdatedV2 instance
104375
105730
  */
104376
- WorkoutPlaylistUpdated.create = function create(properties) {
104377
- return new WorkoutPlaylistUpdated(properties);
105731
+ WorkoutPlaylistUpdatedV2.create = function create(properties) {
105732
+ return new WorkoutPlaylistUpdatedV2(properties);
104378
105733
  };
104379
105734
 
104380
105735
  /**
104381
- * Encodes the specified WorkoutPlaylistUpdated message. Does not implicitly {@link WorkoutPlaylistUpdated.verify|verify} messages.
105736
+ * Encodes the specified WorkoutPlaylistUpdatedV2 message. Does not implicitly {@link WorkoutPlaylistUpdatedV2.verify|verify} messages.
104382
105737
  * @function encode
104383
- * @memberof WorkoutPlaylistUpdated
105738
+ * @memberof WorkoutPlaylistUpdatedV2
104384
105739
  * @static
104385
- * @param {IWorkoutPlaylistUpdated} message WorkoutPlaylistUpdated message or plain object to encode
105740
+ * @param {IWorkoutPlaylistUpdatedV2} message WorkoutPlaylistUpdatedV2 message or plain object to encode
104386
105741
  * @param {$protobuf.Writer} [writer] Writer to encode to
104387
105742
  * @returns {$protobuf.Writer} Writer
104388
105743
  */
104389
- WorkoutPlaylistUpdated.encode = function encode(message, writer) {
105744
+ WorkoutPlaylistUpdatedV2.encode = function encode(message, writer) {
104390
105745
  if (!writer)
104391
105746
  writer = $Writer.create();
104392
105747
  if (message.slug != null && message.hasOwnProperty("slug"))
@@ -104415,37 +105770,41 @@ $root.WorkoutPlaylistUpdated = (function() {
104415
105770
  writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
104416
105771
  $root.contentful.Tags.encode(message.tags[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
104417
105772
  }
105773
+ if (message.contentType != null && message.hasOwnProperty("contentType"))
105774
+ writer.uint32(/* id 9, wireType 2 =*/74).string(message.contentType);
105775
+ if (message.contentTypeDisplayValue != null && message.hasOwnProperty("contentTypeDisplayValue"))
105776
+ writer.uint32(/* id 10, wireType 2 =*/82).string(message.contentTypeDisplayValue);
104418
105777
  return writer;
104419
105778
  };
104420
105779
 
104421
105780
  /**
104422
- * Encodes the specified WorkoutPlaylistUpdated message, length delimited. Does not implicitly {@link WorkoutPlaylistUpdated.verify|verify} messages.
105781
+ * Encodes the specified WorkoutPlaylistUpdatedV2 message, length delimited. Does not implicitly {@link WorkoutPlaylistUpdatedV2.verify|verify} messages.
104423
105782
  * @function encodeDelimited
104424
- * @memberof WorkoutPlaylistUpdated
105783
+ * @memberof WorkoutPlaylistUpdatedV2
104425
105784
  * @static
104426
- * @param {IWorkoutPlaylistUpdated} message WorkoutPlaylistUpdated message or plain object to encode
105785
+ * @param {IWorkoutPlaylistUpdatedV2} message WorkoutPlaylistUpdatedV2 message or plain object to encode
104427
105786
  * @param {$protobuf.Writer} [writer] Writer to encode to
104428
105787
  * @returns {$protobuf.Writer} Writer
104429
105788
  */
104430
- WorkoutPlaylistUpdated.encodeDelimited = function encodeDelimited(message, writer) {
105789
+ WorkoutPlaylistUpdatedV2.encodeDelimited = function encodeDelimited(message, writer) {
104431
105790
  return this.encode(message, writer).ldelim();
104432
105791
  };
104433
105792
 
104434
105793
  /**
104435
- * Decodes a WorkoutPlaylistUpdated message from the specified reader or buffer.
105794
+ * Decodes a WorkoutPlaylistUpdatedV2 message from the specified reader or buffer.
104436
105795
  * @function decode
104437
- * @memberof WorkoutPlaylistUpdated
105796
+ * @memberof WorkoutPlaylistUpdatedV2
104438
105797
  * @static
104439
105798
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
104440
105799
  * @param {number} [length] Message length if known beforehand
104441
- * @returns {WorkoutPlaylistUpdated} WorkoutPlaylistUpdated
105800
+ * @returns {WorkoutPlaylistUpdatedV2} WorkoutPlaylistUpdatedV2
104442
105801
  * @throws {Error} If the payload is not a reader or valid buffer
104443
105802
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
104444
105803
  */
104445
- WorkoutPlaylistUpdated.decode = function decode(reader, length) {
105804
+ WorkoutPlaylistUpdatedV2.decode = function decode(reader, length) {
104446
105805
  if (!(reader instanceof $Reader))
104447
105806
  reader = $Reader.create(reader);
104448
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.WorkoutPlaylistUpdated(), key;
105807
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.WorkoutPlaylistUpdatedV2(), key;
104449
105808
  while (reader.pos < end) {
104450
105809
  var tag = reader.uint32();
104451
105810
  switch (tag >>> 3) {
@@ -104490,6 +105849,12 @@ $root.WorkoutPlaylistUpdated = (function() {
104490
105849
  reader.pos++;
104491
105850
  message.tags[key] = $root.contentful.Tags.decode(reader, reader.uint32());
104492
105851
  break;
105852
+ case 9:
105853
+ message.contentType = reader.string();
105854
+ break;
105855
+ case 10:
105856
+ message.contentTypeDisplayValue = reader.string();
105857
+ break;
104493
105858
  default:
104494
105859
  reader.skipType(tag & 7);
104495
105860
  break;
@@ -104499,30 +105864,30 @@ $root.WorkoutPlaylistUpdated = (function() {
104499
105864
  };
104500
105865
 
104501
105866
  /**
104502
- * Decodes a WorkoutPlaylistUpdated message from the specified reader or buffer, length delimited.
105867
+ * Decodes a WorkoutPlaylistUpdatedV2 message from the specified reader or buffer, length delimited.
104503
105868
  * @function decodeDelimited
104504
- * @memberof WorkoutPlaylistUpdated
105869
+ * @memberof WorkoutPlaylistUpdatedV2
104505
105870
  * @static
104506
105871
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
104507
- * @returns {WorkoutPlaylistUpdated} WorkoutPlaylistUpdated
105872
+ * @returns {WorkoutPlaylistUpdatedV2} WorkoutPlaylistUpdatedV2
104508
105873
  * @throws {Error} If the payload is not a reader or valid buffer
104509
105874
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
104510
105875
  */
104511
- WorkoutPlaylistUpdated.decodeDelimited = function decodeDelimited(reader) {
105876
+ WorkoutPlaylistUpdatedV2.decodeDelimited = function decodeDelimited(reader) {
104512
105877
  if (!(reader instanceof $Reader))
104513
105878
  reader = new $Reader(reader);
104514
105879
  return this.decode(reader, reader.uint32());
104515
105880
  };
104516
105881
 
104517
105882
  /**
104518
- * Verifies a WorkoutPlaylistUpdated message.
105883
+ * Verifies a WorkoutPlaylistUpdatedV2 message.
104519
105884
  * @function verify
104520
- * @memberof WorkoutPlaylistUpdated
105885
+ * @memberof WorkoutPlaylistUpdatedV2
104521
105886
  * @static
104522
105887
  * @param {Object.<string,*>} message Plain object to verify
104523
105888
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
104524
105889
  */
104525
- WorkoutPlaylistUpdated.verify = function verify(message) {
105890
+ WorkoutPlaylistUpdatedV2.verify = function verify(message) {
104526
105891
  if (typeof message !== "object" || message === null)
104527
105892
  return "object expected";
104528
105893
  if (message.slug != null && message.hasOwnProperty("slug"))
@@ -104576,21 +105941,27 @@ $root.WorkoutPlaylistUpdated = (function() {
104576
105941
  return "tags." + error;
104577
105942
  }
104578
105943
  }
105944
+ if (message.contentType != null && message.hasOwnProperty("contentType"))
105945
+ if (!$util.isString(message.contentType))
105946
+ return "contentType: string expected";
105947
+ if (message.contentTypeDisplayValue != null && message.hasOwnProperty("contentTypeDisplayValue"))
105948
+ if (!$util.isString(message.contentTypeDisplayValue))
105949
+ return "contentTypeDisplayValue: string expected";
104579
105950
  return null;
104580
105951
  };
104581
105952
 
104582
105953
  /**
104583
- * Creates a WorkoutPlaylistUpdated message from a plain object. Also converts values to their respective internal types.
105954
+ * Creates a WorkoutPlaylistUpdatedV2 message from a plain object. Also converts values to their respective internal types.
104584
105955
  * @function fromObject
104585
- * @memberof WorkoutPlaylistUpdated
105956
+ * @memberof WorkoutPlaylistUpdatedV2
104586
105957
  * @static
104587
105958
  * @param {Object.<string,*>} object Plain object
104588
- * @returns {WorkoutPlaylistUpdated} WorkoutPlaylistUpdated
105959
+ * @returns {WorkoutPlaylistUpdatedV2} WorkoutPlaylistUpdatedV2
104589
105960
  */
104590
- WorkoutPlaylistUpdated.fromObject = function fromObject(object) {
104591
- if (object instanceof $root.WorkoutPlaylistUpdated)
105961
+ WorkoutPlaylistUpdatedV2.fromObject = function fromObject(object) {
105962
+ if (object instanceof $root.WorkoutPlaylistUpdatedV2)
104592
105963
  return object;
104593
- var message = new $root.WorkoutPlaylistUpdated();
105964
+ var message = new $root.WorkoutPlaylistUpdatedV2();
104594
105965
  if (object.slug != null)
104595
105966
  message.slug = String(object.slug);
104596
105967
  if (object.entityId != null)
@@ -104599,11 +105970,11 @@ $root.WorkoutPlaylistUpdated = (function() {
104599
105970
  message.entityType = String(object.entityType);
104600
105971
  if (object.accessGroups) {
104601
105972
  if (!Array.isArray(object.accessGroups))
104602
- throw TypeError(".WorkoutPlaylistUpdated.accessGroups: array expected");
105973
+ throw TypeError(".WorkoutPlaylistUpdatedV2.accessGroups: array expected");
104603
105974
  message.accessGroups = [];
104604
105975
  for (var i = 0; i < object.accessGroups.length; ++i) {
104605
105976
  if (typeof object.accessGroups[i] !== "object")
104606
- throw TypeError(".WorkoutPlaylistUpdated.accessGroups: object expected");
105977
+ throw TypeError(".WorkoutPlaylistUpdatedV2.accessGroups: object expected");
104607
105978
  message.accessGroups[i] = $root.contentful.SlugReference.fromObject(object.accessGroups[i]);
104608
105979
  }
104609
105980
  }
@@ -104618,47 +105989,51 @@ $root.WorkoutPlaylistUpdated = (function() {
104618
105989
  message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
104619
105990
  if (object.tileMedia) {
104620
105991
  if (typeof object.tileMedia !== "object")
104621
- throw TypeError(".WorkoutPlaylistUpdated.tileMedia: object expected");
105992
+ throw TypeError(".WorkoutPlaylistUpdatedV2.tileMedia: object expected");
104622
105993
  message.tileMedia = {};
104623
105994
  for (var keys = Object.keys(object.tileMedia), i = 0; i < keys.length; ++i) {
104624
105995
  if (typeof object.tileMedia[keys[i]] !== "object")
104625
- throw TypeError(".WorkoutPlaylistUpdated.tileMedia: object expected");
105996
+ throw TypeError(".WorkoutPlaylistUpdatedV2.tileMedia: object expected");
104626
105997
  message.tileMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.tileMedia[keys[i]]);
104627
105998
  }
104628
105999
  }
104629
106000
  if (object.headerImageMedia) {
104630
106001
  if (typeof object.headerImageMedia !== "object")
104631
- throw TypeError(".WorkoutPlaylistUpdated.headerImageMedia: object expected");
106002
+ throw TypeError(".WorkoutPlaylistUpdatedV2.headerImageMedia: object expected");
104632
106003
  message.headerImageMedia = {};
104633
106004
  for (var keys = Object.keys(object.headerImageMedia), i = 0; i < keys.length; ++i) {
104634
106005
  if (typeof object.headerImageMedia[keys[i]] !== "object")
104635
- throw TypeError(".WorkoutPlaylistUpdated.headerImageMedia: object expected");
106006
+ throw TypeError(".WorkoutPlaylistUpdatedV2.headerImageMedia: object expected");
104636
106007
  message.headerImageMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.headerImageMedia[keys[i]]);
104637
106008
  }
104638
106009
  }
104639
106010
  if (object.tags) {
104640
106011
  if (typeof object.tags !== "object")
104641
- throw TypeError(".WorkoutPlaylistUpdated.tags: object expected");
106012
+ throw TypeError(".WorkoutPlaylistUpdatedV2.tags: object expected");
104642
106013
  message.tags = {};
104643
106014
  for (var keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) {
104644
106015
  if (typeof object.tags[keys[i]] !== "object")
104645
- throw TypeError(".WorkoutPlaylistUpdated.tags: object expected");
106016
+ throw TypeError(".WorkoutPlaylistUpdatedV2.tags: object expected");
104646
106017
  message.tags[keys[i]] = $root.contentful.Tags.fromObject(object.tags[keys[i]]);
104647
106018
  }
104648
106019
  }
106020
+ if (object.contentType != null)
106021
+ message.contentType = String(object.contentType);
106022
+ if (object.contentTypeDisplayValue != null)
106023
+ message.contentTypeDisplayValue = String(object.contentTypeDisplayValue);
104649
106024
  return message;
104650
106025
  };
104651
106026
 
104652
106027
  /**
104653
- * Creates a plain object from a WorkoutPlaylistUpdated message. Also converts values to other types if specified.
106028
+ * Creates a plain object from a WorkoutPlaylistUpdatedV2 message. Also converts values to other types if specified.
104654
106029
  * @function toObject
104655
- * @memberof WorkoutPlaylistUpdated
106030
+ * @memberof WorkoutPlaylistUpdatedV2
104656
106031
  * @static
104657
- * @param {WorkoutPlaylistUpdated} message WorkoutPlaylistUpdated
106032
+ * @param {WorkoutPlaylistUpdatedV2} message WorkoutPlaylistUpdatedV2
104658
106033
  * @param {$protobuf.IConversionOptions} [options] Conversion options
104659
106034
  * @returns {Object.<string,*>} Plain object
104660
106035
  */
104661
- WorkoutPlaylistUpdated.toObject = function toObject(message, options) {
106036
+ WorkoutPlaylistUpdatedV2.toObject = function toObject(message, options) {
104662
106037
  if (!options)
104663
106038
  options = {};
104664
106039
  var object = {};
@@ -104678,6 +106053,8 @@ $root.WorkoutPlaylistUpdated = (function() {
104678
106053
  object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
104679
106054
  } else
104680
106055
  object.updatedAt = options.longs === String ? "0" : 0;
106056
+ object.contentType = "";
106057
+ object.contentTypeDisplayValue = "";
104681
106058
  }
104682
106059
  if (message.slug != null && message.hasOwnProperty("slug"))
104683
106060
  object.slug = message.slug;
@@ -104711,21 +106088,25 @@ $root.WorkoutPlaylistUpdated = (function() {
104711
106088
  for (var j = 0; j < keys2.length; ++j)
104712
106089
  object.tags[keys2[j]] = $root.contentful.Tags.toObject(message.tags[keys2[j]], options);
104713
106090
  }
106091
+ if (message.contentType != null && message.hasOwnProperty("contentType"))
106092
+ object.contentType = message.contentType;
106093
+ if (message.contentTypeDisplayValue != null && message.hasOwnProperty("contentTypeDisplayValue"))
106094
+ object.contentTypeDisplayValue = message.contentTypeDisplayValue;
104714
106095
  return object;
104715
106096
  };
104716
106097
 
104717
106098
  /**
104718
- * Converts this WorkoutPlaylistUpdated to JSON.
106099
+ * Converts this WorkoutPlaylistUpdatedV2 to JSON.
104719
106100
  * @function toJSON
104720
- * @memberof WorkoutPlaylistUpdated
106101
+ * @memberof WorkoutPlaylistUpdatedV2
104721
106102
  * @instance
104722
106103
  * @returns {Object.<string,*>} JSON object
104723
106104
  */
104724
- WorkoutPlaylistUpdated.prototype.toJSON = function toJSON() {
106105
+ WorkoutPlaylistUpdatedV2.prototype.toJSON = function toJSON() {
104725
106106
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
104726
106107
  };
104727
106108
 
104728
- return WorkoutPlaylistUpdated;
106109
+ return WorkoutPlaylistUpdatedV2;
104729
106110
  })();
104730
106111
 
104731
106112
  $root.WorkoutPlaylistDeleted = (function() {