@headspace/protos-events 1.261.0 → 1.263.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 -12
- package/lib/index.js +364 -48
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -9291,6 +9291,13 @@ export namespace b2b {
|
|
|
9291
9291
|
ORGPLAN_B2B = 1,
|
|
9292
9292
|
ORGPLAN_B2B_FAMILY_PLAN = 2
|
|
9293
9293
|
}
|
|
9294
|
+
|
|
9295
|
+
/** SSOConnectionAction enum. */
|
|
9296
|
+
enum SSOConnectionAction {
|
|
9297
|
+
CONNECTION_NO_UPDATE = 0,
|
|
9298
|
+
CONNECTION_SET = 1,
|
|
9299
|
+
CONNECTION_UNSET = 2
|
|
9300
|
+
}
|
|
9294
9301
|
}
|
|
9295
9302
|
|
|
9296
9303
|
/** Namespace community. */
|
|
@@ -27025,8 +27032,8 @@ export interface IEnterpriseUserEnrollmentCreated {
|
|
|
27025
27032
|
/** EnterpriseUserEnrollmentCreated isTelehealthEnabled */
|
|
27026
27033
|
isTelehealthEnabled?: (boolean|null);
|
|
27027
27034
|
|
|
27028
|
-
/** EnterpriseUserEnrollmentCreated
|
|
27029
|
-
|
|
27035
|
+
/** EnterpriseUserEnrollmentCreated ssoConnectionAction */
|
|
27036
|
+
ssoConnectionAction?: (b2b.SSOConnectionAction|null);
|
|
27030
27037
|
}
|
|
27031
27038
|
|
|
27032
27039
|
/** Represents an EnterpriseUserEnrollmentCreated. */
|
|
@@ -27092,8 +27099,8 @@ export class EnterpriseUserEnrollmentCreated implements IEnterpriseUserEnrollmen
|
|
|
27092
27099
|
/** EnterpriseUserEnrollmentCreated isTelehealthEnabled. */
|
|
27093
27100
|
public isTelehealthEnabled: boolean;
|
|
27094
27101
|
|
|
27095
|
-
/** EnterpriseUserEnrollmentCreated
|
|
27096
|
-
public
|
|
27102
|
+
/** EnterpriseUserEnrollmentCreated ssoConnectionAction. */
|
|
27103
|
+
public ssoConnectionAction: b2b.SSOConnectionAction;
|
|
27097
27104
|
|
|
27098
27105
|
/**
|
|
27099
27106
|
* Creates a new EnterpriseUserEnrollmentCreated instance using the specified properties.
|
|
@@ -27226,8 +27233,8 @@ export interface IEnterpriseUserEnrollmentRemoved {
|
|
|
27226
27233
|
/** EnterpriseUserEnrollmentRemoved isTelehealthEnabled */
|
|
27227
27234
|
isTelehealthEnabled?: (boolean|null);
|
|
27228
27235
|
|
|
27229
|
-
/** EnterpriseUserEnrollmentRemoved
|
|
27230
|
-
|
|
27236
|
+
/** EnterpriseUserEnrollmentRemoved ssoConnectionAction */
|
|
27237
|
+
ssoConnectionAction?: (b2b.SSOConnectionAction|null);
|
|
27231
27238
|
}
|
|
27232
27239
|
|
|
27233
27240
|
/** Represents an EnterpriseUserEnrollmentRemoved. */
|
|
@@ -27296,8 +27303,8 @@ export class EnterpriseUserEnrollmentRemoved implements IEnterpriseUserEnrollmen
|
|
|
27296
27303
|
/** EnterpriseUserEnrollmentRemoved isTelehealthEnabled. */
|
|
27297
27304
|
public isTelehealthEnabled: boolean;
|
|
27298
27305
|
|
|
27299
|
-
/** EnterpriseUserEnrollmentRemoved
|
|
27300
|
-
public
|
|
27306
|
+
/** EnterpriseUserEnrollmentRemoved ssoConnectionAction. */
|
|
27307
|
+
public ssoConnectionAction: b2b.SSOConnectionAction;
|
|
27301
27308
|
|
|
27302
27309
|
/**
|
|
27303
27310
|
* Creates a new EnterpriseUserEnrollmentRemoved instance using the specified properties.
|
|
@@ -27427,8 +27434,8 @@ export interface IEnterpriseUserEnrollmentAmended {
|
|
|
27427
27434
|
/** EnterpriseUserEnrollmentAmended isTelehealthEnabled */
|
|
27428
27435
|
isTelehealthEnabled?: (boolean|null);
|
|
27429
27436
|
|
|
27430
|
-
/** EnterpriseUserEnrollmentAmended
|
|
27431
|
-
|
|
27437
|
+
/** EnterpriseUserEnrollmentAmended ssoConnectionAction */
|
|
27438
|
+
ssoConnectionAction?: (b2b.SSOConnectionAction|null);
|
|
27432
27439
|
}
|
|
27433
27440
|
|
|
27434
27441
|
/** Represents an EnterpriseUserEnrollmentAmended. */
|
|
@@ -27494,8 +27501,8 @@ export class EnterpriseUserEnrollmentAmended implements IEnterpriseUserEnrollmen
|
|
|
27494
27501
|
/** EnterpriseUserEnrollmentAmended isTelehealthEnabled. */
|
|
27495
27502
|
public isTelehealthEnabled: boolean;
|
|
27496
27503
|
|
|
27497
|
-
/** EnterpriseUserEnrollmentAmended
|
|
27498
|
-
public
|
|
27504
|
+
/** EnterpriseUserEnrollmentAmended ssoConnectionAction. */
|
|
27505
|
+
public ssoConnectionAction: b2b.SSOConnectionAction;
|
|
27499
27506
|
|
|
27500
27507
|
/**
|
|
27501
27508
|
* Creates a new EnterpriseUserEnrollmentAmended instance using the specified properties.
|
|
@@ -27568,6 +27575,108 @@ export class EnterpriseUserEnrollmentAmended implements IEnterpriseUserEnrollmen
|
|
|
27568
27575
|
public toJSON(): { [k: string]: any };
|
|
27569
27576
|
}
|
|
27570
27577
|
|
|
27578
|
+
/** Properties of a GiftRedeemed. */
|
|
27579
|
+
export interface IGiftRedeemed {
|
|
27580
|
+
|
|
27581
|
+
/** GiftRedeemed giftRecipientHsUserId */
|
|
27582
|
+
giftRecipientHsUserId?: (string|null);
|
|
27583
|
+
|
|
27584
|
+
/** GiftRedeemed giftPurchaseId */
|
|
27585
|
+
giftPurchaseId?: (string|null);
|
|
27586
|
+
|
|
27587
|
+
/** GiftRedeemed redeemedOn */
|
|
27588
|
+
redeemedOn?: (number|Long|null);
|
|
27589
|
+
}
|
|
27590
|
+
|
|
27591
|
+
/** Represents a GiftRedeemed. */
|
|
27592
|
+
export class GiftRedeemed implements IGiftRedeemed {
|
|
27593
|
+
|
|
27594
|
+
/**
|
|
27595
|
+
* Constructs a new GiftRedeemed.
|
|
27596
|
+
* @param [properties] Properties to set
|
|
27597
|
+
*/
|
|
27598
|
+
constructor(properties?: IGiftRedeemed);
|
|
27599
|
+
|
|
27600
|
+
/** GiftRedeemed giftRecipientHsUserId. */
|
|
27601
|
+
public giftRecipientHsUserId: string;
|
|
27602
|
+
|
|
27603
|
+
/** GiftRedeemed giftPurchaseId. */
|
|
27604
|
+
public giftPurchaseId: string;
|
|
27605
|
+
|
|
27606
|
+
/** GiftRedeemed redeemedOn. */
|
|
27607
|
+
public redeemedOn: (number|Long);
|
|
27608
|
+
|
|
27609
|
+
/**
|
|
27610
|
+
* Creates a new GiftRedeemed instance using the specified properties.
|
|
27611
|
+
* @param [properties] Properties to set
|
|
27612
|
+
* @returns GiftRedeemed instance
|
|
27613
|
+
*/
|
|
27614
|
+
public static create(properties?: IGiftRedeemed): GiftRedeemed;
|
|
27615
|
+
|
|
27616
|
+
/**
|
|
27617
|
+
* Encodes the specified GiftRedeemed message. Does not implicitly {@link GiftRedeemed.verify|verify} messages.
|
|
27618
|
+
* @param message GiftRedeemed message or plain object to encode
|
|
27619
|
+
* @param [writer] Writer to encode to
|
|
27620
|
+
* @returns Writer
|
|
27621
|
+
*/
|
|
27622
|
+
public static encode(message: IGiftRedeemed, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
27623
|
+
|
|
27624
|
+
/**
|
|
27625
|
+
* Encodes the specified GiftRedeemed message, length delimited. Does not implicitly {@link GiftRedeemed.verify|verify} messages.
|
|
27626
|
+
* @param message GiftRedeemed message or plain object to encode
|
|
27627
|
+
* @param [writer] Writer to encode to
|
|
27628
|
+
* @returns Writer
|
|
27629
|
+
*/
|
|
27630
|
+
public static encodeDelimited(message: IGiftRedeemed, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
27631
|
+
|
|
27632
|
+
/**
|
|
27633
|
+
* Decodes a GiftRedeemed message from the specified reader or buffer.
|
|
27634
|
+
* @param reader Reader or buffer to decode from
|
|
27635
|
+
* @param [length] Message length if known beforehand
|
|
27636
|
+
* @returns GiftRedeemed
|
|
27637
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
27638
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
27639
|
+
*/
|
|
27640
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GiftRedeemed;
|
|
27641
|
+
|
|
27642
|
+
/**
|
|
27643
|
+
* Decodes a GiftRedeemed message from the specified reader or buffer, length delimited.
|
|
27644
|
+
* @param reader Reader or buffer to decode from
|
|
27645
|
+
* @returns GiftRedeemed
|
|
27646
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
27647
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
27648
|
+
*/
|
|
27649
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): GiftRedeemed;
|
|
27650
|
+
|
|
27651
|
+
/**
|
|
27652
|
+
* Verifies a GiftRedeemed message.
|
|
27653
|
+
* @param message Plain object to verify
|
|
27654
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
27655
|
+
*/
|
|
27656
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
27657
|
+
|
|
27658
|
+
/**
|
|
27659
|
+
* Creates a GiftRedeemed message from a plain object. Also converts values to their respective internal types.
|
|
27660
|
+
* @param object Plain object
|
|
27661
|
+
* @returns GiftRedeemed
|
|
27662
|
+
*/
|
|
27663
|
+
public static fromObject(object: { [k: string]: any }): GiftRedeemed;
|
|
27664
|
+
|
|
27665
|
+
/**
|
|
27666
|
+
* Creates a plain object from a GiftRedeemed message. Also converts values to other types if specified.
|
|
27667
|
+
* @param message GiftRedeemed
|
|
27668
|
+
* @param [options] Conversion options
|
|
27669
|
+
* @returns Plain object
|
|
27670
|
+
*/
|
|
27671
|
+
public static toObject(message: GiftRedeemed, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
27672
|
+
|
|
27673
|
+
/**
|
|
27674
|
+
* Converts this GiftRedeemed to JSON.
|
|
27675
|
+
* @returns JSON object
|
|
27676
|
+
*/
|
|
27677
|
+
public toJSON(): { [k: string]: any };
|
|
27678
|
+
}
|
|
27679
|
+
|
|
27571
27680
|
/** Properties of a GoogleSubscriptionPurchased. */
|
|
27572
27681
|
export interface IGoogleSubscriptionPurchased {
|
|
27573
27682
|
|
package/lib/index.js
CHANGED
|
@@ -22059,6 +22059,22 @@ $root.b2b = (function() {
|
|
|
22059
22059
|
return values;
|
|
22060
22060
|
})();
|
|
22061
22061
|
|
|
22062
|
+
/**
|
|
22063
|
+
* SSOConnectionAction enum.
|
|
22064
|
+
* @name b2b.SSOConnectionAction
|
|
22065
|
+
* @enum {string}
|
|
22066
|
+
* @property {number} CONNECTION_NO_UPDATE=0 CONNECTION_NO_UPDATE value
|
|
22067
|
+
* @property {number} CONNECTION_SET=1 CONNECTION_SET value
|
|
22068
|
+
* @property {number} CONNECTION_UNSET=2 CONNECTION_UNSET value
|
|
22069
|
+
*/
|
|
22070
|
+
b2b.SSOConnectionAction = (function() {
|
|
22071
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
22072
|
+
values[valuesById[0] = "CONNECTION_NO_UPDATE"] = 0;
|
|
22073
|
+
values[valuesById[1] = "CONNECTION_SET"] = 1;
|
|
22074
|
+
values[valuesById[2] = "CONNECTION_UNSET"] = 2;
|
|
22075
|
+
return values;
|
|
22076
|
+
})();
|
|
22077
|
+
|
|
22062
22078
|
return b2b;
|
|
22063
22079
|
})();
|
|
22064
22080
|
|
|
@@ -73238,7 +73254,7 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
73238
73254
|
* @property {number|null} [orgMemberSubscriptionId] EnterpriseUserEnrollmentCreated orgMemberSubscriptionId
|
|
73239
73255
|
* @property {string|null} [orgMemberCustomFields] EnterpriseUserEnrollmentCreated orgMemberCustomFields
|
|
73240
73256
|
* @property {boolean|null} [isTelehealthEnabled] EnterpriseUserEnrollmentCreated isTelehealthEnabled
|
|
73241
|
-
* @property {
|
|
73257
|
+
* @property {b2b.SSOConnectionAction|null} [ssoConnectionAction] EnterpriseUserEnrollmentCreated ssoConnectionAction
|
|
73242
73258
|
*/
|
|
73243
73259
|
|
|
73244
73260
|
/**
|
|
@@ -73401,12 +73417,12 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
73401
73417
|
EnterpriseUserEnrollmentCreated.prototype.isTelehealthEnabled = false;
|
|
73402
73418
|
|
|
73403
73419
|
/**
|
|
73404
|
-
* EnterpriseUserEnrollmentCreated
|
|
73405
|
-
* @member {
|
|
73420
|
+
* EnterpriseUserEnrollmentCreated ssoConnectionAction.
|
|
73421
|
+
* @member {b2b.SSOConnectionAction} ssoConnectionAction
|
|
73406
73422
|
* @memberof EnterpriseUserEnrollmentCreated
|
|
73407
73423
|
* @instance
|
|
73408
73424
|
*/
|
|
73409
|
-
EnterpriseUserEnrollmentCreated.prototype.
|
|
73425
|
+
EnterpriseUserEnrollmentCreated.prototype.ssoConnectionAction = 0;
|
|
73410
73426
|
|
|
73411
73427
|
/**
|
|
73412
73428
|
* Creates a new EnterpriseUserEnrollmentCreated instance using the specified properties.
|
|
@@ -73468,8 +73484,8 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
73468
73484
|
writer.uint32(/* id 19, wireType 2 =*/154).string(message.orgMemberCustomFields);
|
|
73469
73485
|
if (message.isTelehealthEnabled != null && message.hasOwnProperty("isTelehealthEnabled"))
|
|
73470
73486
|
writer.uint32(/* id 20, wireType 0 =*/160).bool(message.isTelehealthEnabled);
|
|
73471
|
-
if (message.
|
|
73472
|
-
writer.uint32(/* id
|
|
73487
|
+
if (message.ssoConnectionAction != null && message.hasOwnProperty("ssoConnectionAction"))
|
|
73488
|
+
writer.uint32(/* id 22, wireType 0 =*/176).int32(message.ssoConnectionAction);
|
|
73473
73489
|
return writer;
|
|
73474
73490
|
};
|
|
73475
73491
|
|
|
@@ -73558,8 +73574,8 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
73558
73574
|
case 20:
|
|
73559
73575
|
message.isTelehealthEnabled = reader.bool();
|
|
73560
73576
|
break;
|
|
73561
|
-
case
|
|
73562
|
-
message.
|
|
73577
|
+
case 22:
|
|
73578
|
+
message.ssoConnectionAction = reader.int32();
|
|
73563
73579
|
break;
|
|
73564
73580
|
default:
|
|
73565
73581
|
reader.skipType(tag & 7);
|
|
@@ -73666,9 +73682,15 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
73666
73682
|
if (message.isTelehealthEnabled != null && message.hasOwnProperty("isTelehealthEnabled"))
|
|
73667
73683
|
if (typeof message.isTelehealthEnabled !== "boolean")
|
|
73668
73684
|
return "isTelehealthEnabled: boolean expected";
|
|
73669
|
-
if (message.
|
|
73670
|
-
|
|
73671
|
-
|
|
73685
|
+
if (message.ssoConnectionAction != null && message.hasOwnProperty("ssoConnectionAction"))
|
|
73686
|
+
switch (message.ssoConnectionAction) {
|
|
73687
|
+
default:
|
|
73688
|
+
return "ssoConnectionAction: enum value expected";
|
|
73689
|
+
case 0:
|
|
73690
|
+
case 1:
|
|
73691
|
+
case 2:
|
|
73692
|
+
break;
|
|
73693
|
+
}
|
|
73672
73694
|
return null;
|
|
73673
73695
|
};
|
|
73674
73696
|
|
|
@@ -73795,8 +73817,20 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
73795
73817
|
message.orgMemberCustomFields = String(object.orgMemberCustomFields);
|
|
73796
73818
|
if (object.isTelehealthEnabled != null)
|
|
73797
73819
|
message.isTelehealthEnabled = Boolean(object.isTelehealthEnabled);
|
|
73798
|
-
|
|
73799
|
-
|
|
73820
|
+
switch (object.ssoConnectionAction) {
|
|
73821
|
+
case "CONNECTION_NO_UPDATE":
|
|
73822
|
+
case 0:
|
|
73823
|
+
message.ssoConnectionAction = 0;
|
|
73824
|
+
break;
|
|
73825
|
+
case "CONNECTION_SET":
|
|
73826
|
+
case 1:
|
|
73827
|
+
message.ssoConnectionAction = 1;
|
|
73828
|
+
break;
|
|
73829
|
+
case "CONNECTION_UNSET":
|
|
73830
|
+
case 2:
|
|
73831
|
+
message.ssoConnectionAction = 2;
|
|
73832
|
+
break;
|
|
73833
|
+
}
|
|
73800
73834
|
return message;
|
|
73801
73835
|
};
|
|
73802
73836
|
|
|
@@ -73852,7 +73886,7 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
73852
73886
|
object.orgMemberSubscriptionId = 0;
|
|
73853
73887
|
object.orgMemberCustomFields = "";
|
|
73854
73888
|
object.isTelehealthEnabled = false;
|
|
73855
|
-
object.
|
|
73889
|
+
object.ssoConnectionAction = options.enums === String ? "CONNECTION_NO_UPDATE" : 0;
|
|
73856
73890
|
}
|
|
73857
73891
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
73858
73892
|
object.userId = message.userId;
|
|
@@ -73905,8 +73939,8 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
73905
73939
|
object.orgMemberCustomFields = message.orgMemberCustomFields;
|
|
73906
73940
|
if (message.isTelehealthEnabled != null && message.hasOwnProperty("isTelehealthEnabled"))
|
|
73907
73941
|
object.isTelehealthEnabled = message.isTelehealthEnabled;
|
|
73908
|
-
if (message.
|
|
73909
|
-
object.
|
|
73942
|
+
if (message.ssoConnectionAction != null && message.hasOwnProperty("ssoConnectionAction"))
|
|
73943
|
+
object.ssoConnectionAction = options.enums === String ? $root.b2b.SSOConnectionAction[message.ssoConnectionAction] : message.ssoConnectionAction;
|
|
73910
73944
|
return object;
|
|
73911
73945
|
};
|
|
73912
73946
|
|
|
@@ -73949,7 +73983,7 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
|
|
|
73949
73983
|
* @property {number|null} [orgMemberSubscriptionId] EnterpriseUserEnrollmentRemoved orgMemberSubscriptionId
|
|
73950
73984
|
* @property {string|null} [orgMemberCustomFields] EnterpriseUserEnrollmentRemoved orgMemberCustomFields
|
|
73951
73985
|
* @property {boolean|null} [isTelehealthEnabled] EnterpriseUserEnrollmentRemoved isTelehealthEnabled
|
|
73952
|
-
* @property {
|
|
73986
|
+
* @property {b2b.SSOConnectionAction|null} [ssoConnectionAction] EnterpriseUserEnrollmentRemoved ssoConnectionAction
|
|
73953
73987
|
*/
|
|
73954
73988
|
|
|
73955
73989
|
/**
|
|
@@ -74120,12 +74154,12 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
|
|
|
74120
74154
|
EnterpriseUserEnrollmentRemoved.prototype.isTelehealthEnabled = false;
|
|
74121
74155
|
|
|
74122
74156
|
/**
|
|
74123
|
-
* EnterpriseUserEnrollmentRemoved
|
|
74124
|
-
* @member {
|
|
74157
|
+
* EnterpriseUserEnrollmentRemoved ssoConnectionAction.
|
|
74158
|
+
* @member {b2b.SSOConnectionAction} ssoConnectionAction
|
|
74125
74159
|
* @memberof EnterpriseUserEnrollmentRemoved
|
|
74126
74160
|
* @instance
|
|
74127
74161
|
*/
|
|
74128
|
-
EnterpriseUserEnrollmentRemoved.prototype.
|
|
74162
|
+
EnterpriseUserEnrollmentRemoved.prototype.ssoConnectionAction = 0;
|
|
74129
74163
|
|
|
74130
74164
|
/**
|
|
74131
74165
|
* Creates a new EnterpriseUserEnrollmentRemoved instance using the specified properties.
|
|
@@ -74189,8 +74223,8 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
|
|
|
74189
74223
|
writer.uint32(/* id 20, wireType 2 =*/162).string(message.orgMemberCustomFields);
|
|
74190
74224
|
if (message.isTelehealthEnabled != null && message.hasOwnProperty("isTelehealthEnabled"))
|
|
74191
74225
|
writer.uint32(/* id 21, wireType 0 =*/168).bool(message.isTelehealthEnabled);
|
|
74192
|
-
if (message.
|
|
74193
|
-
writer.uint32(/* id
|
|
74226
|
+
if (message.ssoConnectionAction != null && message.hasOwnProperty("ssoConnectionAction"))
|
|
74227
|
+
writer.uint32(/* id 23, wireType 0 =*/184).int32(message.ssoConnectionAction);
|
|
74194
74228
|
return writer;
|
|
74195
74229
|
};
|
|
74196
74230
|
|
|
@@ -74282,8 +74316,8 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
|
|
|
74282
74316
|
case 21:
|
|
74283
74317
|
message.isTelehealthEnabled = reader.bool();
|
|
74284
74318
|
break;
|
|
74285
|
-
case
|
|
74286
|
-
message.
|
|
74319
|
+
case 23:
|
|
74320
|
+
message.ssoConnectionAction = reader.int32();
|
|
74287
74321
|
break;
|
|
74288
74322
|
default:
|
|
74289
74323
|
reader.skipType(tag & 7);
|
|
@@ -74405,9 +74439,15 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
|
|
|
74405
74439
|
if (message.isTelehealthEnabled != null && message.hasOwnProperty("isTelehealthEnabled"))
|
|
74406
74440
|
if (typeof message.isTelehealthEnabled !== "boolean")
|
|
74407
74441
|
return "isTelehealthEnabled: boolean expected";
|
|
74408
|
-
if (message.
|
|
74409
|
-
|
|
74410
|
-
|
|
74442
|
+
if (message.ssoConnectionAction != null && message.hasOwnProperty("ssoConnectionAction"))
|
|
74443
|
+
switch (message.ssoConnectionAction) {
|
|
74444
|
+
default:
|
|
74445
|
+
return "ssoConnectionAction: enum value expected";
|
|
74446
|
+
case 0:
|
|
74447
|
+
case 1:
|
|
74448
|
+
case 2:
|
|
74449
|
+
break;
|
|
74450
|
+
}
|
|
74411
74451
|
return null;
|
|
74412
74452
|
};
|
|
74413
74453
|
|
|
@@ -74572,8 +74612,20 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
|
|
|
74572
74612
|
message.orgMemberCustomFields = String(object.orgMemberCustomFields);
|
|
74573
74613
|
if (object.isTelehealthEnabled != null)
|
|
74574
74614
|
message.isTelehealthEnabled = Boolean(object.isTelehealthEnabled);
|
|
74575
|
-
|
|
74576
|
-
|
|
74615
|
+
switch (object.ssoConnectionAction) {
|
|
74616
|
+
case "CONNECTION_NO_UPDATE":
|
|
74617
|
+
case 0:
|
|
74618
|
+
message.ssoConnectionAction = 0;
|
|
74619
|
+
break;
|
|
74620
|
+
case "CONNECTION_SET":
|
|
74621
|
+
case 1:
|
|
74622
|
+
message.ssoConnectionAction = 1;
|
|
74623
|
+
break;
|
|
74624
|
+
case "CONNECTION_UNSET":
|
|
74625
|
+
case 2:
|
|
74626
|
+
message.ssoConnectionAction = 2;
|
|
74627
|
+
break;
|
|
74628
|
+
}
|
|
74577
74629
|
return message;
|
|
74578
74630
|
};
|
|
74579
74631
|
|
|
@@ -74630,7 +74682,7 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
|
|
|
74630
74682
|
object.orgMemberSubscriptionId = 0;
|
|
74631
74683
|
object.orgMemberCustomFields = "";
|
|
74632
74684
|
object.isTelehealthEnabled = false;
|
|
74633
|
-
object.
|
|
74685
|
+
object.ssoConnectionAction = options.enums === String ? "CONNECTION_NO_UPDATE" : 0;
|
|
74634
74686
|
}
|
|
74635
74687
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
74636
74688
|
object.userId = message.userId;
|
|
@@ -74685,8 +74737,8 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
|
|
|
74685
74737
|
object.orgMemberCustomFields = message.orgMemberCustomFields;
|
|
74686
74738
|
if (message.isTelehealthEnabled != null && message.hasOwnProperty("isTelehealthEnabled"))
|
|
74687
74739
|
object.isTelehealthEnabled = message.isTelehealthEnabled;
|
|
74688
|
-
if (message.
|
|
74689
|
-
object.
|
|
74740
|
+
if (message.ssoConnectionAction != null && message.hasOwnProperty("ssoConnectionAction"))
|
|
74741
|
+
object.ssoConnectionAction = options.enums === String ? $root.b2b.SSOConnectionAction[message.ssoConnectionAction] : message.ssoConnectionAction;
|
|
74690
74742
|
return object;
|
|
74691
74743
|
};
|
|
74692
74744
|
|
|
@@ -74728,7 +74780,7 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
|
|
|
74728
74780
|
* @property {number|null} [orgMemberSubscriptionId] EnterpriseUserEnrollmentAmended orgMemberSubscriptionId
|
|
74729
74781
|
* @property {string|null} [orgMemberCustomFields] EnterpriseUserEnrollmentAmended orgMemberCustomFields
|
|
74730
74782
|
* @property {boolean|null} [isTelehealthEnabled] EnterpriseUserEnrollmentAmended isTelehealthEnabled
|
|
74731
|
-
* @property {
|
|
74783
|
+
* @property {b2b.SSOConnectionAction|null} [ssoConnectionAction] EnterpriseUserEnrollmentAmended ssoConnectionAction
|
|
74732
74784
|
*/
|
|
74733
74785
|
|
|
74734
74786
|
/**
|
|
@@ -74891,12 +74943,12 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
|
|
|
74891
74943
|
EnterpriseUserEnrollmentAmended.prototype.isTelehealthEnabled = false;
|
|
74892
74944
|
|
|
74893
74945
|
/**
|
|
74894
|
-
* EnterpriseUserEnrollmentAmended
|
|
74895
|
-
* @member {
|
|
74946
|
+
* EnterpriseUserEnrollmentAmended ssoConnectionAction.
|
|
74947
|
+
* @member {b2b.SSOConnectionAction} ssoConnectionAction
|
|
74896
74948
|
* @memberof EnterpriseUserEnrollmentAmended
|
|
74897
74949
|
* @instance
|
|
74898
74950
|
*/
|
|
74899
|
-
EnterpriseUserEnrollmentAmended.prototype.
|
|
74951
|
+
EnterpriseUserEnrollmentAmended.prototype.ssoConnectionAction = 0;
|
|
74900
74952
|
|
|
74901
74953
|
/**
|
|
74902
74954
|
* Creates a new EnterpriseUserEnrollmentAmended instance using the specified properties.
|
|
@@ -74958,8 +75010,8 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
|
|
|
74958
75010
|
writer.uint32(/* id 19, wireType 2 =*/154).string(message.orgMemberCustomFields);
|
|
74959
75011
|
if (message.isTelehealthEnabled != null && message.hasOwnProperty("isTelehealthEnabled"))
|
|
74960
75012
|
writer.uint32(/* id 20, wireType 0 =*/160).bool(message.isTelehealthEnabled);
|
|
74961
|
-
if (message.
|
|
74962
|
-
writer.uint32(/* id
|
|
75013
|
+
if (message.ssoConnectionAction != null && message.hasOwnProperty("ssoConnectionAction"))
|
|
75014
|
+
writer.uint32(/* id 22, wireType 0 =*/176).int32(message.ssoConnectionAction);
|
|
74963
75015
|
return writer;
|
|
74964
75016
|
};
|
|
74965
75017
|
|
|
@@ -75048,8 +75100,8 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
|
|
|
75048
75100
|
case 20:
|
|
75049
75101
|
message.isTelehealthEnabled = reader.bool();
|
|
75050
75102
|
break;
|
|
75051
|
-
case
|
|
75052
|
-
message.
|
|
75103
|
+
case 22:
|
|
75104
|
+
message.ssoConnectionAction = reader.int32();
|
|
75053
75105
|
break;
|
|
75054
75106
|
default:
|
|
75055
75107
|
reader.skipType(tag & 7);
|
|
@@ -75156,9 +75208,15 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
|
|
|
75156
75208
|
if (message.isTelehealthEnabled != null && message.hasOwnProperty("isTelehealthEnabled"))
|
|
75157
75209
|
if (typeof message.isTelehealthEnabled !== "boolean")
|
|
75158
75210
|
return "isTelehealthEnabled: boolean expected";
|
|
75159
|
-
if (message.
|
|
75160
|
-
|
|
75161
|
-
|
|
75211
|
+
if (message.ssoConnectionAction != null && message.hasOwnProperty("ssoConnectionAction"))
|
|
75212
|
+
switch (message.ssoConnectionAction) {
|
|
75213
|
+
default:
|
|
75214
|
+
return "ssoConnectionAction: enum value expected";
|
|
75215
|
+
case 0:
|
|
75216
|
+
case 1:
|
|
75217
|
+
case 2:
|
|
75218
|
+
break;
|
|
75219
|
+
}
|
|
75162
75220
|
return null;
|
|
75163
75221
|
};
|
|
75164
75222
|
|
|
@@ -75285,8 +75343,20 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
|
|
|
75285
75343
|
message.orgMemberCustomFields = String(object.orgMemberCustomFields);
|
|
75286
75344
|
if (object.isTelehealthEnabled != null)
|
|
75287
75345
|
message.isTelehealthEnabled = Boolean(object.isTelehealthEnabled);
|
|
75288
|
-
|
|
75289
|
-
|
|
75346
|
+
switch (object.ssoConnectionAction) {
|
|
75347
|
+
case "CONNECTION_NO_UPDATE":
|
|
75348
|
+
case 0:
|
|
75349
|
+
message.ssoConnectionAction = 0;
|
|
75350
|
+
break;
|
|
75351
|
+
case "CONNECTION_SET":
|
|
75352
|
+
case 1:
|
|
75353
|
+
message.ssoConnectionAction = 1;
|
|
75354
|
+
break;
|
|
75355
|
+
case "CONNECTION_UNSET":
|
|
75356
|
+
case 2:
|
|
75357
|
+
message.ssoConnectionAction = 2;
|
|
75358
|
+
break;
|
|
75359
|
+
}
|
|
75290
75360
|
return message;
|
|
75291
75361
|
};
|
|
75292
75362
|
|
|
@@ -75342,7 +75412,7 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
|
|
|
75342
75412
|
object.orgMemberSubscriptionId = 0;
|
|
75343
75413
|
object.orgMemberCustomFields = "";
|
|
75344
75414
|
object.isTelehealthEnabled = false;
|
|
75345
|
-
object.
|
|
75415
|
+
object.ssoConnectionAction = options.enums === String ? "CONNECTION_NO_UPDATE" : 0;
|
|
75346
75416
|
}
|
|
75347
75417
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
75348
75418
|
object.userId = message.userId;
|
|
@@ -75395,8 +75465,8 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
|
|
|
75395
75465
|
object.orgMemberCustomFields = message.orgMemberCustomFields;
|
|
75396
75466
|
if (message.isTelehealthEnabled != null && message.hasOwnProperty("isTelehealthEnabled"))
|
|
75397
75467
|
object.isTelehealthEnabled = message.isTelehealthEnabled;
|
|
75398
|
-
if (message.
|
|
75399
|
-
object.
|
|
75468
|
+
if (message.ssoConnectionAction != null && message.hasOwnProperty("ssoConnectionAction"))
|
|
75469
|
+
object.ssoConnectionAction = options.enums === String ? $root.b2b.SSOConnectionAction[message.ssoConnectionAction] : message.ssoConnectionAction;
|
|
75400
75470
|
return object;
|
|
75401
75471
|
};
|
|
75402
75472
|
|
|
@@ -75414,6 +75484,252 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
|
|
|
75414
75484
|
return EnterpriseUserEnrollmentAmended;
|
|
75415
75485
|
})();
|
|
75416
75486
|
|
|
75487
|
+
$root.GiftRedeemed = (function() {
|
|
75488
|
+
|
|
75489
|
+
/**
|
|
75490
|
+
* Properties of a GiftRedeemed.
|
|
75491
|
+
* @exports IGiftRedeemed
|
|
75492
|
+
* @interface IGiftRedeemed
|
|
75493
|
+
* @property {string|null} [giftRecipientHsUserId] GiftRedeemed giftRecipientHsUserId
|
|
75494
|
+
* @property {string|null} [giftPurchaseId] GiftRedeemed giftPurchaseId
|
|
75495
|
+
* @property {number|Long|null} [redeemedOn] GiftRedeemed redeemedOn
|
|
75496
|
+
*/
|
|
75497
|
+
|
|
75498
|
+
/**
|
|
75499
|
+
* Constructs a new GiftRedeemed.
|
|
75500
|
+
* @exports GiftRedeemed
|
|
75501
|
+
* @classdesc Represents a GiftRedeemed.
|
|
75502
|
+
* @implements IGiftRedeemed
|
|
75503
|
+
* @constructor
|
|
75504
|
+
* @param {IGiftRedeemed=} [properties] Properties to set
|
|
75505
|
+
*/
|
|
75506
|
+
function GiftRedeemed(properties) {
|
|
75507
|
+
if (properties)
|
|
75508
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
75509
|
+
if (properties[keys[i]] != null)
|
|
75510
|
+
this[keys[i]] = properties[keys[i]];
|
|
75511
|
+
}
|
|
75512
|
+
|
|
75513
|
+
/**
|
|
75514
|
+
* GiftRedeemed giftRecipientHsUserId.
|
|
75515
|
+
* @member {string} giftRecipientHsUserId
|
|
75516
|
+
* @memberof GiftRedeemed
|
|
75517
|
+
* @instance
|
|
75518
|
+
*/
|
|
75519
|
+
GiftRedeemed.prototype.giftRecipientHsUserId = "";
|
|
75520
|
+
|
|
75521
|
+
/**
|
|
75522
|
+
* GiftRedeemed giftPurchaseId.
|
|
75523
|
+
* @member {string} giftPurchaseId
|
|
75524
|
+
* @memberof GiftRedeemed
|
|
75525
|
+
* @instance
|
|
75526
|
+
*/
|
|
75527
|
+
GiftRedeemed.prototype.giftPurchaseId = "";
|
|
75528
|
+
|
|
75529
|
+
/**
|
|
75530
|
+
* GiftRedeemed redeemedOn.
|
|
75531
|
+
* @member {number|Long} redeemedOn
|
|
75532
|
+
* @memberof GiftRedeemed
|
|
75533
|
+
* @instance
|
|
75534
|
+
*/
|
|
75535
|
+
GiftRedeemed.prototype.redeemedOn = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
75536
|
+
|
|
75537
|
+
/**
|
|
75538
|
+
* Creates a new GiftRedeemed instance using the specified properties.
|
|
75539
|
+
* @function create
|
|
75540
|
+
* @memberof GiftRedeemed
|
|
75541
|
+
* @static
|
|
75542
|
+
* @param {IGiftRedeemed=} [properties] Properties to set
|
|
75543
|
+
* @returns {GiftRedeemed} GiftRedeemed instance
|
|
75544
|
+
*/
|
|
75545
|
+
GiftRedeemed.create = function create(properties) {
|
|
75546
|
+
return new GiftRedeemed(properties);
|
|
75547
|
+
};
|
|
75548
|
+
|
|
75549
|
+
/**
|
|
75550
|
+
* Encodes the specified GiftRedeemed message. Does not implicitly {@link GiftRedeemed.verify|verify} messages.
|
|
75551
|
+
* @function encode
|
|
75552
|
+
* @memberof GiftRedeemed
|
|
75553
|
+
* @static
|
|
75554
|
+
* @param {IGiftRedeemed} message GiftRedeemed message or plain object to encode
|
|
75555
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
75556
|
+
* @returns {$protobuf.Writer} Writer
|
|
75557
|
+
*/
|
|
75558
|
+
GiftRedeemed.encode = function encode(message, writer) {
|
|
75559
|
+
if (!writer)
|
|
75560
|
+
writer = $Writer.create();
|
|
75561
|
+
if (message.giftRecipientHsUserId != null && message.hasOwnProperty("giftRecipientHsUserId"))
|
|
75562
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.giftRecipientHsUserId);
|
|
75563
|
+
if (message.giftPurchaseId != null && message.hasOwnProperty("giftPurchaseId"))
|
|
75564
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.giftPurchaseId);
|
|
75565
|
+
if (message.redeemedOn != null && message.hasOwnProperty("redeemedOn"))
|
|
75566
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.redeemedOn);
|
|
75567
|
+
return writer;
|
|
75568
|
+
};
|
|
75569
|
+
|
|
75570
|
+
/**
|
|
75571
|
+
* Encodes the specified GiftRedeemed message, length delimited. Does not implicitly {@link GiftRedeemed.verify|verify} messages.
|
|
75572
|
+
* @function encodeDelimited
|
|
75573
|
+
* @memberof GiftRedeemed
|
|
75574
|
+
* @static
|
|
75575
|
+
* @param {IGiftRedeemed} message GiftRedeemed message or plain object to encode
|
|
75576
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
75577
|
+
* @returns {$protobuf.Writer} Writer
|
|
75578
|
+
*/
|
|
75579
|
+
GiftRedeemed.encodeDelimited = function encodeDelimited(message, writer) {
|
|
75580
|
+
return this.encode(message, writer).ldelim();
|
|
75581
|
+
};
|
|
75582
|
+
|
|
75583
|
+
/**
|
|
75584
|
+
* Decodes a GiftRedeemed message from the specified reader or buffer.
|
|
75585
|
+
* @function decode
|
|
75586
|
+
* @memberof GiftRedeemed
|
|
75587
|
+
* @static
|
|
75588
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
75589
|
+
* @param {number} [length] Message length if known beforehand
|
|
75590
|
+
* @returns {GiftRedeemed} GiftRedeemed
|
|
75591
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
75592
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
75593
|
+
*/
|
|
75594
|
+
GiftRedeemed.decode = function decode(reader, length) {
|
|
75595
|
+
if (!(reader instanceof $Reader))
|
|
75596
|
+
reader = $Reader.create(reader);
|
|
75597
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.GiftRedeemed();
|
|
75598
|
+
while (reader.pos < end) {
|
|
75599
|
+
var tag = reader.uint32();
|
|
75600
|
+
switch (tag >>> 3) {
|
|
75601
|
+
case 1:
|
|
75602
|
+
message.giftRecipientHsUserId = reader.string();
|
|
75603
|
+
break;
|
|
75604
|
+
case 2:
|
|
75605
|
+
message.giftPurchaseId = reader.string();
|
|
75606
|
+
break;
|
|
75607
|
+
case 3:
|
|
75608
|
+
message.redeemedOn = reader.uint64();
|
|
75609
|
+
break;
|
|
75610
|
+
default:
|
|
75611
|
+
reader.skipType(tag & 7);
|
|
75612
|
+
break;
|
|
75613
|
+
}
|
|
75614
|
+
}
|
|
75615
|
+
return message;
|
|
75616
|
+
};
|
|
75617
|
+
|
|
75618
|
+
/**
|
|
75619
|
+
* Decodes a GiftRedeemed message from the specified reader or buffer, length delimited.
|
|
75620
|
+
* @function decodeDelimited
|
|
75621
|
+
* @memberof GiftRedeemed
|
|
75622
|
+
* @static
|
|
75623
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
75624
|
+
* @returns {GiftRedeemed} GiftRedeemed
|
|
75625
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
75626
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
75627
|
+
*/
|
|
75628
|
+
GiftRedeemed.decodeDelimited = function decodeDelimited(reader) {
|
|
75629
|
+
if (!(reader instanceof $Reader))
|
|
75630
|
+
reader = new $Reader(reader);
|
|
75631
|
+
return this.decode(reader, reader.uint32());
|
|
75632
|
+
};
|
|
75633
|
+
|
|
75634
|
+
/**
|
|
75635
|
+
* Verifies a GiftRedeemed message.
|
|
75636
|
+
* @function verify
|
|
75637
|
+
* @memberof GiftRedeemed
|
|
75638
|
+
* @static
|
|
75639
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
75640
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
75641
|
+
*/
|
|
75642
|
+
GiftRedeemed.verify = function verify(message) {
|
|
75643
|
+
if (typeof message !== "object" || message === null)
|
|
75644
|
+
return "object expected";
|
|
75645
|
+
if (message.giftRecipientHsUserId != null && message.hasOwnProperty("giftRecipientHsUserId"))
|
|
75646
|
+
if (!$util.isString(message.giftRecipientHsUserId))
|
|
75647
|
+
return "giftRecipientHsUserId: string expected";
|
|
75648
|
+
if (message.giftPurchaseId != null && message.hasOwnProperty("giftPurchaseId"))
|
|
75649
|
+
if (!$util.isString(message.giftPurchaseId))
|
|
75650
|
+
return "giftPurchaseId: string expected";
|
|
75651
|
+
if (message.redeemedOn != null && message.hasOwnProperty("redeemedOn"))
|
|
75652
|
+
if (!$util.isInteger(message.redeemedOn) && !(message.redeemedOn && $util.isInteger(message.redeemedOn.low) && $util.isInteger(message.redeemedOn.high)))
|
|
75653
|
+
return "redeemedOn: integer|Long expected";
|
|
75654
|
+
return null;
|
|
75655
|
+
};
|
|
75656
|
+
|
|
75657
|
+
/**
|
|
75658
|
+
* Creates a GiftRedeemed message from a plain object. Also converts values to their respective internal types.
|
|
75659
|
+
* @function fromObject
|
|
75660
|
+
* @memberof GiftRedeemed
|
|
75661
|
+
* @static
|
|
75662
|
+
* @param {Object.<string,*>} object Plain object
|
|
75663
|
+
* @returns {GiftRedeemed} GiftRedeemed
|
|
75664
|
+
*/
|
|
75665
|
+
GiftRedeemed.fromObject = function fromObject(object) {
|
|
75666
|
+
if (object instanceof $root.GiftRedeemed)
|
|
75667
|
+
return object;
|
|
75668
|
+
var message = new $root.GiftRedeemed();
|
|
75669
|
+
if (object.giftRecipientHsUserId != null)
|
|
75670
|
+
message.giftRecipientHsUserId = String(object.giftRecipientHsUserId);
|
|
75671
|
+
if (object.giftPurchaseId != null)
|
|
75672
|
+
message.giftPurchaseId = String(object.giftPurchaseId);
|
|
75673
|
+
if (object.redeemedOn != null)
|
|
75674
|
+
if ($util.Long)
|
|
75675
|
+
(message.redeemedOn = $util.Long.fromValue(object.redeemedOn)).unsigned = true;
|
|
75676
|
+
else if (typeof object.redeemedOn === "string")
|
|
75677
|
+
message.redeemedOn = parseInt(object.redeemedOn, 10);
|
|
75678
|
+
else if (typeof object.redeemedOn === "number")
|
|
75679
|
+
message.redeemedOn = object.redeemedOn;
|
|
75680
|
+
else if (typeof object.redeemedOn === "object")
|
|
75681
|
+
message.redeemedOn = new $util.LongBits(object.redeemedOn.low >>> 0, object.redeemedOn.high >>> 0).toNumber(true);
|
|
75682
|
+
return message;
|
|
75683
|
+
};
|
|
75684
|
+
|
|
75685
|
+
/**
|
|
75686
|
+
* Creates a plain object from a GiftRedeemed message. Also converts values to other types if specified.
|
|
75687
|
+
* @function toObject
|
|
75688
|
+
* @memberof GiftRedeemed
|
|
75689
|
+
* @static
|
|
75690
|
+
* @param {GiftRedeemed} message GiftRedeemed
|
|
75691
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
75692
|
+
* @returns {Object.<string,*>} Plain object
|
|
75693
|
+
*/
|
|
75694
|
+
GiftRedeemed.toObject = function toObject(message, options) {
|
|
75695
|
+
if (!options)
|
|
75696
|
+
options = {};
|
|
75697
|
+
var object = {};
|
|
75698
|
+
if (options.defaults) {
|
|
75699
|
+
object.giftRecipientHsUserId = "";
|
|
75700
|
+
object.giftPurchaseId = "";
|
|
75701
|
+
if ($util.Long) {
|
|
75702
|
+
var long = new $util.Long(0, 0, true);
|
|
75703
|
+
object.redeemedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
75704
|
+
} else
|
|
75705
|
+
object.redeemedOn = options.longs === String ? "0" : 0;
|
|
75706
|
+
}
|
|
75707
|
+
if (message.giftRecipientHsUserId != null && message.hasOwnProperty("giftRecipientHsUserId"))
|
|
75708
|
+
object.giftRecipientHsUserId = message.giftRecipientHsUserId;
|
|
75709
|
+
if (message.giftPurchaseId != null && message.hasOwnProperty("giftPurchaseId"))
|
|
75710
|
+
object.giftPurchaseId = message.giftPurchaseId;
|
|
75711
|
+
if (message.redeemedOn != null && message.hasOwnProperty("redeemedOn"))
|
|
75712
|
+
if (typeof message.redeemedOn === "number")
|
|
75713
|
+
object.redeemedOn = options.longs === String ? String(message.redeemedOn) : message.redeemedOn;
|
|
75714
|
+
else
|
|
75715
|
+
object.redeemedOn = options.longs === String ? $util.Long.prototype.toString.call(message.redeemedOn) : options.longs === Number ? new $util.LongBits(message.redeemedOn.low >>> 0, message.redeemedOn.high >>> 0).toNumber(true) : message.redeemedOn;
|
|
75716
|
+
return object;
|
|
75717
|
+
};
|
|
75718
|
+
|
|
75719
|
+
/**
|
|
75720
|
+
* Converts this GiftRedeemed to JSON.
|
|
75721
|
+
* @function toJSON
|
|
75722
|
+
* @memberof GiftRedeemed
|
|
75723
|
+
* @instance
|
|
75724
|
+
* @returns {Object.<string,*>} JSON object
|
|
75725
|
+
*/
|
|
75726
|
+
GiftRedeemed.prototype.toJSON = function toJSON() {
|
|
75727
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
75728
|
+
};
|
|
75729
|
+
|
|
75730
|
+
return GiftRedeemed;
|
|
75731
|
+
})();
|
|
75732
|
+
|
|
75417
75733
|
$root.GoogleSubscriptionPurchased = (function() {
|
|
75418
75734
|
|
|
75419
75735
|
/**
|
package/package.json
CHANGED