@headspace/protos-events 1.50.0 → 1.52.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 +573 -22
  2. package/lib/index.js +318 -83
  3. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -2244,12 +2244,6 @@ export interface IBuddyAccepted {
2244
2244
 
2245
2245
  /** BuddyAccepted deepLink */
2246
2246
  deepLink?: (string|null);
2247
-
2248
- /** BuddyAccepted actionIdIos */
2249
- actionIdIos?: (string|null);
2250
-
2251
- /** BuddyAccepted actionIos */
2252
- actionIos?: (Action|null);
2253
2247
  }
2254
2248
 
2255
2249
  /** Represents a BuddyAccepted. */
@@ -2270,12 +2264,6 @@ export class BuddyAccepted implements IBuddyAccepted {
2270
2264
  /** BuddyAccepted deepLink. */
2271
2265
  public deepLink: string;
2272
2266
 
2273
- /** BuddyAccepted actionIdIos. */
2274
- public actionIdIos: string;
2275
-
2276
- /** BuddyAccepted actionIos. */
2277
- public actionIos: Action;
2278
-
2279
2267
  /**
2280
2268
  * Creates a new BuddyAccepted instance using the specified properties.
2281
2269
  * @param [properties] Properties to set
@@ -2347,20 +2335,152 @@ export class BuddyAccepted implements IBuddyAccepted {
2347
2335
  public toJSON(): { [k: string]: any };
2348
2336
  }
2349
2337
 
2350
- /** Action enum. */
2351
- namespace Action {
2338
+ /** Properties of a MessageSent. */
2339
+ export interface IMessageSent {
2340
+
2341
+ /** MessageSent recipientUserId */
2342
+ recipientUserId?: (string|null);
2352
2343
 
2353
- /** OPEN_APP value */
2354
- let OPEN_APP: number;
2344
+ /** MessageSent senderUserId */
2345
+ senderUserId?: (string|null);
2355
2346
 
2356
- /** URI value */
2357
- let URI: number;
2347
+ /** MessageSent senderName */
2348
+ senderName?: (string|null);
2358
2349
 
2359
- /** DEEP_LINK value */
2360
- let DEEP_LINK: number;
2350
+ /** MessageSent senderLocale */
2351
+ senderLocale?: (string|null);
2361
2352
 
2362
- /** CLOSE value */
2363
- let CLOSE: number;
2353
+ /** MessageSent deepLink */
2354
+ deepLink?: (string|null);
2355
+
2356
+ /** MessageSent nudgeId */
2357
+ nudgeId?: (string|null);
2358
+
2359
+ /** MessageSent imageUrl */
2360
+ imageUrl?: (string|null);
2361
+ }
2362
+
2363
+ /** Represents a MessageSent. */
2364
+ export class MessageSent implements IMessageSent {
2365
+
2366
+ /**
2367
+ * Constructs a new MessageSent.
2368
+ * @param [properties] Properties to set
2369
+ */
2370
+ constructor(properties?: IMessageSent);
2371
+
2372
+ /** MessageSent recipientUserId. */
2373
+ public recipientUserId: string;
2374
+
2375
+ /** MessageSent senderUserId. */
2376
+ public senderUserId: string;
2377
+
2378
+ /** MessageSent senderName. */
2379
+ public senderName: string;
2380
+
2381
+ /** MessageSent senderLocale. */
2382
+ public senderLocale: string;
2383
+
2384
+ /** MessageSent deepLink. */
2385
+ public deepLink: string;
2386
+
2387
+ /** MessageSent nudgeId. */
2388
+ public nudgeId: string;
2389
+
2390
+ /** MessageSent imageUrl. */
2391
+ public imageUrl: string;
2392
+
2393
+ /**
2394
+ * Creates a new MessageSent instance using the specified properties.
2395
+ * @param [properties] Properties to set
2396
+ * @returns MessageSent instance
2397
+ */
2398
+ public static create(properties?: IMessageSent): MessageSent;
2399
+
2400
+ /**
2401
+ * Encodes the specified MessageSent message. Does not implicitly {@link MessageSent.verify|verify} messages.
2402
+ * @param message MessageSent message or plain object to encode
2403
+ * @param [writer] Writer to encode to
2404
+ * @returns Writer
2405
+ */
2406
+ public static encode(message: IMessageSent, writer?: $protobuf.Writer): $protobuf.Writer;
2407
+
2408
+ /**
2409
+ * Encodes the specified MessageSent message, length delimited. Does not implicitly {@link MessageSent.verify|verify} messages.
2410
+ * @param message MessageSent message or plain object to encode
2411
+ * @param [writer] Writer to encode to
2412
+ * @returns Writer
2413
+ */
2414
+ public static encodeDelimited(message: IMessageSent, writer?: $protobuf.Writer): $protobuf.Writer;
2415
+
2416
+ /**
2417
+ * Decodes a MessageSent message from the specified reader or buffer.
2418
+ * @param reader Reader or buffer to decode from
2419
+ * @param [length] Message length if known beforehand
2420
+ * @returns MessageSent
2421
+ * @throws {Error} If the payload is not a reader or valid buffer
2422
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2423
+ */
2424
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): MessageSent;
2425
+
2426
+ /**
2427
+ * Decodes a MessageSent message from the specified reader or buffer, length delimited.
2428
+ * @param reader Reader or buffer to decode from
2429
+ * @returns MessageSent
2430
+ * @throws {Error} If the payload is not a reader or valid buffer
2431
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2432
+ */
2433
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): MessageSent;
2434
+
2435
+ /**
2436
+ * Verifies a MessageSent message.
2437
+ * @param message Plain object to verify
2438
+ * @returns `null` if valid, otherwise the reason why it is not
2439
+ */
2440
+ public static verify(message: { [k: string]: any }): (string|null);
2441
+
2442
+ /**
2443
+ * Creates a MessageSent message from a plain object. Also converts values to their respective internal types.
2444
+ * @param object Plain object
2445
+ * @returns MessageSent
2446
+ */
2447
+ public static fromObject(object: { [k: string]: any }): MessageSent;
2448
+
2449
+ /**
2450
+ * Creates a plain object from a MessageSent message. Also converts values to other types if specified.
2451
+ * @param message MessageSent
2452
+ * @param [options] Conversion options
2453
+ * @returns Plain object
2454
+ */
2455
+ public static toObject(message: MessageSent, options?: $protobuf.IConversionOptions): { [k: string]: any };
2456
+
2457
+ /**
2458
+ * Converts this MessageSent to JSON.
2459
+ * @returns JSON object
2460
+ */
2461
+ public toJSON(): { [k: string]: any };
2462
+ }
2463
+
2464
+ /** Properties of a FamilyMemberAdded. */
2465
+ export interface IFamilyMemberAdded {
2466
+
2467
+ /** FamilyMemberAdded timestamp */
2468
+ timestamp?: (number|Long|null);
2469
+
2470
+ /** FamilyMemberAdded userGroupEntryId */
2471
+ userGroupEntryId?: (number|null);
2472
+
2473
+ /** FamilyMemberAdded userId */
2474
+ userId?: (string|null);
2475
+
2476
+ /** FamilyMemberAdded userGroupId */
2477
+ userGroupId?: (number|null);
2478
+
2479
+ /** FamilyMemberAdded email */
2480
+ email?: (string|null);
2481
+
2482
+ /** FamilyMemberAdded token */
2483
+ token?: (string|null);
2364
2484
  }
2365
2485
 
2366
2486
  /** Represents a FamilyMemberAdded. */
@@ -2461,6 +2581,28 @@ export class FamilyMemberAdded implements IFamilyMemberAdded {
2461
2581
  public toJSON(): { [k: string]: any };
2462
2582
  }
2463
2583
 
2584
+ /** Properties of a FamilyMemberInvited. */
2585
+ export interface IFamilyMemberInvited {
2586
+
2587
+ /** FamilyMemberInvited timestamp */
2588
+ timestamp?: (number|Long|null);
2589
+
2590
+ /** FamilyMemberInvited userGroupEntryId */
2591
+ userGroupEntryId?: (number|null);
2592
+
2593
+ /** FamilyMemberInvited userGroupId */
2594
+ userGroupId?: (number|null);
2595
+
2596
+ /** FamilyMemberInvited email */
2597
+ email?: (string|null);
2598
+
2599
+ /** FamilyMemberInvited token */
2600
+ token?: (string|null);
2601
+
2602
+ /** FamilyMemberInvited userId */
2603
+ userId?: (string|null);
2604
+ }
2605
+
2464
2606
  /** Represents a FamilyMemberInvited. */
2465
2607
  export class FamilyMemberInvited implements IFamilyMemberInvited {
2466
2608
 
@@ -2559,6 +2701,28 @@ export class FamilyMemberInvited implements IFamilyMemberInvited {
2559
2701
  public toJSON(): { [k: string]: any };
2560
2702
  }
2561
2703
 
2704
+ /** Properties of a FamilyMemberRejected. */
2705
+ export interface IFamilyMemberRejected {
2706
+
2707
+ /** FamilyMemberRejected timestamp */
2708
+ timestamp?: (number|Long|null);
2709
+
2710
+ /** FamilyMemberRejected userGroupEntryId */
2711
+ userGroupEntryId?: (number|null);
2712
+
2713
+ /** FamilyMemberRejected userGroupId */
2714
+ userGroupId?: (number|null);
2715
+
2716
+ /** FamilyMemberRejected email */
2717
+ email?: (string|null);
2718
+
2719
+ /** FamilyMemberRejected token */
2720
+ token?: (string|null);
2721
+
2722
+ /** FamilyMemberRejected userId */
2723
+ userId?: (string|null);
2724
+ }
2725
+
2562
2726
  /** Represents a FamilyMemberRejected. */
2563
2727
  export class FamilyMemberRejected implements IFamilyMemberRejected {
2564
2728
 
@@ -2657,6 +2821,22 @@ export class FamilyMemberRejected implements IFamilyMemberRejected {
2657
2821
  public toJSON(): { [k: string]: any };
2658
2822
  }
2659
2823
 
2824
+ /** Properties of a FamilyMemberRemoved. */
2825
+ export interface IFamilyMemberRemoved {
2826
+
2827
+ /** FamilyMemberRemoved timestamp */
2828
+ timestamp?: (number|Long|null);
2829
+
2830
+ /** FamilyMemberRemoved userGroupEntryId */
2831
+ userGroupEntryId?: (number|null);
2832
+
2833
+ /** FamilyMemberRemoved userId */
2834
+ userId?: (string|null);
2835
+
2836
+ /** FamilyMemberRemoved userGroupId */
2837
+ userGroupId?: (number|null);
2838
+ }
2839
+
2660
2840
  /** Represents a FamilyMemberRemoved. */
2661
2841
  export class FamilyMemberRemoved implements IFamilyMemberRemoved {
2662
2842
 
@@ -2749,6 +2929,19 @@ export class FamilyMemberRemoved implements IFamilyMemberRemoved {
2749
2929
  public toJSON(): { [k: string]: any };
2750
2930
  }
2751
2931
 
2932
+ /** Properties of a VoiceDeviceConnected. */
2933
+ export interface IVoiceDeviceConnected {
2934
+
2935
+ /** VoiceDeviceConnected userId */
2936
+ userId?: (string|null);
2937
+
2938
+ /** VoiceDeviceConnected platform */
2939
+ platform?: (string|null);
2940
+
2941
+ /** VoiceDeviceConnected timestamp */
2942
+ timestamp?: (number|Long|null);
2943
+ }
2944
+
2752
2945
  /** Represents a VoiceDeviceConnected. */
2753
2946
  export class VoiceDeviceConnected implements IVoiceDeviceConnected {
2754
2947
 
@@ -2838,6 +3031,16 @@ export class VoiceDeviceConnected implements IVoiceDeviceConnected {
2838
3031
  public toJSON(): { [k: string]: any };
2839
3032
  }
2840
3033
 
3034
+ /** Properties of a CheckInResponse. */
3035
+ export interface ICheckInResponse {
3036
+
3037
+ /** CheckInResponse questionId */
3038
+ questionId?: (number|null);
3039
+
3040
+ /** CheckInResponse response */
3041
+ response?: (string|null);
3042
+ }
3043
+
2841
3044
  /** Represents a CheckInResponse. */
2842
3045
  export class CheckInResponse implements ICheckInResponse {
2843
3046
 
@@ -2924,6 +3127,22 @@ export class CheckInResponse implements ICheckInResponse {
2924
3127
  public toJSON(): { [k: string]: any };
2925
3128
  }
2926
3129
 
3130
+ /** Properties of a CheckInCompleted. */
3131
+ export interface ICheckInCompleted {
3132
+
3133
+ /** CheckInCompleted userId */
3134
+ userId?: (string|null);
3135
+
3136
+ /** CheckInCompleted timestamp */
3137
+ timestamp?: (number|Long|null);
3138
+
3139
+ /** CheckInCompleted checkInId */
3140
+ checkInId?: (number|null);
3141
+
3142
+ /** CheckInCompleted responses */
3143
+ responses?: (ICheckInResponse[]|null);
3144
+ }
3145
+
2927
3146
  /** Represents a CheckInCompleted. */
2928
3147
  export class CheckInCompleted implements ICheckInCompleted {
2929
3148
 
@@ -3016,6 +3235,16 @@ export class CheckInCompleted implements ICheckInCompleted {
3016
3235
  public toJSON(): { [k: string]: any };
3017
3236
  }
3018
3237
 
3238
+ /** Properties of a ReferralSignedUp. */
3239
+ export interface IReferralSignedUp {
3240
+
3241
+ /** ReferralSignedUp refereeName */
3242
+ refereeName?: (string|null);
3243
+
3244
+ /** ReferralSignedUp referrerId */
3245
+ referrerId?: (string|null);
3246
+ }
3247
+
3019
3248
  /** Represents a ReferralSignedUp. */
3020
3249
  export class ReferralSignedUp implements IReferralSignedUp {
3021
3250
 
@@ -3102,6 +3331,19 @@ export class ReferralSignedUp implements IReferralSignedUp {
3102
3331
  public toJSON(): { [k: string]: any };
3103
3332
  }
3104
3333
 
3334
+ /** Properties of a SleepcastEpisodeCompleted. */
3335
+ export interface ISleepcastEpisodeCompleted {
3336
+
3337
+ /** SleepcastEpisodeCompleted timestamp */
3338
+ timestamp?: (number|Long|null);
3339
+
3340
+ /** SleepcastEpisodeCompleted sleepcastId */
3341
+ sleepcastId?: (number|null);
3342
+
3343
+ /** SleepcastEpisodeCompleted userId */
3344
+ userId?: (string|null);
3345
+ }
3346
+
3105
3347
  /** Represents a SleepcastEpisodeCompleted. */
3106
3348
  export class SleepcastEpisodeCompleted implements ISleepcastEpisodeCompleted {
3107
3349
 
@@ -3191,6 +3433,19 @@ export class SleepcastEpisodeCompleted implements ISleepcastEpisodeCompleted {
3191
3433
  public toJSON(): { [k: string]: any };
3192
3434
  }
3193
3435
 
3436
+ /** Properties of a FirstSleepcastPlayDateSet. */
3437
+ export interface IFirstSleepcastPlayDateSet {
3438
+
3439
+ /** FirstSleepcastPlayDateSet timestamp */
3440
+ timestamp?: (number|Long|null);
3441
+
3442
+ /** FirstSleepcastPlayDateSet userId */
3443
+ userId?: (string|null);
3444
+
3445
+ /** FirstSleepcastPlayDateSet firstPlayTimestamp */
3446
+ firstPlayTimestamp?: (number|Long|null);
3447
+ }
3448
+
3194
3449
  /** Represents a FirstSleepcastPlayDateSet. */
3195
3450
  export class FirstSleepcastPlayDateSet implements IFirstSleepcastPlayDateSet {
3196
3451
 
@@ -3280,6 +3535,19 @@ export class FirstSleepcastPlayDateSet implements IFirstSleepcastPlayDateSet {
3280
3535
  public toJSON(): { [k: string]: any };
3281
3536
  }
3282
3537
 
3538
+ /** Properties of a NumSleepcastPlaysSet. */
3539
+ export interface INumSleepcastPlaysSet {
3540
+
3541
+ /** NumSleepcastPlaysSet timestamp */
3542
+ timestamp?: (number|Long|null);
3543
+
3544
+ /** NumSleepcastPlaysSet userId */
3545
+ userId?: (string|null);
3546
+
3547
+ /** NumSleepcastPlaysSet numPlays */
3548
+ numPlays?: (number|null);
3549
+ }
3550
+
3283
3551
  /** Represents a NumSleepcastPlaysSet. */
3284
3552
  export class NumSleepcastPlaysSet implements INumSleepcastPlaysSet {
3285
3553
 
@@ -3369,6 +3637,40 @@ export class NumSleepcastPlaysSet implements INumSleepcastPlaysSet {
3369
3637
  public toJSON(): { [k: string]: any };
3370
3638
  }
3371
3639
 
3640
+ /** Properties of a SubscriptionCreated. */
3641
+ export interface ISubscriptionCreated {
3642
+
3643
+ /** SubscriptionCreated id */
3644
+ id?: (number|null);
3645
+
3646
+ /** SubscriptionCreated updatedOn */
3647
+ updatedOn?: (number|Long|null);
3648
+
3649
+ /** SubscriptionCreated userId */
3650
+ userId?: (string|null);
3651
+
3652
+ /** SubscriptionCreated createdAt */
3653
+ createdAt?: (number|Long|null);
3654
+
3655
+ /** SubscriptionCreated startsAt */
3656
+ startsAt?: (number|Long|null);
3657
+
3658
+ /** SubscriptionCreated endsAt */
3659
+ endsAt?: (number|Long|null);
3660
+
3661
+ /** SubscriptionCreated voucherCode */
3662
+ voucherCode?: (string|null);
3663
+
3664
+ /** SubscriptionCreated platform */
3665
+ platform?: (subscription.SubscriptionPlatform|null);
3666
+
3667
+ /** SubscriptionCreated autoRenewalStatus */
3668
+ autoRenewalStatus?: (subscription.AutoRenewalStatus|null);
3669
+
3670
+ /** SubscriptionCreated plan */
3671
+ plan?: (subscription.IPlan|null);
3672
+ }
3673
+
3372
3674
  /** Represents a SubscriptionCreated. */
3373
3675
  export class SubscriptionCreated implements ISubscriptionCreated {
3374
3676
 
@@ -3479,6 +3781,46 @@ export class SubscriptionCreated implements ISubscriptionCreated {
3479
3781
  public toJSON(): { [k: string]: any };
3480
3782
  }
3481
3783
 
3784
+ /** Properties of a SubscriptionCancelled. */
3785
+ export interface ISubscriptionCancelled {
3786
+
3787
+ /** SubscriptionCancelled id */
3788
+ id?: (number|null);
3789
+
3790
+ /** SubscriptionCancelled updatedOn */
3791
+ updatedOn?: (number|Long|null);
3792
+
3793
+ /** SubscriptionCancelled userId */
3794
+ userId?: (string|null);
3795
+
3796
+ /** SubscriptionCancelled paymentMethod */
3797
+ paymentMethod?: (subscription.IPaymentMethod|null);
3798
+
3799
+ /** SubscriptionCancelled createdAt */
3800
+ createdAt?: (number|Long|null);
3801
+
3802
+ /** SubscriptionCancelled startsAt */
3803
+ startsAt?: (number|Long|null);
3804
+
3805
+ /** SubscriptionCancelled endsAt */
3806
+ endsAt?: (number|Long|null);
3807
+
3808
+ /** SubscriptionCancelled voucherCode */
3809
+ voucherCode?: (string|null);
3810
+
3811
+ /** SubscriptionCancelled platform */
3812
+ platform?: (subscription.SubscriptionPlatform|null);
3813
+
3814
+ /** SubscriptionCancelled autoRenewalStatus */
3815
+ autoRenewalStatus?: (subscription.AutoRenewalStatus|null);
3816
+
3817
+ /** SubscriptionCancelled plan */
3818
+ plan?: (subscription.IPlan|null);
3819
+
3820
+ /** SubscriptionCancelled cancellationType */
3821
+ cancellationType?: (subscription.CancellationType|null);
3822
+ }
3823
+
3482
3824
  /** Represents a SubscriptionCancelled. */
3483
3825
  export class SubscriptionCancelled implements ISubscriptionCancelled {
3484
3826
 
@@ -3595,6 +3937,40 @@ export class SubscriptionCancelled implements ISubscriptionCancelled {
3595
3937
  public toJSON(): { [k: string]: any };
3596
3938
  }
3597
3939
 
3940
+ /** Properties of a SubscriptionRenewed. */
3941
+ export interface ISubscriptionRenewed {
3942
+
3943
+ /** SubscriptionRenewed id */
3944
+ id?: (number|null);
3945
+
3946
+ /** SubscriptionRenewed updatedOn */
3947
+ updatedOn?: (number|Long|null);
3948
+
3949
+ /** SubscriptionRenewed userId */
3950
+ userId?: (string|null);
3951
+
3952
+ /** SubscriptionRenewed createdAt */
3953
+ createdAt?: (number|Long|null);
3954
+
3955
+ /** SubscriptionRenewed startsAt */
3956
+ startsAt?: (number|Long|null);
3957
+
3958
+ /** SubscriptionRenewed endsAt */
3959
+ endsAt?: (number|Long|null);
3960
+
3961
+ /** SubscriptionRenewed voucherCode */
3962
+ voucherCode?: (string|null);
3963
+
3964
+ /** SubscriptionRenewed platform */
3965
+ platform?: (subscription.SubscriptionPlatform|null);
3966
+
3967
+ /** SubscriptionRenewed autoRenewalStatus */
3968
+ autoRenewalStatus?: (subscription.AutoRenewalStatus|null);
3969
+
3970
+ /** SubscriptionRenewed plan */
3971
+ plan?: (subscription.IPlan|null);
3972
+ }
3973
+
3598
3974
  /** Represents a SubscriptionRenewed. */
3599
3975
  export class SubscriptionRenewed implements ISubscriptionRenewed {
3600
3976
 
@@ -3705,6 +4081,37 @@ export class SubscriptionRenewed implements ISubscriptionRenewed {
3705
4081
  public toJSON(): { [k: string]: any };
3706
4082
  }
3707
4083
 
4084
+ /** Properties of a SubscriptionUpcomingRenewal. */
4085
+ export interface ISubscriptionUpcomingRenewal {
4086
+
4087
+ /** SubscriptionUpcomingRenewal id */
4088
+ id?: (number|null);
4089
+
4090
+ /** SubscriptionUpcomingRenewal userId */
4091
+ userId?: (string|null);
4092
+
4093
+ /** SubscriptionUpcomingRenewal daysBefore */
4094
+ daysBefore?: (number|null);
4095
+
4096
+ /** SubscriptionUpcomingRenewal membership */
4097
+ membership?: (subscription.SubscriptionMembership|null);
4098
+
4099
+ /** SubscriptionUpcomingRenewal planAffiliation */
4100
+ planAffiliation?: (subscription.PlanAffiliation|null);
4101
+
4102
+ /** SubscriptionUpcomingRenewal renewalDate */
4103
+ renewalDate?: (number|Long|null);
4104
+
4105
+ /** SubscriptionUpcomingRenewal paymentMethod */
4106
+ paymentMethod?: (subscription.IPaymentMethod|null);
4107
+
4108
+ /** SubscriptionUpcomingRenewal renewalAmount */
4109
+ renewalAmount?: (number|null);
4110
+
4111
+ /** SubscriptionUpcomingRenewal currency */
4112
+ currency?: (string|null);
4113
+ }
4114
+
3708
4115
  /** Represents a SubscriptionUpcomingRenewal. */
3709
4116
  export class SubscriptionUpcomingRenewal implements ISubscriptionUpcomingRenewal {
3710
4117
 
@@ -3812,6 +4219,28 @@ export class SubscriptionUpcomingRenewal implements ISubscriptionUpcomingRenewal
3812
4219
  public toJSON(): { [k: string]: any };
3813
4220
  }
3814
4221
 
4222
+ /** Properties of a SubscriptionPaymentProcessed. */
4223
+ export interface ISubscriptionPaymentProcessed {
4224
+
4225
+ /** SubscriptionPaymentProcessed userId */
4226
+ userId?: (string|null);
4227
+
4228
+ /** SubscriptionPaymentProcessed paymentDate */
4229
+ paymentDate?: (number|Long|null);
4230
+
4231
+ /** SubscriptionPaymentProcessed timestamp */
4232
+ timestamp?: (number|Long|null);
4233
+
4234
+ /** SubscriptionPaymentProcessed paymentAmount */
4235
+ paymentAmount?: (number|null);
4236
+
4237
+ /** SubscriptionPaymentProcessed renewalAmount */
4238
+ renewalAmount?: (number|null);
4239
+
4240
+ /** SubscriptionPaymentProcessed currency */
4241
+ currency?: (string|null);
4242
+ }
4243
+
3815
4244
  /** Represents a SubscriptionPaymentProcessed. */
3816
4245
  export class SubscriptionPaymentProcessed implements ISubscriptionPaymentProcessed {
3817
4246
 
@@ -3910,6 +4339,22 @@ export class SubscriptionPaymentProcessed implements ISubscriptionPaymentProcess
3910
4339
  public toJSON(): { [k: string]: any };
3911
4340
  }
3912
4341
 
4342
+ /** Properties of a SubscriptionPaymentDeclined. */
4343
+ export interface ISubscriptionPaymentDeclined {
4344
+
4345
+ /** SubscriptionPaymentDeclined userId */
4346
+ userId?: (string|null);
4347
+
4348
+ /** SubscriptionPaymentDeclined paymentDate */
4349
+ paymentDate?: (number|Long|null);
4350
+
4351
+ /** SubscriptionPaymentDeclined timestamp */
4352
+ timestamp?: (number|Long|null);
4353
+
4354
+ /** SubscriptionPaymentDeclined attempt */
4355
+ attempt?: (number|null);
4356
+ }
4357
+
3913
4358
  /** Represents a SubscriptionPaymentDeclined. */
3914
4359
  export class SubscriptionPaymentDeclined implements ISubscriptionPaymentDeclined {
3915
4360
 
@@ -4002,6 +4447,40 @@ export class SubscriptionPaymentDeclined implements ISubscriptionPaymentDeclined
4002
4447
  public toJSON(): { [k: string]: any };
4003
4448
  }
4004
4449
 
4450
+ /** Properties of a SubscriptionGraced. */
4451
+ export interface ISubscriptionGraced {
4452
+
4453
+ /** SubscriptionGraced id */
4454
+ id?: (number|null);
4455
+
4456
+ /** SubscriptionGraced updatedOn */
4457
+ updatedOn?: (number|Long|null);
4458
+
4459
+ /** SubscriptionGraced userId */
4460
+ userId?: (string|null);
4461
+
4462
+ /** SubscriptionGraced createdAt */
4463
+ createdAt?: (number|Long|null);
4464
+
4465
+ /** SubscriptionGraced startsAt */
4466
+ startsAt?: (number|Long|null);
4467
+
4468
+ /** SubscriptionGraced endsAt */
4469
+ endsAt?: (number|Long|null);
4470
+
4471
+ /** SubscriptionGraced voucherCode */
4472
+ voucherCode?: (string|null);
4473
+
4474
+ /** SubscriptionGraced platform */
4475
+ platform?: (subscription.SubscriptionPlatform|null);
4476
+
4477
+ /** SubscriptionGraced autoRenewalStatus */
4478
+ autoRenewalStatus?: (subscription.AutoRenewalStatus|null);
4479
+
4480
+ /** SubscriptionGraced plan */
4481
+ plan?: (subscription.IPlan|null);
4482
+ }
4483
+
4005
4484
  /** Represents a SubscriptionGraced. */
4006
4485
  export class SubscriptionGraced implements ISubscriptionGraced {
4007
4486
 
@@ -4112,6 +4591,13 @@ export class SubscriptionGraced implements ISubscriptionGraced {
4112
4591
  public toJSON(): { [k: string]: any };
4113
4592
  }
4114
4593
 
4594
+ /** Properties of a UserDoubleOptInEmailRequested. */
4595
+ export interface IUserDoubleOptInEmailRequested {
4596
+
4597
+ /** UserDoubleOptInEmailRequested userId */
4598
+ userId?: (string|null);
4599
+ }
4600
+
4115
4601
  /** Represents a UserDoubleOptInEmailRequested. */
4116
4602
  export class UserDoubleOptInEmailRequested implements IUserDoubleOptInEmailRequested {
4117
4603
 
@@ -4195,6 +4681,19 @@ export class UserDoubleOptInEmailRequested implements IUserDoubleOptInEmailReque
4195
4681
  public toJSON(): { [k: string]: any };
4196
4682
  }
4197
4683
 
4684
+ /** Properties of a UserEmailUpdated. */
4685
+ export interface IUserEmailUpdated {
4686
+
4687
+ /** UserEmailUpdated userId */
4688
+ userId?: (string|null);
4689
+
4690
+ /** UserEmailUpdated oldEmail */
4691
+ oldEmail?: (string|null);
4692
+
4693
+ /** UserEmailUpdated timestamp */
4694
+ timestamp?: (number|Long|null);
4695
+ }
4696
+
4198
4697
  /** Represents a UserEmailUpdated. */
4199
4698
  export class UserEmailUpdated implements IUserEmailUpdated {
4200
4699
 
@@ -4284,6 +4783,22 @@ export class UserEmailUpdated implements IUserEmailUpdated {
4284
4783
  public toJSON(): { [k: string]: any };
4285
4784
  }
4286
4785
 
4786
+ /** Properties of a UserEmailVerificationRequested. */
4787
+ export interface IUserEmailVerificationRequested {
4788
+
4789
+ /** UserEmailVerificationRequested userId */
4790
+ userId?: (string|null);
4791
+
4792
+ /** UserEmailVerificationRequested verificationCode */
4793
+ verificationCode?: (string|null);
4794
+
4795
+ /** UserEmailVerificationRequested timestamp */
4796
+ timestamp?: (number|Long|null);
4797
+
4798
+ /** UserEmailVerificationRequested optIn */
4799
+ optIn?: (boolean|null);
4800
+ }
4801
+
4287
4802
  /** Represents a UserEmailVerificationRequested. */
4288
4803
  export class UserEmailVerificationRequested implements IUserEmailVerificationRequested {
4289
4804
 
@@ -4376,6 +4891,22 @@ export class UserEmailVerificationRequested implements IUserEmailVerificationReq
4376
4891
  public toJSON(): { [k: string]: any };
4377
4892
  }
4378
4893
 
4894
+ /** Properties of a UserPasswordResetRequested. */
4895
+ export interface IUserPasswordResetRequested {
4896
+
4897
+ /** UserPasswordResetRequested userId */
4898
+ userId?: (string|null);
4899
+
4900
+ /** UserPasswordResetRequested resetCode */
4901
+ resetCode?: (string|null);
4902
+
4903
+ /** UserPasswordResetRequested timestamp */
4904
+ timestamp?: (number|Long|null);
4905
+
4906
+ /** UserPasswordResetRequested email */
4907
+ email?: (string|null);
4908
+ }
4909
+
4379
4910
  /** Represents a UserPasswordResetRequested. */
4380
4911
  export class UserPasswordResetRequested implements IUserPasswordResetRequested {
4381
4912
 
@@ -4468,6 +4999,19 @@ export class UserPasswordResetRequested implements IUserPasswordResetRequested {
4468
4999
  public toJSON(): { [k: string]: any };
4469
5000
  }
4470
5001
 
5002
+ /** Properties of a UserPasswordUpdated. */
5003
+ export interface IUserPasswordUpdated {
5004
+
5005
+ /** UserPasswordUpdated userId */
5006
+ userId?: (string|null);
5007
+
5008
+ /** UserPasswordUpdated updatedOn */
5009
+ updatedOn?: (number|Long|null);
5010
+
5011
+ /** UserPasswordUpdated email */
5012
+ email?: (string|null);
5013
+ }
5014
+
4471
5015
  /** Represents a UserPasswordUpdated. */
4472
5016
  export class UserPasswordUpdated implements IUserPasswordUpdated {
4473
5017
 
@@ -4557,6 +5101,13 @@ export class UserPasswordUpdated implements IUserPasswordUpdated {
4557
5101
  public toJSON(): { [k: string]: any };
4558
5102
  }
4559
5103
 
5104
+ /** Properties of a UserEmailMarketingOptedIn. */
5105
+ export interface IUserEmailMarketingOptedIn {
5106
+
5107
+ /** UserEmailMarketingOptedIn userId */
5108
+ userId?: (string|null);
5109
+ }
5110
+
4560
5111
  /** Represents a UserEmailMarketingOptedIn. */
4561
5112
  export class UserEmailMarketingOptedIn implements IUserEmailMarketingOptedIn {
4562
5113
 
package/lib/index.js CHANGED
@@ -5313,8 +5313,6 @@ $root.BuddyAccepted = (function() {
5313
5313
  * @property {string|null} [buddyName] BuddyAccepted buddyName
5314
5314
  * @property {string|null} [userId] BuddyAccepted userId
5315
5315
  * @property {string|null} [deepLink] BuddyAccepted deepLink
5316
- * @property {string|null} [actionIdIos] BuddyAccepted actionIdIos
5317
- * @property {Action|null} [actionIos] BuddyAccepted actionIos
5318
5316
  */
5319
5317
 
5320
5318
  /**
@@ -5356,22 +5354,6 @@ $root.BuddyAccepted = (function() {
5356
5354
  */
5357
5355
  BuddyAccepted.prototype.deepLink = "";
5358
5356
 
5359
- /**
5360
- * BuddyAccepted actionIdIos.
5361
- * @member {string} actionIdIos
5362
- * @memberof BuddyAccepted
5363
- * @instance
5364
- */
5365
- BuddyAccepted.prototype.actionIdIos = "";
5366
-
5367
- /**
5368
- * BuddyAccepted actionIos.
5369
- * @member {Action} actionIos
5370
- * @memberof BuddyAccepted
5371
- * @instance
5372
- */
5373
- BuddyAccepted.prototype.actionIos = 0;
5374
-
5375
5357
  /**
5376
5358
  * Creates a new BuddyAccepted instance using the specified properties.
5377
5359
  * @function create
@@ -5402,10 +5384,6 @@ $root.BuddyAccepted = (function() {
5402
5384
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.userId);
5403
5385
  if (message.deepLink != null && message.hasOwnProperty("deepLink"))
5404
5386
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.deepLink);
5405
- if (message.actionIdIos != null && message.hasOwnProperty("actionIdIos"))
5406
- writer.uint32(/* id 4, wireType 2 =*/34).string(message.actionIdIos);
5407
- if (message.actionIos != null && message.hasOwnProperty("actionIos"))
5408
- writer.uint32(/* id 5, wireType 0 =*/40).int32(message.actionIos);
5409
5387
  return writer;
5410
5388
  };
5411
5389
 
@@ -5449,12 +5427,6 @@ $root.BuddyAccepted = (function() {
5449
5427
  case 3:
5450
5428
  message.deepLink = reader.string();
5451
5429
  break;
5452
- case 4:
5453
- message.actionIdIos = reader.string();
5454
- break;
5455
- case 5:
5456
- message.actionIos = reader.int32();
5457
- break;
5458
5430
  default:
5459
5431
  reader.skipType(tag & 7);
5460
5432
  break;
@@ -5499,19 +5471,6 @@ $root.BuddyAccepted = (function() {
5499
5471
  if (message.deepLink != null && message.hasOwnProperty("deepLink"))
5500
5472
  if (!$util.isString(message.deepLink))
5501
5473
  return "deepLink: string expected";
5502
- if (message.actionIdIos != null && message.hasOwnProperty("actionIdIos"))
5503
- if (!$util.isString(message.actionIdIos))
5504
- return "actionIdIos: string expected";
5505
- if (message.actionIos != null && message.hasOwnProperty("actionIos"))
5506
- switch (message.actionIos) {
5507
- default:
5508
- return "actionIos: enum value expected";
5509
- case 0:
5510
- case 1:
5511
- case 2:
5512
- case 3:
5513
- break;
5514
- }
5515
5474
  return null;
5516
5475
  };
5517
5476
 
@@ -5533,26 +5492,6 @@ $root.BuddyAccepted = (function() {
5533
5492
  message.userId = String(object.userId);
5534
5493
  if (object.deepLink != null)
5535
5494
  message.deepLink = String(object.deepLink);
5536
- if (object.actionIdIos != null)
5537
- message.actionIdIos = String(object.actionIdIos);
5538
- switch (object.actionIos) {
5539
- case "OPEN_APP":
5540
- case 0:
5541
- message.actionIos = 0;
5542
- break;
5543
- case "URI":
5544
- case 1:
5545
- message.actionIos = 1;
5546
- break;
5547
- case "DEEP_LINK":
5548
- case 2:
5549
- message.actionIos = 2;
5550
- break;
5551
- case "CLOSE":
5552
- case 3:
5553
- message.actionIos = 3;
5554
- break;
5555
- }
5556
5495
  return message;
5557
5496
  };
5558
5497
 
@@ -5573,8 +5512,6 @@ $root.BuddyAccepted = (function() {
5573
5512
  object.buddyName = "";
5574
5513
  object.userId = "";
5575
5514
  object.deepLink = "";
5576
- object.actionIdIos = "";
5577
- object.actionIos = options.enums === String ? "OPEN_APP" : 0;
5578
5515
  }
5579
5516
  if (message.buddyName != null && message.hasOwnProperty("buddyName"))
5580
5517
  object.buddyName = message.buddyName;
@@ -5582,10 +5519,6 @@ $root.BuddyAccepted = (function() {
5582
5519
  object.userId = message.userId;
5583
5520
  if (message.deepLink != null && message.hasOwnProperty("deepLink"))
5584
5521
  object.deepLink = message.deepLink;
5585
- if (message.actionIdIos != null && message.hasOwnProperty("actionIdIos"))
5586
- object.actionIdIos = message.actionIdIos;
5587
- if (message.actionIos != null && message.hasOwnProperty("actionIos"))
5588
- object.actionIos = options.enums === String ? $root.Action[message.actionIos] : message.actionIos;
5589
5522
  return object;
5590
5523
  };
5591
5524
 
@@ -5603,22 +5536,324 @@ $root.BuddyAccepted = (function() {
5603
5536
  return BuddyAccepted;
5604
5537
  })();
5605
5538
 
5606
- /**
5607
- * Action enum.
5608
- * @exports Action
5609
- * @enum {string}
5610
- * @property {number} OPEN_APP=0 OPEN_APP value
5611
- * @property {number} URI=1 URI value
5612
- * @property {number} DEEP_LINK=2 DEEP_LINK value
5613
- * @property {number} CLOSE=3 CLOSE value
5614
- */
5615
- $root.Action = (function() {
5616
- var valuesById = {}, values = Object.create(valuesById);
5617
- values[valuesById[0] = "OPEN_APP"] = 0;
5618
- values[valuesById[1] = "URI"] = 1;
5619
- values[valuesById[2] = "DEEP_LINK"] = 2;
5620
- values[valuesById[3] = "CLOSE"] = 3;
5621
- return values;
5539
+ $root.MessageSent = (function() {
5540
+
5541
+ /**
5542
+ * Properties of a MessageSent.
5543
+ * @exports IMessageSent
5544
+ * @interface IMessageSent
5545
+ * @property {string|null} [recipientUserId] MessageSent recipientUserId
5546
+ * @property {string|null} [senderUserId] MessageSent senderUserId
5547
+ * @property {string|null} [senderName] MessageSent senderName
5548
+ * @property {string|null} [senderLocale] MessageSent senderLocale
5549
+ * @property {string|null} [deepLink] MessageSent deepLink
5550
+ * @property {string|null} [nudgeId] MessageSent nudgeId
5551
+ * @property {string|null} [imageUrl] MessageSent imageUrl
5552
+ */
5553
+
5554
+ /**
5555
+ * Constructs a new MessageSent.
5556
+ * @exports MessageSent
5557
+ * @classdesc Represents a MessageSent.
5558
+ * @implements IMessageSent
5559
+ * @constructor
5560
+ * @param {IMessageSent=} [properties] Properties to set
5561
+ */
5562
+ function MessageSent(properties) {
5563
+ if (properties)
5564
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
5565
+ if (properties[keys[i]] != null)
5566
+ this[keys[i]] = properties[keys[i]];
5567
+ }
5568
+
5569
+ /**
5570
+ * MessageSent recipientUserId.
5571
+ * @member {string} recipientUserId
5572
+ * @memberof MessageSent
5573
+ * @instance
5574
+ */
5575
+ MessageSent.prototype.recipientUserId = "";
5576
+
5577
+ /**
5578
+ * MessageSent senderUserId.
5579
+ * @member {string} senderUserId
5580
+ * @memberof MessageSent
5581
+ * @instance
5582
+ */
5583
+ MessageSent.prototype.senderUserId = "";
5584
+
5585
+ /**
5586
+ * MessageSent senderName.
5587
+ * @member {string} senderName
5588
+ * @memberof MessageSent
5589
+ * @instance
5590
+ */
5591
+ MessageSent.prototype.senderName = "";
5592
+
5593
+ /**
5594
+ * MessageSent senderLocale.
5595
+ * @member {string} senderLocale
5596
+ * @memberof MessageSent
5597
+ * @instance
5598
+ */
5599
+ MessageSent.prototype.senderLocale = "";
5600
+
5601
+ /**
5602
+ * MessageSent deepLink.
5603
+ * @member {string} deepLink
5604
+ * @memberof MessageSent
5605
+ * @instance
5606
+ */
5607
+ MessageSent.prototype.deepLink = "";
5608
+
5609
+ /**
5610
+ * MessageSent nudgeId.
5611
+ * @member {string} nudgeId
5612
+ * @memberof MessageSent
5613
+ * @instance
5614
+ */
5615
+ MessageSent.prototype.nudgeId = "";
5616
+
5617
+ /**
5618
+ * MessageSent imageUrl.
5619
+ * @member {string} imageUrl
5620
+ * @memberof MessageSent
5621
+ * @instance
5622
+ */
5623
+ MessageSent.prototype.imageUrl = "";
5624
+
5625
+ /**
5626
+ * Creates a new MessageSent instance using the specified properties.
5627
+ * @function create
5628
+ * @memberof MessageSent
5629
+ * @static
5630
+ * @param {IMessageSent=} [properties] Properties to set
5631
+ * @returns {MessageSent} MessageSent instance
5632
+ */
5633
+ MessageSent.create = function create(properties) {
5634
+ return new MessageSent(properties);
5635
+ };
5636
+
5637
+ /**
5638
+ * Encodes the specified MessageSent message. Does not implicitly {@link MessageSent.verify|verify} messages.
5639
+ * @function encode
5640
+ * @memberof MessageSent
5641
+ * @static
5642
+ * @param {IMessageSent} message MessageSent message or plain object to encode
5643
+ * @param {$protobuf.Writer} [writer] Writer to encode to
5644
+ * @returns {$protobuf.Writer} Writer
5645
+ */
5646
+ MessageSent.encode = function encode(message, writer) {
5647
+ if (!writer)
5648
+ writer = $Writer.create();
5649
+ if (message.recipientUserId != null && message.hasOwnProperty("recipientUserId"))
5650
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.recipientUserId);
5651
+ if (message.senderUserId != null && message.hasOwnProperty("senderUserId"))
5652
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.senderUserId);
5653
+ if (message.senderName != null && message.hasOwnProperty("senderName"))
5654
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.senderName);
5655
+ if (message.senderLocale != null && message.hasOwnProperty("senderLocale"))
5656
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.senderLocale);
5657
+ if (message.deepLink != null && message.hasOwnProperty("deepLink"))
5658
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.deepLink);
5659
+ if (message.nudgeId != null && message.hasOwnProperty("nudgeId"))
5660
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.nudgeId);
5661
+ if (message.imageUrl != null && message.hasOwnProperty("imageUrl"))
5662
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.imageUrl);
5663
+ return writer;
5664
+ };
5665
+
5666
+ /**
5667
+ * Encodes the specified MessageSent message, length delimited. Does not implicitly {@link MessageSent.verify|verify} messages.
5668
+ * @function encodeDelimited
5669
+ * @memberof MessageSent
5670
+ * @static
5671
+ * @param {IMessageSent} message MessageSent message or plain object to encode
5672
+ * @param {$protobuf.Writer} [writer] Writer to encode to
5673
+ * @returns {$protobuf.Writer} Writer
5674
+ */
5675
+ MessageSent.encodeDelimited = function encodeDelimited(message, writer) {
5676
+ return this.encode(message, writer).ldelim();
5677
+ };
5678
+
5679
+ /**
5680
+ * Decodes a MessageSent message from the specified reader or buffer.
5681
+ * @function decode
5682
+ * @memberof MessageSent
5683
+ * @static
5684
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
5685
+ * @param {number} [length] Message length if known beforehand
5686
+ * @returns {MessageSent} MessageSent
5687
+ * @throws {Error} If the payload is not a reader or valid buffer
5688
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5689
+ */
5690
+ MessageSent.decode = function decode(reader, length) {
5691
+ if (!(reader instanceof $Reader))
5692
+ reader = $Reader.create(reader);
5693
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.MessageSent();
5694
+ while (reader.pos < end) {
5695
+ var tag = reader.uint32();
5696
+ switch (tag >>> 3) {
5697
+ case 1:
5698
+ message.recipientUserId = reader.string();
5699
+ break;
5700
+ case 2:
5701
+ message.senderUserId = reader.string();
5702
+ break;
5703
+ case 3:
5704
+ message.senderName = reader.string();
5705
+ break;
5706
+ case 4:
5707
+ message.senderLocale = reader.string();
5708
+ break;
5709
+ case 5:
5710
+ message.deepLink = reader.string();
5711
+ break;
5712
+ case 6:
5713
+ message.nudgeId = reader.string();
5714
+ break;
5715
+ case 7:
5716
+ message.imageUrl = reader.string();
5717
+ break;
5718
+ default:
5719
+ reader.skipType(tag & 7);
5720
+ break;
5721
+ }
5722
+ }
5723
+ return message;
5724
+ };
5725
+
5726
+ /**
5727
+ * Decodes a MessageSent message from the specified reader or buffer, length delimited.
5728
+ * @function decodeDelimited
5729
+ * @memberof MessageSent
5730
+ * @static
5731
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
5732
+ * @returns {MessageSent} MessageSent
5733
+ * @throws {Error} If the payload is not a reader or valid buffer
5734
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5735
+ */
5736
+ MessageSent.decodeDelimited = function decodeDelimited(reader) {
5737
+ if (!(reader instanceof $Reader))
5738
+ reader = new $Reader(reader);
5739
+ return this.decode(reader, reader.uint32());
5740
+ };
5741
+
5742
+ /**
5743
+ * Verifies a MessageSent message.
5744
+ * @function verify
5745
+ * @memberof MessageSent
5746
+ * @static
5747
+ * @param {Object.<string,*>} message Plain object to verify
5748
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
5749
+ */
5750
+ MessageSent.verify = function verify(message) {
5751
+ if (typeof message !== "object" || message === null)
5752
+ return "object expected";
5753
+ if (message.recipientUserId != null && message.hasOwnProperty("recipientUserId"))
5754
+ if (!$util.isString(message.recipientUserId))
5755
+ return "recipientUserId: string expected";
5756
+ if (message.senderUserId != null && message.hasOwnProperty("senderUserId"))
5757
+ if (!$util.isString(message.senderUserId))
5758
+ return "senderUserId: string expected";
5759
+ if (message.senderName != null && message.hasOwnProperty("senderName"))
5760
+ if (!$util.isString(message.senderName))
5761
+ return "senderName: string expected";
5762
+ if (message.senderLocale != null && message.hasOwnProperty("senderLocale"))
5763
+ if (!$util.isString(message.senderLocale))
5764
+ return "senderLocale: string expected";
5765
+ if (message.deepLink != null && message.hasOwnProperty("deepLink"))
5766
+ if (!$util.isString(message.deepLink))
5767
+ return "deepLink: string expected";
5768
+ if (message.nudgeId != null && message.hasOwnProperty("nudgeId"))
5769
+ if (!$util.isString(message.nudgeId))
5770
+ return "nudgeId: string expected";
5771
+ if (message.imageUrl != null && message.hasOwnProperty("imageUrl"))
5772
+ if (!$util.isString(message.imageUrl))
5773
+ return "imageUrl: string expected";
5774
+ return null;
5775
+ };
5776
+
5777
+ /**
5778
+ * Creates a MessageSent message from a plain object. Also converts values to their respective internal types.
5779
+ * @function fromObject
5780
+ * @memberof MessageSent
5781
+ * @static
5782
+ * @param {Object.<string,*>} object Plain object
5783
+ * @returns {MessageSent} MessageSent
5784
+ */
5785
+ MessageSent.fromObject = function fromObject(object) {
5786
+ if (object instanceof $root.MessageSent)
5787
+ return object;
5788
+ var message = new $root.MessageSent();
5789
+ if (object.recipientUserId != null)
5790
+ message.recipientUserId = String(object.recipientUserId);
5791
+ if (object.senderUserId != null)
5792
+ message.senderUserId = String(object.senderUserId);
5793
+ if (object.senderName != null)
5794
+ message.senderName = String(object.senderName);
5795
+ if (object.senderLocale != null)
5796
+ message.senderLocale = String(object.senderLocale);
5797
+ if (object.deepLink != null)
5798
+ message.deepLink = String(object.deepLink);
5799
+ if (object.nudgeId != null)
5800
+ message.nudgeId = String(object.nudgeId);
5801
+ if (object.imageUrl != null)
5802
+ message.imageUrl = String(object.imageUrl);
5803
+ return message;
5804
+ };
5805
+
5806
+ /**
5807
+ * Creates a plain object from a MessageSent message. Also converts values to other types if specified.
5808
+ * @function toObject
5809
+ * @memberof MessageSent
5810
+ * @static
5811
+ * @param {MessageSent} message MessageSent
5812
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
5813
+ * @returns {Object.<string,*>} Plain object
5814
+ */
5815
+ MessageSent.toObject = function toObject(message, options) {
5816
+ if (!options)
5817
+ options = {};
5818
+ var object = {};
5819
+ if (options.defaults) {
5820
+ object.recipientUserId = "";
5821
+ object.senderUserId = "";
5822
+ object.senderName = "";
5823
+ object.senderLocale = "";
5824
+ object.deepLink = "";
5825
+ object.nudgeId = "";
5826
+ object.imageUrl = "";
5827
+ }
5828
+ if (message.recipientUserId != null && message.hasOwnProperty("recipientUserId"))
5829
+ object.recipientUserId = message.recipientUserId;
5830
+ if (message.senderUserId != null && message.hasOwnProperty("senderUserId"))
5831
+ object.senderUserId = message.senderUserId;
5832
+ if (message.senderName != null && message.hasOwnProperty("senderName"))
5833
+ object.senderName = message.senderName;
5834
+ if (message.senderLocale != null && message.hasOwnProperty("senderLocale"))
5835
+ object.senderLocale = message.senderLocale;
5836
+ if (message.deepLink != null && message.hasOwnProperty("deepLink"))
5837
+ object.deepLink = message.deepLink;
5838
+ if (message.nudgeId != null && message.hasOwnProperty("nudgeId"))
5839
+ object.nudgeId = message.nudgeId;
5840
+ if (message.imageUrl != null && message.hasOwnProperty("imageUrl"))
5841
+ object.imageUrl = message.imageUrl;
5842
+ return object;
5843
+ };
5844
+
5845
+ /**
5846
+ * Converts this MessageSent to JSON.
5847
+ * @function toJSON
5848
+ * @memberof MessageSent
5849
+ * @instance
5850
+ * @returns {Object.<string,*>} JSON object
5851
+ */
5852
+ MessageSent.prototype.toJSON = function toJSON() {
5853
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
5854
+ };
5855
+
5856
+ return MessageSent;
5622
5857
  })();
5623
5858
 
5624
5859
  $root.FamilyMemberAdded = (function() {
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.50.0"
19
+ "version": "1.52.0"
20
20
  }