@headspace/protos-events 1.111.0 → 1.112.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
@@ -7760,6 +7760,360 @@ export class ElfImportJobFailed implements IElfImportJobFailed {
7760
7760
  public toJSON(): { [k: string]: any };
7761
7761
  }
7762
7762
 
7763
+ /** Properties of a WakeupPlaylistCreated. */
7764
+ export interface IWakeupPlaylistCreated {
7765
+
7766
+ /** WakeupPlaylistCreated slug */
7767
+ slug?: (string|null);
7768
+
7769
+ /** WakeupPlaylistCreated entityType */
7770
+ entityType?: (string|null);
7771
+
7772
+ /** WakeupPlaylistCreated schedule */
7773
+ schedule?: (number|Long|null);
7774
+
7775
+ /** WakeupPlaylistCreated previewMedia */
7776
+ previewMedia?: (string|null);
7777
+
7778
+ /** WakeupPlaylistCreated previewMediaType */
7779
+ previewMediaType?: (string|null);
7780
+
7781
+ /** WakeupPlaylistCreated accessGroups */
7782
+ accessGroups?: (contentful.ISlugReference[]|null);
7783
+
7784
+ /** WakeupPlaylistCreated createdAt */
7785
+ createdAt?: (number|Long|null);
7786
+ }
7787
+
7788
+ /** Represents a WakeupPlaylistCreated. */
7789
+ export class WakeupPlaylistCreated implements IWakeupPlaylistCreated {
7790
+
7791
+ /**
7792
+ * Constructs a new WakeupPlaylistCreated.
7793
+ * @param [properties] Properties to set
7794
+ */
7795
+ constructor(properties?: IWakeupPlaylistCreated);
7796
+
7797
+ /** WakeupPlaylistCreated slug. */
7798
+ public slug: string;
7799
+
7800
+ /** WakeupPlaylistCreated entityType. */
7801
+ public entityType: string;
7802
+
7803
+ /** WakeupPlaylistCreated schedule. */
7804
+ public schedule: (number|Long);
7805
+
7806
+ /** WakeupPlaylistCreated previewMedia. */
7807
+ public previewMedia: string;
7808
+
7809
+ /** WakeupPlaylistCreated previewMediaType. */
7810
+ public previewMediaType: string;
7811
+
7812
+ /** WakeupPlaylistCreated accessGroups. */
7813
+ public accessGroups: contentful.ISlugReference[];
7814
+
7815
+ /** WakeupPlaylistCreated createdAt. */
7816
+ public createdAt: (number|Long);
7817
+
7818
+ /**
7819
+ * Creates a new WakeupPlaylistCreated instance using the specified properties.
7820
+ * @param [properties] Properties to set
7821
+ * @returns WakeupPlaylistCreated instance
7822
+ */
7823
+ public static create(properties?: IWakeupPlaylistCreated): WakeupPlaylistCreated;
7824
+
7825
+ /**
7826
+ * Encodes the specified WakeupPlaylistCreated message. Does not implicitly {@link WakeupPlaylistCreated.verify|verify} messages.
7827
+ * @param message WakeupPlaylistCreated message or plain object to encode
7828
+ * @param [writer] Writer to encode to
7829
+ * @returns Writer
7830
+ */
7831
+ public static encode(message: IWakeupPlaylistCreated, writer?: $protobuf.Writer): $protobuf.Writer;
7832
+
7833
+ /**
7834
+ * Encodes the specified WakeupPlaylistCreated message, length delimited. Does not implicitly {@link WakeupPlaylistCreated.verify|verify} messages.
7835
+ * @param message WakeupPlaylistCreated message or plain object to encode
7836
+ * @param [writer] Writer to encode to
7837
+ * @returns Writer
7838
+ */
7839
+ public static encodeDelimited(message: IWakeupPlaylistCreated, writer?: $protobuf.Writer): $protobuf.Writer;
7840
+
7841
+ /**
7842
+ * Decodes a WakeupPlaylistCreated message from the specified reader or buffer.
7843
+ * @param reader Reader or buffer to decode from
7844
+ * @param [length] Message length if known beforehand
7845
+ * @returns WakeupPlaylistCreated
7846
+ * @throws {Error} If the payload is not a reader or valid buffer
7847
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7848
+ */
7849
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): WakeupPlaylistCreated;
7850
+
7851
+ /**
7852
+ * Decodes a WakeupPlaylistCreated message from the specified reader or buffer, length delimited.
7853
+ * @param reader Reader or buffer to decode from
7854
+ * @returns WakeupPlaylistCreated
7855
+ * @throws {Error} If the payload is not a reader or valid buffer
7856
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7857
+ */
7858
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): WakeupPlaylistCreated;
7859
+
7860
+ /**
7861
+ * Verifies a WakeupPlaylistCreated message.
7862
+ * @param message Plain object to verify
7863
+ * @returns `null` if valid, otherwise the reason why it is not
7864
+ */
7865
+ public static verify(message: { [k: string]: any }): (string|null);
7866
+
7867
+ /**
7868
+ * Creates a WakeupPlaylistCreated message from a plain object. Also converts values to their respective internal types.
7869
+ * @param object Plain object
7870
+ * @returns WakeupPlaylistCreated
7871
+ */
7872
+ public static fromObject(object: { [k: string]: any }): WakeupPlaylistCreated;
7873
+
7874
+ /**
7875
+ * Creates a plain object from a WakeupPlaylistCreated message. Also converts values to other types if specified.
7876
+ * @param message WakeupPlaylistCreated
7877
+ * @param [options] Conversion options
7878
+ * @returns Plain object
7879
+ */
7880
+ public static toObject(message: WakeupPlaylistCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
7881
+
7882
+ /**
7883
+ * Converts this WakeupPlaylistCreated to JSON.
7884
+ * @returns JSON object
7885
+ */
7886
+ public toJSON(): { [k: string]: any };
7887
+ }
7888
+
7889
+ /** Properties of a WakeupPlaylistUpdated. */
7890
+ export interface IWakeupPlaylistUpdated {
7891
+
7892
+ /** WakeupPlaylistUpdated slug */
7893
+ slug?: (string|null);
7894
+
7895
+ /** WakeupPlaylistUpdated entityType */
7896
+ entityType?: (string|null);
7897
+
7898
+ /** WakeupPlaylistUpdated schedule */
7899
+ schedule?: (number|Long|null);
7900
+
7901
+ /** WakeupPlaylistUpdated previewMedia */
7902
+ previewMedia?: (string|null);
7903
+
7904
+ /** WakeupPlaylistUpdated previewMediaType */
7905
+ previewMediaType?: (string|null);
7906
+
7907
+ /** WakeupPlaylistUpdated accessGroups */
7908
+ accessGroups?: (contentful.ISlugReference[]|null);
7909
+
7910
+ /** WakeupPlaylistUpdated updatedAt */
7911
+ updatedAt?: (number|Long|null);
7912
+ }
7913
+
7914
+ /** Represents a WakeupPlaylistUpdated. */
7915
+ export class WakeupPlaylistUpdated implements IWakeupPlaylistUpdated {
7916
+
7917
+ /**
7918
+ * Constructs a new WakeupPlaylistUpdated.
7919
+ * @param [properties] Properties to set
7920
+ */
7921
+ constructor(properties?: IWakeupPlaylistUpdated);
7922
+
7923
+ /** WakeupPlaylistUpdated slug. */
7924
+ public slug: string;
7925
+
7926
+ /** WakeupPlaylistUpdated entityType. */
7927
+ public entityType: string;
7928
+
7929
+ /** WakeupPlaylistUpdated schedule. */
7930
+ public schedule: (number|Long);
7931
+
7932
+ /** WakeupPlaylistUpdated previewMedia. */
7933
+ public previewMedia: string;
7934
+
7935
+ /** WakeupPlaylistUpdated previewMediaType. */
7936
+ public previewMediaType: string;
7937
+
7938
+ /** WakeupPlaylistUpdated accessGroups. */
7939
+ public accessGroups: contentful.ISlugReference[];
7940
+
7941
+ /** WakeupPlaylistUpdated updatedAt. */
7942
+ public updatedAt: (number|Long);
7943
+
7944
+ /**
7945
+ * Creates a new WakeupPlaylistUpdated instance using the specified properties.
7946
+ * @param [properties] Properties to set
7947
+ * @returns WakeupPlaylistUpdated instance
7948
+ */
7949
+ public static create(properties?: IWakeupPlaylistUpdated): WakeupPlaylistUpdated;
7950
+
7951
+ /**
7952
+ * Encodes the specified WakeupPlaylistUpdated message. Does not implicitly {@link WakeupPlaylistUpdated.verify|verify} messages.
7953
+ * @param message WakeupPlaylistUpdated message or plain object to encode
7954
+ * @param [writer] Writer to encode to
7955
+ * @returns Writer
7956
+ */
7957
+ public static encode(message: IWakeupPlaylistUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
7958
+
7959
+ /**
7960
+ * Encodes the specified WakeupPlaylistUpdated message, length delimited. Does not implicitly {@link WakeupPlaylistUpdated.verify|verify} messages.
7961
+ * @param message WakeupPlaylistUpdated message or plain object to encode
7962
+ * @param [writer] Writer to encode to
7963
+ * @returns Writer
7964
+ */
7965
+ public static encodeDelimited(message: IWakeupPlaylistUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
7966
+
7967
+ /**
7968
+ * Decodes a WakeupPlaylistUpdated message from the specified reader or buffer.
7969
+ * @param reader Reader or buffer to decode from
7970
+ * @param [length] Message length if known beforehand
7971
+ * @returns WakeupPlaylistUpdated
7972
+ * @throws {Error} If the payload is not a reader or valid buffer
7973
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7974
+ */
7975
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): WakeupPlaylistUpdated;
7976
+
7977
+ /**
7978
+ * Decodes a WakeupPlaylistUpdated message from the specified reader or buffer, length delimited.
7979
+ * @param reader Reader or buffer to decode from
7980
+ * @returns WakeupPlaylistUpdated
7981
+ * @throws {Error} If the payload is not a reader or valid buffer
7982
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7983
+ */
7984
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): WakeupPlaylistUpdated;
7985
+
7986
+ /**
7987
+ * Verifies a WakeupPlaylistUpdated message.
7988
+ * @param message Plain object to verify
7989
+ * @returns `null` if valid, otherwise the reason why it is not
7990
+ */
7991
+ public static verify(message: { [k: string]: any }): (string|null);
7992
+
7993
+ /**
7994
+ * Creates a WakeupPlaylistUpdated message from a plain object. Also converts values to their respective internal types.
7995
+ * @param object Plain object
7996
+ * @returns WakeupPlaylistUpdated
7997
+ */
7998
+ public static fromObject(object: { [k: string]: any }): WakeupPlaylistUpdated;
7999
+
8000
+ /**
8001
+ * Creates a plain object from a WakeupPlaylistUpdated message. Also converts values to other types if specified.
8002
+ * @param message WakeupPlaylistUpdated
8003
+ * @param [options] Conversion options
8004
+ * @returns Plain object
8005
+ */
8006
+ public static toObject(message: WakeupPlaylistUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
8007
+
8008
+ /**
8009
+ * Converts this WakeupPlaylistUpdated to JSON.
8010
+ * @returns JSON object
8011
+ */
8012
+ public toJSON(): { [k: string]: any };
8013
+ }
8014
+
8015
+ /** Properties of a WakeupPlaylistDeleted. */
8016
+ export interface IWakeupPlaylistDeleted {
8017
+
8018
+ /** WakeupPlaylistDeleted slug */
8019
+ slug?: (string|null);
8020
+
8021
+ /** WakeupPlaylistDeleted entityType */
8022
+ entityType?: (string|null);
8023
+
8024
+ /** WakeupPlaylistDeleted deletedAt */
8025
+ deletedAt?: (number|Long|null);
8026
+ }
8027
+
8028
+ /** Represents a WakeupPlaylistDeleted. */
8029
+ export class WakeupPlaylistDeleted implements IWakeupPlaylistDeleted {
8030
+
8031
+ /**
8032
+ * Constructs a new WakeupPlaylistDeleted.
8033
+ * @param [properties] Properties to set
8034
+ */
8035
+ constructor(properties?: IWakeupPlaylistDeleted);
8036
+
8037
+ /** WakeupPlaylistDeleted slug. */
8038
+ public slug: string;
8039
+
8040
+ /** WakeupPlaylistDeleted entityType. */
8041
+ public entityType: string;
8042
+
8043
+ /** WakeupPlaylistDeleted deletedAt. */
8044
+ public deletedAt: (number|Long);
8045
+
8046
+ /**
8047
+ * Creates a new WakeupPlaylistDeleted instance using the specified properties.
8048
+ * @param [properties] Properties to set
8049
+ * @returns WakeupPlaylistDeleted instance
8050
+ */
8051
+ public static create(properties?: IWakeupPlaylistDeleted): WakeupPlaylistDeleted;
8052
+
8053
+ /**
8054
+ * Encodes the specified WakeupPlaylistDeleted message. Does not implicitly {@link WakeupPlaylistDeleted.verify|verify} messages.
8055
+ * @param message WakeupPlaylistDeleted message or plain object to encode
8056
+ * @param [writer] Writer to encode to
8057
+ * @returns Writer
8058
+ */
8059
+ public static encode(message: IWakeupPlaylistDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
8060
+
8061
+ /**
8062
+ * Encodes the specified WakeupPlaylistDeleted message, length delimited. Does not implicitly {@link WakeupPlaylistDeleted.verify|verify} messages.
8063
+ * @param message WakeupPlaylistDeleted message or plain object to encode
8064
+ * @param [writer] Writer to encode to
8065
+ * @returns Writer
8066
+ */
8067
+ public static encodeDelimited(message: IWakeupPlaylistDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
8068
+
8069
+ /**
8070
+ * Decodes a WakeupPlaylistDeleted message from the specified reader or buffer.
8071
+ * @param reader Reader or buffer to decode from
8072
+ * @param [length] Message length if known beforehand
8073
+ * @returns WakeupPlaylistDeleted
8074
+ * @throws {Error} If the payload is not a reader or valid buffer
8075
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8076
+ */
8077
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): WakeupPlaylistDeleted;
8078
+
8079
+ /**
8080
+ * Decodes a WakeupPlaylistDeleted message from the specified reader or buffer, length delimited.
8081
+ * @param reader Reader or buffer to decode from
8082
+ * @returns WakeupPlaylistDeleted
8083
+ * @throws {Error} If the payload is not a reader or valid buffer
8084
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8085
+ */
8086
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): WakeupPlaylistDeleted;
8087
+
8088
+ /**
8089
+ * Verifies a WakeupPlaylistDeleted message.
8090
+ * @param message Plain object to verify
8091
+ * @returns `null` if valid, otherwise the reason why it is not
8092
+ */
8093
+ public static verify(message: { [k: string]: any }): (string|null);
8094
+
8095
+ /**
8096
+ * Creates a WakeupPlaylistDeleted message from a plain object. Also converts values to their respective internal types.
8097
+ * @param object Plain object
8098
+ * @returns WakeupPlaylistDeleted
8099
+ */
8100
+ public static fromObject(object: { [k: string]: any }): WakeupPlaylistDeleted;
8101
+
8102
+ /**
8103
+ * Creates a plain object from a WakeupPlaylistDeleted message. Also converts values to other types if specified.
8104
+ * @param message WakeupPlaylistDeleted
8105
+ * @param [options] Conversion options
8106
+ * @returns Plain object
8107
+ */
8108
+ public static toObject(message: WakeupPlaylistDeleted, options?: $protobuf.IConversionOptions): { [k: string]: any };
8109
+
8110
+ /**
8111
+ * Converts this WakeupPlaylistDeleted to JSON.
8112
+ * @returns JSON object
8113
+ */
8114
+ public toJSON(): { [k: string]: any };
8115
+ }
8116
+
7763
8117
  /** Properties of an ExperimentContentMapCreated. */
7764
8118
  export interface IExperimentContentMapCreated {
7765
8119
 
package/lib/index.js CHANGED
@@ -20059,6 +20059,992 @@ $root.ElfImportJobFailed = (function() {
20059
20059
  return ElfImportJobFailed;
20060
20060
  })();
20061
20061
 
20062
+ $root.WakeupPlaylistCreated = (function() {
20063
+
20064
+ /**
20065
+ * Properties of a WakeupPlaylistCreated.
20066
+ * @exports IWakeupPlaylistCreated
20067
+ * @interface IWakeupPlaylistCreated
20068
+ * @property {string|null} [slug] WakeupPlaylistCreated slug
20069
+ * @property {string|null} [entityType] WakeupPlaylistCreated entityType
20070
+ * @property {number|Long|null} [schedule] WakeupPlaylistCreated schedule
20071
+ * @property {string|null} [previewMedia] WakeupPlaylistCreated previewMedia
20072
+ * @property {string|null} [previewMediaType] WakeupPlaylistCreated previewMediaType
20073
+ * @property {Array.<contentful.ISlugReference>|null} [accessGroups] WakeupPlaylistCreated accessGroups
20074
+ * @property {number|Long|null} [createdAt] WakeupPlaylistCreated createdAt
20075
+ */
20076
+
20077
+ /**
20078
+ * Constructs a new WakeupPlaylistCreated.
20079
+ * @exports WakeupPlaylistCreated
20080
+ * @classdesc Represents a WakeupPlaylistCreated.
20081
+ * @implements IWakeupPlaylistCreated
20082
+ * @constructor
20083
+ * @param {IWakeupPlaylistCreated=} [properties] Properties to set
20084
+ */
20085
+ function WakeupPlaylistCreated(properties) {
20086
+ this.accessGroups = [];
20087
+ if (properties)
20088
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
20089
+ if (properties[keys[i]] != null)
20090
+ this[keys[i]] = properties[keys[i]];
20091
+ }
20092
+
20093
+ /**
20094
+ * WakeupPlaylistCreated slug.
20095
+ * @member {string} slug
20096
+ * @memberof WakeupPlaylistCreated
20097
+ * @instance
20098
+ */
20099
+ WakeupPlaylistCreated.prototype.slug = "";
20100
+
20101
+ /**
20102
+ * WakeupPlaylistCreated entityType.
20103
+ * @member {string} entityType
20104
+ * @memberof WakeupPlaylistCreated
20105
+ * @instance
20106
+ */
20107
+ WakeupPlaylistCreated.prototype.entityType = "";
20108
+
20109
+ /**
20110
+ * WakeupPlaylistCreated schedule.
20111
+ * @member {number|Long} schedule
20112
+ * @memberof WakeupPlaylistCreated
20113
+ * @instance
20114
+ */
20115
+ WakeupPlaylistCreated.prototype.schedule = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
20116
+
20117
+ /**
20118
+ * WakeupPlaylistCreated previewMedia.
20119
+ * @member {string} previewMedia
20120
+ * @memberof WakeupPlaylistCreated
20121
+ * @instance
20122
+ */
20123
+ WakeupPlaylistCreated.prototype.previewMedia = "";
20124
+
20125
+ /**
20126
+ * WakeupPlaylistCreated previewMediaType.
20127
+ * @member {string} previewMediaType
20128
+ * @memberof WakeupPlaylistCreated
20129
+ * @instance
20130
+ */
20131
+ WakeupPlaylistCreated.prototype.previewMediaType = "";
20132
+
20133
+ /**
20134
+ * WakeupPlaylistCreated accessGroups.
20135
+ * @member {Array.<contentful.ISlugReference>} accessGroups
20136
+ * @memberof WakeupPlaylistCreated
20137
+ * @instance
20138
+ */
20139
+ WakeupPlaylistCreated.prototype.accessGroups = $util.emptyArray;
20140
+
20141
+ /**
20142
+ * WakeupPlaylistCreated createdAt.
20143
+ * @member {number|Long} createdAt
20144
+ * @memberof WakeupPlaylistCreated
20145
+ * @instance
20146
+ */
20147
+ WakeupPlaylistCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
20148
+
20149
+ /**
20150
+ * Creates a new WakeupPlaylistCreated instance using the specified properties.
20151
+ * @function create
20152
+ * @memberof WakeupPlaylistCreated
20153
+ * @static
20154
+ * @param {IWakeupPlaylistCreated=} [properties] Properties to set
20155
+ * @returns {WakeupPlaylistCreated} WakeupPlaylistCreated instance
20156
+ */
20157
+ WakeupPlaylistCreated.create = function create(properties) {
20158
+ return new WakeupPlaylistCreated(properties);
20159
+ };
20160
+
20161
+ /**
20162
+ * Encodes the specified WakeupPlaylistCreated message. Does not implicitly {@link WakeupPlaylistCreated.verify|verify} messages.
20163
+ * @function encode
20164
+ * @memberof WakeupPlaylistCreated
20165
+ * @static
20166
+ * @param {IWakeupPlaylistCreated} message WakeupPlaylistCreated message or plain object to encode
20167
+ * @param {$protobuf.Writer} [writer] Writer to encode to
20168
+ * @returns {$protobuf.Writer} Writer
20169
+ */
20170
+ WakeupPlaylistCreated.encode = function encode(message, writer) {
20171
+ if (!writer)
20172
+ writer = $Writer.create();
20173
+ if (message.slug != null && message.hasOwnProperty("slug"))
20174
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
20175
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
20176
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityType);
20177
+ if (message.schedule != null && message.hasOwnProperty("schedule"))
20178
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.schedule);
20179
+ if (message.previewMedia != null && message.hasOwnProperty("previewMedia"))
20180
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.previewMedia);
20181
+ if (message.previewMediaType != null && message.hasOwnProperty("previewMediaType"))
20182
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.previewMediaType);
20183
+ if (message.accessGroups != null && message.accessGroups.length)
20184
+ for (var i = 0; i < message.accessGroups.length; ++i)
20185
+ $root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
20186
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
20187
+ writer.uint32(/* id 7, wireType 0 =*/56).uint64(message.createdAt);
20188
+ return writer;
20189
+ };
20190
+
20191
+ /**
20192
+ * Encodes the specified WakeupPlaylistCreated message, length delimited. Does not implicitly {@link WakeupPlaylistCreated.verify|verify} messages.
20193
+ * @function encodeDelimited
20194
+ * @memberof WakeupPlaylistCreated
20195
+ * @static
20196
+ * @param {IWakeupPlaylistCreated} message WakeupPlaylistCreated message or plain object to encode
20197
+ * @param {$protobuf.Writer} [writer] Writer to encode to
20198
+ * @returns {$protobuf.Writer} Writer
20199
+ */
20200
+ WakeupPlaylistCreated.encodeDelimited = function encodeDelimited(message, writer) {
20201
+ return this.encode(message, writer).ldelim();
20202
+ };
20203
+
20204
+ /**
20205
+ * Decodes a WakeupPlaylistCreated message from the specified reader or buffer.
20206
+ * @function decode
20207
+ * @memberof WakeupPlaylistCreated
20208
+ * @static
20209
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
20210
+ * @param {number} [length] Message length if known beforehand
20211
+ * @returns {WakeupPlaylistCreated} WakeupPlaylistCreated
20212
+ * @throws {Error} If the payload is not a reader or valid buffer
20213
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
20214
+ */
20215
+ WakeupPlaylistCreated.decode = function decode(reader, length) {
20216
+ if (!(reader instanceof $Reader))
20217
+ reader = $Reader.create(reader);
20218
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.WakeupPlaylistCreated();
20219
+ while (reader.pos < end) {
20220
+ var tag = reader.uint32();
20221
+ switch (tag >>> 3) {
20222
+ case 1:
20223
+ message.slug = reader.string();
20224
+ break;
20225
+ case 2:
20226
+ message.entityType = reader.string();
20227
+ break;
20228
+ case 3:
20229
+ message.schedule = reader.uint64();
20230
+ break;
20231
+ case 4:
20232
+ message.previewMedia = reader.string();
20233
+ break;
20234
+ case 5:
20235
+ message.previewMediaType = reader.string();
20236
+ break;
20237
+ case 6:
20238
+ if (!(message.accessGroups && message.accessGroups.length))
20239
+ message.accessGroups = [];
20240
+ message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
20241
+ break;
20242
+ case 7:
20243
+ message.createdAt = reader.uint64();
20244
+ break;
20245
+ default:
20246
+ reader.skipType(tag & 7);
20247
+ break;
20248
+ }
20249
+ }
20250
+ return message;
20251
+ };
20252
+
20253
+ /**
20254
+ * Decodes a WakeupPlaylistCreated message from the specified reader or buffer, length delimited.
20255
+ * @function decodeDelimited
20256
+ * @memberof WakeupPlaylistCreated
20257
+ * @static
20258
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
20259
+ * @returns {WakeupPlaylistCreated} WakeupPlaylistCreated
20260
+ * @throws {Error} If the payload is not a reader or valid buffer
20261
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
20262
+ */
20263
+ WakeupPlaylistCreated.decodeDelimited = function decodeDelimited(reader) {
20264
+ if (!(reader instanceof $Reader))
20265
+ reader = new $Reader(reader);
20266
+ return this.decode(reader, reader.uint32());
20267
+ };
20268
+
20269
+ /**
20270
+ * Verifies a WakeupPlaylistCreated message.
20271
+ * @function verify
20272
+ * @memberof WakeupPlaylistCreated
20273
+ * @static
20274
+ * @param {Object.<string,*>} message Plain object to verify
20275
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
20276
+ */
20277
+ WakeupPlaylistCreated.verify = function verify(message) {
20278
+ if (typeof message !== "object" || message === null)
20279
+ return "object expected";
20280
+ if (message.slug != null && message.hasOwnProperty("slug"))
20281
+ if (!$util.isString(message.slug))
20282
+ return "slug: string expected";
20283
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
20284
+ if (!$util.isString(message.entityType))
20285
+ return "entityType: string expected";
20286
+ if (message.schedule != null && message.hasOwnProperty("schedule"))
20287
+ if (!$util.isInteger(message.schedule) && !(message.schedule && $util.isInteger(message.schedule.low) && $util.isInteger(message.schedule.high)))
20288
+ return "schedule: integer|Long expected";
20289
+ if (message.previewMedia != null && message.hasOwnProperty("previewMedia"))
20290
+ if (!$util.isString(message.previewMedia))
20291
+ return "previewMedia: string expected";
20292
+ if (message.previewMediaType != null && message.hasOwnProperty("previewMediaType"))
20293
+ if (!$util.isString(message.previewMediaType))
20294
+ return "previewMediaType: string expected";
20295
+ if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
20296
+ if (!Array.isArray(message.accessGroups))
20297
+ return "accessGroups: array expected";
20298
+ for (var i = 0; i < message.accessGroups.length; ++i) {
20299
+ var error = $root.contentful.SlugReference.verify(message.accessGroups[i]);
20300
+ if (error)
20301
+ return "accessGroups." + error;
20302
+ }
20303
+ }
20304
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
20305
+ if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
20306
+ return "createdAt: integer|Long expected";
20307
+ return null;
20308
+ };
20309
+
20310
+ /**
20311
+ * Creates a WakeupPlaylistCreated message from a plain object. Also converts values to their respective internal types.
20312
+ * @function fromObject
20313
+ * @memberof WakeupPlaylistCreated
20314
+ * @static
20315
+ * @param {Object.<string,*>} object Plain object
20316
+ * @returns {WakeupPlaylistCreated} WakeupPlaylistCreated
20317
+ */
20318
+ WakeupPlaylistCreated.fromObject = function fromObject(object) {
20319
+ if (object instanceof $root.WakeupPlaylistCreated)
20320
+ return object;
20321
+ var message = new $root.WakeupPlaylistCreated();
20322
+ if (object.slug != null)
20323
+ message.slug = String(object.slug);
20324
+ if (object.entityType != null)
20325
+ message.entityType = String(object.entityType);
20326
+ if (object.schedule != null)
20327
+ if ($util.Long)
20328
+ (message.schedule = $util.Long.fromValue(object.schedule)).unsigned = true;
20329
+ else if (typeof object.schedule === "string")
20330
+ message.schedule = parseInt(object.schedule, 10);
20331
+ else if (typeof object.schedule === "number")
20332
+ message.schedule = object.schedule;
20333
+ else if (typeof object.schedule === "object")
20334
+ message.schedule = new $util.LongBits(object.schedule.low >>> 0, object.schedule.high >>> 0).toNumber(true);
20335
+ if (object.previewMedia != null)
20336
+ message.previewMedia = String(object.previewMedia);
20337
+ if (object.previewMediaType != null)
20338
+ message.previewMediaType = String(object.previewMediaType);
20339
+ if (object.accessGroups) {
20340
+ if (!Array.isArray(object.accessGroups))
20341
+ throw TypeError(".WakeupPlaylistCreated.accessGroups: array expected");
20342
+ message.accessGroups = [];
20343
+ for (var i = 0; i < object.accessGroups.length; ++i) {
20344
+ if (typeof object.accessGroups[i] !== "object")
20345
+ throw TypeError(".WakeupPlaylistCreated.accessGroups: object expected");
20346
+ message.accessGroups[i] = $root.contentful.SlugReference.fromObject(object.accessGroups[i]);
20347
+ }
20348
+ }
20349
+ if (object.createdAt != null)
20350
+ if ($util.Long)
20351
+ (message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
20352
+ else if (typeof object.createdAt === "string")
20353
+ message.createdAt = parseInt(object.createdAt, 10);
20354
+ else if (typeof object.createdAt === "number")
20355
+ message.createdAt = object.createdAt;
20356
+ else if (typeof object.createdAt === "object")
20357
+ message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
20358
+ return message;
20359
+ };
20360
+
20361
+ /**
20362
+ * Creates a plain object from a WakeupPlaylistCreated message. Also converts values to other types if specified.
20363
+ * @function toObject
20364
+ * @memberof WakeupPlaylistCreated
20365
+ * @static
20366
+ * @param {WakeupPlaylistCreated} message WakeupPlaylistCreated
20367
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
20368
+ * @returns {Object.<string,*>} Plain object
20369
+ */
20370
+ WakeupPlaylistCreated.toObject = function toObject(message, options) {
20371
+ if (!options)
20372
+ options = {};
20373
+ var object = {};
20374
+ if (options.arrays || options.defaults)
20375
+ object.accessGroups = [];
20376
+ if (options.defaults) {
20377
+ object.slug = "";
20378
+ object.entityType = "";
20379
+ if ($util.Long) {
20380
+ var long = new $util.Long(0, 0, true);
20381
+ object.schedule = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
20382
+ } else
20383
+ object.schedule = options.longs === String ? "0" : 0;
20384
+ object.previewMedia = "";
20385
+ object.previewMediaType = "";
20386
+ if ($util.Long) {
20387
+ var long = new $util.Long(0, 0, true);
20388
+ object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
20389
+ } else
20390
+ object.createdAt = options.longs === String ? "0" : 0;
20391
+ }
20392
+ if (message.slug != null && message.hasOwnProperty("slug"))
20393
+ object.slug = message.slug;
20394
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
20395
+ object.entityType = message.entityType;
20396
+ if (message.schedule != null && message.hasOwnProperty("schedule"))
20397
+ if (typeof message.schedule === "number")
20398
+ object.schedule = options.longs === String ? String(message.schedule) : message.schedule;
20399
+ else
20400
+ object.schedule = options.longs === String ? $util.Long.prototype.toString.call(message.schedule) : options.longs === Number ? new $util.LongBits(message.schedule.low >>> 0, message.schedule.high >>> 0).toNumber(true) : message.schedule;
20401
+ if (message.previewMedia != null && message.hasOwnProperty("previewMedia"))
20402
+ object.previewMedia = message.previewMedia;
20403
+ if (message.previewMediaType != null && message.hasOwnProperty("previewMediaType"))
20404
+ object.previewMediaType = message.previewMediaType;
20405
+ if (message.accessGroups && message.accessGroups.length) {
20406
+ object.accessGroups = [];
20407
+ for (var j = 0; j < message.accessGroups.length; ++j)
20408
+ object.accessGroups[j] = $root.contentful.SlugReference.toObject(message.accessGroups[j], options);
20409
+ }
20410
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
20411
+ if (typeof message.createdAt === "number")
20412
+ object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
20413
+ else
20414
+ 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;
20415
+ return object;
20416
+ };
20417
+
20418
+ /**
20419
+ * Converts this WakeupPlaylistCreated to JSON.
20420
+ * @function toJSON
20421
+ * @memberof WakeupPlaylistCreated
20422
+ * @instance
20423
+ * @returns {Object.<string,*>} JSON object
20424
+ */
20425
+ WakeupPlaylistCreated.prototype.toJSON = function toJSON() {
20426
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
20427
+ };
20428
+
20429
+ return WakeupPlaylistCreated;
20430
+ })();
20431
+
20432
+ $root.WakeupPlaylistUpdated = (function() {
20433
+
20434
+ /**
20435
+ * Properties of a WakeupPlaylistUpdated.
20436
+ * @exports IWakeupPlaylistUpdated
20437
+ * @interface IWakeupPlaylistUpdated
20438
+ * @property {string|null} [slug] WakeupPlaylistUpdated slug
20439
+ * @property {string|null} [entityType] WakeupPlaylistUpdated entityType
20440
+ * @property {number|Long|null} [schedule] WakeupPlaylistUpdated schedule
20441
+ * @property {string|null} [previewMedia] WakeupPlaylistUpdated previewMedia
20442
+ * @property {string|null} [previewMediaType] WakeupPlaylistUpdated previewMediaType
20443
+ * @property {Array.<contentful.ISlugReference>|null} [accessGroups] WakeupPlaylistUpdated accessGroups
20444
+ * @property {number|Long|null} [updatedAt] WakeupPlaylistUpdated updatedAt
20445
+ */
20446
+
20447
+ /**
20448
+ * Constructs a new WakeupPlaylistUpdated.
20449
+ * @exports WakeupPlaylistUpdated
20450
+ * @classdesc Represents a WakeupPlaylistUpdated.
20451
+ * @implements IWakeupPlaylistUpdated
20452
+ * @constructor
20453
+ * @param {IWakeupPlaylistUpdated=} [properties] Properties to set
20454
+ */
20455
+ function WakeupPlaylistUpdated(properties) {
20456
+ this.accessGroups = [];
20457
+ if (properties)
20458
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
20459
+ if (properties[keys[i]] != null)
20460
+ this[keys[i]] = properties[keys[i]];
20461
+ }
20462
+
20463
+ /**
20464
+ * WakeupPlaylistUpdated slug.
20465
+ * @member {string} slug
20466
+ * @memberof WakeupPlaylistUpdated
20467
+ * @instance
20468
+ */
20469
+ WakeupPlaylistUpdated.prototype.slug = "";
20470
+
20471
+ /**
20472
+ * WakeupPlaylistUpdated entityType.
20473
+ * @member {string} entityType
20474
+ * @memberof WakeupPlaylistUpdated
20475
+ * @instance
20476
+ */
20477
+ WakeupPlaylistUpdated.prototype.entityType = "";
20478
+
20479
+ /**
20480
+ * WakeupPlaylistUpdated schedule.
20481
+ * @member {number|Long} schedule
20482
+ * @memberof WakeupPlaylistUpdated
20483
+ * @instance
20484
+ */
20485
+ WakeupPlaylistUpdated.prototype.schedule = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
20486
+
20487
+ /**
20488
+ * WakeupPlaylistUpdated previewMedia.
20489
+ * @member {string} previewMedia
20490
+ * @memberof WakeupPlaylistUpdated
20491
+ * @instance
20492
+ */
20493
+ WakeupPlaylistUpdated.prototype.previewMedia = "";
20494
+
20495
+ /**
20496
+ * WakeupPlaylistUpdated previewMediaType.
20497
+ * @member {string} previewMediaType
20498
+ * @memberof WakeupPlaylistUpdated
20499
+ * @instance
20500
+ */
20501
+ WakeupPlaylistUpdated.prototype.previewMediaType = "";
20502
+
20503
+ /**
20504
+ * WakeupPlaylistUpdated accessGroups.
20505
+ * @member {Array.<contentful.ISlugReference>} accessGroups
20506
+ * @memberof WakeupPlaylistUpdated
20507
+ * @instance
20508
+ */
20509
+ WakeupPlaylistUpdated.prototype.accessGroups = $util.emptyArray;
20510
+
20511
+ /**
20512
+ * WakeupPlaylistUpdated updatedAt.
20513
+ * @member {number|Long} updatedAt
20514
+ * @memberof WakeupPlaylistUpdated
20515
+ * @instance
20516
+ */
20517
+ WakeupPlaylistUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
20518
+
20519
+ /**
20520
+ * Creates a new WakeupPlaylistUpdated instance using the specified properties.
20521
+ * @function create
20522
+ * @memberof WakeupPlaylistUpdated
20523
+ * @static
20524
+ * @param {IWakeupPlaylistUpdated=} [properties] Properties to set
20525
+ * @returns {WakeupPlaylistUpdated} WakeupPlaylistUpdated instance
20526
+ */
20527
+ WakeupPlaylistUpdated.create = function create(properties) {
20528
+ return new WakeupPlaylistUpdated(properties);
20529
+ };
20530
+
20531
+ /**
20532
+ * Encodes the specified WakeupPlaylistUpdated message. Does not implicitly {@link WakeupPlaylistUpdated.verify|verify} messages.
20533
+ * @function encode
20534
+ * @memberof WakeupPlaylistUpdated
20535
+ * @static
20536
+ * @param {IWakeupPlaylistUpdated} message WakeupPlaylistUpdated message or plain object to encode
20537
+ * @param {$protobuf.Writer} [writer] Writer to encode to
20538
+ * @returns {$protobuf.Writer} Writer
20539
+ */
20540
+ WakeupPlaylistUpdated.encode = function encode(message, writer) {
20541
+ if (!writer)
20542
+ writer = $Writer.create();
20543
+ if (message.slug != null && message.hasOwnProperty("slug"))
20544
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
20545
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
20546
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityType);
20547
+ if (message.schedule != null && message.hasOwnProperty("schedule"))
20548
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.schedule);
20549
+ if (message.previewMedia != null && message.hasOwnProperty("previewMedia"))
20550
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.previewMedia);
20551
+ if (message.previewMediaType != null && message.hasOwnProperty("previewMediaType"))
20552
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.previewMediaType);
20553
+ if (message.accessGroups != null && message.accessGroups.length)
20554
+ for (var i = 0; i < message.accessGroups.length; ++i)
20555
+ $root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
20556
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
20557
+ writer.uint32(/* id 7, wireType 0 =*/56).uint64(message.updatedAt);
20558
+ return writer;
20559
+ };
20560
+
20561
+ /**
20562
+ * Encodes the specified WakeupPlaylistUpdated message, length delimited. Does not implicitly {@link WakeupPlaylistUpdated.verify|verify} messages.
20563
+ * @function encodeDelimited
20564
+ * @memberof WakeupPlaylistUpdated
20565
+ * @static
20566
+ * @param {IWakeupPlaylistUpdated} message WakeupPlaylistUpdated message or plain object to encode
20567
+ * @param {$protobuf.Writer} [writer] Writer to encode to
20568
+ * @returns {$protobuf.Writer} Writer
20569
+ */
20570
+ WakeupPlaylistUpdated.encodeDelimited = function encodeDelimited(message, writer) {
20571
+ return this.encode(message, writer).ldelim();
20572
+ };
20573
+
20574
+ /**
20575
+ * Decodes a WakeupPlaylistUpdated message from the specified reader or buffer.
20576
+ * @function decode
20577
+ * @memberof WakeupPlaylistUpdated
20578
+ * @static
20579
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
20580
+ * @param {number} [length] Message length if known beforehand
20581
+ * @returns {WakeupPlaylistUpdated} WakeupPlaylistUpdated
20582
+ * @throws {Error} If the payload is not a reader or valid buffer
20583
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
20584
+ */
20585
+ WakeupPlaylistUpdated.decode = function decode(reader, length) {
20586
+ if (!(reader instanceof $Reader))
20587
+ reader = $Reader.create(reader);
20588
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.WakeupPlaylistUpdated();
20589
+ while (reader.pos < end) {
20590
+ var tag = reader.uint32();
20591
+ switch (tag >>> 3) {
20592
+ case 1:
20593
+ message.slug = reader.string();
20594
+ break;
20595
+ case 2:
20596
+ message.entityType = reader.string();
20597
+ break;
20598
+ case 3:
20599
+ message.schedule = reader.uint64();
20600
+ break;
20601
+ case 4:
20602
+ message.previewMedia = reader.string();
20603
+ break;
20604
+ case 5:
20605
+ message.previewMediaType = reader.string();
20606
+ break;
20607
+ case 6:
20608
+ if (!(message.accessGroups && message.accessGroups.length))
20609
+ message.accessGroups = [];
20610
+ message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
20611
+ break;
20612
+ case 7:
20613
+ message.updatedAt = reader.uint64();
20614
+ break;
20615
+ default:
20616
+ reader.skipType(tag & 7);
20617
+ break;
20618
+ }
20619
+ }
20620
+ return message;
20621
+ };
20622
+
20623
+ /**
20624
+ * Decodes a WakeupPlaylistUpdated message from the specified reader or buffer, length delimited.
20625
+ * @function decodeDelimited
20626
+ * @memberof WakeupPlaylistUpdated
20627
+ * @static
20628
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
20629
+ * @returns {WakeupPlaylistUpdated} WakeupPlaylistUpdated
20630
+ * @throws {Error} If the payload is not a reader or valid buffer
20631
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
20632
+ */
20633
+ WakeupPlaylistUpdated.decodeDelimited = function decodeDelimited(reader) {
20634
+ if (!(reader instanceof $Reader))
20635
+ reader = new $Reader(reader);
20636
+ return this.decode(reader, reader.uint32());
20637
+ };
20638
+
20639
+ /**
20640
+ * Verifies a WakeupPlaylistUpdated message.
20641
+ * @function verify
20642
+ * @memberof WakeupPlaylistUpdated
20643
+ * @static
20644
+ * @param {Object.<string,*>} message Plain object to verify
20645
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
20646
+ */
20647
+ WakeupPlaylistUpdated.verify = function verify(message) {
20648
+ if (typeof message !== "object" || message === null)
20649
+ return "object expected";
20650
+ if (message.slug != null && message.hasOwnProperty("slug"))
20651
+ if (!$util.isString(message.slug))
20652
+ return "slug: string expected";
20653
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
20654
+ if (!$util.isString(message.entityType))
20655
+ return "entityType: string expected";
20656
+ if (message.schedule != null && message.hasOwnProperty("schedule"))
20657
+ if (!$util.isInteger(message.schedule) && !(message.schedule && $util.isInteger(message.schedule.low) && $util.isInteger(message.schedule.high)))
20658
+ return "schedule: integer|Long expected";
20659
+ if (message.previewMedia != null && message.hasOwnProperty("previewMedia"))
20660
+ if (!$util.isString(message.previewMedia))
20661
+ return "previewMedia: string expected";
20662
+ if (message.previewMediaType != null && message.hasOwnProperty("previewMediaType"))
20663
+ if (!$util.isString(message.previewMediaType))
20664
+ return "previewMediaType: string expected";
20665
+ if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
20666
+ if (!Array.isArray(message.accessGroups))
20667
+ return "accessGroups: array expected";
20668
+ for (var i = 0; i < message.accessGroups.length; ++i) {
20669
+ var error = $root.contentful.SlugReference.verify(message.accessGroups[i]);
20670
+ if (error)
20671
+ return "accessGroups." + error;
20672
+ }
20673
+ }
20674
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
20675
+ if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
20676
+ return "updatedAt: integer|Long expected";
20677
+ return null;
20678
+ };
20679
+
20680
+ /**
20681
+ * Creates a WakeupPlaylistUpdated message from a plain object. Also converts values to their respective internal types.
20682
+ * @function fromObject
20683
+ * @memberof WakeupPlaylistUpdated
20684
+ * @static
20685
+ * @param {Object.<string,*>} object Plain object
20686
+ * @returns {WakeupPlaylistUpdated} WakeupPlaylistUpdated
20687
+ */
20688
+ WakeupPlaylistUpdated.fromObject = function fromObject(object) {
20689
+ if (object instanceof $root.WakeupPlaylistUpdated)
20690
+ return object;
20691
+ var message = new $root.WakeupPlaylistUpdated();
20692
+ if (object.slug != null)
20693
+ message.slug = String(object.slug);
20694
+ if (object.entityType != null)
20695
+ message.entityType = String(object.entityType);
20696
+ if (object.schedule != null)
20697
+ if ($util.Long)
20698
+ (message.schedule = $util.Long.fromValue(object.schedule)).unsigned = true;
20699
+ else if (typeof object.schedule === "string")
20700
+ message.schedule = parseInt(object.schedule, 10);
20701
+ else if (typeof object.schedule === "number")
20702
+ message.schedule = object.schedule;
20703
+ else if (typeof object.schedule === "object")
20704
+ message.schedule = new $util.LongBits(object.schedule.low >>> 0, object.schedule.high >>> 0).toNumber(true);
20705
+ if (object.previewMedia != null)
20706
+ message.previewMedia = String(object.previewMedia);
20707
+ if (object.previewMediaType != null)
20708
+ message.previewMediaType = String(object.previewMediaType);
20709
+ if (object.accessGroups) {
20710
+ if (!Array.isArray(object.accessGroups))
20711
+ throw TypeError(".WakeupPlaylistUpdated.accessGroups: array expected");
20712
+ message.accessGroups = [];
20713
+ for (var i = 0; i < object.accessGroups.length; ++i) {
20714
+ if (typeof object.accessGroups[i] !== "object")
20715
+ throw TypeError(".WakeupPlaylistUpdated.accessGroups: object expected");
20716
+ message.accessGroups[i] = $root.contentful.SlugReference.fromObject(object.accessGroups[i]);
20717
+ }
20718
+ }
20719
+ if (object.updatedAt != null)
20720
+ if ($util.Long)
20721
+ (message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
20722
+ else if (typeof object.updatedAt === "string")
20723
+ message.updatedAt = parseInt(object.updatedAt, 10);
20724
+ else if (typeof object.updatedAt === "number")
20725
+ message.updatedAt = object.updatedAt;
20726
+ else if (typeof object.updatedAt === "object")
20727
+ message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
20728
+ return message;
20729
+ };
20730
+
20731
+ /**
20732
+ * Creates a plain object from a WakeupPlaylistUpdated message. Also converts values to other types if specified.
20733
+ * @function toObject
20734
+ * @memberof WakeupPlaylistUpdated
20735
+ * @static
20736
+ * @param {WakeupPlaylistUpdated} message WakeupPlaylistUpdated
20737
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
20738
+ * @returns {Object.<string,*>} Plain object
20739
+ */
20740
+ WakeupPlaylistUpdated.toObject = function toObject(message, options) {
20741
+ if (!options)
20742
+ options = {};
20743
+ var object = {};
20744
+ if (options.arrays || options.defaults)
20745
+ object.accessGroups = [];
20746
+ if (options.defaults) {
20747
+ object.slug = "";
20748
+ object.entityType = "";
20749
+ if ($util.Long) {
20750
+ var long = new $util.Long(0, 0, true);
20751
+ object.schedule = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
20752
+ } else
20753
+ object.schedule = options.longs === String ? "0" : 0;
20754
+ object.previewMedia = "";
20755
+ object.previewMediaType = "";
20756
+ if ($util.Long) {
20757
+ var long = new $util.Long(0, 0, true);
20758
+ object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
20759
+ } else
20760
+ object.updatedAt = options.longs === String ? "0" : 0;
20761
+ }
20762
+ if (message.slug != null && message.hasOwnProperty("slug"))
20763
+ object.slug = message.slug;
20764
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
20765
+ object.entityType = message.entityType;
20766
+ if (message.schedule != null && message.hasOwnProperty("schedule"))
20767
+ if (typeof message.schedule === "number")
20768
+ object.schedule = options.longs === String ? String(message.schedule) : message.schedule;
20769
+ else
20770
+ object.schedule = options.longs === String ? $util.Long.prototype.toString.call(message.schedule) : options.longs === Number ? new $util.LongBits(message.schedule.low >>> 0, message.schedule.high >>> 0).toNumber(true) : message.schedule;
20771
+ if (message.previewMedia != null && message.hasOwnProperty("previewMedia"))
20772
+ object.previewMedia = message.previewMedia;
20773
+ if (message.previewMediaType != null && message.hasOwnProperty("previewMediaType"))
20774
+ object.previewMediaType = message.previewMediaType;
20775
+ if (message.accessGroups && message.accessGroups.length) {
20776
+ object.accessGroups = [];
20777
+ for (var j = 0; j < message.accessGroups.length; ++j)
20778
+ object.accessGroups[j] = $root.contentful.SlugReference.toObject(message.accessGroups[j], options);
20779
+ }
20780
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
20781
+ if (typeof message.updatedAt === "number")
20782
+ object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
20783
+ else
20784
+ 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;
20785
+ return object;
20786
+ };
20787
+
20788
+ /**
20789
+ * Converts this WakeupPlaylistUpdated to JSON.
20790
+ * @function toJSON
20791
+ * @memberof WakeupPlaylistUpdated
20792
+ * @instance
20793
+ * @returns {Object.<string,*>} JSON object
20794
+ */
20795
+ WakeupPlaylistUpdated.prototype.toJSON = function toJSON() {
20796
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
20797
+ };
20798
+
20799
+ return WakeupPlaylistUpdated;
20800
+ })();
20801
+
20802
+ $root.WakeupPlaylistDeleted = (function() {
20803
+
20804
+ /**
20805
+ * Properties of a WakeupPlaylistDeleted.
20806
+ * @exports IWakeupPlaylistDeleted
20807
+ * @interface IWakeupPlaylistDeleted
20808
+ * @property {string|null} [slug] WakeupPlaylistDeleted slug
20809
+ * @property {string|null} [entityType] WakeupPlaylistDeleted entityType
20810
+ * @property {number|Long|null} [deletedAt] WakeupPlaylistDeleted deletedAt
20811
+ */
20812
+
20813
+ /**
20814
+ * Constructs a new WakeupPlaylistDeleted.
20815
+ * @exports WakeupPlaylistDeleted
20816
+ * @classdesc Represents a WakeupPlaylistDeleted.
20817
+ * @implements IWakeupPlaylistDeleted
20818
+ * @constructor
20819
+ * @param {IWakeupPlaylistDeleted=} [properties] Properties to set
20820
+ */
20821
+ function WakeupPlaylistDeleted(properties) {
20822
+ if (properties)
20823
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
20824
+ if (properties[keys[i]] != null)
20825
+ this[keys[i]] = properties[keys[i]];
20826
+ }
20827
+
20828
+ /**
20829
+ * WakeupPlaylistDeleted slug.
20830
+ * @member {string} slug
20831
+ * @memberof WakeupPlaylistDeleted
20832
+ * @instance
20833
+ */
20834
+ WakeupPlaylistDeleted.prototype.slug = "";
20835
+
20836
+ /**
20837
+ * WakeupPlaylistDeleted entityType.
20838
+ * @member {string} entityType
20839
+ * @memberof WakeupPlaylistDeleted
20840
+ * @instance
20841
+ */
20842
+ WakeupPlaylistDeleted.prototype.entityType = "";
20843
+
20844
+ /**
20845
+ * WakeupPlaylistDeleted deletedAt.
20846
+ * @member {number|Long} deletedAt
20847
+ * @memberof WakeupPlaylistDeleted
20848
+ * @instance
20849
+ */
20850
+ WakeupPlaylistDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
20851
+
20852
+ /**
20853
+ * Creates a new WakeupPlaylistDeleted instance using the specified properties.
20854
+ * @function create
20855
+ * @memberof WakeupPlaylistDeleted
20856
+ * @static
20857
+ * @param {IWakeupPlaylistDeleted=} [properties] Properties to set
20858
+ * @returns {WakeupPlaylistDeleted} WakeupPlaylistDeleted instance
20859
+ */
20860
+ WakeupPlaylistDeleted.create = function create(properties) {
20861
+ return new WakeupPlaylistDeleted(properties);
20862
+ };
20863
+
20864
+ /**
20865
+ * Encodes the specified WakeupPlaylistDeleted message. Does not implicitly {@link WakeupPlaylistDeleted.verify|verify} messages.
20866
+ * @function encode
20867
+ * @memberof WakeupPlaylistDeleted
20868
+ * @static
20869
+ * @param {IWakeupPlaylistDeleted} message WakeupPlaylistDeleted message or plain object to encode
20870
+ * @param {$protobuf.Writer} [writer] Writer to encode to
20871
+ * @returns {$protobuf.Writer} Writer
20872
+ */
20873
+ WakeupPlaylistDeleted.encode = function encode(message, writer) {
20874
+ if (!writer)
20875
+ writer = $Writer.create();
20876
+ if (message.slug != null && message.hasOwnProperty("slug"))
20877
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
20878
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
20879
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityType);
20880
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
20881
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.deletedAt);
20882
+ return writer;
20883
+ };
20884
+
20885
+ /**
20886
+ * Encodes the specified WakeupPlaylistDeleted message, length delimited. Does not implicitly {@link WakeupPlaylistDeleted.verify|verify} messages.
20887
+ * @function encodeDelimited
20888
+ * @memberof WakeupPlaylistDeleted
20889
+ * @static
20890
+ * @param {IWakeupPlaylistDeleted} message WakeupPlaylistDeleted message or plain object to encode
20891
+ * @param {$protobuf.Writer} [writer] Writer to encode to
20892
+ * @returns {$protobuf.Writer} Writer
20893
+ */
20894
+ WakeupPlaylistDeleted.encodeDelimited = function encodeDelimited(message, writer) {
20895
+ return this.encode(message, writer).ldelim();
20896
+ };
20897
+
20898
+ /**
20899
+ * Decodes a WakeupPlaylistDeleted message from the specified reader or buffer.
20900
+ * @function decode
20901
+ * @memberof WakeupPlaylistDeleted
20902
+ * @static
20903
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
20904
+ * @param {number} [length] Message length if known beforehand
20905
+ * @returns {WakeupPlaylistDeleted} WakeupPlaylistDeleted
20906
+ * @throws {Error} If the payload is not a reader or valid buffer
20907
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
20908
+ */
20909
+ WakeupPlaylistDeleted.decode = function decode(reader, length) {
20910
+ if (!(reader instanceof $Reader))
20911
+ reader = $Reader.create(reader);
20912
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.WakeupPlaylistDeleted();
20913
+ while (reader.pos < end) {
20914
+ var tag = reader.uint32();
20915
+ switch (tag >>> 3) {
20916
+ case 1:
20917
+ message.slug = reader.string();
20918
+ break;
20919
+ case 2:
20920
+ message.entityType = reader.string();
20921
+ break;
20922
+ case 3:
20923
+ message.deletedAt = reader.uint64();
20924
+ break;
20925
+ default:
20926
+ reader.skipType(tag & 7);
20927
+ break;
20928
+ }
20929
+ }
20930
+ return message;
20931
+ };
20932
+
20933
+ /**
20934
+ * Decodes a WakeupPlaylistDeleted message from the specified reader or buffer, length delimited.
20935
+ * @function decodeDelimited
20936
+ * @memberof WakeupPlaylistDeleted
20937
+ * @static
20938
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
20939
+ * @returns {WakeupPlaylistDeleted} WakeupPlaylistDeleted
20940
+ * @throws {Error} If the payload is not a reader or valid buffer
20941
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
20942
+ */
20943
+ WakeupPlaylistDeleted.decodeDelimited = function decodeDelimited(reader) {
20944
+ if (!(reader instanceof $Reader))
20945
+ reader = new $Reader(reader);
20946
+ return this.decode(reader, reader.uint32());
20947
+ };
20948
+
20949
+ /**
20950
+ * Verifies a WakeupPlaylistDeleted message.
20951
+ * @function verify
20952
+ * @memberof WakeupPlaylistDeleted
20953
+ * @static
20954
+ * @param {Object.<string,*>} message Plain object to verify
20955
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
20956
+ */
20957
+ WakeupPlaylistDeleted.verify = function verify(message) {
20958
+ if (typeof message !== "object" || message === null)
20959
+ return "object expected";
20960
+ if (message.slug != null && message.hasOwnProperty("slug"))
20961
+ if (!$util.isString(message.slug))
20962
+ return "slug: string expected";
20963
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
20964
+ if (!$util.isString(message.entityType))
20965
+ return "entityType: string expected";
20966
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
20967
+ if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
20968
+ return "deletedAt: integer|Long expected";
20969
+ return null;
20970
+ };
20971
+
20972
+ /**
20973
+ * Creates a WakeupPlaylistDeleted message from a plain object. Also converts values to their respective internal types.
20974
+ * @function fromObject
20975
+ * @memberof WakeupPlaylistDeleted
20976
+ * @static
20977
+ * @param {Object.<string,*>} object Plain object
20978
+ * @returns {WakeupPlaylistDeleted} WakeupPlaylistDeleted
20979
+ */
20980
+ WakeupPlaylistDeleted.fromObject = function fromObject(object) {
20981
+ if (object instanceof $root.WakeupPlaylistDeleted)
20982
+ return object;
20983
+ var message = new $root.WakeupPlaylistDeleted();
20984
+ if (object.slug != null)
20985
+ message.slug = String(object.slug);
20986
+ if (object.entityType != null)
20987
+ message.entityType = String(object.entityType);
20988
+ if (object.deletedAt != null)
20989
+ if ($util.Long)
20990
+ (message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
20991
+ else if (typeof object.deletedAt === "string")
20992
+ message.deletedAt = parseInt(object.deletedAt, 10);
20993
+ else if (typeof object.deletedAt === "number")
20994
+ message.deletedAt = object.deletedAt;
20995
+ else if (typeof object.deletedAt === "object")
20996
+ message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
20997
+ return message;
20998
+ };
20999
+
21000
+ /**
21001
+ * Creates a plain object from a WakeupPlaylistDeleted message. Also converts values to other types if specified.
21002
+ * @function toObject
21003
+ * @memberof WakeupPlaylistDeleted
21004
+ * @static
21005
+ * @param {WakeupPlaylistDeleted} message WakeupPlaylistDeleted
21006
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
21007
+ * @returns {Object.<string,*>} Plain object
21008
+ */
21009
+ WakeupPlaylistDeleted.toObject = function toObject(message, options) {
21010
+ if (!options)
21011
+ options = {};
21012
+ var object = {};
21013
+ if (options.defaults) {
21014
+ object.slug = "";
21015
+ object.entityType = "";
21016
+ if ($util.Long) {
21017
+ var long = new $util.Long(0, 0, true);
21018
+ object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
21019
+ } else
21020
+ object.deletedAt = options.longs === String ? "0" : 0;
21021
+ }
21022
+ if (message.slug != null && message.hasOwnProperty("slug"))
21023
+ object.slug = message.slug;
21024
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
21025
+ object.entityType = message.entityType;
21026
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
21027
+ if (typeof message.deletedAt === "number")
21028
+ object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
21029
+ else
21030
+ 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;
21031
+ return object;
21032
+ };
21033
+
21034
+ /**
21035
+ * Converts this WakeupPlaylistDeleted to JSON.
21036
+ * @function toJSON
21037
+ * @memberof WakeupPlaylistDeleted
21038
+ * @instance
21039
+ * @returns {Object.<string,*>} JSON object
21040
+ */
21041
+ WakeupPlaylistDeleted.prototype.toJSON = function toJSON() {
21042
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
21043
+ };
21044
+
21045
+ return WakeupPlaylistDeleted;
21046
+ })();
21047
+
20062
21048
  $root.ExperimentContentMapCreated = (function() {
20063
21049
 
20064
21050
  /**
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.111.0"
19
+ "version": "1.112.0"
20
20
  }