@headspace/protos-events 1.389.0 → 1.390.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
@@ -107,11 +107,11 @@ export namespace auth {
107
107
  AUTH_CLIENT_PLATFORM_IOS_WATCH = 6
108
108
  }
109
109
 
110
- /** AuthClientApp enum. */
111
- enum AuthClientApp {
112
- AUTH_CLIENT_APP_UNKNOWN = 0,
113
- AUTH_CLIENT_APP_HEADSPACE = 1,
114
- AUTH_CLIENT_APP_GINGER = 2
110
+ /** AuthClientProductArea enum. */
111
+ enum AuthClientProductArea {
112
+ AUTH_CLIENT_PA_UNKNOWN = 0,
113
+ AUTH_CLIENT_PA_HEADSPACE = 1,
114
+ AUTH_CLIENT_PA_GINGER = 2
115
115
  }
116
116
 
117
117
  /** AuthLoginTag enum. */
@@ -30076,7 +30076,7 @@ export interface IAuthLoggedIn {
30076
30076
  timestamp?: (number|Long|null);
30077
30077
 
30078
30078
  /** client application (e.g. headspace, ginger) */
30079
- app?: (auth.AuthClientApp|null);
30079
+ productArea?: (auth.AuthClientProductArea|null);
30080
30080
 
30081
30081
  /** client platform (e.g. ios, android, web) */
30082
30082
  platform?: (auth.AuthClientPlatform|null);
@@ -30101,7 +30101,7 @@ export class AuthLoggedIn implements IAuthLoggedIn {
30101
30101
  public timestamp: (number|Long);
30102
30102
 
30103
30103
  /** client application (e.g. headspace, ginger) */
30104
- public app: auth.AuthClientApp;
30104
+ public productArea: auth.AuthClientProductArea;
30105
30105
 
30106
30106
  /** client platform (e.g. ios, android, web) */
30107
30107
  public platform: auth.AuthClientPlatform;
package/lib/index.js CHANGED
@@ -256,18 +256,18 @@ $root.auth = (function() {
256
256
  })();
257
257
 
258
258
  /**
259
- * AuthClientApp enum.
260
- * @name auth.AuthClientApp
259
+ * AuthClientProductArea enum.
260
+ * @name auth.AuthClientProductArea
261
261
  * @enum {string}
262
- * @property {number} AUTH_CLIENT_APP_UNKNOWN=0 AUTH_CLIENT_APP_UNKNOWN value
263
- * @property {number} AUTH_CLIENT_APP_HEADSPACE=1 AUTH_CLIENT_APP_HEADSPACE value
264
- * @property {number} AUTH_CLIENT_APP_GINGER=2 AUTH_CLIENT_APP_GINGER value
262
+ * @property {number} AUTH_CLIENT_PA_UNKNOWN=0 AUTH_CLIENT_PA_UNKNOWN value
263
+ * @property {number} AUTH_CLIENT_PA_HEADSPACE=1 AUTH_CLIENT_PA_HEADSPACE value
264
+ * @property {number} AUTH_CLIENT_PA_GINGER=2 AUTH_CLIENT_PA_GINGER value
265
265
  */
266
- auth.AuthClientApp = (function() {
266
+ auth.AuthClientProductArea = (function() {
267
267
  var valuesById = {}, values = Object.create(valuesById);
268
- values[valuesById[0] = "AUTH_CLIENT_APP_UNKNOWN"] = 0;
269
- values[valuesById[1] = "AUTH_CLIENT_APP_HEADSPACE"] = 1;
270
- values[valuesById[2] = "AUTH_CLIENT_APP_GINGER"] = 2;
268
+ values[valuesById[0] = "AUTH_CLIENT_PA_UNKNOWN"] = 0;
269
+ values[valuesById[1] = "AUTH_CLIENT_PA_HEADSPACE"] = 1;
270
+ values[valuesById[2] = "AUTH_CLIENT_PA_GINGER"] = 2;
271
271
  return values;
272
272
  })();
273
273
 
@@ -83734,7 +83734,7 @@ $root.AuthLoggedIn = (function() {
83734
83734
  * @interface IAuthLoggedIn
83735
83735
  * @property {string|null} [userId] HSUSER identifier
83736
83736
  * @property {number|Long|null} [timestamp] epoch millis of login event
83737
- * @property {auth.AuthClientApp|null} [app] client application (e.g. headspace, ginger)
83737
+ * @property {auth.AuthClientProductArea|null} [productArea] client application (e.g. headspace, ginger)
83738
83738
  * @property {auth.AuthClientPlatform|null} [platform] client platform (e.g. ios, android, web)
83739
83739
  * @property {Array.<auth.AuthLoginTag>|null} [tags] tags for the login event
83740
83740
  */
@@ -83773,11 +83773,11 @@ $root.AuthLoggedIn = (function() {
83773
83773
 
83774
83774
  /**
83775
83775
  * client application (e.g. headspace, ginger)
83776
- * @member {auth.AuthClientApp} app
83776
+ * @member {auth.AuthClientProductArea} productArea
83777
83777
  * @memberof AuthLoggedIn
83778
83778
  * @instance
83779
83779
  */
83780
- AuthLoggedIn.prototype.app = 0;
83780
+ AuthLoggedIn.prototype.productArea = 0;
83781
83781
 
83782
83782
  /**
83783
83783
  * client platform (e.g. ios, android, web)
@@ -83823,8 +83823,8 @@ $root.AuthLoggedIn = (function() {
83823
83823
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
83824
83824
  if (message.timestamp != null && message.hasOwnProperty("timestamp"))
83825
83825
  writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp);
83826
- if (message.app != null && message.hasOwnProperty("app"))
83827
- writer.uint32(/* id 3, wireType 0 =*/24).int32(message.app);
83826
+ if (message.productArea != null && message.hasOwnProperty("productArea"))
83827
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.productArea);
83828
83828
  if (message.platform != null && message.hasOwnProperty("platform"))
83829
83829
  writer.uint32(/* id 4, wireType 0 =*/32).int32(message.platform);
83830
83830
  if (message.tags != null && message.tags.length) {
@@ -83874,7 +83874,7 @@ $root.AuthLoggedIn = (function() {
83874
83874
  message.timestamp = reader.uint64();
83875
83875
  break;
83876
83876
  case 3:
83877
- message.app = reader.int32();
83877
+ message.productArea = reader.int32();
83878
83878
  break;
83879
83879
  case 4:
83880
83880
  message.platform = reader.int32();
@@ -83930,10 +83930,10 @@ $root.AuthLoggedIn = (function() {
83930
83930
  if (message.timestamp != null && message.hasOwnProperty("timestamp"))
83931
83931
  if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
83932
83932
  return "timestamp: integer|Long expected";
83933
- if (message.app != null && message.hasOwnProperty("app"))
83934
- switch (message.app) {
83933
+ if (message.productArea != null && message.hasOwnProperty("productArea"))
83934
+ switch (message.productArea) {
83935
83935
  default:
83936
- return "app: enum value expected";
83936
+ return "productArea: enum value expected";
83937
83937
  case 0:
83938
83938
  case 1:
83939
83939
  case 2:
@@ -83990,18 +83990,18 @@ $root.AuthLoggedIn = (function() {
83990
83990
  message.timestamp = object.timestamp;
83991
83991
  else if (typeof object.timestamp === "object")
83992
83992
  message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
83993
- switch (object.app) {
83994
- case "AUTH_CLIENT_APP_UNKNOWN":
83993
+ switch (object.productArea) {
83994
+ case "AUTH_CLIENT_PA_UNKNOWN":
83995
83995
  case 0:
83996
- message.app = 0;
83996
+ message.productArea = 0;
83997
83997
  break;
83998
- case "AUTH_CLIENT_APP_HEADSPACE":
83998
+ case "AUTH_CLIENT_PA_HEADSPACE":
83999
83999
  case 1:
84000
- message.app = 1;
84000
+ message.productArea = 1;
84001
84001
  break;
84002
- case "AUTH_CLIENT_APP_GINGER":
84002
+ case "AUTH_CLIENT_PA_GINGER":
84003
84003
  case 2:
84004
- message.app = 2;
84004
+ message.productArea = 2;
84005
84005
  break;
84006
84006
  }
84007
84007
  switch (object.platform) {
@@ -84076,7 +84076,7 @@ $root.AuthLoggedIn = (function() {
84076
84076
  object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
84077
84077
  } else
84078
84078
  object.timestamp = options.longs === String ? "0" : 0;
84079
- object.app = options.enums === String ? "AUTH_CLIENT_APP_UNKNOWN" : 0;
84079
+ object.productArea = options.enums === String ? "AUTH_CLIENT_PA_UNKNOWN" : 0;
84080
84080
  object.platform = options.enums === String ? "AUTH_CLIENT_PLATFORM_UNKNOWN" : 0;
84081
84081
  }
84082
84082
  if (message.userId != null && message.hasOwnProperty("userId"))
@@ -84086,8 +84086,8 @@ $root.AuthLoggedIn = (function() {
84086
84086
  object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
84087
84087
  else
84088
84088
  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;
84089
- if (message.app != null && message.hasOwnProperty("app"))
84090
- object.app = options.enums === String ? $root.auth.AuthClientApp[message.app] : message.app;
84089
+ if (message.productArea != null && message.hasOwnProperty("productArea"))
84090
+ object.productArea = options.enums === String ? $root.auth.AuthClientProductArea[message.productArea] : message.productArea;
84091
84091
  if (message.platform != null && message.hasOwnProperty("platform"))
84092
84092
  object.platform = options.enums === String ? $root.auth.AuthClientPlatform[message.platform] : message.platform;
84093
84093
  if (message.tags && message.tags.length) {
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.389.0"
19
+ "version": "1.390.0"
20
20
  }