@headspace/protos-events 1.234.0 → 1.235.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 +102 -0
- package/lib/index.js +232 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -28238,6 +28238,108 @@ export class UserLanguagePreferenceUpdated implements IUserLanguagePreferenceUpd
|
|
|
28238
28238
|
public toJSON(): { [k: string]: any };
|
|
28239
28239
|
}
|
|
28240
28240
|
|
|
28241
|
+
/** Properties of a UserConsentUpdated. */
|
|
28242
|
+
export interface IUserConsentUpdated {
|
|
28243
|
+
|
|
28244
|
+
/** UserConsentUpdated userId */
|
|
28245
|
+
userId?: (string|null);
|
|
28246
|
+
|
|
28247
|
+
/** UserConsentUpdated code */
|
|
28248
|
+
code?: (string|null);
|
|
28249
|
+
|
|
28250
|
+
/** UserConsentUpdated status */
|
|
28251
|
+
status?: (string|null);
|
|
28252
|
+
}
|
|
28253
|
+
|
|
28254
|
+
/** Represents a UserConsentUpdated. */
|
|
28255
|
+
export class UserConsentUpdated implements IUserConsentUpdated {
|
|
28256
|
+
|
|
28257
|
+
/**
|
|
28258
|
+
* Constructs a new UserConsentUpdated.
|
|
28259
|
+
* @param [properties] Properties to set
|
|
28260
|
+
*/
|
|
28261
|
+
constructor(properties?: IUserConsentUpdated);
|
|
28262
|
+
|
|
28263
|
+
/** UserConsentUpdated userId. */
|
|
28264
|
+
public userId: string;
|
|
28265
|
+
|
|
28266
|
+
/** UserConsentUpdated code. */
|
|
28267
|
+
public code: string;
|
|
28268
|
+
|
|
28269
|
+
/** UserConsentUpdated status. */
|
|
28270
|
+
public status: string;
|
|
28271
|
+
|
|
28272
|
+
/**
|
|
28273
|
+
* Creates a new UserConsentUpdated instance using the specified properties.
|
|
28274
|
+
* @param [properties] Properties to set
|
|
28275
|
+
* @returns UserConsentUpdated instance
|
|
28276
|
+
*/
|
|
28277
|
+
public static create(properties?: IUserConsentUpdated): UserConsentUpdated;
|
|
28278
|
+
|
|
28279
|
+
/**
|
|
28280
|
+
* Encodes the specified UserConsentUpdated message. Does not implicitly {@link UserConsentUpdated.verify|verify} messages.
|
|
28281
|
+
* @param message UserConsentUpdated message or plain object to encode
|
|
28282
|
+
* @param [writer] Writer to encode to
|
|
28283
|
+
* @returns Writer
|
|
28284
|
+
*/
|
|
28285
|
+
public static encode(message: IUserConsentUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
28286
|
+
|
|
28287
|
+
/**
|
|
28288
|
+
* Encodes the specified UserConsentUpdated message, length delimited. Does not implicitly {@link UserConsentUpdated.verify|verify} messages.
|
|
28289
|
+
* @param message UserConsentUpdated message or plain object to encode
|
|
28290
|
+
* @param [writer] Writer to encode to
|
|
28291
|
+
* @returns Writer
|
|
28292
|
+
*/
|
|
28293
|
+
public static encodeDelimited(message: IUserConsentUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
28294
|
+
|
|
28295
|
+
/**
|
|
28296
|
+
* Decodes a UserConsentUpdated message from the specified reader or buffer.
|
|
28297
|
+
* @param reader Reader or buffer to decode from
|
|
28298
|
+
* @param [length] Message length if known beforehand
|
|
28299
|
+
* @returns UserConsentUpdated
|
|
28300
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
28301
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
28302
|
+
*/
|
|
28303
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserConsentUpdated;
|
|
28304
|
+
|
|
28305
|
+
/**
|
|
28306
|
+
* Decodes a UserConsentUpdated message from the specified reader or buffer, length delimited.
|
|
28307
|
+
* @param reader Reader or buffer to decode from
|
|
28308
|
+
* @returns UserConsentUpdated
|
|
28309
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
28310
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
28311
|
+
*/
|
|
28312
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserConsentUpdated;
|
|
28313
|
+
|
|
28314
|
+
/**
|
|
28315
|
+
* Verifies a UserConsentUpdated message.
|
|
28316
|
+
* @param message Plain object to verify
|
|
28317
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
28318
|
+
*/
|
|
28319
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
28320
|
+
|
|
28321
|
+
/**
|
|
28322
|
+
* Creates a UserConsentUpdated message from a plain object. Also converts values to their respective internal types.
|
|
28323
|
+
* @param object Plain object
|
|
28324
|
+
* @returns UserConsentUpdated
|
|
28325
|
+
*/
|
|
28326
|
+
public static fromObject(object: { [k: string]: any }): UserConsentUpdated;
|
|
28327
|
+
|
|
28328
|
+
/**
|
|
28329
|
+
* Creates a plain object from a UserConsentUpdated message. Also converts values to other types if specified.
|
|
28330
|
+
* @param message UserConsentUpdated
|
|
28331
|
+
* @param [options] Conversion options
|
|
28332
|
+
* @returns Plain object
|
|
28333
|
+
*/
|
|
28334
|
+
public static toObject(message: UserConsentUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
28335
|
+
|
|
28336
|
+
/**
|
|
28337
|
+
* Converts this UserConsentUpdated to JSON.
|
|
28338
|
+
* @returns JSON object
|
|
28339
|
+
*/
|
|
28340
|
+
public toJSON(): { [k: string]: any };
|
|
28341
|
+
}
|
|
28342
|
+
|
|
28241
28343
|
/** Properties of a VirginPulseAccountLinked. */
|
|
28242
28344
|
export interface IVirginPulseAccountLinked {
|
|
28243
28345
|
|
package/lib/index.js
CHANGED
|
@@ -80512,6 +80512,238 @@ $root.UserLanguagePreferenceUpdated = (function() {
|
|
|
80512
80512
|
return UserLanguagePreferenceUpdated;
|
|
80513
80513
|
})();
|
|
80514
80514
|
|
|
80515
|
+
$root.UserConsentUpdated = (function() {
|
|
80516
|
+
|
|
80517
|
+
/**
|
|
80518
|
+
* Properties of a UserConsentUpdated.
|
|
80519
|
+
* @exports IUserConsentUpdated
|
|
80520
|
+
* @interface IUserConsentUpdated
|
|
80521
|
+
* @property {string|null} [userId] UserConsentUpdated userId
|
|
80522
|
+
* @property {string|null} [code] UserConsentUpdated code
|
|
80523
|
+
* @property {string|null} [status] UserConsentUpdated status
|
|
80524
|
+
*/
|
|
80525
|
+
|
|
80526
|
+
/**
|
|
80527
|
+
* Constructs a new UserConsentUpdated.
|
|
80528
|
+
* @exports UserConsentUpdated
|
|
80529
|
+
* @classdesc Represents a UserConsentUpdated.
|
|
80530
|
+
* @implements IUserConsentUpdated
|
|
80531
|
+
* @constructor
|
|
80532
|
+
* @param {IUserConsentUpdated=} [properties] Properties to set
|
|
80533
|
+
*/
|
|
80534
|
+
function UserConsentUpdated(properties) {
|
|
80535
|
+
if (properties)
|
|
80536
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
80537
|
+
if (properties[keys[i]] != null)
|
|
80538
|
+
this[keys[i]] = properties[keys[i]];
|
|
80539
|
+
}
|
|
80540
|
+
|
|
80541
|
+
/**
|
|
80542
|
+
* UserConsentUpdated userId.
|
|
80543
|
+
* @member {string} userId
|
|
80544
|
+
* @memberof UserConsentUpdated
|
|
80545
|
+
* @instance
|
|
80546
|
+
*/
|
|
80547
|
+
UserConsentUpdated.prototype.userId = "";
|
|
80548
|
+
|
|
80549
|
+
/**
|
|
80550
|
+
* UserConsentUpdated code.
|
|
80551
|
+
* @member {string} code
|
|
80552
|
+
* @memberof UserConsentUpdated
|
|
80553
|
+
* @instance
|
|
80554
|
+
*/
|
|
80555
|
+
UserConsentUpdated.prototype.code = "";
|
|
80556
|
+
|
|
80557
|
+
/**
|
|
80558
|
+
* UserConsentUpdated status.
|
|
80559
|
+
* @member {string} status
|
|
80560
|
+
* @memberof UserConsentUpdated
|
|
80561
|
+
* @instance
|
|
80562
|
+
*/
|
|
80563
|
+
UserConsentUpdated.prototype.status = "";
|
|
80564
|
+
|
|
80565
|
+
/**
|
|
80566
|
+
* Creates a new UserConsentUpdated instance using the specified properties.
|
|
80567
|
+
* @function create
|
|
80568
|
+
* @memberof UserConsentUpdated
|
|
80569
|
+
* @static
|
|
80570
|
+
* @param {IUserConsentUpdated=} [properties] Properties to set
|
|
80571
|
+
* @returns {UserConsentUpdated} UserConsentUpdated instance
|
|
80572
|
+
*/
|
|
80573
|
+
UserConsentUpdated.create = function create(properties) {
|
|
80574
|
+
return new UserConsentUpdated(properties);
|
|
80575
|
+
};
|
|
80576
|
+
|
|
80577
|
+
/**
|
|
80578
|
+
* Encodes the specified UserConsentUpdated message. Does not implicitly {@link UserConsentUpdated.verify|verify} messages.
|
|
80579
|
+
* @function encode
|
|
80580
|
+
* @memberof UserConsentUpdated
|
|
80581
|
+
* @static
|
|
80582
|
+
* @param {IUserConsentUpdated} message UserConsentUpdated message or plain object to encode
|
|
80583
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
80584
|
+
* @returns {$protobuf.Writer} Writer
|
|
80585
|
+
*/
|
|
80586
|
+
UserConsentUpdated.encode = function encode(message, writer) {
|
|
80587
|
+
if (!writer)
|
|
80588
|
+
writer = $Writer.create();
|
|
80589
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
80590
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
|
|
80591
|
+
if (message.code != null && message.hasOwnProperty("code"))
|
|
80592
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.code);
|
|
80593
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
80594
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.status);
|
|
80595
|
+
return writer;
|
|
80596
|
+
};
|
|
80597
|
+
|
|
80598
|
+
/**
|
|
80599
|
+
* Encodes the specified UserConsentUpdated message, length delimited. Does not implicitly {@link UserConsentUpdated.verify|verify} messages.
|
|
80600
|
+
* @function encodeDelimited
|
|
80601
|
+
* @memberof UserConsentUpdated
|
|
80602
|
+
* @static
|
|
80603
|
+
* @param {IUserConsentUpdated} message UserConsentUpdated message or plain object to encode
|
|
80604
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
80605
|
+
* @returns {$protobuf.Writer} Writer
|
|
80606
|
+
*/
|
|
80607
|
+
UserConsentUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
80608
|
+
return this.encode(message, writer).ldelim();
|
|
80609
|
+
};
|
|
80610
|
+
|
|
80611
|
+
/**
|
|
80612
|
+
* Decodes a UserConsentUpdated message from the specified reader or buffer.
|
|
80613
|
+
* @function decode
|
|
80614
|
+
* @memberof UserConsentUpdated
|
|
80615
|
+
* @static
|
|
80616
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
80617
|
+
* @param {number} [length] Message length if known beforehand
|
|
80618
|
+
* @returns {UserConsentUpdated} UserConsentUpdated
|
|
80619
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
80620
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
80621
|
+
*/
|
|
80622
|
+
UserConsentUpdated.decode = function decode(reader, length) {
|
|
80623
|
+
if (!(reader instanceof $Reader))
|
|
80624
|
+
reader = $Reader.create(reader);
|
|
80625
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserConsentUpdated();
|
|
80626
|
+
while (reader.pos < end) {
|
|
80627
|
+
var tag = reader.uint32();
|
|
80628
|
+
switch (tag >>> 3) {
|
|
80629
|
+
case 1:
|
|
80630
|
+
message.userId = reader.string();
|
|
80631
|
+
break;
|
|
80632
|
+
case 2:
|
|
80633
|
+
message.code = reader.string();
|
|
80634
|
+
break;
|
|
80635
|
+
case 3:
|
|
80636
|
+
message.status = reader.string();
|
|
80637
|
+
break;
|
|
80638
|
+
default:
|
|
80639
|
+
reader.skipType(tag & 7);
|
|
80640
|
+
break;
|
|
80641
|
+
}
|
|
80642
|
+
}
|
|
80643
|
+
return message;
|
|
80644
|
+
};
|
|
80645
|
+
|
|
80646
|
+
/**
|
|
80647
|
+
* Decodes a UserConsentUpdated message from the specified reader or buffer, length delimited.
|
|
80648
|
+
* @function decodeDelimited
|
|
80649
|
+
* @memberof UserConsentUpdated
|
|
80650
|
+
* @static
|
|
80651
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
80652
|
+
* @returns {UserConsentUpdated} UserConsentUpdated
|
|
80653
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
80654
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
80655
|
+
*/
|
|
80656
|
+
UserConsentUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
80657
|
+
if (!(reader instanceof $Reader))
|
|
80658
|
+
reader = new $Reader(reader);
|
|
80659
|
+
return this.decode(reader, reader.uint32());
|
|
80660
|
+
};
|
|
80661
|
+
|
|
80662
|
+
/**
|
|
80663
|
+
* Verifies a UserConsentUpdated message.
|
|
80664
|
+
* @function verify
|
|
80665
|
+
* @memberof UserConsentUpdated
|
|
80666
|
+
* @static
|
|
80667
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
80668
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
80669
|
+
*/
|
|
80670
|
+
UserConsentUpdated.verify = function verify(message) {
|
|
80671
|
+
if (typeof message !== "object" || message === null)
|
|
80672
|
+
return "object expected";
|
|
80673
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
80674
|
+
if (!$util.isString(message.userId))
|
|
80675
|
+
return "userId: string expected";
|
|
80676
|
+
if (message.code != null && message.hasOwnProperty("code"))
|
|
80677
|
+
if (!$util.isString(message.code))
|
|
80678
|
+
return "code: string expected";
|
|
80679
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
80680
|
+
if (!$util.isString(message.status))
|
|
80681
|
+
return "status: string expected";
|
|
80682
|
+
return null;
|
|
80683
|
+
};
|
|
80684
|
+
|
|
80685
|
+
/**
|
|
80686
|
+
* Creates a UserConsentUpdated message from a plain object. Also converts values to their respective internal types.
|
|
80687
|
+
* @function fromObject
|
|
80688
|
+
* @memberof UserConsentUpdated
|
|
80689
|
+
* @static
|
|
80690
|
+
* @param {Object.<string,*>} object Plain object
|
|
80691
|
+
* @returns {UserConsentUpdated} UserConsentUpdated
|
|
80692
|
+
*/
|
|
80693
|
+
UserConsentUpdated.fromObject = function fromObject(object) {
|
|
80694
|
+
if (object instanceof $root.UserConsentUpdated)
|
|
80695
|
+
return object;
|
|
80696
|
+
var message = new $root.UserConsentUpdated();
|
|
80697
|
+
if (object.userId != null)
|
|
80698
|
+
message.userId = String(object.userId);
|
|
80699
|
+
if (object.code != null)
|
|
80700
|
+
message.code = String(object.code);
|
|
80701
|
+
if (object.status != null)
|
|
80702
|
+
message.status = String(object.status);
|
|
80703
|
+
return message;
|
|
80704
|
+
};
|
|
80705
|
+
|
|
80706
|
+
/**
|
|
80707
|
+
* Creates a plain object from a UserConsentUpdated message. Also converts values to other types if specified.
|
|
80708
|
+
* @function toObject
|
|
80709
|
+
* @memberof UserConsentUpdated
|
|
80710
|
+
* @static
|
|
80711
|
+
* @param {UserConsentUpdated} message UserConsentUpdated
|
|
80712
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
80713
|
+
* @returns {Object.<string,*>} Plain object
|
|
80714
|
+
*/
|
|
80715
|
+
UserConsentUpdated.toObject = function toObject(message, options) {
|
|
80716
|
+
if (!options)
|
|
80717
|
+
options = {};
|
|
80718
|
+
var object = {};
|
|
80719
|
+
if (options.defaults) {
|
|
80720
|
+
object.userId = "";
|
|
80721
|
+
object.code = "";
|
|
80722
|
+
object.status = "";
|
|
80723
|
+
}
|
|
80724
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
80725
|
+
object.userId = message.userId;
|
|
80726
|
+
if (message.code != null && message.hasOwnProperty("code"))
|
|
80727
|
+
object.code = message.code;
|
|
80728
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
80729
|
+
object.status = message.status;
|
|
80730
|
+
return object;
|
|
80731
|
+
};
|
|
80732
|
+
|
|
80733
|
+
/**
|
|
80734
|
+
* Converts this UserConsentUpdated to JSON.
|
|
80735
|
+
* @function toJSON
|
|
80736
|
+
* @memberof UserConsentUpdated
|
|
80737
|
+
* @instance
|
|
80738
|
+
* @returns {Object.<string,*>} JSON object
|
|
80739
|
+
*/
|
|
80740
|
+
UserConsentUpdated.prototype.toJSON = function toJSON() {
|
|
80741
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
80742
|
+
};
|
|
80743
|
+
|
|
80744
|
+
return UserConsentUpdated;
|
|
80745
|
+
})();
|
|
80746
|
+
|
|
80515
80747
|
$root.VirginPulseAccountLinked = (function() {
|
|
80516
80748
|
|
|
80517
80749
|
/**
|
package/package.json
CHANGED