@headspace/protos-events 1.27.0 → 1.28.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 +96 -0
- package/lib/index.js +210 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1907,6 +1907,102 @@ export class CheckInCompleted implements ICheckInCompleted {
|
|
|
1907
1907
|
public toJSON(): { [k: string]: any };
|
|
1908
1908
|
}
|
|
1909
1909
|
|
|
1910
|
+
/** Properties of a ReferralSignedUp. */
|
|
1911
|
+
export interface IReferralSignedUp {
|
|
1912
|
+
|
|
1913
|
+
/** ReferralSignedUp refereeName */
|
|
1914
|
+
refereeName?: (string|null);
|
|
1915
|
+
|
|
1916
|
+
/** ReferralSignedUp referrerId */
|
|
1917
|
+
referrerId?: (string|null);
|
|
1918
|
+
}
|
|
1919
|
+
|
|
1920
|
+
/** Represents a ReferralSignedUp. */
|
|
1921
|
+
export class ReferralSignedUp implements IReferralSignedUp {
|
|
1922
|
+
|
|
1923
|
+
/**
|
|
1924
|
+
* Constructs a new ReferralSignedUp.
|
|
1925
|
+
* @param [properties] Properties to set
|
|
1926
|
+
*/
|
|
1927
|
+
constructor(properties?: IReferralSignedUp);
|
|
1928
|
+
|
|
1929
|
+
/** ReferralSignedUp refereeName. */
|
|
1930
|
+
public refereeName: string;
|
|
1931
|
+
|
|
1932
|
+
/** ReferralSignedUp referrerId. */
|
|
1933
|
+
public referrerId: string;
|
|
1934
|
+
|
|
1935
|
+
/**
|
|
1936
|
+
* Creates a new ReferralSignedUp instance using the specified properties.
|
|
1937
|
+
* @param [properties] Properties to set
|
|
1938
|
+
* @returns ReferralSignedUp instance
|
|
1939
|
+
*/
|
|
1940
|
+
public static create(properties?: IReferralSignedUp): ReferralSignedUp;
|
|
1941
|
+
|
|
1942
|
+
/**
|
|
1943
|
+
* Encodes the specified ReferralSignedUp message. Does not implicitly {@link ReferralSignedUp.verify|verify} messages.
|
|
1944
|
+
* @param message ReferralSignedUp message or plain object to encode
|
|
1945
|
+
* @param [writer] Writer to encode to
|
|
1946
|
+
* @returns Writer
|
|
1947
|
+
*/
|
|
1948
|
+
public static encode(message: IReferralSignedUp, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1949
|
+
|
|
1950
|
+
/**
|
|
1951
|
+
* Encodes the specified ReferralSignedUp message, length delimited. Does not implicitly {@link ReferralSignedUp.verify|verify} messages.
|
|
1952
|
+
* @param message ReferralSignedUp message or plain object to encode
|
|
1953
|
+
* @param [writer] Writer to encode to
|
|
1954
|
+
* @returns Writer
|
|
1955
|
+
*/
|
|
1956
|
+
public static encodeDelimited(message: IReferralSignedUp, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1957
|
+
|
|
1958
|
+
/**
|
|
1959
|
+
* Decodes a ReferralSignedUp message from the specified reader or buffer.
|
|
1960
|
+
* @param reader Reader or buffer to decode from
|
|
1961
|
+
* @param [length] Message length if known beforehand
|
|
1962
|
+
* @returns ReferralSignedUp
|
|
1963
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1964
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1965
|
+
*/
|
|
1966
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ReferralSignedUp;
|
|
1967
|
+
|
|
1968
|
+
/**
|
|
1969
|
+
* Decodes a ReferralSignedUp message from the specified reader or buffer, length delimited.
|
|
1970
|
+
* @param reader Reader or buffer to decode from
|
|
1971
|
+
* @returns ReferralSignedUp
|
|
1972
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1973
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1974
|
+
*/
|
|
1975
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ReferralSignedUp;
|
|
1976
|
+
|
|
1977
|
+
/**
|
|
1978
|
+
* Verifies a ReferralSignedUp message.
|
|
1979
|
+
* @param message Plain object to verify
|
|
1980
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
1981
|
+
*/
|
|
1982
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
1983
|
+
|
|
1984
|
+
/**
|
|
1985
|
+
* Creates a ReferralSignedUp message from a plain object. Also converts values to their respective internal types.
|
|
1986
|
+
* @param object Plain object
|
|
1987
|
+
* @returns ReferralSignedUp
|
|
1988
|
+
*/
|
|
1989
|
+
public static fromObject(object: { [k: string]: any }): ReferralSignedUp;
|
|
1990
|
+
|
|
1991
|
+
/**
|
|
1992
|
+
* Creates a plain object from a ReferralSignedUp message. Also converts values to other types if specified.
|
|
1993
|
+
* @param message ReferralSignedUp
|
|
1994
|
+
* @param [options] Conversion options
|
|
1995
|
+
* @returns Plain object
|
|
1996
|
+
*/
|
|
1997
|
+
public static toObject(message: ReferralSignedUp, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
1998
|
+
|
|
1999
|
+
/**
|
|
2000
|
+
* Converts this ReferralSignedUp to JSON.
|
|
2001
|
+
* @returns JSON object
|
|
2002
|
+
*/
|
|
2003
|
+
public toJSON(): { [k: string]: any };
|
|
2004
|
+
}
|
|
2005
|
+
|
|
1910
2006
|
/** Properties of a SleepcastEpisodeCompleted. */
|
|
1911
2007
|
export interface ISleepcastEpisodeCompleted {
|
|
1912
2008
|
|
package/lib/index.js
CHANGED
|
@@ -4490,6 +4490,216 @@ $root.CheckInCompleted = (function() {
|
|
|
4490
4490
|
return CheckInCompleted;
|
|
4491
4491
|
})();
|
|
4492
4492
|
|
|
4493
|
+
$root.ReferralSignedUp = (function() {
|
|
4494
|
+
|
|
4495
|
+
/**
|
|
4496
|
+
* Properties of a ReferralSignedUp.
|
|
4497
|
+
* @exports IReferralSignedUp
|
|
4498
|
+
* @interface IReferralSignedUp
|
|
4499
|
+
* @property {string|null} [refereeName] ReferralSignedUp refereeName
|
|
4500
|
+
* @property {string|null} [referrerId] ReferralSignedUp referrerId
|
|
4501
|
+
*/
|
|
4502
|
+
|
|
4503
|
+
/**
|
|
4504
|
+
* Constructs a new ReferralSignedUp.
|
|
4505
|
+
* @exports ReferralSignedUp
|
|
4506
|
+
* @classdesc Represents a ReferralSignedUp.
|
|
4507
|
+
* @implements IReferralSignedUp
|
|
4508
|
+
* @constructor
|
|
4509
|
+
* @param {IReferralSignedUp=} [properties] Properties to set
|
|
4510
|
+
*/
|
|
4511
|
+
function ReferralSignedUp(properties) {
|
|
4512
|
+
if (properties)
|
|
4513
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
4514
|
+
if (properties[keys[i]] != null)
|
|
4515
|
+
this[keys[i]] = properties[keys[i]];
|
|
4516
|
+
}
|
|
4517
|
+
|
|
4518
|
+
/**
|
|
4519
|
+
* ReferralSignedUp refereeName.
|
|
4520
|
+
* @member {string} refereeName
|
|
4521
|
+
* @memberof ReferralSignedUp
|
|
4522
|
+
* @instance
|
|
4523
|
+
*/
|
|
4524
|
+
ReferralSignedUp.prototype.refereeName = "";
|
|
4525
|
+
|
|
4526
|
+
/**
|
|
4527
|
+
* ReferralSignedUp referrerId.
|
|
4528
|
+
* @member {string} referrerId
|
|
4529
|
+
* @memberof ReferralSignedUp
|
|
4530
|
+
* @instance
|
|
4531
|
+
*/
|
|
4532
|
+
ReferralSignedUp.prototype.referrerId = "";
|
|
4533
|
+
|
|
4534
|
+
/**
|
|
4535
|
+
* Creates a new ReferralSignedUp instance using the specified properties.
|
|
4536
|
+
* @function create
|
|
4537
|
+
* @memberof ReferralSignedUp
|
|
4538
|
+
* @static
|
|
4539
|
+
* @param {IReferralSignedUp=} [properties] Properties to set
|
|
4540
|
+
* @returns {ReferralSignedUp} ReferralSignedUp instance
|
|
4541
|
+
*/
|
|
4542
|
+
ReferralSignedUp.create = function create(properties) {
|
|
4543
|
+
return new ReferralSignedUp(properties);
|
|
4544
|
+
};
|
|
4545
|
+
|
|
4546
|
+
/**
|
|
4547
|
+
* Encodes the specified ReferralSignedUp message. Does not implicitly {@link ReferralSignedUp.verify|verify} messages.
|
|
4548
|
+
* @function encode
|
|
4549
|
+
* @memberof ReferralSignedUp
|
|
4550
|
+
* @static
|
|
4551
|
+
* @param {IReferralSignedUp} message ReferralSignedUp message or plain object to encode
|
|
4552
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
4553
|
+
* @returns {$protobuf.Writer} Writer
|
|
4554
|
+
*/
|
|
4555
|
+
ReferralSignedUp.encode = function encode(message, writer) {
|
|
4556
|
+
if (!writer)
|
|
4557
|
+
writer = $Writer.create();
|
|
4558
|
+
if (message.refereeName != null && message.hasOwnProperty("refereeName"))
|
|
4559
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.refereeName);
|
|
4560
|
+
if (message.referrerId != null && message.hasOwnProperty("referrerId"))
|
|
4561
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.referrerId);
|
|
4562
|
+
return writer;
|
|
4563
|
+
};
|
|
4564
|
+
|
|
4565
|
+
/**
|
|
4566
|
+
* Encodes the specified ReferralSignedUp message, length delimited. Does not implicitly {@link ReferralSignedUp.verify|verify} messages.
|
|
4567
|
+
* @function encodeDelimited
|
|
4568
|
+
* @memberof ReferralSignedUp
|
|
4569
|
+
* @static
|
|
4570
|
+
* @param {IReferralSignedUp} message ReferralSignedUp message or plain object to encode
|
|
4571
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
4572
|
+
* @returns {$protobuf.Writer} Writer
|
|
4573
|
+
*/
|
|
4574
|
+
ReferralSignedUp.encodeDelimited = function encodeDelimited(message, writer) {
|
|
4575
|
+
return this.encode(message, writer).ldelim();
|
|
4576
|
+
};
|
|
4577
|
+
|
|
4578
|
+
/**
|
|
4579
|
+
* Decodes a ReferralSignedUp message from the specified reader or buffer.
|
|
4580
|
+
* @function decode
|
|
4581
|
+
* @memberof ReferralSignedUp
|
|
4582
|
+
* @static
|
|
4583
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
4584
|
+
* @param {number} [length] Message length if known beforehand
|
|
4585
|
+
* @returns {ReferralSignedUp} ReferralSignedUp
|
|
4586
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4587
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4588
|
+
*/
|
|
4589
|
+
ReferralSignedUp.decode = function decode(reader, length) {
|
|
4590
|
+
if (!(reader instanceof $Reader))
|
|
4591
|
+
reader = $Reader.create(reader);
|
|
4592
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ReferralSignedUp();
|
|
4593
|
+
while (reader.pos < end) {
|
|
4594
|
+
var tag = reader.uint32();
|
|
4595
|
+
switch (tag >>> 3) {
|
|
4596
|
+
case 1:
|
|
4597
|
+
message.refereeName = reader.string();
|
|
4598
|
+
break;
|
|
4599
|
+
case 2:
|
|
4600
|
+
message.referrerId = reader.string();
|
|
4601
|
+
break;
|
|
4602
|
+
default:
|
|
4603
|
+
reader.skipType(tag & 7);
|
|
4604
|
+
break;
|
|
4605
|
+
}
|
|
4606
|
+
}
|
|
4607
|
+
return message;
|
|
4608
|
+
};
|
|
4609
|
+
|
|
4610
|
+
/**
|
|
4611
|
+
* Decodes a ReferralSignedUp message from the specified reader or buffer, length delimited.
|
|
4612
|
+
* @function decodeDelimited
|
|
4613
|
+
* @memberof ReferralSignedUp
|
|
4614
|
+
* @static
|
|
4615
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
4616
|
+
* @returns {ReferralSignedUp} ReferralSignedUp
|
|
4617
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4618
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4619
|
+
*/
|
|
4620
|
+
ReferralSignedUp.decodeDelimited = function decodeDelimited(reader) {
|
|
4621
|
+
if (!(reader instanceof $Reader))
|
|
4622
|
+
reader = new $Reader(reader);
|
|
4623
|
+
return this.decode(reader, reader.uint32());
|
|
4624
|
+
};
|
|
4625
|
+
|
|
4626
|
+
/**
|
|
4627
|
+
* Verifies a ReferralSignedUp message.
|
|
4628
|
+
* @function verify
|
|
4629
|
+
* @memberof ReferralSignedUp
|
|
4630
|
+
* @static
|
|
4631
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
4632
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
4633
|
+
*/
|
|
4634
|
+
ReferralSignedUp.verify = function verify(message) {
|
|
4635
|
+
if (typeof message !== "object" || message === null)
|
|
4636
|
+
return "object expected";
|
|
4637
|
+
if (message.refereeName != null && message.hasOwnProperty("refereeName"))
|
|
4638
|
+
if (!$util.isString(message.refereeName))
|
|
4639
|
+
return "refereeName: string expected";
|
|
4640
|
+
if (message.referrerId != null && message.hasOwnProperty("referrerId"))
|
|
4641
|
+
if (!$util.isString(message.referrerId))
|
|
4642
|
+
return "referrerId: string expected";
|
|
4643
|
+
return null;
|
|
4644
|
+
};
|
|
4645
|
+
|
|
4646
|
+
/**
|
|
4647
|
+
* Creates a ReferralSignedUp message from a plain object. Also converts values to their respective internal types.
|
|
4648
|
+
* @function fromObject
|
|
4649
|
+
* @memberof ReferralSignedUp
|
|
4650
|
+
* @static
|
|
4651
|
+
* @param {Object.<string,*>} object Plain object
|
|
4652
|
+
* @returns {ReferralSignedUp} ReferralSignedUp
|
|
4653
|
+
*/
|
|
4654
|
+
ReferralSignedUp.fromObject = function fromObject(object) {
|
|
4655
|
+
if (object instanceof $root.ReferralSignedUp)
|
|
4656
|
+
return object;
|
|
4657
|
+
var message = new $root.ReferralSignedUp();
|
|
4658
|
+
if (object.refereeName != null)
|
|
4659
|
+
message.refereeName = String(object.refereeName);
|
|
4660
|
+
if (object.referrerId != null)
|
|
4661
|
+
message.referrerId = String(object.referrerId);
|
|
4662
|
+
return message;
|
|
4663
|
+
};
|
|
4664
|
+
|
|
4665
|
+
/**
|
|
4666
|
+
* Creates a plain object from a ReferralSignedUp message. Also converts values to other types if specified.
|
|
4667
|
+
* @function toObject
|
|
4668
|
+
* @memberof ReferralSignedUp
|
|
4669
|
+
* @static
|
|
4670
|
+
* @param {ReferralSignedUp} message ReferralSignedUp
|
|
4671
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
4672
|
+
* @returns {Object.<string,*>} Plain object
|
|
4673
|
+
*/
|
|
4674
|
+
ReferralSignedUp.toObject = function toObject(message, options) {
|
|
4675
|
+
if (!options)
|
|
4676
|
+
options = {};
|
|
4677
|
+
var object = {};
|
|
4678
|
+
if (options.defaults) {
|
|
4679
|
+
object.refereeName = "";
|
|
4680
|
+
object.referrerId = "";
|
|
4681
|
+
}
|
|
4682
|
+
if (message.refereeName != null && message.hasOwnProperty("refereeName"))
|
|
4683
|
+
object.refereeName = message.refereeName;
|
|
4684
|
+
if (message.referrerId != null && message.hasOwnProperty("referrerId"))
|
|
4685
|
+
object.referrerId = message.referrerId;
|
|
4686
|
+
return object;
|
|
4687
|
+
};
|
|
4688
|
+
|
|
4689
|
+
/**
|
|
4690
|
+
* Converts this ReferralSignedUp to JSON.
|
|
4691
|
+
* @function toJSON
|
|
4692
|
+
* @memberof ReferralSignedUp
|
|
4693
|
+
* @instance
|
|
4694
|
+
* @returns {Object.<string,*>} JSON object
|
|
4695
|
+
*/
|
|
4696
|
+
ReferralSignedUp.prototype.toJSON = function toJSON() {
|
|
4697
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
4698
|
+
};
|
|
4699
|
+
|
|
4700
|
+
return ReferralSignedUp;
|
|
4701
|
+
})();
|
|
4702
|
+
|
|
4493
4703
|
$root.SleepcastEpisodeCompleted = (function() {
|
|
4494
4704
|
|
|
4495
4705
|
/**
|
package/package.json
CHANGED