@headspace/protos-events 1.505.0 → 1.506.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 +90 -0
- package/lib/index.js +187 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -26051,6 +26051,96 @@ export class ContentEntityDeleted implements IContentEntityDeleted {
|
|
|
26051
26051
|
public toJSON(): { [k: string]: any };
|
|
26052
26052
|
}
|
|
26053
26053
|
|
|
26054
|
+
/** Properties of a ContentCourseCompleted. */
|
|
26055
|
+
export interface IContentCourseCompleted {
|
|
26056
|
+
|
|
26057
|
+
/** ContentCourseCompleted userId */
|
|
26058
|
+
userId?: (string|null);
|
|
26059
|
+
}
|
|
26060
|
+
|
|
26061
|
+
/** Represents a ContentCourseCompleted. */
|
|
26062
|
+
export class ContentCourseCompleted implements IContentCourseCompleted {
|
|
26063
|
+
|
|
26064
|
+
/**
|
|
26065
|
+
* Constructs a new ContentCourseCompleted.
|
|
26066
|
+
* @param [properties] Properties to set
|
|
26067
|
+
*/
|
|
26068
|
+
constructor(properties?: IContentCourseCompleted);
|
|
26069
|
+
|
|
26070
|
+
/** ContentCourseCompleted userId. */
|
|
26071
|
+
public userId: string;
|
|
26072
|
+
|
|
26073
|
+
/**
|
|
26074
|
+
* Creates a new ContentCourseCompleted instance using the specified properties.
|
|
26075
|
+
* @param [properties] Properties to set
|
|
26076
|
+
* @returns ContentCourseCompleted instance
|
|
26077
|
+
*/
|
|
26078
|
+
public static create(properties?: IContentCourseCompleted): ContentCourseCompleted;
|
|
26079
|
+
|
|
26080
|
+
/**
|
|
26081
|
+
* Encodes the specified ContentCourseCompleted message. Does not implicitly {@link ContentCourseCompleted.verify|verify} messages.
|
|
26082
|
+
* @param message ContentCourseCompleted message or plain object to encode
|
|
26083
|
+
* @param [writer] Writer to encode to
|
|
26084
|
+
* @returns Writer
|
|
26085
|
+
*/
|
|
26086
|
+
public static encode(message: IContentCourseCompleted, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
26087
|
+
|
|
26088
|
+
/**
|
|
26089
|
+
* Encodes the specified ContentCourseCompleted message, length delimited. Does not implicitly {@link ContentCourseCompleted.verify|verify} messages.
|
|
26090
|
+
* @param message ContentCourseCompleted message or plain object to encode
|
|
26091
|
+
* @param [writer] Writer to encode to
|
|
26092
|
+
* @returns Writer
|
|
26093
|
+
*/
|
|
26094
|
+
public static encodeDelimited(message: IContentCourseCompleted, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
26095
|
+
|
|
26096
|
+
/**
|
|
26097
|
+
* Decodes a ContentCourseCompleted message from the specified reader or buffer.
|
|
26098
|
+
* @param reader Reader or buffer to decode from
|
|
26099
|
+
* @param [length] Message length if known beforehand
|
|
26100
|
+
* @returns ContentCourseCompleted
|
|
26101
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
26102
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
26103
|
+
*/
|
|
26104
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ContentCourseCompleted;
|
|
26105
|
+
|
|
26106
|
+
/**
|
|
26107
|
+
* Decodes a ContentCourseCompleted message from the specified reader or buffer, length delimited.
|
|
26108
|
+
* @param reader Reader or buffer to decode from
|
|
26109
|
+
* @returns ContentCourseCompleted
|
|
26110
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
26111
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
26112
|
+
*/
|
|
26113
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ContentCourseCompleted;
|
|
26114
|
+
|
|
26115
|
+
/**
|
|
26116
|
+
* Verifies a ContentCourseCompleted message.
|
|
26117
|
+
* @param message Plain object to verify
|
|
26118
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
26119
|
+
*/
|
|
26120
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
26121
|
+
|
|
26122
|
+
/**
|
|
26123
|
+
* Creates a ContentCourseCompleted message from a plain object. Also converts values to their respective internal types.
|
|
26124
|
+
* @param object Plain object
|
|
26125
|
+
* @returns ContentCourseCompleted
|
|
26126
|
+
*/
|
|
26127
|
+
public static fromObject(object: { [k: string]: any }): ContentCourseCompleted;
|
|
26128
|
+
|
|
26129
|
+
/**
|
|
26130
|
+
* Creates a plain object from a ContentCourseCompleted message. Also converts values to other types if specified.
|
|
26131
|
+
* @param message ContentCourseCompleted
|
|
26132
|
+
* @param [options] Conversion options
|
|
26133
|
+
* @returns Plain object
|
|
26134
|
+
*/
|
|
26135
|
+
public static toObject(message: ContentCourseCompleted, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
26136
|
+
|
|
26137
|
+
/**
|
|
26138
|
+
* Converts this ContentCourseCompleted to JSON.
|
|
26139
|
+
* @returns JSON object
|
|
26140
|
+
*/
|
|
26141
|
+
public toJSON(): { [k: string]: any };
|
|
26142
|
+
}
|
|
26143
|
+
|
|
26054
26144
|
/** Properties of a TopicCreated. */
|
|
26055
26145
|
export interface ITopicCreated {
|
|
26056
26146
|
|
package/lib/index.js
CHANGED
|
@@ -72842,6 +72842,193 @@ $root.ContentEntityDeleted = (function() {
|
|
|
72842
72842
|
return ContentEntityDeleted;
|
|
72843
72843
|
})();
|
|
72844
72844
|
|
|
72845
|
+
$root.ContentCourseCompleted = (function() {
|
|
72846
|
+
|
|
72847
|
+
/**
|
|
72848
|
+
* Properties of a ContentCourseCompleted.
|
|
72849
|
+
* @name IContentCourseCompleted
|
|
72850
|
+
* @interface IContentCourseCompleted
|
|
72851
|
+
* @property {string|null} [userId] ContentCourseCompleted userId
|
|
72852
|
+
*/
|
|
72853
|
+
|
|
72854
|
+
/**
|
|
72855
|
+
* Constructs a new ContentCourseCompleted.
|
|
72856
|
+
* @name ContentCourseCompleted
|
|
72857
|
+
* @classdesc Represents a ContentCourseCompleted.
|
|
72858
|
+
* @implements IContentCourseCompleted
|
|
72859
|
+
* @constructor
|
|
72860
|
+
* @param {IContentCourseCompleted=} [properties] Properties to set
|
|
72861
|
+
*/
|
|
72862
|
+
function ContentCourseCompleted(properties) {
|
|
72863
|
+
if (properties)
|
|
72864
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
72865
|
+
if (properties[keys[i]] != null)
|
|
72866
|
+
this[keys[i]] = properties[keys[i]];
|
|
72867
|
+
}
|
|
72868
|
+
|
|
72869
|
+
/**
|
|
72870
|
+
* ContentCourseCompleted userId.
|
|
72871
|
+
* @member {string} userId
|
|
72872
|
+
* @memberof ContentCourseCompleted
|
|
72873
|
+
* @instance
|
|
72874
|
+
*/
|
|
72875
|
+
ContentCourseCompleted.prototype.userId = "";
|
|
72876
|
+
|
|
72877
|
+
/**
|
|
72878
|
+
* Creates a new ContentCourseCompleted instance using the specified properties.
|
|
72879
|
+
* @function create
|
|
72880
|
+
* @memberof ContentCourseCompleted
|
|
72881
|
+
* @static
|
|
72882
|
+
* @param {IContentCourseCompleted=} [properties] Properties to set
|
|
72883
|
+
* @returns {ContentCourseCompleted} ContentCourseCompleted instance
|
|
72884
|
+
*/
|
|
72885
|
+
ContentCourseCompleted.create = function create(properties) {
|
|
72886
|
+
return new ContentCourseCompleted(properties);
|
|
72887
|
+
};
|
|
72888
|
+
|
|
72889
|
+
/**
|
|
72890
|
+
* Encodes the specified ContentCourseCompleted message. Does not implicitly {@link ContentCourseCompleted.verify|verify} messages.
|
|
72891
|
+
* @function encode
|
|
72892
|
+
* @memberof ContentCourseCompleted
|
|
72893
|
+
* @static
|
|
72894
|
+
* @param {IContentCourseCompleted} message ContentCourseCompleted message or plain object to encode
|
|
72895
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
72896
|
+
* @returns {$protobuf.Writer} Writer
|
|
72897
|
+
*/
|
|
72898
|
+
ContentCourseCompleted.encode = function encode(message, writer) {
|
|
72899
|
+
if (!writer)
|
|
72900
|
+
writer = $Writer.create();
|
|
72901
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
72902
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
|
|
72903
|
+
return writer;
|
|
72904
|
+
};
|
|
72905
|
+
|
|
72906
|
+
/**
|
|
72907
|
+
* Encodes the specified ContentCourseCompleted message, length delimited. Does not implicitly {@link ContentCourseCompleted.verify|verify} messages.
|
|
72908
|
+
* @function encodeDelimited
|
|
72909
|
+
* @memberof ContentCourseCompleted
|
|
72910
|
+
* @static
|
|
72911
|
+
* @param {IContentCourseCompleted} message ContentCourseCompleted message or plain object to encode
|
|
72912
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
72913
|
+
* @returns {$protobuf.Writer} Writer
|
|
72914
|
+
*/
|
|
72915
|
+
ContentCourseCompleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
72916
|
+
return this.encode(message, writer).ldelim();
|
|
72917
|
+
};
|
|
72918
|
+
|
|
72919
|
+
/**
|
|
72920
|
+
* Decodes a ContentCourseCompleted message from the specified reader or buffer.
|
|
72921
|
+
* @function decode
|
|
72922
|
+
* @memberof ContentCourseCompleted
|
|
72923
|
+
* @static
|
|
72924
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
72925
|
+
* @param {number} [length] Message length if known beforehand
|
|
72926
|
+
* @returns {ContentCourseCompleted} ContentCourseCompleted
|
|
72927
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
72928
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
72929
|
+
*/
|
|
72930
|
+
ContentCourseCompleted.decode = function decode(reader, length) {
|
|
72931
|
+
if (!(reader instanceof $Reader))
|
|
72932
|
+
reader = $Reader.create(reader);
|
|
72933
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentCourseCompleted();
|
|
72934
|
+
while (reader.pos < end) {
|
|
72935
|
+
var tag = reader.uint32();
|
|
72936
|
+
switch (tag >>> 3) {
|
|
72937
|
+
case 1:
|
|
72938
|
+
message.userId = reader.string();
|
|
72939
|
+
break;
|
|
72940
|
+
default:
|
|
72941
|
+
reader.skipType(tag & 7);
|
|
72942
|
+
break;
|
|
72943
|
+
}
|
|
72944
|
+
}
|
|
72945
|
+
return message;
|
|
72946
|
+
};
|
|
72947
|
+
|
|
72948
|
+
/**
|
|
72949
|
+
* Decodes a ContentCourseCompleted message from the specified reader or buffer, length delimited.
|
|
72950
|
+
* @function decodeDelimited
|
|
72951
|
+
* @memberof ContentCourseCompleted
|
|
72952
|
+
* @static
|
|
72953
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
72954
|
+
* @returns {ContentCourseCompleted} ContentCourseCompleted
|
|
72955
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
72956
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
72957
|
+
*/
|
|
72958
|
+
ContentCourseCompleted.decodeDelimited = function decodeDelimited(reader) {
|
|
72959
|
+
if (!(reader instanceof $Reader))
|
|
72960
|
+
reader = new $Reader(reader);
|
|
72961
|
+
return this.decode(reader, reader.uint32());
|
|
72962
|
+
};
|
|
72963
|
+
|
|
72964
|
+
/**
|
|
72965
|
+
* Verifies a ContentCourseCompleted message.
|
|
72966
|
+
* @function verify
|
|
72967
|
+
* @memberof ContentCourseCompleted
|
|
72968
|
+
* @static
|
|
72969
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
72970
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
72971
|
+
*/
|
|
72972
|
+
ContentCourseCompleted.verify = function verify(message) {
|
|
72973
|
+
if (typeof message !== "object" || message === null)
|
|
72974
|
+
return "object expected";
|
|
72975
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
72976
|
+
if (!$util.isString(message.userId))
|
|
72977
|
+
return "userId: string expected";
|
|
72978
|
+
return null;
|
|
72979
|
+
};
|
|
72980
|
+
|
|
72981
|
+
/**
|
|
72982
|
+
* Creates a ContentCourseCompleted message from a plain object. Also converts values to their respective internal types.
|
|
72983
|
+
* @function fromObject
|
|
72984
|
+
* @memberof ContentCourseCompleted
|
|
72985
|
+
* @static
|
|
72986
|
+
* @param {Object.<string,*>} object Plain object
|
|
72987
|
+
* @returns {ContentCourseCompleted} ContentCourseCompleted
|
|
72988
|
+
*/
|
|
72989
|
+
ContentCourseCompleted.fromObject = function fromObject(object) {
|
|
72990
|
+
if (object instanceof $root.ContentCourseCompleted)
|
|
72991
|
+
return object;
|
|
72992
|
+
var message = new $root.ContentCourseCompleted();
|
|
72993
|
+
if (object.userId != null)
|
|
72994
|
+
message.userId = String(object.userId);
|
|
72995
|
+
return message;
|
|
72996
|
+
};
|
|
72997
|
+
|
|
72998
|
+
/**
|
|
72999
|
+
* Creates a plain object from a ContentCourseCompleted message. Also converts values to other types if specified.
|
|
73000
|
+
* @function toObject
|
|
73001
|
+
* @memberof ContentCourseCompleted
|
|
73002
|
+
* @static
|
|
73003
|
+
* @param {ContentCourseCompleted} message ContentCourseCompleted
|
|
73004
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
73005
|
+
* @returns {Object.<string,*>} Plain object
|
|
73006
|
+
*/
|
|
73007
|
+
ContentCourseCompleted.toObject = function toObject(message, options) {
|
|
73008
|
+
if (!options)
|
|
73009
|
+
options = {};
|
|
73010
|
+
var object = {};
|
|
73011
|
+
if (options.defaults)
|
|
73012
|
+
object.userId = "";
|
|
73013
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
73014
|
+
object.userId = message.userId;
|
|
73015
|
+
return object;
|
|
73016
|
+
};
|
|
73017
|
+
|
|
73018
|
+
/**
|
|
73019
|
+
* Converts this ContentCourseCompleted to JSON.
|
|
73020
|
+
* @function toJSON
|
|
73021
|
+
* @memberof ContentCourseCompleted
|
|
73022
|
+
* @instance
|
|
73023
|
+
* @returns {Object.<string,*>} JSON object
|
|
73024
|
+
*/
|
|
73025
|
+
ContentCourseCompleted.prototype.toJSON = function toJSON() {
|
|
73026
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
73027
|
+
};
|
|
73028
|
+
|
|
73029
|
+
return ContentCourseCompleted;
|
|
73030
|
+
})();
|
|
73031
|
+
|
|
72845
73032
|
$root.TopicCreated = (function() {
|
|
72846
73033
|
|
|
72847
73034
|
/**
|
package/package.json
CHANGED