@headspace/protos-events 1.459.0 → 1.460.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 +6 -0
- package/lib/index.js +36 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -35454,6 +35454,9 @@ export interface IGoalActivityIncreased {
|
|
|
35454
35454
|
|
|
35455
35455
|
/** GoalActivityIncreased hsUserId */
|
|
35456
35456
|
hsUserId?: (string|null);
|
|
35457
|
+
|
|
35458
|
+
/** GoalActivityIncreased timestamp */
|
|
35459
|
+
timestamp?: (number|Long|null);
|
|
35457
35460
|
}
|
|
35458
35461
|
|
|
35459
35462
|
/** Represents a GoalActivityIncreased. */
|
|
@@ -35471,6 +35474,9 @@ export class GoalActivityIncreased implements IGoalActivityIncreased {
|
|
|
35471
35474
|
/** GoalActivityIncreased hsUserId. */
|
|
35472
35475
|
public hsUserId: string;
|
|
35473
35476
|
|
|
35477
|
+
/** GoalActivityIncreased timestamp. */
|
|
35478
|
+
public timestamp: (number|Long);
|
|
35479
|
+
|
|
35474
35480
|
/**
|
|
35475
35481
|
* Creates a new GoalActivityIncreased instance using the specified properties.
|
|
35476
35482
|
* @param [properties] Properties to set
|
package/lib/index.js
CHANGED
|
@@ -99167,6 +99167,7 @@ $root.GoalActivityIncreased = (function() {
|
|
|
99167
99167
|
* @interface IGoalActivityIncreased
|
|
99168
99168
|
* @property {number|null} [goalDaysCompleted] GoalActivityIncreased goalDaysCompleted
|
|
99169
99169
|
* @property {string|null} [hsUserId] GoalActivityIncreased hsUserId
|
|
99170
|
+
* @property {number|Long|null} [timestamp] GoalActivityIncreased timestamp
|
|
99170
99171
|
*/
|
|
99171
99172
|
|
|
99172
99173
|
/**
|
|
@@ -99200,6 +99201,14 @@ $root.GoalActivityIncreased = (function() {
|
|
|
99200
99201
|
*/
|
|
99201
99202
|
GoalActivityIncreased.prototype.hsUserId = "";
|
|
99202
99203
|
|
|
99204
|
+
/**
|
|
99205
|
+
* GoalActivityIncreased timestamp.
|
|
99206
|
+
* @member {number|Long} timestamp
|
|
99207
|
+
* @memberof GoalActivityIncreased
|
|
99208
|
+
* @instance
|
|
99209
|
+
*/
|
|
99210
|
+
GoalActivityIncreased.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
99211
|
+
|
|
99203
99212
|
/**
|
|
99204
99213
|
* Creates a new GoalActivityIncreased instance using the specified properties.
|
|
99205
99214
|
* @function create
|
|
@@ -99228,6 +99237,8 @@ $root.GoalActivityIncreased = (function() {
|
|
|
99228
99237
|
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.goalDaysCompleted);
|
|
99229
99238
|
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
99230
99239
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.hsUserId);
|
|
99240
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
99241
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp);
|
|
99231
99242
|
return writer;
|
|
99232
99243
|
};
|
|
99233
99244
|
|
|
@@ -99268,6 +99279,9 @@ $root.GoalActivityIncreased = (function() {
|
|
|
99268
99279
|
case 2:
|
|
99269
99280
|
message.hsUserId = reader.string();
|
|
99270
99281
|
break;
|
|
99282
|
+
case 3:
|
|
99283
|
+
message.timestamp = reader.uint64();
|
|
99284
|
+
break;
|
|
99271
99285
|
default:
|
|
99272
99286
|
reader.skipType(tag & 7);
|
|
99273
99287
|
break;
|
|
@@ -99309,6 +99323,9 @@ $root.GoalActivityIncreased = (function() {
|
|
|
99309
99323
|
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
99310
99324
|
if (!$util.isString(message.hsUserId))
|
|
99311
99325
|
return "hsUserId: string expected";
|
|
99326
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
99327
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
99328
|
+
return "timestamp: integer|Long expected";
|
|
99312
99329
|
return null;
|
|
99313
99330
|
};
|
|
99314
99331
|
|
|
@@ -99328,6 +99345,15 @@ $root.GoalActivityIncreased = (function() {
|
|
|
99328
99345
|
message.goalDaysCompleted = object.goalDaysCompleted >>> 0;
|
|
99329
99346
|
if (object.hsUserId != null)
|
|
99330
99347
|
message.hsUserId = String(object.hsUserId);
|
|
99348
|
+
if (object.timestamp != null)
|
|
99349
|
+
if ($util.Long)
|
|
99350
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
99351
|
+
else if (typeof object.timestamp === "string")
|
|
99352
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
99353
|
+
else if (typeof object.timestamp === "number")
|
|
99354
|
+
message.timestamp = object.timestamp;
|
|
99355
|
+
else if (typeof object.timestamp === "object")
|
|
99356
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
99331
99357
|
return message;
|
|
99332
99358
|
};
|
|
99333
99359
|
|
|
@@ -99347,11 +99373,21 @@ $root.GoalActivityIncreased = (function() {
|
|
|
99347
99373
|
if (options.defaults) {
|
|
99348
99374
|
object.goalDaysCompleted = 0;
|
|
99349
99375
|
object.hsUserId = "";
|
|
99376
|
+
if ($util.Long) {
|
|
99377
|
+
var long = new $util.Long(0, 0, true);
|
|
99378
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
99379
|
+
} else
|
|
99380
|
+
object.timestamp = options.longs === String ? "0" : 0;
|
|
99350
99381
|
}
|
|
99351
99382
|
if (message.goalDaysCompleted != null && message.hasOwnProperty("goalDaysCompleted"))
|
|
99352
99383
|
object.goalDaysCompleted = message.goalDaysCompleted;
|
|
99353
99384
|
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
99354
99385
|
object.hsUserId = message.hsUserId;
|
|
99386
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
99387
|
+
if (typeof message.timestamp === "number")
|
|
99388
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
99389
|
+
else
|
|
99390
|
+
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;
|
|
99355
99391
|
return object;
|
|
99356
99392
|
};
|
|
99357
99393
|
|
package/package.json
CHANGED