@headspace/protos-events 1.634.0 → 1.635.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
@@ -57273,300 +57273,6 @@ export class GoogleSubscriptionExpired implements IGoogleSubscriptionExpired {
57273
57273
  public toJSON(): { [k: string]: any };
57274
57274
  }
57275
57275
 
57276
- /** Properties of a GuidedProgramCreated. */
57277
- export interface IGuidedProgramCreated {
57278
-
57279
- /** GuidedProgramCreated slug */
57280
- slug?: (string|null);
57281
-
57282
- /** GuidedProgramCreated createdAt */
57283
- createdAt?: (number|Long|null);
57284
-
57285
- /** GuidedProgramCreated thumbnailMediaId */
57286
- thumbnailMediaId?: (number|null);
57287
- }
57288
-
57289
- /** Represents a GuidedProgramCreated. */
57290
- export class GuidedProgramCreated implements IGuidedProgramCreated {
57291
-
57292
- /**
57293
- * Constructs a new GuidedProgramCreated.
57294
- * @param [properties] Properties to set
57295
- */
57296
- constructor(properties?: IGuidedProgramCreated);
57297
-
57298
- /** GuidedProgramCreated slug. */
57299
- public slug: string;
57300
-
57301
- /** GuidedProgramCreated createdAt. */
57302
- public createdAt: (number|Long);
57303
-
57304
- /** GuidedProgramCreated thumbnailMediaId. */
57305
- public thumbnailMediaId: number;
57306
-
57307
- /**
57308
- * Creates a new GuidedProgramCreated instance using the specified properties.
57309
- * @param [properties] Properties to set
57310
- * @returns GuidedProgramCreated instance
57311
- */
57312
- public static create(properties?: IGuidedProgramCreated): GuidedProgramCreated;
57313
-
57314
- /**
57315
- * Encodes the specified GuidedProgramCreated message. Does not implicitly {@link GuidedProgramCreated.verify|verify} messages.
57316
- * @param message GuidedProgramCreated message or plain object to encode
57317
- * @param [writer] Writer to encode to
57318
- * @returns Writer
57319
- */
57320
- public static encode(message: IGuidedProgramCreated, writer?: $protobuf.Writer): $protobuf.Writer;
57321
-
57322
- /**
57323
- * Encodes the specified GuidedProgramCreated message, length delimited. Does not implicitly {@link GuidedProgramCreated.verify|verify} messages.
57324
- * @param message GuidedProgramCreated message or plain object to encode
57325
- * @param [writer] Writer to encode to
57326
- * @returns Writer
57327
- */
57328
- public static encodeDelimited(message: IGuidedProgramCreated, writer?: $protobuf.Writer): $protobuf.Writer;
57329
-
57330
- /**
57331
- * Decodes a GuidedProgramCreated message from the specified reader or buffer.
57332
- * @param reader Reader or buffer to decode from
57333
- * @param [length] Message length if known beforehand
57334
- * @returns GuidedProgramCreated
57335
- * @throws {Error} If the payload is not a reader or valid buffer
57336
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
57337
- */
57338
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GuidedProgramCreated;
57339
-
57340
- /**
57341
- * Decodes a GuidedProgramCreated message from the specified reader or buffer, length delimited.
57342
- * @param reader Reader or buffer to decode from
57343
- * @returns GuidedProgramCreated
57344
- * @throws {Error} If the payload is not a reader or valid buffer
57345
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
57346
- */
57347
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): GuidedProgramCreated;
57348
-
57349
- /**
57350
- * Verifies a GuidedProgramCreated message.
57351
- * @param message Plain object to verify
57352
- * @returns `null` if valid, otherwise the reason why it is not
57353
- */
57354
- public static verify(message: { [k: string]: any }): (string|null);
57355
-
57356
- /**
57357
- * Creates a GuidedProgramCreated message from a plain object. Also converts values to their respective internal types.
57358
- * @param object Plain object
57359
- * @returns GuidedProgramCreated
57360
- */
57361
- public static fromObject(object: { [k: string]: any }): GuidedProgramCreated;
57362
-
57363
- /**
57364
- * Creates a plain object from a GuidedProgramCreated message. Also converts values to other types if specified.
57365
- * @param message GuidedProgramCreated
57366
- * @param [options] Conversion options
57367
- * @returns Plain object
57368
- */
57369
- public static toObject(message: GuidedProgramCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
57370
-
57371
- /**
57372
- * Converts this GuidedProgramCreated to JSON.
57373
- * @returns JSON object
57374
- */
57375
- public toJSON(): { [k: string]: any };
57376
- }
57377
-
57378
- /** Properties of a GuidedProgramUpdated. */
57379
- export interface IGuidedProgramUpdated {
57380
-
57381
- /** GuidedProgramUpdated slug */
57382
- slug?: (string|null);
57383
-
57384
- /** GuidedProgramUpdated updatedAt */
57385
- updatedAt?: (number|Long|null);
57386
-
57387
- /** GuidedProgramUpdated thumbnailMediaId */
57388
- thumbnailMediaId?: (number|null);
57389
- }
57390
-
57391
- /** Represents a GuidedProgramUpdated. */
57392
- export class GuidedProgramUpdated implements IGuidedProgramUpdated {
57393
-
57394
- /**
57395
- * Constructs a new GuidedProgramUpdated.
57396
- * @param [properties] Properties to set
57397
- */
57398
- constructor(properties?: IGuidedProgramUpdated);
57399
-
57400
- /** GuidedProgramUpdated slug. */
57401
- public slug: string;
57402
-
57403
- /** GuidedProgramUpdated updatedAt. */
57404
- public updatedAt: (number|Long);
57405
-
57406
- /** GuidedProgramUpdated thumbnailMediaId. */
57407
- public thumbnailMediaId: number;
57408
-
57409
- /**
57410
- * Creates a new GuidedProgramUpdated instance using the specified properties.
57411
- * @param [properties] Properties to set
57412
- * @returns GuidedProgramUpdated instance
57413
- */
57414
- public static create(properties?: IGuidedProgramUpdated): GuidedProgramUpdated;
57415
-
57416
- /**
57417
- * Encodes the specified GuidedProgramUpdated message. Does not implicitly {@link GuidedProgramUpdated.verify|verify} messages.
57418
- * @param message GuidedProgramUpdated message or plain object to encode
57419
- * @param [writer] Writer to encode to
57420
- * @returns Writer
57421
- */
57422
- public static encode(message: IGuidedProgramUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
57423
-
57424
- /**
57425
- * Encodes the specified GuidedProgramUpdated message, length delimited. Does not implicitly {@link GuidedProgramUpdated.verify|verify} messages.
57426
- * @param message GuidedProgramUpdated message or plain object to encode
57427
- * @param [writer] Writer to encode to
57428
- * @returns Writer
57429
- */
57430
- public static encodeDelimited(message: IGuidedProgramUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
57431
-
57432
- /**
57433
- * Decodes a GuidedProgramUpdated message from the specified reader or buffer.
57434
- * @param reader Reader or buffer to decode from
57435
- * @param [length] Message length if known beforehand
57436
- * @returns GuidedProgramUpdated
57437
- * @throws {Error} If the payload is not a reader or valid buffer
57438
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
57439
- */
57440
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GuidedProgramUpdated;
57441
-
57442
- /**
57443
- * Decodes a GuidedProgramUpdated message from the specified reader or buffer, length delimited.
57444
- * @param reader Reader or buffer to decode from
57445
- * @returns GuidedProgramUpdated
57446
- * @throws {Error} If the payload is not a reader or valid buffer
57447
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
57448
- */
57449
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): GuidedProgramUpdated;
57450
-
57451
- /**
57452
- * Verifies a GuidedProgramUpdated message.
57453
- * @param message Plain object to verify
57454
- * @returns `null` if valid, otherwise the reason why it is not
57455
- */
57456
- public static verify(message: { [k: string]: any }): (string|null);
57457
-
57458
- /**
57459
- * Creates a GuidedProgramUpdated message from a plain object. Also converts values to their respective internal types.
57460
- * @param object Plain object
57461
- * @returns GuidedProgramUpdated
57462
- */
57463
- public static fromObject(object: { [k: string]: any }): GuidedProgramUpdated;
57464
-
57465
- /**
57466
- * Creates a plain object from a GuidedProgramUpdated message. Also converts values to other types if specified.
57467
- * @param message GuidedProgramUpdated
57468
- * @param [options] Conversion options
57469
- * @returns Plain object
57470
- */
57471
- public static toObject(message: GuidedProgramUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
57472
-
57473
- /**
57474
- * Converts this GuidedProgramUpdated to JSON.
57475
- * @returns JSON object
57476
- */
57477
- public toJSON(): { [k: string]: any };
57478
- }
57479
-
57480
- /** Properties of a GuidedProgramDeleted. */
57481
- export interface IGuidedProgramDeleted {
57482
-
57483
- /** GuidedProgramDeleted slug */
57484
- slug?: (string|null);
57485
- }
57486
-
57487
- /** Represents a GuidedProgramDeleted. */
57488
- export class GuidedProgramDeleted implements IGuidedProgramDeleted {
57489
-
57490
- /**
57491
- * Constructs a new GuidedProgramDeleted.
57492
- * @param [properties] Properties to set
57493
- */
57494
- constructor(properties?: IGuidedProgramDeleted);
57495
-
57496
- /** GuidedProgramDeleted slug. */
57497
- public slug: string;
57498
-
57499
- /**
57500
- * Creates a new GuidedProgramDeleted instance using the specified properties.
57501
- * @param [properties] Properties to set
57502
- * @returns GuidedProgramDeleted instance
57503
- */
57504
- public static create(properties?: IGuidedProgramDeleted): GuidedProgramDeleted;
57505
-
57506
- /**
57507
- * Encodes the specified GuidedProgramDeleted message. Does not implicitly {@link GuidedProgramDeleted.verify|verify} messages.
57508
- * @param message GuidedProgramDeleted message or plain object to encode
57509
- * @param [writer] Writer to encode to
57510
- * @returns Writer
57511
- */
57512
- public static encode(message: IGuidedProgramDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
57513
-
57514
- /**
57515
- * Encodes the specified GuidedProgramDeleted message, length delimited. Does not implicitly {@link GuidedProgramDeleted.verify|verify} messages.
57516
- * @param message GuidedProgramDeleted message or plain object to encode
57517
- * @param [writer] Writer to encode to
57518
- * @returns Writer
57519
- */
57520
- public static encodeDelimited(message: IGuidedProgramDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
57521
-
57522
- /**
57523
- * Decodes a GuidedProgramDeleted message from the specified reader or buffer.
57524
- * @param reader Reader or buffer to decode from
57525
- * @param [length] Message length if known beforehand
57526
- * @returns GuidedProgramDeleted
57527
- * @throws {Error} If the payload is not a reader or valid buffer
57528
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
57529
- */
57530
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GuidedProgramDeleted;
57531
-
57532
- /**
57533
- * Decodes a GuidedProgramDeleted message from the specified reader or buffer, length delimited.
57534
- * @param reader Reader or buffer to decode from
57535
- * @returns GuidedProgramDeleted
57536
- * @throws {Error} If the payload is not a reader or valid buffer
57537
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
57538
- */
57539
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): GuidedProgramDeleted;
57540
-
57541
- /**
57542
- * Verifies a GuidedProgramDeleted message.
57543
- * @param message Plain object to verify
57544
- * @returns `null` if valid, otherwise the reason why it is not
57545
- */
57546
- public static verify(message: { [k: string]: any }): (string|null);
57547
-
57548
- /**
57549
- * Creates a GuidedProgramDeleted message from a plain object. Also converts values to their respective internal types.
57550
- * @param object Plain object
57551
- * @returns GuidedProgramDeleted
57552
- */
57553
- public static fromObject(object: { [k: string]: any }): GuidedProgramDeleted;
57554
-
57555
- /**
57556
- * Creates a plain object from a GuidedProgramDeleted message. Also converts values to other types if specified.
57557
- * @param message GuidedProgramDeleted
57558
- * @param [options] Conversion options
57559
- * @returns Plain object
57560
- */
57561
- public static toObject(message: GuidedProgramDeleted, options?: $protobuf.IConversionOptions): { [k: string]: any };
57562
-
57563
- /**
57564
- * Converts this GuidedProgramDeleted to JSON.
57565
- * @returns JSON object
57566
- */
57567
- public toJSON(): { [k: string]: any };
57568
- }
57569
-
57570
57276
  /** Properties of an InteractiveJournalingParticipant. */
57571
57277
  export interface IInteractiveJournalingParticipant {
57572
57278
 
package/lib/index.js CHANGED
@@ -160688,685 +160688,6 @@ $root.GoogleSubscriptionExpired = (function() {
160688
160688
  return GoogleSubscriptionExpired;
160689
160689
  })();
160690
160690
 
160691
- $root.GuidedProgramCreated = (function() {
160692
-
160693
- /**
160694
- * Properties of a GuidedProgramCreated.
160695
- * @name IGuidedProgramCreated
160696
- * @interface IGuidedProgramCreated
160697
- * @property {string|null} [slug] GuidedProgramCreated slug
160698
- * @property {number|Long|null} [createdAt] GuidedProgramCreated createdAt
160699
- * @property {number|null} [thumbnailMediaId] GuidedProgramCreated thumbnailMediaId
160700
- */
160701
-
160702
- /**
160703
- * Constructs a new GuidedProgramCreated.
160704
- * @name GuidedProgramCreated
160705
- * @classdesc Represents a GuidedProgramCreated.
160706
- * @implements IGuidedProgramCreated
160707
- * @constructor
160708
- * @param {IGuidedProgramCreated=} [properties] Properties to set
160709
- */
160710
- function GuidedProgramCreated(properties) {
160711
- if (properties)
160712
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
160713
- if (properties[keys[i]] != null)
160714
- this[keys[i]] = properties[keys[i]];
160715
- }
160716
-
160717
- /**
160718
- * GuidedProgramCreated slug.
160719
- * @member {string} slug
160720
- * @memberof GuidedProgramCreated
160721
- * @instance
160722
- */
160723
- GuidedProgramCreated.prototype.slug = "";
160724
-
160725
- /**
160726
- * GuidedProgramCreated createdAt.
160727
- * @member {number|Long} createdAt
160728
- * @memberof GuidedProgramCreated
160729
- * @instance
160730
- */
160731
- GuidedProgramCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
160732
-
160733
- /**
160734
- * GuidedProgramCreated thumbnailMediaId.
160735
- * @member {number} thumbnailMediaId
160736
- * @memberof GuidedProgramCreated
160737
- * @instance
160738
- */
160739
- GuidedProgramCreated.prototype.thumbnailMediaId = 0;
160740
-
160741
- /**
160742
- * Creates a new GuidedProgramCreated instance using the specified properties.
160743
- * @function create
160744
- * @memberof GuidedProgramCreated
160745
- * @static
160746
- * @param {IGuidedProgramCreated=} [properties] Properties to set
160747
- * @returns {GuidedProgramCreated} GuidedProgramCreated instance
160748
- */
160749
- GuidedProgramCreated.create = function create(properties) {
160750
- return new GuidedProgramCreated(properties);
160751
- };
160752
-
160753
- /**
160754
- * Encodes the specified GuidedProgramCreated message. Does not implicitly {@link GuidedProgramCreated.verify|verify} messages.
160755
- * @function encode
160756
- * @memberof GuidedProgramCreated
160757
- * @static
160758
- * @param {IGuidedProgramCreated} message GuidedProgramCreated message or plain object to encode
160759
- * @param {$protobuf.Writer} [writer] Writer to encode to
160760
- * @returns {$protobuf.Writer} Writer
160761
- */
160762
- GuidedProgramCreated.encode = function encode(message, writer) {
160763
- if (!writer)
160764
- writer = $Writer.create();
160765
- if (message.slug != null && message.hasOwnProperty("slug"))
160766
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
160767
- if (message.createdAt != null && message.hasOwnProperty("createdAt"))
160768
- writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.createdAt);
160769
- if (message.thumbnailMediaId != null && message.hasOwnProperty("thumbnailMediaId"))
160770
- writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.thumbnailMediaId);
160771
- return writer;
160772
- };
160773
-
160774
- /**
160775
- * Encodes the specified GuidedProgramCreated message, length delimited. Does not implicitly {@link GuidedProgramCreated.verify|verify} messages.
160776
- * @function encodeDelimited
160777
- * @memberof GuidedProgramCreated
160778
- * @static
160779
- * @param {IGuidedProgramCreated} message GuidedProgramCreated message or plain object to encode
160780
- * @param {$protobuf.Writer} [writer] Writer to encode to
160781
- * @returns {$protobuf.Writer} Writer
160782
- */
160783
- GuidedProgramCreated.encodeDelimited = function encodeDelimited(message, writer) {
160784
- return this.encode(message, writer).ldelim();
160785
- };
160786
-
160787
- /**
160788
- * Decodes a GuidedProgramCreated message from the specified reader or buffer.
160789
- * @function decode
160790
- * @memberof GuidedProgramCreated
160791
- * @static
160792
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
160793
- * @param {number} [length] Message length if known beforehand
160794
- * @returns {GuidedProgramCreated} GuidedProgramCreated
160795
- * @throws {Error} If the payload is not a reader or valid buffer
160796
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
160797
- */
160798
- GuidedProgramCreated.decode = function decode(reader, length) {
160799
- if (!(reader instanceof $Reader))
160800
- reader = $Reader.create(reader);
160801
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.GuidedProgramCreated();
160802
- while (reader.pos < end) {
160803
- var tag = reader.uint32();
160804
- switch (tag >>> 3) {
160805
- case 1:
160806
- message.slug = reader.string();
160807
- break;
160808
- case 2:
160809
- message.createdAt = reader.uint64();
160810
- break;
160811
- case 3:
160812
- message.thumbnailMediaId = reader.uint32();
160813
- break;
160814
- default:
160815
- reader.skipType(tag & 7);
160816
- break;
160817
- }
160818
- }
160819
- return message;
160820
- };
160821
-
160822
- /**
160823
- * Decodes a GuidedProgramCreated message from the specified reader or buffer, length delimited.
160824
- * @function decodeDelimited
160825
- * @memberof GuidedProgramCreated
160826
- * @static
160827
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
160828
- * @returns {GuidedProgramCreated} GuidedProgramCreated
160829
- * @throws {Error} If the payload is not a reader or valid buffer
160830
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
160831
- */
160832
- GuidedProgramCreated.decodeDelimited = function decodeDelimited(reader) {
160833
- if (!(reader instanceof $Reader))
160834
- reader = new $Reader(reader);
160835
- return this.decode(reader, reader.uint32());
160836
- };
160837
-
160838
- /**
160839
- * Verifies a GuidedProgramCreated message.
160840
- * @function verify
160841
- * @memberof GuidedProgramCreated
160842
- * @static
160843
- * @param {Object.<string,*>} message Plain object to verify
160844
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
160845
- */
160846
- GuidedProgramCreated.verify = function verify(message) {
160847
- if (typeof message !== "object" || message === null)
160848
- return "object expected";
160849
- if (message.slug != null && message.hasOwnProperty("slug"))
160850
- if (!$util.isString(message.slug))
160851
- return "slug: string expected";
160852
- if (message.createdAt != null && message.hasOwnProperty("createdAt"))
160853
- if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
160854
- return "createdAt: integer|Long expected";
160855
- if (message.thumbnailMediaId != null && message.hasOwnProperty("thumbnailMediaId"))
160856
- if (!$util.isInteger(message.thumbnailMediaId))
160857
- return "thumbnailMediaId: integer expected";
160858
- return null;
160859
- };
160860
-
160861
- /**
160862
- * Creates a GuidedProgramCreated message from a plain object. Also converts values to their respective internal types.
160863
- * @function fromObject
160864
- * @memberof GuidedProgramCreated
160865
- * @static
160866
- * @param {Object.<string,*>} object Plain object
160867
- * @returns {GuidedProgramCreated} GuidedProgramCreated
160868
- */
160869
- GuidedProgramCreated.fromObject = function fromObject(object) {
160870
- if (object instanceof $root.GuidedProgramCreated)
160871
- return object;
160872
- var message = new $root.GuidedProgramCreated();
160873
- if (object.slug != null)
160874
- message.slug = String(object.slug);
160875
- if (object.createdAt != null)
160876
- if ($util.Long)
160877
- (message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
160878
- else if (typeof object.createdAt === "string")
160879
- message.createdAt = parseInt(object.createdAt, 10);
160880
- else if (typeof object.createdAt === "number")
160881
- message.createdAt = object.createdAt;
160882
- else if (typeof object.createdAt === "object")
160883
- message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
160884
- if (object.thumbnailMediaId != null)
160885
- message.thumbnailMediaId = object.thumbnailMediaId >>> 0;
160886
- return message;
160887
- };
160888
-
160889
- /**
160890
- * Creates a plain object from a GuidedProgramCreated message. Also converts values to other types if specified.
160891
- * @function toObject
160892
- * @memberof GuidedProgramCreated
160893
- * @static
160894
- * @param {GuidedProgramCreated} message GuidedProgramCreated
160895
- * @param {$protobuf.IConversionOptions} [options] Conversion options
160896
- * @returns {Object.<string,*>} Plain object
160897
- */
160898
- GuidedProgramCreated.toObject = function toObject(message, options) {
160899
- if (!options)
160900
- options = {};
160901
- var object = {};
160902
- if (options.defaults) {
160903
- object.slug = "";
160904
- if ($util.Long) {
160905
- var long = new $util.Long(0, 0, true);
160906
- object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
160907
- } else
160908
- object.createdAt = options.longs === String ? "0" : 0;
160909
- object.thumbnailMediaId = 0;
160910
- }
160911
- if (message.slug != null && message.hasOwnProperty("slug"))
160912
- object.slug = message.slug;
160913
- if (message.createdAt != null && message.hasOwnProperty("createdAt"))
160914
- if (typeof message.createdAt === "number")
160915
- object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
160916
- else
160917
- 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;
160918
- if (message.thumbnailMediaId != null && message.hasOwnProperty("thumbnailMediaId"))
160919
- object.thumbnailMediaId = message.thumbnailMediaId;
160920
- return object;
160921
- };
160922
-
160923
- /**
160924
- * Converts this GuidedProgramCreated to JSON.
160925
- * @function toJSON
160926
- * @memberof GuidedProgramCreated
160927
- * @instance
160928
- * @returns {Object.<string,*>} JSON object
160929
- */
160930
- GuidedProgramCreated.prototype.toJSON = function toJSON() {
160931
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
160932
- };
160933
-
160934
- return GuidedProgramCreated;
160935
- })();
160936
-
160937
- $root.GuidedProgramUpdated = (function() {
160938
-
160939
- /**
160940
- * Properties of a GuidedProgramUpdated.
160941
- * @name IGuidedProgramUpdated
160942
- * @interface IGuidedProgramUpdated
160943
- * @property {string|null} [slug] GuidedProgramUpdated slug
160944
- * @property {number|Long|null} [updatedAt] GuidedProgramUpdated updatedAt
160945
- * @property {number|null} [thumbnailMediaId] GuidedProgramUpdated thumbnailMediaId
160946
- */
160947
-
160948
- /**
160949
- * Constructs a new GuidedProgramUpdated.
160950
- * @name GuidedProgramUpdated
160951
- * @classdesc Represents a GuidedProgramUpdated.
160952
- * @implements IGuidedProgramUpdated
160953
- * @constructor
160954
- * @param {IGuidedProgramUpdated=} [properties] Properties to set
160955
- */
160956
- function GuidedProgramUpdated(properties) {
160957
- if (properties)
160958
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
160959
- if (properties[keys[i]] != null)
160960
- this[keys[i]] = properties[keys[i]];
160961
- }
160962
-
160963
- /**
160964
- * GuidedProgramUpdated slug.
160965
- * @member {string} slug
160966
- * @memberof GuidedProgramUpdated
160967
- * @instance
160968
- */
160969
- GuidedProgramUpdated.prototype.slug = "";
160970
-
160971
- /**
160972
- * GuidedProgramUpdated updatedAt.
160973
- * @member {number|Long} updatedAt
160974
- * @memberof GuidedProgramUpdated
160975
- * @instance
160976
- */
160977
- GuidedProgramUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
160978
-
160979
- /**
160980
- * GuidedProgramUpdated thumbnailMediaId.
160981
- * @member {number} thumbnailMediaId
160982
- * @memberof GuidedProgramUpdated
160983
- * @instance
160984
- */
160985
- GuidedProgramUpdated.prototype.thumbnailMediaId = 0;
160986
-
160987
- /**
160988
- * Creates a new GuidedProgramUpdated instance using the specified properties.
160989
- * @function create
160990
- * @memberof GuidedProgramUpdated
160991
- * @static
160992
- * @param {IGuidedProgramUpdated=} [properties] Properties to set
160993
- * @returns {GuidedProgramUpdated} GuidedProgramUpdated instance
160994
- */
160995
- GuidedProgramUpdated.create = function create(properties) {
160996
- return new GuidedProgramUpdated(properties);
160997
- };
160998
-
160999
- /**
161000
- * Encodes the specified GuidedProgramUpdated message. Does not implicitly {@link GuidedProgramUpdated.verify|verify} messages.
161001
- * @function encode
161002
- * @memberof GuidedProgramUpdated
161003
- * @static
161004
- * @param {IGuidedProgramUpdated} message GuidedProgramUpdated message or plain object to encode
161005
- * @param {$protobuf.Writer} [writer] Writer to encode to
161006
- * @returns {$protobuf.Writer} Writer
161007
- */
161008
- GuidedProgramUpdated.encode = function encode(message, writer) {
161009
- if (!writer)
161010
- writer = $Writer.create();
161011
- if (message.slug != null && message.hasOwnProperty("slug"))
161012
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
161013
- if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
161014
- writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.updatedAt);
161015
- if (message.thumbnailMediaId != null && message.hasOwnProperty("thumbnailMediaId"))
161016
- writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.thumbnailMediaId);
161017
- return writer;
161018
- };
161019
-
161020
- /**
161021
- * Encodes the specified GuidedProgramUpdated message, length delimited. Does not implicitly {@link GuidedProgramUpdated.verify|verify} messages.
161022
- * @function encodeDelimited
161023
- * @memberof GuidedProgramUpdated
161024
- * @static
161025
- * @param {IGuidedProgramUpdated} message GuidedProgramUpdated message or plain object to encode
161026
- * @param {$protobuf.Writer} [writer] Writer to encode to
161027
- * @returns {$protobuf.Writer} Writer
161028
- */
161029
- GuidedProgramUpdated.encodeDelimited = function encodeDelimited(message, writer) {
161030
- return this.encode(message, writer).ldelim();
161031
- };
161032
-
161033
- /**
161034
- * Decodes a GuidedProgramUpdated message from the specified reader or buffer.
161035
- * @function decode
161036
- * @memberof GuidedProgramUpdated
161037
- * @static
161038
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
161039
- * @param {number} [length] Message length if known beforehand
161040
- * @returns {GuidedProgramUpdated} GuidedProgramUpdated
161041
- * @throws {Error} If the payload is not a reader or valid buffer
161042
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
161043
- */
161044
- GuidedProgramUpdated.decode = function decode(reader, length) {
161045
- if (!(reader instanceof $Reader))
161046
- reader = $Reader.create(reader);
161047
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.GuidedProgramUpdated();
161048
- while (reader.pos < end) {
161049
- var tag = reader.uint32();
161050
- switch (tag >>> 3) {
161051
- case 1:
161052
- message.slug = reader.string();
161053
- break;
161054
- case 2:
161055
- message.updatedAt = reader.uint64();
161056
- break;
161057
- case 3:
161058
- message.thumbnailMediaId = reader.uint32();
161059
- break;
161060
- default:
161061
- reader.skipType(tag & 7);
161062
- break;
161063
- }
161064
- }
161065
- return message;
161066
- };
161067
-
161068
- /**
161069
- * Decodes a GuidedProgramUpdated message from the specified reader or buffer, length delimited.
161070
- * @function decodeDelimited
161071
- * @memberof GuidedProgramUpdated
161072
- * @static
161073
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
161074
- * @returns {GuidedProgramUpdated} GuidedProgramUpdated
161075
- * @throws {Error} If the payload is not a reader or valid buffer
161076
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
161077
- */
161078
- GuidedProgramUpdated.decodeDelimited = function decodeDelimited(reader) {
161079
- if (!(reader instanceof $Reader))
161080
- reader = new $Reader(reader);
161081
- return this.decode(reader, reader.uint32());
161082
- };
161083
-
161084
- /**
161085
- * Verifies a GuidedProgramUpdated message.
161086
- * @function verify
161087
- * @memberof GuidedProgramUpdated
161088
- * @static
161089
- * @param {Object.<string,*>} message Plain object to verify
161090
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
161091
- */
161092
- GuidedProgramUpdated.verify = function verify(message) {
161093
- if (typeof message !== "object" || message === null)
161094
- return "object expected";
161095
- if (message.slug != null && message.hasOwnProperty("slug"))
161096
- if (!$util.isString(message.slug))
161097
- return "slug: string expected";
161098
- if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
161099
- if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
161100
- return "updatedAt: integer|Long expected";
161101
- if (message.thumbnailMediaId != null && message.hasOwnProperty("thumbnailMediaId"))
161102
- if (!$util.isInteger(message.thumbnailMediaId))
161103
- return "thumbnailMediaId: integer expected";
161104
- return null;
161105
- };
161106
-
161107
- /**
161108
- * Creates a GuidedProgramUpdated message from a plain object. Also converts values to their respective internal types.
161109
- * @function fromObject
161110
- * @memberof GuidedProgramUpdated
161111
- * @static
161112
- * @param {Object.<string,*>} object Plain object
161113
- * @returns {GuidedProgramUpdated} GuidedProgramUpdated
161114
- */
161115
- GuidedProgramUpdated.fromObject = function fromObject(object) {
161116
- if (object instanceof $root.GuidedProgramUpdated)
161117
- return object;
161118
- var message = new $root.GuidedProgramUpdated();
161119
- if (object.slug != null)
161120
- message.slug = String(object.slug);
161121
- if (object.updatedAt != null)
161122
- if ($util.Long)
161123
- (message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
161124
- else if (typeof object.updatedAt === "string")
161125
- message.updatedAt = parseInt(object.updatedAt, 10);
161126
- else if (typeof object.updatedAt === "number")
161127
- message.updatedAt = object.updatedAt;
161128
- else if (typeof object.updatedAt === "object")
161129
- message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
161130
- if (object.thumbnailMediaId != null)
161131
- message.thumbnailMediaId = object.thumbnailMediaId >>> 0;
161132
- return message;
161133
- };
161134
-
161135
- /**
161136
- * Creates a plain object from a GuidedProgramUpdated message. Also converts values to other types if specified.
161137
- * @function toObject
161138
- * @memberof GuidedProgramUpdated
161139
- * @static
161140
- * @param {GuidedProgramUpdated} message GuidedProgramUpdated
161141
- * @param {$protobuf.IConversionOptions} [options] Conversion options
161142
- * @returns {Object.<string,*>} Plain object
161143
- */
161144
- GuidedProgramUpdated.toObject = function toObject(message, options) {
161145
- if (!options)
161146
- options = {};
161147
- var object = {};
161148
- if (options.defaults) {
161149
- object.slug = "";
161150
- if ($util.Long) {
161151
- var long = new $util.Long(0, 0, true);
161152
- object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
161153
- } else
161154
- object.updatedAt = options.longs === String ? "0" : 0;
161155
- object.thumbnailMediaId = 0;
161156
- }
161157
- if (message.slug != null && message.hasOwnProperty("slug"))
161158
- object.slug = message.slug;
161159
- if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
161160
- if (typeof message.updatedAt === "number")
161161
- object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
161162
- else
161163
- 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;
161164
- if (message.thumbnailMediaId != null && message.hasOwnProperty("thumbnailMediaId"))
161165
- object.thumbnailMediaId = message.thumbnailMediaId;
161166
- return object;
161167
- };
161168
-
161169
- /**
161170
- * Converts this GuidedProgramUpdated to JSON.
161171
- * @function toJSON
161172
- * @memberof GuidedProgramUpdated
161173
- * @instance
161174
- * @returns {Object.<string,*>} JSON object
161175
- */
161176
- GuidedProgramUpdated.prototype.toJSON = function toJSON() {
161177
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
161178
- };
161179
-
161180
- return GuidedProgramUpdated;
161181
- })();
161182
-
161183
- $root.GuidedProgramDeleted = (function() {
161184
-
161185
- /**
161186
- * Properties of a GuidedProgramDeleted.
161187
- * @name IGuidedProgramDeleted
161188
- * @interface IGuidedProgramDeleted
161189
- * @property {string|null} [slug] GuidedProgramDeleted slug
161190
- */
161191
-
161192
- /**
161193
- * Constructs a new GuidedProgramDeleted.
161194
- * @name GuidedProgramDeleted
161195
- * @classdesc Represents a GuidedProgramDeleted.
161196
- * @implements IGuidedProgramDeleted
161197
- * @constructor
161198
- * @param {IGuidedProgramDeleted=} [properties] Properties to set
161199
- */
161200
- function GuidedProgramDeleted(properties) {
161201
- if (properties)
161202
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
161203
- if (properties[keys[i]] != null)
161204
- this[keys[i]] = properties[keys[i]];
161205
- }
161206
-
161207
- /**
161208
- * GuidedProgramDeleted slug.
161209
- * @member {string} slug
161210
- * @memberof GuidedProgramDeleted
161211
- * @instance
161212
- */
161213
- GuidedProgramDeleted.prototype.slug = "";
161214
-
161215
- /**
161216
- * Creates a new GuidedProgramDeleted instance using the specified properties.
161217
- * @function create
161218
- * @memberof GuidedProgramDeleted
161219
- * @static
161220
- * @param {IGuidedProgramDeleted=} [properties] Properties to set
161221
- * @returns {GuidedProgramDeleted} GuidedProgramDeleted instance
161222
- */
161223
- GuidedProgramDeleted.create = function create(properties) {
161224
- return new GuidedProgramDeleted(properties);
161225
- };
161226
-
161227
- /**
161228
- * Encodes the specified GuidedProgramDeleted message. Does not implicitly {@link GuidedProgramDeleted.verify|verify} messages.
161229
- * @function encode
161230
- * @memberof GuidedProgramDeleted
161231
- * @static
161232
- * @param {IGuidedProgramDeleted} message GuidedProgramDeleted message or plain object to encode
161233
- * @param {$protobuf.Writer} [writer] Writer to encode to
161234
- * @returns {$protobuf.Writer} Writer
161235
- */
161236
- GuidedProgramDeleted.encode = function encode(message, writer) {
161237
- if (!writer)
161238
- writer = $Writer.create();
161239
- if (message.slug != null && message.hasOwnProperty("slug"))
161240
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
161241
- return writer;
161242
- };
161243
-
161244
- /**
161245
- * Encodes the specified GuidedProgramDeleted message, length delimited. Does not implicitly {@link GuidedProgramDeleted.verify|verify} messages.
161246
- * @function encodeDelimited
161247
- * @memberof GuidedProgramDeleted
161248
- * @static
161249
- * @param {IGuidedProgramDeleted} message GuidedProgramDeleted message or plain object to encode
161250
- * @param {$protobuf.Writer} [writer] Writer to encode to
161251
- * @returns {$protobuf.Writer} Writer
161252
- */
161253
- GuidedProgramDeleted.encodeDelimited = function encodeDelimited(message, writer) {
161254
- return this.encode(message, writer).ldelim();
161255
- };
161256
-
161257
- /**
161258
- * Decodes a GuidedProgramDeleted message from the specified reader or buffer.
161259
- * @function decode
161260
- * @memberof GuidedProgramDeleted
161261
- * @static
161262
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
161263
- * @param {number} [length] Message length if known beforehand
161264
- * @returns {GuidedProgramDeleted} GuidedProgramDeleted
161265
- * @throws {Error} If the payload is not a reader or valid buffer
161266
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
161267
- */
161268
- GuidedProgramDeleted.decode = function decode(reader, length) {
161269
- if (!(reader instanceof $Reader))
161270
- reader = $Reader.create(reader);
161271
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.GuidedProgramDeleted();
161272
- while (reader.pos < end) {
161273
- var tag = reader.uint32();
161274
- switch (tag >>> 3) {
161275
- case 1:
161276
- message.slug = reader.string();
161277
- break;
161278
- default:
161279
- reader.skipType(tag & 7);
161280
- break;
161281
- }
161282
- }
161283
- return message;
161284
- };
161285
-
161286
- /**
161287
- * Decodes a GuidedProgramDeleted message from the specified reader or buffer, length delimited.
161288
- * @function decodeDelimited
161289
- * @memberof GuidedProgramDeleted
161290
- * @static
161291
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
161292
- * @returns {GuidedProgramDeleted} GuidedProgramDeleted
161293
- * @throws {Error} If the payload is not a reader or valid buffer
161294
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
161295
- */
161296
- GuidedProgramDeleted.decodeDelimited = function decodeDelimited(reader) {
161297
- if (!(reader instanceof $Reader))
161298
- reader = new $Reader(reader);
161299
- return this.decode(reader, reader.uint32());
161300
- };
161301
-
161302
- /**
161303
- * Verifies a GuidedProgramDeleted message.
161304
- * @function verify
161305
- * @memberof GuidedProgramDeleted
161306
- * @static
161307
- * @param {Object.<string,*>} message Plain object to verify
161308
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
161309
- */
161310
- GuidedProgramDeleted.verify = function verify(message) {
161311
- if (typeof message !== "object" || message === null)
161312
- return "object expected";
161313
- if (message.slug != null && message.hasOwnProperty("slug"))
161314
- if (!$util.isString(message.slug))
161315
- return "slug: string expected";
161316
- return null;
161317
- };
161318
-
161319
- /**
161320
- * Creates a GuidedProgramDeleted message from a plain object. Also converts values to their respective internal types.
161321
- * @function fromObject
161322
- * @memberof GuidedProgramDeleted
161323
- * @static
161324
- * @param {Object.<string,*>} object Plain object
161325
- * @returns {GuidedProgramDeleted} GuidedProgramDeleted
161326
- */
161327
- GuidedProgramDeleted.fromObject = function fromObject(object) {
161328
- if (object instanceof $root.GuidedProgramDeleted)
161329
- return object;
161330
- var message = new $root.GuidedProgramDeleted();
161331
- if (object.slug != null)
161332
- message.slug = String(object.slug);
161333
- return message;
161334
- };
161335
-
161336
- /**
161337
- * Creates a plain object from a GuidedProgramDeleted message. Also converts values to other types if specified.
161338
- * @function toObject
161339
- * @memberof GuidedProgramDeleted
161340
- * @static
161341
- * @param {GuidedProgramDeleted} message GuidedProgramDeleted
161342
- * @param {$protobuf.IConversionOptions} [options] Conversion options
161343
- * @returns {Object.<string,*>} Plain object
161344
- */
161345
- GuidedProgramDeleted.toObject = function toObject(message, options) {
161346
- if (!options)
161347
- options = {};
161348
- var object = {};
161349
- if (options.defaults)
161350
- object.slug = "";
161351
- if (message.slug != null && message.hasOwnProperty("slug"))
161352
- object.slug = message.slug;
161353
- return object;
161354
- };
161355
-
161356
- /**
161357
- * Converts this GuidedProgramDeleted to JSON.
161358
- * @function toJSON
161359
- * @memberof GuidedProgramDeleted
161360
- * @instance
161361
- * @returns {Object.<string,*>} JSON object
161362
- */
161363
- GuidedProgramDeleted.prototype.toJSON = function toJSON() {
161364
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
161365
- };
161366
-
161367
- return GuidedProgramDeleted;
161368
- })();
161369
-
161370
160691
  $root.InteractiveJournalingParticipant = (function() {
161371
160692
 
161372
160693
  /**
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.634.0"
19
+ "version": "1.635.0"
20
20
  }