@headspace/protos-events 1.502.0 → 1.504.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 +313 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -29411,6 +29411,9 @@ export interface IB2BChallengeCreated {
|
|
|
29411
29411
|
|
|
29412
29412
|
/** B2BChallengeCreated goalTarget */
|
|
29413
29413
|
goalTarget?: (number|Long|null);
|
|
29414
|
+
|
|
29415
|
+
/** B2BChallengeCreated memberStatuses */
|
|
29416
|
+
memberStatuses?: (b2b.MemberStatus[]|null);
|
|
29414
29417
|
}
|
|
29415
29418
|
|
|
29416
29419
|
/** Represents a B2BChallengeCreated. */
|
|
@@ -29449,6 +29452,9 @@ export class B2BChallengeCreated implements IB2BChallengeCreated {
|
|
|
29449
29452
|
/** B2BChallengeCreated goalTarget. */
|
|
29450
29453
|
public goalTarget: (number|Long);
|
|
29451
29454
|
|
|
29455
|
+
/** B2BChallengeCreated memberStatuses. */
|
|
29456
|
+
public memberStatuses: b2b.MemberStatus[];
|
|
29457
|
+
|
|
29452
29458
|
/**
|
|
29453
29459
|
* Creates a new B2BChallengeCreated instance using the specified properties.
|
|
29454
29460
|
* @param [properties] Properties to set
|
|
@@ -39969,6 +39975,102 @@ export namespace ModerationActionPerformed {
|
|
|
39969
39975
|
}
|
|
39970
39976
|
}
|
|
39971
39977
|
|
|
39978
|
+
/** Properties of a UserOnboardingTopicResponses. */
|
|
39979
|
+
export interface IUserOnboardingTopicResponses {
|
|
39980
|
+
|
|
39981
|
+
/** UserOnboardingTopicResponses userId */
|
|
39982
|
+
userId?: (string|null);
|
|
39983
|
+
|
|
39984
|
+
/** UserOnboardingTopicResponses onboardTopics */
|
|
39985
|
+
onboardTopics?: (string[]|null);
|
|
39986
|
+
}
|
|
39987
|
+
|
|
39988
|
+
/** Represents a UserOnboardingTopicResponses. */
|
|
39989
|
+
export class UserOnboardingTopicResponses implements IUserOnboardingTopicResponses {
|
|
39990
|
+
|
|
39991
|
+
/**
|
|
39992
|
+
* Constructs a new UserOnboardingTopicResponses.
|
|
39993
|
+
* @param [properties] Properties to set
|
|
39994
|
+
*/
|
|
39995
|
+
constructor(properties?: IUserOnboardingTopicResponses);
|
|
39996
|
+
|
|
39997
|
+
/** UserOnboardingTopicResponses userId. */
|
|
39998
|
+
public userId: string;
|
|
39999
|
+
|
|
40000
|
+
/** UserOnboardingTopicResponses onboardTopics. */
|
|
40001
|
+
public onboardTopics: string[];
|
|
40002
|
+
|
|
40003
|
+
/**
|
|
40004
|
+
* Creates a new UserOnboardingTopicResponses instance using the specified properties.
|
|
40005
|
+
* @param [properties] Properties to set
|
|
40006
|
+
* @returns UserOnboardingTopicResponses instance
|
|
40007
|
+
*/
|
|
40008
|
+
public static create(properties?: IUserOnboardingTopicResponses): UserOnboardingTopicResponses;
|
|
40009
|
+
|
|
40010
|
+
/**
|
|
40011
|
+
* Encodes the specified UserOnboardingTopicResponses message. Does not implicitly {@link UserOnboardingTopicResponses.verify|verify} messages.
|
|
40012
|
+
* @param message UserOnboardingTopicResponses message or plain object to encode
|
|
40013
|
+
* @param [writer] Writer to encode to
|
|
40014
|
+
* @returns Writer
|
|
40015
|
+
*/
|
|
40016
|
+
public static encode(message: IUserOnboardingTopicResponses, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
40017
|
+
|
|
40018
|
+
/**
|
|
40019
|
+
* Encodes the specified UserOnboardingTopicResponses message, length delimited. Does not implicitly {@link UserOnboardingTopicResponses.verify|verify} messages.
|
|
40020
|
+
* @param message UserOnboardingTopicResponses message or plain object to encode
|
|
40021
|
+
* @param [writer] Writer to encode to
|
|
40022
|
+
* @returns Writer
|
|
40023
|
+
*/
|
|
40024
|
+
public static encodeDelimited(message: IUserOnboardingTopicResponses, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
40025
|
+
|
|
40026
|
+
/**
|
|
40027
|
+
* Decodes a UserOnboardingTopicResponses message from the specified reader or buffer.
|
|
40028
|
+
* @param reader Reader or buffer to decode from
|
|
40029
|
+
* @param [length] Message length if known beforehand
|
|
40030
|
+
* @returns UserOnboardingTopicResponses
|
|
40031
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
40032
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
40033
|
+
*/
|
|
40034
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserOnboardingTopicResponses;
|
|
40035
|
+
|
|
40036
|
+
/**
|
|
40037
|
+
* Decodes a UserOnboardingTopicResponses message from the specified reader or buffer, length delimited.
|
|
40038
|
+
* @param reader Reader or buffer to decode from
|
|
40039
|
+
* @returns UserOnboardingTopicResponses
|
|
40040
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
40041
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
40042
|
+
*/
|
|
40043
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserOnboardingTopicResponses;
|
|
40044
|
+
|
|
40045
|
+
/**
|
|
40046
|
+
* Verifies a UserOnboardingTopicResponses message.
|
|
40047
|
+
* @param message Plain object to verify
|
|
40048
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
40049
|
+
*/
|
|
40050
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
40051
|
+
|
|
40052
|
+
/**
|
|
40053
|
+
* Creates a UserOnboardingTopicResponses message from a plain object. Also converts values to their respective internal types.
|
|
40054
|
+
* @param object Plain object
|
|
40055
|
+
* @returns UserOnboardingTopicResponses
|
|
40056
|
+
*/
|
|
40057
|
+
public static fromObject(object: { [k: string]: any }): UserOnboardingTopicResponses;
|
|
40058
|
+
|
|
40059
|
+
/**
|
|
40060
|
+
* Creates a plain object from a UserOnboardingTopicResponses message. Also converts values to other types if specified.
|
|
40061
|
+
* @param message UserOnboardingTopicResponses
|
|
40062
|
+
* @param [options] Conversion options
|
|
40063
|
+
* @returns Plain object
|
|
40064
|
+
*/
|
|
40065
|
+
public static toObject(message: UserOnboardingTopicResponses, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
40066
|
+
|
|
40067
|
+
/**
|
|
40068
|
+
* Converts this UserOnboardingTopicResponses to JSON.
|
|
40069
|
+
* @returns JSON object
|
|
40070
|
+
*/
|
|
40071
|
+
public toJSON(): { [k: string]: any };
|
|
40072
|
+
}
|
|
40073
|
+
|
|
39972
40074
|
/** Properties of a WakeupPlaylistCreated. */
|
|
39973
40075
|
export interface IWakeupPlaylistCreated {
|
|
39974
40076
|
|
package/lib/index.js
CHANGED
|
@@ -81495,6 +81495,7 @@ $root.B2BChallengeCreated = (function() {
|
|
|
81495
81495
|
* @property {number|Long|null} [durationInWeeks] B2BChallengeCreated durationInWeeks
|
|
81496
81496
|
* @property {GoalType|null} [goalType] B2BChallengeCreated goalType
|
|
81497
81497
|
* @property {number|Long|null} [goalTarget] B2BChallengeCreated goalTarget
|
|
81498
|
+
* @property {Array.<b2b.MemberStatus>|null} [memberStatuses] B2BChallengeCreated memberStatuses
|
|
81498
81499
|
*/
|
|
81499
81500
|
|
|
81500
81501
|
/**
|
|
@@ -81506,6 +81507,7 @@ $root.B2BChallengeCreated = (function() {
|
|
|
81506
81507
|
* @param {IB2BChallengeCreated=} [properties] Properties to set
|
|
81507
81508
|
*/
|
|
81508
81509
|
function B2BChallengeCreated(properties) {
|
|
81510
|
+
this.memberStatuses = [];
|
|
81509
81511
|
if (properties)
|
|
81510
81512
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
81511
81513
|
if (properties[keys[i]] != null)
|
|
@@ -81584,6 +81586,14 @@ $root.B2BChallengeCreated = (function() {
|
|
|
81584
81586
|
*/
|
|
81585
81587
|
B2BChallengeCreated.prototype.goalTarget = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
81586
81588
|
|
|
81589
|
+
/**
|
|
81590
|
+
* B2BChallengeCreated memberStatuses.
|
|
81591
|
+
* @member {Array.<b2b.MemberStatus>} memberStatuses
|
|
81592
|
+
* @memberof B2BChallengeCreated
|
|
81593
|
+
* @instance
|
|
81594
|
+
*/
|
|
81595
|
+
B2BChallengeCreated.prototype.memberStatuses = $util.emptyArray;
|
|
81596
|
+
|
|
81587
81597
|
/**
|
|
81588
81598
|
* Creates a new B2BChallengeCreated instance using the specified properties.
|
|
81589
81599
|
* @function create
|
|
@@ -81626,6 +81636,12 @@ $root.B2BChallengeCreated = (function() {
|
|
|
81626
81636
|
writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.goalTarget);
|
|
81627
81637
|
if (message.challengeId != null && message.hasOwnProperty("challengeId"))
|
|
81628
81638
|
writer.uint32(/* id 9, wireType 0 =*/72).uint64(message.challengeId);
|
|
81639
|
+
if (message.memberStatuses != null && message.memberStatuses.length) {
|
|
81640
|
+
writer.uint32(/* id 10, wireType 2 =*/82).fork();
|
|
81641
|
+
for (var i = 0; i < message.memberStatuses.length; ++i)
|
|
81642
|
+
writer.int32(message.memberStatuses[i]);
|
|
81643
|
+
writer.ldelim();
|
|
81644
|
+
}
|
|
81629
81645
|
return writer;
|
|
81630
81646
|
};
|
|
81631
81647
|
|
|
@@ -81687,6 +81703,16 @@ $root.B2BChallengeCreated = (function() {
|
|
|
81687
81703
|
case 8:
|
|
81688
81704
|
message.goalTarget = reader.uint64();
|
|
81689
81705
|
break;
|
|
81706
|
+
case 10:
|
|
81707
|
+
if (!(message.memberStatuses && message.memberStatuses.length))
|
|
81708
|
+
message.memberStatuses = [];
|
|
81709
|
+
if ((tag & 7) === 2) {
|
|
81710
|
+
var end2 = reader.uint32() + reader.pos;
|
|
81711
|
+
while (reader.pos < end2)
|
|
81712
|
+
message.memberStatuses.push(reader.int32());
|
|
81713
|
+
} else
|
|
81714
|
+
message.memberStatuses.push(reader.int32());
|
|
81715
|
+
break;
|
|
81690
81716
|
default:
|
|
81691
81717
|
reader.skipType(tag & 7);
|
|
81692
81718
|
break;
|
|
@@ -81762,6 +81788,23 @@ $root.B2BChallengeCreated = (function() {
|
|
|
81762
81788
|
if (message.goalTarget != null && message.hasOwnProperty("goalTarget"))
|
|
81763
81789
|
if (!$util.isInteger(message.goalTarget) && !(message.goalTarget && $util.isInteger(message.goalTarget.low) && $util.isInteger(message.goalTarget.high)))
|
|
81764
81790
|
return "goalTarget: integer|Long expected";
|
|
81791
|
+
if (message.memberStatuses != null && message.hasOwnProperty("memberStatuses")) {
|
|
81792
|
+
if (!Array.isArray(message.memberStatuses))
|
|
81793
|
+
return "memberStatuses: array expected";
|
|
81794
|
+
for (var i = 0; i < message.memberStatuses.length; ++i)
|
|
81795
|
+
switch (message.memberStatuses[i]) {
|
|
81796
|
+
default:
|
|
81797
|
+
return "memberStatuses: enum value[] expected";
|
|
81798
|
+
case 0:
|
|
81799
|
+
case 1:
|
|
81800
|
+
case 2:
|
|
81801
|
+
case 3:
|
|
81802
|
+
case 4:
|
|
81803
|
+
case 5:
|
|
81804
|
+
case 6:
|
|
81805
|
+
break;
|
|
81806
|
+
}
|
|
81807
|
+
}
|
|
81765
81808
|
return null;
|
|
81766
81809
|
};
|
|
81767
81810
|
|
|
@@ -81851,6 +81894,43 @@ $root.B2BChallengeCreated = (function() {
|
|
|
81851
81894
|
message.goalTarget = object.goalTarget;
|
|
81852
81895
|
else if (typeof object.goalTarget === "object")
|
|
81853
81896
|
message.goalTarget = new $util.LongBits(object.goalTarget.low >>> 0, object.goalTarget.high >>> 0).toNumber(true);
|
|
81897
|
+
if (object.memberStatuses) {
|
|
81898
|
+
if (!Array.isArray(object.memberStatuses))
|
|
81899
|
+
throw TypeError(".B2BChallengeCreated.memberStatuses: array expected");
|
|
81900
|
+
message.memberStatuses = [];
|
|
81901
|
+
for (var i = 0; i < object.memberStatuses.length; ++i)
|
|
81902
|
+
switch (object.memberStatuses[i]) {
|
|
81903
|
+
default:
|
|
81904
|
+
case "PENDING":
|
|
81905
|
+
case 0:
|
|
81906
|
+
message.memberStatuses[i] = 0;
|
|
81907
|
+
break;
|
|
81908
|
+
case "ORPHAN":
|
|
81909
|
+
case 1:
|
|
81910
|
+
message.memberStatuses[i] = 1;
|
|
81911
|
+
break;
|
|
81912
|
+
case "ACTIVE":
|
|
81913
|
+
case 2:
|
|
81914
|
+
message.memberStatuses[i] = 2;
|
|
81915
|
+
break;
|
|
81916
|
+
case "REMOVED":
|
|
81917
|
+
case 3:
|
|
81918
|
+
message.memberStatuses[i] = 3;
|
|
81919
|
+
break;
|
|
81920
|
+
case "EXPIRED":
|
|
81921
|
+
case 4:
|
|
81922
|
+
message.memberStatuses[i] = 4;
|
|
81923
|
+
break;
|
|
81924
|
+
case "ELIGIBLE":
|
|
81925
|
+
case 5:
|
|
81926
|
+
message.memberStatuses[i] = 5;
|
|
81927
|
+
break;
|
|
81928
|
+
case "PENDING_REMOVAL":
|
|
81929
|
+
case 6:
|
|
81930
|
+
message.memberStatuses[i] = 6;
|
|
81931
|
+
break;
|
|
81932
|
+
}
|
|
81933
|
+
}
|
|
81854
81934
|
return message;
|
|
81855
81935
|
};
|
|
81856
81936
|
|
|
@@ -81867,6 +81947,8 @@ $root.B2BChallengeCreated = (function() {
|
|
|
81867
81947
|
if (!options)
|
|
81868
81948
|
options = {};
|
|
81869
81949
|
var object = {};
|
|
81950
|
+
if (options.arrays || options.defaults)
|
|
81951
|
+
object.memberStatuses = [];
|
|
81870
81952
|
if (options.defaults) {
|
|
81871
81953
|
if ($util.Long) {
|
|
81872
81954
|
var long = new $util.Long(0, 0, true);
|
|
@@ -81924,6 +82006,11 @@ $root.B2BChallengeCreated = (function() {
|
|
|
81924
82006
|
object.challengeId = options.longs === String ? String(message.challengeId) : message.challengeId;
|
|
81925
82007
|
else
|
|
81926
82008
|
object.challengeId = options.longs === String ? $util.Long.prototype.toString.call(message.challengeId) : options.longs === Number ? new $util.LongBits(message.challengeId.low >>> 0, message.challengeId.high >>> 0).toNumber(true) : message.challengeId;
|
|
82009
|
+
if (message.memberStatuses && message.memberStatuses.length) {
|
|
82010
|
+
object.memberStatuses = [];
|
|
82011
|
+
for (var j = 0; j < message.memberStatuses.length; ++j)
|
|
82012
|
+
object.memberStatuses[j] = options.enums === String ? $root.b2b.MemberStatus[message.memberStatuses[j]] : message.memberStatuses[j];
|
|
82013
|
+
}
|
|
81927
82014
|
return object;
|
|
81928
82015
|
};
|
|
81929
82016
|
|
|
@@ -112690,6 +112777,232 @@ $root.ModerationActionPerformed = (function() {
|
|
|
112690
112777
|
return ModerationActionPerformed;
|
|
112691
112778
|
})();
|
|
112692
112779
|
|
|
112780
|
+
$root.UserOnboardingTopicResponses = (function() {
|
|
112781
|
+
|
|
112782
|
+
/**
|
|
112783
|
+
* Properties of a UserOnboardingTopicResponses.
|
|
112784
|
+
* @name IUserOnboardingTopicResponses
|
|
112785
|
+
* @interface IUserOnboardingTopicResponses
|
|
112786
|
+
* @property {string|null} [userId] UserOnboardingTopicResponses userId
|
|
112787
|
+
* @property {Array.<string>|null} [onboardTopics] UserOnboardingTopicResponses onboardTopics
|
|
112788
|
+
*/
|
|
112789
|
+
|
|
112790
|
+
/**
|
|
112791
|
+
* Constructs a new UserOnboardingTopicResponses.
|
|
112792
|
+
* @name UserOnboardingTopicResponses
|
|
112793
|
+
* @classdesc Represents a UserOnboardingTopicResponses.
|
|
112794
|
+
* @implements IUserOnboardingTopicResponses
|
|
112795
|
+
* @constructor
|
|
112796
|
+
* @param {IUserOnboardingTopicResponses=} [properties] Properties to set
|
|
112797
|
+
*/
|
|
112798
|
+
function UserOnboardingTopicResponses(properties) {
|
|
112799
|
+
this.onboardTopics = [];
|
|
112800
|
+
if (properties)
|
|
112801
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
112802
|
+
if (properties[keys[i]] != null)
|
|
112803
|
+
this[keys[i]] = properties[keys[i]];
|
|
112804
|
+
}
|
|
112805
|
+
|
|
112806
|
+
/**
|
|
112807
|
+
* UserOnboardingTopicResponses userId.
|
|
112808
|
+
* @member {string} userId
|
|
112809
|
+
* @memberof UserOnboardingTopicResponses
|
|
112810
|
+
* @instance
|
|
112811
|
+
*/
|
|
112812
|
+
UserOnboardingTopicResponses.prototype.userId = "";
|
|
112813
|
+
|
|
112814
|
+
/**
|
|
112815
|
+
* UserOnboardingTopicResponses onboardTopics.
|
|
112816
|
+
* @member {Array.<string>} onboardTopics
|
|
112817
|
+
* @memberof UserOnboardingTopicResponses
|
|
112818
|
+
* @instance
|
|
112819
|
+
*/
|
|
112820
|
+
UserOnboardingTopicResponses.prototype.onboardTopics = $util.emptyArray;
|
|
112821
|
+
|
|
112822
|
+
/**
|
|
112823
|
+
* Creates a new UserOnboardingTopicResponses instance using the specified properties.
|
|
112824
|
+
* @function create
|
|
112825
|
+
* @memberof UserOnboardingTopicResponses
|
|
112826
|
+
* @static
|
|
112827
|
+
* @param {IUserOnboardingTopicResponses=} [properties] Properties to set
|
|
112828
|
+
* @returns {UserOnboardingTopicResponses} UserOnboardingTopicResponses instance
|
|
112829
|
+
*/
|
|
112830
|
+
UserOnboardingTopicResponses.create = function create(properties) {
|
|
112831
|
+
return new UserOnboardingTopicResponses(properties);
|
|
112832
|
+
};
|
|
112833
|
+
|
|
112834
|
+
/**
|
|
112835
|
+
* Encodes the specified UserOnboardingTopicResponses message. Does not implicitly {@link UserOnboardingTopicResponses.verify|verify} messages.
|
|
112836
|
+
* @function encode
|
|
112837
|
+
* @memberof UserOnboardingTopicResponses
|
|
112838
|
+
* @static
|
|
112839
|
+
* @param {IUserOnboardingTopicResponses} message UserOnboardingTopicResponses message or plain object to encode
|
|
112840
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
112841
|
+
* @returns {$protobuf.Writer} Writer
|
|
112842
|
+
*/
|
|
112843
|
+
UserOnboardingTopicResponses.encode = function encode(message, writer) {
|
|
112844
|
+
if (!writer)
|
|
112845
|
+
writer = $Writer.create();
|
|
112846
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
112847
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
|
|
112848
|
+
if (message.onboardTopics != null && message.onboardTopics.length)
|
|
112849
|
+
for (var i = 0; i < message.onboardTopics.length; ++i)
|
|
112850
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.onboardTopics[i]);
|
|
112851
|
+
return writer;
|
|
112852
|
+
};
|
|
112853
|
+
|
|
112854
|
+
/**
|
|
112855
|
+
* Encodes the specified UserOnboardingTopicResponses message, length delimited. Does not implicitly {@link UserOnboardingTopicResponses.verify|verify} messages.
|
|
112856
|
+
* @function encodeDelimited
|
|
112857
|
+
* @memberof UserOnboardingTopicResponses
|
|
112858
|
+
* @static
|
|
112859
|
+
* @param {IUserOnboardingTopicResponses} message UserOnboardingTopicResponses message or plain object to encode
|
|
112860
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
112861
|
+
* @returns {$protobuf.Writer} Writer
|
|
112862
|
+
*/
|
|
112863
|
+
UserOnboardingTopicResponses.encodeDelimited = function encodeDelimited(message, writer) {
|
|
112864
|
+
return this.encode(message, writer).ldelim();
|
|
112865
|
+
};
|
|
112866
|
+
|
|
112867
|
+
/**
|
|
112868
|
+
* Decodes a UserOnboardingTopicResponses message from the specified reader or buffer.
|
|
112869
|
+
* @function decode
|
|
112870
|
+
* @memberof UserOnboardingTopicResponses
|
|
112871
|
+
* @static
|
|
112872
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
112873
|
+
* @param {number} [length] Message length if known beforehand
|
|
112874
|
+
* @returns {UserOnboardingTopicResponses} UserOnboardingTopicResponses
|
|
112875
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
112876
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
112877
|
+
*/
|
|
112878
|
+
UserOnboardingTopicResponses.decode = function decode(reader, length) {
|
|
112879
|
+
if (!(reader instanceof $Reader))
|
|
112880
|
+
reader = $Reader.create(reader);
|
|
112881
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserOnboardingTopicResponses();
|
|
112882
|
+
while (reader.pos < end) {
|
|
112883
|
+
var tag = reader.uint32();
|
|
112884
|
+
switch (tag >>> 3) {
|
|
112885
|
+
case 1:
|
|
112886
|
+
message.userId = reader.string();
|
|
112887
|
+
break;
|
|
112888
|
+
case 2:
|
|
112889
|
+
if (!(message.onboardTopics && message.onboardTopics.length))
|
|
112890
|
+
message.onboardTopics = [];
|
|
112891
|
+
message.onboardTopics.push(reader.string());
|
|
112892
|
+
break;
|
|
112893
|
+
default:
|
|
112894
|
+
reader.skipType(tag & 7);
|
|
112895
|
+
break;
|
|
112896
|
+
}
|
|
112897
|
+
}
|
|
112898
|
+
return message;
|
|
112899
|
+
};
|
|
112900
|
+
|
|
112901
|
+
/**
|
|
112902
|
+
* Decodes a UserOnboardingTopicResponses message from the specified reader or buffer, length delimited.
|
|
112903
|
+
* @function decodeDelimited
|
|
112904
|
+
* @memberof UserOnboardingTopicResponses
|
|
112905
|
+
* @static
|
|
112906
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
112907
|
+
* @returns {UserOnboardingTopicResponses} UserOnboardingTopicResponses
|
|
112908
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
112909
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
112910
|
+
*/
|
|
112911
|
+
UserOnboardingTopicResponses.decodeDelimited = function decodeDelimited(reader) {
|
|
112912
|
+
if (!(reader instanceof $Reader))
|
|
112913
|
+
reader = new $Reader(reader);
|
|
112914
|
+
return this.decode(reader, reader.uint32());
|
|
112915
|
+
};
|
|
112916
|
+
|
|
112917
|
+
/**
|
|
112918
|
+
* Verifies a UserOnboardingTopicResponses message.
|
|
112919
|
+
* @function verify
|
|
112920
|
+
* @memberof UserOnboardingTopicResponses
|
|
112921
|
+
* @static
|
|
112922
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
112923
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
112924
|
+
*/
|
|
112925
|
+
UserOnboardingTopicResponses.verify = function verify(message) {
|
|
112926
|
+
if (typeof message !== "object" || message === null)
|
|
112927
|
+
return "object expected";
|
|
112928
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
112929
|
+
if (!$util.isString(message.userId))
|
|
112930
|
+
return "userId: string expected";
|
|
112931
|
+
if (message.onboardTopics != null && message.hasOwnProperty("onboardTopics")) {
|
|
112932
|
+
if (!Array.isArray(message.onboardTopics))
|
|
112933
|
+
return "onboardTopics: array expected";
|
|
112934
|
+
for (var i = 0; i < message.onboardTopics.length; ++i)
|
|
112935
|
+
if (!$util.isString(message.onboardTopics[i]))
|
|
112936
|
+
return "onboardTopics: string[] expected";
|
|
112937
|
+
}
|
|
112938
|
+
return null;
|
|
112939
|
+
};
|
|
112940
|
+
|
|
112941
|
+
/**
|
|
112942
|
+
* Creates a UserOnboardingTopicResponses message from a plain object. Also converts values to their respective internal types.
|
|
112943
|
+
* @function fromObject
|
|
112944
|
+
* @memberof UserOnboardingTopicResponses
|
|
112945
|
+
* @static
|
|
112946
|
+
* @param {Object.<string,*>} object Plain object
|
|
112947
|
+
* @returns {UserOnboardingTopicResponses} UserOnboardingTopicResponses
|
|
112948
|
+
*/
|
|
112949
|
+
UserOnboardingTopicResponses.fromObject = function fromObject(object) {
|
|
112950
|
+
if (object instanceof $root.UserOnboardingTopicResponses)
|
|
112951
|
+
return object;
|
|
112952
|
+
var message = new $root.UserOnboardingTopicResponses();
|
|
112953
|
+
if (object.userId != null)
|
|
112954
|
+
message.userId = String(object.userId);
|
|
112955
|
+
if (object.onboardTopics) {
|
|
112956
|
+
if (!Array.isArray(object.onboardTopics))
|
|
112957
|
+
throw TypeError(".UserOnboardingTopicResponses.onboardTopics: array expected");
|
|
112958
|
+
message.onboardTopics = [];
|
|
112959
|
+
for (var i = 0; i < object.onboardTopics.length; ++i)
|
|
112960
|
+
message.onboardTopics[i] = String(object.onboardTopics[i]);
|
|
112961
|
+
}
|
|
112962
|
+
return message;
|
|
112963
|
+
};
|
|
112964
|
+
|
|
112965
|
+
/**
|
|
112966
|
+
* Creates a plain object from a UserOnboardingTopicResponses message. Also converts values to other types if specified.
|
|
112967
|
+
* @function toObject
|
|
112968
|
+
* @memberof UserOnboardingTopicResponses
|
|
112969
|
+
* @static
|
|
112970
|
+
* @param {UserOnboardingTopicResponses} message UserOnboardingTopicResponses
|
|
112971
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
112972
|
+
* @returns {Object.<string,*>} Plain object
|
|
112973
|
+
*/
|
|
112974
|
+
UserOnboardingTopicResponses.toObject = function toObject(message, options) {
|
|
112975
|
+
if (!options)
|
|
112976
|
+
options = {};
|
|
112977
|
+
var object = {};
|
|
112978
|
+
if (options.arrays || options.defaults)
|
|
112979
|
+
object.onboardTopics = [];
|
|
112980
|
+
if (options.defaults)
|
|
112981
|
+
object.userId = "";
|
|
112982
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
112983
|
+
object.userId = message.userId;
|
|
112984
|
+
if (message.onboardTopics && message.onboardTopics.length) {
|
|
112985
|
+
object.onboardTopics = [];
|
|
112986
|
+
for (var j = 0; j < message.onboardTopics.length; ++j)
|
|
112987
|
+
object.onboardTopics[j] = message.onboardTopics[j];
|
|
112988
|
+
}
|
|
112989
|
+
return object;
|
|
112990
|
+
};
|
|
112991
|
+
|
|
112992
|
+
/**
|
|
112993
|
+
* Converts this UserOnboardingTopicResponses to JSON.
|
|
112994
|
+
* @function toJSON
|
|
112995
|
+
* @memberof UserOnboardingTopicResponses
|
|
112996
|
+
* @instance
|
|
112997
|
+
* @returns {Object.<string,*>} JSON object
|
|
112998
|
+
*/
|
|
112999
|
+
UserOnboardingTopicResponses.prototype.toJSON = function toJSON() {
|
|
113000
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
113001
|
+
};
|
|
113002
|
+
|
|
113003
|
+
return UserOnboardingTopicResponses;
|
|
113004
|
+
})();
|
|
113005
|
+
|
|
112693
113006
|
$root.WakeupPlaylistCreated = (function() {
|
|
112694
113007
|
|
|
112695
113008
|
/**
|
package/package.json
CHANGED