@headspace/protos-events 1.851.0 → 1.853.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 +298 -0
- package/lib/index.js +797 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -49519,6 +49519,12 @@ export class ContentPlayed {
|
|
|
49519
49519
|
/** ContentPlayed metadata. */
|
|
49520
49520
|
metadata?: (ContentPlayedMetadata.$Properties|null);
|
|
49521
49521
|
|
|
49522
|
+
/** ContentPlayed passportId. */
|
|
49523
|
+
passportId: string;
|
|
49524
|
+
|
|
49525
|
+
/** ContentPlayed universe. */
|
|
49526
|
+
universe: string;
|
|
49527
|
+
|
|
49522
49528
|
/**
|
|
49523
49529
|
* Creates a new ContentPlayed instance using the specified properties.
|
|
49524
49530
|
* @param [properties] Properties to set
|
|
@@ -49621,6 +49627,12 @@ export namespace ContentPlayed {
|
|
|
49621
49627
|
/** ContentPlayed metadata */
|
|
49622
49628
|
metadata?: (ContentPlayedMetadata.$Properties|null);
|
|
49623
49629
|
|
|
49630
|
+
/** ContentPlayed passportId */
|
|
49631
|
+
passportId?: (string|null);
|
|
49632
|
+
|
|
49633
|
+
/** ContentPlayed universe */
|
|
49634
|
+
universe?: (string|null);
|
|
49635
|
+
|
|
49624
49636
|
/** Unknown fields preserved while decoding */
|
|
49625
49637
|
$unknowns?: Uint8Array[];
|
|
49626
49638
|
}
|
|
@@ -95547,6 +95559,292 @@ export namespace PartnerSignalWindDownScheduled {
|
|
|
95547
95559
|
type $Shape = PartnerSignalWindDownScheduled.$Properties;
|
|
95548
95560
|
}
|
|
95549
95561
|
|
|
95562
|
+
/**
|
|
95563
|
+
* Properties of a ContentEngagementPassportCreated.
|
|
95564
|
+
* @deprecated Use ContentEngagementPassportCreated.$Properties instead.
|
|
95565
|
+
*/
|
|
95566
|
+
export interface IContentEngagementPassportCreated extends ContentEngagementPassportCreated.$Properties {
|
|
95567
|
+
}
|
|
95568
|
+
|
|
95569
|
+
/**
|
|
95570
|
+
* Sent when a passport (experience-universe envelope) has been created.
|
|
95571
|
+
* Fired by hs-content-engagement-service.
|
|
95572
|
+
* Responsible team: Core Platform
|
|
95573
|
+
* Responsible domain: Content
|
|
95574
|
+
*/
|
|
95575
|
+
export class ContentEngagementPassportCreated {
|
|
95576
|
+
|
|
95577
|
+
/**
|
|
95578
|
+
* Constructs a new ContentEngagementPassportCreated.
|
|
95579
|
+
* @param [properties] Properties to set
|
|
95580
|
+
*/
|
|
95581
|
+
constructor(properties?: ContentEngagementPassportCreated.$Properties);
|
|
95582
|
+
|
|
95583
|
+
/** Unknown fields preserved while decoding */
|
|
95584
|
+
$unknowns?: Uint8Array[];
|
|
95585
|
+
|
|
95586
|
+
/** ContentEngagementPassportCreated passportId. */
|
|
95587
|
+
passportId: string;
|
|
95588
|
+
|
|
95589
|
+
/** ContentEngagementPassportCreated profileId. */
|
|
95590
|
+
profileId: string;
|
|
95591
|
+
|
|
95592
|
+
/** ContentEngagementPassportCreated hsUserId. */
|
|
95593
|
+
hsUserId: string;
|
|
95594
|
+
|
|
95595
|
+
/** ContentEngagementPassportCreated universe. */
|
|
95596
|
+
universe: string;
|
|
95597
|
+
|
|
95598
|
+
/** ContentEngagementPassportCreated timestamp. */
|
|
95599
|
+
timestamp: (number|Long);
|
|
95600
|
+
|
|
95601
|
+
/**
|
|
95602
|
+
* Creates a new ContentEngagementPassportCreated instance using the specified properties.
|
|
95603
|
+
* @param [properties] Properties to set
|
|
95604
|
+
* @returns ContentEngagementPassportCreated instance
|
|
95605
|
+
*/
|
|
95606
|
+
static create(properties: ContentEngagementPassportCreated.$Shape): ContentEngagementPassportCreated & ContentEngagementPassportCreated.$Shape;
|
|
95607
|
+
static create(properties?: ContentEngagementPassportCreated.$Properties): ContentEngagementPassportCreated;
|
|
95608
|
+
|
|
95609
|
+
/**
|
|
95610
|
+
* Encodes the specified ContentEngagementPassportCreated message. Does not implicitly {@link ContentEngagementPassportCreated.verify|verify} messages.
|
|
95611
|
+
* @param message ContentEngagementPassportCreated message or plain object to encode
|
|
95612
|
+
* @param [writer] Writer to encode to
|
|
95613
|
+
* @returns Writer
|
|
95614
|
+
*/
|
|
95615
|
+
static encode(message: ContentEngagementPassportCreated.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
95616
|
+
|
|
95617
|
+
/**
|
|
95618
|
+
* Encodes the specified ContentEngagementPassportCreated message, length delimited. Does not implicitly {@link ContentEngagementPassportCreated.verify|verify} messages.
|
|
95619
|
+
* @param message ContentEngagementPassportCreated message or plain object to encode
|
|
95620
|
+
* @param [writer] Writer to encode to
|
|
95621
|
+
* @returns Writer
|
|
95622
|
+
*/
|
|
95623
|
+
static encodeDelimited(message: ContentEngagementPassportCreated.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
95624
|
+
|
|
95625
|
+
/**
|
|
95626
|
+
* Decodes a ContentEngagementPassportCreated message from the specified reader or buffer.
|
|
95627
|
+
* @param reader Reader or buffer to decode from
|
|
95628
|
+
* @param [length] Message length if known beforehand
|
|
95629
|
+
* @returns {ContentEngagementPassportCreated & ContentEngagementPassportCreated.$Shape} ContentEngagementPassportCreated
|
|
95630
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
95631
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
95632
|
+
*/
|
|
95633
|
+
static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ContentEngagementPassportCreated & ContentEngagementPassportCreated.$Shape;
|
|
95634
|
+
|
|
95635
|
+
/**
|
|
95636
|
+
* Decodes a ContentEngagementPassportCreated message from the specified reader or buffer, length delimited.
|
|
95637
|
+
* @param reader Reader or buffer to decode from
|
|
95638
|
+
* @returns {ContentEngagementPassportCreated & ContentEngagementPassportCreated.$Shape} ContentEngagementPassportCreated
|
|
95639
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
95640
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
95641
|
+
*/
|
|
95642
|
+
static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ContentEngagementPassportCreated & ContentEngagementPassportCreated.$Shape;
|
|
95643
|
+
|
|
95644
|
+
/**
|
|
95645
|
+
* Verifies a ContentEngagementPassportCreated message.
|
|
95646
|
+
* @param message Plain object to verify
|
|
95647
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
95648
|
+
*/
|
|
95649
|
+
static verify(message: { [k: string]: any }): (string|null);
|
|
95650
|
+
|
|
95651
|
+
/**
|
|
95652
|
+
* Creates a ContentEngagementPassportCreated message from a plain object. Also converts values to their respective internal types.
|
|
95653
|
+
* @param object Plain object
|
|
95654
|
+
* @returns ContentEngagementPassportCreated
|
|
95655
|
+
*/
|
|
95656
|
+
static fromObject(object: { [k: string]: any }): ContentEngagementPassportCreated;
|
|
95657
|
+
|
|
95658
|
+
/**
|
|
95659
|
+
* Creates a plain object from a ContentEngagementPassportCreated message. Also converts values to other types if specified.
|
|
95660
|
+
* @param message ContentEngagementPassportCreated
|
|
95661
|
+
* @param [options] Conversion options
|
|
95662
|
+
* @returns Plain object
|
|
95663
|
+
*/
|
|
95664
|
+
static toObject(message: ContentEngagementPassportCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
95665
|
+
|
|
95666
|
+
/**
|
|
95667
|
+
* Converts this ContentEngagementPassportCreated to JSON.
|
|
95668
|
+
* @returns JSON object
|
|
95669
|
+
*/
|
|
95670
|
+
toJSON(): { [k: string]: any };
|
|
95671
|
+
|
|
95672
|
+
/**
|
|
95673
|
+
* Gets the type url for ContentEngagementPassportCreated
|
|
95674
|
+
* @param [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
95675
|
+
* @returns The type url
|
|
95676
|
+
*/
|
|
95677
|
+
static getTypeUrl(prefix?: string): string;
|
|
95678
|
+
}
|
|
95679
|
+
|
|
95680
|
+
export namespace ContentEngagementPassportCreated {
|
|
95681
|
+
|
|
95682
|
+
/** Properties of a ContentEngagementPassportCreated. */
|
|
95683
|
+
interface $Properties {
|
|
95684
|
+
|
|
95685
|
+
/** ContentEngagementPassportCreated passportId */
|
|
95686
|
+
passportId?: (string|null);
|
|
95687
|
+
|
|
95688
|
+
/** ContentEngagementPassportCreated profileId */
|
|
95689
|
+
profileId?: (string|null);
|
|
95690
|
+
|
|
95691
|
+
/** ContentEngagementPassportCreated hsUserId */
|
|
95692
|
+
hsUserId?: (string|null);
|
|
95693
|
+
|
|
95694
|
+
/** ContentEngagementPassportCreated universe */
|
|
95695
|
+
universe?: (string|null);
|
|
95696
|
+
|
|
95697
|
+
/** ContentEngagementPassportCreated timestamp */
|
|
95698
|
+
timestamp?: (number|Long|null);
|
|
95699
|
+
|
|
95700
|
+
/** Unknown fields preserved while decoding */
|
|
95701
|
+
$unknowns?: Uint8Array[];
|
|
95702
|
+
}
|
|
95703
|
+
|
|
95704
|
+
/** Shape of a ContentEngagementPassportCreated. */
|
|
95705
|
+
type $Shape = ContentEngagementPassportCreated.$Properties;
|
|
95706
|
+
}
|
|
95707
|
+
|
|
95708
|
+
/**
|
|
95709
|
+
* Properties of a ContentEngagementPassportDeleted.
|
|
95710
|
+
* @deprecated Use ContentEngagementPassportDeleted.$Properties instead.
|
|
95711
|
+
*/
|
|
95712
|
+
export interface IContentEngagementPassportDeleted extends ContentEngagementPassportDeleted.$Properties {
|
|
95713
|
+
}
|
|
95714
|
+
|
|
95715
|
+
/**
|
|
95716
|
+
* Sent when a passport (experience-universe envelope) has been deleted.
|
|
95717
|
+
* Fired by hs-content-engagement-service.
|
|
95718
|
+
* Responsible team: Core Platform
|
|
95719
|
+
* Responsible domain: Content
|
|
95720
|
+
*/
|
|
95721
|
+
export class ContentEngagementPassportDeleted {
|
|
95722
|
+
|
|
95723
|
+
/**
|
|
95724
|
+
* Constructs a new ContentEngagementPassportDeleted.
|
|
95725
|
+
* @param [properties] Properties to set
|
|
95726
|
+
*/
|
|
95727
|
+
constructor(properties?: ContentEngagementPassportDeleted.$Properties);
|
|
95728
|
+
|
|
95729
|
+
/** Unknown fields preserved while decoding */
|
|
95730
|
+
$unknowns?: Uint8Array[];
|
|
95731
|
+
|
|
95732
|
+
/** ContentEngagementPassportDeleted passportId. */
|
|
95733
|
+
passportId: string;
|
|
95734
|
+
|
|
95735
|
+
/** ContentEngagementPassportDeleted profileId. */
|
|
95736
|
+
profileId: string;
|
|
95737
|
+
|
|
95738
|
+
/** ContentEngagementPassportDeleted hsUserId. */
|
|
95739
|
+
hsUserId: string;
|
|
95740
|
+
|
|
95741
|
+
/** ContentEngagementPassportDeleted timestamp. */
|
|
95742
|
+
timestamp: (number|Long);
|
|
95743
|
+
|
|
95744
|
+
/**
|
|
95745
|
+
* Creates a new ContentEngagementPassportDeleted instance using the specified properties.
|
|
95746
|
+
* @param [properties] Properties to set
|
|
95747
|
+
* @returns ContentEngagementPassportDeleted instance
|
|
95748
|
+
*/
|
|
95749
|
+
static create(properties: ContentEngagementPassportDeleted.$Shape): ContentEngagementPassportDeleted & ContentEngagementPassportDeleted.$Shape;
|
|
95750
|
+
static create(properties?: ContentEngagementPassportDeleted.$Properties): ContentEngagementPassportDeleted;
|
|
95751
|
+
|
|
95752
|
+
/**
|
|
95753
|
+
* Encodes the specified ContentEngagementPassportDeleted message. Does not implicitly {@link ContentEngagementPassportDeleted.verify|verify} messages.
|
|
95754
|
+
* @param message ContentEngagementPassportDeleted message or plain object to encode
|
|
95755
|
+
* @param [writer] Writer to encode to
|
|
95756
|
+
* @returns Writer
|
|
95757
|
+
*/
|
|
95758
|
+
static encode(message: ContentEngagementPassportDeleted.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
95759
|
+
|
|
95760
|
+
/**
|
|
95761
|
+
* Encodes the specified ContentEngagementPassportDeleted message, length delimited. Does not implicitly {@link ContentEngagementPassportDeleted.verify|verify} messages.
|
|
95762
|
+
* @param message ContentEngagementPassportDeleted message or plain object to encode
|
|
95763
|
+
* @param [writer] Writer to encode to
|
|
95764
|
+
* @returns Writer
|
|
95765
|
+
*/
|
|
95766
|
+
static encodeDelimited(message: ContentEngagementPassportDeleted.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
95767
|
+
|
|
95768
|
+
/**
|
|
95769
|
+
* Decodes a ContentEngagementPassportDeleted message from the specified reader or buffer.
|
|
95770
|
+
* @param reader Reader or buffer to decode from
|
|
95771
|
+
* @param [length] Message length if known beforehand
|
|
95772
|
+
* @returns {ContentEngagementPassportDeleted & ContentEngagementPassportDeleted.$Shape} ContentEngagementPassportDeleted
|
|
95773
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
95774
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
95775
|
+
*/
|
|
95776
|
+
static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ContentEngagementPassportDeleted & ContentEngagementPassportDeleted.$Shape;
|
|
95777
|
+
|
|
95778
|
+
/**
|
|
95779
|
+
* Decodes a ContentEngagementPassportDeleted message from the specified reader or buffer, length delimited.
|
|
95780
|
+
* @param reader Reader or buffer to decode from
|
|
95781
|
+
* @returns {ContentEngagementPassportDeleted & ContentEngagementPassportDeleted.$Shape} ContentEngagementPassportDeleted
|
|
95782
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
95783
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
95784
|
+
*/
|
|
95785
|
+
static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ContentEngagementPassportDeleted & ContentEngagementPassportDeleted.$Shape;
|
|
95786
|
+
|
|
95787
|
+
/**
|
|
95788
|
+
* Verifies a ContentEngagementPassportDeleted message.
|
|
95789
|
+
* @param message Plain object to verify
|
|
95790
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
95791
|
+
*/
|
|
95792
|
+
static verify(message: { [k: string]: any }): (string|null);
|
|
95793
|
+
|
|
95794
|
+
/**
|
|
95795
|
+
* Creates a ContentEngagementPassportDeleted message from a plain object. Also converts values to their respective internal types.
|
|
95796
|
+
* @param object Plain object
|
|
95797
|
+
* @returns ContentEngagementPassportDeleted
|
|
95798
|
+
*/
|
|
95799
|
+
static fromObject(object: { [k: string]: any }): ContentEngagementPassportDeleted;
|
|
95800
|
+
|
|
95801
|
+
/**
|
|
95802
|
+
* Creates a plain object from a ContentEngagementPassportDeleted message. Also converts values to other types if specified.
|
|
95803
|
+
* @param message ContentEngagementPassportDeleted
|
|
95804
|
+
* @param [options] Conversion options
|
|
95805
|
+
* @returns Plain object
|
|
95806
|
+
*/
|
|
95807
|
+
static toObject(message: ContentEngagementPassportDeleted, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
95808
|
+
|
|
95809
|
+
/**
|
|
95810
|
+
* Converts this ContentEngagementPassportDeleted to JSON.
|
|
95811
|
+
* @returns JSON object
|
|
95812
|
+
*/
|
|
95813
|
+
toJSON(): { [k: string]: any };
|
|
95814
|
+
|
|
95815
|
+
/**
|
|
95816
|
+
* Gets the type url for ContentEngagementPassportDeleted
|
|
95817
|
+
* @param [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
95818
|
+
* @returns The type url
|
|
95819
|
+
*/
|
|
95820
|
+
static getTypeUrl(prefix?: string): string;
|
|
95821
|
+
}
|
|
95822
|
+
|
|
95823
|
+
export namespace ContentEngagementPassportDeleted {
|
|
95824
|
+
|
|
95825
|
+
/** Properties of a ContentEngagementPassportDeleted. */
|
|
95826
|
+
interface $Properties {
|
|
95827
|
+
|
|
95828
|
+
/** ContentEngagementPassportDeleted passportId */
|
|
95829
|
+
passportId?: (string|null);
|
|
95830
|
+
|
|
95831
|
+
/** ContentEngagementPassportDeleted profileId */
|
|
95832
|
+
profileId?: (string|null);
|
|
95833
|
+
|
|
95834
|
+
/** ContentEngagementPassportDeleted hsUserId */
|
|
95835
|
+
hsUserId?: (string|null);
|
|
95836
|
+
|
|
95837
|
+
/** ContentEngagementPassportDeleted timestamp */
|
|
95838
|
+
timestamp?: (number|Long|null);
|
|
95839
|
+
|
|
95840
|
+
/** Unknown fields preserved while decoding */
|
|
95841
|
+
$unknowns?: Uint8Array[];
|
|
95842
|
+
}
|
|
95843
|
+
|
|
95844
|
+
/** Shape of a ContentEngagementPassportDeleted. */
|
|
95845
|
+
type $Shape = ContentEngagementPassportDeleted.$Properties;
|
|
95846
|
+
}
|
|
95847
|
+
|
|
95550
95848
|
/**
|
|
95551
95849
|
* Properties of a PHQAssessmentAssigned.
|
|
95552
95850
|
* @deprecated Use PHQAssessmentAssigned.$Properties instead.
|
package/lib/index.js
CHANGED
|
@@ -147331,6 +147331,8 @@ $root.ContentPlayed = (function() {
|
|
|
147331
147331
|
* @property {ContentType|null} [contentType] ContentPlayed contentType
|
|
147332
147332
|
* @property {Mode|null} [mode] ContentPlayed mode
|
|
147333
147333
|
* @property {ContentPlayedMetadata.$Properties|null} [metadata] ContentPlayed metadata
|
|
147334
|
+
* @property {string|null} [passportId] ContentPlayed passportId
|
|
147335
|
+
* @property {string|null} [universe] ContentPlayed universe
|
|
147334
147336
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
147335
147337
|
*/
|
|
147336
147338
|
|
|
@@ -147410,6 +147412,22 @@ $root.ContentPlayed = (function() {
|
|
|
147410
147412
|
*/
|
|
147411
147413
|
ContentPlayed.prototype.metadata = null;
|
|
147412
147414
|
|
|
147415
|
+
/**
|
|
147416
|
+
* ContentPlayed passportId.
|
|
147417
|
+
* @member {string} passportId
|
|
147418
|
+
* @memberof ContentPlayed
|
|
147419
|
+
* @instance
|
|
147420
|
+
*/
|
|
147421
|
+
ContentPlayed.prototype.passportId = "";
|
|
147422
|
+
|
|
147423
|
+
/**
|
|
147424
|
+
* ContentPlayed universe.
|
|
147425
|
+
* @member {string} universe
|
|
147426
|
+
* @memberof ContentPlayed
|
|
147427
|
+
* @instance
|
|
147428
|
+
*/
|
|
147429
|
+
ContentPlayed.prototype.universe = "";
|
|
147430
|
+
|
|
147413
147431
|
/**
|
|
147414
147432
|
* Creates a new ContentPlayed instance using the specified properties.
|
|
147415
147433
|
* @function create
|
|
@@ -147450,6 +147468,10 @@ $root.ContentPlayed = (function() {
|
|
|
147450
147468
|
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.mode);
|
|
147451
147469
|
if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata"))
|
|
147452
147470
|
$root.ContentPlayedMetadata.encode(message.metadata, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
147471
|
+
if (message.passportId != null && Object.hasOwnProperty.call(message, "passportId"))
|
|
147472
|
+
writer.uint32(/* id 7, wireType 2 =*/58).string(message.passportId);
|
|
147473
|
+
if (message.universe != null && Object.hasOwnProperty.call(message, "universe"))
|
|
147474
|
+
writer.uint32(/* id 8, wireType 2 =*/66).string(message.universe);
|
|
147453
147475
|
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
147454
147476
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
147455
147477
|
writer.raw(message.$unknowns[i]);
|
|
@@ -147548,6 +147570,24 @@ $root.ContentPlayed = (function() {
|
|
|
147548
147570
|
message.metadata = $root.ContentPlayedMetadata.decode(reader, reader.uint32(), undefined, _depth + 1, message.metadata);
|
|
147549
147571
|
continue;
|
|
147550
147572
|
}
|
|
147573
|
+
case 7: {
|
|
147574
|
+
if (wireType !== 2)
|
|
147575
|
+
break;
|
|
147576
|
+
if ((value = reader.string()).length)
|
|
147577
|
+
message.passportId = value;
|
|
147578
|
+
else
|
|
147579
|
+
delete message.passportId;
|
|
147580
|
+
continue;
|
|
147581
|
+
}
|
|
147582
|
+
case 8: {
|
|
147583
|
+
if (wireType !== 2)
|
|
147584
|
+
break;
|
|
147585
|
+
if ((value = reader.string()).length)
|
|
147586
|
+
message.universe = value;
|
|
147587
|
+
else
|
|
147588
|
+
delete message.universe;
|
|
147589
|
+
continue;
|
|
147590
|
+
}
|
|
147551
147591
|
}
|
|
147552
147592
|
reader.skipType(wireType, _depth, tag);
|
|
147553
147593
|
$util.makeProp(message, "$unknowns", false);
|
|
@@ -147643,6 +147683,12 @@ $root.ContentPlayed = (function() {
|
|
|
147643
147683
|
if (error)
|
|
147644
147684
|
return "metadata." + error;
|
|
147645
147685
|
}
|
|
147686
|
+
if (message.passportId != null && message.hasOwnProperty("passportId"))
|
|
147687
|
+
if (!$util.isString(message.passportId))
|
|
147688
|
+
return "passportId: string expected";
|
|
147689
|
+
if (message.universe != null && message.hasOwnProperty("universe"))
|
|
147690
|
+
if (!$util.isString(message.universe))
|
|
147691
|
+
return "universe: string expected";
|
|
147646
147692
|
return null;
|
|
147647
147693
|
};
|
|
147648
147694
|
|
|
@@ -147813,6 +147859,12 @@ $root.ContentPlayed = (function() {
|
|
|
147813
147859
|
throw TypeError(".ContentPlayed.metadata: object expected");
|
|
147814
147860
|
message.metadata = $root.ContentPlayedMetadata.fromObject(object.metadata, _depth + 1);
|
|
147815
147861
|
}
|
|
147862
|
+
if (object.passportId != null)
|
|
147863
|
+
if (typeof object.passportId !== "string" || object.passportId.length)
|
|
147864
|
+
message.passportId = String(object.passportId);
|
|
147865
|
+
if (object.universe != null)
|
|
147866
|
+
if (typeof object.universe !== "string" || object.universe.length)
|
|
147867
|
+
message.universe = String(object.universe);
|
|
147816
147868
|
return message;
|
|
147817
147869
|
};
|
|
147818
147870
|
|
|
@@ -147840,6 +147892,8 @@ $root.ContentPlayed = (function() {
|
|
|
147840
147892
|
object.contentType = options.enums === String ? "CONTENT_TYPE_UNRECOGNIZED" : 0;
|
|
147841
147893
|
object.mode = options.enums === String ? "MODE_UNRECOGNIZED" : 0;
|
|
147842
147894
|
object.metadata = null;
|
|
147895
|
+
object.passportId = "";
|
|
147896
|
+
object.universe = "";
|
|
147843
147897
|
}
|
|
147844
147898
|
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
147845
147899
|
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
@@ -147858,6 +147912,10 @@ $root.ContentPlayed = (function() {
|
|
|
147858
147912
|
object.mode = options.enums === String ? $root.Mode[message.mode] === undefined ? message.mode : $root.Mode[message.mode] : message.mode;
|
|
147859
147913
|
if (message.metadata != null && message.hasOwnProperty("metadata"))
|
|
147860
147914
|
object.metadata = $root.ContentPlayedMetadata.toObject(message.metadata, options);
|
|
147915
|
+
if (message.passportId != null && message.hasOwnProperty("passportId"))
|
|
147916
|
+
object.passportId = message.passportId;
|
|
147917
|
+
if (message.universe != null && message.hasOwnProperty("universe"))
|
|
147918
|
+
object.universe = message.universe;
|
|
147861
147919
|
return object;
|
|
147862
147920
|
};
|
|
147863
147921
|
|
|
@@ -280726,6 +280784,745 @@ $root.PartnerSignalWindDownScheduled = (function() {
|
|
|
280726
280784
|
return PartnerSignalWindDownScheduled;
|
|
280727
280785
|
})();
|
|
280728
280786
|
|
|
280787
|
+
$root.ContentEngagementPassportCreated = (function() {
|
|
280788
|
+
|
|
280789
|
+
/**
|
|
280790
|
+
* Properties of a ContentEngagementPassportCreated.
|
|
280791
|
+
* @typedef {Object} ContentEngagementPassportCreated.$Properties
|
|
280792
|
+
* @property {string|null} [passportId] ContentEngagementPassportCreated passportId
|
|
280793
|
+
* @property {string|null} [profileId] ContentEngagementPassportCreated profileId
|
|
280794
|
+
* @property {string|null} [hsUserId] ContentEngagementPassportCreated hsUserId
|
|
280795
|
+
* @property {string|null} [universe] ContentEngagementPassportCreated universe
|
|
280796
|
+
* @property {number|Long|null} [timestamp] ContentEngagementPassportCreated timestamp
|
|
280797
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
280798
|
+
*/
|
|
280799
|
+
|
|
280800
|
+
/**
|
|
280801
|
+
* Properties of a ContentEngagementPassportCreated.
|
|
280802
|
+
* @name IContentEngagementPassportCreated
|
|
280803
|
+
* @interface IContentEngagementPassportCreated
|
|
280804
|
+
* @augments ContentEngagementPassportCreated.$Properties
|
|
280805
|
+
* @deprecated Use ContentEngagementPassportCreated.$Properties instead.
|
|
280806
|
+
*/
|
|
280807
|
+
|
|
280808
|
+
/**
|
|
280809
|
+
* Shape of a ContentEngagementPassportCreated.
|
|
280810
|
+
* @typedef {ContentEngagementPassportCreated.$Properties} ContentEngagementPassportCreated.$Shape
|
|
280811
|
+
*/
|
|
280812
|
+
|
|
280813
|
+
/**
|
|
280814
|
+
* Constructs a new ContentEngagementPassportCreated.
|
|
280815
|
+
* @name ContentEngagementPassportCreated
|
|
280816
|
+
* @classdesc Sent when a passport (experience-universe envelope) has been created.
|
|
280817
|
+
* Fired by hs-content-engagement-service.
|
|
280818
|
+
* Responsible team: Core Platform
|
|
280819
|
+
* Responsible domain: Content
|
|
280820
|
+
* @constructor
|
|
280821
|
+
* @param {ContentEngagementPassportCreated.$Properties=} [properties] Properties to set
|
|
280822
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
280823
|
+
*/
|
|
280824
|
+
function ContentEngagementPassportCreated(properties) {
|
|
280825
|
+
if (properties)
|
|
280826
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
280827
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
280828
|
+
this[keys[i]] = properties[keys[i]];
|
|
280829
|
+
}
|
|
280830
|
+
|
|
280831
|
+
/**
|
|
280832
|
+
* ContentEngagementPassportCreated passportId.
|
|
280833
|
+
* @member {string} passportId
|
|
280834
|
+
* @memberof ContentEngagementPassportCreated
|
|
280835
|
+
* @instance
|
|
280836
|
+
*/
|
|
280837
|
+
ContentEngagementPassportCreated.prototype.passportId = "";
|
|
280838
|
+
|
|
280839
|
+
/**
|
|
280840
|
+
* ContentEngagementPassportCreated profileId.
|
|
280841
|
+
* @member {string} profileId
|
|
280842
|
+
* @memberof ContentEngagementPassportCreated
|
|
280843
|
+
* @instance
|
|
280844
|
+
*/
|
|
280845
|
+
ContentEngagementPassportCreated.prototype.profileId = "";
|
|
280846
|
+
|
|
280847
|
+
/**
|
|
280848
|
+
* ContentEngagementPassportCreated hsUserId.
|
|
280849
|
+
* @member {string} hsUserId
|
|
280850
|
+
* @memberof ContentEngagementPassportCreated
|
|
280851
|
+
* @instance
|
|
280852
|
+
*/
|
|
280853
|
+
ContentEngagementPassportCreated.prototype.hsUserId = "";
|
|
280854
|
+
|
|
280855
|
+
/**
|
|
280856
|
+
* ContentEngagementPassportCreated universe.
|
|
280857
|
+
* @member {string} universe
|
|
280858
|
+
* @memberof ContentEngagementPassportCreated
|
|
280859
|
+
* @instance
|
|
280860
|
+
*/
|
|
280861
|
+
ContentEngagementPassportCreated.prototype.universe = "";
|
|
280862
|
+
|
|
280863
|
+
/**
|
|
280864
|
+
* ContentEngagementPassportCreated timestamp.
|
|
280865
|
+
* @member {number|Long} timestamp
|
|
280866
|
+
* @memberof ContentEngagementPassportCreated
|
|
280867
|
+
* @instance
|
|
280868
|
+
*/
|
|
280869
|
+
ContentEngagementPassportCreated.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
280870
|
+
|
|
280871
|
+
/**
|
|
280872
|
+
* Creates a new ContentEngagementPassportCreated instance using the specified properties.
|
|
280873
|
+
* @function create
|
|
280874
|
+
* @memberof ContentEngagementPassportCreated
|
|
280875
|
+
* @static
|
|
280876
|
+
* @param {ContentEngagementPassportCreated.$Properties=} [properties] Properties to set
|
|
280877
|
+
* @returns {ContentEngagementPassportCreated} ContentEngagementPassportCreated instance
|
|
280878
|
+
* @type {{
|
|
280879
|
+
* (properties: ContentEngagementPassportCreated.$Shape): ContentEngagementPassportCreated & ContentEngagementPassportCreated.$Shape;
|
|
280880
|
+
* (properties?: ContentEngagementPassportCreated.$Properties): ContentEngagementPassportCreated;
|
|
280881
|
+
* }}
|
|
280882
|
+
*/
|
|
280883
|
+
ContentEngagementPassportCreated.create = function create(properties) {
|
|
280884
|
+
return new ContentEngagementPassportCreated(properties);
|
|
280885
|
+
};
|
|
280886
|
+
|
|
280887
|
+
/**
|
|
280888
|
+
* Encodes the specified ContentEngagementPassportCreated message. Does not implicitly {@link ContentEngagementPassportCreated.verify|verify} messages.
|
|
280889
|
+
* @function encode
|
|
280890
|
+
* @memberof ContentEngagementPassportCreated
|
|
280891
|
+
* @static
|
|
280892
|
+
* @param {ContentEngagementPassportCreated.$Properties} message ContentEngagementPassportCreated message or plain object to encode
|
|
280893
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
280894
|
+
* @returns {$protobuf.Writer} Writer
|
|
280895
|
+
*/
|
|
280896
|
+
ContentEngagementPassportCreated.encode = function encode(message, writer) {
|
|
280897
|
+
if (!writer)
|
|
280898
|
+
writer = $Writer.create();
|
|
280899
|
+
if (message.passportId != null && Object.hasOwnProperty.call(message, "passportId"))
|
|
280900
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.passportId);
|
|
280901
|
+
if (message.profileId != null && Object.hasOwnProperty.call(message, "profileId"))
|
|
280902
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.profileId);
|
|
280903
|
+
if (message.hsUserId != null && Object.hasOwnProperty.call(message, "hsUserId"))
|
|
280904
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.hsUserId);
|
|
280905
|
+
if (message.universe != null && Object.hasOwnProperty.call(message, "universe"))
|
|
280906
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.universe);
|
|
280907
|
+
if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp"))
|
|
280908
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.timestamp);
|
|
280909
|
+
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
280910
|
+
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
280911
|
+
writer.raw(message.$unknowns[i]);
|
|
280912
|
+
return writer;
|
|
280913
|
+
};
|
|
280914
|
+
|
|
280915
|
+
/**
|
|
280916
|
+
* Encodes the specified ContentEngagementPassportCreated message, length delimited. Does not implicitly {@link ContentEngagementPassportCreated.verify|verify} messages.
|
|
280917
|
+
* @function encodeDelimited
|
|
280918
|
+
* @memberof ContentEngagementPassportCreated
|
|
280919
|
+
* @static
|
|
280920
|
+
* @param {ContentEngagementPassportCreated.$Properties} message ContentEngagementPassportCreated message or plain object to encode
|
|
280921
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
280922
|
+
* @returns {$protobuf.Writer} Writer
|
|
280923
|
+
*/
|
|
280924
|
+
ContentEngagementPassportCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
280925
|
+
return this.encode(message, writer).ldelim();
|
|
280926
|
+
};
|
|
280927
|
+
|
|
280928
|
+
/**
|
|
280929
|
+
* Decodes a ContentEngagementPassportCreated message from the specified reader or buffer.
|
|
280930
|
+
* @function decode
|
|
280931
|
+
* @memberof ContentEngagementPassportCreated
|
|
280932
|
+
* @static
|
|
280933
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
280934
|
+
* @param {number} [length] Message length if known beforehand
|
|
280935
|
+
* @returns {ContentEngagementPassportCreated & ContentEngagementPassportCreated.$Shape} ContentEngagementPassportCreated
|
|
280936
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
280937
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
280938
|
+
*/
|
|
280939
|
+
ContentEngagementPassportCreated.decode = function decode(reader, length, _end, _depth, _target) {
|
|
280940
|
+
if (!(reader instanceof $Reader))
|
|
280941
|
+
reader = $Reader.create(reader);
|
|
280942
|
+
if (_depth === undefined)
|
|
280943
|
+
_depth = 0;
|
|
280944
|
+
if (_depth > $Reader.recursionLimit)
|
|
280945
|
+
throw Error("max depth exceeded");
|
|
280946
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.ContentEngagementPassportCreated(), value;
|
|
280947
|
+
while (reader.pos < end) {
|
|
280948
|
+
var start = reader.pos;
|
|
280949
|
+
var tag = reader.tag();
|
|
280950
|
+
if (tag === _end) {
|
|
280951
|
+
_end = undefined;
|
|
280952
|
+
break;
|
|
280953
|
+
}
|
|
280954
|
+
var wireType = tag & 7;
|
|
280955
|
+
switch (tag >>>= 3) {
|
|
280956
|
+
case 1: {
|
|
280957
|
+
if (wireType !== 2)
|
|
280958
|
+
break;
|
|
280959
|
+
if ((value = reader.string()).length)
|
|
280960
|
+
message.passportId = value;
|
|
280961
|
+
else
|
|
280962
|
+
delete message.passportId;
|
|
280963
|
+
continue;
|
|
280964
|
+
}
|
|
280965
|
+
case 2: {
|
|
280966
|
+
if (wireType !== 2)
|
|
280967
|
+
break;
|
|
280968
|
+
if ((value = reader.string()).length)
|
|
280969
|
+
message.profileId = value;
|
|
280970
|
+
else
|
|
280971
|
+
delete message.profileId;
|
|
280972
|
+
continue;
|
|
280973
|
+
}
|
|
280974
|
+
case 3: {
|
|
280975
|
+
if (wireType !== 2)
|
|
280976
|
+
break;
|
|
280977
|
+
if ((value = reader.string()).length)
|
|
280978
|
+
message.hsUserId = value;
|
|
280979
|
+
else
|
|
280980
|
+
delete message.hsUserId;
|
|
280981
|
+
continue;
|
|
280982
|
+
}
|
|
280983
|
+
case 4: {
|
|
280984
|
+
if (wireType !== 2)
|
|
280985
|
+
break;
|
|
280986
|
+
if ((value = reader.string()).length)
|
|
280987
|
+
message.universe = value;
|
|
280988
|
+
else
|
|
280989
|
+
delete message.universe;
|
|
280990
|
+
continue;
|
|
280991
|
+
}
|
|
280992
|
+
case 5: {
|
|
280993
|
+
if (wireType !== 0)
|
|
280994
|
+
break;
|
|
280995
|
+
if (typeof (value = reader.uint64()) === "object" ? value.low || value.high : value !== 0)
|
|
280996
|
+
message.timestamp = value;
|
|
280997
|
+
else
|
|
280998
|
+
delete message.timestamp;
|
|
280999
|
+
continue;
|
|
281000
|
+
}
|
|
281001
|
+
}
|
|
281002
|
+
reader.skipType(wireType, _depth, tag);
|
|
281003
|
+
$util.makeProp(message, "$unknowns", false);
|
|
281004
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
281005
|
+
}
|
|
281006
|
+
if (_end !== undefined)
|
|
281007
|
+
throw Error("missing end group");
|
|
281008
|
+
return message;
|
|
281009
|
+
};
|
|
281010
|
+
|
|
281011
|
+
/**
|
|
281012
|
+
* Decodes a ContentEngagementPassportCreated message from the specified reader or buffer, length delimited.
|
|
281013
|
+
* @function decodeDelimited
|
|
281014
|
+
* @memberof ContentEngagementPassportCreated
|
|
281015
|
+
* @static
|
|
281016
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
281017
|
+
* @returns {ContentEngagementPassportCreated & ContentEngagementPassportCreated.$Shape} ContentEngagementPassportCreated
|
|
281018
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
281019
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
281020
|
+
*/
|
|
281021
|
+
ContentEngagementPassportCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
281022
|
+
if (!(reader instanceof $Reader))
|
|
281023
|
+
reader = new $Reader(reader);
|
|
281024
|
+
return this.decode(reader, reader.uint32());
|
|
281025
|
+
};
|
|
281026
|
+
|
|
281027
|
+
/**
|
|
281028
|
+
* Verifies a ContentEngagementPassportCreated message.
|
|
281029
|
+
* @function verify
|
|
281030
|
+
* @memberof ContentEngagementPassportCreated
|
|
281031
|
+
* @static
|
|
281032
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
281033
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
281034
|
+
*/
|
|
281035
|
+
ContentEngagementPassportCreated.verify = function verify(message, _depth) {
|
|
281036
|
+
if (typeof message !== "object" || message === null)
|
|
281037
|
+
return "object expected";
|
|
281038
|
+
if (_depth === undefined)
|
|
281039
|
+
_depth = 0;
|
|
281040
|
+
if (_depth > $util.recursionLimit)
|
|
281041
|
+
return "max depth exceeded";
|
|
281042
|
+
if (message.passportId != null && message.hasOwnProperty("passportId"))
|
|
281043
|
+
if (!$util.isString(message.passportId))
|
|
281044
|
+
return "passportId: string expected";
|
|
281045
|
+
if (message.profileId != null && message.hasOwnProperty("profileId"))
|
|
281046
|
+
if (!$util.isString(message.profileId))
|
|
281047
|
+
return "profileId: string expected";
|
|
281048
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
281049
|
+
if (!$util.isString(message.hsUserId))
|
|
281050
|
+
return "hsUserId: string expected";
|
|
281051
|
+
if (message.universe != null && message.hasOwnProperty("universe"))
|
|
281052
|
+
if (!$util.isString(message.universe))
|
|
281053
|
+
return "universe: string expected";
|
|
281054
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
281055
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
281056
|
+
return "timestamp: integer|Long expected";
|
|
281057
|
+
return null;
|
|
281058
|
+
};
|
|
281059
|
+
|
|
281060
|
+
/**
|
|
281061
|
+
* Creates a ContentEngagementPassportCreated message from a plain object. Also converts values to their respective internal types.
|
|
281062
|
+
* @function fromObject
|
|
281063
|
+
* @memberof ContentEngagementPassportCreated
|
|
281064
|
+
* @static
|
|
281065
|
+
* @param {Object.<string,*>} object Plain object
|
|
281066
|
+
* @returns {ContentEngagementPassportCreated} ContentEngagementPassportCreated
|
|
281067
|
+
*/
|
|
281068
|
+
ContentEngagementPassportCreated.fromObject = function fromObject(object, _depth) {
|
|
281069
|
+
if (object instanceof $root.ContentEngagementPassportCreated)
|
|
281070
|
+
return object;
|
|
281071
|
+
if (_depth === undefined)
|
|
281072
|
+
_depth = 0;
|
|
281073
|
+
if (_depth > $util.recursionLimit)
|
|
281074
|
+
throw Error("max depth exceeded");
|
|
281075
|
+
var message = new $root.ContentEngagementPassportCreated();
|
|
281076
|
+
if (object.passportId != null)
|
|
281077
|
+
if (typeof object.passportId !== "string" || object.passportId.length)
|
|
281078
|
+
message.passportId = String(object.passportId);
|
|
281079
|
+
if (object.profileId != null)
|
|
281080
|
+
if (typeof object.profileId !== "string" || object.profileId.length)
|
|
281081
|
+
message.profileId = String(object.profileId);
|
|
281082
|
+
if (object.hsUserId != null)
|
|
281083
|
+
if (typeof object.hsUserId !== "string" || object.hsUserId.length)
|
|
281084
|
+
message.hsUserId = String(object.hsUserId);
|
|
281085
|
+
if (object.universe != null)
|
|
281086
|
+
if (typeof object.universe !== "string" || object.universe.length)
|
|
281087
|
+
message.universe = String(object.universe);
|
|
281088
|
+
if (object.timestamp != null)
|
|
281089
|
+
if (typeof object.timestamp === "object" ? object.timestamp.low || object.timestamp.high : Number(object.timestamp) !== 0)
|
|
281090
|
+
if ($util.Long)
|
|
281091
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
281092
|
+
else if (typeof object.timestamp === "string")
|
|
281093
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
281094
|
+
else if (typeof object.timestamp === "number")
|
|
281095
|
+
message.timestamp = object.timestamp;
|
|
281096
|
+
else if (typeof object.timestamp === "object")
|
|
281097
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
281098
|
+
return message;
|
|
281099
|
+
};
|
|
281100
|
+
|
|
281101
|
+
/**
|
|
281102
|
+
* Creates a plain object from a ContentEngagementPassportCreated message. Also converts values to other types if specified.
|
|
281103
|
+
* @function toObject
|
|
281104
|
+
* @memberof ContentEngagementPassportCreated
|
|
281105
|
+
* @static
|
|
281106
|
+
* @param {ContentEngagementPassportCreated} message ContentEngagementPassportCreated
|
|
281107
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
281108
|
+
* @returns {Object.<string,*>} Plain object
|
|
281109
|
+
*/
|
|
281110
|
+
ContentEngagementPassportCreated.toObject = function toObject(message, options) {
|
|
281111
|
+
if (!options)
|
|
281112
|
+
options = {};
|
|
281113
|
+
var object = {};
|
|
281114
|
+
if (options.defaults) {
|
|
281115
|
+
object.passportId = "";
|
|
281116
|
+
object.profileId = "";
|
|
281117
|
+
object.hsUserId = "";
|
|
281118
|
+
object.universe = "";
|
|
281119
|
+
if ($util.Long) {
|
|
281120
|
+
var long = new $util.Long(0, 0, true);
|
|
281121
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
281122
|
+
} else
|
|
281123
|
+
object.timestamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
281124
|
+
}
|
|
281125
|
+
if (message.passportId != null && message.hasOwnProperty("passportId"))
|
|
281126
|
+
object.passportId = message.passportId;
|
|
281127
|
+
if (message.profileId != null && message.hasOwnProperty("profileId"))
|
|
281128
|
+
object.profileId = message.profileId;
|
|
281129
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
281130
|
+
object.hsUserId = message.hsUserId;
|
|
281131
|
+
if (message.universe != null && message.hasOwnProperty("universe"))
|
|
281132
|
+
object.universe = message.universe;
|
|
281133
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
281134
|
+
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
281135
|
+
object.timestamp = typeof message.timestamp === "number" ? BigInt(message.timestamp) : $util.Long.fromBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0, true).toBigInt();
|
|
281136
|
+
else if (typeof message.timestamp === "number")
|
|
281137
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
281138
|
+
else
|
|
281139
|
+
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;
|
|
281140
|
+
return object;
|
|
281141
|
+
};
|
|
281142
|
+
|
|
281143
|
+
/**
|
|
281144
|
+
* Converts this ContentEngagementPassportCreated to JSON.
|
|
281145
|
+
* @function toJSON
|
|
281146
|
+
* @memberof ContentEngagementPassportCreated
|
|
281147
|
+
* @instance
|
|
281148
|
+
* @returns {Object.<string,*>} JSON object
|
|
281149
|
+
*/
|
|
281150
|
+
ContentEngagementPassportCreated.prototype.toJSON = function toJSON() {
|
|
281151
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
281152
|
+
};
|
|
281153
|
+
|
|
281154
|
+
/**
|
|
281155
|
+
* Gets the type url for ContentEngagementPassportCreated
|
|
281156
|
+
* @function getTypeUrl
|
|
281157
|
+
* @memberof ContentEngagementPassportCreated
|
|
281158
|
+
* @static
|
|
281159
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
281160
|
+
* @returns {string} The type url
|
|
281161
|
+
*/
|
|
281162
|
+
ContentEngagementPassportCreated.getTypeUrl = function getTypeUrl(prefix) {
|
|
281163
|
+
if (prefix === undefined)
|
|
281164
|
+
prefix = "type.googleapis.com";
|
|
281165
|
+
return prefix + "/ContentEngagementPassportCreated";
|
|
281166
|
+
};
|
|
281167
|
+
|
|
281168
|
+
return ContentEngagementPassportCreated;
|
|
281169
|
+
})();
|
|
281170
|
+
|
|
281171
|
+
$root.ContentEngagementPassportDeleted = (function() {
|
|
281172
|
+
|
|
281173
|
+
/**
|
|
281174
|
+
* Properties of a ContentEngagementPassportDeleted.
|
|
281175
|
+
* @typedef {Object} ContentEngagementPassportDeleted.$Properties
|
|
281176
|
+
* @property {string|null} [passportId] ContentEngagementPassportDeleted passportId
|
|
281177
|
+
* @property {string|null} [profileId] ContentEngagementPassportDeleted profileId
|
|
281178
|
+
* @property {string|null} [hsUserId] ContentEngagementPassportDeleted hsUserId
|
|
281179
|
+
* @property {number|Long|null} [timestamp] ContentEngagementPassportDeleted timestamp
|
|
281180
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
281181
|
+
*/
|
|
281182
|
+
|
|
281183
|
+
/**
|
|
281184
|
+
* Properties of a ContentEngagementPassportDeleted.
|
|
281185
|
+
* @name IContentEngagementPassportDeleted
|
|
281186
|
+
* @interface IContentEngagementPassportDeleted
|
|
281187
|
+
* @augments ContentEngagementPassportDeleted.$Properties
|
|
281188
|
+
* @deprecated Use ContentEngagementPassportDeleted.$Properties instead.
|
|
281189
|
+
*/
|
|
281190
|
+
|
|
281191
|
+
/**
|
|
281192
|
+
* Shape of a ContentEngagementPassportDeleted.
|
|
281193
|
+
* @typedef {ContentEngagementPassportDeleted.$Properties} ContentEngagementPassportDeleted.$Shape
|
|
281194
|
+
*/
|
|
281195
|
+
|
|
281196
|
+
/**
|
|
281197
|
+
* Constructs a new ContentEngagementPassportDeleted.
|
|
281198
|
+
* @name ContentEngagementPassportDeleted
|
|
281199
|
+
* @classdesc Sent when a passport (experience-universe envelope) has been deleted.
|
|
281200
|
+
* Fired by hs-content-engagement-service.
|
|
281201
|
+
* Responsible team: Core Platform
|
|
281202
|
+
* Responsible domain: Content
|
|
281203
|
+
* @constructor
|
|
281204
|
+
* @param {ContentEngagementPassportDeleted.$Properties=} [properties] Properties to set
|
|
281205
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
281206
|
+
*/
|
|
281207
|
+
function ContentEngagementPassportDeleted(properties) {
|
|
281208
|
+
if (properties)
|
|
281209
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
281210
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
281211
|
+
this[keys[i]] = properties[keys[i]];
|
|
281212
|
+
}
|
|
281213
|
+
|
|
281214
|
+
/**
|
|
281215
|
+
* ContentEngagementPassportDeleted passportId.
|
|
281216
|
+
* @member {string} passportId
|
|
281217
|
+
* @memberof ContentEngagementPassportDeleted
|
|
281218
|
+
* @instance
|
|
281219
|
+
*/
|
|
281220
|
+
ContentEngagementPassportDeleted.prototype.passportId = "";
|
|
281221
|
+
|
|
281222
|
+
/**
|
|
281223
|
+
* ContentEngagementPassportDeleted profileId.
|
|
281224
|
+
* @member {string} profileId
|
|
281225
|
+
* @memberof ContentEngagementPassportDeleted
|
|
281226
|
+
* @instance
|
|
281227
|
+
*/
|
|
281228
|
+
ContentEngagementPassportDeleted.prototype.profileId = "";
|
|
281229
|
+
|
|
281230
|
+
/**
|
|
281231
|
+
* ContentEngagementPassportDeleted hsUserId.
|
|
281232
|
+
* @member {string} hsUserId
|
|
281233
|
+
* @memberof ContentEngagementPassportDeleted
|
|
281234
|
+
* @instance
|
|
281235
|
+
*/
|
|
281236
|
+
ContentEngagementPassportDeleted.prototype.hsUserId = "";
|
|
281237
|
+
|
|
281238
|
+
/**
|
|
281239
|
+
* ContentEngagementPassportDeleted timestamp.
|
|
281240
|
+
* @member {number|Long} timestamp
|
|
281241
|
+
* @memberof ContentEngagementPassportDeleted
|
|
281242
|
+
* @instance
|
|
281243
|
+
*/
|
|
281244
|
+
ContentEngagementPassportDeleted.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
281245
|
+
|
|
281246
|
+
/**
|
|
281247
|
+
* Creates a new ContentEngagementPassportDeleted instance using the specified properties.
|
|
281248
|
+
* @function create
|
|
281249
|
+
* @memberof ContentEngagementPassportDeleted
|
|
281250
|
+
* @static
|
|
281251
|
+
* @param {ContentEngagementPassportDeleted.$Properties=} [properties] Properties to set
|
|
281252
|
+
* @returns {ContentEngagementPassportDeleted} ContentEngagementPassportDeleted instance
|
|
281253
|
+
* @type {{
|
|
281254
|
+
* (properties: ContentEngagementPassportDeleted.$Shape): ContentEngagementPassportDeleted & ContentEngagementPassportDeleted.$Shape;
|
|
281255
|
+
* (properties?: ContentEngagementPassportDeleted.$Properties): ContentEngagementPassportDeleted;
|
|
281256
|
+
* }}
|
|
281257
|
+
*/
|
|
281258
|
+
ContentEngagementPassportDeleted.create = function create(properties) {
|
|
281259
|
+
return new ContentEngagementPassportDeleted(properties);
|
|
281260
|
+
};
|
|
281261
|
+
|
|
281262
|
+
/**
|
|
281263
|
+
* Encodes the specified ContentEngagementPassportDeleted message. Does not implicitly {@link ContentEngagementPassportDeleted.verify|verify} messages.
|
|
281264
|
+
* @function encode
|
|
281265
|
+
* @memberof ContentEngagementPassportDeleted
|
|
281266
|
+
* @static
|
|
281267
|
+
* @param {ContentEngagementPassportDeleted.$Properties} message ContentEngagementPassportDeleted message or plain object to encode
|
|
281268
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
281269
|
+
* @returns {$protobuf.Writer} Writer
|
|
281270
|
+
*/
|
|
281271
|
+
ContentEngagementPassportDeleted.encode = function encode(message, writer) {
|
|
281272
|
+
if (!writer)
|
|
281273
|
+
writer = $Writer.create();
|
|
281274
|
+
if (message.passportId != null && Object.hasOwnProperty.call(message, "passportId"))
|
|
281275
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.passportId);
|
|
281276
|
+
if (message.profileId != null && Object.hasOwnProperty.call(message, "profileId"))
|
|
281277
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.profileId);
|
|
281278
|
+
if (message.hsUserId != null && Object.hasOwnProperty.call(message, "hsUserId"))
|
|
281279
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.hsUserId);
|
|
281280
|
+
if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp"))
|
|
281281
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.timestamp);
|
|
281282
|
+
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
281283
|
+
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
281284
|
+
writer.raw(message.$unknowns[i]);
|
|
281285
|
+
return writer;
|
|
281286
|
+
};
|
|
281287
|
+
|
|
281288
|
+
/**
|
|
281289
|
+
* Encodes the specified ContentEngagementPassportDeleted message, length delimited. Does not implicitly {@link ContentEngagementPassportDeleted.verify|verify} messages.
|
|
281290
|
+
* @function encodeDelimited
|
|
281291
|
+
* @memberof ContentEngagementPassportDeleted
|
|
281292
|
+
* @static
|
|
281293
|
+
* @param {ContentEngagementPassportDeleted.$Properties} message ContentEngagementPassportDeleted message or plain object to encode
|
|
281294
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
281295
|
+
* @returns {$protobuf.Writer} Writer
|
|
281296
|
+
*/
|
|
281297
|
+
ContentEngagementPassportDeleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
281298
|
+
return this.encode(message, writer).ldelim();
|
|
281299
|
+
};
|
|
281300
|
+
|
|
281301
|
+
/**
|
|
281302
|
+
* Decodes a ContentEngagementPassportDeleted message from the specified reader or buffer.
|
|
281303
|
+
* @function decode
|
|
281304
|
+
* @memberof ContentEngagementPassportDeleted
|
|
281305
|
+
* @static
|
|
281306
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
281307
|
+
* @param {number} [length] Message length if known beforehand
|
|
281308
|
+
* @returns {ContentEngagementPassportDeleted & ContentEngagementPassportDeleted.$Shape} ContentEngagementPassportDeleted
|
|
281309
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
281310
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
281311
|
+
*/
|
|
281312
|
+
ContentEngagementPassportDeleted.decode = function decode(reader, length, _end, _depth, _target) {
|
|
281313
|
+
if (!(reader instanceof $Reader))
|
|
281314
|
+
reader = $Reader.create(reader);
|
|
281315
|
+
if (_depth === undefined)
|
|
281316
|
+
_depth = 0;
|
|
281317
|
+
if (_depth > $Reader.recursionLimit)
|
|
281318
|
+
throw Error("max depth exceeded");
|
|
281319
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.ContentEngagementPassportDeleted(), value;
|
|
281320
|
+
while (reader.pos < end) {
|
|
281321
|
+
var start = reader.pos;
|
|
281322
|
+
var tag = reader.tag();
|
|
281323
|
+
if (tag === _end) {
|
|
281324
|
+
_end = undefined;
|
|
281325
|
+
break;
|
|
281326
|
+
}
|
|
281327
|
+
var wireType = tag & 7;
|
|
281328
|
+
switch (tag >>>= 3) {
|
|
281329
|
+
case 1: {
|
|
281330
|
+
if (wireType !== 2)
|
|
281331
|
+
break;
|
|
281332
|
+
if ((value = reader.string()).length)
|
|
281333
|
+
message.passportId = value;
|
|
281334
|
+
else
|
|
281335
|
+
delete message.passportId;
|
|
281336
|
+
continue;
|
|
281337
|
+
}
|
|
281338
|
+
case 2: {
|
|
281339
|
+
if (wireType !== 2)
|
|
281340
|
+
break;
|
|
281341
|
+
if ((value = reader.string()).length)
|
|
281342
|
+
message.profileId = value;
|
|
281343
|
+
else
|
|
281344
|
+
delete message.profileId;
|
|
281345
|
+
continue;
|
|
281346
|
+
}
|
|
281347
|
+
case 3: {
|
|
281348
|
+
if (wireType !== 2)
|
|
281349
|
+
break;
|
|
281350
|
+
if ((value = reader.string()).length)
|
|
281351
|
+
message.hsUserId = value;
|
|
281352
|
+
else
|
|
281353
|
+
delete message.hsUserId;
|
|
281354
|
+
continue;
|
|
281355
|
+
}
|
|
281356
|
+
case 4: {
|
|
281357
|
+
if (wireType !== 0)
|
|
281358
|
+
break;
|
|
281359
|
+
if (typeof (value = reader.uint64()) === "object" ? value.low || value.high : value !== 0)
|
|
281360
|
+
message.timestamp = value;
|
|
281361
|
+
else
|
|
281362
|
+
delete message.timestamp;
|
|
281363
|
+
continue;
|
|
281364
|
+
}
|
|
281365
|
+
}
|
|
281366
|
+
reader.skipType(wireType, _depth, tag);
|
|
281367
|
+
$util.makeProp(message, "$unknowns", false);
|
|
281368
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
281369
|
+
}
|
|
281370
|
+
if (_end !== undefined)
|
|
281371
|
+
throw Error("missing end group");
|
|
281372
|
+
return message;
|
|
281373
|
+
};
|
|
281374
|
+
|
|
281375
|
+
/**
|
|
281376
|
+
* Decodes a ContentEngagementPassportDeleted message from the specified reader or buffer, length delimited.
|
|
281377
|
+
* @function decodeDelimited
|
|
281378
|
+
* @memberof ContentEngagementPassportDeleted
|
|
281379
|
+
* @static
|
|
281380
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
281381
|
+
* @returns {ContentEngagementPassportDeleted & ContentEngagementPassportDeleted.$Shape} ContentEngagementPassportDeleted
|
|
281382
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
281383
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
281384
|
+
*/
|
|
281385
|
+
ContentEngagementPassportDeleted.decodeDelimited = function decodeDelimited(reader) {
|
|
281386
|
+
if (!(reader instanceof $Reader))
|
|
281387
|
+
reader = new $Reader(reader);
|
|
281388
|
+
return this.decode(reader, reader.uint32());
|
|
281389
|
+
};
|
|
281390
|
+
|
|
281391
|
+
/**
|
|
281392
|
+
* Verifies a ContentEngagementPassportDeleted message.
|
|
281393
|
+
* @function verify
|
|
281394
|
+
* @memberof ContentEngagementPassportDeleted
|
|
281395
|
+
* @static
|
|
281396
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
281397
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
281398
|
+
*/
|
|
281399
|
+
ContentEngagementPassportDeleted.verify = function verify(message, _depth) {
|
|
281400
|
+
if (typeof message !== "object" || message === null)
|
|
281401
|
+
return "object expected";
|
|
281402
|
+
if (_depth === undefined)
|
|
281403
|
+
_depth = 0;
|
|
281404
|
+
if (_depth > $util.recursionLimit)
|
|
281405
|
+
return "max depth exceeded";
|
|
281406
|
+
if (message.passportId != null && message.hasOwnProperty("passportId"))
|
|
281407
|
+
if (!$util.isString(message.passportId))
|
|
281408
|
+
return "passportId: string expected";
|
|
281409
|
+
if (message.profileId != null && message.hasOwnProperty("profileId"))
|
|
281410
|
+
if (!$util.isString(message.profileId))
|
|
281411
|
+
return "profileId: string expected";
|
|
281412
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
281413
|
+
if (!$util.isString(message.hsUserId))
|
|
281414
|
+
return "hsUserId: string expected";
|
|
281415
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
281416
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
281417
|
+
return "timestamp: integer|Long expected";
|
|
281418
|
+
return null;
|
|
281419
|
+
};
|
|
281420
|
+
|
|
281421
|
+
/**
|
|
281422
|
+
* Creates a ContentEngagementPassportDeleted message from a plain object. Also converts values to their respective internal types.
|
|
281423
|
+
* @function fromObject
|
|
281424
|
+
* @memberof ContentEngagementPassportDeleted
|
|
281425
|
+
* @static
|
|
281426
|
+
* @param {Object.<string,*>} object Plain object
|
|
281427
|
+
* @returns {ContentEngagementPassportDeleted} ContentEngagementPassportDeleted
|
|
281428
|
+
*/
|
|
281429
|
+
ContentEngagementPassportDeleted.fromObject = function fromObject(object, _depth) {
|
|
281430
|
+
if (object instanceof $root.ContentEngagementPassportDeleted)
|
|
281431
|
+
return object;
|
|
281432
|
+
if (_depth === undefined)
|
|
281433
|
+
_depth = 0;
|
|
281434
|
+
if (_depth > $util.recursionLimit)
|
|
281435
|
+
throw Error("max depth exceeded");
|
|
281436
|
+
var message = new $root.ContentEngagementPassportDeleted();
|
|
281437
|
+
if (object.passportId != null)
|
|
281438
|
+
if (typeof object.passportId !== "string" || object.passportId.length)
|
|
281439
|
+
message.passportId = String(object.passportId);
|
|
281440
|
+
if (object.profileId != null)
|
|
281441
|
+
if (typeof object.profileId !== "string" || object.profileId.length)
|
|
281442
|
+
message.profileId = String(object.profileId);
|
|
281443
|
+
if (object.hsUserId != null)
|
|
281444
|
+
if (typeof object.hsUserId !== "string" || object.hsUserId.length)
|
|
281445
|
+
message.hsUserId = String(object.hsUserId);
|
|
281446
|
+
if (object.timestamp != null)
|
|
281447
|
+
if (typeof object.timestamp === "object" ? object.timestamp.low || object.timestamp.high : Number(object.timestamp) !== 0)
|
|
281448
|
+
if ($util.Long)
|
|
281449
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
281450
|
+
else if (typeof object.timestamp === "string")
|
|
281451
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
281452
|
+
else if (typeof object.timestamp === "number")
|
|
281453
|
+
message.timestamp = object.timestamp;
|
|
281454
|
+
else if (typeof object.timestamp === "object")
|
|
281455
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
281456
|
+
return message;
|
|
281457
|
+
};
|
|
281458
|
+
|
|
281459
|
+
/**
|
|
281460
|
+
* Creates a plain object from a ContentEngagementPassportDeleted message. Also converts values to other types if specified.
|
|
281461
|
+
* @function toObject
|
|
281462
|
+
* @memberof ContentEngagementPassportDeleted
|
|
281463
|
+
* @static
|
|
281464
|
+
* @param {ContentEngagementPassportDeleted} message ContentEngagementPassportDeleted
|
|
281465
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
281466
|
+
* @returns {Object.<string,*>} Plain object
|
|
281467
|
+
*/
|
|
281468
|
+
ContentEngagementPassportDeleted.toObject = function toObject(message, options) {
|
|
281469
|
+
if (!options)
|
|
281470
|
+
options = {};
|
|
281471
|
+
var object = {};
|
|
281472
|
+
if (options.defaults) {
|
|
281473
|
+
object.passportId = "";
|
|
281474
|
+
object.profileId = "";
|
|
281475
|
+
object.hsUserId = "";
|
|
281476
|
+
if ($util.Long) {
|
|
281477
|
+
var long = new $util.Long(0, 0, true);
|
|
281478
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
281479
|
+
} else
|
|
281480
|
+
object.timestamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
281481
|
+
}
|
|
281482
|
+
if (message.passportId != null && message.hasOwnProperty("passportId"))
|
|
281483
|
+
object.passportId = message.passportId;
|
|
281484
|
+
if (message.profileId != null && message.hasOwnProperty("profileId"))
|
|
281485
|
+
object.profileId = message.profileId;
|
|
281486
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
281487
|
+
object.hsUserId = message.hsUserId;
|
|
281488
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
281489
|
+
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
281490
|
+
object.timestamp = typeof message.timestamp === "number" ? BigInt(message.timestamp) : $util.Long.fromBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0, true).toBigInt();
|
|
281491
|
+
else if (typeof message.timestamp === "number")
|
|
281492
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
281493
|
+
else
|
|
281494
|
+
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;
|
|
281495
|
+
return object;
|
|
281496
|
+
};
|
|
281497
|
+
|
|
281498
|
+
/**
|
|
281499
|
+
* Converts this ContentEngagementPassportDeleted to JSON.
|
|
281500
|
+
* @function toJSON
|
|
281501
|
+
* @memberof ContentEngagementPassportDeleted
|
|
281502
|
+
* @instance
|
|
281503
|
+
* @returns {Object.<string,*>} JSON object
|
|
281504
|
+
*/
|
|
281505
|
+
ContentEngagementPassportDeleted.prototype.toJSON = function toJSON() {
|
|
281506
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
281507
|
+
};
|
|
281508
|
+
|
|
281509
|
+
/**
|
|
281510
|
+
* Gets the type url for ContentEngagementPassportDeleted
|
|
281511
|
+
* @function getTypeUrl
|
|
281512
|
+
* @memberof ContentEngagementPassportDeleted
|
|
281513
|
+
* @static
|
|
281514
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
281515
|
+
* @returns {string} The type url
|
|
281516
|
+
*/
|
|
281517
|
+
ContentEngagementPassportDeleted.getTypeUrl = function getTypeUrl(prefix) {
|
|
281518
|
+
if (prefix === undefined)
|
|
281519
|
+
prefix = "type.googleapis.com";
|
|
281520
|
+
return prefix + "/ContentEngagementPassportDeleted";
|
|
281521
|
+
};
|
|
281522
|
+
|
|
281523
|
+
return ContentEngagementPassportDeleted;
|
|
281524
|
+
})();
|
|
281525
|
+
|
|
280729
281526
|
$root.PHQAssessmentAssigned = (function() {
|
|
280730
281527
|
|
|
280731
281528
|
/**
|
package/package.json
CHANGED