@headspace/protos-events 1.824.0 → 1.825.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 +134 -0
- package/lib/index.js +326 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -71823,6 +71823,140 @@ export namespace CmsAccessMemberDisenrolled {
|
|
|
71823
71823
|
type $Shape = CmsAccessMemberDisenrolled.$Properties;
|
|
71824
71824
|
}
|
|
71825
71825
|
|
|
71826
|
+
/**
|
|
71827
|
+
* Properties of a CmsAccessEnrollmentInitiated.
|
|
71828
|
+
* @deprecated Use CmsAccessEnrollmentInitiated.$Properties instead.
|
|
71829
|
+
*/
|
|
71830
|
+
export interface ICmsAccessEnrollmentInitiated extends CmsAccessEnrollmentInitiated.$Properties {
|
|
71831
|
+
}
|
|
71832
|
+
|
|
71833
|
+
/**
|
|
71834
|
+
* Published immediately when a beneficiary starts enrollment, potentially
|
|
71835
|
+
* before eligibility is verified with CMS.
|
|
71836
|
+
* Fired by: hs-cms-access-service
|
|
71837
|
+
* Responsible team: Health Plans
|
|
71838
|
+
*/
|
|
71839
|
+
export class CmsAccessEnrollmentInitiated {
|
|
71840
|
+
|
|
71841
|
+
/**
|
|
71842
|
+
* Constructs a new CmsAccessEnrollmentInitiated.
|
|
71843
|
+
* @param [properties] Properties to set
|
|
71844
|
+
*/
|
|
71845
|
+
constructor(properties?: CmsAccessEnrollmentInitiated.$Properties);
|
|
71846
|
+
|
|
71847
|
+
/** Unknown fields preserved while decoding */
|
|
71848
|
+
$unknowns?: Uint8Array[];
|
|
71849
|
+
|
|
71850
|
+
/** CmsAccessEnrollmentInitiated timestamp. */
|
|
71851
|
+
timestamp: (number|Long);
|
|
71852
|
+
|
|
71853
|
+
/** CmsAccessEnrollmentInitiated hsUserId. */
|
|
71854
|
+
hsUserId: string;
|
|
71855
|
+
|
|
71856
|
+
/** CmsAccessEnrollmentInitiated trackingId. */
|
|
71857
|
+
trackingId: string;
|
|
71858
|
+
|
|
71859
|
+
/**
|
|
71860
|
+
* Creates a new CmsAccessEnrollmentInitiated instance using the specified properties.
|
|
71861
|
+
* @param [properties] Properties to set
|
|
71862
|
+
* @returns CmsAccessEnrollmentInitiated instance
|
|
71863
|
+
*/
|
|
71864
|
+
static create(properties: CmsAccessEnrollmentInitiated.$Shape): CmsAccessEnrollmentInitiated & CmsAccessEnrollmentInitiated.$Shape;
|
|
71865
|
+
static create(properties?: CmsAccessEnrollmentInitiated.$Properties): CmsAccessEnrollmentInitiated;
|
|
71866
|
+
|
|
71867
|
+
/**
|
|
71868
|
+
* Encodes the specified CmsAccessEnrollmentInitiated message. Does not implicitly {@link CmsAccessEnrollmentInitiated.verify|verify} messages.
|
|
71869
|
+
* @param message CmsAccessEnrollmentInitiated message or plain object to encode
|
|
71870
|
+
* @param [writer] Writer to encode to
|
|
71871
|
+
* @returns Writer
|
|
71872
|
+
*/
|
|
71873
|
+
static encode(message: CmsAccessEnrollmentInitiated.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
71874
|
+
|
|
71875
|
+
/**
|
|
71876
|
+
* Encodes the specified CmsAccessEnrollmentInitiated message, length delimited. Does not implicitly {@link CmsAccessEnrollmentInitiated.verify|verify} messages.
|
|
71877
|
+
* @param message CmsAccessEnrollmentInitiated message or plain object to encode
|
|
71878
|
+
* @param [writer] Writer to encode to
|
|
71879
|
+
* @returns Writer
|
|
71880
|
+
*/
|
|
71881
|
+
static encodeDelimited(message: CmsAccessEnrollmentInitiated.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
71882
|
+
|
|
71883
|
+
/**
|
|
71884
|
+
* Decodes a CmsAccessEnrollmentInitiated message from the specified reader or buffer.
|
|
71885
|
+
* @param reader Reader or buffer to decode from
|
|
71886
|
+
* @param [length] Message length if known beforehand
|
|
71887
|
+
* @returns {CmsAccessEnrollmentInitiated & CmsAccessEnrollmentInitiated.$Shape} CmsAccessEnrollmentInitiated
|
|
71888
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
71889
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
71890
|
+
*/
|
|
71891
|
+
static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): CmsAccessEnrollmentInitiated & CmsAccessEnrollmentInitiated.$Shape;
|
|
71892
|
+
|
|
71893
|
+
/**
|
|
71894
|
+
* Decodes a CmsAccessEnrollmentInitiated message from the specified reader or buffer, length delimited.
|
|
71895
|
+
* @param reader Reader or buffer to decode from
|
|
71896
|
+
* @returns {CmsAccessEnrollmentInitiated & CmsAccessEnrollmentInitiated.$Shape} CmsAccessEnrollmentInitiated
|
|
71897
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
71898
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
71899
|
+
*/
|
|
71900
|
+
static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): CmsAccessEnrollmentInitiated & CmsAccessEnrollmentInitiated.$Shape;
|
|
71901
|
+
|
|
71902
|
+
/**
|
|
71903
|
+
* Verifies a CmsAccessEnrollmentInitiated message.
|
|
71904
|
+
* @param message Plain object to verify
|
|
71905
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
71906
|
+
*/
|
|
71907
|
+
static verify(message: { [k: string]: any }): (string|null);
|
|
71908
|
+
|
|
71909
|
+
/**
|
|
71910
|
+
* Creates a CmsAccessEnrollmentInitiated message from a plain object. Also converts values to their respective internal types.
|
|
71911
|
+
* @param object Plain object
|
|
71912
|
+
* @returns CmsAccessEnrollmentInitiated
|
|
71913
|
+
*/
|
|
71914
|
+
static fromObject(object: { [k: string]: any }): CmsAccessEnrollmentInitiated;
|
|
71915
|
+
|
|
71916
|
+
/**
|
|
71917
|
+
* Creates a plain object from a CmsAccessEnrollmentInitiated message. Also converts values to other types if specified.
|
|
71918
|
+
* @param message CmsAccessEnrollmentInitiated
|
|
71919
|
+
* @param [options] Conversion options
|
|
71920
|
+
* @returns Plain object
|
|
71921
|
+
*/
|
|
71922
|
+
static toObject(message: CmsAccessEnrollmentInitiated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
71923
|
+
|
|
71924
|
+
/**
|
|
71925
|
+
* Converts this CmsAccessEnrollmentInitiated to JSON.
|
|
71926
|
+
* @returns JSON object
|
|
71927
|
+
*/
|
|
71928
|
+
toJSON(): { [k: string]: any };
|
|
71929
|
+
|
|
71930
|
+
/**
|
|
71931
|
+
* Gets the type url for CmsAccessEnrollmentInitiated
|
|
71932
|
+
* @param [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
71933
|
+
* @returns The type url
|
|
71934
|
+
*/
|
|
71935
|
+
static getTypeUrl(prefix?: string): string;
|
|
71936
|
+
}
|
|
71937
|
+
|
|
71938
|
+
export namespace CmsAccessEnrollmentInitiated {
|
|
71939
|
+
|
|
71940
|
+
/** Properties of a CmsAccessEnrollmentInitiated. */
|
|
71941
|
+
interface $Properties {
|
|
71942
|
+
|
|
71943
|
+
/** CmsAccessEnrollmentInitiated timestamp */
|
|
71944
|
+
timestamp?: (number|Long|null);
|
|
71945
|
+
|
|
71946
|
+
/** CmsAccessEnrollmentInitiated hsUserId */
|
|
71947
|
+
hsUserId?: (string|null);
|
|
71948
|
+
|
|
71949
|
+
/** CmsAccessEnrollmentInitiated trackingId */
|
|
71950
|
+
trackingId?: (string|null);
|
|
71951
|
+
|
|
71952
|
+
/** Unknown fields preserved while decoding */
|
|
71953
|
+
$unknowns?: Uint8Array[];
|
|
71954
|
+
}
|
|
71955
|
+
|
|
71956
|
+
/** Shape of a CmsAccessEnrollmentInitiated. */
|
|
71957
|
+
type $Shape = CmsAccessEnrollmentInitiated.$Properties;
|
|
71958
|
+
}
|
|
71959
|
+
|
|
71826
71960
|
/**
|
|
71827
71961
|
* Properties of a TaggedCustomField.
|
|
71828
71962
|
* @deprecated Use TaggedCustomField.$Properties instead.
|
package/lib/index.js
CHANGED
|
@@ -208596,6 +208596,332 @@ $root.CmsAccessMemberDisenrolled = (function() {
|
|
|
208596
208596
|
return CmsAccessMemberDisenrolled;
|
|
208597
208597
|
})();
|
|
208598
208598
|
|
|
208599
|
+
$root.CmsAccessEnrollmentInitiated = (function() {
|
|
208600
|
+
|
|
208601
|
+
/**
|
|
208602
|
+
* Properties of a CmsAccessEnrollmentInitiated.
|
|
208603
|
+
* @typedef {Object} CmsAccessEnrollmentInitiated.$Properties
|
|
208604
|
+
* @property {number|Long|null} [timestamp] CmsAccessEnrollmentInitiated timestamp
|
|
208605
|
+
* @property {string|null} [hsUserId] CmsAccessEnrollmentInitiated hsUserId
|
|
208606
|
+
* @property {string|null} [trackingId] CmsAccessEnrollmentInitiated trackingId
|
|
208607
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
208608
|
+
*/
|
|
208609
|
+
|
|
208610
|
+
/**
|
|
208611
|
+
* Properties of a CmsAccessEnrollmentInitiated.
|
|
208612
|
+
* @name ICmsAccessEnrollmentInitiated
|
|
208613
|
+
* @interface ICmsAccessEnrollmentInitiated
|
|
208614
|
+
* @augments CmsAccessEnrollmentInitiated.$Properties
|
|
208615
|
+
* @deprecated Use CmsAccessEnrollmentInitiated.$Properties instead.
|
|
208616
|
+
*/
|
|
208617
|
+
|
|
208618
|
+
/**
|
|
208619
|
+
* Shape of a CmsAccessEnrollmentInitiated.
|
|
208620
|
+
* @typedef {CmsAccessEnrollmentInitiated.$Properties} CmsAccessEnrollmentInitiated.$Shape
|
|
208621
|
+
*/
|
|
208622
|
+
|
|
208623
|
+
/**
|
|
208624
|
+
* Constructs a new CmsAccessEnrollmentInitiated.
|
|
208625
|
+
* @name CmsAccessEnrollmentInitiated
|
|
208626
|
+
* @classdesc Published immediately when a beneficiary starts enrollment, potentially
|
|
208627
|
+
* before eligibility is verified with CMS.
|
|
208628
|
+
* Fired by: hs-cms-access-service
|
|
208629
|
+
* Responsible team: Health Plans
|
|
208630
|
+
* @constructor
|
|
208631
|
+
* @param {CmsAccessEnrollmentInitiated.$Properties=} [properties] Properties to set
|
|
208632
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
208633
|
+
*/
|
|
208634
|
+
function CmsAccessEnrollmentInitiated(properties) {
|
|
208635
|
+
if (properties)
|
|
208636
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
208637
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
208638
|
+
this[keys[i]] = properties[keys[i]];
|
|
208639
|
+
}
|
|
208640
|
+
|
|
208641
|
+
/**
|
|
208642
|
+
* CmsAccessEnrollmentInitiated timestamp.
|
|
208643
|
+
* @member {number|Long} timestamp
|
|
208644
|
+
* @memberof CmsAccessEnrollmentInitiated
|
|
208645
|
+
* @instance
|
|
208646
|
+
*/
|
|
208647
|
+
CmsAccessEnrollmentInitiated.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
208648
|
+
|
|
208649
|
+
/**
|
|
208650
|
+
* CmsAccessEnrollmentInitiated hsUserId.
|
|
208651
|
+
* @member {string} hsUserId
|
|
208652
|
+
* @memberof CmsAccessEnrollmentInitiated
|
|
208653
|
+
* @instance
|
|
208654
|
+
*/
|
|
208655
|
+
CmsAccessEnrollmentInitiated.prototype.hsUserId = "";
|
|
208656
|
+
|
|
208657
|
+
/**
|
|
208658
|
+
* CmsAccessEnrollmentInitiated trackingId.
|
|
208659
|
+
* @member {string} trackingId
|
|
208660
|
+
* @memberof CmsAccessEnrollmentInitiated
|
|
208661
|
+
* @instance
|
|
208662
|
+
*/
|
|
208663
|
+
CmsAccessEnrollmentInitiated.prototype.trackingId = "";
|
|
208664
|
+
|
|
208665
|
+
/**
|
|
208666
|
+
* Creates a new CmsAccessEnrollmentInitiated instance using the specified properties.
|
|
208667
|
+
* @function create
|
|
208668
|
+
* @memberof CmsAccessEnrollmentInitiated
|
|
208669
|
+
* @static
|
|
208670
|
+
* @param {CmsAccessEnrollmentInitiated.$Properties=} [properties] Properties to set
|
|
208671
|
+
* @returns {CmsAccessEnrollmentInitiated} CmsAccessEnrollmentInitiated instance
|
|
208672
|
+
* @type {{
|
|
208673
|
+
* (properties: CmsAccessEnrollmentInitiated.$Shape): CmsAccessEnrollmentInitiated & CmsAccessEnrollmentInitiated.$Shape;
|
|
208674
|
+
* (properties?: CmsAccessEnrollmentInitiated.$Properties): CmsAccessEnrollmentInitiated;
|
|
208675
|
+
* }}
|
|
208676
|
+
*/
|
|
208677
|
+
CmsAccessEnrollmentInitiated.create = function create(properties) {
|
|
208678
|
+
return new CmsAccessEnrollmentInitiated(properties);
|
|
208679
|
+
};
|
|
208680
|
+
|
|
208681
|
+
/**
|
|
208682
|
+
* Encodes the specified CmsAccessEnrollmentInitiated message. Does not implicitly {@link CmsAccessEnrollmentInitiated.verify|verify} messages.
|
|
208683
|
+
* @function encode
|
|
208684
|
+
* @memberof CmsAccessEnrollmentInitiated
|
|
208685
|
+
* @static
|
|
208686
|
+
* @param {CmsAccessEnrollmentInitiated.$Properties} message CmsAccessEnrollmentInitiated message or plain object to encode
|
|
208687
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
208688
|
+
* @returns {$protobuf.Writer} Writer
|
|
208689
|
+
*/
|
|
208690
|
+
CmsAccessEnrollmentInitiated.encode = function encode(message, writer) {
|
|
208691
|
+
if (!writer)
|
|
208692
|
+
writer = $Writer.create();
|
|
208693
|
+
if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp"))
|
|
208694
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
|
|
208695
|
+
if (message.hsUserId != null && Object.hasOwnProperty.call(message, "hsUserId"))
|
|
208696
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.hsUserId);
|
|
208697
|
+
if (message.trackingId != null && Object.hasOwnProperty.call(message, "trackingId"))
|
|
208698
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.trackingId);
|
|
208699
|
+
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
208700
|
+
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
208701
|
+
writer.raw(message.$unknowns[i]);
|
|
208702
|
+
return writer;
|
|
208703
|
+
};
|
|
208704
|
+
|
|
208705
|
+
/**
|
|
208706
|
+
* Encodes the specified CmsAccessEnrollmentInitiated message, length delimited. Does not implicitly {@link CmsAccessEnrollmentInitiated.verify|verify} messages.
|
|
208707
|
+
* @function encodeDelimited
|
|
208708
|
+
* @memberof CmsAccessEnrollmentInitiated
|
|
208709
|
+
* @static
|
|
208710
|
+
* @param {CmsAccessEnrollmentInitiated.$Properties} message CmsAccessEnrollmentInitiated message or plain object to encode
|
|
208711
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
208712
|
+
* @returns {$protobuf.Writer} Writer
|
|
208713
|
+
*/
|
|
208714
|
+
CmsAccessEnrollmentInitiated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
208715
|
+
return this.encode(message, writer).ldelim();
|
|
208716
|
+
};
|
|
208717
|
+
|
|
208718
|
+
/**
|
|
208719
|
+
* Decodes a CmsAccessEnrollmentInitiated message from the specified reader or buffer.
|
|
208720
|
+
* @function decode
|
|
208721
|
+
* @memberof CmsAccessEnrollmentInitiated
|
|
208722
|
+
* @static
|
|
208723
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
208724
|
+
* @param {number} [length] Message length if known beforehand
|
|
208725
|
+
* @returns {CmsAccessEnrollmentInitiated & CmsAccessEnrollmentInitiated.$Shape} CmsAccessEnrollmentInitiated
|
|
208726
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
208727
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
208728
|
+
*/
|
|
208729
|
+
CmsAccessEnrollmentInitiated.decode = function decode(reader, length, _end, _depth, _target) {
|
|
208730
|
+
if (!(reader instanceof $Reader))
|
|
208731
|
+
reader = $Reader.create(reader);
|
|
208732
|
+
if (_depth === undefined)
|
|
208733
|
+
_depth = 0;
|
|
208734
|
+
if (_depth > $Reader.recursionLimit)
|
|
208735
|
+
throw Error("max depth exceeded");
|
|
208736
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.CmsAccessEnrollmentInitiated(), value;
|
|
208737
|
+
while (reader.pos < end) {
|
|
208738
|
+
var start = reader.pos;
|
|
208739
|
+
var tag = reader.tag();
|
|
208740
|
+
if (tag === _end) {
|
|
208741
|
+
_end = undefined;
|
|
208742
|
+
break;
|
|
208743
|
+
}
|
|
208744
|
+
var wireType = tag & 7;
|
|
208745
|
+
switch (tag >>>= 3) {
|
|
208746
|
+
case 1: {
|
|
208747
|
+
if (wireType !== 0)
|
|
208748
|
+
break;
|
|
208749
|
+
if (typeof (value = reader.uint64()) === "object" ? value.low || value.high : value !== 0)
|
|
208750
|
+
message.timestamp = value;
|
|
208751
|
+
else
|
|
208752
|
+
delete message.timestamp;
|
|
208753
|
+
continue;
|
|
208754
|
+
}
|
|
208755
|
+
case 2: {
|
|
208756
|
+
if (wireType !== 2)
|
|
208757
|
+
break;
|
|
208758
|
+
if ((value = reader.string()).length)
|
|
208759
|
+
message.hsUserId = value;
|
|
208760
|
+
else
|
|
208761
|
+
delete message.hsUserId;
|
|
208762
|
+
continue;
|
|
208763
|
+
}
|
|
208764
|
+
case 3: {
|
|
208765
|
+
if (wireType !== 2)
|
|
208766
|
+
break;
|
|
208767
|
+
if ((value = reader.string()).length)
|
|
208768
|
+
message.trackingId = value;
|
|
208769
|
+
else
|
|
208770
|
+
delete message.trackingId;
|
|
208771
|
+
continue;
|
|
208772
|
+
}
|
|
208773
|
+
}
|
|
208774
|
+
reader.skipType(wireType, _depth, tag);
|
|
208775
|
+
$util.makeProp(message, "$unknowns", false);
|
|
208776
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
208777
|
+
}
|
|
208778
|
+
if (_end !== undefined)
|
|
208779
|
+
throw Error("missing end group");
|
|
208780
|
+
return message;
|
|
208781
|
+
};
|
|
208782
|
+
|
|
208783
|
+
/**
|
|
208784
|
+
* Decodes a CmsAccessEnrollmentInitiated message from the specified reader or buffer, length delimited.
|
|
208785
|
+
* @function decodeDelimited
|
|
208786
|
+
* @memberof CmsAccessEnrollmentInitiated
|
|
208787
|
+
* @static
|
|
208788
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
208789
|
+
* @returns {CmsAccessEnrollmentInitiated & CmsAccessEnrollmentInitiated.$Shape} CmsAccessEnrollmentInitiated
|
|
208790
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
208791
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
208792
|
+
*/
|
|
208793
|
+
CmsAccessEnrollmentInitiated.decodeDelimited = function decodeDelimited(reader) {
|
|
208794
|
+
if (!(reader instanceof $Reader))
|
|
208795
|
+
reader = new $Reader(reader);
|
|
208796
|
+
return this.decode(reader, reader.uint32());
|
|
208797
|
+
};
|
|
208798
|
+
|
|
208799
|
+
/**
|
|
208800
|
+
* Verifies a CmsAccessEnrollmentInitiated message.
|
|
208801
|
+
* @function verify
|
|
208802
|
+
* @memberof CmsAccessEnrollmentInitiated
|
|
208803
|
+
* @static
|
|
208804
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
208805
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
208806
|
+
*/
|
|
208807
|
+
CmsAccessEnrollmentInitiated.verify = function verify(message, _depth) {
|
|
208808
|
+
if (typeof message !== "object" || message === null)
|
|
208809
|
+
return "object expected";
|
|
208810
|
+
if (_depth === undefined)
|
|
208811
|
+
_depth = 0;
|
|
208812
|
+
if (_depth > $util.recursionLimit)
|
|
208813
|
+
return "max depth exceeded";
|
|
208814
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
208815
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
208816
|
+
return "timestamp: integer|Long expected";
|
|
208817
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
208818
|
+
if (!$util.isString(message.hsUserId))
|
|
208819
|
+
return "hsUserId: string expected";
|
|
208820
|
+
if (message.trackingId != null && message.hasOwnProperty("trackingId"))
|
|
208821
|
+
if (!$util.isString(message.trackingId))
|
|
208822
|
+
return "trackingId: string expected";
|
|
208823
|
+
return null;
|
|
208824
|
+
};
|
|
208825
|
+
|
|
208826
|
+
/**
|
|
208827
|
+
* Creates a CmsAccessEnrollmentInitiated message from a plain object. Also converts values to their respective internal types.
|
|
208828
|
+
* @function fromObject
|
|
208829
|
+
* @memberof CmsAccessEnrollmentInitiated
|
|
208830
|
+
* @static
|
|
208831
|
+
* @param {Object.<string,*>} object Plain object
|
|
208832
|
+
* @returns {CmsAccessEnrollmentInitiated} CmsAccessEnrollmentInitiated
|
|
208833
|
+
*/
|
|
208834
|
+
CmsAccessEnrollmentInitiated.fromObject = function fromObject(object, _depth) {
|
|
208835
|
+
if (object instanceof $root.CmsAccessEnrollmentInitiated)
|
|
208836
|
+
return object;
|
|
208837
|
+
if (_depth === undefined)
|
|
208838
|
+
_depth = 0;
|
|
208839
|
+
if (_depth > $util.recursionLimit)
|
|
208840
|
+
throw Error("max depth exceeded");
|
|
208841
|
+
var message = new $root.CmsAccessEnrollmentInitiated();
|
|
208842
|
+
if (object.timestamp != null)
|
|
208843
|
+
if (typeof object.timestamp === "object" ? object.timestamp.low || object.timestamp.high : Number(object.timestamp) !== 0)
|
|
208844
|
+
if ($util.Long)
|
|
208845
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
208846
|
+
else if (typeof object.timestamp === "string")
|
|
208847
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
208848
|
+
else if (typeof object.timestamp === "number")
|
|
208849
|
+
message.timestamp = object.timestamp;
|
|
208850
|
+
else if (typeof object.timestamp === "object")
|
|
208851
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
208852
|
+
if (object.hsUserId != null)
|
|
208853
|
+
if (typeof object.hsUserId !== "string" || object.hsUserId.length)
|
|
208854
|
+
message.hsUserId = String(object.hsUserId);
|
|
208855
|
+
if (object.trackingId != null)
|
|
208856
|
+
if (typeof object.trackingId !== "string" || object.trackingId.length)
|
|
208857
|
+
message.trackingId = String(object.trackingId);
|
|
208858
|
+
return message;
|
|
208859
|
+
};
|
|
208860
|
+
|
|
208861
|
+
/**
|
|
208862
|
+
* Creates a plain object from a CmsAccessEnrollmentInitiated message. Also converts values to other types if specified.
|
|
208863
|
+
* @function toObject
|
|
208864
|
+
* @memberof CmsAccessEnrollmentInitiated
|
|
208865
|
+
* @static
|
|
208866
|
+
* @param {CmsAccessEnrollmentInitiated} message CmsAccessEnrollmentInitiated
|
|
208867
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
208868
|
+
* @returns {Object.<string,*>} Plain object
|
|
208869
|
+
*/
|
|
208870
|
+
CmsAccessEnrollmentInitiated.toObject = function toObject(message, options) {
|
|
208871
|
+
if (!options)
|
|
208872
|
+
options = {};
|
|
208873
|
+
var object = {};
|
|
208874
|
+
if (options.defaults) {
|
|
208875
|
+
if ($util.Long) {
|
|
208876
|
+
var long = new $util.Long(0, 0, true);
|
|
208877
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
208878
|
+
} else
|
|
208879
|
+
object.timestamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
208880
|
+
object.hsUserId = "";
|
|
208881
|
+
object.trackingId = "";
|
|
208882
|
+
}
|
|
208883
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
208884
|
+
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
208885
|
+
object.timestamp = typeof message.timestamp === "number" ? BigInt(message.timestamp) : $util.Long.fromBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0, true).toBigInt();
|
|
208886
|
+
else if (typeof message.timestamp === "number")
|
|
208887
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
208888
|
+
else
|
|
208889
|
+
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;
|
|
208890
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
208891
|
+
object.hsUserId = message.hsUserId;
|
|
208892
|
+
if (message.trackingId != null && message.hasOwnProperty("trackingId"))
|
|
208893
|
+
object.trackingId = message.trackingId;
|
|
208894
|
+
return object;
|
|
208895
|
+
};
|
|
208896
|
+
|
|
208897
|
+
/**
|
|
208898
|
+
* Converts this CmsAccessEnrollmentInitiated to JSON.
|
|
208899
|
+
* @function toJSON
|
|
208900
|
+
* @memberof CmsAccessEnrollmentInitiated
|
|
208901
|
+
* @instance
|
|
208902
|
+
* @returns {Object.<string,*>} JSON object
|
|
208903
|
+
*/
|
|
208904
|
+
CmsAccessEnrollmentInitiated.prototype.toJSON = function toJSON() {
|
|
208905
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
208906
|
+
};
|
|
208907
|
+
|
|
208908
|
+
/**
|
|
208909
|
+
* Gets the type url for CmsAccessEnrollmentInitiated
|
|
208910
|
+
* @function getTypeUrl
|
|
208911
|
+
* @memberof CmsAccessEnrollmentInitiated
|
|
208912
|
+
* @static
|
|
208913
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
208914
|
+
* @returns {string} The type url
|
|
208915
|
+
*/
|
|
208916
|
+
CmsAccessEnrollmentInitiated.getTypeUrl = function getTypeUrl(prefix) {
|
|
208917
|
+
if (prefix === undefined)
|
|
208918
|
+
prefix = "type.googleapis.com";
|
|
208919
|
+
return prefix + "/CmsAccessEnrollmentInitiated";
|
|
208920
|
+
};
|
|
208921
|
+
|
|
208922
|
+
return CmsAccessEnrollmentInitiated;
|
|
208923
|
+
})();
|
|
208924
|
+
|
|
208599
208925
|
$root.TaggedCustomField = (function() {
|
|
208600
208926
|
|
|
208601
208927
|
/**
|
package/package.json
CHANGED