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