@headspace/protos-events 1.799.0 → 1.801.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/lib/index.d.ts +161 -11
  2. package/lib/index.js +296 -11
  3. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -81142,7 +81142,12 @@ export interface ISubscriptionCreated {
81142
81142
  productSku?: (subscription.ISubscriptionProductSku|null);
81143
81143
  }
81144
81144
 
81145
- /** Represents a SubscriptionCreated. */
81145
+ /**
81146
+ * A new subscription record has been created.
81147
+ * This event only signals that a new record has been created but DOES NOT MEAN that the subscription has already
81148
+ * started or even will start. Some subscriptions are created as "backfills" in order to fill in missing data. Use
81149
+ * the `starts_at` and `ends_at` to determine whether the subscription is current.
81150
+ */
81146
81151
  export class SubscriptionCreated implements ISubscriptionCreated {
81147
81152
 
81148
81153
  /**
@@ -81338,7 +81343,12 @@ export interface ISubscriptionCancelled {
81338
81343
  cancellationReason?: (string|null);
81339
81344
  }
81340
81345
 
81341
- /** Represents a SubscriptionCancelled. */
81346
+ /**
81347
+ * The subscription's auto-renewal has been disabled.
81348
+ * Subscriptions can be cancelled for a number of reasons, see `cancellation_reason` for more information. This event
81349
+ * __DOES NOT__ mean the subscription has ended. Check the `starts_at` and `ends_at` to determine whether the
81350
+ * subscription is current.
81351
+ */
81342
81352
  export class SubscriptionCancelled implements ISubscriptionCancelled {
81343
81353
 
81344
81354
  /**
@@ -81643,7 +81653,11 @@ export interface ISubscriptionRenewed {
81643
81653
  productSku?: (subscription.ISubscriptionProductSku|null);
81644
81654
  }
81645
81655
 
81646
- /** Represents a SubscriptionRenewed. */
81656
+ /**
81657
+ * Triggered when the subscription's `ends_at` has been pushed out further than what it was previously.
81658
+ * The subscription did not necessarily transition to its new "subscription term", only that the overall end date
81659
+ * has been extended.
81660
+ */
81647
81661
  export class SubscriptionRenewed implements ISubscriptionRenewed {
81648
81662
 
81649
81663
  /**
@@ -81815,7 +81829,10 @@ export interface ISubscriptionUpcomingRenewal {
81815
81829
  platform?: (subscription.SubscriptionPlatform|null);
81816
81830
  }
81817
81831
 
81818
- /** Represents a SubscriptionUpcomingRenewal. */
81832
+ /**
81833
+ * __Zuora ONLY__. Triggered when Zuora sends an upcoming renewal notification. Signals that a Zuora subscription will
81834
+ * renew in `days_before` days.
81835
+ */
81819
81836
  export class SubscriptionUpcomingRenewal implements ISubscriptionUpcomingRenewal {
81820
81837
 
81821
81838
  /**
@@ -81960,7 +81977,10 @@ export interface ISubscriptionPaymentProcessed {
81960
81977
  subscriptionId?: (number|null);
81961
81978
  }
81962
81979
 
81963
- /** Represents a SubscriptionPaymentProcessed. */
81980
+ /**
81981
+ * __Zuora ONLY__. Triggered when Zuora sends a payment processed notification. Signals that there has been a successful
81982
+ * payment made for the subscription in Zuora.
81983
+ */
81964
81984
  export class SubscriptionPaymentProcessed implements ISubscriptionPaymentProcessed {
81965
81985
 
81966
81986
  /**
@@ -82087,7 +82107,10 @@ export interface ISubscriptionPaymentDeclined {
82087
82107
  subscriptionId?: (number|null);
82088
82108
  }
82089
82109
 
82090
- /** Represents a SubscriptionPaymentDeclined. */
82110
+ /**
82111
+ * __Zuora ONLY__. Triggered when Zuora sends a payment declined notification. Signals that the user has failed to pay
82112
+ * for the subscription in Zuora {attempt} times.
82113
+ */
82091
82114
  export class SubscriptionPaymentDeclined implements ISubscriptionPaymentDeclined {
82092
82115
 
82093
82116
  /**
@@ -82241,7 +82264,11 @@ export interface ISubscriptionGraced {
82241
82264
  productSku?: (subscription.ISubscriptionProductSku|null);
82242
82265
  }
82243
82266
 
82244
- /** Represents a SubscriptionGraced. */
82267
+ /**
82268
+ * A subscription has transitioned from an ACTIVE to GRACE status. This is usually due to a failed payment. Not all
82269
+ * platforms support having a GRACE status so this event is not available on all subscriptions whenever a payment fails.
82270
+ * (ie, not all failed payments will result in a SubscriptionGraced).
82271
+ */
82245
82272
  export class SubscriptionGraced implements ISubscriptionGraced {
82246
82273
 
82247
82274
  /**
@@ -82428,7 +82455,10 @@ export interface ISubscriptionStarted {
82428
82455
  productSku?: (subscription.ISubscriptionProductSku|null);
82429
82456
  }
82430
82457
 
82431
- /** Represents a SubscriptionStarted. */
82458
+ /**
82459
+ * Triggered when the subscription starts, ie passed its start date. The event is published on a cron schedule so the
82460
+ * events are not necessarily published at the exact instant of `starts_at`, but it should be triggered within 24 hours.
82461
+ */
82432
82462
  export class SubscriptionStarted implements ISubscriptionStarted {
82433
82463
 
82434
82464
  /**
@@ -82618,7 +82648,10 @@ export interface ISubscriptionEnded {
82618
82648
  productSku?: (subscription.ISubscriptionProductSku|null);
82619
82649
  }
82620
82650
 
82621
- /** Represents a SubscriptionEnded. */
82651
+ /**
82652
+ * Triggered when the subscription ends, ie passed its end date. The event is published on a cron schedule so the events
82653
+ * are not necessarily published at the exact instant of `ends_at`, but it should be within 24 hours.
82654
+ */
82622
82655
  export class SubscriptionEnded implements ISubscriptionEnded {
82623
82656
 
82624
82657
  /**
@@ -82808,7 +82841,7 @@ export interface ISubscriptionRecovered {
82808
82841
  productSku?: (subscription.ISubscriptionProductSku|null);
82809
82842
  }
82810
82843
 
82811
- /** Represents a SubscriptionRecovered. */
82844
+ /** Triggered when a subscription goes from GRACE to PAYING. See comments on `SubscriptionGraced` for more information. */
82812
82845
  export class SubscriptionRecovered implements ISubscriptionRecovered {
82813
82846
 
82814
82847
  /**
@@ -82995,7 +83028,11 @@ export interface ISubscriptionAmended {
82995
83028
  productSku?: (subscription.ISubscriptionProductSku|null);
82996
83029
  }
82997
83030
 
82998
- /** Represents a SubscriptionAmended. */
83031
+ /**
83032
+ * A subscription record was changed (ie "amended") outside of its normal lifecycle. Essentially a "catchall" event for
83033
+ * in the case that fields needed to be corrected. Intention is for consumers to use this event to "resync" their view
83034
+ * of the subscription.
83035
+ */
82999
83036
  export class SubscriptionAmended implements ISubscriptionAmended {
83000
83037
 
83001
83038
  /**
@@ -86380,6 +86417,119 @@ export class UserAppleWatchNotificationSettingUpdated implements IUserAppleWatch
86380
86417
  public static getTypeUrl(typeUrlPrefix?: string): string;
86381
86418
  }
86382
86419
 
86420
+ /** Properties of a UserOuraNotificationSettingUpdated. */
86421
+ export interface IUserOuraNotificationSettingUpdated {
86422
+
86423
+ /** UserOuraNotificationSettingUpdated hsUserId */
86424
+ hsUserId?: (string|null);
86425
+
86426
+ /** UserOuraNotificationSettingUpdated settingType */
86427
+ settingType?: (string|null);
86428
+
86429
+ /** UserOuraNotificationSettingUpdated isEnabled */
86430
+ isEnabled?: (boolean|null);
86431
+ }
86432
+
86433
+ /**
86434
+ * Sent when a user updates their Oura notification settings.
86435
+ * Responsible team: Consumer Growth
86436
+ *
86437
+ */
86438
+ export class UserOuraNotificationSettingUpdated implements IUserOuraNotificationSettingUpdated {
86439
+
86440
+ /**
86441
+ * Constructs a new UserOuraNotificationSettingUpdated.
86442
+ * @param [properties] Properties to set
86443
+ */
86444
+ constructor(properties?: IUserOuraNotificationSettingUpdated);
86445
+
86446
+ /** UserOuraNotificationSettingUpdated hsUserId. */
86447
+ public hsUserId: string;
86448
+
86449
+ /** UserOuraNotificationSettingUpdated settingType. */
86450
+ public settingType: string;
86451
+
86452
+ /** UserOuraNotificationSettingUpdated isEnabled. */
86453
+ public isEnabled: boolean;
86454
+
86455
+ /**
86456
+ * Creates a new UserOuraNotificationSettingUpdated instance using the specified properties.
86457
+ * @param [properties] Properties to set
86458
+ * @returns UserOuraNotificationSettingUpdated instance
86459
+ */
86460
+ public static create(properties?: IUserOuraNotificationSettingUpdated): UserOuraNotificationSettingUpdated;
86461
+
86462
+ /**
86463
+ * Encodes the specified UserOuraNotificationSettingUpdated message. Does not implicitly {@link UserOuraNotificationSettingUpdated.verify|verify} messages.
86464
+ * @param message UserOuraNotificationSettingUpdated message or plain object to encode
86465
+ * @param [writer] Writer to encode to
86466
+ * @returns Writer
86467
+ */
86468
+ public static encode(message: IUserOuraNotificationSettingUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
86469
+
86470
+ /**
86471
+ * Encodes the specified UserOuraNotificationSettingUpdated message, length delimited. Does not implicitly {@link UserOuraNotificationSettingUpdated.verify|verify} messages.
86472
+ * @param message UserOuraNotificationSettingUpdated message or plain object to encode
86473
+ * @param [writer] Writer to encode to
86474
+ * @returns Writer
86475
+ */
86476
+ public static encodeDelimited(message: IUserOuraNotificationSettingUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
86477
+
86478
+ /**
86479
+ * Decodes a UserOuraNotificationSettingUpdated message from the specified reader or buffer.
86480
+ * @param reader Reader or buffer to decode from
86481
+ * @param [length] Message length if known beforehand
86482
+ * @returns UserOuraNotificationSettingUpdated
86483
+ * @throws {Error} If the payload is not a reader or valid buffer
86484
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
86485
+ */
86486
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserOuraNotificationSettingUpdated;
86487
+
86488
+ /**
86489
+ * Decodes a UserOuraNotificationSettingUpdated message from the specified reader or buffer, length delimited.
86490
+ * @param reader Reader or buffer to decode from
86491
+ * @returns UserOuraNotificationSettingUpdated
86492
+ * @throws {Error} If the payload is not a reader or valid buffer
86493
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
86494
+ */
86495
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserOuraNotificationSettingUpdated;
86496
+
86497
+ /**
86498
+ * Verifies a UserOuraNotificationSettingUpdated message.
86499
+ * @param message Plain object to verify
86500
+ * @returns `null` if valid, otherwise the reason why it is not
86501
+ */
86502
+ public static verify(message: { [k: string]: any }): (string|null);
86503
+
86504
+ /**
86505
+ * Creates a UserOuraNotificationSettingUpdated message from a plain object. Also converts values to their respective internal types.
86506
+ * @param object Plain object
86507
+ * @returns UserOuraNotificationSettingUpdated
86508
+ */
86509
+ public static fromObject(object: { [k: string]: any }): UserOuraNotificationSettingUpdated;
86510
+
86511
+ /**
86512
+ * Creates a plain object from a UserOuraNotificationSettingUpdated message. Also converts values to other types if specified.
86513
+ * @param message UserOuraNotificationSettingUpdated
86514
+ * @param [options] Conversion options
86515
+ * @returns Plain object
86516
+ */
86517
+ public static toObject(message: UserOuraNotificationSettingUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
86518
+
86519
+ /**
86520
+ * Converts this UserOuraNotificationSettingUpdated to JSON.
86521
+ * @returns JSON object
86522
+ */
86523
+ public toJSON(): { [k: string]: any };
86524
+
86525
+ /**
86526
+ * Gets the default type url for UserOuraNotificationSettingUpdated
86527
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
86528
+ * @returns The default type url
86529
+ */
86530
+ public static getTypeUrl(typeUrlPrefix?: string): string;
86531
+ }
86532
+
86383
86533
  /** Properties of a UserDeletionRequested. */
86384
86534
  export interface IUserDeletionRequested {
86385
86535
 
package/lib/index.js CHANGED
@@ -245303,7 +245303,10 @@ $root.SubscriptionCreated = (function() {
245303
245303
  /**
245304
245304
  * Constructs a new SubscriptionCreated.
245305
245305
  * @name SubscriptionCreated
245306
- * @classdesc Represents a SubscriptionCreated.
245306
+ * @classdesc A new subscription record has been created.
245307
+ * This event only signals that a new record has been created but DOES NOT MEAN that the subscription has already
245308
+ * started or even will start. Some subscriptions are created as "backfills" in order to fill in missing data. Use
245309
+ * the `starts_at` and `ends_at` to determine whether the subscription is current.
245307
245310
  * @implements ISubscriptionCreated
245308
245311
  * @constructor
245309
245312
  * @param {ISubscriptionCreated=} [properties] Properties to set
@@ -246142,7 +246145,10 @@ $root.SubscriptionCancelled = (function() {
246142
246145
  /**
246143
246146
  * Constructs a new SubscriptionCancelled.
246144
246147
  * @name SubscriptionCancelled
246145
- * @classdesc Represents a SubscriptionCancelled.
246148
+ * @classdesc The subscription's auto-renewal has been disabled.
246149
+ * Subscriptions can be cancelled for a number of reasons, see `cancellation_reason` for more information. This event
246150
+ * __DOES NOT__ mean the subscription has ended. Check the `starts_at` and `ends_at` to determine whether the
246151
+ * subscription is current.
246146
246152
  * @implements ISubscriptionCancelled
246147
246153
  * @constructor
246148
246154
  * @param {ISubscriptionCancelled=} [properties] Properties to set
@@ -247365,7 +247371,9 @@ $root.SubscriptionRenewed = (function() {
247365
247371
  /**
247366
247372
  * Constructs a new SubscriptionRenewed.
247367
247373
  * @name SubscriptionRenewed
247368
- * @classdesc Represents a SubscriptionRenewed.
247374
+ * @classdesc Triggered when the subscription's `ends_at` has been pushed out further than what it was previously.
247375
+ * The subscription did not necessarily transition to its new "subscription term", only that the overall end date
247376
+ * has been extended.
247369
247377
  * @implements ISubscriptionRenewed
247370
247378
  * @constructor
247371
247379
  * @param {ISubscriptionRenewed=} [properties] Properties to set
@@ -248210,7 +248218,8 @@ $root.SubscriptionUpcomingRenewal = (function() {
248210
248218
  /**
248211
248219
  * Constructs a new SubscriptionUpcomingRenewal.
248212
248220
  * @name SubscriptionUpcomingRenewal
248213
- * @classdesc Represents a SubscriptionUpcomingRenewal.
248221
+ * @classdesc __Zuora ONLY__. Triggered when Zuora sends an upcoming renewal notification. Signals that a Zuora subscription will
248222
+ * renew in `days_before` days.
248214
248223
  * @implements ISubscriptionUpcomingRenewal
248215
248224
  * @constructor
248216
248225
  * @param {ISubscriptionUpcomingRenewal=} [properties] Properties to set
@@ -248775,7 +248784,8 @@ $root.SubscriptionPaymentProcessed = (function() {
248775
248784
  /**
248776
248785
  * Constructs a new SubscriptionPaymentProcessed.
248777
248786
  * @name SubscriptionPaymentProcessed
248778
- * @classdesc Represents a SubscriptionPaymentProcessed.
248787
+ * @classdesc __Zuora ONLY__. Triggered when Zuora sends a payment processed notification. Signals that there has been a successful
248788
+ * payment made for the subscription in Zuora.
248779
248789
  * @implements ISubscriptionPaymentProcessed
248780
248790
  * @constructor
248781
248791
  * @param {ISubscriptionPaymentProcessed=} [properties] Properties to set
@@ -249157,7 +249167,8 @@ $root.SubscriptionPaymentDeclined = (function() {
249157
249167
  /**
249158
249168
  * Constructs a new SubscriptionPaymentDeclined.
249159
249169
  * @name SubscriptionPaymentDeclined
249160
- * @classdesc Represents a SubscriptionPaymentDeclined.
249170
+ * @classdesc __Zuora ONLY__. Triggered when Zuora sends a payment declined notification. Signals that the user has failed to pay
249171
+ * for the subscription in Zuora {attempt} times.
249161
249172
  * @implements ISubscriptionPaymentDeclined
249162
249173
  * @constructor
249163
249174
  * @param {ISubscriptionPaymentDeclined=} [properties] Properties to set
@@ -249506,7 +249517,9 @@ $root.SubscriptionGraced = (function() {
249506
249517
  /**
249507
249518
  * Constructs a new SubscriptionGraced.
249508
249519
  * @name SubscriptionGraced
249509
- * @classdesc Represents a SubscriptionGraced.
249520
+ * @classdesc A subscription has transitioned from an ACTIVE to GRACE status. This is usually due to a failed payment. Not all
249521
+ * platforms support having a GRACE status so this event is not available on all subscriptions whenever a payment fails.
249522
+ * (ie, not all failed payments will result in a SubscriptionGraced).
249510
249523
  * @implements ISubscriptionGraced
249511
249524
  * @constructor
249512
249525
  * @param {ISubscriptionGraced=} [properties] Properties to set
@@ -250356,7 +250369,8 @@ $root.SubscriptionStarted = (function() {
250356
250369
  /**
250357
250370
  * Constructs a new SubscriptionStarted.
250358
250371
  * @name SubscriptionStarted
250359
- * @classdesc Represents a SubscriptionStarted.
250372
+ * @classdesc Triggered when the subscription starts, ie passed its start date. The event is published on a cron schedule so the
250373
+ * events are not necessarily published at the exact instant of `starts_at`, but it should be triggered within 24 hours.
250360
250374
  * @implements ISubscriptionStarted
250361
250375
  * @constructor
250362
250376
  * @param {ISubscriptionStarted=} [properties] Properties to set
@@ -251207,7 +251221,8 @@ $root.SubscriptionEnded = (function() {
251207
251221
  /**
251208
251222
  * Constructs a new SubscriptionEnded.
251209
251223
  * @name SubscriptionEnded
251210
- * @classdesc Represents a SubscriptionEnded.
251224
+ * @classdesc Triggered when the subscription ends, ie passed its end date. The event is published on a cron schedule so the events
251225
+ * are not necessarily published at the exact instant of `ends_at`, but it should be within 24 hours.
251211
251226
  * @implements ISubscriptionEnded
251212
251227
  * @constructor
251213
251228
  * @param {ISubscriptionEnded=} [properties] Properties to set
@@ -252103,7 +252118,7 @@ $root.SubscriptionRecovered = (function() {
252103
252118
  /**
252104
252119
  * Constructs a new SubscriptionRecovered.
252105
252120
  * @name SubscriptionRecovered
252106
- * @classdesc Represents a SubscriptionRecovered.
252121
+ * @classdesc Triggered when a subscription goes from GRACE to PAYING. See comments on `SubscriptionGraced` for more information.
252107
252122
  * @implements ISubscriptionRecovered
252108
252123
  * @constructor
252109
252124
  * @param {ISubscriptionRecovered=} [properties] Properties to set
@@ -252953,7 +252968,9 @@ $root.SubscriptionAmended = (function() {
252953
252968
  /**
252954
252969
  * Constructs a new SubscriptionAmended.
252955
252970
  * @name SubscriptionAmended
252956
- * @classdesc Represents a SubscriptionAmended.
252971
+ * @classdesc A subscription record was changed (ie "amended") outside of its normal lifecycle. Essentially a "catchall" event for
252972
+ * in the case that fields needed to be corrected. Intention is for consumers to use this event to "resync" their view
252973
+ * of the subscription.
252957
252974
  * @implements ISubscriptionAmended
252958
252975
  * @constructor
252959
252976
  * @param {ISubscriptionAmended=} [properties] Properties to set
@@ -262219,6 +262236,274 @@ $root.UserAppleWatchNotificationSettingUpdated = (function() {
262219
262236
  return UserAppleWatchNotificationSettingUpdated;
262220
262237
  })();
262221
262238
 
262239
+ $root.UserOuraNotificationSettingUpdated = (function() {
262240
+
262241
+ /**
262242
+ * Properties of a UserOuraNotificationSettingUpdated.
262243
+ * @name IUserOuraNotificationSettingUpdated
262244
+ * @interface IUserOuraNotificationSettingUpdated
262245
+ * @property {string|null} [hsUserId] UserOuraNotificationSettingUpdated hsUserId
262246
+ * @property {string|null} [settingType] UserOuraNotificationSettingUpdated settingType
262247
+ * @property {boolean|null} [isEnabled] UserOuraNotificationSettingUpdated isEnabled
262248
+ */
262249
+
262250
+ /**
262251
+ * Constructs a new UserOuraNotificationSettingUpdated.
262252
+ * @name UserOuraNotificationSettingUpdated
262253
+ * @classdesc Sent when a user updates their Oura notification settings.
262254
+ * Responsible team: Consumer Growth
262255
+ *
262256
+ * @example User enables their sleep notifications for Oura.
262257
+ * Oura Notifications ticket: https://headspace.atlassian.net/browse/GROW-394
262258
+ * @implements IUserOuraNotificationSettingUpdated
262259
+ * @constructor
262260
+ * @param {IUserOuraNotificationSettingUpdated=} [properties] Properties to set
262261
+ */
262262
+ function UserOuraNotificationSettingUpdated(properties) {
262263
+ if (properties)
262264
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
262265
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
262266
+ this[keys[i]] = properties[keys[i]];
262267
+ }
262268
+
262269
+ /**
262270
+ * UserOuraNotificationSettingUpdated hsUserId.
262271
+ * @member {string} hsUserId
262272
+ * @memberof UserOuraNotificationSettingUpdated
262273
+ * @instance
262274
+ */
262275
+ UserOuraNotificationSettingUpdated.prototype.hsUserId = "";
262276
+
262277
+ /**
262278
+ * UserOuraNotificationSettingUpdated settingType.
262279
+ * @member {string} settingType
262280
+ * @memberof UserOuraNotificationSettingUpdated
262281
+ * @instance
262282
+ */
262283
+ UserOuraNotificationSettingUpdated.prototype.settingType = "";
262284
+
262285
+ /**
262286
+ * UserOuraNotificationSettingUpdated isEnabled.
262287
+ * @member {boolean} isEnabled
262288
+ * @memberof UserOuraNotificationSettingUpdated
262289
+ * @instance
262290
+ */
262291
+ UserOuraNotificationSettingUpdated.prototype.isEnabled = false;
262292
+
262293
+ /**
262294
+ * Creates a new UserOuraNotificationSettingUpdated instance using the specified properties.
262295
+ * @function create
262296
+ * @memberof UserOuraNotificationSettingUpdated
262297
+ * @static
262298
+ * @param {IUserOuraNotificationSettingUpdated=} [properties] Properties to set
262299
+ * @returns {UserOuraNotificationSettingUpdated} UserOuraNotificationSettingUpdated instance
262300
+ */
262301
+ UserOuraNotificationSettingUpdated.create = function create(properties) {
262302
+ return new UserOuraNotificationSettingUpdated(properties);
262303
+ };
262304
+
262305
+ /**
262306
+ * Encodes the specified UserOuraNotificationSettingUpdated message. Does not implicitly {@link UserOuraNotificationSettingUpdated.verify|verify} messages.
262307
+ * @function encode
262308
+ * @memberof UserOuraNotificationSettingUpdated
262309
+ * @static
262310
+ * @param {IUserOuraNotificationSettingUpdated} message UserOuraNotificationSettingUpdated message or plain object to encode
262311
+ * @param {$protobuf.Writer} [writer] Writer to encode to
262312
+ * @returns {$protobuf.Writer} Writer
262313
+ */
262314
+ UserOuraNotificationSettingUpdated.encode = function encode(message, writer) {
262315
+ if (!writer)
262316
+ writer = $Writer.create();
262317
+ if (message.hsUserId != null && Object.hasOwnProperty.call(message, "hsUserId"))
262318
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
262319
+ if (message.settingType != null && Object.hasOwnProperty.call(message, "settingType"))
262320
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.settingType);
262321
+ if (message.isEnabled != null && Object.hasOwnProperty.call(message, "isEnabled"))
262322
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isEnabled);
262323
+ return writer;
262324
+ };
262325
+
262326
+ /**
262327
+ * Encodes the specified UserOuraNotificationSettingUpdated message, length delimited. Does not implicitly {@link UserOuraNotificationSettingUpdated.verify|verify} messages.
262328
+ * @function encodeDelimited
262329
+ * @memberof UserOuraNotificationSettingUpdated
262330
+ * @static
262331
+ * @param {IUserOuraNotificationSettingUpdated} message UserOuraNotificationSettingUpdated message or plain object to encode
262332
+ * @param {$protobuf.Writer} [writer] Writer to encode to
262333
+ * @returns {$protobuf.Writer} Writer
262334
+ */
262335
+ UserOuraNotificationSettingUpdated.encodeDelimited = function encodeDelimited(message, writer) {
262336
+ return this.encode(message, writer).ldelim();
262337
+ };
262338
+
262339
+ /**
262340
+ * Decodes a UserOuraNotificationSettingUpdated message from the specified reader or buffer.
262341
+ * @function decode
262342
+ * @memberof UserOuraNotificationSettingUpdated
262343
+ * @static
262344
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
262345
+ * @param {number} [length] Message length if known beforehand
262346
+ * @returns {UserOuraNotificationSettingUpdated} UserOuraNotificationSettingUpdated
262347
+ * @throws {Error} If the payload is not a reader or valid buffer
262348
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
262349
+ */
262350
+ UserOuraNotificationSettingUpdated.decode = function decode(reader, length, error, long) {
262351
+ if (!(reader instanceof $Reader))
262352
+ reader = $Reader.create(reader);
262353
+ if (long === undefined)
262354
+ long = 0;
262355
+ if (long > $Reader.recursionLimit)
262356
+ throw Error("maximum nesting depth exceeded");
262357
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserOuraNotificationSettingUpdated();
262358
+ while (reader.pos < end) {
262359
+ var tag = reader.uint32();
262360
+ if (tag === error)
262361
+ break;
262362
+ switch (tag >>> 3) {
262363
+ case 1: {
262364
+ message.hsUserId = reader.string();
262365
+ break;
262366
+ }
262367
+ case 2: {
262368
+ message.settingType = reader.string();
262369
+ break;
262370
+ }
262371
+ case 3: {
262372
+ message.isEnabled = reader.bool();
262373
+ break;
262374
+ }
262375
+ default:
262376
+ reader.skipType(tag & 7, long);
262377
+ break;
262378
+ }
262379
+ }
262380
+ return message;
262381
+ };
262382
+
262383
+ /**
262384
+ * Decodes a UserOuraNotificationSettingUpdated message from the specified reader or buffer, length delimited.
262385
+ * @function decodeDelimited
262386
+ * @memberof UserOuraNotificationSettingUpdated
262387
+ * @static
262388
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
262389
+ * @returns {UserOuraNotificationSettingUpdated} UserOuraNotificationSettingUpdated
262390
+ * @throws {Error} If the payload is not a reader or valid buffer
262391
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
262392
+ */
262393
+ UserOuraNotificationSettingUpdated.decodeDelimited = function decodeDelimited(reader) {
262394
+ if (!(reader instanceof $Reader))
262395
+ reader = new $Reader(reader);
262396
+ return this.decode(reader, reader.uint32());
262397
+ };
262398
+
262399
+ /**
262400
+ * Verifies a UserOuraNotificationSettingUpdated message.
262401
+ * @function verify
262402
+ * @memberof UserOuraNotificationSettingUpdated
262403
+ * @static
262404
+ * @param {Object.<string,*>} message Plain object to verify
262405
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
262406
+ */
262407
+ UserOuraNotificationSettingUpdated.verify = function verify(message, long) {
262408
+ if (typeof message !== "object" || message === null)
262409
+ return "object expected";
262410
+ if (long === undefined)
262411
+ long = 0;
262412
+ if (long > $util.recursionLimit)
262413
+ return "maximum nesting depth exceeded";
262414
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
262415
+ if (!$util.isString(message.hsUserId))
262416
+ return "hsUserId: string expected";
262417
+ if (message.settingType != null && message.hasOwnProperty("settingType"))
262418
+ if (!$util.isString(message.settingType))
262419
+ return "settingType: string expected";
262420
+ if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
262421
+ if (typeof message.isEnabled !== "boolean")
262422
+ return "isEnabled: boolean expected";
262423
+ return null;
262424
+ };
262425
+
262426
+ /**
262427
+ * Creates a UserOuraNotificationSettingUpdated message from a plain object. Also converts values to their respective internal types.
262428
+ * @function fromObject
262429
+ * @memberof UserOuraNotificationSettingUpdated
262430
+ * @static
262431
+ * @param {Object.<string,*>} object Plain object
262432
+ * @returns {UserOuraNotificationSettingUpdated} UserOuraNotificationSettingUpdated
262433
+ */
262434
+ UserOuraNotificationSettingUpdated.fromObject = function fromObject(object, long) {
262435
+ if (object instanceof $root.UserOuraNotificationSettingUpdated)
262436
+ return object;
262437
+ if (long === undefined)
262438
+ long = 0;
262439
+ if (long > $util.recursionLimit)
262440
+ throw Error("maximum nesting depth exceeded");
262441
+ var message = new $root.UserOuraNotificationSettingUpdated();
262442
+ if (object.hsUserId != null)
262443
+ message.hsUserId = String(object.hsUserId);
262444
+ if (object.settingType != null)
262445
+ message.settingType = String(object.settingType);
262446
+ if (object.isEnabled != null)
262447
+ message.isEnabled = Boolean(object.isEnabled);
262448
+ return message;
262449
+ };
262450
+
262451
+ /**
262452
+ * Creates a plain object from a UserOuraNotificationSettingUpdated message. Also converts values to other types if specified.
262453
+ * @function toObject
262454
+ * @memberof UserOuraNotificationSettingUpdated
262455
+ * @static
262456
+ * @param {UserOuraNotificationSettingUpdated} message UserOuraNotificationSettingUpdated
262457
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
262458
+ * @returns {Object.<string,*>} Plain object
262459
+ */
262460
+ UserOuraNotificationSettingUpdated.toObject = function toObject(message, options) {
262461
+ if (!options)
262462
+ options = {};
262463
+ var object = {};
262464
+ if (options.defaults) {
262465
+ object.hsUserId = "";
262466
+ object.settingType = "";
262467
+ object.isEnabled = false;
262468
+ }
262469
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
262470
+ object.hsUserId = message.hsUserId;
262471
+ if (message.settingType != null && message.hasOwnProperty("settingType"))
262472
+ object.settingType = message.settingType;
262473
+ if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
262474
+ object.isEnabled = message.isEnabled;
262475
+ return object;
262476
+ };
262477
+
262478
+ /**
262479
+ * Converts this UserOuraNotificationSettingUpdated to JSON.
262480
+ * @function toJSON
262481
+ * @memberof UserOuraNotificationSettingUpdated
262482
+ * @instance
262483
+ * @returns {Object.<string,*>} JSON object
262484
+ */
262485
+ UserOuraNotificationSettingUpdated.prototype.toJSON = function toJSON() {
262486
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
262487
+ };
262488
+
262489
+ /**
262490
+ * Gets the default type url for UserOuraNotificationSettingUpdated
262491
+ * @function getTypeUrl
262492
+ * @memberof UserOuraNotificationSettingUpdated
262493
+ * @static
262494
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
262495
+ * @returns {string} The default type url
262496
+ */
262497
+ UserOuraNotificationSettingUpdated.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
262498
+ if (typeUrlPrefix === undefined) {
262499
+ typeUrlPrefix = "type.googleapis.com";
262500
+ }
262501
+ return typeUrlPrefix + "/UserOuraNotificationSettingUpdated";
262502
+ };
262503
+
262504
+ return UserOuraNotificationSettingUpdated;
262505
+ })();
262506
+
262222
262507
  $root.UserDeletionRequested = (function() {
262223
262508
 
262224
262509
  /**
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.799.0"
19
+ "version": "1.801.0"
20
20
  }