@headspace/protos-events 1.254.0 → 1.256.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 +381 -0
- package/lib/index.js +918 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -8489,6 +8489,836 @@ $root.content = (function() {
|
|
|
8489
8489
|
return CreateFromPathResponse;
|
|
8490
8490
|
})();
|
|
8491
8491
|
|
|
8492
|
+
content.UserActivityCompletionManager = (function() {
|
|
8493
|
+
|
|
8494
|
+
/**
|
|
8495
|
+
* Constructs a new UserActivityCompletionManager service.
|
|
8496
|
+
* @memberof content
|
|
8497
|
+
* @classdesc Represents a UserActivityCompletionManager
|
|
8498
|
+
* @extends $protobuf.rpc.Service
|
|
8499
|
+
* @constructor
|
|
8500
|
+
* @param {$protobuf.RPCImpl} rpcImpl RPC implementation
|
|
8501
|
+
* @param {boolean} [requestDelimited=false] Whether requests are length-delimited
|
|
8502
|
+
* @param {boolean} [responseDelimited=false] Whether responses are length-delimited
|
|
8503
|
+
*/
|
|
8504
|
+
function UserActivityCompletionManager(rpcImpl, requestDelimited, responseDelimited) {
|
|
8505
|
+
$protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
|
|
8506
|
+
}
|
|
8507
|
+
|
|
8508
|
+
(UserActivityCompletionManager.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = UserActivityCompletionManager;
|
|
8509
|
+
|
|
8510
|
+
/**
|
|
8511
|
+
* Creates new UserActivityCompletionManager service using the specified rpc implementation.
|
|
8512
|
+
* @function create
|
|
8513
|
+
* @memberof content.UserActivityCompletionManager
|
|
8514
|
+
* @static
|
|
8515
|
+
* @param {$protobuf.RPCImpl} rpcImpl RPC implementation
|
|
8516
|
+
* @param {boolean} [requestDelimited=false] Whether requests are length-delimited
|
|
8517
|
+
* @param {boolean} [responseDelimited=false] Whether responses are length-delimited
|
|
8518
|
+
* @returns {UserActivityCompletionManager} RPC service. Useful where requests and/or responses are streamed.
|
|
8519
|
+
*/
|
|
8520
|
+
UserActivityCompletionManager.create = function create(rpcImpl, requestDelimited, responseDelimited) {
|
|
8521
|
+
return new this(rpcImpl, requestDelimited, responseDelimited);
|
|
8522
|
+
};
|
|
8523
|
+
|
|
8524
|
+
/**
|
|
8525
|
+
* Callback as used by {@link content.UserActivityCompletionManager#findManySince}.
|
|
8526
|
+
* @memberof content.UserActivityCompletionManager
|
|
8527
|
+
* @typedef findManySinceCallback
|
|
8528
|
+
* @type {function}
|
|
8529
|
+
* @param {Error|null} error Error, if any
|
|
8530
|
+
* @param {content.FindManySinceResponse} [response] FindManySinceResponse
|
|
8531
|
+
*/
|
|
8532
|
+
|
|
8533
|
+
/**
|
|
8534
|
+
* Calls findManySince.
|
|
8535
|
+
* @function findManySince
|
|
8536
|
+
* @memberof content.UserActivityCompletionManager
|
|
8537
|
+
* @instance
|
|
8538
|
+
* @param {content.IFindManySinceRequest} request FindManySinceRequest message or plain object
|
|
8539
|
+
* @param {content.UserActivityCompletionManager.findManySinceCallback} callback Node-style callback called with the error, if any, and FindManySinceResponse
|
|
8540
|
+
* @returns {undefined}
|
|
8541
|
+
* @variation 1
|
|
8542
|
+
*/
|
|
8543
|
+
Object.defineProperty(UserActivityCompletionManager.prototype.findManySince = function findManySince(request, callback) {
|
|
8544
|
+
return this.rpcCall(findManySince, $root.content.FindManySinceRequest, $root.content.FindManySinceResponse, request, callback);
|
|
8545
|
+
}, "name", { value: "findManySince" });
|
|
8546
|
+
|
|
8547
|
+
/**
|
|
8548
|
+
* Calls findManySince.
|
|
8549
|
+
* @function findManySince
|
|
8550
|
+
* @memberof content.UserActivityCompletionManager
|
|
8551
|
+
* @instance
|
|
8552
|
+
* @param {content.IFindManySinceRequest} request FindManySinceRequest message or plain object
|
|
8553
|
+
* @returns {Promise<content.FindManySinceResponse>} Promise
|
|
8554
|
+
* @variation 2
|
|
8555
|
+
*/
|
|
8556
|
+
|
|
8557
|
+
return UserActivityCompletionManager;
|
|
8558
|
+
})();
|
|
8559
|
+
|
|
8560
|
+
content.FindManySinceRequest = (function() {
|
|
8561
|
+
|
|
8562
|
+
/**
|
|
8563
|
+
* Properties of a FindManySinceRequest.
|
|
8564
|
+
* @memberof content
|
|
8565
|
+
* @interface IFindManySinceRequest
|
|
8566
|
+
* @property {string|null} [userId] FindManySinceRequest userId
|
|
8567
|
+
* @property {date.IDate|null} [completedAfter] FindManySinceRequest completedAfter
|
|
8568
|
+
*/
|
|
8569
|
+
|
|
8570
|
+
/**
|
|
8571
|
+
* Constructs a new FindManySinceRequest.
|
|
8572
|
+
* @memberof content
|
|
8573
|
+
* @classdesc Represents a FindManySinceRequest.
|
|
8574
|
+
* @implements IFindManySinceRequest
|
|
8575
|
+
* @constructor
|
|
8576
|
+
* @param {content.IFindManySinceRequest=} [properties] Properties to set
|
|
8577
|
+
*/
|
|
8578
|
+
function FindManySinceRequest(properties) {
|
|
8579
|
+
if (properties)
|
|
8580
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
8581
|
+
if (properties[keys[i]] != null)
|
|
8582
|
+
this[keys[i]] = properties[keys[i]];
|
|
8583
|
+
}
|
|
8584
|
+
|
|
8585
|
+
/**
|
|
8586
|
+
* FindManySinceRequest userId.
|
|
8587
|
+
* @member {string} userId
|
|
8588
|
+
* @memberof content.FindManySinceRequest
|
|
8589
|
+
* @instance
|
|
8590
|
+
*/
|
|
8591
|
+
FindManySinceRequest.prototype.userId = "";
|
|
8592
|
+
|
|
8593
|
+
/**
|
|
8594
|
+
* FindManySinceRequest completedAfter.
|
|
8595
|
+
* @member {date.IDate|null|undefined} completedAfter
|
|
8596
|
+
* @memberof content.FindManySinceRequest
|
|
8597
|
+
* @instance
|
|
8598
|
+
*/
|
|
8599
|
+
FindManySinceRequest.prototype.completedAfter = null;
|
|
8600
|
+
|
|
8601
|
+
/**
|
|
8602
|
+
* Creates a new FindManySinceRequest instance using the specified properties.
|
|
8603
|
+
* @function create
|
|
8604
|
+
* @memberof content.FindManySinceRequest
|
|
8605
|
+
* @static
|
|
8606
|
+
* @param {content.IFindManySinceRequest=} [properties] Properties to set
|
|
8607
|
+
* @returns {content.FindManySinceRequest} FindManySinceRequest instance
|
|
8608
|
+
*/
|
|
8609
|
+
FindManySinceRequest.create = function create(properties) {
|
|
8610
|
+
return new FindManySinceRequest(properties);
|
|
8611
|
+
};
|
|
8612
|
+
|
|
8613
|
+
/**
|
|
8614
|
+
* Encodes the specified FindManySinceRequest message. Does not implicitly {@link content.FindManySinceRequest.verify|verify} messages.
|
|
8615
|
+
* @function encode
|
|
8616
|
+
* @memberof content.FindManySinceRequest
|
|
8617
|
+
* @static
|
|
8618
|
+
* @param {content.IFindManySinceRequest} message FindManySinceRequest message or plain object to encode
|
|
8619
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
8620
|
+
* @returns {$protobuf.Writer} Writer
|
|
8621
|
+
*/
|
|
8622
|
+
FindManySinceRequest.encode = function encode(message, writer) {
|
|
8623
|
+
if (!writer)
|
|
8624
|
+
writer = $Writer.create();
|
|
8625
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
8626
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
|
|
8627
|
+
if (message.completedAfter != null && message.hasOwnProperty("completedAfter"))
|
|
8628
|
+
$root.date.Date.encode(message.completedAfter, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
8629
|
+
return writer;
|
|
8630
|
+
};
|
|
8631
|
+
|
|
8632
|
+
/**
|
|
8633
|
+
* Encodes the specified FindManySinceRequest message, length delimited. Does not implicitly {@link content.FindManySinceRequest.verify|verify} messages.
|
|
8634
|
+
* @function encodeDelimited
|
|
8635
|
+
* @memberof content.FindManySinceRequest
|
|
8636
|
+
* @static
|
|
8637
|
+
* @param {content.IFindManySinceRequest} message FindManySinceRequest message or plain object to encode
|
|
8638
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
8639
|
+
* @returns {$protobuf.Writer} Writer
|
|
8640
|
+
*/
|
|
8641
|
+
FindManySinceRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
8642
|
+
return this.encode(message, writer).ldelim();
|
|
8643
|
+
};
|
|
8644
|
+
|
|
8645
|
+
/**
|
|
8646
|
+
* Decodes a FindManySinceRequest message from the specified reader or buffer.
|
|
8647
|
+
* @function decode
|
|
8648
|
+
* @memberof content.FindManySinceRequest
|
|
8649
|
+
* @static
|
|
8650
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
8651
|
+
* @param {number} [length] Message length if known beforehand
|
|
8652
|
+
* @returns {content.FindManySinceRequest} FindManySinceRequest
|
|
8653
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8654
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8655
|
+
*/
|
|
8656
|
+
FindManySinceRequest.decode = function decode(reader, length) {
|
|
8657
|
+
if (!(reader instanceof $Reader))
|
|
8658
|
+
reader = $Reader.create(reader);
|
|
8659
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.content.FindManySinceRequest();
|
|
8660
|
+
while (reader.pos < end) {
|
|
8661
|
+
var tag = reader.uint32();
|
|
8662
|
+
switch (tag >>> 3) {
|
|
8663
|
+
case 1:
|
|
8664
|
+
message.userId = reader.string();
|
|
8665
|
+
break;
|
|
8666
|
+
case 2:
|
|
8667
|
+
message.completedAfter = $root.date.Date.decode(reader, reader.uint32());
|
|
8668
|
+
break;
|
|
8669
|
+
default:
|
|
8670
|
+
reader.skipType(tag & 7);
|
|
8671
|
+
break;
|
|
8672
|
+
}
|
|
8673
|
+
}
|
|
8674
|
+
return message;
|
|
8675
|
+
};
|
|
8676
|
+
|
|
8677
|
+
/**
|
|
8678
|
+
* Decodes a FindManySinceRequest message from the specified reader or buffer, length delimited.
|
|
8679
|
+
* @function decodeDelimited
|
|
8680
|
+
* @memberof content.FindManySinceRequest
|
|
8681
|
+
* @static
|
|
8682
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
8683
|
+
* @returns {content.FindManySinceRequest} FindManySinceRequest
|
|
8684
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8685
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8686
|
+
*/
|
|
8687
|
+
FindManySinceRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
8688
|
+
if (!(reader instanceof $Reader))
|
|
8689
|
+
reader = new $Reader(reader);
|
|
8690
|
+
return this.decode(reader, reader.uint32());
|
|
8691
|
+
};
|
|
8692
|
+
|
|
8693
|
+
/**
|
|
8694
|
+
* Verifies a FindManySinceRequest message.
|
|
8695
|
+
* @function verify
|
|
8696
|
+
* @memberof content.FindManySinceRequest
|
|
8697
|
+
* @static
|
|
8698
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
8699
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
8700
|
+
*/
|
|
8701
|
+
FindManySinceRequest.verify = function verify(message) {
|
|
8702
|
+
if (typeof message !== "object" || message === null)
|
|
8703
|
+
return "object expected";
|
|
8704
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
8705
|
+
if (!$util.isString(message.userId))
|
|
8706
|
+
return "userId: string expected";
|
|
8707
|
+
if (message.completedAfter != null && message.hasOwnProperty("completedAfter")) {
|
|
8708
|
+
var error = $root.date.Date.verify(message.completedAfter);
|
|
8709
|
+
if (error)
|
|
8710
|
+
return "completedAfter." + error;
|
|
8711
|
+
}
|
|
8712
|
+
return null;
|
|
8713
|
+
};
|
|
8714
|
+
|
|
8715
|
+
/**
|
|
8716
|
+
* Creates a FindManySinceRequest message from a plain object. Also converts values to their respective internal types.
|
|
8717
|
+
* @function fromObject
|
|
8718
|
+
* @memberof content.FindManySinceRequest
|
|
8719
|
+
* @static
|
|
8720
|
+
* @param {Object.<string,*>} object Plain object
|
|
8721
|
+
* @returns {content.FindManySinceRequest} FindManySinceRequest
|
|
8722
|
+
*/
|
|
8723
|
+
FindManySinceRequest.fromObject = function fromObject(object) {
|
|
8724
|
+
if (object instanceof $root.content.FindManySinceRequest)
|
|
8725
|
+
return object;
|
|
8726
|
+
var message = new $root.content.FindManySinceRequest();
|
|
8727
|
+
if (object.userId != null)
|
|
8728
|
+
message.userId = String(object.userId);
|
|
8729
|
+
if (object.completedAfter != null) {
|
|
8730
|
+
if (typeof object.completedAfter !== "object")
|
|
8731
|
+
throw TypeError(".content.FindManySinceRequest.completedAfter: object expected");
|
|
8732
|
+
message.completedAfter = $root.date.Date.fromObject(object.completedAfter);
|
|
8733
|
+
}
|
|
8734
|
+
return message;
|
|
8735
|
+
};
|
|
8736
|
+
|
|
8737
|
+
/**
|
|
8738
|
+
* Creates a plain object from a FindManySinceRequest message. Also converts values to other types if specified.
|
|
8739
|
+
* @function toObject
|
|
8740
|
+
* @memberof content.FindManySinceRequest
|
|
8741
|
+
* @static
|
|
8742
|
+
* @param {content.FindManySinceRequest} message FindManySinceRequest
|
|
8743
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
8744
|
+
* @returns {Object.<string,*>} Plain object
|
|
8745
|
+
*/
|
|
8746
|
+
FindManySinceRequest.toObject = function toObject(message, options) {
|
|
8747
|
+
if (!options)
|
|
8748
|
+
options = {};
|
|
8749
|
+
var object = {};
|
|
8750
|
+
if (options.defaults) {
|
|
8751
|
+
object.userId = "";
|
|
8752
|
+
object.completedAfter = null;
|
|
8753
|
+
}
|
|
8754
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
8755
|
+
object.userId = message.userId;
|
|
8756
|
+
if (message.completedAfter != null && message.hasOwnProperty("completedAfter"))
|
|
8757
|
+
object.completedAfter = $root.date.Date.toObject(message.completedAfter, options);
|
|
8758
|
+
return object;
|
|
8759
|
+
};
|
|
8760
|
+
|
|
8761
|
+
/**
|
|
8762
|
+
* Converts this FindManySinceRequest to JSON.
|
|
8763
|
+
* @function toJSON
|
|
8764
|
+
* @memberof content.FindManySinceRequest
|
|
8765
|
+
* @instance
|
|
8766
|
+
* @returns {Object.<string,*>} JSON object
|
|
8767
|
+
*/
|
|
8768
|
+
FindManySinceRequest.prototype.toJSON = function toJSON() {
|
|
8769
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
8770
|
+
};
|
|
8771
|
+
|
|
8772
|
+
return FindManySinceRequest;
|
|
8773
|
+
})();
|
|
8774
|
+
|
|
8775
|
+
content.FindManySinceResponse = (function() {
|
|
8776
|
+
|
|
8777
|
+
/**
|
|
8778
|
+
* Properties of a FindManySinceResponse.
|
|
8779
|
+
* @memberof content
|
|
8780
|
+
* @interface IFindManySinceResponse
|
|
8781
|
+
* @property {Array.<content.IUserActivityCompletion>|null} [completions] FindManySinceResponse completions
|
|
8782
|
+
*/
|
|
8783
|
+
|
|
8784
|
+
/**
|
|
8785
|
+
* Constructs a new FindManySinceResponse.
|
|
8786
|
+
* @memberof content
|
|
8787
|
+
* @classdesc Represents a FindManySinceResponse.
|
|
8788
|
+
* @implements IFindManySinceResponse
|
|
8789
|
+
* @constructor
|
|
8790
|
+
* @param {content.IFindManySinceResponse=} [properties] Properties to set
|
|
8791
|
+
*/
|
|
8792
|
+
function FindManySinceResponse(properties) {
|
|
8793
|
+
this.completions = [];
|
|
8794
|
+
if (properties)
|
|
8795
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
8796
|
+
if (properties[keys[i]] != null)
|
|
8797
|
+
this[keys[i]] = properties[keys[i]];
|
|
8798
|
+
}
|
|
8799
|
+
|
|
8800
|
+
/**
|
|
8801
|
+
* FindManySinceResponse completions.
|
|
8802
|
+
* @member {Array.<content.IUserActivityCompletion>} completions
|
|
8803
|
+
* @memberof content.FindManySinceResponse
|
|
8804
|
+
* @instance
|
|
8805
|
+
*/
|
|
8806
|
+
FindManySinceResponse.prototype.completions = $util.emptyArray;
|
|
8807
|
+
|
|
8808
|
+
/**
|
|
8809
|
+
* Creates a new FindManySinceResponse instance using the specified properties.
|
|
8810
|
+
* @function create
|
|
8811
|
+
* @memberof content.FindManySinceResponse
|
|
8812
|
+
* @static
|
|
8813
|
+
* @param {content.IFindManySinceResponse=} [properties] Properties to set
|
|
8814
|
+
* @returns {content.FindManySinceResponse} FindManySinceResponse instance
|
|
8815
|
+
*/
|
|
8816
|
+
FindManySinceResponse.create = function create(properties) {
|
|
8817
|
+
return new FindManySinceResponse(properties);
|
|
8818
|
+
};
|
|
8819
|
+
|
|
8820
|
+
/**
|
|
8821
|
+
* Encodes the specified FindManySinceResponse message. Does not implicitly {@link content.FindManySinceResponse.verify|verify} messages.
|
|
8822
|
+
* @function encode
|
|
8823
|
+
* @memberof content.FindManySinceResponse
|
|
8824
|
+
* @static
|
|
8825
|
+
* @param {content.IFindManySinceResponse} message FindManySinceResponse message or plain object to encode
|
|
8826
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
8827
|
+
* @returns {$protobuf.Writer} Writer
|
|
8828
|
+
*/
|
|
8829
|
+
FindManySinceResponse.encode = function encode(message, writer) {
|
|
8830
|
+
if (!writer)
|
|
8831
|
+
writer = $Writer.create();
|
|
8832
|
+
if (message.completions != null && message.completions.length)
|
|
8833
|
+
for (var i = 0; i < message.completions.length; ++i)
|
|
8834
|
+
$root.content.UserActivityCompletion.encode(message.completions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
8835
|
+
return writer;
|
|
8836
|
+
};
|
|
8837
|
+
|
|
8838
|
+
/**
|
|
8839
|
+
* Encodes the specified FindManySinceResponse message, length delimited. Does not implicitly {@link content.FindManySinceResponse.verify|verify} messages.
|
|
8840
|
+
* @function encodeDelimited
|
|
8841
|
+
* @memberof content.FindManySinceResponse
|
|
8842
|
+
* @static
|
|
8843
|
+
* @param {content.IFindManySinceResponse} message FindManySinceResponse message or plain object to encode
|
|
8844
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
8845
|
+
* @returns {$protobuf.Writer} Writer
|
|
8846
|
+
*/
|
|
8847
|
+
FindManySinceResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
8848
|
+
return this.encode(message, writer).ldelim();
|
|
8849
|
+
};
|
|
8850
|
+
|
|
8851
|
+
/**
|
|
8852
|
+
* Decodes a FindManySinceResponse message from the specified reader or buffer.
|
|
8853
|
+
* @function decode
|
|
8854
|
+
* @memberof content.FindManySinceResponse
|
|
8855
|
+
* @static
|
|
8856
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
8857
|
+
* @param {number} [length] Message length if known beforehand
|
|
8858
|
+
* @returns {content.FindManySinceResponse} FindManySinceResponse
|
|
8859
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8860
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8861
|
+
*/
|
|
8862
|
+
FindManySinceResponse.decode = function decode(reader, length) {
|
|
8863
|
+
if (!(reader instanceof $Reader))
|
|
8864
|
+
reader = $Reader.create(reader);
|
|
8865
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.content.FindManySinceResponse();
|
|
8866
|
+
while (reader.pos < end) {
|
|
8867
|
+
var tag = reader.uint32();
|
|
8868
|
+
switch (tag >>> 3) {
|
|
8869
|
+
case 1:
|
|
8870
|
+
if (!(message.completions && message.completions.length))
|
|
8871
|
+
message.completions = [];
|
|
8872
|
+
message.completions.push($root.content.UserActivityCompletion.decode(reader, reader.uint32()));
|
|
8873
|
+
break;
|
|
8874
|
+
default:
|
|
8875
|
+
reader.skipType(tag & 7);
|
|
8876
|
+
break;
|
|
8877
|
+
}
|
|
8878
|
+
}
|
|
8879
|
+
return message;
|
|
8880
|
+
};
|
|
8881
|
+
|
|
8882
|
+
/**
|
|
8883
|
+
* Decodes a FindManySinceResponse message from the specified reader or buffer, length delimited.
|
|
8884
|
+
* @function decodeDelimited
|
|
8885
|
+
* @memberof content.FindManySinceResponse
|
|
8886
|
+
* @static
|
|
8887
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
8888
|
+
* @returns {content.FindManySinceResponse} FindManySinceResponse
|
|
8889
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8890
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8891
|
+
*/
|
|
8892
|
+
FindManySinceResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
8893
|
+
if (!(reader instanceof $Reader))
|
|
8894
|
+
reader = new $Reader(reader);
|
|
8895
|
+
return this.decode(reader, reader.uint32());
|
|
8896
|
+
};
|
|
8897
|
+
|
|
8898
|
+
/**
|
|
8899
|
+
* Verifies a FindManySinceResponse message.
|
|
8900
|
+
* @function verify
|
|
8901
|
+
* @memberof content.FindManySinceResponse
|
|
8902
|
+
* @static
|
|
8903
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
8904
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
8905
|
+
*/
|
|
8906
|
+
FindManySinceResponse.verify = function verify(message) {
|
|
8907
|
+
if (typeof message !== "object" || message === null)
|
|
8908
|
+
return "object expected";
|
|
8909
|
+
if (message.completions != null && message.hasOwnProperty("completions")) {
|
|
8910
|
+
if (!Array.isArray(message.completions))
|
|
8911
|
+
return "completions: array expected";
|
|
8912
|
+
for (var i = 0; i < message.completions.length; ++i) {
|
|
8913
|
+
var error = $root.content.UserActivityCompletion.verify(message.completions[i]);
|
|
8914
|
+
if (error)
|
|
8915
|
+
return "completions." + error;
|
|
8916
|
+
}
|
|
8917
|
+
}
|
|
8918
|
+
return null;
|
|
8919
|
+
};
|
|
8920
|
+
|
|
8921
|
+
/**
|
|
8922
|
+
* Creates a FindManySinceResponse message from a plain object. Also converts values to their respective internal types.
|
|
8923
|
+
* @function fromObject
|
|
8924
|
+
* @memberof content.FindManySinceResponse
|
|
8925
|
+
* @static
|
|
8926
|
+
* @param {Object.<string,*>} object Plain object
|
|
8927
|
+
* @returns {content.FindManySinceResponse} FindManySinceResponse
|
|
8928
|
+
*/
|
|
8929
|
+
FindManySinceResponse.fromObject = function fromObject(object) {
|
|
8930
|
+
if (object instanceof $root.content.FindManySinceResponse)
|
|
8931
|
+
return object;
|
|
8932
|
+
var message = new $root.content.FindManySinceResponse();
|
|
8933
|
+
if (object.completions) {
|
|
8934
|
+
if (!Array.isArray(object.completions))
|
|
8935
|
+
throw TypeError(".content.FindManySinceResponse.completions: array expected");
|
|
8936
|
+
message.completions = [];
|
|
8937
|
+
for (var i = 0; i < object.completions.length; ++i) {
|
|
8938
|
+
if (typeof object.completions[i] !== "object")
|
|
8939
|
+
throw TypeError(".content.FindManySinceResponse.completions: object expected");
|
|
8940
|
+
message.completions[i] = $root.content.UserActivityCompletion.fromObject(object.completions[i]);
|
|
8941
|
+
}
|
|
8942
|
+
}
|
|
8943
|
+
return message;
|
|
8944
|
+
};
|
|
8945
|
+
|
|
8946
|
+
/**
|
|
8947
|
+
* Creates a plain object from a FindManySinceResponse message. Also converts values to other types if specified.
|
|
8948
|
+
* @function toObject
|
|
8949
|
+
* @memberof content.FindManySinceResponse
|
|
8950
|
+
* @static
|
|
8951
|
+
* @param {content.FindManySinceResponse} message FindManySinceResponse
|
|
8952
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
8953
|
+
* @returns {Object.<string,*>} Plain object
|
|
8954
|
+
*/
|
|
8955
|
+
FindManySinceResponse.toObject = function toObject(message, options) {
|
|
8956
|
+
if (!options)
|
|
8957
|
+
options = {};
|
|
8958
|
+
var object = {};
|
|
8959
|
+
if (options.arrays || options.defaults)
|
|
8960
|
+
object.completions = [];
|
|
8961
|
+
if (message.completions && message.completions.length) {
|
|
8962
|
+
object.completions = [];
|
|
8963
|
+
for (var j = 0; j < message.completions.length; ++j)
|
|
8964
|
+
object.completions[j] = $root.content.UserActivityCompletion.toObject(message.completions[j], options);
|
|
8965
|
+
}
|
|
8966
|
+
return object;
|
|
8967
|
+
};
|
|
8968
|
+
|
|
8969
|
+
/**
|
|
8970
|
+
* Converts this FindManySinceResponse to JSON.
|
|
8971
|
+
* @function toJSON
|
|
8972
|
+
* @memberof content.FindManySinceResponse
|
|
8973
|
+
* @instance
|
|
8974
|
+
* @returns {Object.<string,*>} JSON object
|
|
8975
|
+
*/
|
|
8976
|
+
FindManySinceResponse.prototype.toJSON = function toJSON() {
|
|
8977
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
8978
|
+
};
|
|
8979
|
+
|
|
8980
|
+
return FindManySinceResponse;
|
|
8981
|
+
})();
|
|
8982
|
+
|
|
8983
|
+
content.UserActivityCompletion = (function() {
|
|
8984
|
+
|
|
8985
|
+
/**
|
|
8986
|
+
* Properties of a UserActivityCompletion.
|
|
8987
|
+
* @memberof content
|
|
8988
|
+
* @interface IUserActivityCompletion
|
|
8989
|
+
* @property {number|Long|null} [id] UserActivityCompletion id
|
|
8990
|
+
* @property {string|null} [userId] UserActivityCompletion userId
|
|
8991
|
+
* @property {number|null} [activityId] UserActivityCompletion activityId
|
|
8992
|
+
* @property {number|null} [activityVariationId] UserActivityCompletion activityVariationId
|
|
8993
|
+
* @property {number|null} [activityGroupId] UserActivityCompletion activityGroupId
|
|
8994
|
+
* @property {number|null} [groupCollectionId] UserActivityCompletion groupCollectionId
|
|
8995
|
+
* @property {date.IDate|null} [completedAt] UserActivityCompletion completedAt
|
|
8996
|
+
*/
|
|
8997
|
+
|
|
8998
|
+
/**
|
|
8999
|
+
* Constructs a new UserActivityCompletion.
|
|
9000
|
+
* @memberof content
|
|
9001
|
+
* @classdesc Represents a UserActivityCompletion.
|
|
9002
|
+
* @implements IUserActivityCompletion
|
|
9003
|
+
* @constructor
|
|
9004
|
+
* @param {content.IUserActivityCompletion=} [properties] Properties to set
|
|
9005
|
+
*/
|
|
9006
|
+
function UserActivityCompletion(properties) {
|
|
9007
|
+
if (properties)
|
|
9008
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
9009
|
+
if (properties[keys[i]] != null)
|
|
9010
|
+
this[keys[i]] = properties[keys[i]];
|
|
9011
|
+
}
|
|
9012
|
+
|
|
9013
|
+
/**
|
|
9014
|
+
* UserActivityCompletion id.
|
|
9015
|
+
* @member {number|Long} id
|
|
9016
|
+
* @memberof content.UserActivityCompletion
|
|
9017
|
+
* @instance
|
|
9018
|
+
*/
|
|
9019
|
+
UserActivityCompletion.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
9020
|
+
|
|
9021
|
+
/**
|
|
9022
|
+
* UserActivityCompletion userId.
|
|
9023
|
+
* @member {string} userId
|
|
9024
|
+
* @memberof content.UserActivityCompletion
|
|
9025
|
+
* @instance
|
|
9026
|
+
*/
|
|
9027
|
+
UserActivityCompletion.prototype.userId = "";
|
|
9028
|
+
|
|
9029
|
+
/**
|
|
9030
|
+
* UserActivityCompletion activityId.
|
|
9031
|
+
* @member {number} activityId
|
|
9032
|
+
* @memberof content.UserActivityCompletion
|
|
9033
|
+
* @instance
|
|
9034
|
+
*/
|
|
9035
|
+
UserActivityCompletion.prototype.activityId = 0;
|
|
9036
|
+
|
|
9037
|
+
/**
|
|
9038
|
+
* UserActivityCompletion activityVariationId.
|
|
9039
|
+
* @member {number} activityVariationId
|
|
9040
|
+
* @memberof content.UserActivityCompletion
|
|
9041
|
+
* @instance
|
|
9042
|
+
*/
|
|
9043
|
+
UserActivityCompletion.prototype.activityVariationId = 0;
|
|
9044
|
+
|
|
9045
|
+
/**
|
|
9046
|
+
* UserActivityCompletion activityGroupId.
|
|
9047
|
+
* @member {number} activityGroupId
|
|
9048
|
+
* @memberof content.UserActivityCompletion
|
|
9049
|
+
* @instance
|
|
9050
|
+
*/
|
|
9051
|
+
UserActivityCompletion.prototype.activityGroupId = 0;
|
|
9052
|
+
|
|
9053
|
+
/**
|
|
9054
|
+
* UserActivityCompletion groupCollectionId.
|
|
9055
|
+
* @member {number} groupCollectionId
|
|
9056
|
+
* @memberof content.UserActivityCompletion
|
|
9057
|
+
* @instance
|
|
9058
|
+
*/
|
|
9059
|
+
UserActivityCompletion.prototype.groupCollectionId = 0;
|
|
9060
|
+
|
|
9061
|
+
/**
|
|
9062
|
+
* UserActivityCompletion completedAt.
|
|
9063
|
+
* @member {date.IDate|null|undefined} completedAt
|
|
9064
|
+
* @memberof content.UserActivityCompletion
|
|
9065
|
+
* @instance
|
|
9066
|
+
*/
|
|
9067
|
+
UserActivityCompletion.prototype.completedAt = null;
|
|
9068
|
+
|
|
9069
|
+
/**
|
|
9070
|
+
* Creates a new UserActivityCompletion instance using the specified properties.
|
|
9071
|
+
* @function create
|
|
9072
|
+
* @memberof content.UserActivityCompletion
|
|
9073
|
+
* @static
|
|
9074
|
+
* @param {content.IUserActivityCompletion=} [properties] Properties to set
|
|
9075
|
+
* @returns {content.UserActivityCompletion} UserActivityCompletion instance
|
|
9076
|
+
*/
|
|
9077
|
+
UserActivityCompletion.create = function create(properties) {
|
|
9078
|
+
return new UserActivityCompletion(properties);
|
|
9079
|
+
};
|
|
9080
|
+
|
|
9081
|
+
/**
|
|
9082
|
+
* Encodes the specified UserActivityCompletion message. Does not implicitly {@link content.UserActivityCompletion.verify|verify} messages.
|
|
9083
|
+
* @function encode
|
|
9084
|
+
* @memberof content.UserActivityCompletion
|
|
9085
|
+
* @static
|
|
9086
|
+
* @param {content.IUserActivityCompletion} message UserActivityCompletion message or plain object to encode
|
|
9087
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
9088
|
+
* @returns {$protobuf.Writer} Writer
|
|
9089
|
+
*/
|
|
9090
|
+
UserActivityCompletion.encode = function encode(message, writer) {
|
|
9091
|
+
if (!writer)
|
|
9092
|
+
writer = $Writer.create();
|
|
9093
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
9094
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
|
|
9095
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
9096
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.userId);
|
|
9097
|
+
if (message.activityId != null && message.hasOwnProperty("activityId"))
|
|
9098
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.activityId);
|
|
9099
|
+
if (message.activityVariationId != null && message.hasOwnProperty("activityVariationId"))
|
|
9100
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.activityVariationId);
|
|
9101
|
+
if (message.activityGroupId != null && message.hasOwnProperty("activityGroupId"))
|
|
9102
|
+
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.activityGroupId);
|
|
9103
|
+
if (message.groupCollectionId != null && message.hasOwnProperty("groupCollectionId"))
|
|
9104
|
+
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.groupCollectionId);
|
|
9105
|
+
if (message.completedAt != null && message.hasOwnProperty("completedAt"))
|
|
9106
|
+
$root.date.Date.encode(message.completedAt, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
9107
|
+
return writer;
|
|
9108
|
+
};
|
|
9109
|
+
|
|
9110
|
+
/**
|
|
9111
|
+
* Encodes the specified UserActivityCompletion message, length delimited. Does not implicitly {@link content.UserActivityCompletion.verify|verify} messages.
|
|
9112
|
+
* @function encodeDelimited
|
|
9113
|
+
* @memberof content.UserActivityCompletion
|
|
9114
|
+
* @static
|
|
9115
|
+
* @param {content.IUserActivityCompletion} message UserActivityCompletion message or plain object to encode
|
|
9116
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
9117
|
+
* @returns {$protobuf.Writer} Writer
|
|
9118
|
+
*/
|
|
9119
|
+
UserActivityCompletion.encodeDelimited = function encodeDelimited(message, writer) {
|
|
9120
|
+
return this.encode(message, writer).ldelim();
|
|
9121
|
+
};
|
|
9122
|
+
|
|
9123
|
+
/**
|
|
9124
|
+
* Decodes a UserActivityCompletion message from the specified reader or buffer.
|
|
9125
|
+
* @function decode
|
|
9126
|
+
* @memberof content.UserActivityCompletion
|
|
9127
|
+
* @static
|
|
9128
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
9129
|
+
* @param {number} [length] Message length if known beforehand
|
|
9130
|
+
* @returns {content.UserActivityCompletion} UserActivityCompletion
|
|
9131
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9132
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9133
|
+
*/
|
|
9134
|
+
UserActivityCompletion.decode = function decode(reader, length) {
|
|
9135
|
+
if (!(reader instanceof $Reader))
|
|
9136
|
+
reader = $Reader.create(reader);
|
|
9137
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.content.UserActivityCompletion();
|
|
9138
|
+
while (reader.pos < end) {
|
|
9139
|
+
var tag = reader.uint32();
|
|
9140
|
+
switch (tag >>> 3) {
|
|
9141
|
+
case 1:
|
|
9142
|
+
message.id = reader.int64();
|
|
9143
|
+
break;
|
|
9144
|
+
case 2:
|
|
9145
|
+
message.userId = reader.string();
|
|
9146
|
+
break;
|
|
9147
|
+
case 3:
|
|
9148
|
+
message.activityId = reader.int32();
|
|
9149
|
+
break;
|
|
9150
|
+
case 4:
|
|
9151
|
+
message.activityVariationId = reader.int32();
|
|
9152
|
+
break;
|
|
9153
|
+
case 5:
|
|
9154
|
+
message.activityGroupId = reader.int32();
|
|
9155
|
+
break;
|
|
9156
|
+
case 6:
|
|
9157
|
+
message.groupCollectionId = reader.int32();
|
|
9158
|
+
break;
|
|
9159
|
+
case 7:
|
|
9160
|
+
message.completedAt = $root.date.Date.decode(reader, reader.uint32());
|
|
9161
|
+
break;
|
|
9162
|
+
default:
|
|
9163
|
+
reader.skipType(tag & 7);
|
|
9164
|
+
break;
|
|
9165
|
+
}
|
|
9166
|
+
}
|
|
9167
|
+
return message;
|
|
9168
|
+
};
|
|
9169
|
+
|
|
9170
|
+
/**
|
|
9171
|
+
* Decodes a UserActivityCompletion message from the specified reader or buffer, length delimited.
|
|
9172
|
+
* @function decodeDelimited
|
|
9173
|
+
* @memberof content.UserActivityCompletion
|
|
9174
|
+
* @static
|
|
9175
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
9176
|
+
* @returns {content.UserActivityCompletion} UserActivityCompletion
|
|
9177
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9178
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9179
|
+
*/
|
|
9180
|
+
UserActivityCompletion.decodeDelimited = function decodeDelimited(reader) {
|
|
9181
|
+
if (!(reader instanceof $Reader))
|
|
9182
|
+
reader = new $Reader(reader);
|
|
9183
|
+
return this.decode(reader, reader.uint32());
|
|
9184
|
+
};
|
|
9185
|
+
|
|
9186
|
+
/**
|
|
9187
|
+
* Verifies a UserActivityCompletion message.
|
|
9188
|
+
* @function verify
|
|
9189
|
+
* @memberof content.UserActivityCompletion
|
|
9190
|
+
* @static
|
|
9191
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
9192
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
9193
|
+
*/
|
|
9194
|
+
UserActivityCompletion.verify = function verify(message) {
|
|
9195
|
+
if (typeof message !== "object" || message === null)
|
|
9196
|
+
return "object expected";
|
|
9197
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
9198
|
+
if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
|
|
9199
|
+
return "id: integer|Long expected";
|
|
9200
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
9201
|
+
if (!$util.isString(message.userId))
|
|
9202
|
+
return "userId: string expected";
|
|
9203
|
+
if (message.activityId != null && message.hasOwnProperty("activityId"))
|
|
9204
|
+
if (!$util.isInteger(message.activityId))
|
|
9205
|
+
return "activityId: integer expected";
|
|
9206
|
+
if (message.activityVariationId != null && message.hasOwnProperty("activityVariationId"))
|
|
9207
|
+
if (!$util.isInteger(message.activityVariationId))
|
|
9208
|
+
return "activityVariationId: integer expected";
|
|
9209
|
+
if (message.activityGroupId != null && message.hasOwnProperty("activityGroupId"))
|
|
9210
|
+
if (!$util.isInteger(message.activityGroupId))
|
|
9211
|
+
return "activityGroupId: integer expected";
|
|
9212
|
+
if (message.groupCollectionId != null && message.hasOwnProperty("groupCollectionId"))
|
|
9213
|
+
if (!$util.isInteger(message.groupCollectionId))
|
|
9214
|
+
return "groupCollectionId: integer expected";
|
|
9215
|
+
if (message.completedAt != null && message.hasOwnProperty("completedAt")) {
|
|
9216
|
+
var error = $root.date.Date.verify(message.completedAt);
|
|
9217
|
+
if (error)
|
|
9218
|
+
return "completedAt." + error;
|
|
9219
|
+
}
|
|
9220
|
+
return null;
|
|
9221
|
+
};
|
|
9222
|
+
|
|
9223
|
+
/**
|
|
9224
|
+
* Creates a UserActivityCompletion message from a plain object. Also converts values to their respective internal types.
|
|
9225
|
+
* @function fromObject
|
|
9226
|
+
* @memberof content.UserActivityCompletion
|
|
9227
|
+
* @static
|
|
9228
|
+
* @param {Object.<string,*>} object Plain object
|
|
9229
|
+
* @returns {content.UserActivityCompletion} UserActivityCompletion
|
|
9230
|
+
*/
|
|
9231
|
+
UserActivityCompletion.fromObject = function fromObject(object) {
|
|
9232
|
+
if (object instanceof $root.content.UserActivityCompletion)
|
|
9233
|
+
return object;
|
|
9234
|
+
var message = new $root.content.UserActivityCompletion();
|
|
9235
|
+
if (object.id != null)
|
|
9236
|
+
if ($util.Long)
|
|
9237
|
+
(message.id = $util.Long.fromValue(object.id)).unsigned = false;
|
|
9238
|
+
else if (typeof object.id === "string")
|
|
9239
|
+
message.id = parseInt(object.id, 10);
|
|
9240
|
+
else if (typeof object.id === "number")
|
|
9241
|
+
message.id = object.id;
|
|
9242
|
+
else if (typeof object.id === "object")
|
|
9243
|
+
message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
|
|
9244
|
+
if (object.userId != null)
|
|
9245
|
+
message.userId = String(object.userId);
|
|
9246
|
+
if (object.activityId != null)
|
|
9247
|
+
message.activityId = object.activityId | 0;
|
|
9248
|
+
if (object.activityVariationId != null)
|
|
9249
|
+
message.activityVariationId = object.activityVariationId | 0;
|
|
9250
|
+
if (object.activityGroupId != null)
|
|
9251
|
+
message.activityGroupId = object.activityGroupId | 0;
|
|
9252
|
+
if (object.groupCollectionId != null)
|
|
9253
|
+
message.groupCollectionId = object.groupCollectionId | 0;
|
|
9254
|
+
if (object.completedAt != null) {
|
|
9255
|
+
if (typeof object.completedAt !== "object")
|
|
9256
|
+
throw TypeError(".content.UserActivityCompletion.completedAt: object expected");
|
|
9257
|
+
message.completedAt = $root.date.Date.fromObject(object.completedAt);
|
|
9258
|
+
}
|
|
9259
|
+
return message;
|
|
9260
|
+
};
|
|
9261
|
+
|
|
9262
|
+
/**
|
|
9263
|
+
* Creates a plain object from a UserActivityCompletion message. Also converts values to other types if specified.
|
|
9264
|
+
* @function toObject
|
|
9265
|
+
* @memberof content.UserActivityCompletion
|
|
9266
|
+
* @static
|
|
9267
|
+
* @param {content.UserActivityCompletion} message UserActivityCompletion
|
|
9268
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
9269
|
+
* @returns {Object.<string,*>} Plain object
|
|
9270
|
+
*/
|
|
9271
|
+
UserActivityCompletion.toObject = function toObject(message, options) {
|
|
9272
|
+
if (!options)
|
|
9273
|
+
options = {};
|
|
9274
|
+
var object = {};
|
|
9275
|
+
if (options.defaults) {
|
|
9276
|
+
if ($util.Long) {
|
|
9277
|
+
var long = new $util.Long(0, 0, false);
|
|
9278
|
+
object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
9279
|
+
} else
|
|
9280
|
+
object.id = options.longs === String ? "0" : 0;
|
|
9281
|
+
object.userId = "";
|
|
9282
|
+
object.activityId = 0;
|
|
9283
|
+
object.activityVariationId = 0;
|
|
9284
|
+
object.activityGroupId = 0;
|
|
9285
|
+
object.groupCollectionId = 0;
|
|
9286
|
+
object.completedAt = null;
|
|
9287
|
+
}
|
|
9288
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
9289
|
+
if (typeof message.id === "number")
|
|
9290
|
+
object.id = options.longs === String ? String(message.id) : message.id;
|
|
9291
|
+
else
|
|
9292
|
+
object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
|
|
9293
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
9294
|
+
object.userId = message.userId;
|
|
9295
|
+
if (message.activityId != null && message.hasOwnProperty("activityId"))
|
|
9296
|
+
object.activityId = message.activityId;
|
|
9297
|
+
if (message.activityVariationId != null && message.hasOwnProperty("activityVariationId"))
|
|
9298
|
+
object.activityVariationId = message.activityVariationId;
|
|
9299
|
+
if (message.activityGroupId != null && message.hasOwnProperty("activityGroupId"))
|
|
9300
|
+
object.activityGroupId = message.activityGroupId;
|
|
9301
|
+
if (message.groupCollectionId != null && message.hasOwnProperty("groupCollectionId"))
|
|
9302
|
+
object.groupCollectionId = message.groupCollectionId;
|
|
9303
|
+
if (message.completedAt != null && message.hasOwnProperty("completedAt"))
|
|
9304
|
+
object.completedAt = $root.date.Date.toObject(message.completedAt, options);
|
|
9305
|
+
return object;
|
|
9306
|
+
};
|
|
9307
|
+
|
|
9308
|
+
/**
|
|
9309
|
+
* Converts this UserActivityCompletion to JSON.
|
|
9310
|
+
* @function toJSON
|
|
9311
|
+
* @memberof content.UserActivityCompletion
|
|
9312
|
+
* @instance
|
|
9313
|
+
* @returns {Object.<string,*>} JSON object
|
|
9314
|
+
*/
|
|
9315
|
+
UserActivityCompletion.prototype.toJSON = function toJSON() {
|
|
9316
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
9317
|
+
};
|
|
9318
|
+
|
|
9319
|
+
return UserActivityCompletion;
|
|
9320
|
+
})();
|
|
9321
|
+
|
|
8492
9322
|
content.UserActivityGroupManager = (function() {
|
|
8493
9323
|
|
|
8494
9324
|
/**
|
|
@@ -64951,6 +65781,8 @@ $root.RecommendationSearchMatched = (function() {
|
|
|
64951
65781
|
* @property {string|null} [deepLink] RecommendationSearchMatched deepLink
|
|
64952
65782
|
* @property {string|null} [contentName] RecommendationSearchMatched contentName
|
|
64953
65783
|
* @property {number|Long|null} [updatedAt] RecommendationSearchMatched updatedAt
|
|
65784
|
+
* @property {string|null} [controlContentName] RecommendationSearchMatched controlContentName
|
|
65785
|
+
* @property {string|null} [controlDeepLink] RecommendationSearchMatched controlDeepLink
|
|
64954
65786
|
*/
|
|
64955
65787
|
|
|
64956
65788
|
/**
|
|
@@ -65016,6 +65848,22 @@ $root.RecommendationSearchMatched = (function() {
|
|
|
65016
65848
|
*/
|
|
65017
65849
|
RecommendationSearchMatched.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
65018
65850
|
|
|
65851
|
+
/**
|
|
65852
|
+
* RecommendationSearchMatched controlContentName.
|
|
65853
|
+
* @member {string} controlContentName
|
|
65854
|
+
* @memberof RecommendationSearchMatched
|
|
65855
|
+
* @instance
|
|
65856
|
+
*/
|
|
65857
|
+
RecommendationSearchMatched.prototype.controlContentName = "";
|
|
65858
|
+
|
|
65859
|
+
/**
|
|
65860
|
+
* RecommendationSearchMatched controlDeepLink.
|
|
65861
|
+
* @member {string} controlDeepLink
|
|
65862
|
+
* @memberof RecommendationSearchMatched
|
|
65863
|
+
* @instance
|
|
65864
|
+
*/
|
|
65865
|
+
RecommendationSearchMatched.prototype.controlDeepLink = "";
|
|
65866
|
+
|
|
65019
65867
|
/**
|
|
65020
65868
|
* Creates a new RecommendationSearchMatched instance using the specified properties.
|
|
65021
65869
|
* @function create
|
|
@@ -65052,6 +65900,10 @@ $root.RecommendationSearchMatched = (function() {
|
|
|
65052
65900
|
writer.uint32(/* id 5, wireType 2 =*/42).string(message.contentName);
|
|
65053
65901
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
65054
65902
|
writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.updatedAt);
|
|
65903
|
+
if (message.controlContentName != null && message.hasOwnProperty("controlContentName"))
|
|
65904
|
+
writer.uint32(/* id 7, wireType 2 =*/58).string(message.controlContentName);
|
|
65905
|
+
if (message.controlDeepLink != null && message.hasOwnProperty("controlDeepLink"))
|
|
65906
|
+
writer.uint32(/* id 8, wireType 2 =*/66).string(message.controlDeepLink);
|
|
65055
65907
|
return writer;
|
|
65056
65908
|
};
|
|
65057
65909
|
|
|
@@ -65104,6 +65956,12 @@ $root.RecommendationSearchMatched = (function() {
|
|
|
65104
65956
|
case 6:
|
|
65105
65957
|
message.updatedAt = reader.uint64();
|
|
65106
65958
|
break;
|
|
65959
|
+
case 7:
|
|
65960
|
+
message.controlContentName = reader.string();
|
|
65961
|
+
break;
|
|
65962
|
+
case 8:
|
|
65963
|
+
message.controlDeepLink = reader.string();
|
|
65964
|
+
break;
|
|
65107
65965
|
default:
|
|
65108
65966
|
reader.skipType(tag & 7);
|
|
65109
65967
|
break;
|
|
@@ -65157,6 +66015,12 @@ $root.RecommendationSearchMatched = (function() {
|
|
|
65157
66015
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
65158
66016
|
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
65159
66017
|
return "updatedAt: integer|Long expected";
|
|
66018
|
+
if (message.controlContentName != null && message.hasOwnProperty("controlContentName"))
|
|
66019
|
+
if (!$util.isString(message.controlContentName))
|
|
66020
|
+
return "controlContentName: string expected";
|
|
66021
|
+
if (message.controlDeepLink != null && message.hasOwnProperty("controlDeepLink"))
|
|
66022
|
+
if (!$util.isString(message.controlDeepLink))
|
|
66023
|
+
return "controlDeepLink: string expected";
|
|
65160
66024
|
return null;
|
|
65161
66025
|
};
|
|
65162
66026
|
|
|
@@ -65191,6 +66055,10 @@ $root.RecommendationSearchMatched = (function() {
|
|
|
65191
66055
|
message.updatedAt = object.updatedAt;
|
|
65192
66056
|
else if (typeof object.updatedAt === "object")
|
|
65193
66057
|
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
66058
|
+
if (object.controlContentName != null)
|
|
66059
|
+
message.controlContentName = String(object.controlContentName);
|
|
66060
|
+
if (object.controlDeepLink != null)
|
|
66061
|
+
message.controlDeepLink = String(object.controlDeepLink);
|
|
65194
66062
|
return message;
|
|
65195
66063
|
};
|
|
65196
66064
|
|
|
@@ -65218,6 +66086,8 @@ $root.RecommendationSearchMatched = (function() {
|
|
|
65218
66086
|
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
65219
66087
|
} else
|
|
65220
66088
|
object.updatedAt = options.longs === String ? "0" : 0;
|
|
66089
|
+
object.controlContentName = "";
|
|
66090
|
+
object.controlDeepLink = "";
|
|
65221
66091
|
}
|
|
65222
66092
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
65223
66093
|
object.userId = message.userId;
|
|
@@ -65234,6 +66104,10 @@ $root.RecommendationSearchMatched = (function() {
|
|
|
65234
66104
|
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
65235
66105
|
else
|
|
65236
66106
|
object.updatedAt = options.longs === String ? $util.Long.prototype.toString.call(message.updatedAt) : options.longs === Number ? new $util.LongBits(message.updatedAt.low >>> 0, message.updatedAt.high >>> 0).toNumber(true) : message.updatedAt;
|
|
66107
|
+
if (message.controlContentName != null && message.hasOwnProperty("controlContentName"))
|
|
66108
|
+
object.controlContentName = message.controlContentName;
|
|
66109
|
+
if (message.controlDeepLink != null && message.hasOwnProperty("controlDeepLink"))
|
|
66110
|
+
object.controlDeepLink = message.controlDeepLink;
|
|
65237
66111
|
return object;
|
|
65238
66112
|
};
|
|
65239
66113
|
|
|
@@ -65263,6 +66137,8 @@ $root.RecommendationSequenceModelPredictionAvailable = (function() {
|
|
|
65263
66137
|
* @property {string|null} [previousContentNames] RecommendationSequenceModelPredictionAvailable previousContentNames
|
|
65264
66138
|
* @property {string|null} [contentName] RecommendationSequenceModelPredictionAvailable contentName
|
|
65265
66139
|
* @property {number|Long|null} [updatedAt] RecommendationSequenceModelPredictionAvailable updatedAt
|
|
66140
|
+
* @property {string|null} [controlContentName] RecommendationSequenceModelPredictionAvailable controlContentName
|
|
66141
|
+
* @property {string|null} [controlDeepLink] RecommendationSequenceModelPredictionAvailable controlDeepLink
|
|
65266
66142
|
*/
|
|
65267
66143
|
|
|
65268
66144
|
/**
|
|
@@ -65328,6 +66204,22 @@ $root.RecommendationSequenceModelPredictionAvailable = (function() {
|
|
|
65328
66204
|
*/
|
|
65329
66205
|
RecommendationSequenceModelPredictionAvailable.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
65330
66206
|
|
|
66207
|
+
/**
|
|
66208
|
+
* RecommendationSequenceModelPredictionAvailable controlContentName.
|
|
66209
|
+
* @member {string} controlContentName
|
|
66210
|
+
* @memberof RecommendationSequenceModelPredictionAvailable
|
|
66211
|
+
* @instance
|
|
66212
|
+
*/
|
|
66213
|
+
RecommendationSequenceModelPredictionAvailable.prototype.controlContentName = "";
|
|
66214
|
+
|
|
66215
|
+
/**
|
|
66216
|
+
* RecommendationSequenceModelPredictionAvailable controlDeepLink.
|
|
66217
|
+
* @member {string} controlDeepLink
|
|
66218
|
+
* @memberof RecommendationSequenceModelPredictionAvailable
|
|
66219
|
+
* @instance
|
|
66220
|
+
*/
|
|
66221
|
+
RecommendationSequenceModelPredictionAvailable.prototype.controlDeepLink = "";
|
|
66222
|
+
|
|
65331
66223
|
/**
|
|
65332
66224
|
* Creates a new RecommendationSequenceModelPredictionAvailable instance using the specified properties.
|
|
65333
66225
|
* @function create
|
|
@@ -65364,6 +66256,10 @@ $root.RecommendationSequenceModelPredictionAvailable = (function() {
|
|
|
65364
66256
|
writer.uint32(/* id 5, wireType 2 =*/42).string(message.contentName);
|
|
65365
66257
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
65366
66258
|
writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.updatedAt);
|
|
66259
|
+
if (message.controlContentName != null && message.hasOwnProperty("controlContentName"))
|
|
66260
|
+
writer.uint32(/* id 7, wireType 2 =*/58).string(message.controlContentName);
|
|
66261
|
+
if (message.controlDeepLink != null && message.hasOwnProperty("controlDeepLink"))
|
|
66262
|
+
writer.uint32(/* id 8, wireType 2 =*/66).string(message.controlDeepLink);
|
|
65367
66263
|
return writer;
|
|
65368
66264
|
};
|
|
65369
66265
|
|
|
@@ -65416,6 +66312,12 @@ $root.RecommendationSequenceModelPredictionAvailable = (function() {
|
|
|
65416
66312
|
case 6:
|
|
65417
66313
|
message.updatedAt = reader.uint64();
|
|
65418
66314
|
break;
|
|
66315
|
+
case 7:
|
|
66316
|
+
message.controlContentName = reader.string();
|
|
66317
|
+
break;
|
|
66318
|
+
case 8:
|
|
66319
|
+
message.controlDeepLink = reader.string();
|
|
66320
|
+
break;
|
|
65419
66321
|
default:
|
|
65420
66322
|
reader.skipType(tag & 7);
|
|
65421
66323
|
break;
|
|
@@ -65469,6 +66371,12 @@ $root.RecommendationSequenceModelPredictionAvailable = (function() {
|
|
|
65469
66371
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
65470
66372
|
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
65471
66373
|
return "updatedAt: integer|Long expected";
|
|
66374
|
+
if (message.controlContentName != null && message.hasOwnProperty("controlContentName"))
|
|
66375
|
+
if (!$util.isString(message.controlContentName))
|
|
66376
|
+
return "controlContentName: string expected";
|
|
66377
|
+
if (message.controlDeepLink != null && message.hasOwnProperty("controlDeepLink"))
|
|
66378
|
+
if (!$util.isString(message.controlDeepLink))
|
|
66379
|
+
return "controlDeepLink: string expected";
|
|
65472
66380
|
return null;
|
|
65473
66381
|
};
|
|
65474
66382
|
|
|
@@ -65503,6 +66411,10 @@ $root.RecommendationSequenceModelPredictionAvailable = (function() {
|
|
|
65503
66411
|
message.updatedAt = object.updatedAt;
|
|
65504
66412
|
else if (typeof object.updatedAt === "object")
|
|
65505
66413
|
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
66414
|
+
if (object.controlContentName != null)
|
|
66415
|
+
message.controlContentName = String(object.controlContentName);
|
|
66416
|
+
if (object.controlDeepLink != null)
|
|
66417
|
+
message.controlDeepLink = String(object.controlDeepLink);
|
|
65506
66418
|
return message;
|
|
65507
66419
|
};
|
|
65508
66420
|
|
|
@@ -65530,6 +66442,8 @@ $root.RecommendationSequenceModelPredictionAvailable = (function() {
|
|
|
65530
66442
|
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
65531
66443
|
} else
|
|
65532
66444
|
object.updatedAt = options.longs === String ? "0" : 0;
|
|
66445
|
+
object.controlContentName = "";
|
|
66446
|
+
object.controlDeepLink = "";
|
|
65533
66447
|
}
|
|
65534
66448
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
65535
66449
|
object.userId = message.userId;
|
|
@@ -65546,6 +66460,10 @@ $root.RecommendationSequenceModelPredictionAvailable = (function() {
|
|
|
65546
66460
|
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
65547
66461
|
else
|
|
65548
66462
|
object.updatedAt = options.longs === String ? $util.Long.prototype.toString.call(message.updatedAt) : options.longs === Number ? new $util.LongBits(message.updatedAt.low >>> 0, message.updatedAt.high >>> 0).toNumber(true) : message.updatedAt;
|
|
66463
|
+
if (message.controlContentName != null && message.hasOwnProperty("controlContentName"))
|
|
66464
|
+
object.controlContentName = message.controlContentName;
|
|
66465
|
+
if (message.controlDeepLink != null && message.hasOwnProperty("controlDeepLink"))
|
|
66466
|
+
object.controlDeepLink = message.controlDeepLink;
|
|
65549
66467
|
return object;
|
|
65550
66468
|
};
|
|
65551
66469
|
|