@headspace/protos-events 1.656.0 → 1.657.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 +140 -0
- package/lib/index.js +450 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -53074,6 +53074,146 @@ export enum EligibilitySourceType {
|
|
|
53074
53074
|
ELIGIBILITY_SOURCE_TYPE_GINGER = 4
|
|
53075
53075
|
}
|
|
53076
53076
|
|
|
53077
|
+
/** IdentityVerificationType enum. */
|
|
53078
|
+
export enum IdentityVerificationType {
|
|
53079
|
+
IDENTITY_VERIFICATION_TYPE_UNKNOWN = 0,
|
|
53080
|
+
IDENTITY_VERIFICATION_TYPE_NONE = 1,
|
|
53081
|
+
IDENTITY_VERIFICATION_TYPE_COUNTRY_DOB = 2,
|
|
53082
|
+
IDENTITY_VERIFICATION_TYPE_LASTNAME_COUNTRY_DOB = 3
|
|
53083
|
+
}
|
|
53084
|
+
|
|
53085
|
+
/** VerificationType enum. */
|
|
53086
|
+
export enum VerificationType {
|
|
53087
|
+
VERIFICATION_TYPE_UNKNOWN = 0,
|
|
53088
|
+
VERIFICATION_TYPE_EMAIL_DOMAIN = 1,
|
|
53089
|
+
VERIFICATION_TYPE_EMAIL = 2,
|
|
53090
|
+
VERIFICATION_TYPE_D2C_COACHING = 3,
|
|
53091
|
+
VERIFICATION_TYPE_D2C_THERAPY = 4,
|
|
53092
|
+
VERIFICATION_TYPE_D2C_CARE_UPSELL = 5,
|
|
53093
|
+
VERIFICATION_TYPE_WORK_ID = 6,
|
|
53094
|
+
VERIFICATION_TYPE_KP_NATIONAL_JWT = 7
|
|
53095
|
+
}
|
|
53096
|
+
|
|
53097
|
+
/** Properties of an EligibilityCollective. */
|
|
53098
|
+
export interface IEligibilityCollective {
|
|
53099
|
+
|
|
53100
|
+
/** EligibilityCollective uuid */
|
|
53101
|
+
uuid?: (string|null);
|
|
53102
|
+
|
|
53103
|
+
/** EligibilityCollective veritificationType */
|
|
53104
|
+
veritificationType?: (VerificationType|null);
|
|
53105
|
+
|
|
53106
|
+
/** EligibilityCollective identityVeritificationType */
|
|
53107
|
+
identityVeritificationType?: (IdentityVerificationType|null);
|
|
53108
|
+
|
|
53109
|
+
/** EligibilityCollective createdAtTimestamp */
|
|
53110
|
+
createdAtTimestamp?: (number|Long|null);
|
|
53111
|
+
|
|
53112
|
+
/** EligibilityCollective updatedAtTimestamp */
|
|
53113
|
+
updatedAtTimestamp?: (number|Long|null);
|
|
53114
|
+
|
|
53115
|
+
/** EligibilityCollective deletedAtTimestamp */
|
|
53116
|
+
deletedAtTimestamp?: (number|Long|null);
|
|
53117
|
+
}
|
|
53118
|
+
|
|
53119
|
+
/** Represents an EligibilityCollective. */
|
|
53120
|
+
export class EligibilityCollective implements IEligibilityCollective {
|
|
53121
|
+
|
|
53122
|
+
/**
|
|
53123
|
+
* Constructs a new EligibilityCollective.
|
|
53124
|
+
* @param [properties] Properties to set
|
|
53125
|
+
*/
|
|
53126
|
+
constructor(properties?: IEligibilityCollective);
|
|
53127
|
+
|
|
53128
|
+
/** EligibilityCollective uuid. */
|
|
53129
|
+
public uuid: string;
|
|
53130
|
+
|
|
53131
|
+
/** EligibilityCollective veritificationType. */
|
|
53132
|
+
public veritificationType: VerificationType;
|
|
53133
|
+
|
|
53134
|
+
/** EligibilityCollective identityVeritificationType. */
|
|
53135
|
+
public identityVeritificationType: IdentityVerificationType;
|
|
53136
|
+
|
|
53137
|
+
/** EligibilityCollective createdAtTimestamp. */
|
|
53138
|
+
public createdAtTimestamp: (number|Long);
|
|
53139
|
+
|
|
53140
|
+
/** EligibilityCollective updatedAtTimestamp. */
|
|
53141
|
+
public updatedAtTimestamp: (number|Long);
|
|
53142
|
+
|
|
53143
|
+
/** EligibilityCollective deletedAtTimestamp. */
|
|
53144
|
+
public deletedAtTimestamp: (number|Long);
|
|
53145
|
+
|
|
53146
|
+
/**
|
|
53147
|
+
* Creates a new EligibilityCollective instance using the specified properties.
|
|
53148
|
+
* @param [properties] Properties to set
|
|
53149
|
+
* @returns EligibilityCollective instance
|
|
53150
|
+
*/
|
|
53151
|
+
public static create(properties?: IEligibilityCollective): EligibilityCollective;
|
|
53152
|
+
|
|
53153
|
+
/**
|
|
53154
|
+
* Encodes the specified EligibilityCollective message. Does not implicitly {@link EligibilityCollective.verify|verify} messages.
|
|
53155
|
+
* @param message EligibilityCollective message or plain object to encode
|
|
53156
|
+
* @param [writer] Writer to encode to
|
|
53157
|
+
* @returns Writer
|
|
53158
|
+
*/
|
|
53159
|
+
public static encode(message: IEligibilityCollective, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
53160
|
+
|
|
53161
|
+
/**
|
|
53162
|
+
* Encodes the specified EligibilityCollective message, length delimited. Does not implicitly {@link EligibilityCollective.verify|verify} messages.
|
|
53163
|
+
* @param message EligibilityCollective message or plain object to encode
|
|
53164
|
+
* @param [writer] Writer to encode to
|
|
53165
|
+
* @returns Writer
|
|
53166
|
+
*/
|
|
53167
|
+
public static encodeDelimited(message: IEligibilityCollective, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
53168
|
+
|
|
53169
|
+
/**
|
|
53170
|
+
* Decodes an EligibilityCollective message from the specified reader or buffer.
|
|
53171
|
+
* @param reader Reader or buffer to decode from
|
|
53172
|
+
* @param [length] Message length if known beforehand
|
|
53173
|
+
* @returns EligibilityCollective
|
|
53174
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
53175
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
53176
|
+
*/
|
|
53177
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): EligibilityCollective;
|
|
53178
|
+
|
|
53179
|
+
/**
|
|
53180
|
+
* Decodes an EligibilityCollective message from the specified reader or buffer, length delimited.
|
|
53181
|
+
* @param reader Reader or buffer to decode from
|
|
53182
|
+
* @returns EligibilityCollective
|
|
53183
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
53184
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
53185
|
+
*/
|
|
53186
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): EligibilityCollective;
|
|
53187
|
+
|
|
53188
|
+
/**
|
|
53189
|
+
* Verifies an EligibilityCollective message.
|
|
53190
|
+
* @param message Plain object to verify
|
|
53191
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
53192
|
+
*/
|
|
53193
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
53194
|
+
|
|
53195
|
+
/**
|
|
53196
|
+
* Creates an EligibilityCollective message from a plain object. Also converts values to their respective internal types.
|
|
53197
|
+
* @param object Plain object
|
|
53198
|
+
* @returns EligibilityCollective
|
|
53199
|
+
*/
|
|
53200
|
+
public static fromObject(object: { [k: string]: any }): EligibilityCollective;
|
|
53201
|
+
|
|
53202
|
+
/**
|
|
53203
|
+
* Creates a plain object from an EligibilityCollective message. Also converts values to other types if specified.
|
|
53204
|
+
* @param message EligibilityCollective
|
|
53205
|
+
* @param [options] Conversion options
|
|
53206
|
+
* @returns Plain object
|
|
53207
|
+
*/
|
|
53208
|
+
public static toObject(message: EligibilityCollective, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
53209
|
+
|
|
53210
|
+
/**
|
|
53211
|
+
* Converts this EligibilityCollective to JSON.
|
|
53212
|
+
* @returns JSON object
|
|
53213
|
+
*/
|
|
53214
|
+
public toJSON(): { [k: string]: any };
|
|
53215
|
+
}
|
|
53216
|
+
|
|
53077
53217
|
/** Properties of a PartnershipMemberEnrolled. */
|
|
53078
53218
|
export interface IPartnershipMemberEnrolled {
|
|
53079
53219
|
|
package/lib/index.js
CHANGED
|
@@ -146973,6 +146973,456 @@ $root.EligibilitySourceType = (function() {
|
|
|
146973
146973
|
return values;
|
|
146974
146974
|
})();
|
|
146975
146975
|
|
|
146976
|
+
/**
|
|
146977
|
+
* IdentityVerificationType enum.
|
|
146978
|
+
* @name IdentityVerificationType
|
|
146979
|
+
* @enum {string}
|
|
146980
|
+
* @property {number} IDENTITY_VERIFICATION_TYPE_UNKNOWN=0 IDENTITY_VERIFICATION_TYPE_UNKNOWN value
|
|
146981
|
+
* @property {number} IDENTITY_VERIFICATION_TYPE_NONE=1 IDENTITY_VERIFICATION_TYPE_NONE value
|
|
146982
|
+
* @property {number} IDENTITY_VERIFICATION_TYPE_COUNTRY_DOB=2 IDENTITY_VERIFICATION_TYPE_COUNTRY_DOB value
|
|
146983
|
+
* @property {number} IDENTITY_VERIFICATION_TYPE_LASTNAME_COUNTRY_DOB=3 IDENTITY_VERIFICATION_TYPE_LASTNAME_COUNTRY_DOB value
|
|
146984
|
+
*/
|
|
146985
|
+
$root.IdentityVerificationType = (function() {
|
|
146986
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
146987
|
+
values[valuesById[0] = "IDENTITY_VERIFICATION_TYPE_UNKNOWN"] = 0;
|
|
146988
|
+
values[valuesById[1] = "IDENTITY_VERIFICATION_TYPE_NONE"] = 1;
|
|
146989
|
+
values[valuesById[2] = "IDENTITY_VERIFICATION_TYPE_COUNTRY_DOB"] = 2;
|
|
146990
|
+
values[valuesById[3] = "IDENTITY_VERIFICATION_TYPE_LASTNAME_COUNTRY_DOB"] = 3;
|
|
146991
|
+
return values;
|
|
146992
|
+
})();
|
|
146993
|
+
|
|
146994
|
+
/**
|
|
146995
|
+
* VerificationType enum.
|
|
146996
|
+
* @name VerificationType
|
|
146997
|
+
* @enum {string}
|
|
146998
|
+
* @property {number} VERIFICATION_TYPE_UNKNOWN=0 VERIFICATION_TYPE_UNKNOWN value
|
|
146999
|
+
* @property {number} VERIFICATION_TYPE_EMAIL_DOMAIN=1 VERIFICATION_TYPE_EMAIL_DOMAIN value
|
|
147000
|
+
* @property {number} VERIFICATION_TYPE_EMAIL=2 VERIFICATION_TYPE_EMAIL value
|
|
147001
|
+
* @property {number} VERIFICATION_TYPE_D2C_COACHING=3 VERIFICATION_TYPE_D2C_COACHING value
|
|
147002
|
+
* @property {number} VERIFICATION_TYPE_D2C_THERAPY=4 VERIFICATION_TYPE_D2C_THERAPY value
|
|
147003
|
+
* @property {number} VERIFICATION_TYPE_D2C_CARE_UPSELL=5 VERIFICATION_TYPE_D2C_CARE_UPSELL value
|
|
147004
|
+
* @property {number} VERIFICATION_TYPE_WORK_ID=6 VERIFICATION_TYPE_WORK_ID value
|
|
147005
|
+
* @property {number} VERIFICATION_TYPE_KP_NATIONAL_JWT=7 VERIFICATION_TYPE_KP_NATIONAL_JWT value
|
|
147006
|
+
*/
|
|
147007
|
+
$root.VerificationType = (function() {
|
|
147008
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
147009
|
+
values[valuesById[0] = "VERIFICATION_TYPE_UNKNOWN"] = 0;
|
|
147010
|
+
values[valuesById[1] = "VERIFICATION_TYPE_EMAIL_DOMAIN"] = 1;
|
|
147011
|
+
values[valuesById[2] = "VERIFICATION_TYPE_EMAIL"] = 2;
|
|
147012
|
+
values[valuesById[3] = "VERIFICATION_TYPE_D2C_COACHING"] = 3;
|
|
147013
|
+
values[valuesById[4] = "VERIFICATION_TYPE_D2C_THERAPY"] = 4;
|
|
147014
|
+
values[valuesById[5] = "VERIFICATION_TYPE_D2C_CARE_UPSELL"] = 5;
|
|
147015
|
+
values[valuesById[6] = "VERIFICATION_TYPE_WORK_ID"] = 6;
|
|
147016
|
+
values[valuesById[7] = "VERIFICATION_TYPE_KP_NATIONAL_JWT"] = 7;
|
|
147017
|
+
return values;
|
|
147018
|
+
})();
|
|
147019
|
+
|
|
147020
|
+
$root.EligibilityCollective = (function() {
|
|
147021
|
+
|
|
147022
|
+
/**
|
|
147023
|
+
* Properties of an EligibilityCollective.
|
|
147024
|
+
* @name IEligibilityCollective
|
|
147025
|
+
* @interface IEligibilityCollective
|
|
147026
|
+
* @property {string|null} [uuid] EligibilityCollective uuid
|
|
147027
|
+
* @property {VerificationType|null} [veritificationType] EligibilityCollective veritificationType
|
|
147028
|
+
* @property {IdentityVerificationType|null} [identityVeritificationType] EligibilityCollective identityVeritificationType
|
|
147029
|
+
* @property {number|Long|null} [createdAtTimestamp] EligibilityCollective createdAtTimestamp
|
|
147030
|
+
* @property {number|Long|null} [updatedAtTimestamp] EligibilityCollective updatedAtTimestamp
|
|
147031
|
+
* @property {number|Long|null} [deletedAtTimestamp] EligibilityCollective deletedAtTimestamp
|
|
147032
|
+
*/
|
|
147033
|
+
|
|
147034
|
+
/**
|
|
147035
|
+
* Constructs a new EligibilityCollective.
|
|
147036
|
+
* @name EligibilityCollective
|
|
147037
|
+
* @classdesc Represents an EligibilityCollective.
|
|
147038
|
+
* @implements IEligibilityCollective
|
|
147039
|
+
* @constructor
|
|
147040
|
+
* @param {IEligibilityCollective=} [properties] Properties to set
|
|
147041
|
+
*/
|
|
147042
|
+
function EligibilityCollective(properties) {
|
|
147043
|
+
if (properties)
|
|
147044
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
147045
|
+
if (properties[keys[i]] != null)
|
|
147046
|
+
this[keys[i]] = properties[keys[i]];
|
|
147047
|
+
}
|
|
147048
|
+
|
|
147049
|
+
/**
|
|
147050
|
+
* EligibilityCollective uuid.
|
|
147051
|
+
* @member {string} uuid
|
|
147052
|
+
* @memberof EligibilityCollective
|
|
147053
|
+
* @instance
|
|
147054
|
+
*/
|
|
147055
|
+
EligibilityCollective.prototype.uuid = "";
|
|
147056
|
+
|
|
147057
|
+
/**
|
|
147058
|
+
* EligibilityCollective veritificationType.
|
|
147059
|
+
* @member {VerificationType} veritificationType
|
|
147060
|
+
* @memberof EligibilityCollective
|
|
147061
|
+
* @instance
|
|
147062
|
+
*/
|
|
147063
|
+
EligibilityCollective.prototype.veritificationType = 0;
|
|
147064
|
+
|
|
147065
|
+
/**
|
|
147066
|
+
* EligibilityCollective identityVeritificationType.
|
|
147067
|
+
* @member {IdentityVerificationType} identityVeritificationType
|
|
147068
|
+
* @memberof EligibilityCollective
|
|
147069
|
+
* @instance
|
|
147070
|
+
*/
|
|
147071
|
+
EligibilityCollective.prototype.identityVeritificationType = 0;
|
|
147072
|
+
|
|
147073
|
+
/**
|
|
147074
|
+
* EligibilityCollective createdAtTimestamp.
|
|
147075
|
+
* @member {number|Long} createdAtTimestamp
|
|
147076
|
+
* @memberof EligibilityCollective
|
|
147077
|
+
* @instance
|
|
147078
|
+
*/
|
|
147079
|
+
EligibilityCollective.prototype.createdAtTimestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
147080
|
+
|
|
147081
|
+
/**
|
|
147082
|
+
* EligibilityCollective updatedAtTimestamp.
|
|
147083
|
+
* @member {number|Long} updatedAtTimestamp
|
|
147084
|
+
* @memberof EligibilityCollective
|
|
147085
|
+
* @instance
|
|
147086
|
+
*/
|
|
147087
|
+
EligibilityCollective.prototype.updatedAtTimestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
147088
|
+
|
|
147089
|
+
/**
|
|
147090
|
+
* EligibilityCollective deletedAtTimestamp.
|
|
147091
|
+
* @member {number|Long} deletedAtTimestamp
|
|
147092
|
+
* @memberof EligibilityCollective
|
|
147093
|
+
* @instance
|
|
147094
|
+
*/
|
|
147095
|
+
EligibilityCollective.prototype.deletedAtTimestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
147096
|
+
|
|
147097
|
+
/**
|
|
147098
|
+
* Creates a new EligibilityCollective instance using the specified properties.
|
|
147099
|
+
* @function create
|
|
147100
|
+
* @memberof EligibilityCollective
|
|
147101
|
+
* @static
|
|
147102
|
+
* @param {IEligibilityCollective=} [properties] Properties to set
|
|
147103
|
+
* @returns {EligibilityCollective} EligibilityCollective instance
|
|
147104
|
+
*/
|
|
147105
|
+
EligibilityCollective.create = function create(properties) {
|
|
147106
|
+
return new EligibilityCollective(properties);
|
|
147107
|
+
};
|
|
147108
|
+
|
|
147109
|
+
/**
|
|
147110
|
+
* Encodes the specified EligibilityCollective message. Does not implicitly {@link EligibilityCollective.verify|verify} messages.
|
|
147111
|
+
* @function encode
|
|
147112
|
+
* @memberof EligibilityCollective
|
|
147113
|
+
* @static
|
|
147114
|
+
* @param {IEligibilityCollective} message EligibilityCollective message or plain object to encode
|
|
147115
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
147116
|
+
* @returns {$protobuf.Writer} Writer
|
|
147117
|
+
*/
|
|
147118
|
+
EligibilityCollective.encode = function encode(message, writer) {
|
|
147119
|
+
if (!writer)
|
|
147120
|
+
writer = $Writer.create();
|
|
147121
|
+
if (message.uuid != null && message.hasOwnProperty("uuid"))
|
|
147122
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.uuid);
|
|
147123
|
+
if (message.veritificationType != null && message.hasOwnProperty("veritificationType"))
|
|
147124
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.veritificationType);
|
|
147125
|
+
if (message.identityVeritificationType != null && message.hasOwnProperty("identityVeritificationType"))
|
|
147126
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.identityVeritificationType);
|
|
147127
|
+
if (message.createdAtTimestamp != null && message.hasOwnProperty("createdAtTimestamp"))
|
|
147128
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.createdAtTimestamp);
|
|
147129
|
+
if (message.updatedAtTimestamp != null && message.hasOwnProperty("updatedAtTimestamp"))
|
|
147130
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.updatedAtTimestamp);
|
|
147131
|
+
if (message.deletedAtTimestamp != null && message.hasOwnProperty("deletedAtTimestamp"))
|
|
147132
|
+
writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.deletedAtTimestamp);
|
|
147133
|
+
return writer;
|
|
147134
|
+
};
|
|
147135
|
+
|
|
147136
|
+
/**
|
|
147137
|
+
* Encodes the specified EligibilityCollective message, length delimited. Does not implicitly {@link EligibilityCollective.verify|verify} messages.
|
|
147138
|
+
* @function encodeDelimited
|
|
147139
|
+
* @memberof EligibilityCollective
|
|
147140
|
+
* @static
|
|
147141
|
+
* @param {IEligibilityCollective} message EligibilityCollective message or plain object to encode
|
|
147142
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
147143
|
+
* @returns {$protobuf.Writer} Writer
|
|
147144
|
+
*/
|
|
147145
|
+
EligibilityCollective.encodeDelimited = function encodeDelimited(message, writer) {
|
|
147146
|
+
return this.encode(message, writer).ldelim();
|
|
147147
|
+
};
|
|
147148
|
+
|
|
147149
|
+
/**
|
|
147150
|
+
* Decodes an EligibilityCollective message from the specified reader or buffer.
|
|
147151
|
+
* @function decode
|
|
147152
|
+
* @memberof EligibilityCollective
|
|
147153
|
+
* @static
|
|
147154
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
147155
|
+
* @param {number} [length] Message length if known beforehand
|
|
147156
|
+
* @returns {EligibilityCollective} EligibilityCollective
|
|
147157
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
147158
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
147159
|
+
*/
|
|
147160
|
+
EligibilityCollective.decode = function decode(reader, length) {
|
|
147161
|
+
if (!(reader instanceof $Reader))
|
|
147162
|
+
reader = $Reader.create(reader);
|
|
147163
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.EligibilityCollective();
|
|
147164
|
+
while (reader.pos < end) {
|
|
147165
|
+
var tag = reader.uint32();
|
|
147166
|
+
switch (tag >>> 3) {
|
|
147167
|
+
case 1:
|
|
147168
|
+
message.uuid = reader.string();
|
|
147169
|
+
break;
|
|
147170
|
+
case 2:
|
|
147171
|
+
message.veritificationType = reader.int32();
|
|
147172
|
+
break;
|
|
147173
|
+
case 3:
|
|
147174
|
+
message.identityVeritificationType = reader.int32();
|
|
147175
|
+
break;
|
|
147176
|
+
case 4:
|
|
147177
|
+
message.createdAtTimestamp = reader.uint64();
|
|
147178
|
+
break;
|
|
147179
|
+
case 5:
|
|
147180
|
+
message.updatedAtTimestamp = reader.uint64();
|
|
147181
|
+
break;
|
|
147182
|
+
case 6:
|
|
147183
|
+
message.deletedAtTimestamp = reader.uint64();
|
|
147184
|
+
break;
|
|
147185
|
+
default:
|
|
147186
|
+
reader.skipType(tag & 7);
|
|
147187
|
+
break;
|
|
147188
|
+
}
|
|
147189
|
+
}
|
|
147190
|
+
return message;
|
|
147191
|
+
};
|
|
147192
|
+
|
|
147193
|
+
/**
|
|
147194
|
+
* Decodes an EligibilityCollective message from the specified reader or buffer, length delimited.
|
|
147195
|
+
* @function decodeDelimited
|
|
147196
|
+
* @memberof EligibilityCollective
|
|
147197
|
+
* @static
|
|
147198
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
147199
|
+
* @returns {EligibilityCollective} EligibilityCollective
|
|
147200
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
147201
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
147202
|
+
*/
|
|
147203
|
+
EligibilityCollective.decodeDelimited = function decodeDelimited(reader) {
|
|
147204
|
+
if (!(reader instanceof $Reader))
|
|
147205
|
+
reader = new $Reader(reader);
|
|
147206
|
+
return this.decode(reader, reader.uint32());
|
|
147207
|
+
};
|
|
147208
|
+
|
|
147209
|
+
/**
|
|
147210
|
+
* Verifies an EligibilityCollective message.
|
|
147211
|
+
* @function verify
|
|
147212
|
+
* @memberof EligibilityCollective
|
|
147213
|
+
* @static
|
|
147214
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
147215
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
147216
|
+
*/
|
|
147217
|
+
EligibilityCollective.verify = function verify(message) {
|
|
147218
|
+
if (typeof message !== "object" || message === null)
|
|
147219
|
+
return "object expected";
|
|
147220
|
+
if (message.uuid != null && message.hasOwnProperty("uuid"))
|
|
147221
|
+
if (!$util.isString(message.uuid))
|
|
147222
|
+
return "uuid: string expected";
|
|
147223
|
+
if (message.veritificationType != null && message.hasOwnProperty("veritificationType"))
|
|
147224
|
+
switch (message.veritificationType) {
|
|
147225
|
+
default:
|
|
147226
|
+
return "veritificationType: enum value expected";
|
|
147227
|
+
case 0:
|
|
147228
|
+
case 1:
|
|
147229
|
+
case 2:
|
|
147230
|
+
case 3:
|
|
147231
|
+
case 4:
|
|
147232
|
+
case 5:
|
|
147233
|
+
case 6:
|
|
147234
|
+
case 7:
|
|
147235
|
+
break;
|
|
147236
|
+
}
|
|
147237
|
+
if (message.identityVeritificationType != null && message.hasOwnProperty("identityVeritificationType"))
|
|
147238
|
+
switch (message.identityVeritificationType) {
|
|
147239
|
+
default:
|
|
147240
|
+
return "identityVeritificationType: enum value expected";
|
|
147241
|
+
case 0:
|
|
147242
|
+
case 1:
|
|
147243
|
+
case 2:
|
|
147244
|
+
case 3:
|
|
147245
|
+
break;
|
|
147246
|
+
}
|
|
147247
|
+
if (message.createdAtTimestamp != null && message.hasOwnProperty("createdAtTimestamp"))
|
|
147248
|
+
if (!$util.isInteger(message.createdAtTimestamp) && !(message.createdAtTimestamp && $util.isInteger(message.createdAtTimestamp.low) && $util.isInteger(message.createdAtTimestamp.high)))
|
|
147249
|
+
return "createdAtTimestamp: integer|Long expected";
|
|
147250
|
+
if (message.updatedAtTimestamp != null && message.hasOwnProperty("updatedAtTimestamp"))
|
|
147251
|
+
if (!$util.isInteger(message.updatedAtTimestamp) && !(message.updatedAtTimestamp && $util.isInteger(message.updatedAtTimestamp.low) && $util.isInteger(message.updatedAtTimestamp.high)))
|
|
147252
|
+
return "updatedAtTimestamp: integer|Long expected";
|
|
147253
|
+
if (message.deletedAtTimestamp != null && message.hasOwnProperty("deletedAtTimestamp"))
|
|
147254
|
+
if (!$util.isInteger(message.deletedAtTimestamp) && !(message.deletedAtTimestamp && $util.isInteger(message.deletedAtTimestamp.low) && $util.isInteger(message.deletedAtTimestamp.high)))
|
|
147255
|
+
return "deletedAtTimestamp: integer|Long expected";
|
|
147256
|
+
return null;
|
|
147257
|
+
};
|
|
147258
|
+
|
|
147259
|
+
/**
|
|
147260
|
+
* Creates an EligibilityCollective message from a plain object. Also converts values to their respective internal types.
|
|
147261
|
+
* @function fromObject
|
|
147262
|
+
* @memberof EligibilityCollective
|
|
147263
|
+
* @static
|
|
147264
|
+
* @param {Object.<string,*>} object Plain object
|
|
147265
|
+
* @returns {EligibilityCollective} EligibilityCollective
|
|
147266
|
+
*/
|
|
147267
|
+
EligibilityCollective.fromObject = function fromObject(object) {
|
|
147268
|
+
if (object instanceof $root.EligibilityCollective)
|
|
147269
|
+
return object;
|
|
147270
|
+
var message = new $root.EligibilityCollective();
|
|
147271
|
+
if (object.uuid != null)
|
|
147272
|
+
message.uuid = String(object.uuid);
|
|
147273
|
+
switch (object.veritificationType) {
|
|
147274
|
+
case "VERIFICATION_TYPE_UNKNOWN":
|
|
147275
|
+
case 0:
|
|
147276
|
+
message.veritificationType = 0;
|
|
147277
|
+
break;
|
|
147278
|
+
case "VERIFICATION_TYPE_EMAIL_DOMAIN":
|
|
147279
|
+
case 1:
|
|
147280
|
+
message.veritificationType = 1;
|
|
147281
|
+
break;
|
|
147282
|
+
case "VERIFICATION_TYPE_EMAIL":
|
|
147283
|
+
case 2:
|
|
147284
|
+
message.veritificationType = 2;
|
|
147285
|
+
break;
|
|
147286
|
+
case "VERIFICATION_TYPE_D2C_COACHING":
|
|
147287
|
+
case 3:
|
|
147288
|
+
message.veritificationType = 3;
|
|
147289
|
+
break;
|
|
147290
|
+
case "VERIFICATION_TYPE_D2C_THERAPY":
|
|
147291
|
+
case 4:
|
|
147292
|
+
message.veritificationType = 4;
|
|
147293
|
+
break;
|
|
147294
|
+
case "VERIFICATION_TYPE_D2C_CARE_UPSELL":
|
|
147295
|
+
case 5:
|
|
147296
|
+
message.veritificationType = 5;
|
|
147297
|
+
break;
|
|
147298
|
+
case "VERIFICATION_TYPE_WORK_ID":
|
|
147299
|
+
case 6:
|
|
147300
|
+
message.veritificationType = 6;
|
|
147301
|
+
break;
|
|
147302
|
+
case "VERIFICATION_TYPE_KP_NATIONAL_JWT":
|
|
147303
|
+
case 7:
|
|
147304
|
+
message.veritificationType = 7;
|
|
147305
|
+
break;
|
|
147306
|
+
}
|
|
147307
|
+
switch (object.identityVeritificationType) {
|
|
147308
|
+
case "IDENTITY_VERIFICATION_TYPE_UNKNOWN":
|
|
147309
|
+
case 0:
|
|
147310
|
+
message.identityVeritificationType = 0;
|
|
147311
|
+
break;
|
|
147312
|
+
case "IDENTITY_VERIFICATION_TYPE_NONE":
|
|
147313
|
+
case 1:
|
|
147314
|
+
message.identityVeritificationType = 1;
|
|
147315
|
+
break;
|
|
147316
|
+
case "IDENTITY_VERIFICATION_TYPE_COUNTRY_DOB":
|
|
147317
|
+
case 2:
|
|
147318
|
+
message.identityVeritificationType = 2;
|
|
147319
|
+
break;
|
|
147320
|
+
case "IDENTITY_VERIFICATION_TYPE_LASTNAME_COUNTRY_DOB":
|
|
147321
|
+
case 3:
|
|
147322
|
+
message.identityVeritificationType = 3;
|
|
147323
|
+
break;
|
|
147324
|
+
}
|
|
147325
|
+
if (object.createdAtTimestamp != null)
|
|
147326
|
+
if ($util.Long)
|
|
147327
|
+
(message.createdAtTimestamp = $util.Long.fromValue(object.createdAtTimestamp)).unsigned = true;
|
|
147328
|
+
else if (typeof object.createdAtTimestamp === "string")
|
|
147329
|
+
message.createdAtTimestamp = parseInt(object.createdAtTimestamp, 10);
|
|
147330
|
+
else if (typeof object.createdAtTimestamp === "number")
|
|
147331
|
+
message.createdAtTimestamp = object.createdAtTimestamp;
|
|
147332
|
+
else if (typeof object.createdAtTimestamp === "object")
|
|
147333
|
+
message.createdAtTimestamp = new $util.LongBits(object.createdAtTimestamp.low >>> 0, object.createdAtTimestamp.high >>> 0).toNumber(true);
|
|
147334
|
+
if (object.updatedAtTimestamp != null)
|
|
147335
|
+
if ($util.Long)
|
|
147336
|
+
(message.updatedAtTimestamp = $util.Long.fromValue(object.updatedAtTimestamp)).unsigned = true;
|
|
147337
|
+
else if (typeof object.updatedAtTimestamp === "string")
|
|
147338
|
+
message.updatedAtTimestamp = parseInt(object.updatedAtTimestamp, 10);
|
|
147339
|
+
else if (typeof object.updatedAtTimestamp === "number")
|
|
147340
|
+
message.updatedAtTimestamp = object.updatedAtTimestamp;
|
|
147341
|
+
else if (typeof object.updatedAtTimestamp === "object")
|
|
147342
|
+
message.updatedAtTimestamp = new $util.LongBits(object.updatedAtTimestamp.low >>> 0, object.updatedAtTimestamp.high >>> 0).toNumber(true);
|
|
147343
|
+
if (object.deletedAtTimestamp != null)
|
|
147344
|
+
if ($util.Long)
|
|
147345
|
+
(message.deletedAtTimestamp = $util.Long.fromValue(object.deletedAtTimestamp)).unsigned = true;
|
|
147346
|
+
else if (typeof object.deletedAtTimestamp === "string")
|
|
147347
|
+
message.deletedAtTimestamp = parseInt(object.deletedAtTimestamp, 10);
|
|
147348
|
+
else if (typeof object.deletedAtTimestamp === "number")
|
|
147349
|
+
message.deletedAtTimestamp = object.deletedAtTimestamp;
|
|
147350
|
+
else if (typeof object.deletedAtTimestamp === "object")
|
|
147351
|
+
message.deletedAtTimestamp = new $util.LongBits(object.deletedAtTimestamp.low >>> 0, object.deletedAtTimestamp.high >>> 0).toNumber(true);
|
|
147352
|
+
return message;
|
|
147353
|
+
};
|
|
147354
|
+
|
|
147355
|
+
/**
|
|
147356
|
+
* Creates a plain object from an EligibilityCollective message. Also converts values to other types if specified.
|
|
147357
|
+
* @function toObject
|
|
147358
|
+
* @memberof EligibilityCollective
|
|
147359
|
+
* @static
|
|
147360
|
+
* @param {EligibilityCollective} message EligibilityCollective
|
|
147361
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
147362
|
+
* @returns {Object.<string,*>} Plain object
|
|
147363
|
+
*/
|
|
147364
|
+
EligibilityCollective.toObject = function toObject(message, options) {
|
|
147365
|
+
if (!options)
|
|
147366
|
+
options = {};
|
|
147367
|
+
var object = {};
|
|
147368
|
+
if (options.defaults) {
|
|
147369
|
+
object.uuid = "";
|
|
147370
|
+
object.veritificationType = options.enums === String ? "VERIFICATION_TYPE_UNKNOWN" : 0;
|
|
147371
|
+
object.identityVeritificationType = options.enums === String ? "IDENTITY_VERIFICATION_TYPE_UNKNOWN" : 0;
|
|
147372
|
+
if ($util.Long) {
|
|
147373
|
+
var long = new $util.Long(0, 0, true);
|
|
147374
|
+
object.createdAtTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
147375
|
+
} else
|
|
147376
|
+
object.createdAtTimestamp = options.longs === String ? "0" : 0;
|
|
147377
|
+
if ($util.Long) {
|
|
147378
|
+
var long = new $util.Long(0, 0, true);
|
|
147379
|
+
object.updatedAtTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
147380
|
+
} else
|
|
147381
|
+
object.updatedAtTimestamp = options.longs === String ? "0" : 0;
|
|
147382
|
+
if ($util.Long) {
|
|
147383
|
+
var long = new $util.Long(0, 0, true);
|
|
147384
|
+
object.deletedAtTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
147385
|
+
} else
|
|
147386
|
+
object.deletedAtTimestamp = options.longs === String ? "0" : 0;
|
|
147387
|
+
}
|
|
147388
|
+
if (message.uuid != null && message.hasOwnProperty("uuid"))
|
|
147389
|
+
object.uuid = message.uuid;
|
|
147390
|
+
if (message.veritificationType != null && message.hasOwnProperty("veritificationType"))
|
|
147391
|
+
object.veritificationType = options.enums === String ? $root.VerificationType[message.veritificationType] : message.veritificationType;
|
|
147392
|
+
if (message.identityVeritificationType != null && message.hasOwnProperty("identityVeritificationType"))
|
|
147393
|
+
object.identityVeritificationType = options.enums === String ? $root.IdentityVerificationType[message.identityVeritificationType] : message.identityVeritificationType;
|
|
147394
|
+
if (message.createdAtTimestamp != null && message.hasOwnProperty("createdAtTimestamp"))
|
|
147395
|
+
if (typeof message.createdAtTimestamp === "number")
|
|
147396
|
+
object.createdAtTimestamp = options.longs === String ? String(message.createdAtTimestamp) : message.createdAtTimestamp;
|
|
147397
|
+
else
|
|
147398
|
+
object.createdAtTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.createdAtTimestamp) : options.longs === Number ? new $util.LongBits(message.createdAtTimestamp.low >>> 0, message.createdAtTimestamp.high >>> 0).toNumber(true) : message.createdAtTimestamp;
|
|
147399
|
+
if (message.updatedAtTimestamp != null && message.hasOwnProperty("updatedAtTimestamp"))
|
|
147400
|
+
if (typeof message.updatedAtTimestamp === "number")
|
|
147401
|
+
object.updatedAtTimestamp = options.longs === String ? String(message.updatedAtTimestamp) : message.updatedAtTimestamp;
|
|
147402
|
+
else
|
|
147403
|
+
object.updatedAtTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.updatedAtTimestamp) : options.longs === Number ? new $util.LongBits(message.updatedAtTimestamp.low >>> 0, message.updatedAtTimestamp.high >>> 0).toNumber(true) : message.updatedAtTimestamp;
|
|
147404
|
+
if (message.deletedAtTimestamp != null && message.hasOwnProperty("deletedAtTimestamp"))
|
|
147405
|
+
if (typeof message.deletedAtTimestamp === "number")
|
|
147406
|
+
object.deletedAtTimestamp = options.longs === String ? String(message.deletedAtTimestamp) : message.deletedAtTimestamp;
|
|
147407
|
+
else
|
|
147408
|
+
object.deletedAtTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.deletedAtTimestamp) : options.longs === Number ? new $util.LongBits(message.deletedAtTimestamp.low >>> 0, message.deletedAtTimestamp.high >>> 0).toNumber(true) : message.deletedAtTimestamp;
|
|
147409
|
+
return object;
|
|
147410
|
+
};
|
|
147411
|
+
|
|
147412
|
+
/**
|
|
147413
|
+
* Converts this EligibilityCollective to JSON.
|
|
147414
|
+
* @function toJSON
|
|
147415
|
+
* @memberof EligibilityCollective
|
|
147416
|
+
* @instance
|
|
147417
|
+
* @returns {Object.<string,*>} JSON object
|
|
147418
|
+
*/
|
|
147419
|
+
EligibilityCollective.prototype.toJSON = function toJSON() {
|
|
147420
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
147421
|
+
};
|
|
147422
|
+
|
|
147423
|
+
return EligibilityCollective;
|
|
147424
|
+
})();
|
|
147425
|
+
|
|
146976
147426
|
$root.PartnershipMemberEnrolled = (function() {
|
|
146977
147427
|
|
|
146978
147428
|
/**
|
package/package.json
CHANGED