@headspace/protos-events 1.820.0 → 1.821.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.d.ts CHANGED
@@ -103676,6 +103676,19 @@ export namespace UserLanguagePreferenceUpdated {
103676
103676
  type $Shape = UserLanguagePreferenceUpdated.$Properties;
103677
103677
  }
103678
103678
 
103679
+ /** UserConsentSource enum. */
103680
+ export enum UserConsentSource {
103681
+
103682
+ /** USER_CONSENT_SOURCE_UNKNOWN value */
103683
+ USER_CONSENT_SOURCE_UNKNOWN = 0,
103684
+
103685
+ /** USER_CONSENT_SOURCE_SELF value */
103686
+ USER_CONSENT_SOURCE_SELF = 1,
103687
+
103688
+ /** USER_CONSENT_SOURCE_SYSTEM value */
103689
+ USER_CONSENT_SOURCE_SYSTEM = 2
103690
+ }
103691
+
103679
103692
  /**
103680
103693
  * Properties of a UserConsentUpdated.
103681
103694
  * @deprecated Use UserConsentUpdated.$Properties instead.
@@ -103707,6 +103720,9 @@ export class UserConsentUpdated {
103707
103720
  /** UserConsentUpdated version. */
103708
103721
  version: (number|Long);
103709
103722
 
103723
+ /** UserConsentUpdated source. */
103724
+ source: UserConsentSource;
103725
+
103710
103726
  /**
103711
103727
  * Creates a new UserConsentUpdated instance using the specified properties.
103712
103728
  * @param [properties] Properties to set
@@ -103803,6 +103819,9 @@ export namespace UserConsentUpdated {
103803
103819
  /** UserConsentUpdated version */
103804
103820
  version?: (number|Long|null);
103805
103821
 
103822
+ /** UserConsentUpdated source */
103823
+ source?: (UserConsentSource|null);
103824
+
103806
103825
  /** Unknown fields preserved while decoding */
103807
103826
  $unknowns?: Uint8Array[];
103808
103827
  }
package/lib/index.js CHANGED
@@ -303980,6 +303980,22 @@ $root.UserLanguagePreferenceUpdated = (function() {
303980
303980
  return UserLanguagePreferenceUpdated;
303981
303981
  })();
303982
303982
 
303983
+ /**
303984
+ * UserConsentSource enum.
303985
+ * @name UserConsentSource
303986
+ * @enum {number}
303987
+ * @property {number} USER_CONSENT_SOURCE_UNKNOWN=0 USER_CONSENT_SOURCE_UNKNOWN value
303988
+ * @property {number} USER_CONSENT_SOURCE_SELF=1 USER_CONSENT_SOURCE_SELF value
303989
+ * @property {number} USER_CONSENT_SOURCE_SYSTEM=2 USER_CONSENT_SOURCE_SYSTEM value
303990
+ */
303991
+ $root.UserConsentSource = (function() {
303992
+ var valuesById = {}, values = Object.create(valuesById);
303993
+ values[valuesById[0] = "USER_CONSENT_SOURCE_UNKNOWN"] = 0;
303994
+ values[valuesById[1] = "USER_CONSENT_SOURCE_SELF"] = 1;
303995
+ values[valuesById[2] = "USER_CONSENT_SOURCE_SYSTEM"] = 2;
303996
+ return values;
303997
+ })();
303998
+
303983
303999
  $root.UserConsentUpdated = (function() {
303984
304000
 
303985
304001
  /**
@@ -303989,6 +304005,7 @@ $root.UserConsentUpdated = (function() {
303989
304005
  * @property {string|null} [code] UserConsentUpdated code
303990
304006
  * @property {string|null} [status] UserConsentUpdated status
303991
304007
  * @property {number|Long|null} [version] UserConsentUpdated version
304008
+ * @property {UserConsentSource|null} [source] UserConsentUpdated source
303992
304009
  * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
303993
304010
  */
303994
304011
 
@@ -304052,6 +304069,14 @@ $root.UserConsentUpdated = (function() {
304052
304069
  */
304053
304070
  UserConsentUpdated.prototype.version = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
304054
304071
 
304072
+ /**
304073
+ * UserConsentUpdated source.
304074
+ * @member {UserConsentSource} source
304075
+ * @memberof UserConsentUpdated
304076
+ * @instance
304077
+ */
304078
+ UserConsentUpdated.prototype.source = 0;
304079
+
304055
304080
  /**
304056
304081
  * Creates a new UserConsentUpdated instance using the specified properties.
304057
304082
  * @function create
@@ -304088,6 +304113,8 @@ $root.UserConsentUpdated = (function() {
304088
304113
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.status);
304089
304114
  if (message.version != null && Object.hasOwnProperty.call(message, "version"))
304090
304115
  writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.version);
304116
+ if (message.source != null && Object.hasOwnProperty.call(message, "source"))
304117
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.source);
304091
304118
  if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
304092
304119
  for (var i = 0; i < message.$unknowns.length; ++i)
304093
304120
  writer.raw(message.$unknowns[i]);
@@ -304171,6 +304198,15 @@ $root.UserConsentUpdated = (function() {
304171
304198
  delete message.version;
304172
304199
  continue;
304173
304200
  }
304201
+ case 5: {
304202
+ if (wireType !== 0)
304203
+ break;
304204
+ if (value = reader.int32())
304205
+ message.source = value;
304206
+ else
304207
+ delete message.source;
304208
+ continue;
304209
+ }
304174
304210
  }
304175
304211
  reader.skipType(wireType, _depth, tag);
304176
304212
  $util.makeProp(message, "$unknowns", false);
@@ -304224,6 +304260,15 @@ $root.UserConsentUpdated = (function() {
304224
304260
  if (message.version != null && message.hasOwnProperty("version"))
304225
304261
  if (!$util.isInteger(message.version) && !(message.version && $util.isInteger(message.version.low) && $util.isInteger(message.version.high)))
304226
304262
  return "version: integer|Long expected";
304263
+ if (message.source != null && message.hasOwnProperty("source"))
304264
+ switch (message.source) {
304265
+ default:
304266
+ return "source: enum value expected";
304267
+ case 0:
304268
+ case 1:
304269
+ case 2:
304270
+ break;
304271
+ }
304227
304272
  return null;
304228
304273
  };
304229
304274
 
@@ -304262,6 +304307,27 @@ $root.UserConsentUpdated = (function() {
304262
304307
  message.version = object.version;
304263
304308
  else if (typeof object.version === "object")
304264
304309
  message.version = new $util.LongBits(object.version.low >>> 0, object.version.high >>> 0).toNumber(true);
304310
+ if (object.source !== 0 && (typeof object.source !== "string" || $root.UserConsentSource[object.source] !== 0))
304311
+ switch (object.source) {
304312
+ default:
304313
+ if (typeof object.source === "number") {
304314
+ message.source = object.source;
304315
+ break;
304316
+ }
304317
+ break;
304318
+ case "USER_CONSENT_SOURCE_UNKNOWN":
304319
+ case 0:
304320
+ message.source = 0;
304321
+ break;
304322
+ case "USER_CONSENT_SOURCE_SELF":
304323
+ case 1:
304324
+ message.source = 1;
304325
+ break;
304326
+ case "USER_CONSENT_SOURCE_SYSTEM":
304327
+ case 2:
304328
+ message.source = 2;
304329
+ break;
304330
+ }
304265
304331
  return message;
304266
304332
  };
304267
304333
 
@@ -304287,6 +304353,7 @@ $root.UserConsentUpdated = (function() {
304287
304353
  object.version = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
304288
304354
  } else
304289
304355
  object.version = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
304356
+ object.source = options.enums === String ? "USER_CONSENT_SOURCE_UNKNOWN" : 0;
304290
304357
  }
304291
304358
  if (message.userId != null && message.hasOwnProperty("userId"))
304292
304359
  object.userId = message.userId;
@@ -304301,6 +304368,8 @@ $root.UserConsentUpdated = (function() {
304301
304368
  object.version = options.longs === String ? String(message.version) : message.version;
304302
304369
  else
304303
304370
  object.version = options.longs === String ? $util.Long.prototype.toString.call(message.version) : options.longs === Number ? new $util.LongBits(message.version.low >>> 0, message.version.high >>> 0).toNumber(true) : message.version;
304371
+ if (message.source != null && message.hasOwnProperty("source"))
304372
+ object.source = options.enums === String ? $root.UserConsentSource[message.source] === undefined ? message.source : $root.UserConsentSource[message.source] : message.source;
304304
304373
  return object;
304305
304374
  };
304306
304375
 
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.820.0"
19
+ "version": "1.821.0"
20
20
  }