@headspace/protos-events 1.388.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;
@@ -32106,6 +32106,9 @@ export interface IElfRecordPresent {
32106
32106
  /** ElfRecordPresent language */
32107
32107
  language?: (string|null);
32108
32108
 
32109
+ /** ElfRecordPresent customFields */
32110
+ customFields?: (string|null);
32111
+
32109
32112
  /** ElfRecordPresent isDryRun */
32110
32113
  isDryRun?: (boolean|null);
32111
32114
 
@@ -32176,6 +32179,9 @@ export class ElfRecordPresent implements IElfRecordPresent {
32176
32179
  /** ElfRecordPresent language. */
32177
32180
  public language: string;
32178
32181
 
32182
+ /** ElfRecordPresent customFields. */
32183
+ public customFields: string;
32184
+
32179
32185
  /** ElfRecordPresent isDryRun. */
32180
32186
  public isDryRun: boolean;
32181
32187
 
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) {
@@ -88936,6 +88936,7 @@ $root.ElfRecordPresent = (function() {
88936
88936
  * @property {string|null} [streetAddress_2] ElfRecordPresent streetAddress_2
88937
88937
  * @property {string|null} [department] ElfRecordPresent department
88938
88938
  * @property {string|null} [language] ElfRecordPresent language
88939
+ * @property {string|null} [customFields] ElfRecordPresent customFields
88939
88940
  * @property {boolean|null} [isDryRun] ElfRecordPresent isDryRun
88940
88941
  * @property {boolean|null} [gingerShouldProcess] ElfRecordPresent gingerShouldProcess
88941
88942
  * @property {boolean|null} [headspaceShouldProcess] ElfRecordPresent headspaceShouldProcess
@@ -89092,6 +89093,14 @@ $root.ElfRecordPresent = (function() {
89092
89093
  */
89093
89094
  ElfRecordPresent.prototype.language = "";
89094
89095
 
89096
+ /**
89097
+ * ElfRecordPresent customFields.
89098
+ * @member {string} customFields
89099
+ * @memberof ElfRecordPresent
89100
+ * @instance
89101
+ */
89102
+ ElfRecordPresent.prototype.customFields = "";
89103
+
89095
89104
  /**
89096
89105
  * ElfRecordPresent isDryRun.
89097
89106
  * @member {boolean} isDryRun
@@ -89180,6 +89189,8 @@ $root.ElfRecordPresent = (function() {
89180
89189
  writer.uint32(/* id 19, wireType 0 =*/152).bool(message.gingerShouldProcess);
89181
89190
  if (message.headspaceShouldProcess != null && message.hasOwnProperty("headspaceShouldProcess"))
89182
89191
  writer.uint32(/* id 20, wireType 0 =*/160).bool(message.headspaceShouldProcess);
89192
+ if (message.customFields != null && message.hasOwnProperty("customFields"))
89193
+ writer.uint32(/* id 21, wireType 2 =*/170).string(message.customFields);
89183
89194
  return writer;
89184
89195
  };
89185
89196
 
@@ -89265,6 +89276,9 @@ $root.ElfRecordPresent = (function() {
89265
89276
  case 17:
89266
89277
  message.language = reader.string();
89267
89278
  break;
89279
+ case 21:
89280
+ message.customFields = reader.string();
89281
+ break;
89268
89282
  case 18:
89269
89283
  message.isDryRun = reader.bool();
89270
89284
  break;
@@ -89365,6 +89379,9 @@ $root.ElfRecordPresent = (function() {
89365
89379
  if (message.language != null && message.hasOwnProperty("language"))
89366
89380
  if (!$util.isString(message.language))
89367
89381
  return "language: string expected";
89382
+ if (message.customFields != null && message.hasOwnProperty("customFields"))
89383
+ if (!$util.isString(message.customFields))
89384
+ return "customFields: string expected";
89368
89385
  if (message.isDryRun != null && message.hasOwnProperty("isDryRun"))
89369
89386
  if (typeof message.isDryRun !== "boolean")
89370
89387
  return "isDryRun: boolean expected";
@@ -89438,6 +89455,8 @@ $root.ElfRecordPresent = (function() {
89438
89455
  message.department = String(object.department);
89439
89456
  if (object.language != null)
89440
89457
  message.language = String(object.language);
89458
+ if (object.customFields != null)
89459
+ message.customFields = String(object.customFields);
89441
89460
  if (object.isDryRun != null)
89442
89461
  message.isDryRun = Boolean(object.isDryRun);
89443
89462
  if (object.gingerShouldProcess != null)
@@ -89485,6 +89504,7 @@ $root.ElfRecordPresent = (function() {
89485
89504
  object.isDryRun = false;
89486
89505
  object.gingerShouldProcess = false;
89487
89506
  object.headspaceShouldProcess = false;
89507
+ object.customFields = "";
89488
89508
  }
89489
89509
  if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
89490
89510
  object.headspaceHealthOrgId = message.headspaceHealthOrgId;
@@ -89529,6 +89549,8 @@ $root.ElfRecordPresent = (function() {
89529
89549
  object.gingerShouldProcess = message.gingerShouldProcess;
89530
89550
  if (message.headspaceShouldProcess != null && message.hasOwnProperty("headspaceShouldProcess"))
89531
89551
  object.headspaceShouldProcess = message.headspaceShouldProcess;
89552
+ if (message.customFields != null && message.hasOwnProperty("customFields"))
89553
+ object.customFields = message.customFields;
89532
89554
  return object;
89533
89555
  };
89534
89556
 
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.388.0"
19
+ "version": "1.390.0"
20
20
  }