@headspace/protos-events 1.271.0 → 1.272.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 +102 -0
- package/lib/index.js +246 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -24753,6 +24753,108 @@ export class RecommendationSequenceModelPredictionAvailable implements IRecommen
|
|
|
24753
24753
|
public toJSON(): { [k: string]: any };
|
|
24754
24754
|
}
|
|
24755
24755
|
|
|
24756
|
+
/** Properties of a RecommendationMindsetUpdated. */
|
|
24757
|
+
export interface IRecommendationMindsetUpdated {
|
|
24758
|
+
|
|
24759
|
+
/** RecommendationMindsetUpdated userId */
|
|
24760
|
+
userId?: (string|null);
|
|
24761
|
+
|
|
24762
|
+
/** RecommendationMindsetUpdated updatedAt */
|
|
24763
|
+
updatedAt?: (number|Long|null);
|
|
24764
|
+
|
|
24765
|
+
/** RecommendationMindsetUpdated mindset */
|
|
24766
|
+
mindset?: (string|null);
|
|
24767
|
+
}
|
|
24768
|
+
|
|
24769
|
+
/** Represents a RecommendationMindsetUpdated. */
|
|
24770
|
+
export class RecommendationMindsetUpdated implements IRecommendationMindsetUpdated {
|
|
24771
|
+
|
|
24772
|
+
/**
|
|
24773
|
+
* Constructs a new RecommendationMindsetUpdated.
|
|
24774
|
+
* @param [properties] Properties to set
|
|
24775
|
+
*/
|
|
24776
|
+
constructor(properties?: IRecommendationMindsetUpdated);
|
|
24777
|
+
|
|
24778
|
+
/** RecommendationMindsetUpdated userId. */
|
|
24779
|
+
public userId: string;
|
|
24780
|
+
|
|
24781
|
+
/** RecommendationMindsetUpdated updatedAt. */
|
|
24782
|
+
public updatedAt: (number|Long);
|
|
24783
|
+
|
|
24784
|
+
/** RecommendationMindsetUpdated mindset. */
|
|
24785
|
+
public mindset: string;
|
|
24786
|
+
|
|
24787
|
+
/**
|
|
24788
|
+
* Creates a new RecommendationMindsetUpdated instance using the specified properties.
|
|
24789
|
+
* @param [properties] Properties to set
|
|
24790
|
+
* @returns RecommendationMindsetUpdated instance
|
|
24791
|
+
*/
|
|
24792
|
+
public static create(properties?: IRecommendationMindsetUpdated): RecommendationMindsetUpdated;
|
|
24793
|
+
|
|
24794
|
+
/**
|
|
24795
|
+
* Encodes the specified RecommendationMindsetUpdated message. Does not implicitly {@link RecommendationMindsetUpdated.verify|verify} messages.
|
|
24796
|
+
* @param message RecommendationMindsetUpdated message or plain object to encode
|
|
24797
|
+
* @param [writer] Writer to encode to
|
|
24798
|
+
* @returns Writer
|
|
24799
|
+
*/
|
|
24800
|
+
public static encode(message: IRecommendationMindsetUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
24801
|
+
|
|
24802
|
+
/**
|
|
24803
|
+
* Encodes the specified RecommendationMindsetUpdated message, length delimited. Does not implicitly {@link RecommendationMindsetUpdated.verify|verify} messages.
|
|
24804
|
+
* @param message RecommendationMindsetUpdated message or plain object to encode
|
|
24805
|
+
* @param [writer] Writer to encode to
|
|
24806
|
+
* @returns Writer
|
|
24807
|
+
*/
|
|
24808
|
+
public static encodeDelimited(message: IRecommendationMindsetUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
24809
|
+
|
|
24810
|
+
/**
|
|
24811
|
+
* Decodes a RecommendationMindsetUpdated message from the specified reader or buffer.
|
|
24812
|
+
* @param reader Reader or buffer to decode from
|
|
24813
|
+
* @param [length] Message length if known beforehand
|
|
24814
|
+
* @returns RecommendationMindsetUpdated
|
|
24815
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
24816
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
24817
|
+
*/
|
|
24818
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): RecommendationMindsetUpdated;
|
|
24819
|
+
|
|
24820
|
+
/**
|
|
24821
|
+
* Decodes a RecommendationMindsetUpdated message from the specified reader or buffer, length delimited.
|
|
24822
|
+
* @param reader Reader or buffer to decode from
|
|
24823
|
+
* @returns RecommendationMindsetUpdated
|
|
24824
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
24825
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
24826
|
+
*/
|
|
24827
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): RecommendationMindsetUpdated;
|
|
24828
|
+
|
|
24829
|
+
/**
|
|
24830
|
+
* Verifies a RecommendationMindsetUpdated message.
|
|
24831
|
+
* @param message Plain object to verify
|
|
24832
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
24833
|
+
*/
|
|
24834
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
24835
|
+
|
|
24836
|
+
/**
|
|
24837
|
+
* Creates a RecommendationMindsetUpdated message from a plain object. Also converts values to their respective internal types.
|
|
24838
|
+
* @param object Plain object
|
|
24839
|
+
* @returns RecommendationMindsetUpdated
|
|
24840
|
+
*/
|
|
24841
|
+
public static fromObject(object: { [k: string]: any }): RecommendationMindsetUpdated;
|
|
24842
|
+
|
|
24843
|
+
/**
|
|
24844
|
+
* Creates a plain object from a RecommendationMindsetUpdated message. Also converts values to other types if specified.
|
|
24845
|
+
* @param message RecommendationMindsetUpdated
|
|
24846
|
+
* @param [options] Conversion options
|
|
24847
|
+
* @returns Plain object
|
|
24848
|
+
*/
|
|
24849
|
+
public static toObject(message: RecommendationMindsetUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
24850
|
+
|
|
24851
|
+
/**
|
|
24852
|
+
* Converts this RecommendationMindsetUpdated to JSON.
|
|
24853
|
+
* @returns JSON object
|
|
24854
|
+
*/
|
|
24855
|
+
public toJSON(): { [k: string]: any };
|
|
24856
|
+
}
|
|
24857
|
+
|
|
24756
24858
|
/** Properties of an IosSubscriptionCreated. */
|
|
24757
24859
|
export interface IIosSubscriptionCreated {
|
|
24758
24860
|
|
package/lib/index.js
CHANGED
|
@@ -67290,6 +67290,252 @@ $root.RecommendationSequenceModelPredictionAvailable = (function() {
|
|
|
67290
67290
|
return RecommendationSequenceModelPredictionAvailable;
|
|
67291
67291
|
})();
|
|
67292
67292
|
|
|
67293
|
+
$root.RecommendationMindsetUpdated = (function() {
|
|
67294
|
+
|
|
67295
|
+
/**
|
|
67296
|
+
* Properties of a RecommendationMindsetUpdated.
|
|
67297
|
+
* @exports IRecommendationMindsetUpdated
|
|
67298
|
+
* @interface IRecommendationMindsetUpdated
|
|
67299
|
+
* @property {string|null} [userId] RecommendationMindsetUpdated userId
|
|
67300
|
+
* @property {number|Long|null} [updatedAt] RecommendationMindsetUpdated updatedAt
|
|
67301
|
+
* @property {string|null} [mindset] RecommendationMindsetUpdated mindset
|
|
67302
|
+
*/
|
|
67303
|
+
|
|
67304
|
+
/**
|
|
67305
|
+
* Constructs a new RecommendationMindsetUpdated.
|
|
67306
|
+
* @exports RecommendationMindsetUpdated
|
|
67307
|
+
* @classdesc Represents a RecommendationMindsetUpdated.
|
|
67308
|
+
* @implements IRecommendationMindsetUpdated
|
|
67309
|
+
* @constructor
|
|
67310
|
+
* @param {IRecommendationMindsetUpdated=} [properties] Properties to set
|
|
67311
|
+
*/
|
|
67312
|
+
function RecommendationMindsetUpdated(properties) {
|
|
67313
|
+
if (properties)
|
|
67314
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
67315
|
+
if (properties[keys[i]] != null)
|
|
67316
|
+
this[keys[i]] = properties[keys[i]];
|
|
67317
|
+
}
|
|
67318
|
+
|
|
67319
|
+
/**
|
|
67320
|
+
* RecommendationMindsetUpdated userId.
|
|
67321
|
+
* @member {string} userId
|
|
67322
|
+
* @memberof RecommendationMindsetUpdated
|
|
67323
|
+
* @instance
|
|
67324
|
+
*/
|
|
67325
|
+
RecommendationMindsetUpdated.prototype.userId = "";
|
|
67326
|
+
|
|
67327
|
+
/**
|
|
67328
|
+
* RecommendationMindsetUpdated updatedAt.
|
|
67329
|
+
* @member {number|Long} updatedAt
|
|
67330
|
+
* @memberof RecommendationMindsetUpdated
|
|
67331
|
+
* @instance
|
|
67332
|
+
*/
|
|
67333
|
+
RecommendationMindsetUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
67334
|
+
|
|
67335
|
+
/**
|
|
67336
|
+
* RecommendationMindsetUpdated mindset.
|
|
67337
|
+
* @member {string} mindset
|
|
67338
|
+
* @memberof RecommendationMindsetUpdated
|
|
67339
|
+
* @instance
|
|
67340
|
+
*/
|
|
67341
|
+
RecommendationMindsetUpdated.prototype.mindset = "";
|
|
67342
|
+
|
|
67343
|
+
/**
|
|
67344
|
+
* Creates a new RecommendationMindsetUpdated instance using the specified properties.
|
|
67345
|
+
* @function create
|
|
67346
|
+
* @memberof RecommendationMindsetUpdated
|
|
67347
|
+
* @static
|
|
67348
|
+
* @param {IRecommendationMindsetUpdated=} [properties] Properties to set
|
|
67349
|
+
* @returns {RecommendationMindsetUpdated} RecommendationMindsetUpdated instance
|
|
67350
|
+
*/
|
|
67351
|
+
RecommendationMindsetUpdated.create = function create(properties) {
|
|
67352
|
+
return new RecommendationMindsetUpdated(properties);
|
|
67353
|
+
};
|
|
67354
|
+
|
|
67355
|
+
/**
|
|
67356
|
+
* Encodes the specified RecommendationMindsetUpdated message. Does not implicitly {@link RecommendationMindsetUpdated.verify|verify} messages.
|
|
67357
|
+
* @function encode
|
|
67358
|
+
* @memberof RecommendationMindsetUpdated
|
|
67359
|
+
* @static
|
|
67360
|
+
* @param {IRecommendationMindsetUpdated} message RecommendationMindsetUpdated message or plain object to encode
|
|
67361
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
67362
|
+
* @returns {$protobuf.Writer} Writer
|
|
67363
|
+
*/
|
|
67364
|
+
RecommendationMindsetUpdated.encode = function encode(message, writer) {
|
|
67365
|
+
if (!writer)
|
|
67366
|
+
writer = $Writer.create();
|
|
67367
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
67368
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
|
|
67369
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
67370
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.updatedAt);
|
|
67371
|
+
if (message.mindset != null && message.hasOwnProperty("mindset"))
|
|
67372
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.mindset);
|
|
67373
|
+
return writer;
|
|
67374
|
+
};
|
|
67375
|
+
|
|
67376
|
+
/**
|
|
67377
|
+
* Encodes the specified RecommendationMindsetUpdated message, length delimited. Does not implicitly {@link RecommendationMindsetUpdated.verify|verify} messages.
|
|
67378
|
+
* @function encodeDelimited
|
|
67379
|
+
* @memberof RecommendationMindsetUpdated
|
|
67380
|
+
* @static
|
|
67381
|
+
* @param {IRecommendationMindsetUpdated} message RecommendationMindsetUpdated message or plain object to encode
|
|
67382
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
67383
|
+
* @returns {$protobuf.Writer} Writer
|
|
67384
|
+
*/
|
|
67385
|
+
RecommendationMindsetUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
67386
|
+
return this.encode(message, writer).ldelim();
|
|
67387
|
+
};
|
|
67388
|
+
|
|
67389
|
+
/**
|
|
67390
|
+
* Decodes a RecommendationMindsetUpdated message from the specified reader or buffer.
|
|
67391
|
+
* @function decode
|
|
67392
|
+
* @memberof RecommendationMindsetUpdated
|
|
67393
|
+
* @static
|
|
67394
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
67395
|
+
* @param {number} [length] Message length if known beforehand
|
|
67396
|
+
* @returns {RecommendationMindsetUpdated} RecommendationMindsetUpdated
|
|
67397
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
67398
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
67399
|
+
*/
|
|
67400
|
+
RecommendationMindsetUpdated.decode = function decode(reader, length) {
|
|
67401
|
+
if (!(reader instanceof $Reader))
|
|
67402
|
+
reader = $Reader.create(reader);
|
|
67403
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.RecommendationMindsetUpdated();
|
|
67404
|
+
while (reader.pos < end) {
|
|
67405
|
+
var tag = reader.uint32();
|
|
67406
|
+
switch (tag >>> 3) {
|
|
67407
|
+
case 1:
|
|
67408
|
+
message.userId = reader.string();
|
|
67409
|
+
break;
|
|
67410
|
+
case 2:
|
|
67411
|
+
message.updatedAt = reader.uint64();
|
|
67412
|
+
break;
|
|
67413
|
+
case 3:
|
|
67414
|
+
message.mindset = reader.string();
|
|
67415
|
+
break;
|
|
67416
|
+
default:
|
|
67417
|
+
reader.skipType(tag & 7);
|
|
67418
|
+
break;
|
|
67419
|
+
}
|
|
67420
|
+
}
|
|
67421
|
+
return message;
|
|
67422
|
+
};
|
|
67423
|
+
|
|
67424
|
+
/**
|
|
67425
|
+
* Decodes a RecommendationMindsetUpdated message from the specified reader or buffer, length delimited.
|
|
67426
|
+
* @function decodeDelimited
|
|
67427
|
+
* @memberof RecommendationMindsetUpdated
|
|
67428
|
+
* @static
|
|
67429
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
67430
|
+
* @returns {RecommendationMindsetUpdated} RecommendationMindsetUpdated
|
|
67431
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
67432
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
67433
|
+
*/
|
|
67434
|
+
RecommendationMindsetUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
67435
|
+
if (!(reader instanceof $Reader))
|
|
67436
|
+
reader = new $Reader(reader);
|
|
67437
|
+
return this.decode(reader, reader.uint32());
|
|
67438
|
+
};
|
|
67439
|
+
|
|
67440
|
+
/**
|
|
67441
|
+
* Verifies a RecommendationMindsetUpdated message.
|
|
67442
|
+
* @function verify
|
|
67443
|
+
* @memberof RecommendationMindsetUpdated
|
|
67444
|
+
* @static
|
|
67445
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
67446
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
67447
|
+
*/
|
|
67448
|
+
RecommendationMindsetUpdated.verify = function verify(message) {
|
|
67449
|
+
if (typeof message !== "object" || message === null)
|
|
67450
|
+
return "object expected";
|
|
67451
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
67452
|
+
if (!$util.isString(message.userId))
|
|
67453
|
+
return "userId: string expected";
|
|
67454
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
67455
|
+
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
67456
|
+
return "updatedAt: integer|Long expected";
|
|
67457
|
+
if (message.mindset != null && message.hasOwnProperty("mindset"))
|
|
67458
|
+
if (!$util.isString(message.mindset))
|
|
67459
|
+
return "mindset: string expected";
|
|
67460
|
+
return null;
|
|
67461
|
+
};
|
|
67462
|
+
|
|
67463
|
+
/**
|
|
67464
|
+
* Creates a RecommendationMindsetUpdated message from a plain object. Also converts values to their respective internal types.
|
|
67465
|
+
* @function fromObject
|
|
67466
|
+
* @memberof RecommendationMindsetUpdated
|
|
67467
|
+
* @static
|
|
67468
|
+
* @param {Object.<string,*>} object Plain object
|
|
67469
|
+
* @returns {RecommendationMindsetUpdated} RecommendationMindsetUpdated
|
|
67470
|
+
*/
|
|
67471
|
+
RecommendationMindsetUpdated.fromObject = function fromObject(object) {
|
|
67472
|
+
if (object instanceof $root.RecommendationMindsetUpdated)
|
|
67473
|
+
return object;
|
|
67474
|
+
var message = new $root.RecommendationMindsetUpdated();
|
|
67475
|
+
if (object.userId != null)
|
|
67476
|
+
message.userId = String(object.userId);
|
|
67477
|
+
if (object.updatedAt != null)
|
|
67478
|
+
if ($util.Long)
|
|
67479
|
+
(message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
|
|
67480
|
+
else if (typeof object.updatedAt === "string")
|
|
67481
|
+
message.updatedAt = parseInt(object.updatedAt, 10);
|
|
67482
|
+
else if (typeof object.updatedAt === "number")
|
|
67483
|
+
message.updatedAt = object.updatedAt;
|
|
67484
|
+
else if (typeof object.updatedAt === "object")
|
|
67485
|
+
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
67486
|
+
if (object.mindset != null)
|
|
67487
|
+
message.mindset = String(object.mindset);
|
|
67488
|
+
return message;
|
|
67489
|
+
};
|
|
67490
|
+
|
|
67491
|
+
/**
|
|
67492
|
+
* Creates a plain object from a RecommendationMindsetUpdated message. Also converts values to other types if specified.
|
|
67493
|
+
* @function toObject
|
|
67494
|
+
* @memberof RecommendationMindsetUpdated
|
|
67495
|
+
* @static
|
|
67496
|
+
* @param {RecommendationMindsetUpdated} message RecommendationMindsetUpdated
|
|
67497
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
67498
|
+
* @returns {Object.<string,*>} Plain object
|
|
67499
|
+
*/
|
|
67500
|
+
RecommendationMindsetUpdated.toObject = function toObject(message, options) {
|
|
67501
|
+
if (!options)
|
|
67502
|
+
options = {};
|
|
67503
|
+
var object = {};
|
|
67504
|
+
if (options.defaults) {
|
|
67505
|
+
object.userId = "";
|
|
67506
|
+
if ($util.Long) {
|
|
67507
|
+
var long = new $util.Long(0, 0, true);
|
|
67508
|
+
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
67509
|
+
} else
|
|
67510
|
+
object.updatedAt = options.longs === String ? "0" : 0;
|
|
67511
|
+
object.mindset = "";
|
|
67512
|
+
}
|
|
67513
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
67514
|
+
object.userId = message.userId;
|
|
67515
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
67516
|
+
if (typeof message.updatedAt === "number")
|
|
67517
|
+
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
67518
|
+
else
|
|
67519
|
+
object.updatedAt = options.longs === String ? $util.Long.prototype.toString.call(message.updatedAt) : options.longs === Number ? new $util.LongBits(message.updatedAt.low >>> 0, message.updatedAt.high >>> 0).toNumber(true) : message.updatedAt;
|
|
67520
|
+
if (message.mindset != null && message.hasOwnProperty("mindset"))
|
|
67521
|
+
object.mindset = message.mindset;
|
|
67522
|
+
return object;
|
|
67523
|
+
};
|
|
67524
|
+
|
|
67525
|
+
/**
|
|
67526
|
+
* Converts this RecommendationMindsetUpdated to JSON.
|
|
67527
|
+
* @function toJSON
|
|
67528
|
+
* @memberof RecommendationMindsetUpdated
|
|
67529
|
+
* @instance
|
|
67530
|
+
* @returns {Object.<string,*>} JSON object
|
|
67531
|
+
*/
|
|
67532
|
+
RecommendationMindsetUpdated.prototype.toJSON = function toJSON() {
|
|
67533
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
67534
|
+
};
|
|
67535
|
+
|
|
67536
|
+
return RecommendationMindsetUpdated;
|
|
67537
|
+
})();
|
|
67538
|
+
|
|
67293
67539
|
$root.IosSubscriptionCreated = (function() {
|
|
67294
67540
|
|
|
67295
67541
|
/**
|
package/package.json
CHANGED