@headspace/protos-events 1.521.0 → 1.522.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 +210 -0
- package/lib/index.js +495 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -34746,6 +34746,102 @@ export class DiscussionUser implements IDiscussionUser {
|
|
|
34746
34746
|
public toJSON(): { [k: string]: any };
|
|
34747
34747
|
}
|
|
34748
34748
|
|
|
34749
|
+
/** Properties of a CourseInfo. */
|
|
34750
|
+
export interface ICourseInfo {
|
|
34751
|
+
|
|
34752
|
+
/** CourseInfo courseId */
|
|
34753
|
+
courseId?: (string|null);
|
|
34754
|
+
|
|
34755
|
+
/** CourseInfo courseName */
|
|
34756
|
+
courseName?: (string|null);
|
|
34757
|
+
}
|
|
34758
|
+
|
|
34759
|
+
/** Represents a CourseInfo. */
|
|
34760
|
+
export class CourseInfo implements ICourseInfo {
|
|
34761
|
+
|
|
34762
|
+
/**
|
|
34763
|
+
* Constructs a new CourseInfo.
|
|
34764
|
+
* @param [properties] Properties to set
|
|
34765
|
+
*/
|
|
34766
|
+
constructor(properties?: ICourseInfo);
|
|
34767
|
+
|
|
34768
|
+
/** CourseInfo courseId. */
|
|
34769
|
+
public courseId: string;
|
|
34770
|
+
|
|
34771
|
+
/** CourseInfo courseName. */
|
|
34772
|
+
public courseName: string;
|
|
34773
|
+
|
|
34774
|
+
/**
|
|
34775
|
+
* Creates a new CourseInfo instance using the specified properties.
|
|
34776
|
+
* @param [properties] Properties to set
|
|
34777
|
+
* @returns CourseInfo instance
|
|
34778
|
+
*/
|
|
34779
|
+
public static create(properties?: ICourseInfo): CourseInfo;
|
|
34780
|
+
|
|
34781
|
+
/**
|
|
34782
|
+
* Encodes the specified CourseInfo message. Does not implicitly {@link CourseInfo.verify|verify} messages.
|
|
34783
|
+
* @param message CourseInfo message or plain object to encode
|
|
34784
|
+
* @param [writer] Writer to encode to
|
|
34785
|
+
* @returns Writer
|
|
34786
|
+
*/
|
|
34787
|
+
public static encode(message: ICourseInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
34788
|
+
|
|
34789
|
+
/**
|
|
34790
|
+
* Encodes the specified CourseInfo message, length delimited. Does not implicitly {@link CourseInfo.verify|verify} messages.
|
|
34791
|
+
* @param message CourseInfo message or plain object to encode
|
|
34792
|
+
* @param [writer] Writer to encode to
|
|
34793
|
+
* @returns Writer
|
|
34794
|
+
*/
|
|
34795
|
+
public static encodeDelimited(message: ICourseInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
34796
|
+
|
|
34797
|
+
/**
|
|
34798
|
+
* Decodes a CourseInfo message from the specified reader or buffer.
|
|
34799
|
+
* @param reader Reader or buffer to decode from
|
|
34800
|
+
* @param [length] Message length if known beforehand
|
|
34801
|
+
* @returns CourseInfo
|
|
34802
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
34803
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
34804
|
+
*/
|
|
34805
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): CourseInfo;
|
|
34806
|
+
|
|
34807
|
+
/**
|
|
34808
|
+
* Decodes a CourseInfo message from the specified reader or buffer, length delimited.
|
|
34809
|
+
* @param reader Reader or buffer to decode from
|
|
34810
|
+
* @returns CourseInfo
|
|
34811
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
34812
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
34813
|
+
*/
|
|
34814
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): CourseInfo;
|
|
34815
|
+
|
|
34816
|
+
/**
|
|
34817
|
+
* Verifies a CourseInfo message.
|
|
34818
|
+
* @param message Plain object to verify
|
|
34819
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
34820
|
+
*/
|
|
34821
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
34822
|
+
|
|
34823
|
+
/**
|
|
34824
|
+
* Creates a CourseInfo message from a plain object. Also converts values to their respective internal types.
|
|
34825
|
+
* @param object Plain object
|
|
34826
|
+
* @returns CourseInfo
|
|
34827
|
+
*/
|
|
34828
|
+
public static fromObject(object: { [k: string]: any }): CourseInfo;
|
|
34829
|
+
|
|
34830
|
+
/**
|
|
34831
|
+
* Creates a plain object from a CourseInfo message. Also converts values to other types if specified.
|
|
34832
|
+
* @param message CourseInfo
|
|
34833
|
+
* @param [options] Conversion options
|
|
34834
|
+
* @returns Plain object
|
|
34835
|
+
*/
|
|
34836
|
+
public static toObject(message: CourseInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
34837
|
+
|
|
34838
|
+
/**
|
|
34839
|
+
* Converts this CourseInfo to JSON.
|
|
34840
|
+
* @returns JSON object
|
|
34841
|
+
*/
|
|
34842
|
+
public toJSON(): { [k: string]: any };
|
|
34843
|
+
}
|
|
34844
|
+
|
|
34749
34845
|
/** Properties of a DiscussionPost. */
|
|
34750
34846
|
export interface IDiscussionPost {
|
|
34751
34847
|
|
|
@@ -34754,6 +34850,18 @@ export interface IDiscussionPost {
|
|
|
34754
34850
|
|
|
34755
34851
|
/** DiscussionPost author */
|
|
34756
34852
|
author?: (IDiscussionUser|null);
|
|
34853
|
+
|
|
34854
|
+
/** DiscussionPost courseInfo */
|
|
34855
|
+
courseInfo?: (ICourseInfo|null);
|
|
34856
|
+
|
|
34857
|
+
/** DiscussionPost parentId */
|
|
34858
|
+
parentId?: (string|null);
|
|
34859
|
+
|
|
34860
|
+
/** DiscussionPost discussionGroupId */
|
|
34861
|
+
discussionGroupId?: (string|null);
|
|
34862
|
+
|
|
34863
|
+
/** DiscussionPost messageBody */
|
|
34864
|
+
messageBody?: (string|null);
|
|
34757
34865
|
}
|
|
34758
34866
|
|
|
34759
34867
|
/** Represents a DiscussionPost. */
|
|
@@ -34771,6 +34879,18 @@ export class DiscussionPost implements IDiscussionPost {
|
|
|
34771
34879
|
/** DiscussionPost author. */
|
|
34772
34880
|
public author?: (IDiscussionUser|null);
|
|
34773
34881
|
|
|
34882
|
+
/** DiscussionPost courseInfo. */
|
|
34883
|
+
public courseInfo?: (ICourseInfo|null);
|
|
34884
|
+
|
|
34885
|
+
/** DiscussionPost parentId. */
|
|
34886
|
+
public parentId: string;
|
|
34887
|
+
|
|
34888
|
+
/** DiscussionPost discussionGroupId. */
|
|
34889
|
+
public discussionGroupId: string;
|
|
34890
|
+
|
|
34891
|
+
/** DiscussionPost messageBody. */
|
|
34892
|
+
public messageBody: string;
|
|
34893
|
+
|
|
34774
34894
|
/**
|
|
34775
34895
|
* Creates a new DiscussionPost instance using the specified properties.
|
|
34776
34896
|
* @param [properties] Properties to set
|
|
@@ -34973,6 +35093,96 @@ export namespace DiscussionPostReactionCreated {
|
|
|
34973
35093
|
}
|
|
34974
35094
|
}
|
|
34975
35095
|
|
|
35096
|
+
/** Properties of a DiscussionPostCreated. */
|
|
35097
|
+
export interface IDiscussionPostCreated {
|
|
35098
|
+
|
|
35099
|
+
/** DiscussionPostCreated post */
|
|
35100
|
+
post?: (IDiscussionPost|null);
|
|
35101
|
+
}
|
|
35102
|
+
|
|
35103
|
+
/** Represents a DiscussionPostCreated. */
|
|
35104
|
+
export class DiscussionPostCreated implements IDiscussionPostCreated {
|
|
35105
|
+
|
|
35106
|
+
/**
|
|
35107
|
+
* Constructs a new DiscussionPostCreated.
|
|
35108
|
+
* @param [properties] Properties to set
|
|
35109
|
+
*/
|
|
35110
|
+
constructor(properties?: IDiscussionPostCreated);
|
|
35111
|
+
|
|
35112
|
+
/** DiscussionPostCreated post. */
|
|
35113
|
+
public post?: (IDiscussionPost|null);
|
|
35114
|
+
|
|
35115
|
+
/**
|
|
35116
|
+
* Creates a new DiscussionPostCreated instance using the specified properties.
|
|
35117
|
+
* @param [properties] Properties to set
|
|
35118
|
+
* @returns DiscussionPostCreated instance
|
|
35119
|
+
*/
|
|
35120
|
+
public static create(properties?: IDiscussionPostCreated): DiscussionPostCreated;
|
|
35121
|
+
|
|
35122
|
+
/**
|
|
35123
|
+
* Encodes the specified DiscussionPostCreated message. Does not implicitly {@link DiscussionPostCreated.verify|verify} messages.
|
|
35124
|
+
* @param message DiscussionPostCreated message or plain object to encode
|
|
35125
|
+
* @param [writer] Writer to encode to
|
|
35126
|
+
* @returns Writer
|
|
35127
|
+
*/
|
|
35128
|
+
public static encode(message: IDiscussionPostCreated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
35129
|
+
|
|
35130
|
+
/**
|
|
35131
|
+
* Encodes the specified DiscussionPostCreated message, length delimited. Does not implicitly {@link DiscussionPostCreated.verify|verify} messages.
|
|
35132
|
+
* @param message DiscussionPostCreated message or plain object to encode
|
|
35133
|
+
* @param [writer] Writer to encode to
|
|
35134
|
+
* @returns Writer
|
|
35135
|
+
*/
|
|
35136
|
+
public static encodeDelimited(message: IDiscussionPostCreated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
35137
|
+
|
|
35138
|
+
/**
|
|
35139
|
+
* Decodes a DiscussionPostCreated message from the specified reader or buffer.
|
|
35140
|
+
* @param reader Reader or buffer to decode from
|
|
35141
|
+
* @param [length] Message length if known beforehand
|
|
35142
|
+
* @returns DiscussionPostCreated
|
|
35143
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
35144
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
35145
|
+
*/
|
|
35146
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): DiscussionPostCreated;
|
|
35147
|
+
|
|
35148
|
+
/**
|
|
35149
|
+
* Decodes a DiscussionPostCreated message from the specified reader or buffer, length delimited.
|
|
35150
|
+
* @param reader Reader or buffer to decode from
|
|
35151
|
+
* @returns DiscussionPostCreated
|
|
35152
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
35153
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
35154
|
+
*/
|
|
35155
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): DiscussionPostCreated;
|
|
35156
|
+
|
|
35157
|
+
/**
|
|
35158
|
+
* Verifies a DiscussionPostCreated message.
|
|
35159
|
+
* @param message Plain object to verify
|
|
35160
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
35161
|
+
*/
|
|
35162
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
35163
|
+
|
|
35164
|
+
/**
|
|
35165
|
+
* Creates a DiscussionPostCreated message from a plain object. Also converts values to their respective internal types.
|
|
35166
|
+
* @param object Plain object
|
|
35167
|
+
* @returns DiscussionPostCreated
|
|
35168
|
+
*/
|
|
35169
|
+
public static fromObject(object: { [k: string]: any }): DiscussionPostCreated;
|
|
35170
|
+
|
|
35171
|
+
/**
|
|
35172
|
+
* Creates a plain object from a DiscussionPostCreated message. Also converts values to other types if specified.
|
|
35173
|
+
* @param message DiscussionPostCreated
|
|
35174
|
+
* @param [options] Conversion options
|
|
35175
|
+
* @returns Plain object
|
|
35176
|
+
*/
|
|
35177
|
+
public static toObject(message: DiscussionPostCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
35178
|
+
|
|
35179
|
+
/**
|
|
35180
|
+
* Converts this DiscussionPostCreated to JSON.
|
|
35181
|
+
* @returns JSON object
|
|
35182
|
+
*/
|
|
35183
|
+
public toJSON(): { [k: string]: any };
|
|
35184
|
+
}
|
|
35185
|
+
|
|
34976
35186
|
/** Properties of an ElfProcessingStarted. */
|
|
34977
35187
|
export interface IElfProcessingStarted {
|
|
34978
35188
|
|
package/lib/index.js
CHANGED
|
@@ -96906,6 +96906,216 @@ $root.DiscussionUser = (function() {
|
|
|
96906
96906
|
return DiscussionUser;
|
|
96907
96907
|
})();
|
|
96908
96908
|
|
|
96909
|
+
$root.CourseInfo = (function() {
|
|
96910
|
+
|
|
96911
|
+
/**
|
|
96912
|
+
* Properties of a CourseInfo.
|
|
96913
|
+
* @name ICourseInfo
|
|
96914
|
+
* @interface ICourseInfo
|
|
96915
|
+
* @property {string|null} [courseId] CourseInfo courseId
|
|
96916
|
+
* @property {string|null} [courseName] CourseInfo courseName
|
|
96917
|
+
*/
|
|
96918
|
+
|
|
96919
|
+
/**
|
|
96920
|
+
* Constructs a new CourseInfo.
|
|
96921
|
+
* @name CourseInfo
|
|
96922
|
+
* @classdesc Represents a CourseInfo.
|
|
96923
|
+
* @implements ICourseInfo
|
|
96924
|
+
* @constructor
|
|
96925
|
+
* @param {ICourseInfo=} [properties] Properties to set
|
|
96926
|
+
*/
|
|
96927
|
+
function CourseInfo(properties) {
|
|
96928
|
+
if (properties)
|
|
96929
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
96930
|
+
if (properties[keys[i]] != null)
|
|
96931
|
+
this[keys[i]] = properties[keys[i]];
|
|
96932
|
+
}
|
|
96933
|
+
|
|
96934
|
+
/**
|
|
96935
|
+
* CourseInfo courseId.
|
|
96936
|
+
* @member {string} courseId
|
|
96937
|
+
* @memberof CourseInfo
|
|
96938
|
+
* @instance
|
|
96939
|
+
*/
|
|
96940
|
+
CourseInfo.prototype.courseId = "";
|
|
96941
|
+
|
|
96942
|
+
/**
|
|
96943
|
+
* CourseInfo courseName.
|
|
96944
|
+
* @member {string} courseName
|
|
96945
|
+
* @memberof CourseInfo
|
|
96946
|
+
* @instance
|
|
96947
|
+
*/
|
|
96948
|
+
CourseInfo.prototype.courseName = "";
|
|
96949
|
+
|
|
96950
|
+
/**
|
|
96951
|
+
* Creates a new CourseInfo instance using the specified properties.
|
|
96952
|
+
* @function create
|
|
96953
|
+
* @memberof CourseInfo
|
|
96954
|
+
* @static
|
|
96955
|
+
* @param {ICourseInfo=} [properties] Properties to set
|
|
96956
|
+
* @returns {CourseInfo} CourseInfo instance
|
|
96957
|
+
*/
|
|
96958
|
+
CourseInfo.create = function create(properties) {
|
|
96959
|
+
return new CourseInfo(properties);
|
|
96960
|
+
};
|
|
96961
|
+
|
|
96962
|
+
/**
|
|
96963
|
+
* Encodes the specified CourseInfo message. Does not implicitly {@link CourseInfo.verify|verify} messages.
|
|
96964
|
+
* @function encode
|
|
96965
|
+
* @memberof CourseInfo
|
|
96966
|
+
* @static
|
|
96967
|
+
* @param {ICourseInfo} message CourseInfo message or plain object to encode
|
|
96968
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
96969
|
+
* @returns {$protobuf.Writer} Writer
|
|
96970
|
+
*/
|
|
96971
|
+
CourseInfo.encode = function encode(message, writer) {
|
|
96972
|
+
if (!writer)
|
|
96973
|
+
writer = $Writer.create();
|
|
96974
|
+
if (message.courseId != null && message.hasOwnProperty("courseId"))
|
|
96975
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.courseId);
|
|
96976
|
+
if (message.courseName != null && message.hasOwnProperty("courseName"))
|
|
96977
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.courseName);
|
|
96978
|
+
return writer;
|
|
96979
|
+
};
|
|
96980
|
+
|
|
96981
|
+
/**
|
|
96982
|
+
* Encodes the specified CourseInfo message, length delimited. Does not implicitly {@link CourseInfo.verify|verify} messages.
|
|
96983
|
+
* @function encodeDelimited
|
|
96984
|
+
* @memberof CourseInfo
|
|
96985
|
+
* @static
|
|
96986
|
+
* @param {ICourseInfo} message CourseInfo message or plain object to encode
|
|
96987
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
96988
|
+
* @returns {$protobuf.Writer} Writer
|
|
96989
|
+
*/
|
|
96990
|
+
CourseInfo.encodeDelimited = function encodeDelimited(message, writer) {
|
|
96991
|
+
return this.encode(message, writer).ldelim();
|
|
96992
|
+
};
|
|
96993
|
+
|
|
96994
|
+
/**
|
|
96995
|
+
* Decodes a CourseInfo message from the specified reader or buffer.
|
|
96996
|
+
* @function decode
|
|
96997
|
+
* @memberof CourseInfo
|
|
96998
|
+
* @static
|
|
96999
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
97000
|
+
* @param {number} [length] Message length if known beforehand
|
|
97001
|
+
* @returns {CourseInfo} CourseInfo
|
|
97002
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
97003
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
97004
|
+
*/
|
|
97005
|
+
CourseInfo.decode = function decode(reader, length) {
|
|
97006
|
+
if (!(reader instanceof $Reader))
|
|
97007
|
+
reader = $Reader.create(reader);
|
|
97008
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CourseInfo();
|
|
97009
|
+
while (reader.pos < end) {
|
|
97010
|
+
var tag = reader.uint32();
|
|
97011
|
+
switch (tag >>> 3) {
|
|
97012
|
+
case 1:
|
|
97013
|
+
message.courseId = reader.string();
|
|
97014
|
+
break;
|
|
97015
|
+
case 2:
|
|
97016
|
+
message.courseName = reader.string();
|
|
97017
|
+
break;
|
|
97018
|
+
default:
|
|
97019
|
+
reader.skipType(tag & 7);
|
|
97020
|
+
break;
|
|
97021
|
+
}
|
|
97022
|
+
}
|
|
97023
|
+
return message;
|
|
97024
|
+
};
|
|
97025
|
+
|
|
97026
|
+
/**
|
|
97027
|
+
* Decodes a CourseInfo message from the specified reader or buffer, length delimited.
|
|
97028
|
+
* @function decodeDelimited
|
|
97029
|
+
* @memberof CourseInfo
|
|
97030
|
+
* @static
|
|
97031
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
97032
|
+
* @returns {CourseInfo} CourseInfo
|
|
97033
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
97034
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
97035
|
+
*/
|
|
97036
|
+
CourseInfo.decodeDelimited = function decodeDelimited(reader) {
|
|
97037
|
+
if (!(reader instanceof $Reader))
|
|
97038
|
+
reader = new $Reader(reader);
|
|
97039
|
+
return this.decode(reader, reader.uint32());
|
|
97040
|
+
};
|
|
97041
|
+
|
|
97042
|
+
/**
|
|
97043
|
+
* Verifies a CourseInfo message.
|
|
97044
|
+
* @function verify
|
|
97045
|
+
* @memberof CourseInfo
|
|
97046
|
+
* @static
|
|
97047
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
97048
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
97049
|
+
*/
|
|
97050
|
+
CourseInfo.verify = function verify(message) {
|
|
97051
|
+
if (typeof message !== "object" || message === null)
|
|
97052
|
+
return "object expected";
|
|
97053
|
+
if (message.courseId != null && message.hasOwnProperty("courseId"))
|
|
97054
|
+
if (!$util.isString(message.courseId))
|
|
97055
|
+
return "courseId: string expected";
|
|
97056
|
+
if (message.courseName != null && message.hasOwnProperty("courseName"))
|
|
97057
|
+
if (!$util.isString(message.courseName))
|
|
97058
|
+
return "courseName: string expected";
|
|
97059
|
+
return null;
|
|
97060
|
+
};
|
|
97061
|
+
|
|
97062
|
+
/**
|
|
97063
|
+
* Creates a CourseInfo message from a plain object. Also converts values to their respective internal types.
|
|
97064
|
+
* @function fromObject
|
|
97065
|
+
* @memberof CourseInfo
|
|
97066
|
+
* @static
|
|
97067
|
+
* @param {Object.<string,*>} object Plain object
|
|
97068
|
+
* @returns {CourseInfo} CourseInfo
|
|
97069
|
+
*/
|
|
97070
|
+
CourseInfo.fromObject = function fromObject(object) {
|
|
97071
|
+
if (object instanceof $root.CourseInfo)
|
|
97072
|
+
return object;
|
|
97073
|
+
var message = new $root.CourseInfo();
|
|
97074
|
+
if (object.courseId != null)
|
|
97075
|
+
message.courseId = String(object.courseId);
|
|
97076
|
+
if (object.courseName != null)
|
|
97077
|
+
message.courseName = String(object.courseName);
|
|
97078
|
+
return message;
|
|
97079
|
+
};
|
|
97080
|
+
|
|
97081
|
+
/**
|
|
97082
|
+
* Creates a plain object from a CourseInfo message. Also converts values to other types if specified.
|
|
97083
|
+
* @function toObject
|
|
97084
|
+
* @memberof CourseInfo
|
|
97085
|
+
* @static
|
|
97086
|
+
* @param {CourseInfo} message CourseInfo
|
|
97087
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
97088
|
+
* @returns {Object.<string,*>} Plain object
|
|
97089
|
+
*/
|
|
97090
|
+
CourseInfo.toObject = function toObject(message, options) {
|
|
97091
|
+
if (!options)
|
|
97092
|
+
options = {};
|
|
97093
|
+
var object = {};
|
|
97094
|
+
if (options.defaults) {
|
|
97095
|
+
object.courseId = "";
|
|
97096
|
+
object.courseName = "";
|
|
97097
|
+
}
|
|
97098
|
+
if (message.courseId != null && message.hasOwnProperty("courseId"))
|
|
97099
|
+
object.courseId = message.courseId;
|
|
97100
|
+
if (message.courseName != null && message.hasOwnProperty("courseName"))
|
|
97101
|
+
object.courseName = message.courseName;
|
|
97102
|
+
return object;
|
|
97103
|
+
};
|
|
97104
|
+
|
|
97105
|
+
/**
|
|
97106
|
+
* Converts this CourseInfo to JSON.
|
|
97107
|
+
* @function toJSON
|
|
97108
|
+
* @memberof CourseInfo
|
|
97109
|
+
* @instance
|
|
97110
|
+
* @returns {Object.<string,*>} JSON object
|
|
97111
|
+
*/
|
|
97112
|
+
CourseInfo.prototype.toJSON = function toJSON() {
|
|
97113
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
97114
|
+
};
|
|
97115
|
+
|
|
97116
|
+
return CourseInfo;
|
|
97117
|
+
})();
|
|
97118
|
+
|
|
96909
97119
|
$root.DiscussionPost = (function() {
|
|
96910
97120
|
|
|
96911
97121
|
/**
|
|
@@ -96914,6 +97124,10 @@ $root.DiscussionPost = (function() {
|
|
|
96914
97124
|
* @interface IDiscussionPost
|
|
96915
97125
|
* @property {string|null} [id] DiscussionPost id
|
|
96916
97126
|
* @property {IDiscussionUser|null} [author] DiscussionPost author
|
|
97127
|
+
* @property {ICourseInfo|null} [courseInfo] DiscussionPost courseInfo
|
|
97128
|
+
* @property {string|null} [parentId] DiscussionPost parentId
|
|
97129
|
+
* @property {string|null} [discussionGroupId] DiscussionPost discussionGroupId
|
|
97130
|
+
* @property {string|null} [messageBody] DiscussionPost messageBody
|
|
96917
97131
|
*/
|
|
96918
97132
|
|
|
96919
97133
|
/**
|
|
@@ -96947,6 +97161,38 @@ $root.DiscussionPost = (function() {
|
|
|
96947
97161
|
*/
|
|
96948
97162
|
DiscussionPost.prototype.author = null;
|
|
96949
97163
|
|
|
97164
|
+
/**
|
|
97165
|
+
* DiscussionPost courseInfo.
|
|
97166
|
+
* @member {ICourseInfo|null|undefined} courseInfo
|
|
97167
|
+
* @memberof DiscussionPost
|
|
97168
|
+
* @instance
|
|
97169
|
+
*/
|
|
97170
|
+
DiscussionPost.prototype.courseInfo = null;
|
|
97171
|
+
|
|
97172
|
+
/**
|
|
97173
|
+
* DiscussionPost parentId.
|
|
97174
|
+
* @member {string} parentId
|
|
97175
|
+
* @memberof DiscussionPost
|
|
97176
|
+
* @instance
|
|
97177
|
+
*/
|
|
97178
|
+
DiscussionPost.prototype.parentId = "";
|
|
97179
|
+
|
|
97180
|
+
/**
|
|
97181
|
+
* DiscussionPost discussionGroupId.
|
|
97182
|
+
* @member {string} discussionGroupId
|
|
97183
|
+
* @memberof DiscussionPost
|
|
97184
|
+
* @instance
|
|
97185
|
+
*/
|
|
97186
|
+
DiscussionPost.prototype.discussionGroupId = "";
|
|
97187
|
+
|
|
97188
|
+
/**
|
|
97189
|
+
* DiscussionPost messageBody.
|
|
97190
|
+
* @member {string} messageBody
|
|
97191
|
+
* @memberof DiscussionPost
|
|
97192
|
+
* @instance
|
|
97193
|
+
*/
|
|
97194
|
+
DiscussionPost.prototype.messageBody = "";
|
|
97195
|
+
|
|
96950
97196
|
/**
|
|
96951
97197
|
* Creates a new DiscussionPost instance using the specified properties.
|
|
96952
97198
|
* @function create
|
|
@@ -96975,6 +97221,14 @@ $root.DiscussionPost = (function() {
|
|
|
96975
97221
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
|
|
96976
97222
|
if (message.author != null && message.hasOwnProperty("author"))
|
|
96977
97223
|
$root.DiscussionUser.encode(message.author, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
97224
|
+
if (message.courseInfo != null && message.hasOwnProperty("courseInfo"))
|
|
97225
|
+
$root.CourseInfo.encode(message.courseInfo, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
97226
|
+
if (message.parentId != null && message.hasOwnProperty("parentId"))
|
|
97227
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.parentId);
|
|
97228
|
+
if (message.discussionGroupId != null && message.hasOwnProperty("discussionGroupId"))
|
|
97229
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.discussionGroupId);
|
|
97230
|
+
if (message.messageBody != null && message.hasOwnProperty("messageBody"))
|
|
97231
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.messageBody);
|
|
96978
97232
|
return writer;
|
|
96979
97233
|
};
|
|
96980
97234
|
|
|
@@ -97015,6 +97269,18 @@ $root.DiscussionPost = (function() {
|
|
|
97015
97269
|
case 2:
|
|
97016
97270
|
message.author = $root.DiscussionUser.decode(reader, reader.uint32());
|
|
97017
97271
|
break;
|
|
97272
|
+
case 3:
|
|
97273
|
+
message.courseInfo = $root.CourseInfo.decode(reader, reader.uint32());
|
|
97274
|
+
break;
|
|
97275
|
+
case 4:
|
|
97276
|
+
message.parentId = reader.string();
|
|
97277
|
+
break;
|
|
97278
|
+
case 5:
|
|
97279
|
+
message.discussionGroupId = reader.string();
|
|
97280
|
+
break;
|
|
97281
|
+
case 6:
|
|
97282
|
+
message.messageBody = reader.string();
|
|
97283
|
+
break;
|
|
97018
97284
|
default:
|
|
97019
97285
|
reader.skipType(tag & 7);
|
|
97020
97286
|
break;
|
|
@@ -97058,6 +97324,20 @@ $root.DiscussionPost = (function() {
|
|
|
97058
97324
|
if (error)
|
|
97059
97325
|
return "author." + error;
|
|
97060
97326
|
}
|
|
97327
|
+
if (message.courseInfo != null && message.hasOwnProperty("courseInfo")) {
|
|
97328
|
+
var error = $root.CourseInfo.verify(message.courseInfo);
|
|
97329
|
+
if (error)
|
|
97330
|
+
return "courseInfo." + error;
|
|
97331
|
+
}
|
|
97332
|
+
if (message.parentId != null && message.hasOwnProperty("parentId"))
|
|
97333
|
+
if (!$util.isString(message.parentId))
|
|
97334
|
+
return "parentId: string expected";
|
|
97335
|
+
if (message.discussionGroupId != null && message.hasOwnProperty("discussionGroupId"))
|
|
97336
|
+
if (!$util.isString(message.discussionGroupId))
|
|
97337
|
+
return "discussionGroupId: string expected";
|
|
97338
|
+
if (message.messageBody != null && message.hasOwnProperty("messageBody"))
|
|
97339
|
+
if (!$util.isString(message.messageBody))
|
|
97340
|
+
return "messageBody: string expected";
|
|
97061
97341
|
return null;
|
|
97062
97342
|
};
|
|
97063
97343
|
|
|
@@ -97080,6 +97360,17 @@ $root.DiscussionPost = (function() {
|
|
|
97080
97360
|
throw TypeError(".DiscussionPost.author: object expected");
|
|
97081
97361
|
message.author = $root.DiscussionUser.fromObject(object.author);
|
|
97082
97362
|
}
|
|
97363
|
+
if (object.courseInfo != null) {
|
|
97364
|
+
if (typeof object.courseInfo !== "object")
|
|
97365
|
+
throw TypeError(".DiscussionPost.courseInfo: object expected");
|
|
97366
|
+
message.courseInfo = $root.CourseInfo.fromObject(object.courseInfo);
|
|
97367
|
+
}
|
|
97368
|
+
if (object.parentId != null)
|
|
97369
|
+
message.parentId = String(object.parentId);
|
|
97370
|
+
if (object.discussionGroupId != null)
|
|
97371
|
+
message.discussionGroupId = String(object.discussionGroupId);
|
|
97372
|
+
if (object.messageBody != null)
|
|
97373
|
+
message.messageBody = String(object.messageBody);
|
|
97083
97374
|
return message;
|
|
97084
97375
|
};
|
|
97085
97376
|
|
|
@@ -97099,11 +97390,23 @@ $root.DiscussionPost = (function() {
|
|
|
97099
97390
|
if (options.defaults) {
|
|
97100
97391
|
object.id = "";
|
|
97101
97392
|
object.author = null;
|
|
97393
|
+
object.courseInfo = null;
|
|
97394
|
+
object.parentId = "";
|
|
97395
|
+
object.discussionGroupId = "";
|
|
97396
|
+
object.messageBody = "";
|
|
97102
97397
|
}
|
|
97103
97398
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
97104
97399
|
object.id = message.id;
|
|
97105
97400
|
if (message.author != null && message.hasOwnProperty("author"))
|
|
97106
97401
|
object.author = $root.DiscussionUser.toObject(message.author, options);
|
|
97402
|
+
if (message.courseInfo != null && message.hasOwnProperty("courseInfo"))
|
|
97403
|
+
object.courseInfo = $root.CourseInfo.toObject(message.courseInfo, options);
|
|
97404
|
+
if (message.parentId != null && message.hasOwnProperty("parentId"))
|
|
97405
|
+
object.parentId = message.parentId;
|
|
97406
|
+
if (message.discussionGroupId != null && message.hasOwnProperty("discussionGroupId"))
|
|
97407
|
+
object.discussionGroupId = message.discussionGroupId;
|
|
97408
|
+
if (message.messageBody != null && message.hasOwnProperty("messageBody"))
|
|
97409
|
+
object.messageBody = message.messageBody;
|
|
97107
97410
|
return object;
|
|
97108
97411
|
};
|
|
97109
97412
|
|
|
@@ -97504,6 +97807,198 @@ $root.DiscussionPostReactionCreated = (function() {
|
|
|
97504
97807
|
return DiscussionPostReactionCreated;
|
|
97505
97808
|
})();
|
|
97506
97809
|
|
|
97810
|
+
$root.DiscussionPostCreated = (function() {
|
|
97811
|
+
|
|
97812
|
+
/**
|
|
97813
|
+
* Properties of a DiscussionPostCreated.
|
|
97814
|
+
* @name IDiscussionPostCreated
|
|
97815
|
+
* @interface IDiscussionPostCreated
|
|
97816
|
+
* @property {IDiscussionPost|null} [post] DiscussionPostCreated post
|
|
97817
|
+
*/
|
|
97818
|
+
|
|
97819
|
+
/**
|
|
97820
|
+
* Constructs a new DiscussionPostCreated.
|
|
97821
|
+
* @name DiscussionPostCreated
|
|
97822
|
+
* @classdesc Represents a DiscussionPostCreated.
|
|
97823
|
+
* @implements IDiscussionPostCreated
|
|
97824
|
+
* @constructor
|
|
97825
|
+
* @param {IDiscussionPostCreated=} [properties] Properties to set
|
|
97826
|
+
*/
|
|
97827
|
+
function DiscussionPostCreated(properties) {
|
|
97828
|
+
if (properties)
|
|
97829
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
97830
|
+
if (properties[keys[i]] != null)
|
|
97831
|
+
this[keys[i]] = properties[keys[i]];
|
|
97832
|
+
}
|
|
97833
|
+
|
|
97834
|
+
/**
|
|
97835
|
+
* DiscussionPostCreated post.
|
|
97836
|
+
* @member {IDiscussionPost|null|undefined} post
|
|
97837
|
+
* @memberof DiscussionPostCreated
|
|
97838
|
+
* @instance
|
|
97839
|
+
*/
|
|
97840
|
+
DiscussionPostCreated.prototype.post = null;
|
|
97841
|
+
|
|
97842
|
+
/**
|
|
97843
|
+
* Creates a new DiscussionPostCreated instance using the specified properties.
|
|
97844
|
+
* @function create
|
|
97845
|
+
* @memberof DiscussionPostCreated
|
|
97846
|
+
* @static
|
|
97847
|
+
* @param {IDiscussionPostCreated=} [properties] Properties to set
|
|
97848
|
+
* @returns {DiscussionPostCreated} DiscussionPostCreated instance
|
|
97849
|
+
*/
|
|
97850
|
+
DiscussionPostCreated.create = function create(properties) {
|
|
97851
|
+
return new DiscussionPostCreated(properties);
|
|
97852
|
+
};
|
|
97853
|
+
|
|
97854
|
+
/**
|
|
97855
|
+
* Encodes the specified DiscussionPostCreated message. Does not implicitly {@link DiscussionPostCreated.verify|verify} messages.
|
|
97856
|
+
* @function encode
|
|
97857
|
+
* @memberof DiscussionPostCreated
|
|
97858
|
+
* @static
|
|
97859
|
+
* @param {IDiscussionPostCreated} message DiscussionPostCreated message or plain object to encode
|
|
97860
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
97861
|
+
* @returns {$protobuf.Writer} Writer
|
|
97862
|
+
*/
|
|
97863
|
+
DiscussionPostCreated.encode = function encode(message, writer) {
|
|
97864
|
+
if (!writer)
|
|
97865
|
+
writer = $Writer.create();
|
|
97866
|
+
if (message.post != null && message.hasOwnProperty("post"))
|
|
97867
|
+
$root.DiscussionPost.encode(message.post, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
97868
|
+
return writer;
|
|
97869
|
+
};
|
|
97870
|
+
|
|
97871
|
+
/**
|
|
97872
|
+
* Encodes the specified DiscussionPostCreated message, length delimited. Does not implicitly {@link DiscussionPostCreated.verify|verify} messages.
|
|
97873
|
+
* @function encodeDelimited
|
|
97874
|
+
* @memberof DiscussionPostCreated
|
|
97875
|
+
* @static
|
|
97876
|
+
* @param {IDiscussionPostCreated} message DiscussionPostCreated message or plain object to encode
|
|
97877
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
97878
|
+
* @returns {$protobuf.Writer} Writer
|
|
97879
|
+
*/
|
|
97880
|
+
DiscussionPostCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
97881
|
+
return this.encode(message, writer).ldelim();
|
|
97882
|
+
};
|
|
97883
|
+
|
|
97884
|
+
/**
|
|
97885
|
+
* Decodes a DiscussionPostCreated message from the specified reader or buffer.
|
|
97886
|
+
* @function decode
|
|
97887
|
+
* @memberof DiscussionPostCreated
|
|
97888
|
+
* @static
|
|
97889
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
97890
|
+
* @param {number} [length] Message length if known beforehand
|
|
97891
|
+
* @returns {DiscussionPostCreated} DiscussionPostCreated
|
|
97892
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
97893
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
97894
|
+
*/
|
|
97895
|
+
DiscussionPostCreated.decode = function decode(reader, length) {
|
|
97896
|
+
if (!(reader instanceof $Reader))
|
|
97897
|
+
reader = $Reader.create(reader);
|
|
97898
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.DiscussionPostCreated();
|
|
97899
|
+
while (reader.pos < end) {
|
|
97900
|
+
var tag = reader.uint32();
|
|
97901
|
+
switch (tag >>> 3) {
|
|
97902
|
+
case 1:
|
|
97903
|
+
message.post = $root.DiscussionPost.decode(reader, reader.uint32());
|
|
97904
|
+
break;
|
|
97905
|
+
default:
|
|
97906
|
+
reader.skipType(tag & 7);
|
|
97907
|
+
break;
|
|
97908
|
+
}
|
|
97909
|
+
}
|
|
97910
|
+
return message;
|
|
97911
|
+
};
|
|
97912
|
+
|
|
97913
|
+
/**
|
|
97914
|
+
* Decodes a DiscussionPostCreated message from the specified reader or buffer, length delimited.
|
|
97915
|
+
* @function decodeDelimited
|
|
97916
|
+
* @memberof DiscussionPostCreated
|
|
97917
|
+
* @static
|
|
97918
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
97919
|
+
* @returns {DiscussionPostCreated} DiscussionPostCreated
|
|
97920
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
97921
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
97922
|
+
*/
|
|
97923
|
+
DiscussionPostCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
97924
|
+
if (!(reader instanceof $Reader))
|
|
97925
|
+
reader = new $Reader(reader);
|
|
97926
|
+
return this.decode(reader, reader.uint32());
|
|
97927
|
+
};
|
|
97928
|
+
|
|
97929
|
+
/**
|
|
97930
|
+
* Verifies a DiscussionPostCreated message.
|
|
97931
|
+
* @function verify
|
|
97932
|
+
* @memberof DiscussionPostCreated
|
|
97933
|
+
* @static
|
|
97934
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
97935
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
97936
|
+
*/
|
|
97937
|
+
DiscussionPostCreated.verify = function verify(message) {
|
|
97938
|
+
if (typeof message !== "object" || message === null)
|
|
97939
|
+
return "object expected";
|
|
97940
|
+
if (message.post != null && message.hasOwnProperty("post")) {
|
|
97941
|
+
var error = $root.DiscussionPost.verify(message.post);
|
|
97942
|
+
if (error)
|
|
97943
|
+
return "post." + error;
|
|
97944
|
+
}
|
|
97945
|
+
return null;
|
|
97946
|
+
};
|
|
97947
|
+
|
|
97948
|
+
/**
|
|
97949
|
+
* Creates a DiscussionPostCreated message from a plain object. Also converts values to their respective internal types.
|
|
97950
|
+
* @function fromObject
|
|
97951
|
+
* @memberof DiscussionPostCreated
|
|
97952
|
+
* @static
|
|
97953
|
+
* @param {Object.<string,*>} object Plain object
|
|
97954
|
+
* @returns {DiscussionPostCreated} DiscussionPostCreated
|
|
97955
|
+
*/
|
|
97956
|
+
DiscussionPostCreated.fromObject = function fromObject(object) {
|
|
97957
|
+
if (object instanceof $root.DiscussionPostCreated)
|
|
97958
|
+
return object;
|
|
97959
|
+
var message = new $root.DiscussionPostCreated();
|
|
97960
|
+
if (object.post != null) {
|
|
97961
|
+
if (typeof object.post !== "object")
|
|
97962
|
+
throw TypeError(".DiscussionPostCreated.post: object expected");
|
|
97963
|
+
message.post = $root.DiscussionPost.fromObject(object.post);
|
|
97964
|
+
}
|
|
97965
|
+
return message;
|
|
97966
|
+
};
|
|
97967
|
+
|
|
97968
|
+
/**
|
|
97969
|
+
* Creates a plain object from a DiscussionPostCreated message. Also converts values to other types if specified.
|
|
97970
|
+
* @function toObject
|
|
97971
|
+
* @memberof DiscussionPostCreated
|
|
97972
|
+
* @static
|
|
97973
|
+
* @param {DiscussionPostCreated} message DiscussionPostCreated
|
|
97974
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
97975
|
+
* @returns {Object.<string,*>} Plain object
|
|
97976
|
+
*/
|
|
97977
|
+
DiscussionPostCreated.toObject = function toObject(message, options) {
|
|
97978
|
+
if (!options)
|
|
97979
|
+
options = {};
|
|
97980
|
+
var object = {};
|
|
97981
|
+
if (options.defaults)
|
|
97982
|
+
object.post = null;
|
|
97983
|
+
if (message.post != null && message.hasOwnProperty("post"))
|
|
97984
|
+
object.post = $root.DiscussionPost.toObject(message.post, options);
|
|
97985
|
+
return object;
|
|
97986
|
+
};
|
|
97987
|
+
|
|
97988
|
+
/**
|
|
97989
|
+
* Converts this DiscussionPostCreated to JSON.
|
|
97990
|
+
* @function toJSON
|
|
97991
|
+
* @memberof DiscussionPostCreated
|
|
97992
|
+
* @instance
|
|
97993
|
+
* @returns {Object.<string,*>} JSON object
|
|
97994
|
+
*/
|
|
97995
|
+
DiscussionPostCreated.prototype.toJSON = function toJSON() {
|
|
97996
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
97997
|
+
};
|
|
97998
|
+
|
|
97999
|
+
return DiscussionPostCreated;
|
|
98000
|
+
})();
|
|
98001
|
+
|
|
97507
98002
|
$root.ElfProcessingStarted = (function() {
|
|
97508
98003
|
|
|
97509
98004
|
/**
|
package/package.json
CHANGED