@headspace/protos-events 1.632.0 → 1.634.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 +271 -2
- package/lib/index.js +787 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -45098,16 +45098,20 @@ $root.userdomain = (function() {
|
|
|
45098
45098
|
})();
|
|
45099
45099
|
|
|
45100
45100
|
/**
|
|
45101
|
-
*
|
|
45101
|
+
* User Deletion Reason
|
|
45102
|
+
*
|
|
45103
|
+
* To provide context for the user deletion
|
|
45102
45104
|
* @name userdomain.users.UserDeleteReason
|
|
45103
45105
|
* @enum {string}
|
|
45104
45106
|
* @property {number} UNKNOWN_REASON=0 UNKNOWN_REASON value
|
|
45105
45107
|
* @property {number} INACTIVE=1 INACTIVE value
|
|
45108
|
+
* @property {number} USER_DELETE_REASON_DSAR=2 USER_DELETE_REASON_DSAR value
|
|
45106
45109
|
*/
|
|
45107
45110
|
users.UserDeleteReason = (function() {
|
|
45108
45111
|
var valuesById = {}, values = Object.create(valuesById);
|
|
45109
45112
|
values[valuesById[0] = "UNKNOWN_REASON"] = 0;
|
|
45110
45113
|
values[valuesById[1] = "INACTIVE"] = 1;
|
|
45114
|
+
values[valuesById[2] = "USER_DELETE_REASON_DSAR"] = 2;
|
|
45111
45115
|
return values;
|
|
45112
45116
|
})();
|
|
45113
45117
|
|
|
@@ -76669,6 +76673,7 @@ $root.UserDomainDeleted = (function() {
|
|
|
76669
76673
|
return "deleteReason: enum value expected";
|
|
76670
76674
|
case 0:
|
|
76671
76675
|
case 1:
|
|
76676
|
+
case 2:
|
|
76672
76677
|
break;
|
|
76673
76678
|
}
|
|
76674
76679
|
return null;
|
|
@@ -76706,6 +76711,10 @@ $root.UserDomainDeleted = (function() {
|
|
|
76706
76711
|
case 1:
|
|
76707
76712
|
message.deleteReason = 1;
|
|
76708
76713
|
break;
|
|
76714
|
+
case "USER_DELETE_REASON_DSAR":
|
|
76715
|
+
case 2:
|
|
76716
|
+
message.deleteReason = 2;
|
|
76717
|
+
break;
|
|
76709
76718
|
}
|
|
76710
76719
|
return message;
|
|
76711
76720
|
};
|
|
@@ -118471,6 +118480,7 @@ $root.ClinicalCoverageCreated = (function() {
|
|
|
118471
118480
|
* @property {b2b.ClinicalCoverageProvider|null} [clinicalCoverageProvider] ClinicalCoverageCreated clinicalCoverageProvider
|
|
118472
118481
|
* @property {b2b.ClinicalCoverageType|null} [clinicalCoverageType] ClinicalCoverageCreated clinicalCoverageType
|
|
118473
118482
|
* @property {string|null} [externalOrgId] ClinicalCoverageCreated externalOrgId
|
|
118483
|
+
* @property {number|Long|null} [orgSubscriptionStartDate] ClinicalCoverageCreated orgSubscriptionStartDate
|
|
118474
118484
|
*/
|
|
118475
118485
|
|
|
118476
118486
|
/**
|
|
@@ -118552,6 +118562,14 @@ $root.ClinicalCoverageCreated = (function() {
|
|
|
118552
118562
|
*/
|
|
118553
118563
|
ClinicalCoverageCreated.prototype.externalOrgId = "";
|
|
118554
118564
|
|
|
118565
|
+
/**
|
|
118566
|
+
* ClinicalCoverageCreated orgSubscriptionStartDate.
|
|
118567
|
+
* @member {number|Long} orgSubscriptionStartDate
|
|
118568
|
+
* @memberof ClinicalCoverageCreated
|
|
118569
|
+
* @instance
|
|
118570
|
+
*/
|
|
118571
|
+
ClinicalCoverageCreated.prototype.orgSubscriptionStartDate = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
118572
|
+
|
|
118555
118573
|
/**
|
|
118556
118574
|
* Creates a new ClinicalCoverageCreated instance using the specified properties.
|
|
118557
118575
|
* @function create
|
|
@@ -118592,6 +118610,8 @@ $root.ClinicalCoverageCreated = (function() {
|
|
|
118592
118610
|
writer.uint32(/* id 7, wireType 0 =*/56).int32(message.clinicalCoverageType);
|
|
118593
118611
|
if (message.externalOrgId != null && message.hasOwnProperty("externalOrgId"))
|
|
118594
118612
|
writer.uint32(/* id 8, wireType 2 =*/66).string(message.externalOrgId);
|
|
118613
|
+
if (message.orgSubscriptionStartDate != null && message.hasOwnProperty("orgSubscriptionStartDate"))
|
|
118614
|
+
writer.uint32(/* id 9, wireType 0 =*/72).uint64(message.orgSubscriptionStartDate);
|
|
118595
118615
|
return writer;
|
|
118596
118616
|
};
|
|
118597
118617
|
|
|
@@ -118650,6 +118670,9 @@ $root.ClinicalCoverageCreated = (function() {
|
|
|
118650
118670
|
case 8:
|
|
118651
118671
|
message.externalOrgId = reader.string();
|
|
118652
118672
|
break;
|
|
118673
|
+
case 9:
|
|
118674
|
+
message.orgSubscriptionStartDate = reader.uint64();
|
|
118675
|
+
break;
|
|
118653
118676
|
default:
|
|
118654
118677
|
reader.skipType(tag & 7);
|
|
118655
118678
|
break;
|
|
@@ -118730,6 +118753,9 @@ $root.ClinicalCoverageCreated = (function() {
|
|
|
118730
118753
|
if (message.externalOrgId != null && message.hasOwnProperty("externalOrgId"))
|
|
118731
118754
|
if (!$util.isString(message.externalOrgId))
|
|
118732
118755
|
return "externalOrgId: string expected";
|
|
118756
|
+
if (message.orgSubscriptionStartDate != null && message.hasOwnProperty("orgSubscriptionStartDate"))
|
|
118757
|
+
if (!$util.isInteger(message.orgSubscriptionStartDate) && !(message.orgSubscriptionStartDate && $util.isInteger(message.orgSubscriptionStartDate.low) && $util.isInteger(message.orgSubscriptionStartDate.high)))
|
|
118758
|
+
return "orgSubscriptionStartDate: integer|Long expected";
|
|
118733
118759
|
return null;
|
|
118734
118760
|
};
|
|
118735
118761
|
|
|
@@ -118837,6 +118863,15 @@ $root.ClinicalCoverageCreated = (function() {
|
|
|
118837
118863
|
}
|
|
118838
118864
|
if (object.externalOrgId != null)
|
|
118839
118865
|
message.externalOrgId = String(object.externalOrgId);
|
|
118866
|
+
if (object.orgSubscriptionStartDate != null)
|
|
118867
|
+
if ($util.Long)
|
|
118868
|
+
(message.orgSubscriptionStartDate = $util.Long.fromValue(object.orgSubscriptionStartDate)).unsigned = true;
|
|
118869
|
+
else if (typeof object.orgSubscriptionStartDate === "string")
|
|
118870
|
+
message.orgSubscriptionStartDate = parseInt(object.orgSubscriptionStartDate, 10);
|
|
118871
|
+
else if (typeof object.orgSubscriptionStartDate === "number")
|
|
118872
|
+
message.orgSubscriptionStartDate = object.orgSubscriptionStartDate;
|
|
118873
|
+
else if (typeof object.orgSubscriptionStartDate === "object")
|
|
118874
|
+
message.orgSubscriptionStartDate = new $util.LongBits(object.orgSubscriptionStartDate.low >>> 0, object.orgSubscriptionStartDate.high >>> 0).toNumber(true);
|
|
118840
118875
|
return message;
|
|
118841
118876
|
};
|
|
118842
118877
|
|
|
@@ -118878,6 +118913,11 @@ $root.ClinicalCoverageCreated = (function() {
|
|
|
118878
118913
|
object.clinicalCoverageProvider = options.enums === String ? "CLINICAL_COVERAGE_PROVIDER_UNKNOWN" : 0;
|
|
118879
118914
|
object.clinicalCoverageType = options.enums === String ? "CLINICAL_COVERAGE_TYPE_UNKNOWN" : 0;
|
|
118880
118915
|
object.externalOrgId = "";
|
|
118916
|
+
if ($util.Long) {
|
|
118917
|
+
var long = new $util.Long(0, 0, true);
|
|
118918
|
+
object.orgSubscriptionStartDate = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
118919
|
+
} else
|
|
118920
|
+
object.orgSubscriptionStartDate = options.longs === String ? "0" : 0;
|
|
118881
118921
|
}
|
|
118882
118922
|
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
118883
118923
|
if (typeof message.orgId === "number")
|
|
@@ -118907,6 +118947,11 @@ $root.ClinicalCoverageCreated = (function() {
|
|
|
118907
118947
|
object.clinicalCoverageType = options.enums === String ? $root.b2b.ClinicalCoverageType[message.clinicalCoverageType] : message.clinicalCoverageType;
|
|
118908
118948
|
if (message.externalOrgId != null && message.hasOwnProperty("externalOrgId"))
|
|
118909
118949
|
object.externalOrgId = message.externalOrgId;
|
|
118950
|
+
if (message.orgSubscriptionStartDate != null && message.hasOwnProperty("orgSubscriptionStartDate"))
|
|
118951
|
+
if (typeof message.orgSubscriptionStartDate === "number")
|
|
118952
|
+
object.orgSubscriptionStartDate = options.longs === String ? String(message.orgSubscriptionStartDate) : message.orgSubscriptionStartDate;
|
|
118953
|
+
else
|
|
118954
|
+
object.orgSubscriptionStartDate = options.longs === String ? $util.Long.prototype.toString.call(message.orgSubscriptionStartDate) : options.longs === Number ? new $util.LongBits(message.orgSubscriptionStartDate.low >>> 0, message.orgSubscriptionStartDate.high >>> 0).toNumber(true) : message.orgSubscriptionStartDate;
|
|
118910
118955
|
return object;
|
|
118911
118956
|
};
|
|
118912
118957
|
|
|
@@ -118938,6 +118983,7 @@ $root.ClinicalCoverageUpdated = (function() {
|
|
|
118938
118983
|
* @property {b2b.ClinicalCoverageProvider|null} [clinicalCoverageProvider] ClinicalCoverageUpdated clinicalCoverageProvider
|
|
118939
118984
|
* @property {b2b.ClinicalCoverageType|null} [clinicalCoverageType] ClinicalCoverageUpdated clinicalCoverageType
|
|
118940
118985
|
* @property {string|null} [externalOrgId] ClinicalCoverageUpdated externalOrgId
|
|
118986
|
+
* @property {number|Long|null} [orgSubscriptionStartDate] ClinicalCoverageUpdated orgSubscriptionStartDate
|
|
118941
118987
|
*/
|
|
118942
118988
|
|
|
118943
118989
|
/**
|
|
@@ -119019,6 +119065,14 @@ $root.ClinicalCoverageUpdated = (function() {
|
|
|
119019
119065
|
*/
|
|
119020
119066
|
ClinicalCoverageUpdated.prototype.externalOrgId = "";
|
|
119021
119067
|
|
|
119068
|
+
/**
|
|
119069
|
+
* ClinicalCoverageUpdated orgSubscriptionStartDate.
|
|
119070
|
+
* @member {number|Long} orgSubscriptionStartDate
|
|
119071
|
+
* @memberof ClinicalCoverageUpdated
|
|
119072
|
+
* @instance
|
|
119073
|
+
*/
|
|
119074
|
+
ClinicalCoverageUpdated.prototype.orgSubscriptionStartDate = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
119075
|
+
|
|
119022
119076
|
/**
|
|
119023
119077
|
* Creates a new ClinicalCoverageUpdated instance using the specified properties.
|
|
119024
119078
|
* @function create
|
|
@@ -119059,6 +119113,8 @@ $root.ClinicalCoverageUpdated = (function() {
|
|
|
119059
119113
|
writer.uint32(/* id 7, wireType 0 =*/56).int32(message.clinicalCoverageType);
|
|
119060
119114
|
if (message.externalOrgId != null && message.hasOwnProperty("externalOrgId"))
|
|
119061
119115
|
writer.uint32(/* id 8, wireType 2 =*/66).string(message.externalOrgId);
|
|
119116
|
+
if (message.orgSubscriptionStartDate != null && message.hasOwnProperty("orgSubscriptionStartDate"))
|
|
119117
|
+
writer.uint32(/* id 9, wireType 0 =*/72).uint64(message.orgSubscriptionStartDate);
|
|
119062
119118
|
return writer;
|
|
119063
119119
|
};
|
|
119064
119120
|
|
|
@@ -119117,6 +119173,9 @@ $root.ClinicalCoverageUpdated = (function() {
|
|
|
119117
119173
|
case 8:
|
|
119118
119174
|
message.externalOrgId = reader.string();
|
|
119119
119175
|
break;
|
|
119176
|
+
case 9:
|
|
119177
|
+
message.orgSubscriptionStartDate = reader.uint64();
|
|
119178
|
+
break;
|
|
119120
119179
|
default:
|
|
119121
119180
|
reader.skipType(tag & 7);
|
|
119122
119181
|
break;
|
|
@@ -119197,6 +119256,9 @@ $root.ClinicalCoverageUpdated = (function() {
|
|
|
119197
119256
|
if (message.externalOrgId != null && message.hasOwnProperty("externalOrgId"))
|
|
119198
119257
|
if (!$util.isString(message.externalOrgId))
|
|
119199
119258
|
return "externalOrgId: string expected";
|
|
119259
|
+
if (message.orgSubscriptionStartDate != null && message.hasOwnProperty("orgSubscriptionStartDate"))
|
|
119260
|
+
if (!$util.isInteger(message.orgSubscriptionStartDate) && !(message.orgSubscriptionStartDate && $util.isInteger(message.orgSubscriptionStartDate.low) && $util.isInteger(message.orgSubscriptionStartDate.high)))
|
|
119261
|
+
return "orgSubscriptionStartDate: integer|Long expected";
|
|
119200
119262
|
return null;
|
|
119201
119263
|
};
|
|
119202
119264
|
|
|
@@ -119304,6 +119366,15 @@ $root.ClinicalCoverageUpdated = (function() {
|
|
|
119304
119366
|
}
|
|
119305
119367
|
if (object.externalOrgId != null)
|
|
119306
119368
|
message.externalOrgId = String(object.externalOrgId);
|
|
119369
|
+
if (object.orgSubscriptionStartDate != null)
|
|
119370
|
+
if ($util.Long)
|
|
119371
|
+
(message.orgSubscriptionStartDate = $util.Long.fromValue(object.orgSubscriptionStartDate)).unsigned = true;
|
|
119372
|
+
else if (typeof object.orgSubscriptionStartDate === "string")
|
|
119373
|
+
message.orgSubscriptionStartDate = parseInt(object.orgSubscriptionStartDate, 10);
|
|
119374
|
+
else if (typeof object.orgSubscriptionStartDate === "number")
|
|
119375
|
+
message.orgSubscriptionStartDate = object.orgSubscriptionStartDate;
|
|
119376
|
+
else if (typeof object.orgSubscriptionStartDate === "object")
|
|
119377
|
+
message.orgSubscriptionStartDate = new $util.LongBits(object.orgSubscriptionStartDate.low >>> 0, object.orgSubscriptionStartDate.high >>> 0).toNumber(true);
|
|
119307
119378
|
return message;
|
|
119308
119379
|
};
|
|
119309
119380
|
|
|
@@ -119345,6 +119416,11 @@ $root.ClinicalCoverageUpdated = (function() {
|
|
|
119345
119416
|
object.clinicalCoverageProvider = options.enums === String ? "CLINICAL_COVERAGE_PROVIDER_UNKNOWN" : 0;
|
|
119346
119417
|
object.clinicalCoverageType = options.enums === String ? "CLINICAL_COVERAGE_TYPE_UNKNOWN" : 0;
|
|
119347
119418
|
object.externalOrgId = "";
|
|
119419
|
+
if ($util.Long) {
|
|
119420
|
+
var long = new $util.Long(0, 0, true);
|
|
119421
|
+
object.orgSubscriptionStartDate = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
119422
|
+
} else
|
|
119423
|
+
object.orgSubscriptionStartDate = options.longs === String ? "0" : 0;
|
|
119348
119424
|
}
|
|
119349
119425
|
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
119350
119426
|
if (typeof message.orgId === "number")
|
|
@@ -119374,6 +119450,11 @@ $root.ClinicalCoverageUpdated = (function() {
|
|
|
119374
119450
|
object.clinicalCoverageType = options.enums === String ? $root.b2b.ClinicalCoverageType[message.clinicalCoverageType] : message.clinicalCoverageType;
|
|
119375
119451
|
if (message.externalOrgId != null && message.hasOwnProperty("externalOrgId"))
|
|
119376
119452
|
object.externalOrgId = message.externalOrgId;
|
|
119453
|
+
if (message.orgSubscriptionStartDate != null && message.hasOwnProperty("orgSubscriptionStartDate"))
|
|
119454
|
+
if (typeof message.orgSubscriptionStartDate === "number")
|
|
119455
|
+
object.orgSubscriptionStartDate = options.longs === String ? String(message.orgSubscriptionStartDate) : message.orgSubscriptionStartDate;
|
|
119456
|
+
else
|
|
119457
|
+
object.orgSubscriptionStartDate = options.longs === String ? $util.Long.prototype.toString.call(message.orgSubscriptionStartDate) : options.longs === Number ? new $util.LongBits(message.orgSubscriptionStartDate.low >>> 0, message.orgSubscriptionStartDate.high >>> 0).toNumber(true) : message.orgSubscriptionStartDate;
|
|
119377
119458
|
return object;
|
|
119378
119459
|
};
|
|
119379
119460
|
|
|
@@ -119405,6 +119486,7 @@ $root.ClinicalCoverageDeleted = (function() {
|
|
|
119405
119486
|
* @property {b2b.ClinicalCoverageProvider|null} [clinicalCoverageProvider] ClinicalCoverageDeleted clinicalCoverageProvider
|
|
119406
119487
|
* @property {b2b.ClinicalCoverageType|null} [clinicalCoverageType] ClinicalCoverageDeleted clinicalCoverageType
|
|
119407
119488
|
* @property {string|null} [externalOrgId] ClinicalCoverageDeleted externalOrgId
|
|
119489
|
+
* @property {number|Long|null} [orgSubscriptionStartDate] ClinicalCoverageDeleted orgSubscriptionStartDate
|
|
119408
119490
|
*/
|
|
119409
119491
|
|
|
119410
119492
|
/**
|
|
@@ -119486,6 +119568,14 @@ $root.ClinicalCoverageDeleted = (function() {
|
|
|
119486
119568
|
*/
|
|
119487
119569
|
ClinicalCoverageDeleted.prototype.externalOrgId = "";
|
|
119488
119570
|
|
|
119571
|
+
/**
|
|
119572
|
+
* ClinicalCoverageDeleted orgSubscriptionStartDate.
|
|
119573
|
+
* @member {number|Long} orgSubscriptionStartDate
|
|
119574
|
+
* @memberof ClinicalCoverageDeleted
|
|
119575
|
+
* @instance
|
|
119576
|
+
*/
|
|
119577
|
+
ClinicalCoverageDeleted.prototype.orgSubscriptionStartDate = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
119578
|
+
|
|
119489
119579
|
/**
|
|
119490
119580
|
* Creates a new ClinicalCoverageDeleted instance using the specified properties.
|
|
119491
119581
|
* @function create
|
|
@@ -119526,6 +119616,8 @@ $root.ClinicalCoverageDeleted = (function() {
|
|
|
119526
119616
|
writer.uint32(/* id 7, wireType 0 =*/56).int32(message.clinicalCoverageType);
|
|
119527
119617
|
if (message.externalOrgId != null && message.hasOwnProperty("externalOrgId"))
|
|
119528
119618
|
writer.uint32(/* id 8, wireType 2 =*/66).string(message.externalOrgId);
|
|
119619
|
+
if (message.orgSubscriptionStartDate != null && message.hasOwnProperty("orgSubscriptionStartDate"))
|
|
119620
|
+
writer.uint32(/* id 9, wireType 0 =*/72).uint64(message.orgSubscriptionStartDate);
|
|
119529
119621
|
return writer;
|
|
119530
119622
|
};
|
|
119531
119623
|
|
|
@@ -119584,6 +119676,9 @@ $root.ClinicalCoverageDeleted = (function() {
|
|
|
119584
119676
|
case 8:
|
|
119585
119677
|
message.externalOrgId = reader.string();
|
|
119586
119678
|
break;
|
|
119679
|
+
case 9:
|
|
119680
|
+
message.orgSubscriptionStartDate = reader.uint64();
|
|
119681
|
+
break;
|
|
119587
119682
|
default:
|
|
119588
119683
|
reader.skipType(tag & 7);
|
|
119589
119684
|
break;
|
|
@@ -119664,6 +119759,9 @@ $root.ClinicalCoverageDeleted = (function() {
|
|
|
119664
119759
|
if (message.externalOrgId != null && message.hasOwnProperty("externalOrgId"))
|
|
119665
119760
|
if (!$util.isString(message.externalOrgId))
|
|
119666
119761
|
return "externalOrgId: string expected";
|
|
119762
|
+
if (message.orgSubscriptionStartDate != null && message.hasOwnProperty("orgSubscriptionStartDate"))
|
|
119763
|
+
if (!$util.isInteger(message.orgSubscriptionStartDate) && !(message.orgSubscriptionStartDate && $util.isInteger(message.orgSubscriptionStartDate.low) && $util.isInteger(message.orgSubscriptionStartDate.high)))
|
|
119764
|
+
return "orgSubscriptionStartDate: integer|Long expected";
|
|
119667
119765
|
return null;
|
|
119668
119766
|
};
|
|
119669
119767
|
|
|
@@ -119771,6 +119869,15 @@ $root.ClinicalCoverageDeleted = (function() {
|
|
|
119771
119869
|
}
|
|
119772
119870
|
if (object.externalOrgId != null)
|
|
119773
119871
|
message.externalOrgId = String(object.externalOrgId);
|
|
119872
|
+
if (object.orgSubscriptionStartDate != null)
|
|
119873
|
+
if ($util.Long)
|
|
119874
|
+
(message.orgSubscriptionStartDate = $util.Long.fromValue(object.orgSubscriptionStartDate)).unsigned = true;
|
|
119875
|
+
else if (typeof object.orgSubscriptionStartDate === "string")
|
|
119876
|
+
message.orgSubscriptionStartDate = parseInt(object.orgSubscriptionStartDate, 10);
|
|
119877
|
+
else if (typeof object.orgSubscriptionStartDate === "number")
|
|
119878
|
+
message.orgSubscriptionStartDate = object.orgSubscriptionStartDate;
|
|
119879
|
+
else if (typeof object.orgSubscriptionStartDate === "object")
|
|
119880
|
+
message.orgSubscriptionStartDate = new $util.LongBits(object.orgSubscriptionStartDate.low >>> 0, object.orgSubscriptionStartDate.high >>> 0).toNumber(true);
|
|
119774
119881
|
return message;
|
|
119775
119882
|
};
|
|
119776
119883
|
|
|
@@ -119812,6 +119919,11 @@ $root.ClinicalCoverageDeleted = (function() {
|
|
|
119812
119919
|
object.clinicalCoverageProvider = options.enums === String ? "CLINICAL_COVERAGE_PROVIDER_UNKNOWN" : 0;
|
|
119813
119920
|
object.clinicalCoverageType = options.enums === String ? "CLINICAL_COVERAGE_TYPE_UNKNOWN" : 0;
|
|
119814
119921
|
object.externalOrgId = "";
|
|
119922
|
+
if ($util.Long) {
|
|
119923
|
+
var long = new $util.Long(0, 0, true);
|
|
119924
|
+
object.orgSubscriptionStartDate = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
119925
|
+
} else
|
|
119926
|
+
object.orgSubscriptionStartDate = options.longs === String ? "0" : 0;
|
|
119815
119927
|
}
|
|
119816
119928
|
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
119817
119929
|
if (typeof message.orgId === "number")
|
|
@@ -119841,6 +119953,11 @@ $root.ClinicalCoverageDeleted = (function() {
|
|
|
119841
119953
|
object.clinicalCoverageType = options.enums === String ? $root.b2b.ClinicalCoverageType[message.clinicalCoverageType] : message.clinicalCoverageType;
|
|
119842
119954
|
if (message.externalOrgId != null && message.hasOwnProperty("externalOrgId"))
|
|
119843
119955
|
object.externalOrgId = message.externalOrgId;
|
|
119956
|
+
if (message.orgSubscriptionStartDate != null && message.hasOwnProperty("orgSubscriptionStartDate"))
|
|
119957
|
+
if (typeof message.orgSubscriptionStartDate === "number")
|
|
119958
|
+
object.orgSubscriptionStartDate = options.longs === String ? String(message.orgSubscriptionStartDate) : message.orgSubscriptionStartDate;
|
|
119959
|
+
else
|
|
119960
|
+
object.orgSubscriptionStartDate = options.longs === String ? $util.Long.prototype.toString.call(message.orgSubscriptionStartDate) : options.longs === Number ? new $util.LongBits(message.orgSubscriptionStartDate.low >>> 0, message.orgSubscriptionStartDate.high >>> 0).toNumber(true) : message.orgSubscriptionStartDate;
|
|
119844
119961
|
return object;
|
|
119845
119962
|
};
|
|
119846
119963
|
|
|
@@ -119871,6 +119988,7 @@ $root.EapCoverageCreated = (function() {
|
|
|
119871
119988
|
* @property {number|Long|null} [updatedAt] EapCoverageCreated updatedAt
|
|
119872
119989
|
* @property {b2b.EapCoverage|null} [eapCoverage] EapCoverageCreated eapCoverage
|
|
119873
119990
|
* @property {string|null} [externalOrgId] EapCoverageCreated externalOrgId
|
|
119991
|
+
* @property {number|Long|null} [orgSubscriptionStartDate] EapCoverageCreated orgSubscriptionStartDate
|
|
119874
119992
|
*/
|
|
119875
119993
|
|
|
119876
119994
|
/**
|
|
@@ -119944,6 +120062,14 @@ $root.EapCoverageCreated = (function() {
|
|
|
119944
120062
|
*/
|
|
119945
120063
|
EapCoverageCreated.prototype.externalOrgId = "";
|
|
119946
120064
|
|
|
120065
|
+
/**
|
|
120066
|
+
* EapCoverageCreated orgSubscriptionStartDate.
|
|
120067
|
+
* @member {number|Long} orgSubscriptionStartDate
|
|
120068
|
+
* @memberof EapCoverageCreated
|
|
120069
|
+
* @instance
|
|
120070
|
+
*/
|
|
120071
|
+
EapCoverageCreated.prototype.orgSubscriptionStartDate = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
120072
|
+
|
|
119947
120073
|
/**
|
|
119948
120074
|
* Creates a new EapCoverageCreated instance using the specified properties.
|
|
119949
120075
|
* @function create
|
|
@@ -119982,6 +120108,8 @@ $root.EapCoverageCreated = (function() {
|
|
|
119982
120108
|
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.eapCoverage);
|
|
119983
120109
|
if (message.externalOrgId != null && message.hasOwnProperty("externalOrgId"))
|
|
119984
120110
|
writer.uint32(/* id 7, wireType 2 =*/58).string(message.externalOrgId);
|
|
120111
|
+
if (message.orgSubscriptionStartDate != null && message.hasOwnProperty("orgSubscriptionStartDate"))
|
|
120112
|
+
writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.orgSubscriptionStartDate);
|
|
119985
120113
|
return writer;
|
|
119986
120114
|
};
|
|
119987
120115
|
|
|
@@ -120037,6 +120165,9 @@ $root.EapCoverageCreated = (function() {
|
|
|
120037
120165
|
case 7:
|
|
120038
120166
|
message.externalOrgId = reader.string();
|
|
120039
120167
|
break;
|
|
120168
|
+
case 8:
|
|
120169
|
+
message.orgSubscriptionStartDate = reader.uint64();
|
|
120170
|
+
break;
|
|
120040
120171
|
default:
|
|
120041
120172
|
reader.skipType(tag & 7);
|
|
120042
120173
|
break;
|
|
@@ -120107,6 +120238,9 @@ $root.EapCoverageCreated = (function() {
|
|
|
120107
120238
|
if (message.externalOrgId != null && message.hasOwnProperty("externalOrgId"))
|
|
120108
120239
|
if (!$util.isString(message.externalOrgId))
|
|
120109
120240
|
return "externalOrgId: string expected";
|
|
120241
|
+
if (message.orgSubscriptionStartDate != null && message.hasOwnProperty("orgSubscriptionStartDate"))
|
|
120242
|
+
if (!$util.isInteger(message.orgSubscriptionStartDate) && !(message.orgSubscriptionStartDate && $util.isInteger(message.orgSubscriptionStartDate.low) && $util.isInteger(message.orgSubscriptionStartDate.high)))
|
|
120243
|
+
return "orgSubscriptionStartDate: integer|Long expected";
|
|
120110
120244
|
return null;
|
|
120111
120245
|
};
|
|
120112
120246
|
|
|
@@ -120196,6 +120330,15 @@ $root.EapCoverageCreated = (function() {
|
|
|
120196
120330
|
}
|
|
120197
120331
|
if (object.externalOrgId != null)
|
|
120198
120332
|
message.externalOrgId = String(object.externalOrgId);
|
|
120333
|
+
if (object.orgSubscriptionStartDate != null)
|
|
120334
|
+
if ($util.Long)
|
|
120335
|
+
(message.orgSubscriptionStartDate = $util.Long.fromValue(object.orgSubscriptionStartDate)).unsigned = true;
|
|
120336
|
+
else if (typeof object.orgSubscriptionStartDate === "string")
|
|
120337
|
+
message.orgSubscriptionStartDate = parseInt(object.orgSubscriptionStartDate, 10);
|
|
120338
|
+
else if (typeof object.orgSubscriptionStartDate === "number")
|
|
120339
|
+
message.orgSubscriptionStartDate = object.orgSubscriptionStartDate;
|
|
120340
|
+
else if (typeof object.orgSubscriptionStartDate === "object")
|
|
120341
|
+
message.orgSubscriptionStartDate = new $util.LongBits(object.orgSubscriptionStartDate.low >>> 0, object.orgSubscriptionStartDate.high >>> 0).toNumber(true);
|
|
120199
120342
|
return message;
|
|
120200
120343
|
};
|
|
120201
120344
|
|
|
@@ -120236,6 +120379,11 @@ $root.EapCoverageCreated = (function() {
|
|
|
120236
120379
|
object.updatedAt = options.longs === String ? "0" : 0;
|
|
120237
120380
|
object.eapCoverage = options.enums === String ? "EAP_COVERAGE_UNKNOWN" : 0;
|
|
120238
120381
|
object.externalOrgId = "";
|
|
120382
|
+
if ($util.Long) {
|
|
120383
|
+
var long = new $util.Long(0, 0, true);
|
|
120384
|
+
object.orgSubscriptionStartDate = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
120385
|
+
} else
|
|
120386
|
+
object.orgSubscriptionStartDate = options.longs === String ? "0" : 0;
|
|
120239
120387
|
}
|
|
120240
120388
|
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
120241
120389
|
if (typeof message.orgId === "number")
|
|
@@ -120263,6 +120411,11 @@ $root.EapCoverageCreated = (function() {
|
|
|
120263
120411
|
object.eapCoverage = options.enums === String ? $root.b2b.EapCoverage[message.eapCoverage] : message.eapCoverage;
|
|
120264
120412
|
if (message.externalOrgId != null && message.hasOwnProperty("externalOrgId"))
|
|
120265
120413
|
object.externalOrgId = message.externalOrgId;
|
|
120414
|
+
if (message.orgSubscriptionStartDate != null && message.hasOwnProperty("orgSubscriptionStartDate"))
|
|
120415
|
+
if (typeof message.orgSubscriptionStartDate === "number")
|
|
120416
|
+
object.orgSubscriptionStartDate = options.longs === String ? String(message.orgSubscriptionStartDate) : message.orgSubscriptionStartDate;
|
|
120417
|
+
else
|
|
120418
|
+
object.orgSubscriptionStartDate = options.longs === String ? $util.Long.prototype.toString.call(message.orgSubscriptionStartDate) : options.longs === Number ? new $util.LongBits(message.orgSubscriptionStartDate.low >>> 0, message.orgSubscriptionStartDate.high >>> 0).toNumber(true) : message.orgSubscriptionStartDate;
|
|
120266
120419
|
return object;
|
|
120267
120420
|
};
|
|
120268
120421
|
|
|
@@ -120293,6 +120446,7 @@ $root.EapCoverageUpdated = (function() {
|
|
|
120293
120446
|
* @property {number|Long|null} [updatedAt] EapCoverageUpdated updatedAt
|
|
120294
120447
|
* @property {b2b.EapCoverage|null} [eapCoverage] EapCoverageUpdated eapCoverage
|
|
120295
120448
|
* @property {string|null} [externalOrgId] EapCoverageUpdated externalOrgId
|
|
120449
|
+
* @property {number|Long|null} [orgSubscriptionStartDate] EapCoverageUpdated orgSubscriptionStartDate
|
|
120296
120450
|
*/
|
|
120297
120451
|
|
|
120298
120452
|
/**
|
|
@@ -120366,6 +120520,14 @@ $root.EapCoverageUpdated = (function() {
|
|
|
120366
120520
|
*/
|
|
120367
120521
|
EapCoverageUpdated.prototype.externalOrgId = "";
|
|
120368
120522
|
|
|
120523
|
+
/**
|
|
120524
|
+
* EapCoverageUpdated orgSubscriptionStartDate.
|
|
120525
|
+
* @member {number|Long} orgSubscriptionStartDate
|
|
120526
|
+
* @memberof EapCoverageUpdated
|
|
120527
|
+
* @instance
|
|
120528
|
+
*/
|
|
120529
|
+
EapCoverageUpdated.prototype.orgSubscriptionStartDate = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
120530
|
+
|
|
120369
120531
|
/**
|
|
120370
120532
|
* Creates a new EapCoverageUpdated instance using the specified properties.
|
|
120371
120533
|
* @function create
|
|
@@ -120404,6 +120566,8 @@ $root.EapCoverageUpdated = (function() {
|
|
|
120404
120566
|
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.eapCoverage);
|
|
120405
120567
|
if (message.externalOrgId != null && message.hasOwnProperty("externalOrgId"))
|
|
120406
120568
|
writer.uint32(/* id 7, wireType 2 =*/58).string(message.externalOrgId);
|
|
120569
|
+
if (message.orgSubscriptionStartDate != null && message.hasOwnProperty("orgSubscriptionStartDate"))
|
|
120570
|
+
writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.orgSubscriptionStartDate);
|
|
120407
120571
|
return writer;
|
|
120408
120572
|
};
|
|
120409
120573
|
|
|
@@ -120459,6 +120623,9 @@ $root.EapCoverageUpdated = (function() {
|
|
|
120459
120623
|
case 7:
|
|
120460
120624
|
message.externalOrgId = reader.string();
|
|
120461
120625
|
break;
|
|
120626
|
+
case 8:
|
|
120627
|
+
message.orgSubscriptionStartDate = reader.uint64();
|
|
120628
|
+
break;
|
|
120462
120629
|
default:
|
|
120463
120630
|
reader.skipType(tag & 7);
|
|
120464
120631
|
break;
|
|
@@ -120529,6 +120696,9 @@ $root.EapCoverageUpdated = (function() {
|
|
|
120529
120696
|
if (message.externalOrgId != null && message.hasOwnProperty("externalOrgId"))
|
|
120530
120697
|
if (!$util.isString(message.externalOrgId))
|
|
120531
120698
|
return "externalOrgId: string expected";
|
|
120699
|
+
if (message.orgSubscriptionStartDate != null && message.hasOwnProperty("orgSubscriptionStartDate"))
|
|
120700
|
+
if (!$util.isInteger(message.orgSubscriptionStartDate) && !(message.orgSubscriptionStartDate && $util.isInteger(message.orgSubscriptionStartDate.low) && $util.isInteger(message.orgSubscriptionStartDate.high)))
|
|
120701
|
+
return "orgSubscriptionStartDate: integer|Long expected";
|
|
120532
120702
|
return null;
|
|
120533
120703
|
};
|
|
120534
120704
|
|
|
@@ -120618,6 +120788,15 @@ $root.EapCoverageUpdated = (function() {
|
|
|
120618
120788
|
}
|
|
120619
120789
|
if (object.externalOrgId != null)
|
|
120620
120790
|
message.externalOrgId = String(object.externalOrgId);
|
|
120791
|
+
if (object.orgSubscriptionStartDate != null)
|
|
120792
|
+
if ($util.Long)
|
|
120793
|
+
(message.orgSubscriptionStartDate = $util.Long.fromValue(object.orgSubscriptionStartDate)).unsigned = true;
|
|
120794
|
+
else if (typeof object.orgSubscriptionStartDate === "string")
|
|
120795
|
+
message.orgSubscriptionStartDate = parseInt(object.orgSubscriptionStartDate, 10);
|
|
120796
|
+
else if (typeof object.orgSubscriptionStartDate === "number")
|
|
120797
|
+
message.orgSubscriptionStartDate = object.orgSubscriptionStartDate;
|
|
120798
|
+
else if (typeof object.orgSubscriptionStartDate === "object")
|
|
120799
|
+
message.orgSubscriptionStartDate = new $util.LongBits(object.orgSubscriptionStartDate.low >>> 0, object.orgSubscriptionStartDate.high >>> 0).toNumber(true);
|
|
120621
120800
|
return message;
|
|
120622
120801
|
};
|
|
120623
120802
|
|
|
@@ -120658,6 +120837,11 @@ $root.EapCoverageUpdated = (function() {
|
|
|
120658
120837
|
object.updatedAt = options.longs === String ? "0" : 0;
|
|
120659
120838
|
object.eapCoverage = options.enums === String ? "EAP_COVERAGE_UNKNOWN" : 0;
|
|
120660
120839
|
object.externalOrgId = "";
|
|
120840
|
+
if ($util.Long) {
|
|
120841
|
+
var long = new $util.Long(0, 0, true);
|
|
120842
|
+
object.orgSubscriptionStartDate = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
120843
|
+
} else
|
|
120844
|
+
object.orgSubscriptionStartDate = options.longs === String ? "0" : 0;
|
|
120661
120845
|
}
|
|
120662
120846
|
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
120663
120847
|
if (typeof message.orgId === "number")
|
|
@@ -120685,6 +120869,11 @@ $root.EapCoverageUpdated = (function() {
|
|
|
120685
120869
|
object.eapCoverage = options.enums === String ? $root.b2b.EapCoverage[message.eapCoverage] : message.eapCoverage;
|
|
120686
120870
|
if (message.externalOrgId != null && message.hasOwnProperty("externalOrgId"))
|
|
120687
120871
|
object.externalOrgId = message.externalOrgId;
|
|
120872
|
+
if (message.orgSubscriptionStartDate != null && message.hasOwnProperty("orgSubscriptionStartDate"))
|
|
120873
|
+
if (typeof message.orgSubscriptionStartDate === "number")
|
|
120874
|
+
object.orgSubscriptionStartDate = options.longs === String ? String(message.orgSubscriptionStartDate) : message.orgSubscriptionStartDate;
|
|
120875
|
+
else
|
|
120876
|
+
object.orgSubscriptionStartDate = options.longs === String ? $util.Long.prototype.toString.call(message.orgSubscriptionStartDate) : options.longs === Number ? new $util.LongBits(message.orgSubscriptionStartDate.low >>> 0, message.orgSubscriptionStartDate.high >>> 0).toNumber(true) : message.orgSubscriptionStartDate;
|
|
120688
120877
|
return object;
|
|
120689
120878
|
};
|
|
120690
120879
|
|
|
@@ -120715,6 +120904,7 @@ $root.EapCoverageDeleted = (function() {
|
|
|
120715
120904
|
* @property {number|Long|null} [updatedAt] EapCoverageDeleted updatedAt
|
|
120716
120905
|
* @property {b2b.EapCoverage|null} [eapCoverage] EapCoverageDeleted eapCoverage
|
|
120717
120906
|
* @property {string|null} [externalOrgId] EapCoverageDeleted externalOrgId
|
|
120907
|
+
* @property {number|Long|null} [orgSubscriptionStartDate] EapCoverageDeleted orgSubscriptionStartDate
|
|
120718
120908
|
*/
|
|
120719
120909
|
|
|
120720
120910
|
/**
|
|
@@ -120788,6 +120978,14 @@ $root.EapCoverageDeleted = (function() {
|
|
|
120788
120978
|
*/
|
|
120789
120979
|
EapCoverageDeleted.prototype.externalOrgId = "";
|
|
120790
120980
|
|
|
120981
|
+
/**
|
|
120982
|
+
* EapCoverageDeleted orgSubscriptionStartDate.
|
|
120983
|
+
* @member {number|Long} orgSubscriptionStartDate
|
|
120984
|
+
* @memberof EapCoverageDeleted
|
|
120985
|
+
* @instance
|
|
120986
|
+
*/
|
|
120987
|
+
EapCoverageDeleted.prototype.orgSubscriptionStartDate = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
120988
|
+
|
|
120791
120989
|
/**
|
|
120792
120990
|
* Creates a new EapCoverageDeleted instance using the specified properties.
|
|
120793
120991
|
* @function create
|
|
@@ -120826,6 +121024,8 @@ $root.EapCoverageDeleted = (function() {
|
|
|
120826
121024
|
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.eapCoverage);
|
|
120827
121025
|
if (message.externalOrgId != null && message.hasOwnProperty("externalOrgId"))
|
|
120828
121026
|
writer.uint32(/* id 7, wireType 2 =*/58).string(message.externalOrgId);
|
|
121027
|
+
if (message.orgSubscriptionStartDate != null && message.hasOwnProperty("orgSubscriptionStartDate"))
|
|
121028
|
+
writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.orgSubscriptionStartDate);
|
|
120829
121029
|
return writer;
|
|
120830
121030
|
};
|
|
120831
121031
|
|
|
@@ -120881,6 +121081,9 @@ $root.EapCoverageDeleted = (function() {
|
|
|
120881
121081
|
case 7:
|
|
120882
121082
|
message.externalOrgId = reader.string();
|
|
120883
121083
|
break;
|
|
121084
|
+
case 8:
|
|
121085
|
+
message.orgSubscriptionStartDate = reader.uint64();
|
|
121086
|
+
break;
|
|
120884
121087
|
default:
|
|
120885
121088
|
reader.skipType(tag & 7);
|
|
120886
121089
|
break;
|
|
@@ -120951,6 +121154,9 @@ $root.EapCoverageDeleted = (function() {
|
|
|
120951
121154
|
if (message.externalOrgId != null && message.hasOwnProperty("externalOrgId"))
|
|
120952
121155
|
if (!$util.isString(message.externalOrgId))
|
|
120953
121156
|
return "externalOrgId: string expected";
|
|
121157
|
+
if (message.orgSubscriptionStartDate != null && message.hasOwnProperty("orgSubscriptionStartDate"))
|
|
121158
|
+
if (!$util.isInteger(message.orgSubscriptionStartDate) && !(message.orgSubscriptionStartDate && $util.isInteger(message.orgSubscriptionStartDate.low) && $util.isInteger(message.orgSubscriptionStartDate.high)))
|
|
121159
|
+
return "orgSubscriptionStartDate: integer|Long expected";
|
|
120954
121160
|
return null;
|
|
120955
121161
|
};
|
|
120956
121162
|
|
|
@@ -121040,6 +121246,15 @@ $root.EapCoverageDeleted = (function() {
|
|
|
121040
121246
|
}
|
|
121041
121247
|
if (object.externalOrgId != null)
|
|
121042
121248
|
message.externalOrgId = String(object.externalOrgId);
|
|
121249
|
+
if (object.orgSubscriptionStartDate != null)
|
|
121250
|
+
if ($util.Long)
|
|
121251
|
+
(message.orgSubscriptionStartDate = $util.Long.fromValue(object.orgSubscriptionStartDate)).unsigned = true;
|
|
121252
|
+
else if (typeof object.orgSubscriptionStartDate === "string")
|
|
121253
|
+
message.orgSubscriptionStartDate = parseInt(object.orgSubscriptionStartDate, 10);
|
|
121254
|
+
else if (typeof object.orgSubscriptionStartDate === "number")
|
|
121255
|
+
message.orgSubscriptionStartDate = object.orgSubscriptionStartDate;
|
|
121256
|
+
else if (typeof object.orgSubscriptionStartDate === "object")
|
|
121257
|
+
message.orgSubscriptionStartDate = new $util.LongBits(object.orgSubscriptionStartDate.low >>> 0, object.orgSubscriptionStartDate.high >>> 0).toNumber(true);
|
|
121043
121258
|
return message;
|
|
121044
121259
|
};
|
|
121045
121260
|
|
|
@@ -121080,6 +121295,11 @@ $root.EapCoverageDeleted = (function() {
|
|
|
121080
121295
|
object.updatedAt = options.longs === String ? "0" : 0;
|
|
121081
121296
|
object.eapCoverage = options.enums === String ? "EAP_COVERAGE_UNKNOWN" : 0;
|
|
121082
121297
|
object.externalOrgId = "";
|
|
121298
|
+
if ($util.Long) {
|
|
121299
|
+
var long = new $util.Long(0, 0, true);
|
|
121300
|
+
object.orgSubscriptionStartDate = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
121301
|
+
} else
|
|
121302
|
+
object.orgSubscriptionStartDate = options.longs === String ? "0" : 0;
|
|
121083
121303
|
}
|
|
121084
121304
|
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
121085
121305
|
if (typeof message.orgId === "number")
|
|
@@ -121107,6 +121327,11 @@ $root.EapCoverageDeleted = (function() {
|
|
|
121107
121327
|
object.eapCoverage = options.enums === String ? $root.b2b.EapCoverage[message.eapCoverage] : message.eapCoverage;
|
|
121108
121328
|
if (message.externalOrgId != null && message.hasOwnProperty("externalOrgId"))
|
|
121109
121329
|
object.externalOrgId = message.externalOrgId;
|
|
121330
|
+
if (message.orgSubscriptionStartDate != null && message.hasOwnProperty("orgSubscriptionStartDate"))
|
|
121331
|
+
if (typeof message.orgSubscriptionStartDate === "number")
|
|
121332
|
+
object.orgSubscriptionStartDate = options.longs === String ? String(message.orgSubscriptionStartDate) : message.orgSubscriptionStartDate;
|
|
121333
|
+
else
|
|
121334
|
+
object.orgSubscriptionStartDate = options.longs === String ? $util.Long.prototype.toString.call(message.orgSubscriptionStartDate) : options.longs === Number ? new $util.LongBits(message.orgSubscriptionStartDate.low >>> 0, message.orgSubscriptionStartDate.high >>> 0).toNumber(true) : message.orgSubscriptionStartDate;
|
|
121110
121335
|
return object;
|
|
121111
121336
|
};
|
|
121112
121337
|
|
|
@@ -187913,6 +188138,567 @@ $root.UserConsentUpdated = (function() {
|
|
|
187913
188138
|
return UserConsentUpdated;
|
|
187914
188139
|
})();
|
|
187915
188140
|
|
|
188141
|
+
$root.UserDeletionRequested = (function() {
|
|
188142
|
+
|
|
188143
|
+
/**
|
|
188144
|
+
* Properties of a UserDeletionRequested.
|
|
188145
|
+
* @name IUserDeletionRequested
|
|
188146
|
+
* @interface IUserDeletionRequested
|
|
188147
|
+
* @property {string|null} [requester] UserDeletionRequested requester
|
|
188148
|
+
* @property {number|Long|null} [timestamp] UserDeletionRequested timestamp
|
|
188149
|
+
* @property {userdomain.users.UserDeleteReason|null} [deleteReason] UserDeletionRequested deleteReason
|
|
188150
|
+
* @property {UserServiceAppClient|null} [appClient] UserDeletionRequested appClient
|
|
188151
|
+
*/
|
|
188152
|
+
|
|
188153
|
+
/**
|
|
188154
|
+
* Constructs a new UserDeletionRequested.
|
|
188155
|
+
* @name UserDeletionRequested
|
|
188156
|
+
* @classdesc Sent when a user requests their account to be deleted.
|
|
188157
|
+
*
|
|
188158
|
+
* Ex: If a user has outstanding balances on their account, the deletion request can be revoked
|
|
188159
|
+
* if the issue is not resolved within 15 days.
|
|
188160
|
+
*
|
|
188161
|
+
* Workflow: UserDeletionRequested -> UserDeletionRevoked (If needed) -> UserDeleted
|
|
188162
|
+
* @implements IUserDeletionRequested
|
|
188163
|
+
* @constructor
|
|
188164
|
+
* @param {IUserDeletionRequested=} [properties] Properties to set
|
|
188165
|
+
*/
|
|
188166
|
+
function UserDeletionRequested(properties) {
|
|
188167
|
+
if (properties)
|
|
188168
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
188169
|
+
if (properties[keys[i]] != null)
|
|
188170
|
+
this[keys[i]] = properties[keys[i]];
|
|
188171
|
+
}
|
|
188172
|
+
|
|
188173
|
+
/**
|
|
188174
|
+
* UserDeletionRequested requester.
|
|
188175
|
+
* @member {string} requester
|
|
188176
|
+
* @memberof UserDeletionRequested
|
|
188177
|
+
* @instance
|
|
188178
|
+
*/
|
|
188179
|
+
UserDeletionRequested.prototype.requester = "";
|
|
188180
|
+
|
|
188181
|
+
/**
|
|
188182
|
+
* UserDeletionRequested timestamp.
|
|
188183
|
+
* @member {number|Long} timestamp
|
|
188184
|
+
* @memberof UserDeletionRequested
|
|
188185
|
+
* @instance
|
|
188186
|
+
*/
|
|
188187
|
+
UserDeletionRequested.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
188188
|
+
|
|
188189
|
+
/**
|
|
188190
|
+
* UserDeletionRequested deleteReason.
|
|
188191
|
+
* @member {userdomain.users.UserDeleteReason} deleteReason
|
|
188192
|
+
* @memberof UserDeletionRequested
|
|
188193
|
+
* @instance
|
|
188194
|
+
*/
|
|
188195
|
+
UserDeletionRequested.prototype.deleteReason = 0;
|
|
188196
|
+
|
|
188197
|
+
/**
|
|
188198
|
+
* UserDeletionRequested appClient.
|
|
188199
|
+
* @member {UserServiceAppClient} appClient
|
|
188200
|
+
* @memberof UserDeletionRequested
|
|
188201
|
+
* @instance
|
|
188202
|
+
*/
|
|
188203
|
+
UserDeletionRequested.prototype.appClient = 0;
|
|
188204
|
+
|
|
188205
|
+
/**
|
|
188206
|
+
* Creates a new UserDeletionRequested instance using the specified properties.
|
|
188207
|
+
* @function create
|
|
188208
|
+
* @memberof UserDeletionRequested
|
|
188209
|
+
* @static
|
|
188210
|
+
* @param {IUserDeletionRequested=} [properties] Properties to set
|
|
188211
|
+
* @returns {UserDeletionRequested} UserDeletionRequested instance
|
|
188212
|
+
*/
|
|
188213
|
+
UserDeletionRequested.create = function create(properties) {
|
|
188214
|
+
return new UserDeletionRequested(properties);
|
|
188215
|
+
};
|
|
188216
|
+
|
|
188217
|
+
/**
|
|
188218
|
+
* Encodes the specified UserDeletionRequested message. Does not implicitly {@link UserDeletionRequested.verify|verify} messages.
|
|
188219
|
+
* @function encode
|
|
188220
|
+
* @memberof UserDeletionRequested
|
|
188221
|
+
* @static
|
|
188222
|
+
* @param {IUserDeletionRequested} message UserDeletionRequested message or plain object to encode
|
|
188223
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
188224
|
+
* @returns {$protobuf.Writer} Writer
|
|
188225
|
+
*/
|
|
188226
|
+
UserDeletionRequested.encode = function encode(message, writer) {
|
|
188227
|
+
if (!writer)
|
|
188228
|
+
writer = $Writer.create();
|
|
188229
|
+
if (message.requester != null && message.hasOwnProperty("requester"))
|
|
188230
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.requester);
|
|
188231
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
188232
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp);
|
|
188233
|
+
if (message.deleteReason != null && message.hasOwnProperty("deleteReason"))
|
|
188234
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.deleteReason);
|
|
188235
|
+
if (message.appClient != null && message.hasOwnProperty("appClient"))
|
|
188236
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.appClient);
|
|
188237
|
+
return writer;
|
|
188238
|
+
};
|
|
188239
|
+
|
|
188240
|
+
/**
|
|
188241
|
+
* Encodes the specified UserDeletionRequested message, length delimited. Does not implicitly {@link UserDeletionRequested.verify|verify} messages.
|
|
188242
|
+
* @function encodeDelimited
|
|
188243
|
+
* @memberof UserDeletionRequested
|
|
188244
|
+
* @static
|
|
188245
|
+
* @param {IUserDeletionRequested} message UserDeletionRequested message or plain object to encode
|
|
188246
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
188247
|
+
* @returns {$protobuf.Writer} Writer
|
|
188248
|
+
*/
|
|
188249
|
+
UserDeletionRequested.encodeDelimited = function encodeDelimited(message, writer) {
|
|
188250
|
+
return this.encode(message, writer).ldelim();
|
|
188251
|
+
};
|
|
188252
|
+
|
|
188253
|
+
/**
|
|
188254
|
+
* Decodes a UserDeletionRequested message from the specified reader or buffer.
|
|
188255
|
+
* @function decode
|
|
188256
|
+
* @memberof UserDeletionRequested
|
|
188257
|
+
* @static
|
|
188258
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
188259
|
+
* @param {number} [length] Message length if known beforehand
|
|
188260
|
+
* @returns {UserDeletionRequested} UserDeletionRequested
|
|
188261
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
188262
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
188263
|
+
*/
|
|
188264
|
+
UserDeletionRequested.decode = function decode(reader, length) {
|
|
188265
|
+
if (!(reader instanceof $Reader))
|
|
188266
|
+
reader = $Reader.create(reader);
|
|
188267
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserDeletionRequested();
|
|
188268
|
+
while (reader.pos < end) {
|
|
188269
|
+
var tag = reader.uint32();
|
|
188270
|
+
switch (tag >>> 3) {
|
|
188271
|
+
case 1:
|
|
188272
|
+
message.requester = reader.string();
|
|
188273
|
+
break;
|
|
188274
|
+
case 2:
|
|
188275
|
+
message.timestamp = reader.uint64();
|
|
188276
|
+
break;
|
|
188277
|
+
case 3:
|
|
188278
|
+
message.deleteReason = reader.int32();
|
|
188279
|
+
break;
|
|
188280
|
+
case 4:
|
|
188281
|
+
message.appClient = reader.int32();
|
|
188282
|
+
break;
|
|
188283
|
+
default:
|
|
188284
|
+
reader.skipType(tag & 7);
|
|
188285
|
+
break;
|
|
188286
|
+
}
|
|
188287
|
+
}
|
|
188288
|
+
return message;
|
|
188289
|
+
};
|
|
188290
|
+
|
|
188291
|
+
/**
|
|
188292
|
+
* Decodes a UserDeletionRequested message from the specified reader or buffer, length delimited.
|
|
188293
|
+
* @function decodeDelimited
|
|
188294
|
+
* @memberof UserDeletionRequested
|
|
188295
|
+
* @static
|
|
188296
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
188297
|
+
* @returns {UserDeletionRequested} UserDeletionRequested
|
|
188298
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
188299
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
188300
|
+
*/
|
|
188301
|
+
UserDeletionRequested.decodeDelimited = function decodeDelimited(reader) {
|
|
188302
|
+
if (!(reader instanceof $Reader))
|
|
188303
|
+
reader = new $Reader(reader);
|
|
188304
|
+
return this.decode(reader, reader.uint32());
|
|
188305
|
+
};
|
|
188306
|
+
|
|
188307
|
+
/**
|
|
188308
|
+
* Verifies a UserDeletionRequested message.
|
|
188309
|
+
* @function verify
|
|
188310
|
+
* @memberof UserDeletionRequested
|
|
188311
|
+
* @static
|
|
188312
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
188313
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
188314
|
+
*/
|
|
188315
|
+
UserDeletionRequested.verify = function verify(message) {
|
|
188316
|
+
if (typeof message !== "object" || message === null)
|
|
188317
|
+
return "object expected";
|
|
188318
|
+
if (message.requester != null && message.hasOwnProperty("requester"))
|
|
188319
|
+
if (!$util.isString(message.requester))
|
|
188320
|
+
return "requester: string expected";
|
|
188321
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
188322
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
188323
|
+
return "timestamp: integer|Long expected";
|
|
188324
|
+
if (message.deleteReason != null && message.hasOwnProperty("deleteReason"))
|
|
188325
|
+
switch (message.deleteReason) {
|
|
188326
|
+
default:
|
|
188327
|
+
return "deleteReason: enum value expected";
|
|
188328
|
+
case 0:
|
|
188329
|
+
case 1:
|
|
188330
|
+
case 2:
|
|
188331
|
+
break;
|
|
188332
|
+
}
|
|
188333
|
+
if (message.appClient != null && message.hasOwnProperty("appClient"))
|
|
188334
|
+
switch (message.appClient) {
|
|
188335
|
+
default:
|
|
188336
|
+
return "appClient: enum value expected";
|
|
188337
|
+
case 0:
|
|
188338
|
+
case 1:
|
|
188339
|
+
case 2:
|
|
188340
|
+
case 3:
|
|
188341
|
+
break;
|
|
188342
|
+
}
|
|
188343
|
+
return null;
|
|
188344
|
+
};
|
|
188345
|
+
|
|
188346
|
+
/**
|
|
188347
|
+
* Creates a UserDeletionRequested message from a plain object. Also converts values to their respective internal types.
|
|
188348
|
+
* @function fromObject
|
|
188349
|
+
* @memberof UserDeletionRequested
|
|
188350
|
+
* @static
|
|
188351
|
+
* @param {Object.<string,*>} object Plain object
|
|
188352
|
+
* @returns {UserDeletionRequested} UserDeletionRequested
|
|
188353
|
+
*/
|
|
188354
|
+
UserDeletionRequested.fromObject = function fromObject(object) {
|
|
188355
|
+
if (object instanceof $root.UserDeletionRequested)
|
|
188356
|
+
return object;
|
|
188357
|
+
var message = new $root.UserDeletionRequested();
|
|
188358
|
+
if (object.requester != null)
|
|
188359
|
+
message.requester = String(object.requester);
|
|
188360
|
+
if (object.timestamp != null)
|
|
188361
|
+
if ($util.Long)
|
|
188362
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
188363
|
+
else if (typeof object.timestamp === "string")
|
|
188364
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
188365
|
+
else if (typeof object.timestamp === "number")
|
|
188366
|
+
message.timestamp = object.timestamp;
|
|
188367
|
+
else if (typeof object.timestamp === "object")
|
|
188368
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
188369
|
+
switch (object.deleteReason) {
|
|
188370
|
+
case "UNKNOWN_REASON":
|
|
188371
|
+
case 0:
|
|
188372
|
+
message.deleteReason = 0;
|
|
188373
|
+
break;
|
|
188374
|
+
case "INACTIVE":
|
|
188375
|
+
case 1:
|
|
188376
|
+
message.deleteReason = 1;
|
|
188377
|
+
break;
|
|
188378
|
+
case "USER_DELETE_REASON_DSAR":
|
|
188379
|
+
case 2:
|
|
188380
|
+
message.deleteReason = 2;
|
|
188381
|
+
break;
|
|
188382
|
+
}
|
|
188383
|
+
switch (object.appClient) {
|
|
188384
|
+
case "USER_SERVICE_APP_CLIENT_UNKNOWN":
|
|
188385
|
+
case 0:
|
|
188386
|
+
message.appClient = 0;
|
|
188387
|
+
break;
|
|
188388
|
+
case "USER_SERVICE_APP_CLIENT_HEADSPACE_APP":
|
|
188389
|
+
case 1:
|
|
188390
|
+
message.appClient = 1;
|
|
188391
|
+
break;
|
|
188392
|
+
case "USER_SERVICE_APP_CLIENT_HEADSPACE_CARE_APP":
|
|
188393
|
+
case 2:
|
|
188394
|
+
message.appClient = 2;
|
|
188395
|
+
break;
|
|
188396
|
+
case "USER_SERVICE_APP_CLIENT_CROCPIT":
|
|
188397
|
+
case 3:
|
|
188398
|
+
message.appClient = 3;
|
|
188399
|
+
break;
|
|
188400
|
+
}
|
|
188401
|
+
return message;
|
|
188402
|
+
};
|
|
188403
|
+
|
|
188404
|
+
/**
|
|
188405
|
+
* Creates a plain object from a UserDeletionRequested message. Also converts values to other types if specified.
|
|
188406
|
+
* @function toObject
|
|
188407
|
+
* @memberof UserDeletionRequested
|
|
188408
|
+
* @static
|
|
188409
|
+
* @param {UserDeletionRequested} message UserDeletionRequested
|
|
188410
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
188411
|
+
* @returns {Object.<string,*>} Plain object
|
|
188412
|
+
*/
|
|
188413
|
+
UserDeletionRequested.toObject = function toObject(message, options) {
|
|
188414
|
+
if (!options)
|
|
188415
|
+
options = {};
|
|
188416
|
+
var object = {};
|
|
188417
|
+
if (options.defaults) {
|
|
188418
|
+
object.requester = "";
|
|
188419
|
+
if ($util.Long) {
|
|
188420
|
+
var long = new $util.Long(0, 0, true);
|
|
188421
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
188422
|
+
} else
|
|
188423
|
+
object.timestamp = options.longs === String ? "0" : 0;
|
|
188424
|
+
object.deleteReason = options.enums === String ? "UNKNOWN_REASON" : 0;
|
|
188425
|
+
object.appClient = options.enums === String ? "USER_SERVICE_APP_CLIENT_UNKNOWN" : 0;
|
|
188426
|
+
}
|
|
188427
|
+
if (message.requester != null && message.hasOwnProperty("requester"))
|
|
188428
|
+
object.requester = message.requester;
|
|
188429
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
188430
|
+
if (typeof message.timestamp === "number")
|
|
188431
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
188432
|
+
else
|
|
188433
|
+
object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
|
|
188434
|
+
if (message.deleteReason != null && message.hasOwnProperty("deleteReason"))
|
|
188435
|
+
object.deleteReason = options.enums === String ? $root.userdomain.users.UserDeleteReason[message.deleteReason] : message.deleteReason;
|
|
188436
|
+
if (message.appClient != null && message.hasOwnProperty("appClient"))
|
|
188437
|
+
object.appClient = options.enums === String ? $root.UserServiceAppClient[message.appClient] : message.appClient;
|
|
188438
|
+
return object;
|
|
188439
|
+
};
|
|
188440
|
+
|
|
188441
|
+
/**
|
|
188442
|
+
* Converts this UserDeletionRequested to JSON.
|
|
188443
|
+
* @function toJSON
|
|
188444
|
+
* @memberof UserDeletionRequested
|
|
188445
|
+
* @instance
|
|
188446
|
+
* @returns {Object.<string,*>} JSON object
|
|
188447
|
+
*/
|
|
188448
|
+
UserDeletionRequested.prototype.toJSON = function toJSON() {
|
|
188449
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
188450
|
+
};
|
|
188451
|
+
|
|
188452
|
+
return UserDeletionRequested;
|
|
188453
|
+
})();
|
|
188454
|
+
|
|
188455
|
+
$root.UserDeletionRevoked = (function() {
|
|
188456
|
+
|
|
188457
|
+
/**
|
|
188458
|
+
* Properties of a UserDeletionRevoked.
|
|
188459
|
+
* @name IUserDeletionRevoked
|
|
188460
|
+
* @interface IUserDeletionRevoked
|
|
188461
|
+
* @property {string|null} [hsUserId] UserDeletionRevoked hsUserId
|
|
188462
|
+
* @property {number|Long|null} [timestamp] UserDeletionRevoked timestamp
|
|
188463
|
+
*/
|
|
188464
|
+
|
|
188465
|
+
/**
|
|
188466
|
+
* Constructs a new UserDeletionRevoked.
|
|
188467
|
+
* @name UserDeletionRevoked
|
|
188468
|
+
* @classdesc Sent when an administrative user revokes the deletion of a user account.
|
|
188469
|
+
*
|
|
188470
|
+
* Ex: If a user has outstanding balances on their account, the deletion request will be revoked
|
|
188471
|
+
* if the issue is not resolved within 15 days.
|
|
188472
|
+
* @implements IUserDeletionRevoked
|
|
188473
|
+
* @constructor
|
|
188474
|
+
* @param {IUserDeletionRevoked=} [properties] Properties to set
|
|
188475
|
+
*/
|
|
188476
|
+
function UserDeletionRevoked(properties) {
|
|
188477
|
+
if (properties)
|
|
188478
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
188479
|
+
if (properties[keys[i]] != null)
|
|
188480
|
+
this[keys[i]] = properties[keys[i]];
|
|
188481
|
+
}
|
|
188482
|
+
|
|
188483
|
+
/**
|
|
188484
|
+
* UserDeletionRevoked hsUserId.
|
|
188485
|
+
* @member {string} hsUserId
|
|
188486
|
+
* @memberof UserDeletionRevoked
|
|
188487
|
+
* @instance
|
|
188488
|
+
*/
|
|
188489
|
+
UserDeletionRevoked.prototype.hsUserId = "";
|
|
188490
|
+
|
|
188491
|
+
/**
|
|
188492
|
+
* UserDeletionRevoked timestamp.
|
|
188493
|
+
* @member {number|Long} timestamp
|
|
188494
|
+
* @memberof UserDeletionRevoked
|
|
188495
|
+
* @instance
|
|
188496
|
+
*/
|
|
188497
|
+
UserDeletionRevoked.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
188498
|
+
|
|
188499
|
+
/**
|
|
188500
|
+
* Creates a new UserDeletionRevoked instance using the specified properties.
|
|
188501
|
+
* @function create
|
|
188502
|
+
* @memberof UserDeletionRevoked
|
|
188503
|
+
* @static
|
|
188504
|
+
* @param {IUserDeletionRevoked=} [properties] Properties to set
|
|
188505
|
+
* @returns {UserDeletionRevoked} UserDeletionRevoked instance
|
|
188506
|
+
*/
|
|
188507
|
+
UserDeletionRevoked.create = function create(properties) {
|
|
188508
|
+
return new UserDeletionRevoked(properties);
|
|
188509
|
+
};
|
|
188510
|
+
|
|
188511
|
+
/**
|
|
188512
|
+
* Encodes the specified UserDeletionRevoked message. Does not implicitly {@link UserDeletionRevoked.verify|verify} messages.
|
|
188513
|
+
* @function encode
|
|
188514
|
+
* @memberof UserDeletionRevoked
|
|
188515
|
+
* @static
|
|
188516
|
+
* @param {IUserDeletionRevoked} message UserDeletionRevoked message or plain object to encode
|
|
188517
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
188518
|
+
* @returns {$protobuf.Writer} Writer
|
|
188519
|
+
*/
|
|
188520
|
+
UserDeletionRevoked.encode = function encode(message, writer) {
|
|
188521
|
+
if (!writer)
|
|
188522
|
+
writer = $Writer.create();
|
|
188523
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
188524
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
|
|
188525
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
188526
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp);
|
|
188527
|
+
return writer;
|
|
188528
|
+
};
|
|
188529
|
+
|
|
188530
|
+
/**
|
|
188531
|
+
* Encodes the specified UserDeletionRevoked message, length delimited. Does not implicitly {@link UserDeletionRevoked.verify|verify} messages.
|
|
188532
|
+
* @function encodeDelimited
|
|
188533
|
+
* @memberof UserDeletionRevoked
|
|
188534
|
+
* @static
|
|
188535
|
+
* @param {IUserDeletionRevoked} message UserDeletionRevoked message or plain object to encode
|
|
188536
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
188537
|
+
* @returns {$protobuf.Writer} Writer
|
|
188538
|
+
*/
|
|
188539
|
+
UserDeletionRevoked.encodeDelimited = function encodeDelimited(message, writer) {
|
|
188540
|
+
return this.encode(message, writer).ldelim();
|
|
188541
|
+
};
|
|
188542
|
+
|
|
188543
|
+
/**
|
|
188544
|
+
* Decodes a UserDeletionRevoked message from the specified reader or buffer.
|
|
188545
|
+
* @function decode
|
|
188546
|
+
* @memberof UserDeletionRevoked
|
|
188547
|
+
* @static
|
|
188548
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
188549
|
+
* @param {number} [length] Message length if known beforehand
|
|
188550
|
+
* @returns {UserDeletionRevoked} UserDeletionRevoked
|
|
188551
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
188552
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
188553
|
+
*/
|
|
188554
|
+
UserDeletionRevoked.decode = function decode(reader, length) {
|
|
188555
|
+
if (!(reader instanceof $Reader))
|
|
188556
|
+
reader = $Reader.create(reader);
|
|
188557
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserDeletionRevoked();
|
|
188558
|
+
while (reader.pos < end) {
|
|
188559
|
+
var tag = reader.uint32();
|
|
188560
|
+
switch (tag >>> 3) {
|
|
188561
|
+
case 1:
|
|
188562
|
+
message.hsUserId = reader.string();
|
|
188563
|
+
break;
|
|
188564
|
+
case 2:
|
|
188565
|
+
message.timestamp = reader.uint64();
|
|
188566
|
+
break;
|
|
188567
|
+
default:
|
|
188568
|
+
reader.skipType(tag & 7);
|
|
188569
|
+
break;
|
|
188570
|
+
}
|
|
188571
|
+
}
|
|
188572
|
+
return message;
|
|
188573
|
+
};
|
|
188574
|
+
|
|
188575
|
+
/**
|
|
188576
|
+
* Decodes a UserDeletionRevoked message from the specified reader or buffer, length delimited.
|
|
188577
|
+
* @function decodeDelimited
|
|
188578
|
+
* @memberof UserDeletionRevoked
|
|
188579
|
+
* @static
|
|
188580
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
188581
|
+
* @returns {UserDeletionRevoked} UserDeletionRevoked
|
|
188582
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
188583
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
188584
|
+
*/
|
|
188585
|
+
UserDeletionRevoked.decodeDelimited = function decodeDelimited(reader) {
|
|
188586
|
+
if (!(reader instanceof $Reader))
|
|
188587
|
+
reader = new $Reader(reader);
|
|
188588
|
+
return this.decode(reader, reader.uint32());
|
|
188589
|
+
};
|
|
188590
|
+
|
|
188591
|
+
/**
|
|
188592
|
+
* Verifies a UserDeletionRevoked message.
|
|
188593
|
+
* @function verify
|
|
188594
|
+
* @memberof UserDeletionRevoked
|
|
188595
|
+
* @static
|
|
188596
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
188597
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
188598
|
+
*/
|
|
188599
|
+
UserDeletionRevoked.verify = function verify(message) {
|
|
188600
|
+
if (typeof message !== "object" || message === null)
|
|
188601
|
+
return "object expected";
|
|
188602
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
188603
|
+
if (!$util.isString(message.hsUserId))
|
|
188604
|
+
return "hsUserId: string expected";
|
|
188605
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
188606
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
188607
|
+
return "timestamp: integer|Long expected";
|
|
188608
|
+
return null;
|
|
188609
|
+
};
|
|
188610
|
+
|
|
188611
|
+
/**
|
|
188612
|
+
* Creates a UserDeletionRevoked message from a plain object. Also converts values to their respective internal types.
|
|
188613
|
+
* @function fromObject
|
|
188614
|
+
* @memberof UserDeletionRevoked
|
|
188615
|
+
* @static
|
|
188616
|
+
* @param {Object.<string,*>} object Plain object
|
|
188617
|
+
* @returns {UserDeletionRevoked} UserDeletionRevoked
|
|
188618
|
+
*/
|
|
188619
|
+
UserDeletionRevoked.fromObject = function fromObject(object) {
|
|
188620
|
+
if (object instanceof $root.UserDeletionRevoked)
|
|
188621
|
+
return object;
|
|
188622
|
+
var message = new $root.UserDeletionRevoked();
|
|
188623
|
+
if (object.hsUserId != null)
|
|
188624
|
+
message.hsUserId = String(object.hsUserId);
|
|
188625
|
+
if (object.timestamp != null)
|
|
188626
|
+
if ($util.Long)
|
|
188627
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
188628
|
+
else if (typeof object.timestamp === "string")
|
|
188629
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
188630
|
+
else if (typeof object.timestamp === "number")
|
|
188631
|
+
message.timestamp = object.timestamp;
|
|
188632
|
+
else if (typeof object.timestamp === "object")
|
|
188633
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
188634
|
+
return message;
|
|
188635
|
+
};
|
|
188636
|
+
|
|
188637
|
+
/**
|
|
188638
|
+
* Creates a plain object from a UserDeletionRevoked message. Also converts values to other types if specified.
|
|
188639
|
+
* @function toObject
|
|
188640
|
+
* @memberof UserDeletionRevoked
|
|
188641
|
+
* @static
|
|
188642
|
+
* @param {UserDeletionRevoked} message UserDeletionRevoked
|
|
188643
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
188644
|
+
* @returns {Object.<string,*>} Plain object
|
|
188645
|
+
*/
|
|
188646
|
+
UserDeletionRevoked.toObject = function toObject(message, options) {
|
|
188647
|
+
if (!options)
|
|
188648
|
+
options = {};
|
|
188649
|
+
var object = {};
|
|
188650
|
+
if (options.defaults) {
|
|
188651
|
+
object.hsUserId = "";
|
|
188652
|
+
if ($util.Long) {
|
|
188653
|
+
var long = new $util.Long(0, 0, true);
|
|
188654
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
188655
|
+
} else
|
|
188656
|
+
object.timestamp = options.longs === String ? "0" : 0;
|
|
188657
|
+
}
|
|
188658
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
188659
|
+
object.hsUserId = message.hsUserId;
|
|
188660
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
188661
|
+
if (typeof message.timestamp === "number")
|
|
188662
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
188663
|
+
else
|
|
188664
|
+
object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
|
|
188665
|
+
return object;
|
|
188666
|
+
};
|
|
188667
|
+
|
|
188668
|
+
/**
|
|
188669
|
+
* Converts this UserDeletionRevoked to JSON.
|
|
188670
|
+
* @function toJSON
|
|
188671
|
+
* @memberof UserDeletionRevoked
|
|
188672
|
+
* @instance
|
|
188673
|
+
* @returns {Object.<string,*>} JSON object
|
|
188674
|
+
*/
|
|
188675
|
+
UserDeletionRevoked.prototype.toJSON = function toJSON() {
|
|
188676
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
188677
|
+
};
|
|
188678
|
+
|
|
188679
|
+
return UserDeletionRevoked;
|
|
188680
|
+
})();
|
|
188681
|
+
|
|
188682
|
+
/**
|
|
188683
|
+
* User Deletion Request Origin
|
|
188684
|
+
*
|
|
188685
|
+
* A request from the compliance teams to provide the origin of the user deletion request
|
|
188686
|
+
* @name UserServiceAppClient
|
|
188687
|
+
* @enum {string}
|
|
188688
|
+
* @property {number} USER_SERVICE_APP_CLIENT_UNKNOWN=0 USER_SERVICE_APP_CLIENT_UNKNOWN value
|
|
188689
|
+
* @property {number} USER_SERVICE_APP_CLIENT_HEADSPACE_APP=1 USER_SERVICE_APP_CLIENT_HEADSPACE_APP value
|
|
188690
|
+
* @property {number} USER_SERVICE_APP_CLIENT_HEADSPACE_CARE_APP=2 USER_SERVICE_APP_CLIENT_HEADSPACE_CARE_APP value
|
|
188691
|
+
* @property {number} USER_SERVICE_APP_CLIENT_CROCPIT=3 USER_SERVICE_APP_CLIENT_CROCPIT value
|
|
188692
|
+
*/
|
|
188693
|
+
$root.UserServiceAppClient = (function() {
|
|
188694
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
188695
|
+
values[valuesById[0] = "USER_SERVICE_APP_CLIENT_UNKNOWN"] = 0;
|
|
188696
|
+
values[valuesById[1] = "USER_SERVICE_APP_CLIENT_HEADSPACE_APP"] = 1;
|
|
188697
|
+
values[valuesById[2] = "USER_SERVICE_APP_CLIENT_HEADSPACE_CARE_APP"] = 2;
|
|
188698
|
+
values[valuesById[3] = "USER_SERVICE_APP_CLIENT_CROCPIT"] = 3;
|
|
188699
|
+
return values;
|
|
188700
|
+
})();
|
|
188701
|
+
|
|
187916
188702
|
$root.VirginPulseAccountLinked = (function() {
|
|
187917
188703
|
|
|
187918
188704
|
/**
|