@headspace/protos-events 1.578.0 → 1.579.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
@@ -26776,6 +26776,9 @@ export interface IContentCourseCompleted {
26776
26776
 
26777
26777
  /** ContentCourseCompleted userId */
26778
26778
  userId?: (string|null);
26779
+
26780
+ /** ContentCourseCompleted completedAt */
26781
+ completedAt?: (number|Long|null);
26779
26782
  }
26780
26783
 
26781
26784
  /** Represents a ContentCourseCompleted. */
@@ -26790,6 +26793,9 @@ export class ContentCourseCompleted implements IContentCourseCompleted {
26790
26793
  /** ContentCourseCompleted userId. */
26791
26794
  public userId: string;
26792
26795
 
26796
+ /** ContentCourseCompleted completedAt. */
26797
+ public completedAt: (number|Long);
26798
+
26793
26799
  /**
26794
26800
  * Creates a new ContentCourseCompleted instance using the specified properties.
26795
26801
  * @param [properties] Properties to set
package/lib/index.js CHANGED
@@ -74935,6 +74935,7 @@ $root.ContentCourseCompleted = (function() {
74935
74935
  * @name IContentCourseCompleted
74936
74936
  * @interface IContentCourseCompleted
74937
74937
  * @property {string|null} [userId] ContentCourseCompleted userId
74938
+ * @property {number|Long|null} [completedAt] ContentCourseCompleted completedAt
74938
74939
  */
74939
74940
 
74940
74941
  /**
@@ -74960,6 +74961,14 @@ $root.ContentCourseCompleted = (function() {
74960
74961
  */
74961
74962
  ContentCourseCompleted.prototype.userId = "";
74962
74963
 
74964
+ /**
74965
+ * ContentCourseCompleted completedAt.
74966
+ * @member {number|Long} completedAt
74967
+ * @memberof ContentCourseCompleted
74968
+ * @instance
74969
+ */
74970
+ ContentCourseCompleted.prototype.completedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
74971
+
74963
74972
  /**
74964
74973
  * Creates a new ContentCourseCompleted instance using the specified properties.
74965
74974
  * @function create
@@ -74986,6 +74995,8 @@ $root.ContentCourseCompleted = (function() {
74986
74995
  writer = $Writer.create();
74987
74996
  if (message.userId != null && message.hasOwnProperty("userId"))
74988
74997
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
74998
+ if (message.completedAt != null && message.hasOwnProperty("completedAt"))
74999
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.completedAt);
74989
75000
  return writer;
74990
75001
  };
74991
75002
 
@@ -75023,6 +75034,9 @@ $root.ContentCourseCompleted = (function() {
75023
75034
  case 1:
75024
75035
  message.userId = reader.string();
75025
75036
  break;
75037
+ case 2:
75038
+ message.completedAt = reader.uint64();
75039
+ break;
75026
75040
  default:
75027
75041
  reader.skipType(tag & 7);
75028
75042
  break;
@@ -75061,6 +75075,9 @@ $root.ContentCourseCompleted = (function() {
75061
75075
  if (message.userId != null && message.hasOwnProperty("userId"))
75062
75076
  if (!$util.isString(message.userId))
75063
75077
  return "userId: string expected";
75078
+ if (message.completedAt != null && message.hasOwnProperty("completedAt"))
75079
+ if (!$util.isInteger(message.completedAt) && !(message.completedAt && $util.isInteger(message.completedAt.low) && $util.isInteger(message.completedAt.high)))
75080
+ return "completedAt: integer|Long expected";
75064
75081
  return null;
75065
75082
  };
75066
75083
 
@@ -75078,6 +75095,15 @@ $root.ContentCourseCompleted = (function() {
75078
75095
  var message = new $root.ContentCourseCompleted();
75079
75096
  if (object.userId != null)
75080
75097
  message.userId = String(object.userId);
75098
+ if (object.completedAt != null)
75099
+ if ($util.Long)
75100
+ (message.completedAt = $util.Long.fromValue(object.completedAt)).unsigned = true;
75101
+ else if (typeof object.completedAt === "string")
75102
+ message.completedAt = parseInt(object.completedAt, 10);
75103
+ else if (typeof object.completedAt === "number")
75104
+ message.completedAt = object.completedAt;
75105
+ else if (typeof object.completedAt === "object")
75106
+ message.completedAt = new $util.LongBits(object.completedAt.low >>> 0, object.completedAt.high >>> 0).toNumber(true);
75081
75107
  return message;
75082
75108
  };
75083
75109
 
@@ -75094,10 +75120,21 @@ $root.ContentCourseCompleted = (function() {
75094
75120
  if (!options)
75095
75121
  options = {};
75096
75122
  var object = {};
75097
- if (options.defaults)
75123
+ if (options.defaults) {
75098
75124
  object.userId = "";
75125
+ if ($util.Long) {
75126
+ var long = new $util.Long(0, 0, true);
75127
+ object.completedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
75128
+ } else
75129
+ object.completedAt = options.longs === String ? "0" : 0;
75130
+ }
75099
75131
  if (message.userId != null && message.hasOwnProperty("userId"))
75100
75132
  object.userId = message.userId;
75133
+ if (message.completedAt != null && message.hasOwnProperty("completedAt"))
75134
+ if (typeof message.completedAt === "number")
75135
+ object.completedAt = options.longs === String ? String(message.completedAt) : message.completedAt;
75136
+ else
75137
+ object.completedAt = options.longs === String ? $util.Long.prototype.toString.call(message.completedAt) : options.longs === Number ? new $util.LongBits(message.completedAt.low >>> 0, message.completedAt.high >>> 0).toNumber(true) : message.completedAt;
75101
75138
  return object;
75102
75139
  };
75103
75140
 
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.578.0"
19
+ "version": "1.579.0"
20
20
  }