@headspace/protos-events 1.624.0 → 1.626.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 +121 -0
- package/lib/index.js +324 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -54439,6 +54439,15 @@ export interface IGingerDependentUpgraded {
|
|
|
54439
54439
|
|
|
54440
54440
|
/** GingerDependentUpgraded dependentType */
|
|
54441
54441
|
dependentType?: (b2b.DependentType|null);
|
|
54442
|
+
|
|
54443
|
+
/** GingerDependentUpgraded firstEnrolledAt */
|
|
54444
|
+
firstEnrolledAt?: (number|Long|null);
|
|
54445
|
+
|
|
54446
|
+
/** GingerDependentUpgraded workEmail */
|
|
54447
|
+
workEmail?: (string|null);
|
|
54448
|
+
|
|
54449
|
+
/** GingerDependentUpgraded workId */
|
|
54450
|
+
workId?: (string|null);
|
|
54442
54451
|
}
|
|
54443
54452
|
|
|
54444
54453
|
/**
|
|
@@ -54493,6 +54502,15 @@ export class GingerDependentUpgraded implements IGingerDependentUpgraded {
|
|
|
54493
54502
|
/** GingerDependentUpgraded dependentType. */
|
|
54494
54503
|
public dependentType: b2b.DependentType;
|
|
54495
54504
|
|
|
54505
|
+
/** GingerDependentUpgraded firstEnrolledAt. */
|
|
54506
|
+
public firstEnrolledAt: (number|Long);
|
|
54507
|
+
|
|
54508
|
+
/** GingerDependentUpgraded workEmail. */
|
|
54509
|
+
public workEmail: string;
|
|
54510
|
+
|
|
54511
|
+
/** GingerDependentUpgraded workId. */
|
|
54512
|
+
public workId: string;
|
|
54513
|
+
|
|
54496
54514
|
/**
|
|
54497
54515
|
* Creates a new GingerDependentUpgraded instance using the specified properties.
|
|
54498
54516
|
* @param [properties] Properties to set
|
|
@@ -57609,6 +57627,109 @@ export class InteractiveJournalingMessageCreated implements IInteractiveJournali
|
|
|
57609
57627
|
public toJSON(): { [k: string]: any };
|
|
57610
57628
|
}
|
|
57611
57629
|
|
|
57630
|
+
/** InteractiveJournalingReward enum. */
|
|
57631
|
+
export enum InteractiveJournalingReward {
|
|
57632
|
+
INTERACTIVE_JOURNALING_REWARD_UNKNOWN = 0,
|
|
57633
|
+
INTERACTIVE_JOURNALING_REWARD_NEGATIVE = 1,
|
|
57634
|
+
INTERACTIVE_JOURNALING_REWARD_POSITIVE = 2
|
|
57635
|
+
}
|
|
57636
|
+
|
|
57637
|
+
/** Properties of an InteractiveJournalingRewardCreated. */
|
|
57638
|
+
export interface IInteractiveJournalingRewardCreated {
|
|
57639
|
+
|
|
57640
|
+
/** InteractiveJournalingRewardCreated messageId */
|
|
57641
|
+
messageId?: (string|null);
|
|
57642
|
+
|
|
57643
|
+
/** InteractiveJournalingRewardCreated feedback */
|
|
57644
|
+
feedback?: (InteractiveJournalingReward|null);
|
|
57645
|
+
}
|
|
57646
|
+
|
|
57647
|
+
/** Represents an InteractiveJournalingRewardCreated. */
|
|
57648
|
+
export class InteractiveJournalingRewardCreated implements IInteractiveJournalingRewardCreated {
|
|
57649
|
+
|
|
57650
|
+
/**
|
|
57651
|
+
* Constructs a new InteractiveJournalingRewardCreated.
|
|
57652
|
+
* @param [properties] Properties to set
|
|
57653
|
+
*/
|
|
57654
|
+
constructor(properties?: IInteractiveJournalingRewardCreated);
|
|
57655
|
+
|
|
57656
|
+
/** InteractiveJournalingRewardCreated messageId. */
|
|
57657
|
+
public messageId: string;
|
|
57658
|
+
|
|
57659
|
+
/** InteractiveJournalingRewardCreated feedback. */
|
|
57660
|
+
public feedback: InteractiveJournalingReward;
|
|
57661
|
+
|
|
57662
|
+
/**
|
|
57663
|
+
* Creates a new InteractiveJournalingRewardCreated instance using the specified properties.
|
|
57664
|
+
* @param [properties] Properties to set
|
|
57665
|
+
* @returns InteractiveJournalingRewardCreated instance
|
|
57666
|
+
*/
|
|
57667
|
+
public static create(properties?: IInteractiveJournalingRewardCreated): InteractiveJournalingRewardCreated;
|
|
57668
|
+
|
|
57669
|
+
/**
|
|
57670
|
+
* Encodes the specified InteractiveJournalingRewardCreated message. Does not implicitly {@link InteractiveJournalingRewardCreated.verify|verify} messages.
|
|
57671
|
+
* @param message InteractiveJournalingRewardCreated message or plain object to encode
|
|
57672
|
+
* @param [writer] Writer to encode to
|
|
57673
|
+
* @returns Writer
|
|
57674
|
+
*/
|
|
57675
|
+
public static encode(message: IInteractiveJournalingRewardCreated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
57676
|
+
|
|
57677
|
+
/**
|
|
57678
|
+
* Encodes the specified InteractiveJournalingRewardCreated message, length delimited. Does not implicitly {@link InteractiveJournalingRewardCreated.verify|verify} messages.
|
|
57679
|
+
* @param message InteractiveJournalingRewardCreated message or plain object to encode
|
|
57680
|
+
* @param [writer] Writer to encode to
|
|
57681
|
+
* @returns Writer
|
|
57682
|
+
*/
|
|
57683
|
+
public static encodeDelimited(message: IInteractiveJournalingRewardCreated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
57684
|
+
|
|
57685
|
+
/**
|
|
57686
|
+
* Decodes an InteractiveJournalingRewardCreated message from the specified reader or buffer.
|
|
57687
|
+
* @param reader Reader or buffer to decode from
|
|
57688
|
+
* @param [length] Message length if known beforehand
|
|
57689
|
+
* @returns InteractiveJournalingRewardCreated
|
|
57690
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
57691
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
57692
|
+
*/
|
|
57693
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): InteractiveJournalingRewardCreated;
|
|
57694
|
+
|
|
57695
|
+
/**
|
|
57696
|
+
* Decodes an InteractiveJournalingRewardCreated message from the specified reader or buffer, length delimited.
|
|
57697
|
+
* @param reader Reader or buffer to decode from
|
|
57698
|
+
* @returns InteractiveJournalingRewardCreated
|
|
57699
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
57700
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
57701
|
+
*/
|
|
57702
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): InteractiveJournalingRewardCreated;
|
|
57703
|
+
|
|
57704
|
+
/**
|
|
57705
|
+
* Verifies an InteractiveJournalingRewardCreated message.
|
|
57706
|
+
* @param message Plain object to verify
|
|
57707
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
57708
|
+
*/
|
|
57709
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
57710
|
+
|
|
57711
|
+
/**
|
|
57712
|
+
* Creates an InteractiveJournalingRewardCreated message from a plain object. Also converts values to their respective internal types.
|
|
57713
|
+
* @param object Plain object
|
|
57714
|
+
* @returns InteractiveJournalingRewardCreated
|
|
57715
|
+
*/
|
|
57716
|
+
public static fromObject(object: { [k: string]: any }): InteractiveJournalingRewardCreated;
|
|
57717
|
+
|
|
57718
|
+
/**
|
|
57719
|
+
* Creates a plain object from an InteractiveJournalingRewardCreated message. Also converts values to other types if specified.
|
|
57720
|
+
* @param message InteractiveJournalingRewardCreated
|
|
57721
|
+
* @param [options] Conversion options
|
|
57722
|
+
* @returns Plain object
|
|
57723
|
+
*/
|
|
57724
|
+
public static toObject(message: InteractiveJournalingRewardCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
57725
|
+
|
|
57726
|
+
/**
|
|
57727
|
+
* Converts this InteractiveJournalingRewardCreated to JSON.
|
|
57728
|
+
* @returns JSON object
|
|
57729
|
+
*/
|
|
57730
|
+
public toJSON(): { [k: string]: any };
|
|
57731
|
+
}
|
|
57732
|
+
|
|
57612
57733
|
/** Properties of a LayoutCreated. */
|
|
57613
57734
|
export interface ILayoutCreated {
|
|
57614
57735
|
|
package/lib/index.js
CHANGED
|
@@ -151804,6 +151804,9 @@ $root.GingerDependentUpgraded = (function() {
|
|
|
151804
151804
|
* @property {number|null} [b2bRootOrgId] GingerDependentUpgraded b2bRootOrgId
|
|
151805
151805
|
* @property {number|Long|null} [gracePeriodEndDate] GingerDependentUpgraded gracePeriodEndDate
|
|
151806
151806
|
* @property {b2b.DependentType|null} [dependentType] GingerDependentUpgraded dependentType
|
|
151807
|
+
* @property {number|Long|null} [firstEnrolledAt] GingerDependentUpgraded firstEnrolledAt
|
|
151808
|
+
* @property {string|null} [workEmail] GingerDependentUpgraded workEmail
|
|
151809
|
+
* @property {string|null} [workId] GingerDependentUpgraded workId
|
|
151807
151810
|
*/
|
|
151808
151811
|
|
|
151809
151812
|
/**
|
|
@@ -151927,6 +151930,30 @@ $root.GingerDependentUpgraded = (function() {
|
|
|
151927
151930
|
*/
|
|
151928
151931
|
GingerDependentUpgraded.prototype.dependentType = 0;
|
|
151929
151932
|
|
|
151933
|
+
/**
|
|
151934
|
+
* GingerDependentUpgraded firstEnrolledAt.
|
|
151935
|
+
* @member {number|Long} firstEnrolledAt
|
|
151936
|
+
* @memberof GingerDependentUpgraded
|
|
151937
|
+
* @instance
|
|
151938
|
+
*/
|
|
151939
|
+
GingerDependentUpgraded.prototype.firstEnrolledAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
151940
|
+
|
|
151941
|
+
/**
|
|
151942
|
+
* GingerDependentUpgraded workEmail.
|
|
151943
|
+
* @member {string} workEmail
|
|
151944
|
+
* @memberof GingerDependentUpgraded
|
|
151945
|
+
* @instance
|
|
151946
|
+
*/
|
|
151947
|
+
GingerDependentUpgraded.prototype.workEmail = "";
|
|
151948
|
+
|
|
151949
|
+
/**
|
|
151950
|
+
* GingerDependentUpgraded workId.
|
|
151951
|
+
* @member {string} workId
|
|
151952
|
+
* @memberof GingerDependentUpgraded
|
|
151953
|
+
* @instance
|
|
151954
|
+
*/
|
|
151955
|
+
GingerDependentUpgraded.prototype.workId = "";
|
|
151956
|
+
|
|
151930
151957
|
/**
|
|
151931
151958
|
* Creates a new GingerDependentUpgraded instance using the specified properties.
|
|
151932
151959
|
* @function create
|
|
@@ -151977,6 +152004,12 @@ $root.GingerDependentUpgraded = (function() {
|
|
|
151977
152004
|
writer.uint32(/* id 12, wireType 0 =*/96).uint64(message.gracePeriodEndDate);
|
|
151978
152005
|
if (message.dependentType != null && message.hasOwnProperty("dependentType"))
|
|
151979
152006
|
writer.uint32(/* id 13, wireType 0 =*/104).int32(message.dependentType);
|
|
152007
|
+
if (message.firstEnrolledAt != null && message.hasOwnProperty("firstEnrolledAt"))
|
|
152008
|
+
writer.uint32(/* id 14, wireType 0 =*/112).uint64(message.firstEnrolledAt);
|
|
152009
|
+
if (message.workEmail != null && message.hasOwnProperty("workEmail"))
|
|
152010
|
+
writer.uint32(/* id 15, wireType 2 =*/122).string(message.workEmail);
|
|
152011
|
+
if (message.workId != null && message.hasOwnProperty("workId"))
|
|
152012
|
+
writer.uint32(/* id 16, wireType 2 =*/130).string(message.workId);
|
|
151980
152013
|
return writer;
|
|
151981
152014
|
};
|
|
151982
152015
|
|
|
@@ -152050,6 +152083,15 @@ $root.GingerDependentUpgraded = (function() {
|
|
|
152050
152083
|
case 13:
|
|
152051
152084
|
message.dependentType = reader.int32();
|
|
152052
152085
|
break;
|
|
152086
|
+
case 14:
|
|
152087
|
+
message.firstEnrolledAt = reader.uint64();
|
|
152088
|
+
break;
|
|
152089
|
+
case 15:
|
|
152090
|
+
message.workEmail = reader.string();
|
|
152091
|
+
break;
|
|
152092
|
+
case 16:
|
|
152093
|
+
message.workId = reader.string();
|
|
152094
|
+
break;
|
|
152053
152095
|
default:
|
|
152054
152096
|
reader.skipType(tag & 7);
|
|
152055
152097
|
break;
|
|
@@ -152148,6 +152190,15 @@ $root.GingerDependentUpgraded = (function() {
|
|
|
152148
152190
|
case 2:
|
|
152149
152191
|
break;
|
|
152150
152192
|
}
|
|
152193
|
+
if (message.firstEnrolledAt != null && message.hasOwnProperty("firstEnrolledAt"))
|
|
152194
|
+
if (!$util.isInteger(message.firstEnrolledAt) && !(message.firstEnrolledAt && $util.isInteger(message.firstEnrolledAt.low) && $util.isInteger(message.firstEnrolledAt.high)))
|
|
152195
|
+
return "firstEnrolledAt: integer|Long expected";
|
|
152196
|
+
if (message.workEmail != null && message.hasOwnProperty("workEmail"))
|
|
152197
|
+
if (!$util.isString(message.workEmail))
|
|
152198
|
+
return "workEmail: string expected";
|
|
152199
|
+
if (message.workId != null && message.hasOwnProperty("workId"))
|
|
152200
|
+
if (!$util.isString(message.workId))
|
|
152201
|
+
return "workId: string expected";
|
|
152151
152202
|
return null;
|
|
152152
152203
|
};
|
|
152153
152204
|
|
|
@@ -152256,6 +152307,19 @@ $root.GingerDependentUpgraded = (function() {
|
|
|
152256
152307
|
message.dependentType = 2;
|
|
152257
152308
|
break;
|
|
152258
152309
|
}
|
|
152310
|
+
if (object.firstEnrolledAt != null)
|
|
152311
|
+
if ($util.Long)
|
|
152312
|
+
(message.firstEnrolledAt = $util.Long.fromValue(object.firstEnrolledAt)).unsigned = true;
|
|
152313
|
+
else if (typeof object.firstEnrolledAt === "string")
|
|
152314
|
+
message.firstEnrolledAt = parseInt(object.firstEnrolledAt, 10);
|
|
152315
|
+
else if (typeof object.firstEnrolledAt === "number")
|
|
152316
|
+
message.firstEnrolledAt = object.firstEnrolledAt;
|
|
152317
|
+
else if (typeof object.firstEnrolledAt === "object")
|
|
152318
|
+
message.firstEnrolledAt = new $util.LongBits(object.firstEnrolledAt.low >>> 0, object.firstEnrolledAt.high >>> 0).toNumber(true);
|
|
152319
|
+
if (object.workEmail != null)
|
|
152320
|
+
message.workEmail = String(object.workEmail);
|
|
152321
|
+
if (object.workId != null)
|
|
152322
|
+
message.workId = String(object.workId);
|
|
152259
152323
|
return message;
|
|
152260
152324
|
};
|
|
152261
152325
|
|
|
@@ -152290,6 +152354,13 @@ $root.GingerDependentUpgraded = (function() {
|
|
|
152290
152354
|
} else
|
|
152291
152355
|
object.gracePeriodEndDate = options.longs === String ? "0" : 0;
|
|
152292
152356
|
object.dependentType = options.enums === String ? "DEPENDENT_TYPE_UNKNOWN" : 0;
|
|
152357
|
+
if ($util.Long) {
|
|
152358
|
+
var long = new $util.Long(0, 0, true);
|
|
152359
|
+
object.firstEnrolledAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
152360
|
+
} else
|
|
152361
|
+
object.firstEnrolledAt = options.longs === String ? "0" : 0;
|
|
152362
|
+
object.workEmail = "";
|
|
152363
|
+
object.workId = "";
|
|
152293
152364
|
}
|
|
152294
152365
|
if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
|
|
152295
152366
|
object.headspaceHealthOrgId = message.headspaceHealthOrgId;
|
|
@@ -152320,6 +152391,15 @@ $root.GingerDependentUpgraded = (function() {
|
|
|
152320
152391
|
object.gracePeriodEndDate = options.longs === String ? $util.Long.prototype.toString.call(message.gracePeriodEndDate) : options.longs === Number ? new $util.LongBits(message.gracePeriodEndDate.low >>> 0, message.gracePeriodEndDate.high >>> 0).toNumber(true) : message.gracePeriodEndDate;
|
|
152321
152392
|
if (message.dependentType != null && message.hasOwnProperty("dependentType"))
|
|
152322
152393
|
object.dependentType = options.enums === String ? $root.b2b.DependentType[message.dependentType] : message.dependentType;
|
|
152394
|
+
if (message.firstEnrolledAt != null && message.hasOwnProperty("firstEnrolledAt"))
|
|
152395
|
+
if (typeof message.firstEnrolledAt === "number")
|
|
152396
|
+
object.firstEnrolledAt = options.longs === String ? String(message.firstEnrolledAt) : message.firstEnrolledAt;
|
|
152397
|
+
else
|
|
152398
|
+
object.firstEnrolledAt = options.longs === String ? $util.Long.prototype.toString.call(message.firstEnrolledAt) : options.longs === Number ? new $util.LongBits(message.firstEnrolledAt.low >>> 0, message.firstEnrolledAt.high >>> 0).toNumber(true) : message.firstEnrolledAt;
|
|
152399
|
+
if (message.workEmail != null && message.hasOwnProperty("workEmail"))
|
|
152400
|
+
object.workEmail = message.workEmail;
|
|
152401
|
+
if (message.workId != null && message.hasOwnProperty("workId"))
|
|
152402
|
+
object.workId = message.workId;
|
|
152323
152403
|
return object;
|
|
152324
152404
|
};
|
|
152325
152405
|
|
|
@@ -161211,6 +161291,250 @@ $root.InteractiveJournalingMessageCreated = (function() {
|
|
|
161211
161291
|
return InteractiveJournalingMessageCreated;
|
|
161212
161292
|
})();
|
|
161213
161293
|
|
|
161294
|
+
/**
|
|
161295
|
+
* InteractiveJournalingReward enum.
|
|
161296
|
+
* @name InteractiveJournalingReward
|
|
161297
|
+
* @enum {string}
|
|
161298
|
+
* @property {number} INTERACTIVE_JOURNALING_REWARD_UNKNOWN=0 INTERACTIVE_JOURNALING_REWARD_UNKNOWN value
|
|
161299
|
+
* @property {number} INTERACTIVE_JOURNALING_REWARD_NEGATIVE=1 INTERACTIVE_JOURNALING_REWARD_NEGATIVE value
|
|
161300
|
+
* @property {number} INTERACTIVE_JOURNALING_REWARD_POSITIVE=2 INTERACTIVE_JOURNALING_REWARD_POSITIVE value
|
|
161301
|
+
*/
|
|
161302
|
+
$root.InteractiveJournalingReward = (function() {
|
|
161303
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
161304
|
+
values[valuesById[0] = "INTERACTIVE_JOURNALING_REWARD_UNKNOWN"] = 0;
|
|
161305
|
+
values[valuesById[1] = "INTERACTIVE_JOURNALING_REWARD_NEGATIVE"] = 1;
|
|
161306
|
+
values[valuesById[2] = "INTERACTIVE_JOURNALING_REWARD_POSITIVE"] = 2;
|
|
161307
|
+
return values;
|
|
161308
|
+
})();
|
|
161309
|
+
|
|
161310
|
+
$root.InteractiveJournalingRewardCreated = (function() {
|
|
161311
|
+
|
|
161312
|
+
/**
|
|
161313
|
+
* Properties of an InteractiveJournalingRewardCreated.
|
|
161314
|
+
* @name IInteractiveJournalingRewardCreated
|
|
161315
|
+
* @interface IInteractiveJournalingRewardCreated
|
|
161316
|
+
* @property {string|null} [messageId] InteractiveJournalingRewardCreated messageId
|
|
161317
|
+
* @property {InteractiveJournalingReward|null} [feedback] InteractiveJournalingRewardCreated feedback
|
|
161318
|
+
*/
|
|
161319
|
+
|
|
161320
|
+
/**
|
|
161321
|
+
* Constructs a new InteractiveJournalingRewardCreated.
|
|
161322
|
+
* @name InteractiveJournalingRewardCreated
|
|
161323
|
+
* @classdesc Represents an InteractiveJournalingRewardCreated.
|
|
161324
|
+
* @implements IInteractiveJournalingRewardCreated
|
|
161325
|
+
* @constructor
|
|
161326
|
+
* @param {IInteractiveJournalingRewardCreated=} [properties] Properties to set
|
|
161327
|
+
*/
|
|
161328
|
+
function InteractiveJournalingRewardCreated(properties) {
|
|
161329
|
+
if (properties)
|
|
161330
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
161331
|
+
if (properties[keys[i]] != null)
|
|
161332
|
+
this[keys[i]] = properties[keys[i]];
|
|
161333
|
+
}
|
|
161334
|
+
|
|
161335
|
+
/**
|
|
161336
|
+
* InteractiveJournalingRewardCreated messageId.
|
|
161337
|
+
* @member {string} messageId
|
|
161338
|
+
* @memberof InteractiveJournalingRewardCreated
|
|
161339
|
+
* @instance
|
|
161340
|
+
*/
|
|
161341
|
+
InteractiveJournalingRewardCreated.prototype.messageId = "";
|
|
161342
|
+
|
|
161343
|
+
/**
|
|
161344
|
+
* InteractiveJournalingRewardCreated feedback.
|
|
161345
|
+
* @member {InteractiveJournalingReward} feedback
|
|
161346
|
+
* @memberof InteractiveJournalingRewardCreated
|
|
161347
|
+
* @instance
|
|
161348
|
+
*/
|
|
161349
|
+
InteractiveJournalingRewardCreated.prototype.feedback = 0;
|
|
161350
|
+
|
|
161351
|
+
/**
|
|
161352
|
+
* Creates a new InteractiveJournalingRewardCreated instance using the specified properties.
|
|
161353
|
+
* @function create
|
|
161354
|
+
* @memberof InteractiveJournalingRewardCreated
|
|
161355
|
+
* @static
|
|
161356
|
+
* @param {IInteractiveJournalingRewardCreated=} [properties] Properties to set
|
|
161357
|
+
* @returns {InteractiveJournalingRewardCreated} InteractiveJournalingRewardCreated instance
|
|
161358
|
+
*/
|
|
161359
|
+
InteractiveJournalingRewardCreated.create = function create(properties) {
|
|
161360
|
+
return new InteractiveJournalingRewardCreated(properties);
|
|
161361
|
+
};
|
|
161362
|
+
|
|
161363
|
+
/**
|
|
161364
|
+
* Encodes the specified InteractiveJournalingRewardCreated message. Does not implicitly {@link InteractiveJournalingRewardCreated.verify|verify} messages.
|
|
161365
|
+
* @function encode
|
|
161366
|
+
* @memberof InteractiveJournalingRewardCreated
|
|
161367
|
+
* @static
|
|
161368
|
+
* @param {IInteractiveJournalingRewardCreated} message InteractiveJournalingRewardCreated message or plain object to encode
|
|
161369
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
161370
|
+
* @returns {$protobuf.Writer} Writer
|
|
161371
|
+
*/
|
|
161372
|
+
InteractiveJournalingRewardCreated.encode = function encode(message, writer) {
|
|
161373
|
+
if (!writer)
|
|
161374
|
+
writer = $Writer.create();
|
|
161375
|
+
if (message.messageId != null && message.hasOwnProperty("messageId"))
|
|
161376
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.messageId);
|
|
161377
|
+
if (message.feedback != null && message.hasOwnProperty("feedback"))
|
|
161378
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.feedback);
|
|
161379
|
+
return writer;
|
|
161380
|
+
};
|
|
161381
|
+
|
|
161382
|
+
/**
|
|
161383
|
+
* Encodes the specified InteractiveJournalingRewardCreated message, length delimited. Does not implicitly {@link InteractiveJournalingRewardCreated.verify|verify} messages.
|
|
161384
|
+
* @function encodeDelimited
|
|
161385
|
+
* @memberof InteractiveJournalingRewardCreated
|
|
161386
|
+
* @static
|
|
161387
|
+
* @param {IInteractiveJournalingRewardCreated} message InteractiveJournalingRewardCreated message or plain object to encode
|
|
161388
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
161389
|
+
* @returns {$protobuf.Writer} Writer
|
|
161390
|
+
*/
|
|
161391
|
+
InteractiveJournalingRewardCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
161392
|
+
return this.encode(message, writer).ldelim();
|
|
161393
|
+
};
|
|
161394
|
+
|
|
161395
|
+
/**
|
|
161396
|
+
* Decodes an InteractiveJournalingRewardCreated message from the specified reader or buffer.
|
|
161397
|
+
* @function decode
|
|
161398
|
+
* @memberof InteractiveJournalingRewardCreated
|
|
161399
|
+
* @static
|
|
161400
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
161401
|
+
* @param {number} [length] Message length if known beforehand
|
|
161402
|
+
* @returns {InteractiveJournalingRewardCreated} InteractiveJournalingRewardCreated
|
|
161403
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
161404
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
161405
|
+
*/
|
|
161406
|
+
InteractiveJournalingRewardCreated.decode = function decode(reader, length) {
|
|
161407
|
+
if (!(reader instanceof $Reader))
|
|
161408
|
+
reader = $Reader.create(reader);
|
|
161409
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.InteractiveJournalingRewardCreated();
|
|
161410
|
+
while (reader.pos < end) {
|
|
161411
|
+
var tag = reader.uint32();
|
|
161412
|
+
switch (tag >>> 3) {
|
|
161413
|
+
case 1:
|
|
161414
|
+
message.messageId = reader.string();
|
|
161415
|
+
break;
|
|
161416
|
+
case 2:
|
|
161417
|
+
message.feedback = reader.int32();
|
|
161418
|
+
break;
|
|
161419
|
+
default:
|
|
161420
|
+
reader.skipType(tag & 7);
|
|
161421
|
+
break;
|
|
161422
|
+
}
|
|
161423
|
+
}
|
|
161424
|
+
return message;
|
|
161425
|
+
};
|
|
161426
|
+
|
|
161427
|
+
/**
|
|
161428
|
+
* Decodes an InteractiveJournalingRewardCreated message from the specified reader or buffer, length delimited.
|
|
161429
|
+
* @function decodeDelimited
|
|
161430
|
+
* @memberof InteractiveJournalingRewardCreated
|
|
161431
|
+
* @static
|
|
161432
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
161433
|
+
* @returns {InteractiveJournalingRewardCreated} InteractiveJournalingRewardCreated
|
|
161434
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
161435
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
161436
|
+
*/
|
|
161437
|
+
InteractiveJournalingRewardCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
161438
|
+
if (!(reader instanceof $Reader))
|
|
161439
|
+
reader = new $Reader(reader);
|
|
161440
|
+
return this.decode(reader, reader.uint32());
|
|
161441
|
+
};
|
|
161442
|
+
|
|
161443
|
+
/**
|
|
161444
|
+
* Verifies an InteractiveJournalingRewardCreated message.
|
|
161445
|
+
* @function verify
|
|
161446
|
+
* @memberof InteractiveJournalingRewardCreated
|
|
161447
|
+
* @static
|
|
161448
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
161449
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
161450
|
+
*/
|
|
161451
|
+
InteractiveJournalingRewardCreated.verify = function verify(message) {
|
|
161452
|
+
if (typeof message !== "object" || message === null)
|
|
161453
|
+
return "object expected";
|
|
161454
|
+
if (message.messageId != null && message.hasOwnProperty("messageId"))
|
|
161455
|
+
if (!$util.isString(message.messageId))
|
|
161456
|
+
return "messageId: string expected";
|
|
161457
|
+
if (message.feedback != null && message.hasOwnProperty("feedback"))
|
|
161458
|
+
switch (message.feedback) {
|
|
161459
|
+
default:
|
|
161460
|
+
return "feedback: enum value expected";
|
|
161461
|
+
case 0:
|
|
161462
|
+
case 1:
|
|
161463
|
+
case 2:
|
|
161464
|
+
break;
|
|
161465
|
+
}
|
|
161466
|
+
return null;
|
|
161467
|
+
};
|
|
161468
|
+
|
|
161469
|
+
/**
|
|
161470
|
+
* Creates an InteractiveJournalingRewardCreated message from a plain object. Also converts values to their respective internal types.
|
|
161471
|
+
* @function fromObject
|
|
161472
|
+
* @memberof InteractiveJournalingRewardCreated
|
|
161473
|
+
* @static
|
|
161474
|
+
* @param {Object.<string,*>} object Plain object
|
|
161475
|
+
* @returns {InteractiveJournalingRewardCreated} InteractiveJournalingRewardCreated
|
|
161476
|
+
*/
|
|
161477
|
+
InteractiveJournalingRewardCreated.fromObject = function fromObject(object) {
|
|
161478
|
+
if (object instanceof $root.InteractiveJournalingRewardCreated)
|
|
161479
|
+
return object;
|
|
161480
|
+
var message = new $root.InteractiveJournalingRewardCreated();
|
|
161481
|
+
if (object.messageId != null)
|
|
161482
|
+
message.messageId = String(object.messageId);
|
|
161483
|
+
switch (object.feedback) {
|
|
161484
|
+
case "INTERACTIVE_JOURNALING_REWARD_UNKNOWN":
|
|
161485
|
+
case 0:
|
|
161486
|
+
message.feedback = 0;
|
|
161487
|
+
break;
|
|
161488
|
+
case "INTERACTIVE_JOURNALING_REWARD_NEGATIVE":
|
|
161489
|
+
case 1:
|
|
161490
|
+
message.feedback = 1;
|
|
161491
|
+
break;
|
|
161492
|
+
case "INTERACTIVE_JOURNALING_REWARD_POSITIVE":
|
|
161493
|
+
case 2:
|
|
161494
|
+
message.feedback = 2;
|
|
161495
|
+
break;
|
|
161496
|
+
}
|
|
161497
|
+
return message;
|
|
161498
|
+
};
|
|
161499
|
+
|
|
161500
|
+
/**
|
|
161501
|
+
* Creates a plain object from an InteractiveJournalingRewardCreated message. Also converts values to other types if specified.
|
|
161502
|
+
* @function toObject
|
|
161503
|
+
* @memberof InteractiveJournalingRewardCreated
|
|
161504
|
+
* @static
|
|
161505
|
+
* @param {InteractiveJournalingRewardCreated} message InteractiveJournalingRewardCreated
|
|
161506
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
161507
|
+
* @returns {Object.<string,*>} Plain object
|
|
161508
|
+
*/
|
|
161509
|
+
InteractiveJournalingRewardCreated.toObject = function toObject(message, options) {
|
|
161510
|
+
if (!options)
|
|
161511
|
+
options = {};
|
|
161512
|
+
var object = {};
|
|
161513
|
+
if (options.defaults) {
|
|
161514
|
+
object.messageId = "";
|
|
161515
|
+
object.feedback = options.enums === String ? "INTERACTIVE_JOURNALING_REWARD_UNKNOWN" : 0;
|
|
161516
|
+
}
|
|
161517
|
+
if (message.messageId != null && message.hasOwnProperty("messageId"))
|
|
161518
|
+
object.messageId = message.messageId;
|
|
161519
|
+
if (message.feedback != null && message.hasOwnProperty("feedback"))
|
|
161520
|
+
object.feedback = options.enums === String ? $root.InteractiveJournalingReward[message.feedback] : message.feedback;
|
|
161521
|
+
return object;
|
|
161522
|
+
};
|
|
161523
|
+
|
|
161524
|
+
/**
|
|
161525
|
+
* Converts this InteractiveJournalingRewardCreated to JSON.
|
|
161526
|
+
* @function toJSON
|
|
161527
|
+
* @memberof InteractiveJournalingRewardCreated
|
|
161528
|
+
* @instance
|
|
161529
|
+
* @returns {Object.<string,*>} JSON object
|
|
161530
|
+
*/
|
|
161531
|
+
InteractiveJournalingRewardCreated.prototype.toJSON = function toJSON() {
|
|
161532
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
161533
|
+
};
|
|
161534
|
+
|
|
161535
|
+
return InteractiveJournalingRewardCreated;
|
|
161536
|
+
})();
|
|
161537
|
+
|
|
161214
161538
|
$root.LayoutCreated = (function() {
|
|
161215
161539
|
|
|
161216
161540
|
/**
|
package/package.json
CHANGED