@headspace/protos-events 1.356.0 → 1.357.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 +41 -110
  2. package/lib/index.js +156 -249
  3. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -8791,6 +8791,17 @@ export namespace productcatalog {
8791
8791
  }
8792
8792
  }
8793
8793
 
8794
+ /** Namespace gift. */
8795
+ export namespace gift {
8796
+
8797
+ /** GiftProductSkuTaxMode enum. */
8798
+ enum GiftProductSkuTaxMode {
8799
+ GIFT_PRODUCT_SKU_TAX_MODE_UNKNOWN = 0,
8800
+ GIFT_PRODUCT_SKU_TAX_MODE_EXCLUSIVE = 1,
8801
+ GIFT_PRODUCT_SKU_TAX_MODE_INCLUSIVE = 2
8802
+ }
8803
+ }
8804
+
8794
8805
  /** Namespace b2b. */
8795
8806
  export namespace b2b {
8796
8807
 
@@ -9952,9 +9963,6 @@ export namespace b2b {
9952
9963
  /** Organization ssoEnabled */
9953
9964
  ssoEnabled?: (boolean|null);
9954
9965
 
9955
- /** Organization mfaEnabled */
9956
- mfaEnabled?: (boolean|null);
9957
-
9958
9966
  /** Organization promoEmailsDisabled */
9959
9967
  promoEmailsDisabled?: (boolean|null);
9960
9968
 
@@ -9998,9 +10006,6 @@ export namespace b2b {
9998
10006
  /** Organization ssoEnabled. */
9999
10007
  public ssoEnabled: boolean;
10000
10008
 
10001
- /** Organization mfaEnabled. */
10002
- public mfaEnabled: boolean;
10003
-
10004
10009
  /** Organization promoEmailsDisabled. */
10005
10010
  public promoEmailsDisabled: boolean;
10006
10011
 
@@ -32620,6 +32625,12 @@ export interface IGiftRedeemed {
32620
32625
 
32621
32626
  /** GiftRedeemed redeemedOn */
32622
32627
  redeemedOn?: (number|Long|null);
32628
+
32629
+ /** GiftRedeemed productSkuId */
32630
+ productSkuId?: (string|null);
32631
+
32632
+ /** GiftRedeemed productSkuSlug */
32633
+ productSkuSlug?: (string|null);
32623
32634
  }
32624
32635
 
32625
32636
  /** Represents a GiftRedeemed. */
@@ -32640,6 +32651,12 @@ export class GiftRedeemed implements IGiftRedeemed {
32640
32651
  /** GiftRedeemed redeemedOn. */
32641
32652
  public redeemedOn: (number|Long);
32642
32653
 
32654
+ /** GiftRedeemed productSkuId. */
32655
+ public productSkuId: string;
32656
+
32657
+ /** GiftRedeemed productSkuSlug. */
32658
+ public productSkuSlug: string;
32659
+
32643
32660
  /**
32644
32661
  * Creates a new GiftRedeemed instance using the specified properties.
32645
32662
  * @param [properties] Properties to set
@@ -32872,6 +32889,15 @@ export interface IGiftPurchased {
32872
32889
 
32873
32890
  /** GiftPurchased giftPurchaseId */
32874
32891
  giftPurchaseId?: (string|null);
32892
+
32893
+ /** GiftPurchased productSkuId */
32894
+ productSkuId?: (string|null);
32895
+
32896
+ /** GiftPurchased productSkuSlug */
32897
+ productSkuSlug?: (string|null);
32898
+
32899
+ /** GiftPurchased productSkuTaxMode */
32900
+ productSkuTaxMode?: (gift.GiftProductSkuTaxMode|null);
32875
32901
  }
32876
32902
 
32877
32903
  /** Represents a GiftPurchased. */
@@ -32904,6 +32930,15 @@ export class GiftPurchased implements IGiftPurchased {
32904
32930
  /** GiftPurchased giftPurchaseId. */
32905
32931
  public giftPurchaseId: string;
32906
32932
 
32933
+ /** GiftPurchased productSkuId. */
32934
+ public productSkuId: string;
32935
+
32936
+ /** GiftPurchased productSkuSlug. */
32937
+ public productSkuSlug: string;
32938
+
32939
+ /** GiftPurchased productSkuTaxMode. */
32940
+ public productSkuTaxMode: gift.GiftProductSkuTaxMode;
32941
+
32907
32942
  /**
32908
32943
  * Creates a new GiftPurchased instance using the specified properties.
32909
32944
  * @param [properties] Properties to set
@@ -40703,110 +40738,6 @@ export class SubscriptionMemberSubscribed implements ISubscriptionMemberSubscrib
40703
40738
  public toJSON(): { [k: string]: any };
40704
40739
  }
40705
40740
 
40706
-
40707
- /** Properties of a UserMFAEnrollmentInitiated. */
40708
- export interface IUserMFAEnrollmentInitiated {
40709
-
40710
- /** UserMFAEnrollmentInitiated userId */
40711
- userId?: (string|null);
40712
-
40713
- /** UserMFAEnrollmentInitiated enabled */
40714
- enabled?: (boolean|null);
40715
-
40716
- /** UserMFAEnrollmentInitiated timestamp */
40717
- timestamp?: (number|Long|null);
40718
- }
40719
-
40720
- /** Represents a UserMFAEnrollmentInitiated. */
40721
- export class UserMFAEnrollmentInitiated implements IUserMFAEnrollmentInitiated {
40722
-
40723
- /**
40724
- * Constructs a new UserMFAEnrollmentInitiated.
40725
- * @param [properties] Properties to set
40726
- */
40727
- constructor(properties?: IUserMFAEnrollmentInitiated);
40728
-
40729
- /** UserMFAEnrollmentInitiated userId. */
40730
- public userId: string;
40731
-
40732
- /** UserMFAEnrollmentInitiated enabled. */
40733
- public enabled: boolean;
40734
-
40735
- /** UserMFAEnrollmentInitiated timestamp. */
40736
- public timestamp: (number|Long);
40737
-
40738
- /**
40739
- * Creates a new UserMFAEnrollmentInitiated instance using the specified properties.
40740
- * @param [properties] Properties to set
40741
- * @returns UserMFAEnrollmentInitiated instance
40742
- */
40743
- public static create(properties?: IUserMFAEnrollmentInitiated): UserMFAEnrollmentInitiated;
40744
-
40745
- /**
40746
- * Encodes the specified UserMFAEnrollmentInitiated message. Does not implicitly {@link UserMFAEnrollmentInitiated.verify|verify} messages.
40747
- * @param message UserMFAEnrollmentInitiated message or plain object to encode
40748
- * @param [writer] Writer to encode to
40749
- * @returns Writer
40750
- */
40751
- public static encode(message: IUserMFAEnrollmentInitiated, writer?: $protobuf.Writer): $protobuf.Writer;
40752
-
40753
- /**
40754
- * Encodes the specified UserMFAEnrollmentInitiated message, length delimited. Does not implicitly {@link UserMFAEnrollmentInitiated.verify|verify} messages.
40755
- * @param message UserMFAEnrollmentInitiated message or plain object to encode
40756
- * @param [writer] Writer to encode to
40757
- * @returns Writer
40758
- */
40759
- public static encodeDelimited(message: IUserMFAEnrollmentInitiated, writer?: $protobuf.Writer): $protobuf.Writer;
40760
-
40761
- /**
40762
- * Decodes a UserMFAEnrollmentInitiated message from the specified reader or buffer.
40763
- * @param reader Reader or buffer to decode from
40764
- * @param [length] Message length if known beforehand
40765
- * @returns UserMFAEnrollmentInitiated
40766
- * @throws {Error} If the payload is not a reader or valid buffer
40767
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
40768
- */
40769
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserMFAEnrollmentInitiated;
40770
-
40771
- /**
40772
- * Decodes a UserMFAEnrollmentInitiated message from the specified reader or buffer, length delimited.
40773
- * @param reader Reader or buffer to decode from
40774
- * @returns UserMFAEnrollmentInitiated
40775
- * @throws {Error} If the payload is not a reader or valid buffer
40776
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
40777
- */
40778
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserMFAEnrollmentInitiated;
40779
-
40780
- /**
40781
- * Verifies a UserMFAEnrollmentInitiated message.
40782
- * @param message Plain object to verify
40783
- * @returns `null` if valid, otherwise the reason why it is not
40784
- */
40785
- public static verify(message: { [k: string]: any }): (string|null);
40786
-
40787
- /**
40788
- * Creates a UserMFAEnrollmentInitiated message from a plain object. Also converts values to their respective internal types.
40789
- * @param object Plain object
40790
- * @returns UserMFAEnrollmentInitiated
40791
- */
40792
- public static fromObject(object: { [k: string]: any }): UserMFAEnrollmentInitiated;
40793
-
40794
- /**
40795
- * Creates a plain object from a UserMFAEnrollmentInitiated message. Also converts values to other types if specified.
40796
- * @param message UserMFAEnrollmentInitiated
40797
- * @param [options] Conversion options
40798
- * @returns Plain object
40799
- */
40800
- public static toObject(message: UserMFAEnrollmentInitiated, options?: $protobuf.IConversionOptions): { [k: string]: any };
40801
-
40802
- /**
40803
- * Converts this UserMFAEnrollmentInitiated to JSON.
40804
- * @returns JSON object
40805
- */
40806
- public toJSON(): { [k: string]: any };
40807
- }
40808
-
40809
-
40810
40741
  /** Properties of a SubscriptionMemberRenewed. */
40811
40742
  export interface ISubscriptionMemberRenewed {
40812
40743
 
package/lib/index.js CHANGED
@@ -21287,6 +21287,34 @@ $root.productcatalog = (function() {
21287
21287
  return productcatalog;
21288
21288
  })();
21289
21289
 
21290
+ $root.gift = (function() {
21291
+
21292
+ /**
21293
+ * Namespace gift.
21294
+ * @exports gift
21295
+ * @namespace
21296
+ */
21297
+ var gift = {};
21298
+
21299
+ /**
21300
+ * GiftProductSkuTaxMode enum.
21301
+ * @name gift.GiftProductSkuTaxMode
21302
+ * @enum {string}
21303
+ * @property {number} GIFT_PRODUCT_SKU_TAX_MODE_UNKNOWN=0 GIFT_PRODUCT_SKU_TAX_MODE_UNKNOWN value
21304
+ * @property {number} GIFT_PRODUCT_SKU_TAX_MODE_EXCLUSIVE=1 GIFT_PRODUCT_SKU_TAX_MODE_EXCLUSIVE value
21305
+ * @property {number} GIFT_PRODUCT_SKU_TAX_MODE_INCLUSIVE=2 GIFT_PRODUCT_SKU_TAX_MODE_INCLUSIVE value
21306
+ */
21307
+ gift.GiftProductSkuTaxMode = (function() {
21308
+ var valuesById = {}, values = Object.create(valuesById);
21309
+ values[valuesById[0] = "GIFT_PRODUCT_SKU_TAX_MODE_UNKNOWN"] = 0;
21310
+ values[valuesById[1] = "GIFT_PRODUCT_SKU_TAX_MODE_EXCLUSIVE"] = 1;
21311
+ values[valuesById[2] = "GIFT_PRODUCT_SKU_TAX_MODE_INCLUSIVE"] = 2;
21312
+ return values;
21313
+ })();
21314
+
21315
+ return gift;
21316
+ })();
21317
+
21290
21318
  $root.b2b = (function() {
21291
21319
 
21292
21320
  /**
@@ -90827,6 +90855,8 @@ $root.GiftRedeemed = (function() {
90827
90855
  * @property {string|null} [giftRecipientHsUserId] GiftRedeemed giftRecipientHsUserId
90828
90856
  * @property {string|null} [giftPurchaseId] GiftRedeemed giftPurchaseId
90829
90857
  * @property {number|Long|null} [redeemedOn] GiftRedeemed redeemedOn
90858
+ * @property {string|null} [productSkuId] GiftRedeemed productSkuId
90859
+ * @property {string|null} [productSkuSlug] GiftRedeemed productSkuSlug
90830
90860
  */
90831
90861
 
90832
90862
  /**
@@ -90868,6 +90898,22 @@ $root.GiftRedeemed = (function() {
90868
90898
  */
90869
90899
  GiftRedeemed.prototype.redeemedOn = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
90870
90900
 
90901
+ /**
90902
+ * GiftRedeemed productSkuId.
90903
+ * @member {string} productSkuId
90904
+ * @memberof GiftRedeemed
90905
+ * @instance
90906
+ */
90907
+ GiftRedeemed.prototype.productSkuId = "";
90908
+
90909
+ /**
90910
+ * GiftRedeemed productSkuSlug.
90911
+ * @member {string} productSkuSlug
90912
+ * @memberof GiftRedeemed
90913
+ * @instance
90914
+ */
90915
+ GiftRedeemed.prototype.productSkuSlug = "";
90916
+
90871
90917
  /**
90872
90918
  * Creates a new GiftRedeemed instance using the specified properties.
90873
90919
  * @function create
@@ -90898,6 +90944,10 @@ $root.GiftRedeemed = (function() {
90898
90944
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.giftPurchaseId);
90899
90945
  if (message.redeemedOn != null && message.hasOwnProperty("redeemedOn"))
90900
90946
  writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.redeemedOn);
90947
+ if (message.productSkuId != null && message.hasOwnProperty("productSkuId"))
90948
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.productSkuId);
90949
+ if (message.productSkuSlug != null && message.hasOwnProperty("productSkuSlug"))
90950
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.productSkuSlug);
90901
90951
  return writer;
90902
90952
  };
90903
90953
 
@@ -90941,6 +90991,12 @@ $root.GiftRedeemed = (function() {
90941
90991
  case 3:
90942
90992
  message.redeemedOn = reader.uint64();
90943
90993
  break;
90994
+ case 4:
90995
+ message.productSkuId = reader.string();
90996
+ break;
90997
+ case 5:
90998
+ message.productSkuSlug = reader.string();
90999
+ break;
90944
91000
  default:
90945
91001
  reader.skipType(tag & 7);
90946
91002
  break;
@@ -90985,6 +91041,12 @@ $root.GiftRedeemed = (function() {
90985
91041
  if (message.redeemedOn != null && message.hasOwnProperty("redeemedOn"))
90986
91042
  if (!$util.isInteger(message.redeemedOn) && !(message.redeemedOn && $util.isInteger(message.redeemedOn.low) && $util.isInteger(message.redeemedOn.high)))
90987
91043
  return "redeemedOn: integer|Long expected";
91044
+ if (message.productSkuId != null && message.hasOwnProperty("productSkuId"))
91045
+ if (!$util.isString(message.productSkuId))
91046
+ return "productSkuId: string expected";
91047
+ if (message.productSkuSlug != null && message.hasOwnProperty("productSkuSlug"))
91048
+ if (!$util.isString(message.productSkuSlug))
91049
+ return "productSkuSlug: string expected";
90988
91050
  return null;
90989
91051
  };
90990
91052
 
@@ -91013,6 +91075,10 @@ $root.GiftRedeemed = (function() {
91013
91075
  message.redeemedOn = object.redeemedOn;
91014
91076
  else if (typeof object.redeemedOn === "object")
91015
91077
  message.redeemedOn = new $util.LongBits(object.redeemedOn.low >>> 0, object.redeemedOn.high >>> 0).toNumber(true);
91078
+ if (object.productSkuId != null)
91079
+ message.productSkuId = String(object.productSkuId);
91080
+ if (object.productSkuSlug != null)
91081
+ message.productSkuSlug = String(object.productSkuSlug);
91016
91082
  return message;
91017
91083
  };
91018
91084
 
@@ -91037,6 +91103,8 @@ $root.GiftRedeemed = (function() {
91037
91103
  object.redeemedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
91038
91104
  } else
91039
91105
  object.redeemedOn = options.longs === String ? "0" : 0;
91106
+ object.productSkuId = "";
91107
+ object.productSkuSlug = "";
91040
91108
  }
91041
91109
  if (message.giftRecipientHsUserId != null && message.hasOwnProperty("giftRecipientHsUserId"))
91042
91110
  object.giftRecipientHsUserId = message.giftRecipientHsUserId;
@@ -91047,6 +91115,10 @@ $root.GiftRedeemed = (function() {
91047
91115
  object.redeemedOn = options.longs === String ? String(message.redeemedOn) : message.redeemedOn;
91048
91116
  else
91049
91117
  object.redeemedOn = options.longs === String ? $util.Long.prototype.toString.call(message.redeemedOn) : options.longs === Number ? new $util.LongBits(message.redeemedOn.low >>> 0, message.redeemedOn.high >>> 0).toNumber(true) : message.redeemedOn;
91118
+ if (message.productSkuId != null && message.hasOwnProperty("productSkuId"))
91119
+ object.productSkuId = message.productSkuId;
91120
+ if (message.productSkuSlug != null && message.hasOwnProperty("productSkuSlug"))
91121
+ object.productSkuSlug = message.productSkuSlug;
91050
91122
  return object;
91051
91123
  };
91052
91124
 
@@ -91455,6 +91527,9 @@ $root.GiftPurchased = (function() {
91455
91527
  * @property {number|null} [giftNumMonths] GiftPurchased giftNumMonths
91456
91528
  * @property {number|Long|null} [purchasedOn] GiftPurchased purchasedOn
91457
91529
  * @property {string|null} [giftPurchaseId] GiftPurchased giftPurchaseId
91530
+ * @property {string|null} [productSkuId] GiftPurchased productSkuId
91531
+ * @property {string|null} [productSkuSlug] GiftPurchased productSkuSlug
91532
+ * @property {gift.GiftProductSkuTaxMode|null} [productSkuTaxMode] GiftPurchased productSkuTaxMode
91458
91533
  */
91459
91534
 
91460
91535
  /**
@@ -91528,6 +91603,30 @@ $root.GiftPurchased = (function() {
91528
91603
  */
91529
91604
  GiftPurchased.prototype.giftPurchaseId = "";
91530
91605
 
91606
+ /**
91607
+ * GiftPurchased productSkuId.
91608
+ * @member {string} productSkuId
91609
+ * @memberof GiftPurchased
91610
+ * @instance
91611
+ */
91612
+ GiftPurchased.prototype.productSkuId = "";
91613
+
91614
+ /**
91615
+ * GiftPurchased productSkuSlug.
91616
+ * @member {string} productSkuSlug
91617
+ * @memberof GiftPurchased
91618
+ * @instance
91619
+ */
91620
+ GiftPurchased.prototype.productSkuSlug = "";
91621
+
91622
+ /**
91623
+ * GiftPurchased productSkuTaxMode.
91624
+ * @member {gift.GiftProductSkuTaxMode} productSkuTaxMode
91625
+ * @memberof GiftPurchased
91626
+ * @instance
91627
+ */
91628
+ GiftPurchased.prototype.productSkuTaxMode = 0;
91629
+
91531
91630
  /**
91532
91631
  * Creates a new GiftPurchased instance using the specified properties.
91533
91632
  * @function create
@@ -91566,6 +91665,12 @@ $root.GiftPurchased = (function() {
91566
91665
  writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.purchasedOn);
91567
91666
  if (message.giftPurchaseId != null && message.hasOwnProperty("giftPurchaseId"))
91568
91667
  writer.uint32(/* id 7, wireType 2 =*/58).string(message.giftPurchaseId);
91668
+ if (message.productSkuId != null && message.hasOwnProperty("productSkuId"))
91669
+ writer.uint32(/* id 8, wireType 2 =*/66).string(message.productSkuId);
91670
+ if (message.productSkuSlug != null && message.hasOwnProperty("productSkuSlug"))
91671
+ writer.uint32(/* id 9, wireType 2 =*/74).string(message.productSkuSlug);
91672
+ if (message.productSkuTaxMode != null && message.hasOwnProperty("productSkuTaxMode"))
91673
+ writer.uint32(/* id 10, wireType 0 =*/80).int32(message.productSkuTaxMode);
91569
91674
  return writer;
91570
91675
  };
91571
91676
 
@@ -91621,6 +91726,15 @@ $root.GiftPurchased = (function() {
91621
91726
  case 7:
91622
91727
  message.giftPurchaseId = reader.string();
91623
91728
  break;
91729
+ case 8:
91730
+ message.productSkuId = reader.string();
91731
+ break;
91732
+ case 9:
91733
+ message.productSkuSlug = reader.string();
91734
+ break;
91735
+ case 10:
91736
+ message.productSkuTaxMode = reader.int32();
91737
+ break;
91624
91738
  default:
91625
91739
  reader.skipType(tag & 7);
91626
91740
  break;
@@ -91677,6 +91791,21 @@ $root.GiftPurchased = (function() {
91677
91791
  if (message.giftPurchaseId != null && message.hasOwnProperty("giftPurchaseId"))
91678
91792
  if (!$util.isString(message.giftPurchaseId))
91679
91793
  return "giftPurchaseId: string expected";
91794
+ if (message.productSkuId != null && message.hasOwnProperty("productSkuId"))
91795
+ if (!$util.isString(message.productSkuId))
91796
+ return "productSkuId: string expected";
91797
+ if (message.productSkuSlug != null && message.hasOwnProperty("productSkuSlug"))
91798
+ if (!$util.isString(message.productSkuSlug))
91799
+ return "productSkuSlug: string expected";
91800
+ if (message.productSkuTaxMode != null && message.hasOwnProperty("productSkuTaxMode"))
91801
+ switch (message.productSkuTaxMode) {
91802
+ default:
91803
+ return "productSkuTaxMode: enum value expected";
91804
+ case 0:
91805
+ case 1:
91806
+ case 2:
91807
+ break;
91808
+ }
91680
91809
  return null;
91681
91810
  };
91682
91811
 
@@ -91713,6 +91842,24 @@ $root.GiftPurchased = (function() {
91713
91842
  message.purchasedOn = new $util.LongBits(object.purchasedOn.low >>> 0, object.purchasedOn.high >>> 0).toNumber(true);
91714
91843
  if (object.giftPurchaseId != null)
91715
91844
  message.giftPurchaseId = String(object.giftPurchaseId);
91845
+ if (object.productSkuId != null)
91846
+ message.productSkuId = String(object.productSkuId);
91847
+ if (object.productSkuSlug != null)
91848
+ message.productSkuSlug = String(object.productSkuSlug);
91849
+ switch (object.productSkuTaxMode) {
91850
+ case "GIFT_PRODUCT_SKU_TAX_MODE_UNKNOWN":
91851
+ case 0:
91852
+ message.productSkuTaxMode = 0;
91853
+ break;
91854
+ case "GIFT_PRODUCT_SKU_TAX_MODE_EXCLUSIVE":
91855
+ case 1:
91856
+ message.productSkuTaxMode = 1;
91857
+ break;
91858
+ case "GIFT_PRODUCT_SKU_TAX_MODE_INCLUSIVE":
91859
+ case 2:
91860
+ message.productSkuTaxMode = 2;
91861
+ break;
91862
+ }
91716
91863
  return message;
91717
91864
  };
91718
91865
 
@@ -91741,6 +91888,9 @@ $root.GiftPurchased = (function() {
91741
91888
  } else
91742
91889
  object.purchasedOn = options.longs === String ? "0" : 0;
91743
91890
  object.giftPurchaseId = "";
91891
+ object.productSkuId = "";
91892
+ object.productSkuSlug = "";
91893
+ object.productSkuTaxMode = options.enums === String ? "GIFT_PRODUCT_SKU_TAX_MODE_UNKNOWN" : 0;
91744
91894
  }
91745
91895
  if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
91746
91896
  object.hsUserId = message.hsUserId;
@@ -91759,6 +91909,12 @@ $root.GiftPurchased = (function() {
91759
91909
  object.purchasedOn = options.longs === String ? $util.Long.prototype.toString.call(message.purchasedOn) : options.longs === Number ? new $util.LongBits(message.purchasedOn.low >>> 0, message.purchasedOn.high >>> 0).toNumber(true) : message.purchasedOn;
91760
91910
  if (message.giftPurchaseId != null && message.hasOwnProperty("giftPurchaseId"))
91761
91911
  object.giftPurchaseId = message.giftPurchaseId;
91912
+ if (message.productSkuId != null && message.hasOwnProperty("productSkuId"))
91913
+ object.productSkuId = message.productSkuId;
91914
+ if (message.productSkuSlug != null && message.hasOwnProperty("productSkuSlug"))
91915
+ object.productSkuSlug = message.productSkuSlug;
91916
+ if (message.productSkuTaxMode != null && message.hasOwnProperty("productSkuTaxMode"))
91917
+ object.productSkuTaxMode = options.enums === String ? $root.gift.GiftProductSkuTaxMode[message.productSkuTaxMode] : message.productSkuTaxMode;
91762
91918
  return object;
91763
91919
  };
91764
91920
 
@@ -116330,255 +116486,6 @@ $root.UserDoubleOptInEmailRequested = (function() {
116330
116486
  return UserDoubleOptInEmailRequested;
116331
116487
  })();
116332
116488
 
116333
-
116334
-
116335
- $root.UserMFAEnrollmentInitiated = (function() {
116336
-
116337
- /**
116338
- * Properties of a UserMFAEnrollmentInitiated.
116339
- * @exports IUserMFAEnrollmentInitiated
116340
- * @interface IUserMFAEnrollmentInitiated
116341
- * @property {string|null} [userId] UserMFAEnrollmentInitiated userId
116342
- * @property {boolean|null} [enabled] UserMFAEnrollmentInitiated enabled
116343
- * @property {number|Long|null} [timestamp] UserMFAEnrollmentInitiated timestamp
116344
- */
116345
-
116346
- /**
116347
- * Constructs a new UserMFAEnrollmentInitiated.
116348
- * @exports UserMFAEnrollmentInitiated
116349
- * @classdesc Represents a UserMFAEnrollmentInitiated.
116350
- * @implements IUserMFAEnrollmentInitiated
116351
- * @constructor
116352
- * @param {IUserMFAEnrollmentInitiated=} [properties] Properties to set
116353
- */
116354
- function UserMFAEnrollmentInitiated(properties) {
116355
- if (properties)
116356
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
116357
- if (properties[keys[i]] != null)
116358
- this[keys[i]] = properties[keys[i]];
116359
- }
116360
-
116361
- /**
116362
- * UserMFAEnrollmentInitiated userId.
116363
- * @member {string} userId
116364
- * @memberof UserMFAEnrollmentInitiated
116365
- * @instance
116366
- */
116367
- UserMFAEnrollmentInitiated.prototype.userId = "";
116368
-
116369
- /**
116370
- * UserMFAEnrollmentInitiated enabled.
116371
- * @member {boolean} enabled
116372
- * @memberof UserMFAEnrollmentInitiated
116373
- * @instance
116374
- */
116375
- UserMFAEnrollmentInitiated.prototype.enabled = false;
116376
-
116377
- /**
116378
- * UserMFAEnrollmentInitiated timestamp.
116379
- * @member {number|Long} timestamp
116380
- * @memberof UserMFAEnrollmentInitiated
116381
- * @instance
116382
- */
116383
- UserMFAEnrollmentInitiated.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
116384
-
116385
- /**
116386
- * Creates a new UserMFAEnrollmentInitiated instance using the specified properties.
116387
- * @function create
116388
- * @memberof UserMFAEnrollmentInitiated
116389
- * @static
116390
- * @param {IUserMFAEnrollmentInitiated=} [properties] Properties to set
116391
- * @returns {UserMFAEnrollmentInitiated} UserMFAEnrollmentInitiated instance
116392
- */
116393
- UserMFAEnrollmentInitiated.create = function create(properties) {
116394
- return new UserMFAEnrollmentInitiated(properties);
116395
- };
116396
-
116397
- /**
116398
- * Encodes the specified UserMFAEnrollmentInitiated message. Does not implicitly {@link UserMFAEnrollmentInitiated.verify|verify} messages.
116399
- * @function encode
116400
- * @memberof UserMFAEnrollmentInitiated
116401
- * @static
116402
- * @param {IUserMFAEnrollmentInitiated} message UserMFAEnrollmentInitiated message or plain object to encode
116403
- * @param {$protobuf.Writer} [writer] Writer to encode to
116404
- * @returns {$protobuf.Writer} Writer
116405
- */
116406
- UserMFAEnrollmentInitiated.encode = function encode(message, writer) {
116407
- if (!writer)
116408
- writer = $Writer.create();
116409
- if (message.userId != null && message.hasOwnProperty("userId"))
116410
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
116411
- if (message.enabled != null && message.hasOwnProperty("enabled"))
116412
- writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enabled);
116413
- if (message.timestamp != null && message.hasOwnProperty("timestamp"))
116414
- writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp);
116415
- return writer;
116416
- };
116417
-
116418
- /**
116419
- * Encodes the specified UserMFAEnrollmentInitiated message, length delimited. Does not implicitly {@link UserMFAEnrollmentInitiated.verify|verify} messages.
116420
- * @function encodeDelimited
116421
- * @memberof UserMFAEnrollmentInitiated
116422
- * @static
116423
- * @param {IUserMFAEnrollmentInitiated} message UserMFAEnrollmentInitiated message or plain object to encode
116424
- * @param {$protobuf.Writer} [writer] Writer to encode to
116425
- * @returns {$protobuf.Writer} Writer
116426
- */
116427
- UserMFAEnrollmentInitiated.encodeDelimited = function encodeDelimited(message, writer) {
116428
- return this.encode(message, writer).ldelim();
116429
- };
116430
-
116431
- /**
116432
- * Decodes a UserMFAEnrollmentInitiated message from the specified reader or buffer.
116433
- * @function decode
116434
- * @memberof UserMFAEnrollmentInitiated
116435
- * @static
116436
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
116437
- * @param {number} [length] Message length if known beforehand
116438
- * @returns {UserMFAEnrollmentInitiated} UserMFAEnrollmentInitiated
116439
- * @throws {Error} If the payload is not a reader or valid buffer
116440
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
116441
- */
116442
- UserMFAEnrollmentInitiated.decode = function decode(reader, length) {
116443
- if (!(reader instanceof $Reader))
116444
- reader = $Reader.create(reader);
116445
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserMFAEnrollmentInitiated();
116446
- while (reader.pos < end) {
116447
- var tag = reader.uint32();
116448
- switch (tag >>> 3) {
116449
- case 1:
116450
- message.userId = reader.string();
116451
- break;
116452
- case 2:
116453
- message.enabled = reader.bool();
116454
- break;
116455
- case 3:
116456
- message.timestamp = reader.uint64();
116457
- break;
116458
- default:
116459
- reader.skipType(tag & 7);
116460
- break;
116461
- }
116462
- }
116463
- return message;
116464
- };
116465
-
116466
- /**
116467
- * Decodes a UserMFAEnrollmentInitiated message from the specified reader or buffer, length delimited.
116468
- * @function decodeDelimited
116469
- * @memberof UserMFAEnrollmentInitiated
116470
- * @static
116471
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
116472
- * @returns {UserMFAEnrollmentInitiated} UserMFAEnrollmentInitiated
116473
- * @throws {Error} If the payload is not a reader or valid buffer
116474
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
116475
- */
116476
- UserMFAEnrollmentInitiated.decodeDelimited = function decodeDelimited(reader) {
116477
- if (!(reader instanceof $Reader))
116478
- reader = new $Reader(reader);
116479
- return this.decode(reader, reader.uint32());
116480
- };
116481
-
116482
- /**
116483
- * Verifies a UserMFAEnrollmentInitiated message.
116484
- * @function verify
116485
- * @memberof UserMFAEnrollmentInitiated
116486
- * @static
116487
- * @param {Object.<string,*>} message Plain object to verify
116488
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
116489
- */
116490
- UserMFAEnrollmentInitiated.verify = function verify(message) {
116491
- if (typeof message !== "object" || message === null)
116492
- return "object expected";
116493
- if (message.userId != null && message.hasOwnProperty("userId"))
116494
- if (!$util.isString(message.userId))
116495
- return "userId: string expected";
116496
- if (message.enabled != null && message.hasOwnProperty("enabled"))
116497
- if (typeof message.enabled !== "boolean")
116498
- return "enabled: boolean expected";
116499
- if (message.timestamp != null && message.hasOwnProperty("timestamp"))
116500
- if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
116501
- return "timestamp: integer|Long expected";
116502
- return null;
116503
- };
116504
-
116505
- /**
116506
- * Creates a UserMFAEnrollmentInitiated message from a plain object. Also converts values to their respective internal types.
116507
- * @function fromObject
116508
- * @memberof UserMFAEnrollmentInitiated
116509
- * @static
116510
- * @param {Object.<string,*>} object Plain object
116511
- * @returns {UserMFAEnrollmentInitiated} UserMFAEnrollmentInitiated
116512
- */
116513
- UserMFAEnrollmentInitiated.fromObject = function fromObject(object) {
116514
- if (object instanceof $root.UserMFAEnrollmentInitiated)
116515
- return object;
116516
- var message = new $root.UserMFAEnrollmentInitiated();
116517
- if (object.userId != null)
116518
- message.userId = String(object.userId);
116519
- if (object.enabled != null)
116520
- message.enabled = Boolean(object.enabled);
116521
- if (object.timestamp != null)
116522
- if ($util.Long)
116523
- (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
116524
- else if (typeof object.timestamp === "string")
116525
- message.timestamp = parseInt(object.timestamp, 10);
116526
- else if (typeof object.timestamp === "number")
116527
- message.timestamp = object.timestamp;
116528
- else if (typeof object.timestamp === "object")
116529
- message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
116530
- return message;
116531
- };
116532
-
116533
- /**
116534
- * Creates a plain object from a UserMFAEnrollmentInitiated message. Also converts values to other types if specified.
116535
- * @function toObject
116536
- * @memberof UserMFAEnrollmentInitiated
116537
- * @static
116538
- * @param {UserMFAEnrollmentInitiated} message UserMFAEnrollmentInitiated
116539
- * @param {$protobuf.IConversionOptions} [options] Conversion options
116540
- * @returns {Object.<string,*>} Plain object
116541
- */
116542
- UserMFAEnrollmentInitiated.toObject = function toObject(message, options) {
116543
- if (!options)
116544
- options = {};
116545
- var object = {};
116546
- if (options.defaults) {
116547
- object.userId = "";
116548
- object.enabled = false;
116549
- if ($util.Long) {
116550
- var long = new $util.Long(0, 0, true);
116551
- object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
116552
- } else
116553
- object.timestamp = options.longs === String ? "0" : 0;
116554
- }
116555
- if (message.userId != null && message.hasOwnProperty("userId"))
116556
- object.userId = message.userId;
116557
- if (message.enabled != null && message.hasOwnProperty("enabled"))
116558
- object.enabled = message.enabled;
116559
- if (message.timestamp != null && message.hasOwnProperty("timestamp"))
116560
- if (typeof message.timestamp === "number")
116561
- object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
116562
- else
116563
- object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
116564
- return object;
116565
- };
116566
-
116567
- /**
116568
- * Converts this UserMFAEnrollmentInitiated to JSON.
116569
- * @function toJSON
116570
- * @memberof UserMFAEnrollmentInitiated
116571
- * @instance
116572
- * @returns {Object.<string,*>} JSON object
116573
- */
116574
- UserMFAEnrollmentInitiated.prototype.toJSON = function toJSON() {
116575
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
116576
- };
116577
-
116578
- return UserMFAEnrollmentInitiated;
116579
- })();
116580
-
116581
-
116582
116489
  $root.UserEmailUpdated = (function() {
116583
116490
 
116584
116491
  /**
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.356.0"
19
+ "version": "1.357.0"
20
20
  }