@headspace/protos-events 1.151.0 → 1.152.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
@@ -16923,6 +16923,354 @@ export class LayoutDeleted implements ILayoutDeleted {
16923
16923
  public toJSON(): { [k: string]: any };
16924
16924
  }
16925
16925
 
16926
+ /** Properties of a ModuleDescriptorCreated. */
16927
+ export interface IModuleDescriptorCreated {
16928
+
16929
+ /** ModuleDescriptorCreated slug */
16930
+ slug?: (string|null);
16931
+
16932
+ /** ModuleDescriptorCreated entityId */
16933
+ entityId?: (string|null);
16934
+
16935
+ /** ModuleDescriptorCreated entityType */
16936
+ entityType?: (string|null);
16937
+
16938
+ /** ModuleDescriptorCreated accessGroups */
16939
+ accessGroups?: (contentful.ISlugReference[]|null);
16940
+
16941
+ /** ModuleDescriptorCreated excludedAccessGroups */
16942
+ excludedAccessGroups?: (contentful.ISlugReference[]|null);
16943
+
16944
+ /** ModuleDescriptorCreated createdAt */
16945
+ createdAt?: (number|Long|null);
16946
+ }
16947
+
16948
+ /** Represents a ModuleDescriptorCreated. */
16949
+ export class ModuleDescriptorCreated implements IModuleDescriptorCreated {
16950
+
16951
+ /**
16952
+ * Constructs a new ModuleDescriptorCreated.
16953
+ * @param [properties] Properties to set
16954
+ */
16955
+ constructor(properties?: IModuleDescriptorCreated);
16956
+
16957
+ /** ModuleDescriptorCreated slug. */
16958
+ public slug: string;
16959
+
16960
+ /** ModuleDescriptorCreated entityId. */
16961
+ public entityId: string;
16962
+
16963
+ /** ModuleDescriptorCreated entityType. */
16964
+ public entityType: string;
16965
+
16966
+ /** ModuleDescriptorCreated accessGroups. */
16967
+ public accessGroups: contentful.ISlugReference[];
16968
+
16969
+ /** ModuleDescriptorCreated excludedAccessGroups. */
16970
+ public excludedAccessGroups: contentful.ISlugReference[];
16971
+
16972
+ /** ModuleDescriptorCreated createdAt. */
16973
+ public createdAt: (number|Long);
16974
+
16975
+ /**
16976
+ * Creates a new ModuleDescriptorCreated instance using the specified properties.
16977
+ * @param [properties] Properties to set
16978
+ * @returns ModuleDescriptorCreated instance
16979
+ */
16980
+ public static create(properties?: IModuleDescriptorCreated): ModuleDescriptorCreated;
16981
+
16982
+ /**
16983
+ * Encodes the specified ModuleDescriptorCreated message. Does not implicitly {@link ModuleDescriptorCreated.verify|verify} messages.
16984
+ * @param message ModuleDescriptorCreated message or plain object to encode
16985
+ * @param [writer] Writer to encode to
16986
+ * @returns Writer
16987
+ */
16988
+ public static encode(message: IModuleDescriptorCreated, writer?: $protobuf.Writer): $protobuf.Writer;
16989
+
16990
+ /**
16991
+ * Encodes the specified ModuleDescriptorCreated message, length delimited. Does not implicitly {@link ModuleDescriptorCreated.verify|verify} messages.
16992
+ * @param message ModuleDescriptorCreated message or plain object to encode
16993
+ * @param [writer] Writer to encode to
16994
+ * @returns Writer
16995
+ */
16996
+ public static encodeDelimited(message: IModuleDescriptorCreated, writer?: $protobuf.Writer): $protobuf.Writer;
16997
+
16998
+ /**
16999
+ * Decodes a ModuleDescriptorCreated message from the specified reader or buffer.
17000
+ * @param reader Reader or buffer to decode from
17001
+ * @param [length] Message length if known beforehand
17002
+ * @returns ModuleDescriptorCreated
17003
+ * @throws {Error} If the payload is not a reader or valid buffer
17004
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17005
+ */
17006
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ModuleDescriptorCreated;
17007
+
17008
+ /**
17009
+ * Decodes a ModuleDescriptorCreated message from the specified reader or buffer, length delimited.
17010
+ * @param reader Reader or buffer to decode from
17011
+ * @returns ModuleDescriptorCreated
17012
+ * @throws {Error} If the payload is not a reader or valid buffer
17013
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17014
+ */
17015
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ModuleDescriptorCreated;
17016
+
17017
+ /**
17018
+ * Verifies a ModuleDescriptorCreated message.
17019
+ * @param message Plain object to verify
17020
+ * @returns `null` if valid, otherwise the reason why it is not
17021
+ */
17022
+ public static verify(message: { [k: string]: any }): (string|null);
17023
+
17024
+ /**
17025
+ * Creates a ModuleDescriptorCreated message from a plain object. Also converts values to their respective internal types.
17026
+ * @param object Plain object
17027
+ * @returns ModuleDescriptorCreated
17028
+ */
17029
+ public static fromObject(object: { [k: string]: any }): ModuleDescriptorCreated;
17030
+
17031
+ /**
17032
+ * Creates a plain object from a ModuleDescriptorCreated message. Also converts values to other types if specified.
17033
+ * @param message ModuleDescriptorCreated
17034
+ * @param [options] Conversion options
17035
+ * @returns Plain object
17036
+ */
17037
+ public static toObject(message: ModuleDescriptorCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
17038
+
17039
+ /**
17040
+ * Converts this ModuleDescriptorCreated to JSON.
17041
+ * @returns JSON object
17042
+ */
17043
+ public toJSON(): { [k: string]: any };
17044
+ }
17045
+
17046
+ /** Properties of a ModuleDescriptorUpdated. */
17047
+ export interface IModuleDescriptorUpdated {
17048
+
17049
+ /** ModuleDescriptorUpdated slug */
17050
+ slug?: (string|null);
17051
+
17052
+ /** ModuleDescriptorUpdated entityId */
17053
+ entityId?: (string|null);
17054
+
17055
+ /** ModuleDescriptorUpdated entityType */
17056
+ entityType?: (string|null);
17057
+
17058
+ /** ModuleDescriptorUpdated accessGroups */
17059
+ accessGroups?: (contentful.ISlugReference[]|null);
17060
+
17061
+ /** ModuleDescriptorUpdated excludedAccessGroups */
17062
+ excludedAccessGroups?: (contentful.ISlugReference[]|null);
17063
+
17064
+ /** ModuleDescriptorUpdated updatedAt */
17065
+ updatedAt?: (number|Long|null);
17066
+ }
17067
+
17068
+ /** Represents a ModuleDescriptorUpdated. */
17069
+ export class ModuleDescriptorUpdated implements IModuleDescriptorUpdated {
17070
+
17071
+ /**
17072
+ * Constructs a new ModuleDescriptorUpdated.
17073
+ * @param [properties] Properties to set
17074
+ */
17075
+ constructor(properties?: IModuleDescriptorUpdated);
17076
+
17077
+ /** ModuleDescriptorUpdated slug. */
17078
+ public slug: string;
17079
+
17080
+ /** ModuleDescriptorUpdated entityId. */
17081
+ public entityId: string;
17082
+
17083
+ /** ModuleDescriptorUpdated entityType. */
17084
+ public entityType: string;
17085
+
17086
+ /** ModuleDescriptorUpdated accessGroups. */
17087
+ public accessGroups: contentful.ISlugReference[];
17088
+
17089
+ /** ModuleDescriptorUpdated excludedAccessGroups. */
17090
+ public excludedAccessGroups: contentful.ISlugReference[];
17091
+
17092
+ /** ModuleDescriptorUpdated updatedAt. */
17093
+ public updatedAt: (number|Long);
17094
+
17095
+ /**
17096
+ * Creates a new ModuleDescriptorUpdated instance using the specified properties.
17097
+ * @param [properties] Properties to set
17098
+ * @returns ModuleDescriptorUpdated instance
17099
+ */
17100
+ public static create(properties?: IModuleDescriptorUpdated): ModuleDescriptorUpdated;
17101
+
17102
+ /**
17103
+ * Encodes the specified ModuleDescriptorUpdated message. Does not implicitly {@link ModuleDescriptorUpdated.verify|verify} messages.
17104
+ * @param message ModuleDescriptorUpdated message or plain object to encode
17105
+ * @param [writer] Writer to encode to
17106
+ * @returns Writer
17107
+ */
17108
+ public static encode(message: IModuleDescriptorUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
17109
+
17110
+ /**
17111
+ * Encodes the specified ModuleDescriptorUpdated message, length delimited. Does not implicitly {@link ModuleDescriptorUpdated.verify|verify} messages.
17112
+ * @param message ModuleDescriptorUpdated message or plain object to encode
17113
+ * @param [writer] Writer to encode to
17114
+ * @returns Writer
17115
+ */
17116
+ public static encodeDelimited(message: IModuleDescriptorUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
17117
+
17118
+ /**
17119
+ * Decodes a ModuleDescriptorUpdated message from the specified reader or buffer.
17120
+ * @param reader Reader or buffer to decode from
17121
+ * @param [length] Message length if known beforehand
17122
+ * @returns ModuleDescriptorUpdated
17123
+ * @throws {Error} If the payload is not a reader or valid buffer
17124
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17125
+ */
17126
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ModuleDescriptorUpdated;
17127
+
17128
+ /**
17129
+ * Decodes a ModuleDescriptorUpdated message from the specified reader or buffer, length delimited.
17130
+ * @param reader Reader or buffer to decode from
17131
+ * @returns ModuleDescriptorUpdated
17132
+ * @throws {Error} If the payload is not a reader or valid buffer
17133
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17134
+ */
17135
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ModuleDescriptorUpdated;
17136
+
17137
+ /**
17138
+ * Verifies a ModuleDescriptorUpdated message.
17139
+ * @param message Plain object to verify
17140
+ * @returns `null` if valid, otherwise the reason why it is not
17141
+ */
17142
+ public static verify(message: { [k: string]: any }): (string|null);
17143
+
17144
+ /**
17145
+ * Creates a ModuleDescriptorUpdated message from a plain object. Also converts values to their respective internal types.
17146
+ * @param object Plain object
17147
+ * @returns ModuleDescriptorUpdated
17148
+ */
17149
+ public static fromObject(object: { [k: string]: any }): ModuleDescriptorUpdated;
17150
+
17151
+ /**
17152
+ * Creates a plain object from a ModuleDescriptorUpdated message. Also converts values to other types if specified.
17153
+ * @param message ModuleDescriptorUpdated
17154
+ * @param [options] Conversion options
17155
+ * @returns Plain object
17156
+ */
17157
+ public static toObject(message: ModuleDescriptorUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
17158
+
17159
+ /**
17160
+ * Converts this ModuleDescriptorUpdated to JSON.
17161
+ * @returns JSON object
17162
+ */
17163
+ public toJSON(): { [k: string]: any };
17164
+ }
17165
+
17166
+ /** Properties of a ModuleDescriptorDeleted. */
17167
+ export interface IModuleDescriptorDeleted {
17168
+
17169
+ /** ModuleDescriptorDeleted slug */
17170
+ slug?: (string|null);
17171
+
17172
+ /** ModuleDescriptorDeleted entityId */
17173
+ entityId?: (string|null);
17174
+
17175
+ /** ModuleDescriptorDeleted entityType */
17176
+ entityType?: (string|null);
17177
+
17178
+ /** ModuleDescriptorDeleted deletedAt */
17179
+ deletedAt?: (number|Long|null);
17180
+ }
17181
+
17182
+ /** Represents a ModuleDescriptorDeleted. */
17183
+ export class ModuleDescriptorDeleted implements IModuleDescriptorDeleted {
17184
+
17185
+ /**
17186
+ * Constructs a new ModuleDescriptorDeleted.
17187
+ * @param [properties] Properties to set
17188
+ */
17189
+ constructor(properties?: IModuleDescriptorDeleted);
17190
+
17191
+ /** ModuleDescriptorDeleted slug. */
17192
+ public slug: string;
17193
+
17194
+ /** ModuleDescriptorDeleted entityId. */
17195
+ public entityId: string;
17196
+
17197
+ /** ModuleDescriptorDeleted entityType. */
17198
+ public entityType: string;
17199
+
17200
+ /** ModuleDescriptorDeleted deletedAt. */
17201
+ public deletedAt: (number|Long);
17202
+
17203
+ /**
17204
+ * Creates a new ModuleDescriptorDeleted instance using the specified properties.
17205
+ * @param [properties] Properties to set
17206
+ * @returns ModuleDescriptorDeleted instance
17207
+ */
17208
+ public static create(properties?: IModuleDescriptorDeleted): ModuleDescriptorDeleted;
17209
+
17210
+ /**
17211
+ * Encodes the specified ModuleDescriptorDeleted message. Does not implicitly {@link ModuleDescriptorDeleted.verify|verify} messages.
17212
+ * @param message ModuleDescriptorDeleted message or plain object to encode
17213
+ * @param [writer] Writer to encode to
17214
+ * @returns Writer
17215
+ */
17216
+ public static encode(message: IModuleDescriptorDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
17217
+
17218
+ /**
17219
+ * Encodes the specified ModuleDescriptorDeleted message, length delimited. Does not implicitly {@link ModuleDescriptorDeleted.verify|verify} messages.
17220
+ * @param message ModuleDescriptorDeleted message or plain object to encode
17221
+ * @param [writer] Writer to encode to
17222
+ * @returns Writer
17223
+ */
17224
+ public static encodeDelimited(message: IModuleDescriptorDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
17225
+
17226
+ /**
17227
+ * Decodes a ModuleDescriptorDeleted message from the specified reader or buffer.
17228
+ * @param reader Reader or buffer to decode from
17229
+ * @param [length] Message length if known beforehand
17230
+ * @returns ModuleDescriptorDeleted
17231
+ * @throws {Error} If the payload is not a reader or valid buffer
17232
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17233
+ */
17234
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ModuleDescriptorDeleted;
17235
+
17236
+ /**
17237
+ * Decodes a ModuleDescriptorDeleted message from the specified reader or buffer, length delimited.
17238
+ * @param reader Reader or buffer to decode from
17239
+ * @returns ModuleDescriptorDeleted
17240
+ * @throws {Error} If the payload is not a reader or valid buffer
17241
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17242
+ */
17243
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ModuleDescriptorDeleted;
17244
+
17245
+ /**
17246
+ * Verifies a ModuleDescriptorDeleted message.
17247
+ * @param message Plain object to verify
17248
+ * @returns `null` if valid, otherwise the reason why it is not
17249
+ */
17250
+ public static verify(message: { [k: string]: any }): (string|null);
17251
+
17252
+ /**
17253
+ * Creates a ModuleDescriptorDeleted message from a plain object. Also converts values to their respective internal types.
17254
+ * @param object Plain object
17255
+ * @returns ModuleDescriptorDeleted
17256
+ */
17257
+ public static fromObject(object: { [k: string]: any }): ModuleDescriptorDeleted;
17258
+
17259
+ /**
17260
+ * Creates a plain object from a ModuleDescriptorDeleted message. Also converts values to other types if specified.
17261
+ * @param message ModuleDescriptorDeleted
17262
+ * @param [options] Conversion options
17263
+ * @returns Plain object
17264
+ */
17265
+ public static toObject(message: ModuleDescriptorDeleted, options?: $protobuf.IConversionOptions): { [k: string]: any };
17266
+
17267
+ /**
17268
+ * Converts this ModuleDescriptorDeleted to JSON.
17269
+ * @returns JSON object
17270
+ */
17271
+ public toJSON(): { [k: string]: any };
17272
+ }
17273
+
16926
17274
  /** Properties of a WakeupPlaylistCreated. */
16927
17275
  export interface IWakeupPlaylistCreated {
16928
17276
 
package/lib/index.js CHANGED
@@ -46352,6 +46352,986 @@ $root.LayoutDeleted = (function() {
46352
46352
  return LayoutDeleted;
46353
46353
  })();
46354
46354
 
46355
+ $root.ModuleDescriptorCreated = (function() {
46356
+
46357
+ /**
46358
+ * Properties of a ModuleDescriptorCreated.
46359
+ * @exports IModuleDescriptorCreated
46360
+ * @interface IModuleDescriptorCreated
46361
+ * @property {string|null} [slug] ModuleDescriptorCreated slug
46362
+ * @property {string|null} [entityId] ModuleDescriptorCreated entityId
46363
+ * @property {string|null} [entityType] ModuleDescriptorCreated entityType
46364
+ * @property {Array.<contentful.ISlugReference>|null} [accessGroups] ModuleDescriptorCreated accessGroups
46365
+ * @property {Array.<contentful.ISlugReference>|null} [excludedAccessGroups] ModuleDescriptorCreated excludedAccessGroups
46366
+ * @property {number|Long|null} [createdAt] ModuleDescriptorCreated createdAt
46367
+ */
46368
+
46369
+ /**
46370
+ * Constructs a new ModuleDescriptorCreated.
46371
+ * @exports ModuleDescriptorCreated
46372
+ * @classdesc Represents a ModuleDescriptorCreated.
46373
+ * @implements IModuleDescriptorCreated
46374
+ * @constructor
46375
+ * @param {IModuleDescriptorCreated=} [properties] Properties to set
46376
+ */
46377
+ function ModuleDescriptorCreated(properties) {
46378
+ this.accessGroups = [];
46379
+ this.excludedAccessGroups = [];
46380
+ if (properties)
46381
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
46382
+ if (properties[keys[i]] != null)
46383
+ this[keys[i]] = properties[keys[i]];
46384
+ }
46385
+
46386
+ /**
46387
+ * ModuleDescriptorCreated slug.
46388
+ * @member {string} slug
46389
+ * @memberof ModuleDescriptorCreated
46390
+ * @instance
46391
+ */
46392
+ ModuleDescriptorCreated.prototype.slug = "";
46393
+
46394
+ /**
46395
+ * ModuleDescriptorCreated entityId.
46396
+ * @member {string} entityId
46397
+ * @memberof ModuleDescriptorCreated
46398
+ * @instance
46399
+ */
46400
+ ModuleDescriptorCreated.prototype.entityId = "";
46401
+
46402
+ /**
46403
+ * ModuleDescriptorCreated entityType.
46404
+ * @member {string} entityType
46405
+ * @memberof ModuleDescriptorCreated
46406
+ * @instance
46407
+ */
46408
+ ModuleDescriptorCreated.prototype.entityType = "";
46409
+
46410
+ /**
46411
+ * ModuleDescriptorCreated accessGroups.
46412
+ * @member {Array.<contentful.ISlugReference>} accessGroups
46413
+ * @memberof ModuleDescriptorCreated
46414
+ * @instance
46415
+ */
46416
+ ModuleDescriptorCreated.prototype.accessGroups = $util.emptyArray;
46417
+
46418
+ /**
46419
+ * ModuleDescriptorCreated excludedAccessGroups.
46420
+ * @member {Array.<contentful.ISlugReference>} excludedAccessGroups
46421
+ * @memberof ModuleDescriptorCreated
46422
+ * @instance
46423
+ */
46424
+ ModuleDescriptorCreated.prototype.excludedAccessGroups = $util.emptyArray;
46425
+
46426
+ /**
46427
+ * ModuleDescriptorCreated createdAt.
46428
+ * @member {number|Long} createdAt
46429
+ * @memberof ModuleDescriptorCreated
46430
+ * @instance
46431
+ */
46432
+ ModuleDescriptorCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
46433
+
46434
+ /**
46435
+ * Creates a new ModuleDescriptorCreated instance using the specified properties.
46436
+ * @function create
46437
+ * @memberof ModuleDescriptorCreated
46438
+ * @static
46439
+ * @param {IModuleDescriptorCreated=} [properties] Properties to set
46440
+ * @returns {ModuleDescriptorCreated} ModuleDescriptorCreated instance
46441
+ */
46442
+ ModuleDescriptorCreated.create = function create(properties) {
46443
+ return new ModuleDescriptorCreated(properties);
46444
+ };
46445
+
46446
+ /**
46447
+ * Encodes the specified ModuleDescriptorCreated message. Does not implicitly {@link ModuleDescriptorCreated.verify|verify} messages.
46448
+ * @function encode
46449
+ * @memberof ModuleDescriptorCreated
46450
+ * @static
46451
+ * @param {IModuleDescriptorCreated} message ModuleDescriptorCreated message or plain object to encode
46452
+ * @param {$protobuf.Writer} [writer] Writer to encode to
46453
+ * @returns {$protobuf.Writer} Writer
46454
+ */
46455
+ ModuleDescriptorCreated.encode = function encode(message, writer) {
46456
+ if (!writer)
46457
+ writer = $Writer.create();
46458
+ if (message.slug != null && message.hasOwnProperty("slug"))
46459
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
46460
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
46461
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityId);
46462
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
46463
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.entityType);
46464
+ if (message.accessGroups != null && message.accessGroups.length)
46465
+ for (var i = 0; i < message.accessGroups.length; ++i)
46466
+ $root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
46467
+ if (message.excludedAccessGroups != null && message.excludedAccessGroups.length)
46468
+ for (var i = 0; i < message.excludedAccessGroups.length; ++i)
46469
+ $root.contentful.SlugReference.encode(message.excludedAccessGroups[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
46470
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
46471
+ writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.createdAt);
46472
+ return writer;
46473
+ };
46474
+
46475
+ /**
46476
+ * Encodes the specified ModuleDescriptorCreated message, length delimited. Does not implicitly {@link ModuleDescriptorCreated.verify|verify} messages.
46477
+ * @function encodeDelimited
46478
+ * @memberof ModuleDescriptorCreated
46479
+ * @static
46480
+ * @param {IModuleDescriptorCreated} message ModuleDescriptorCreated message or plain object to encode
46481
+ * @param {$protobuf.Writer} [writer] Writer to encode to
46482
+ * @returns {$protobuf.Writer} Writer
46483
+ */
46484
+ ModuleDescriptorCreated.encodeDelimited = function encodeDelimited(message, writer) {
46485
+ return this.encode(message, writer).ldelim();
46486
+ };
46487
+
46488
+ /**
46489
+ * Decodes a ModuleDescriptorCreated message from the specified reader or buffer.
46490
+ * @function decode
46491
+ * @memberof ModuleDescriptorCreated
46492
+ * @static
46493
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
46494
+ * @param {number} [length] Message length if known beforehand
46495
+ * @returns {ModuleDescriptorCreated} ModuleDescriptorCreated
46496
+ * @throws {Error} If the payload is not a reader or valid buffer
46497
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
46498
+ */
46499
+ ModuleDescriptorCreated.decode = function decode(reader, length) {
46500
+ if (!(reader instanceof $Reader))
46501
+ reader = $Reader.create(reader);
46502
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ModuleDescriptorCreated();
46503
+ while (reader.pos < end) {
46504
+ var tag = reader.uint32();
46505
+ switch (tag >>> 3) {
46506
+ case 1:
46507
+ message.slug = reader.string();
46508
+ break;
46509
+ case 2:
46510
+ message.entityId = reader.string();
46511
+ break;
46512
+ case 3:
46513
+ message.entityType = reader.string();
46514
+ break;
46515
+ case 4:
46516
+ if (!(message.accessGroups && message.accessGroups.length))
46517
+ message.accessGroups = [];
46518
+ message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
46519
+ break;
46520
+ case 5:
46521
+ if (!(message.excludedAccessGroups && message.excludedAccessGroups.length))
46522
+ message.excludedAccessGroups = [];
46523
+ message.excludedAccessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
46524
+ break;
46525
+ case 6:
46526
+ message.createdAt = reader.uint64();
46527
+ break;
46528
+ default:
46529
+ reader.skipType(tag & 7);
46530
+ break;
46531
+ }
46532
+ }
46533
+ return message;
46534
+ };
46535
+
46536
+ /**
46537
+ * Decodes a ModuleDescriptorCreated message from the specified reader or buffer, length delimited.
46538
+ * @function decodeDelimited
46539
+ * @memberof ModuleDescriptorCreated
46540
+ * @static
46541
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
46542
+ * @returns {ModuleDescriptorCreated} ModuleDescriptorCreated
46543
+ * @throws {Error} If the payload is not a reader or valid buffer
46544
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
46545
+ */
46546
+ ModuleDescriptorCreated.decodeDelimited = function decodeDelimited(reader) {
46547
+ if (!(reader instanceof $Reader))
46548
+ reader = new $Reader(reader);
46549
+ return this.decode(reader, reader.uint32());
46550
+ };
46551
+
46552
+ /**
46553
+ * Verifies a ModuleDescriptorCreated message.
46554
+ * @function verify
46555
+ * @memberof ModuleDescriptorCreated
46556
+ * @static
46557
+ * @param {Object.<string,*>} message Plain object to verify
46558
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
46559
+ */
46560
+ ModuleDescriptorCreated.verify = function verify(message) {
46561
+ if (typeof message !== "object" || message === null)
46562
+ return "object expected";
46563
+ if (message.slug != null && message.hasOwnProperty("slug"))
46564
+ if (!$util.isString(message.slug))
46565
+ return "slug: string expected";
46566
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
46567
+ if (!$util.isString(message.entityId))
46568
+ return "entityId: string expected";
46569
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
46570
+ if (!$util.isString(message.entityType))
46571
+ return "entityType: string expected";
46572
+ if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
46573
+ if (!Array.isArray(message.accessGroups))
46574
+ return "accessGroups: array expected";
46575
+ for (var i = 0; i < message.accessGroups.length; ++i) {
46576
+ var error = $root.contentful.SlugReference.verify(message.accessGroups[i]);
46577
+ if (error)
46578
+ return "accessGroups." + error;
46579
+ }
46580
+ }
46581
+ if (message.excludedAccessGroups != null && message.hasOwnProperty("excludedAccessGroups")) {
46582
+ if (!Array.isArray(message.excludedAccessGroups))
46583
+ return "excludedAccessGroups: array expected";
46584
+ for (var i = 0; i < message.excludedAccessGroups.length; ++i) {
46585
+ var error = $root.contentful.SlugReference.verify(message.excludedAccessGroups[i]);
46586
+ if (error)
46587
+ return "excludedAccessGroups." + error;
46588
+ }
46589
+ }
46590
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
46591
+ if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
46592
+ return "createdAt: integer|Long expected";
46593
+ return null;
46594
+ };
46595
+
46596
+ /**
46597
+ * Creates a ModuleDescriptorCreated message from a plain object. Also converts values to their respective internal types.
46598
+ * @function fromObject
46599
+ * @memberof ModuleDescriptorCreated
46600
+ * @static
46601
+ * @param {Object.<string,*>} object Plain object
46602
+ * @returns {ModuleDescriptorCreated} ModuleDescriptorCreated
46603
+ */
46604
+ ModuleDescriptorCreated.fromObject = function fromObject(object) {
46605
+ if (object instanceof $root.ModuleDescriptorCreated)
46606
+ return object;
46607
+ var message = new $root.ModuleDescriptorCreated();
46608
+ if (object.slug != null)
46609
+ message.slug = String(object.slug);
46610
+ if (object.entityId != null)
46611
+ message.entityId = String(object.entityId);
46612
+ if (object.entityType != null)
46613
+ message.entityType = String(object.entityType);
46614
+ if (object.accessGroups) {
46615
+ if (!Array.isArray(object.accessGroups))
46616
+ throw TypeError(".ModuleDescriptorCreated.accessGroups: array expected");
46617
+ message.accessGroups = [];
46618
+ for (var i = 0; i < object.accessGroups.length; ++i) {
46619
+ if (typeof object.accessGroups[i] !== "object")
46620
+ throw TypeError(".ModuleDescriptorCreated.accessGroups: object expected");
46621
+ message.accessGroups[i] = $root.contentful.SlugReference.fromObject(object.accessGroups[i]);
46622
+ }
46623
+ }
46624
+ if (object.excludedAccessGroups) {
46625
+ if (!Array.isArray(object.excludedAccessGroups))
46626
+ throw TypeError(".ModuleDescriptorCreated.excludedAccessGroups: array expected");
46627
+ message.excludedAccessGroups = [];
46628
+ for (var i = 0; i < object.excludedAccessGroups.length; ++i) {
46629
+ if (typeof object.excludedAccessGroups[i] !== "object")
46630
+ throw TypeError(".ModuleDescriptorCreated.excludedAccessGroups: object expected");
46631
+ message.excludedAccessGroups[i] = $root.contentful.SlugReference.fromObject(object.excludedAccessGroups[i]);
46632
+ }
46633
+ }
46634
+ if (object.createdAt != null)
46635
+ if ($util.Long)
46636
+ (message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
46637
+ else if (typeof object.createdAt === "string")
46638
+ message.createdAt = parseInt(object.createdAt, 10);
46639
+ else if (typeof object.createdAt === "number")
46640
+ message.createdAt = object.createdAt;
46641
+ else if (typeof object.createdAt === "object")
46642
+ message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
46643
+ return message;
46644
+ };
46645
+
46646
+ /**
46647
+ * Creates a plain object from a ModuleDescriptorCreated message. Also converts values to other types if specified.
46648
+ * @function toObject
46649
+ * @memberof ModuleDescriptorCreated
46650
+ * @static
46651
+ * @param {ModuleDescriptorCreated} message ModuleDescriptorCreated
46652
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
46653
+ * @returns {Object.<string,*>} Plain object
46654
+ */
46655
+ ModuleDescriptorCreated.toObject = function toObject(message, options) {
46656
+ if (!options)
46657
+ options = {};
46658
+ var object = {};
46659
+ if (options.arrays || options.defaults) {
46660
+ object.accessGroups = [];
46661
+ object.excludedAccessGroups = [];
46662
+ }
46663
+ if (options.defaults) {
46664
+ object.slug = "";
46665
+ object.entityId = "";
46666
+ object.entityType = "";
46667
+ if ($util.Long) {
46668
+ var long = new $util.Long(0, 0, true);
46669
+ object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
46670
+ } else
46671
+ object.createdAt = options.longs === String ? "0" : 0;
46672
+ }
46673
+ if (message.slug != null && message.hasOwnProperty("slug"))
46674
+ object.slug = message.slug;
46675
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
46676
+ object.entityId = message.entityId;
46677
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
46678
+ object.entityType = message.entityType;
46679
+ if (message.accessGroups && message.accessGroups.length) {
46680
+ object.accessGroups = [];
46681
+ for (var j = 0; j < message.accessGroups.length; ++j)
46682
+ object.accessGroups[j] = $root.contentful.SlugReference.toObject(message.accessGroups[j], options);
46683
+ }
46684
+ if (message.excludedAccessGroups && message.excludedAccessGroups.length) {
46685
+ object.excludedAccessGroups = [];
46686
+ for (var j = 0; j < message.excludedAccessGroups.length; ++j)
46687
+ object.excludedAccessGroups[j] = $root.contentful.SlugReference.toObject(message.excludedAccessGroups[j], options);
46688
+ }
46689
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
46690
+ if (typeof message.createdAt === "number")
46691
+ object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
46692
+ else
46693
+ 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;
46694
+ return object;
46695
+ };
46696
+
46697
+ /**
46698
+ * Converts this ModuleDescriptorCreated to JSON.
46699
+ * @function toJSON
46700
+ * @memberof ModuleDescriptorCreated
46701
+ * @instance
46702
+ * @returns {Object.<string,*>} JSON object
46703
+ */
46704
+ ModuleDescriptorCreated.prototype.toJSON = function toJSON() {
46705
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
46706
+ };
46707
+
46708
+ return ModuleDescriptorCreated;
46709
+ })();
46710
+
46711
+ $root.ModuleDescriptorUpdated = (function() {
46712
+
46713
+ /**
46714
+ * Properties of a ModuleDescriptorUpdated.
46715
+ * @exports IModuleDescriptorUpdated
46716
+ * @interface IModuleDescriptorUpdated
46717
+ * @property {string|null} [slug] ModuleDescriptorUpdated slug
46718
+ * @property {string|null} [entityId] ModuleDescriptorUpdated entityId
46719
+ * @property {string|null} [entityType] ModuleDescriptorUpdated entityType
46720
+ * @property {Array.<contentful.ISlugReference>|null} [accessGroups] ModuleDescriptorUpdated accessGroups
46721
+ * @property {Array.<contentful.ISlugReference>|null} [excludedAccessGroups] ModuleDescriptorUpdated excludedAccessGroups
46722
+ * @property {number|Long|null} [updatedAt] ModuleDescriptorUpdated updatedAt
46723
+ */
46724
+
46725
+ /**
46726
+ * Constructs a new ModuleDescriptorUpdated.
46727
+ * @exports ModuleDescriptorUpdated
46728
+ * @classdesc Represents a ModuleDescriptorUpdated.
46729
+ * @implements IModuleDescriptorUpdated
46730
+ * @constructor
46731
+ * @param {IModuleDescriptorUpdated=} [properties] Properties to set
46732
+ */
46733
+ function ModuleDescriptorUpdated(properties) {
46734
+ this.accessGroups = [];
46735
+ this.excludedAccessGroups = [];
46736
+ if (properties)
46737
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
46738
+ if (properties[keys[i]] != null)
46739
+ this[keys[i]] = properties[keys[i]];
46740
+ }
46741
+
46742
+ /**
46743
+ * ModuleDescriptorUpdated slug.
46744
+ * @member {string} slug
46745
+ * @memberof ModuleDescriptorUpdated
46746
+ * @instance
46747
+ */
46748
+ ModuleDescriptorUpdated.prototype.slug = "";
46749
+
46750
+ /**
46751
+ * ModuleDescriptorUpdated entityId.
46752
+ * @member {string} entityId
46753
+ * @memberof ModuleDescriptorUpdated
46754
+ * @instance
46755
+ */
46756
+ ModuleDescriptorUpdated.prototype.entityId = "";
46757
+
46758
+ /**
46759
+ * ModuleDescriptorUpdated entityType.
46760
+ * @member {string} entityType
46761
+ * @memberof ModuleDescriptorUpdated
46762
+ * @instance
46763
+ */
46764
+ ModuleDescriptorUpdated.prototype.entityType = "";
46765
+
46766
+ /**
46767
+ * ModuleDescriptorUpdated accessGroups.
46768
+ * @member {Array.<contentful.ISlugReference>} accessGroups
46769
+ * @memberof ModuleDescriptorUpdated
46770
+ * @instance
46771
+ */
46772
+ ModuleDescriptorUpdated.prototype.accessGroups = $util.emptyArray;
46773
+
46774
+ /**
46775
+ * ModuleDescriptorUpdated excludedAccessGroups.
46776
+ * @member {Array.<contentful.ISlugReference>} excludedAccessGroups
46777
+ * @memberof ModuleDescriptorUpdated
46778
+ * @instance
46779
+ */
46780
+ ModuleDescriptorUpdated.prototype.excludedAccessGroups = $util.emptyArray;
46781
+
46782
+ /**
46783
+ * ModuleDescriptorUpdated updatedAt.
46784
+ * @member {number|Long} updatedAt
46785
+ * @memberof ModuleDescriptorUpdated
46786
+ * @instance
46787
+ */
46788
+ ModuleDescriptorUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
46789
+
46790
+ /**
46791
+ * Creates a new ModuleDescriptorUpdated instance using the specified properties.
46792
+ * @function create
46793
+ * @memberof ModuleDescriptorUpdated
46794
+ * @static
46795
+ * @param {IModuleDescriptorUpdated=} [properties] Properties to set
46796
+ * @returns {ModuleDescriptorUpdated} ModuleDescriptorUpdated instance
46797
+ */
46798
+ ModuleDescriptorUpdated.create = function create(properties) {
46799
+ return new ModuleDescriptorUpdated(properties);
46800
+ };
46801
+
46802
+ /**
46803
+ * Encodes the specified ModuleDescriptorUpdated message. Does not implicitly {@link ModuleDescriptorUpdated.verify|verify} messages.
46804
+ * @function encode
46805
+ * @memberof ModuleDescriptorUpdated
46806
+ * @static
46807
+ * @param {IModuleDescriptorUpdated} message ModuleDescriptorUpdated message or plain object to encode
46808
+ * @param {$protobuf.Writer} [writer] Writer to encode to
46809
+ * @returns {$protobuf.Writer} Writer
46810
+ */
46811
+ ModuleDescriptorUpdated.encode = function encode(message, writer) {
46812
+ if (!writer)
46813
+ writer = $Writer.create();
46814
+ if (message.slug != null && message.hasOwnProperty("slug"))
46815
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
46816
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
46817
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityId);
46818
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
46819
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.entityType);
46820
+ if (message.accessGroups != null && message.accessGroups.length)
46821
+ for (var i = 0; i < message.accessGroups.length; ++i)
46822
+ $root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
46823
+ if (message.excludedAccessGroups != null && message.excludedAccessGroups.length)
46824
+ for (var i = 0; i < message.excludedAccessGroups.length; ++i)
46825
+ $root.contentful.SlugReference.encode(message.excludedAccessGroups[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
46826
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
46827
+ writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.updatedAt);
46828
+ return writer;
46829
+ };
46830
+
46831
+ /**
46832
+ * Encodes the specified ModuleDescriptorUpdated message, length delimited. Does not implicitly {@link ModuleDescriptorUpdated.verify|verify} messages.
46833
+ * @function encodeDelimited
46834
+ * @memberof ModuleDescriptorUpdated
46835
+ * @static
46836
+ * @param {IModuleDescriptorUpdated} message ModuleDescriptorUpdated message or plain object to encode
46837
+ * @param {$protobuf.Writer} [writer] Writer to encode to
46838
+ * @returns {$protobuf.Writer} Writer
46839
+ */
46840
+ ModuleDescriptorUpdated.encodeDelimited = function encodeDelimited(message, writer) {
46841
+ return this.encode(message, writer).ldelim();
46842
+ };
46843
+
46844
+ /**
46845
+ * Decodes a ModuleDescriptorUpdated message from the specified reader or buffer.
46846
+ * @function decode
46847
+ * @memberof ModuleDescriptorUpdated
46848
+ * @static
46849
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
46850
+ * @param {number} [length] Message length if known beforehand
46851
+ * @returns {ModuleDescriptorUpdated} ModuleDescriptorUpdated
46852
+ * @throws {Error} If the payload is not a reader or valid buffer
46853
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
46854
+ */
46855
+ ModuleDescriptorUpdated.decode = function decode(reader, length) {
46856
+ if (!(reader instanceof $Reader))
46857
+ reader = $Reader.create(reader);
46858
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ModuleDescriptorUpdated();
46859
+ while (reader.pos < end) {
46860
+ var tag = reader.uint32();
46861
+ switch (tag >>> 3) {
46862
+ case 1:
46863
+ message.slug = reader.string();
46864
+ break;
46865
+ case 2:
46866
+ message.entityId = reader.string();
46867
+ break;
46868
+ case 3:
46869
+ message.entityType = reader.string();
46870
+ break;
46871
+ case 4:
46872
+ if (!(message.accessGroups && message.accessGroups.length))
46873
+ message.accessGroups = [];
46874
+ message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
46875
+ break;
46876
+ case 5:
46877
+ if (!(message.excludedAccessGroups && message.excludedAccessGroups.length))
46878
+ message.excludedAccessGroups = [];
46879
+ message.excludedAccessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
46880
+ break;
46881
+ case 6:
46882
+ message.updatedAt = reader.uint64();
46883
+ break;
46884
+ default:
46885
+ reader.skipType(tag & 7);
46886
+ break;
46887
+ }
46888
+ }
46889
+ return message;
46890
+ };
46891
+
46892
+ /**
46893
+ * Decodes a ModuleDescriptorUpdated message from the specified reader or buffer, length delimited.
46894
+ * @function decodeDelimited
46895
+ * @memberof ModuleDescriptorUpdated
46896
+ * @static
46897
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
46898
+ * @returns {ModuleDescriptorUpdated} ModuleDescriptorUpdated
46899
+ * @throws {Error} If the payload is not a reader or valid buffer
46900
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
46901
+ */
46902
+ ModuleDescriptorUpdated.decodeDelimited = function decodeDelimited(reader) {
46903
+ if (!(reader instanceof $Reader))
46904
+ reader = new $Reader(reader);
46905
+ return this.decode(reader, reader.uint32());
46906
+ };
46907
+
46908
+ /**
46909
+ * Verifies a ModuleDescriptorUpdated message.
46910
+ * @function verify
46911
+ * @memberof ModuleDescriptorUpdated
46912
+ * @static
46913
+ * @param {Object.<string,*>} message Plain object to verify
46914
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
46915
+ */
46916
+ ModuleDescriptorUpdated.verify = function verify(message) {
46917
+ if (typeof message !== "object" || message === null)
46918
+ return "object expected";
46919
+ if (message.slug != null && message.hasOwnProperty("slug"))
46920
+ if (!$util.isString(message.slug))
46921
+ return "slug: string expected";
46922
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
46923
+ if (!$util.isString(message.entityId))
46924
+ return "entityId: string expected";
46925
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
46926
+ if (!$util.isString(message.entityType))
46927
+ return "entityType: string expected";
46928
+ if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
46929
+ if (!Array.isArray(message.accessGroups))
46930
+ return "accessGroups: array expected";
46931
+ for (var i = 0; i < message.accessGroups.length; ++i) {
46932
+ var error = $root.contentful.SlugReference.verify(message.accessGroups[i]);
46933
+ if (error)
46934
+ return "accessGroups." + error;
46935
+ }
46936
+ }
46937
+ if (message.excludedAccessGroups != null && message.hasOwnProperty("excludedAccessGroups")) {
46938
+ if (!Array.isArray(message.excludedAccessGroups))
46939
+ return "excludedAccessGroups: array expected";
46940
+ for (var i = 0; i < message.excludedAccessGroups.length; ++i) {
46941
+ var error = $root.contentful.SlugReference.verify(message.excludedAccessGroups[i]);
46942
+ if (error)
46943
+ return "excludedAccessGroups." + error;
46944
+ }
46945
+ }
46946
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
46947
+ if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
46948
+ return "updatedAt: integer|Long expected";
46949
+ return null;
46950
+ };
46951
+
46952
+ /**
46953
+ * Creates a ModuleDescriptorUpdated message from a plain object. Also converts values to their respective internal types.
46954
+ * @function fromObject
46955
+ * @memberof ModuleDescriptorUpdated
46956
+ * @static
46957
+ * @param {Object.<string,*>} object Plain object
46958
+ * @returns {ModuleDescriptorUpdated} ModuleDescriptorUpdated
46959
+ */
46960
+ ModuleDescriptorUpdated.fromObject = function fromObject(object) {
46961
+ if (object instanceof $root.ModuleDescriptorUpdated)
46962
+ return object;
46963
+ var message = new $root.ModuleDescriptorUpdated();
46964
+ if (object.slug != null)
46965
+ message.slug = String(object.slug);
46966
+ if (object.entityId != null)
46967
+ message.entityId = String(object.entityId);
46968
+ if (object.entityType != null)
46969
+ message.entityType = String(object.entityType);
46970
+ if (object.accessGroups) {
46971
+ if (!Array.isArray(object.accessGroups))
46972
+ throw TypeError(".ModuleDescriptorUpdated.accessGroups: array expected");
46973
+ message.accessGroups = [];
46974
+ for (var i = 0; i < object.accessGroups.length; ++i) {
46975
+ if (typeof object.accessGroups[i] !== "object")
46976
+ throw TypeError(".ModuleDescriptorUpdated.accessGroups: object expected");
46977
+ message.accessGroups[i] = $root.contentful.SlugReference.fromObject(object.accessGroups[i]);
46978
+ }
46979
+ }
46980
+ if (object.excludedAccessGroups) {
46981
+ if (!Array.isArray(object.excludedAccessGroups))
46982
+ throw TypeError(".ModuleDescriptorUpdated.excludedAccessGroups: array expected");
46983
+ message.excludedAccessGroups = [];
46984
+ for (var i = 0; i < object.excludedAccessGroups.length; ++i) {
46985
+ if (typeof object.excludedAccessGroups[i] !== "object")
46986
+ throw TypeError(".ModuleDescriptorUpdated.excludedAccessGroups: object expected");
46987
+ message.excludedAccessGroups[i] = $root.contentful.SlugReference.fromObject(object.excludedAccessGroups[i]);
46988
+ }
46989
+ }
46990
+ if (object.updatedAt != null)
46991
+ if ($util.Long)
46992
+ (message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
46993
+ else if (typeof object.updatedAt === "string")
46994
+ message.updatedAt = parseInt(object.updatedAt, 10);
46995
+ else if (typeof object.updatedAt === "number")
46996
+ message.updatedAt = object.updatedAt;
46997
+ else if (typeof object.updatedAt === "object")
46998
+ message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
46999
+ return message;
47000
+ };
47001
+
47002
+ /**
47003
+ * Creates a plain object from a ModuleDescriptorUpdated message. Also converts values to other types if specified.
47004
+ * @function toObject
47005
+ * @memberof ModuleDescriptorUpdated
47006
+ * @static
47007
+ * @param {ModuleDescriptorUpdated} message ModuleDescriptorUpdated
47008
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
47009
+ * @returns {Object.<string,*>} Plain object
47010
+ */
47011
+ ModuleDescriptorUpdated.toObject = function toObject(message, options) {
47012
+ if (!options)
47013
+ options = {};
47014
+ var object = {};
47015
+ if (options.arrays || options.defaults) {
47016
+ object.accessGroups = [];
47017
+ object.excludedAccessGroups = [];
47018
+ }
47019
+ if (options.defaults) {
47020
+ object.slug = "";
47021
+ object.entityId = "";
47022
+ object.entityType = "";
47023
+ if ($util.Long) {
47024
+ var long = new $util.Long(0, 0, true);
47025
+ object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
47026
+ } else
47027
+ object.updatedAt = options.longs === String ? "0" : 0;
47028
+ }
47029
+ if (message.slug != null && message.hasOwnProperty("slug"))
47030
+ object.slug = message.slug;
47031
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
47032
+ object.entityId = message.entityId;
47033
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
47034
+ object.entityType = message.entityType;
47035
+ if (message.accessGroups && message.accessGroups.length) {
47036
+ object.accessGroups = [];
47037
+ for (var j = 0; j < message.accessGroups.length; ++j)
47038
+ object.accessGroups[j] = $root.contentful.SlugReference.toObject(message.accessGroups[j], options);
47039
+ }
47040
+ if (message.excludedAccessGroups && message.excludedAccessGroups.length) {
47041
+ object.excludedAccessGroups = [];
47042
+ for (var j = 0; j < message.excludedAccessGroups.length; ++j)
47043
+ object.excludedAccessGroups[j] = $root.contentful.SlugReference.toObject(message.excludedAccessGroups[j], options);
47044
+ }
47045
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
47046
+ if (typeof message.updatedAt === "number")
47047
+ object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
47048
+ else
47049
+ 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;
47050
+ return object;
47051
+ };
47052
+
47053
+ /**
47054
+ * Converts this ModuleDescriptorUpdated to JSON.
47055
+ * @function toJSON
47056
+ * @memberof ModuleDescriptorUpdated
47057
+ * @instance
47058
+ * @returns {Object.<string,*>} JSON object
47059
+ */
47060
+ ModuleDescriptorUpdated.prototype.toJSON = function toJSON() {
47061
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
47062
+ };
47063
+
47064
+ return ModuleDescriptorUpdated;
47065
+ })();
47066
+
47067
+ $root.ModuleDescriptorDeleted = (function() {
47068
+
47069
+ /**
47070
+ * Properties of a ModuleDescriptorDeleted.
47071
+ * @exports IModuleDescriptorDeleted
47072
+ * @interface IModuleDescriptorDeleted
47073
+ * @property {string|null} [slug] ModuleDescriptorDeleted slug
47074
+ * @property {string|null} [entityId] ModuleDescriptorDeleted entityId
47075
+ * @property {string|null} [entityType] ModuleDescriptorDeleted entityType
47076
+ * @property {number|Long|null} [deletedAt] ModuleDescriptorDeleted deletedAt
47077
+ */
47078
+
47079
+ /**
47080
+ * Constructs a new ModuleDescriptorDeleted.
47081
+ * @exports ModuleDescriptorDeleted
47082
+ * @classdesc Represents a ModuleDescriptorDeleted.
47083
+ * @implements IModuleDescriptorDeleted
47084
+ * @constructor
47085
+ * @param {IModuleDescriptorDeleted=} [properties] Properties to set
47086
+ */
47087
+ function ModuleDescriptorDeleted(properties) {
47088
+ if (properties)
47089
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
47090
+ if (properties[keys[i]] != null)
47091
+ this[keys[i]] = properties[keys[i]];
47092
+ }
47093
+
47094
+ /**
47095
+ * ModuleDescriptorDeleted slug.
47096
+ * @member {string} slug
47097
+ * @memberof ModuleDescriptorDeleted
47098
+ * @instance
47099
+ */
47100
+ ModuleDescriptorDeleted.prototype.slug = "";
47101
+
47102
+ /**
47103
+ * ModuleDescriptorDeleted entityId.
47104
+ * @member {string} entityId
47105
+ * @memberof ModuleDescriptorDeleted
47106
+ * @instance
47107
+ */
47108
+ ModuleDescriptorDeleted.prototype.entityId = "";
47109
+
47110
+ /**
47111
+ * ModuleDescriptorDeleted entityType.
47112
+ * @member {string} entityType
47113
+ * @memberof ModuleDescriptorDeleted
47114
+ * @instance
47115
+ */
47116
+ ModuleDescriptorDeleted.prototype.entityType = "";
47117
+
47118
+ /**
47119
+ * ModuleDescriptorDeleted deletedAt.
47120
+ * @member {number|Long} deletedAt
47121
+ * @memberof ModuleDescriptorDeleted
47122
+ * @instance
47123
+ */
47124
+ ModuleDescriptorDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
47125
+
47126
+ /**
47127
+ * Creates a new ModuleDescriptorDeleted instance using the specified properties.
47128
+ * @function create
47129
+ * @memberof ModuleDescriptorDeleted
47130
+ * @static
47131
+ * @param {IModuleDescriptorDeleted=} [properties] Properties to set
47132
+ * @returns {ModuleDescriptorDeleted} ModuleDescriptorDeleted instance
47133
+ */
47134
+ ModuleDescriptorDeleted.create = function create(properties) {
47135
+ return new ModuleDescriptorDeleted(properties);
47136
+ };
47137
+
47138
+ /**
47139
+ * Encodes the specified ModuleDescriptorDeleted message. Does not implicitly {@link ModuleDescriptorDeleted.verify|verify} messages.
47140
+ * @function encode
47141
+ * @memberof ModuleDescriptorDeleted
47142
+ * @static
47143
+ * @param {IModuleDescriptorDeleted} message ModuleDescriptorDeleted message or plain object to encode
47144
+ * @param {$protobuf.Writer} [writer] Writer to encode to
47145
+ * @returns {$protobuf.Writer} Writer
47146
+ */
47147
+ ModuleDescriptorDeleted.encode = function encode(message, writer) {
47148
+ if (!writer)
47149
+ writer = $Writer.create();
47150
+ if (message.slug != null && message.hasOwnProperty("slug"))
47151
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
47152
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
47153
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityId);
47154
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
47155
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.entityType);
47156
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
47157
+ writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.deletedAt);
47158
+ return writer;
47159
+ };
47160
+
47161
+ /**
47162
+ * Encodes the specified ModuleDescriptorDeleted message, length delimited. Does not implicitly {@link ModuleDescriptorDeleted.verify|verify} messages.
47163
+ * @function encodeDelimited
47164
+ * @memberof ModuleDescriptorDeleted
47165
+ * @static
47166
+ * @param {IModuleDescriptorDeleted} message ModuleDescriptorDeleted message or plain object to encode
47167
+ * @param {$protobuf.Writer} [writer] Writer to encode to
47168
+ * @returns {$protobuf.Writer} Writer
47169
+ */
47170
+ ModuleDescriptorDeleted.encodeDelimited = function encodeDelimited(message, writer) {
47171
+ return this.encode(message, writer).ldelim();
47172
+ };
47173
+
47174
+ /**
47175
+ * Decodes a ModuleDescriptorDeleted message from the specified reader or buffer.
47176
+ * @function decode
47177
+ * @memberof ModuleDescriptorDeleted
47178
+ * @static
47179
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
47180
+ * @param {number} [length] Message length if known beforehand
47181
+ * @returns {ModuleDescriptorDeleted} ModuleDescriptorDeleted
47182
+ * @throws {Error} If the payload is not a reader or valid buffer
47183
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
47184
+ */
47185
+ ModuleDescriptorDeleted.decode = function decode(reader, length) {
47186
+ if (!(reader instanceof $Reader))
47187
+ reader = $Reader.create(reader);
47188
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ModuleDescriptorDeleted();
47189
+ while (reader.pos < end) {
47190
+ var tag = reader.uint32();
47191
+ switch (tag >>> 3) {
47192
+ case 1:
47193
+ message.slug = reader.string();
47194
+ break;
47195
+ case 2:
47196
+ message.entityId = reader.string();
47197
+ break;
47198
+ case 3:
47199
+ message.entityType = reader.string();
47200
+ break;
47201
+ case 4:
47202
+ message.deletedAt = reader.uint64();
47203
+ break;
47204
+ default:
47205
+ reader.skipType(tag & 7);
47206
+ break;
47207
+ }
47208
+ }
47209
+ return message;
47210
+ };
47211
+
47212
+ /**
47213
+ * Decodes a ModuleDescriptorDeleted message from the specified reader or buffer, length delimited.
47214
+ * @function decodeDelimited
47215
+ * @memberof ModuleDescriptorDeleted
47216
+ * @static
47217
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
47218
+ * @returns {ModuleDescriptorDeleted} ModuleDescriptorDeleted
47219
+ * @throws {Error} If the payload is not a reader or valid buffer
47220
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
47221
+ */
47222
+ ModuleDescriptorDeleted.decodeDelimited = function decodeDelimited(reader) {
47223
+ if (!(reader instanceof $Reader))
47224
+ reader = new $Reader(reader);
47225
+ return this.decode(reader, reader.uint32());
47226
+ };
47227
+
47228
+ /**
47229
+ * Verifies a ModuleDescriptorDeleted message.
47230
+ * @function verify
47231
+ * @memberof ModuleDescriptorDeleted
47232
+ * @static
47233
+ * @param {Object.<string,*>} message Plain object to verify
47234
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
47235
+ */
47236
+ ModuleDescriptorDeleted.verify = function verify(message) {
47237
+ if (typeof message !== "object" || message === null)
47238
+ return "object expected";
47239
+ if (message.slug != null && message.hasOwnProperty("slug"))
47240
+ if (!$util.isString(message.slug))
47241
+ return "slug: string expected";
47242
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
47243
+ if (!$util.isString(message.entityId))
47244
+ return "entityId: string expected";
47245
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
47246
+ if (!$util.isString(message.entityType))
47247
+ return "entityType: string expected";
47248
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
47249
+ if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
47250
+ return "deletedAt: integer|Long expected";
47251
+ return null;
47252
+ };
47253
+
47254
+ /**
47255
+ * Creates a ModuleDescriptorDeleted message from a plain object. Also converts values to their respective internal types.
47256
+ * @function fromObject
47257
+ * @memberof ModuleDescriptorDeleted
47258
+ * @static
47259
+ * @param {Object.<string,*>} object Plain object
47260
+ * @returns {ModuleDescriptorDeleted} ModuleDescriptorDeleted
47261
+ */
47262
+ ModuleDescriptorDeleted.fromObject = function fromObject(object) {
47263
+ if (object instanceof $root.ModuleDescriptorDeleted)
47264
+ return object;
47265
+ var message = new $root.ModuleDescriptorDeleted();
47266
+ if (object.slug != null)
47267
+ message.slug = String(object.slug);
47268
+ if (object.entityId != null)
47269
+ message.entityId = String(object.entityId);
47270
+ if (object.entityType != null)
47271
+ message.entityType = String(object.entityType);
47272
+ if (object.deletedAt != null)
47273
+ if ($util.Long)
47274
+ (message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
47275
+ else if (typeof object.deletedAt === "string")
47276
+ message.deletedAt = parseInt(object.deletedAt, 10);
47277
+ else if (typeof object.deletedAt === "number")
47278
+ message.deletedAt = object.deletedAt;
47279
+ else if (typeof object.deletedAt === "object")
47280
+ message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
47281
+ return message;
47282
+ };
47283
+
47284
+ /**
47285
+ * Creates a plain object from a ModuleDescriptorDeleted message. Also converts values to other types if specified.
47286
+ * @function toObject
47287
+ * @memberof ModuleDescriptorDeleted
47288
+ * @static
47289
+ * @param {ModuleDescriptorDeleted} message ModuleDescriptorDeleted
47290
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
47291
+ * @returns {Object.<string,*>} Plain object
47292
+ */
47293
+ ModuleDescriptorDeleted.toObject = function toObject(message, options) {
47294
+ if (!options)
47295
+ options = {};
47296
+ var object = {};
47297
+ if (options.defaults) {
47298
+ object.slug = "";
47299
+ object.entityId = "";
47300
+ object.entityType = "";
47301
+ if ($util.Long) {
47302
+ var long = new $util.Long(0, 0, true);
47303
+ object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
47304
+ } else
47305
+ object.deletedAt = options.longs === String ? "0" : 0;
47306
+ }
47307
+ if (message.slug != null && message.hasOwnProperty("slug"))
47308
+ object.slug = message.slug;
47309
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
47310
+ object.entityId = message.entityId;
47311
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
47312
+ object.entityType = message.entityType;
47313
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
47314
+ if (typeof message.deletedAt === "number")
47315
+ object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
47316
+ else
47317
+ 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;
47318
+ return object;
47319
+ };
47320
+
47321
+ /**
47322
+ * Converts this ModuleDescriptorDeleted to JSON.
47323
+ * @function toJSON
47324
+ * @memberof ModuleDescriptorDeleted
47325
+ * @instance
47326
+ * @returns {Object.<string,*>} JSON object
47327
+ */
47328
+ ModuleDescriptorDeleted.prototype.toJSON = function toJSON() {
47329
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
47330
+ };
47331
+
47332
+ return ModuleDescriptorDeleted;
47333
+ })();
47334
+
46355
47335
  $root.WakeupPlaylistCreated = (function() {
46356
47336
 
46357
47337
  /**
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.151.0"
19
+ "version": "1.152.0"
20
20
  }