@headspace/protos-events 1.140.0 → 1.141.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 +600 -0
- package/lib/index.js +1766 -246
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -23827,170 +23827,1666 @@ $root.UserPasswordResetCompleted = (function() {
|
|
|
23827
23827
|
return UserPasswordResetCompleted;
|
|
23828
23828
|
})();
|
|
23829
23829
|
|
|
23830
|
+
$root.ActivityGroupCreated = (function() {
|
|
23831
|
+
|
|
23832
|
+
/**
|
|
23833
|
+
* Properties of an ActivityGroupCreated.
|
|
23834
|
+
* @exports IActivityGroupCreated
|
|
23835
|
+
* @interface IActivityGroupCreated
|
|
23836
|
+
* @property {string|null} [slug] ActivityGroupCreated slug
|
|
23837
|
+
* @property {Array.<contentful.ISlugReference>|null} [accessGroups] ActivityGroupCreated accessGroups
|
|
23838
|
+
* @property {number|Long|null} [createdAt] ActivityGroupCreated createdAt
|
|
23839
|
+
*/
|
|
23840
|
+
|
|
23841
|
+
/**
|
|
23842
|
+
* Constructs a new ActivityGroupCreated.
|
|
23843
|
+
* @exports ActivityGroupCreated
|
|
23844
|
+
* @classdesc Represents an ActivityGroupCreated.
|
|
23845
|
+
* @implements IActivityGroupCreated
|
|
23846
|
+
* @constructor
|
|
23847
|
+
* @param {IActivityGroupCreated=} [properties] Properties to set
|
|
23848
|
+
*/
|
|
23849
|
+
function ActivityGroupCreated(properties) {
|
|
23850
|
+
this.accessGroups = [];
|
|
23851
|
+
if (properties)
|
|
23852
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
23853
|
+
if (properties[keys[i]] != null)
|
|
23854
|
+
this[keys[i]] = properties[keys[i]];
|
|
23855
|
+
}
|
|
23856
|
+
|
|
23857
|
+
/**
|
|
23858
|
+
* ActivityGroupCreated slug.
|
|
23859
|
+
* @member {string} slug
|
|
23860
|
+
* @memberof ActivityGroupCreated
|
|
23861
|
+
* @instance
|
|
23862
|
+
*/
|
|
23863
|
+
ActivityGroupCreated.prototype.slug = "";
|
|
23864
|
+
|
|
23865
|
+
/**
|
|
23866
|
+
* ActivityGroupCreated accessGroups.
|
|
23867
|
+
* @member {Array.<contentful.ISlugReference>} accessGroups
|
|
23868
|
+
* @memberof ActivityGroupCreated
|
|
23869
|
+
* @instance
|
|
23870
|
+
*/
|
|
23871
|
+
ActivityGroupCreated.prototype.accessGroups = $util.emptyArray;
|
|
23872
|
+
|
|
23873
|
+
/**
|
|
23874
|
+
* ActivityGroupCreated createdAt.
|
|
23875
|
+
* @member {number|Long} createdAt
|
|
23876
|
+
* @memberof ActivityGroupCreated
|
|
23877
|
+
* @instance
|
|
23878
|
+
*/
|
|
23879
|
+
ActivityGroupCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
23880
|
+
|
|
23881
|
+
/**
|
|
23882
|
+
* Creates a new ActivityGroupCreated instance using the specified properties.
|
|
23883
|
+
* @function create
|
|
23884
|
+
* @memberof ActivityGroupCreated
|
|
23885
|
+
* @static
|
|
23886
|
+
* @param {IActivityGroupCreated=} [properties] Properties to set
|
|
23887
|
+
* @returns {ActivityGroupCreated} ActivityGroupCreated instance
|
|
23888
|
+
*/
|
|
23889
|
+
ActivityGroupCreated.create = function create(properties) {
|
|
23890
|
+
return new ActivityGroupCreated(properties);
|
|
23891
|
+
};
|
|
23892
|
+
|
|
23893
|
+
/**
|
|
23894
|
+
* Encodes the specified ActivityGroupCreated message. Does not implicitly {@link ActivityGroupCreated.verify|verify} messages.
|
|
23895
|
+
* @function encode
|
|
23896
|
+
* @memberof ActivityGroupCreated
|
|
23897
|
+
* @static
|
|
23898
|
+
* @param {IActivityGroupCreated} message ActivityGroupCreated message or plain object to encode
|
|
23899
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
23900
|
+
* @returns {$protobuf.Writer} Writer
|
|
23901
|
+
*/
|
|
23902
|
+
ActivityGroupCreated.encode = function encode(message, writer) {
|
|
23903
|
+
if (!writer)
|
|
23904
|
+
writer = $Writer.create();
|
|
23905
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
23906
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
23907
|
+
if (message.accessGroups != null && message.accessGroups.length)
|
|
23908
|
+
for (var i = 0; i < message.accessGroups.length; ++i)
|
|
23909
|
+
$root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
23910
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
23911
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.createdAt);
|
|
23912
|
+
return writer;
|
|
23913
|
+
};
|
|
23914
|
+
|
|
23915
|
+
/**
|
|
23916
|
+
* Encodes the specified ActivityGroupCreated message, length delimited. Does not implicitly {@link ActivityGroupCreated.verify|verify} messages.
|
|
23917
|
+
* @function encodeDelimited
|
|
23918
|
+
* @memberof ActivityGroupCreated
|
|
23919
|
+
* @static
|
|
23920
|
+
* @param {IActivityGroupCreated} message ActivityGroupCreated message or plain object to encode
|
|
23921
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
23922
|
+
* @returns {$protobuf.Writer} Writer
|
|
23923
|
+
*/
|
|
23924
|
+
ActivityGroupCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
23925
|
+
return this.encode(message, writer).ldelim();
|
|
23926
|
+
};
|
|
23927
|
+
|
|
23928
|
+
/**
|
|
23929
|
+
* Decodes an ActivityGroupCreated message from the specified reader or buffer.
|
|
23930
|
+
* @function decode
|
|
23931
|
+
* @memberof ActivityGroupCreated
|
|
23932
|
+
* @static
|
|
23933
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
23934
|
+
* @param {number} [length] Message length if known beforehand
|
|
23935
|
+
* @returns {ActivityGroupCreated} ActivityGroupCreated
|
|
23936
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
23937
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
23938
|
+
*/
|
|
23939
|
+
ActivityGroupCreated.decode = function decode(reader, length) {
|
|
23940
|
+
if (!(reader instanceof $Reader))
|
|
23941
|
+
reader = $Reader.create(reader);
|
|
23942
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ActivityGroupCreated();
|
|
23943
|
+
while (reader.pos < end) {
|
|
23944
|
+
var tag = reader.uint32();
|
|
23945
|
+
switch (tag >>> 3) {
|
|
23946
|
+
case 1:
|
|
23947
|
+
message.slug = reader.string();
|
|
23948
|
+
break;
|
|
23949
|
+
case 2:
|
|
23950
|
+
if (!(message.accessGroups && message.accessGroups.length))
|
|
23951
|
+
message.accessGroups = [];
|
|
23952
|
+
message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
23953
|
+
break;
|
|
23954
|
+
case 3:
|
|
23955
|
+
message.createdAt = reader.uint64();
|
|
23956
|
+
break;
|
|
23957
|
+
default:
|
|
23958
|
+
reader.skipType(tag & 7);
|
|
23959
|
+
break;
|
|
23960
|
+
}
|
|
23961
|
+
}
|
|
23962
|
+
return message;
|
|
23963
|
+
};
|
|
23964
|
+
|
|
23965
|
+
/**
|
|
23966
|
+
* Decodes an ActivityGroupCreated message from the specified reader or buffer, length delimited.
|
|
23967
|
+
* @function decodeDelimited
|
|
23968
|
+
* @memberof ActivityGroupCreated
|
|
23969
|
+
* @static
|
|
23970
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
23971
|
+
* @returns {ActivityGroupCreated} ActivityGroupCreated
|
|
23972
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
23973
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
23974
|
+
*/
|
|
23975
|
+
ActivityGroupCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
23976
|
+
if (!(reader instanceof $Reader))
|
|
23977
|
+
reader = new $Reader(reader);
|
|
23978
|
+
return this.decode(reader, reader.uint32());
|
|
23979
|
+
};
|
|
23980
|
+
|
|
23981
|
+
/**
|
|
23982
|
+
* Verifies an ActivityGroupCreated message.
|
|
23983
|
+
* @function verify
|
|
23984
|
+
* @memberof ActivityGroupCreated
|
|
23985
|
+
* @static
|
|
23986
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
23987
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
23988
|
+
*/
|
|
23989
|
+
ActivityGroupCreated.verify = function verify(message) {
|
|
23990
|
+
if (typeof message !== "object" || message === null)
|
|
23991
|
+
return "object expected";
|
|
23992
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
23993
|
+
if (!$util.isString(message.slug))
|
|
23994
|
+
return "slug: string expected";
|
|
23995
|
+
if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
|
|
23996
|
+
if (!Array.isArray(message.accessGroups))
|
|
23997
|
+
return "accessGroups: array expected";
|
|
23998
|
+
for (var i = 0; i < message.accessGroups.length; ++i) {
|
|
23999
|
+
var error = $root.contentful.SlugReference.verify(message.accessGroups[i]);
|
|
24000
|
+
if (error)
|
|
24001
|
+
return "accessGroups." + error;
|
|
24002
|
+
}
|
|
24003
|
+
}
|
|
24004
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
24005
|
+
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
24006
|
+
return "createdAt: integer|Long expected";
|
|
24007
|
+
return null;
|
|
24008
|
+
};
|
|
24009
|
+
|
|
24010
|
+
/**
|
|
24011
|
+
* Creates an ActivityGroupCreated message from a plain object. Also converts values to their respective internal types.
|
|
24012
|
+
* @function fromObject
|
|
24013
|
+
* @memberof ActivityGroupCreated
|
|
24014
|
+
* @static
|
|
24015
|
+
* @param {Object.<string,*>} object Plain object
|
|
24016
|
+
* @returns {ActivityGroupCreated} ActivityGroupCreated
|
|
24017
|
+
*/
|
|
24018
|
+
ActivityGroupCreated.fromObject = function fromObject(object) {
|
|
24019
|
+
if (object instanceof $root.ActivityGroupCreated)
|
|
24020
|
+
return object;
|
|
24021
|
+
var message = new $root.ActivityGroupCreated();
|
|
24022
|
+
if (object.slug != null)
|
|
24023
|
+
message.slug = String(object.slug);
|
|
24024
|
+
if (object.accessGroups) {
|
|
24025
|
+
if (!Array.isArray(object.accessGroups))
|
|
24026
|
+
throw TypeError(".ActivityGroupCreated.accessGroups: array expected");
|
|
24027
|
+
message.accessGroups = [];
|
|
24028
|
+
for (var i = 0; i < object.accessGroups.length; ++i) {
|
|
24029
|
+
if (typeof object.accessGroups[i] !== "object")
|
|
24030
|
+
throw TypeError(".ActivityGroupCreated.accessGroups: object expected");
|
|
24031
|
+
message.accessGroups[i] = $root.contentful.SlugReference.fromObject(object.accessGroups[i]);
|
|
24032
|
+
}
|
|
24033
|
+
}
|
|
24034
|
+
if (object.createdAt != null)
|
|
24035
|
+
if ($util.Long)
|
|
24036
|
+
(message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
|
|
24037
|
+
else if (typeof object.createdAt === "string")
|
|
24038
|
+
message.createdAt = parseInt(object.createdAt, 10);
|
|
24039
|
+
else if (typeof object.createdAt === "number")
|
|
24040
|
+
message.createdAt = object.createdAt;
|
|
24041
|
+
else if (typeof object.createdAt === "object")
|
|
24042
|
+
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
24043
|
+
return message;
|
|
24044
|
+
};
|
|
24045
|
+
|
|
24046
|
+
/**
|
|
24047
|
+
* Creates a plain object from an ActivityGroupCreated message. Also converts values to other types if specified.
|
|
24048
|
+
* @function toObject
|
|
24049
|
+
* @memberof ActivityGroupCreated
|
|
24050
|
+
* @static
|
|
24051
|
+
* @param {ActivityGroupCreated} message ActivityGroupCreated
|
|
24052
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
24053
|
+
* @returns {Object.<string,*>} Plain object
|
|
24054
|
+
*/
|
|
24055
|
+
ActivityGroupCreated.toObject = function toObject(message, options) {
|
|
24056
|
+
if (!options)
|
|
24057
|
+
options = {};
|
|
24058
|
+
var object = {};
|
|
24059
|
+
if (options.arrays || options.defaults)
|
|
24060
|
+
object.accessGroups = [];
|
|
24061
|
+
if (options.defaults) {
|
|
24062
|
+
object.slug = "";
|
|
24063
|
+
if ($util.Long) {
|
|
24064
|
+
var long = new $util.Long(0, 0, true);
|
|
24065
|
+
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
24066
|
+
} else
|
|
24067
|
+
object.createdAt = options.longs === String ? "0" : 0;
|
|
24068
|
+
}
|
|
24069
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
24070
|
+
object.slug = message.slug;
|
|
24071
|
+
if (message.accessGroups && message.accessGroups.length) {
|
|
24072
|
+
object.accessGroups = [];
|
|
24073
|
+
for (var j = 0; j < message.accessGroups.length; ++j)
|
|
24074
|
+
object.accessGroups[j] = $root.contentful.SlugReference.toObject(message.accessGroups[j], options);
|
|
24075
|
+
}
|
|
24076
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
24077
|
+
if (typeof message.createdAt === "number")
|
|
24078
|
+
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
24079
|
+
else
|
|
24080
|
+
object.createdAt = options.longs === String ? $util.Long.prototype.toString.call(message.createdAt) : options.longs === Number ? new $util.LongBits(message.createdAt.low >>> 0, message.createdAt.high >>> 0).toNumber(true) : message.createdAt;
|
|
24081
|
+
return object;
|
|
24082
|
+
};
|
|
24083
|
+
|
|
24084
|
+
/**
|
|
24085
|
+
* Converts this ActivityGroupCreated to JSON.
|
|
24086
|
+
* @function toJSON
|
|
24087
|
+
* @memberof ActivityGroupCreated
|
|
24088
|
+
* @instance
|
|
24089
|
+
* @returns {Object.<string,*>} JSON object
|
|
24090
|
+
*/
|
|
24091
|
+
ActivityGroupCreated.prototype.toJSON = function toJSON() {
|
|
24092
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
24093
|
+
};
|
|
24094
|
+
|
|
24095
|
+
return ActivityGroupCreated;
|
|
24096
|
+
})();
|
|
24097
|
+
|
|
24098
|
+
$root.ActivityGroupUpdated = (function() {
|
|
24099
|
+
|
|
24100
|
+
/**
|
|
24101
|
+
* Properties of an ActivityGroupUpdated.
|
|
24102
|
+
* @exports IActivityGroupUpdated
|
|
24103
|
+
* @interface IActivityGroupUpdated
|
|
24104
|
+
* @property {string|null} [slug] ActivityGroupUpdated slug
|
|
24105
|
+
* @property {Array.<contentful.ISlugReference>|null} [accessGroups] ActivityGroupUpdated accessGroups
|
|
24106
|
+
* @property {number|Long|null} [updatedAt] ActivityGroupUpdated updatedAt
|
|
24107
|
+
*/
|
|
24108
|
+
|
|
24109
|
+
/**
|
|
24110
|
+
* Constructs a new ActivityGroupUpdated.
|
|
24111
|
+
* @exports ActivityGroupUpdated
|
|
24112
|
+
* @classdesc Represents an ActivityGroupUpdated.
|
|
24113
|
+
* @implements IActivityGroupUpdated
|
|
24114
|
+
* @constructor
|
|
24115
|
+
* @param {IActivityGroupUpdated=} [properties] Properties to set
|
|
24116
|
+
*/
|
|
24117
|
+
function ActivityGroupUpdated(properties) {
|
|
24118
|
+
this.accessGroups = [];
|
|
24119
|
+
if (properties)
|
|
24120
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
24121
|
+
if (properties[keys[i]] != null)
|
|
24122
|
+
this[keys[i]] = properties[keys[i]];
|
|
24123
|
+
}
|
|
24124
|
+
|
|
24125
|
+
/**
|
|
24126
|
+
* ActivityGroupUpdated slug.
|
|
24127
|
+
* @member {string} slug
|
|
24128
|
+
* @memberof ActivityGroupUpdated
|
|
24129
|
+
* @instance
|
|
24130
|
+
*/
|
|
24131
|
+
ActivityGroupUpdated.prototype.slug = "";
|
|
24132
|
+
|
|
24133
|
+
/**
|
|
24134
|
+
* ActivityGroupUpdated accessGroups.
|
|
24135
|
+
* @member {Array.<contentful.ISlugReference>} accessGroups
|
|
24136
|
+
* @memberof ActivityGroupUpdated
|
|
24137
|
+
* @instance
|
|
24138
|
+
*/
|
|
24139
|
+
ActivityGroupUpdated.prototype.accessGroups = $util.emptyArray;
|
|
24140
|
+
|
|
24141
|
+
/**
|
|
24142
|
+
* ActivityGroupUpdated updatedAt.
|
|
24143
|
+
* @member {number|Long} updatedAt
|
|
24144
|
+
* @memberof ActivityGroupUpdated
|
|
24145
|
+
* @instance
|
|
24146
|
+
*/
|
|
24147
|
+
ActivityGroupUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
24148
|
+
|
|
24149
|
+
/**
|
|
24150
|
+
* Creates a new ActivityGroupUpdated instance using the specified properties.
|
|
24151
|
+
* @function create
|
|
24152
|
+
* @memberof ActivityGroupUpdated
|
|
24153
|
+
* @static
|
|
24154
|
+
* @param {IActivityGroupUpdated=} [properties] Properties to set
|
|
24155
|
+
* @returns {ActivityGroupUpdated} ActivityGroupUpdated instance
|
|
24156
|
+
*/
|
|
24157
|
+
ActivityGroupUpdated.create = function create(properties) {
|
|
24158
|
+
return new ActivityGroupUpdated(properties);
|
|
24159
|
+
};
|
|
24160
|
+
|
|
24161
|
+
/**
|
|
24162
|
+
* Encodes the specified ActivityGroupUpdated message. Does not implicitly {@link ActivityGroupUpdated.verify|verify} messages.
|
|
24163
|
+
* @function encode
|
|
24164
|
+
* @memberof ActivityGroupUpdated
|
|
24165
|
+
* @static
|
|
24166
|
+
* @param {IActivityGroupUpdated} message ActivityGroupUpdated message or plain object to encode
|
|
24167
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
24168
|
+
* @returns {$protobuf.Writer} Writer
|
|
24169
|
+
*/
|
|
24170
|
+
ActivityGroupUpdated.encode = function encode(message, writer) {
|
|
24171
|
+
if (!writer)
|
|
24172
|
+
writer = $Writer.create();
|
|
24173
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
24174
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
24175
|
+
if (message.accessGroups != null && message.accessGroups.length)
|
|
24176
|
+
for (var i = 0; i < message.accessGroups.length; ++i)
|
|
24177
|
+
$root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
24178
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
24179
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.updatedAt);
|
|
24180
|
+
return writer;
|
|
24181
|
+
};
|
|
24182
|
+
|
|
24183
|
+
/**
|
|
24184
|
+
* Encodes the specified ActivityGroupUpdated message, length delimited. Does not implicitly {@link ActivityGroupUpdated.verify|verify} messages.
|
|
24185
|
+
* @function encodeDelimited
|
|
24186
|
+
* @memberof ActivityGroupUpdated
|
|
24187
|
+
* @static
|
|
24188
|
+
* @param {IActivityGroupUpdated} message ActivityGroupUpdated message or plain object to encode
|
|
24189
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
24190
|
+
* @returns {$protobuf.Writer} Writer
|
|
24191
|
+
*/
|
|
24192
|
+
ActivityGroupUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
24193
|
+
return this.encode(message, writer).ldelim();
|
|
24194
|
+
};
|
|
24195
|
+
|
|
24196
|
+
/**
|
|
24197
|
+
* Decodes an ActivityGroupUpdated message from the specified reader or buffer.
|
|
24198
|
+
* @function decode
|
|
24199
|
+
* @memberof ActivityGroupUpdated
|
|
24200
|
+
* @static
|
|
24201
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
24202
|
+
* @param {number} [length] Message length if known beforehand
|
|
24203
|
+
* @returns {ActivityGroupUpdated} ActivityGroupUpdated
|
|
24204
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
24205
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
24206
|
+
*/
|
|
24207
|
+
ActivityGroupUpdated.decode = function decode(reader, length) {
|
|
24208
|
+
if (!(reader instanceof $Reader))
|
|
24209
|
+
reader = $Reader.create(reader);
|
|
24210
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ActivityGroupUpdated();
|
|
24211
|
+
while (reader.pos < end) {
|
|
24212
|
+
var tag = reader.uint32();
|
|
24213
|
+
switch (tag >>> 3) {
|
|
24214
|
+
case 1:
|
|
24215
|
+
message.slug = reader.string();
|
|
24216
|
+
break;
|
|
24217
|
+
case 2:
|
|
24218
|
+
if (!(message.accessGroups && message.accessGroups.length))
|
|
24219
|
+
message.accessGroups = [];
|
|
24220
|
+
message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
24221
|
+
break;
|
|
24222
|
+
case 3:
|
|
24223
|
+
message.updatedAt = reader.uint64();
|
|
24224
|
+
break;
|
|
24225
|
+
default:
|
|
24226
|
+
reader.skipType(tag & 7);
|
|
24227
|
+
break;
|
|
24228
|
+
}
|
|
24229
|
+
}
|
|
24230
|
+
return message;
|
|
24231
|
+
};
|
|
24232
|
+
|
|
24233
|
+
/**
|
|
24234
|
+
* Decodes an ActivityGroupUpdated message from the specified reader or buffer, length delimited.
|
|
24235
|
+
* @function decodeDelimited
|
|
24236
|
+
* @memberof ActivityGroupUpdated
|
|
24237
|
+
* @static
|
|
24238
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
24239
|
+
* @returns {ActivityGroupUpdated} ActivityGroupUpdated
|
|
24240
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
24241
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
24242
|
+
*/
|
|
24243
|
+
ActivityGroupUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
24244
|
+
if (!(reader instanceof $Reader))
|
|
24245
|
+
reader = new $Reader(reader);
|
|
24246
|
+
return this.decode(reader, reader.uint32());
|
|
24247
|
+
};
|
|
24248
|
+
|
|
24249
|
+
/**
|
|
24250
|
+
* Verifies an ActivityGroupUpdated message.
|
|
24251
|
+
* @function verify
|
|
24252
|
+
* @memberof ActivityGroupUpdated
|
|
24253
|
+
* @static
|
|
24254
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
24255
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
24256
|
+
*/
|
|
24257
|
+
ActivityGroupUpdated.verify = function verify(message) {
|
|
24258
|
+
if (typeof message !== "object" || message === null)
|
|
24259
|
+
return "object expected";
|
|
24260
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
24261
|
+
if (!$util.isString(message.slug))
|
|
24262
|
+
return "slug: string expected";
|
|
24263
|
+
if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
|
|
24264
|
+
if (!Array.isArray(message.accessGroups))
|
|
24265
|
+
return "accessGroups: array expected";
|
|
24266
|
+
for (var i = 0; i < message.accessGroups.length; ++i) {
|
|
24267
|
+
var error = $root.contentful.SlugReference.verify(message.accessGroups[i]);
|
|
24268
|
+
if (error)
|
|
24269
|
+
return "accessGroups." + error;
|
|
24270
|
+
}
|
|
24271
|
+
}
|
|
24272
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
24273
|
+
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
24274
|
+
return "updatedAt: integer|Long expected";
|
|
24275
|
+
return null;
|
|
24276
|
+
};
|
|
24277
|
+
|
|
24278
|
+
/**
|
|
24279
|
+
* Creates an ActivityGroupUpdated message from a plain object. Also converts values to their respective internal types.
|
|
24280
|
+
* @function fromObject
|
|
24281
|
+
* @memberof ActivityGroupUpdated
|
|
24282
|
+
* @static
|
|
24283
|
+
* @param {Object.<string,*>} object Plain object
|
|
24284
|
+
* @returns {ActivityGroupUpdated} ActivityGroupUpdated
|
|
24285
|
+
*/
|
|
24286
|
+
ActivityGroupUpdated.fromObject = function fromObject(object) {
|
|
24287
|
+
if (object instanceof $root.ActivityGroupUpdated)
|
|
24288
|
+
return object;
|
|
24289
|
+
var message = new $root.ActivityGroupUpdated();
|
|
24290
|
+
if (object.slug != null)
|
|
24291
|
+
message.slug = String(object.slug);
|
|
24292
|
+
if (object.accessGroups) {
|
|
24293
|
+
if (!Array.isArray(object.accessGroups))
|
|
24294
|
+
throw TypeError(".ActivityGroupUpdated.accessGroups: array expected");
|
|
24295
|
+
message.accessGroups = [];
|
|
24296
|
+
for (var i = 0; i < object.accessGroups.length; ++i) {
|
|
24297
|
+
if (typeof object.accessGroups[i] !== "object")
|
|
24298
|
+
throw TypeError(".ActivityGroupUpdated.accessGroups: object expected");
|
|
24299
|
+
message.accessGroups[i] = $root.contentful.SlugReference.fromObject(object.accessGroups[i]);
|
|
24300
|
+
}
|
|
24301
|
+
}
|
|
24302
|
+
if (object.updatedAt != null)
|
|
24303
|
+
if ($util.Long)
|
|
24304
|
+
(message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
|
|
24305
|
+
else if (typeof object.updatedAt === "string")
|
|
24306
|
+
message.updatedAt = parseInt(object.updatedAt, 10);
|
|
24307
|
+
else if (typeof object.updatedAt === "number")
|
|
24308
|
+
message.updatedAt = object.updatedAt;
|
|
24309
|
+
else if (typeof object.updatedAt === "object")
|
|
24310
|
+
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
24311
|
+
return message;
|
|
24312
|
+
};
|
|
24313
|
+
|
|
24314
|
+
/**
|
|
24315
|
+
* Creates a plain object from an ActivityGroupUpdated message. Also converts values to other types if specified.
|
|
24316
|
+
* @function toObject
|
|
24317
|
+
* @memberof ActivityGroupUpdated
|
|
24318
|
+
* @static
|
|
24319
|
+
* @param {ActivityGroupUpdated} message ActivityGroupUpdated
|
|
24320
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
24321
|
+
* @returns {Object.<string,*>} Plain object
|
|
24322
|
+
*/
|
|
24323
|
+
ActivityGroupUpdated.toObject = function toObject(message, options) {
|
|
24324
|
+
if (!options)
|
|
24325
|
+
options = {};
|
|
24326
|
+
var object = {};
|
|
24327
|
+
if (options.arrays || options.defaults)
|
|
24328
|
+
object.accessGroups = [];
|
|
24329
|
+
if (options.defaults) {
|
|
24330
|
+
object.slug = "";
|
|
24331
|
+
if ($util.Long) {
|
|
24332
|
+
var long = new $util.Long(0, 0, true);
|
|
24333
|
+
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
24334
|
+
} else
|
|
24335
|
+
object.updatedAt = options.longs === String ? "0" : 0;
|
|
24336
|
+
}
|
|
24337
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
24338
|
+
object.slug = message.slug;
|
|
24339
|
+
if (message.accessGroups && message.accessGroups.length) {
|
|
24340
|
+
object.accessGroups = [];
|
|
24341
|
+
for (var j = 0; j < message.accessGroups.length; ++j)
|
|
24342
|
+
object.accessGroups[j] = $root.contentful.SlugReference.toObject(message.accessGroups[j], options);
|
|
24343
|
+
}
|
|
24344
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
24345
|
+
if (typeof message.updatedAt === "number")
|
|
24346
|
+
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
24347
|
+
else
|
|
24348
|
+
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;
|
|
24349
|
+
return object;
|
|
24350
|
+
};
|
|
24351
|
+
|
|
24352
|
+
/**
|
|
24353
|
+
* Converts this ActivityGroupUpdated to JSON.
|
|
24354
|
+
* @function toJSON
|
|
24355
|
+
* @memberof ActivityGroupUpdated
|
|
24356
|
+
* @instance
|
|
24357
|
+
* @returns {Object.<string,*>} JSON object
|
|
24358
|
+
*/
|
|
24359
|
+
ActivityGroupUpdated.prototype.toJSON = function toJSON() {
|
|
24360
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
24361
|
+
};
|
|
24362
|
+
|
|
24363
|
+
return ActivityGroupUpdated;
|
|
24364
|
+
})();
|
|
24365
|
+
|
|
24366
|
+
$root.ActivityGroupDeleted = (function() {
|
|
24367
|
+
|
|
24368
|
+
/**
|
|
24369
|
+
* Properties of an ActivityGroupDeleted.
|
|
24370
|
+
* @exports IActivityGroupDeleted
|
|
24371
|
+
* @interface IActivityGroupDeleted
|
|
24372
|
+
* @property {string|null} [slug] ActivityGroupDeleted slug
|
|
24373
|
+
* @property {number|Long|null} [deletedAt] ActivityGroupDeleted deletedAt
|
|
24374
|
+
*/
|
|
24375
|
+
|
|
24376
|
+
/**
|
|
24377
|
+
* Constructs a new ActivityGroupDeleted.
|
|
24378
|
+
* @exports ActivityGroupDeleted
|
|
24379
|
+
* @classdesc Represents an ActivityGroupDeleted.
|
|
24380
|
+
* @implements IActivityGroupDeleted
|
|
24381
|
+
* @constructor
|
|
24382
|
+
* @param {IActivityGroupDeleted=} [properties] Properties to set
|
|
24383
|
+
*/
|
|
24384
|
+
function ActivityGroupDeleted(properties) {
|
|
24385
|
+
if (properties)
|
|
24386
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
24387
|
+
if (properties[keys[i]] != null)
|
|
24388
|
+
this[keys[i]] = properties[keys[i]];
|
|
24389
|
+
}
|
|
24390
|
+
|
|
24391
|
+
/**
|
|
24392
|
+
* ActivityGroupDeleted slug.
|
|
24393
|
+
* @member {string} slug
|
|
24394
|
+
* @memberof ActivityGroupDeleted
|
|
24395
|
+
* @instance
|
|
24396
|
+
*/
|
|
24397
|
+
ActivityGroupDeleted.prototype.slug = "";
|
|
24398
|
+
|
|
24399
|
+
/**
|
|
24400
|
+
* ActivityGroupDeleted deletedAt.
|
|
24401
|
+
* @member {number|Long} deletedAt
|
|
24402
|
+
* @memberof ActivityGroupDeleted
|
|
24403
|
+
* @instance
|
|
24404
|
+
*/
|
|
24405
|
+
ActivityGroupDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
24406
|
+
|
|
24407
|
+
/**
|
|
24408
|
+
* Creates a new ActivityGroupDeleted instance using the specified properties.
|
|
24409
|
+
* @function create
|
|
24410
|
+
* @memberof ActivityGroupDeleted
|
|
24411
|
+
* @static
|
|
24412
|
+
* @param {IActivityGroupDeleted=} [properties] Properties to set
|
|
24413
|
+
* @returns {ActivityGroupDeleted} ActivityGroupDeleted instance
|
|
24414
|
+
*/
|
|
24415
|
+
ActivityGroupDeleted.create = function create(properties) {
|
|
24416
|
+
return new ActivityGroupDeleted(properties);
|
|
24417
|
+
};
|
|
24418
|
+
|
|
24419
|
+
/**
|
|
24420
|
+
* Encodes the specified ActivityGroupDeleted message. Does not implicitly {@link ActivityGroupDeleted.verify|verify} messages.
|
|
24421
|
+
* @function encode
|
|
24422
|
+
* @memberof ActivityGroupDeleted
|
|
24423
|
+
* @static
|
|
24424
|
+
* @param {IActivityGroupDeleted} message ActivityGroupDeleted message or plain object to encode
|
|
24425
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
24426
|
+
* @returns {$protobuf.Writer} Writer
|
|
24427
|
+
*/
|
|
24428
|
+
ActivityGroupDeleted.encode = function encode(message, writer) {
|
|
24429
|
+
if (!writer)
|
|
24430
|
+
writer = $Writer.create();
|
|
24431
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
24432
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
24433
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
24434
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.deletedAt);
|
|
24435
|
+
return writer;
|
|
24436
|
+
};
|
|
24437
|
+
|
|
24438
|
+
/**
|
|
24439
|
+
* Encodes the specified ActivityGroupDeleted message, length delimited. Does not implicitly {@link ActivityGroupDeleted.verify|verify} messages.
|
|
24440
|
+
* @function encodeDelimited
|
|
24441
|
+
* @memberof ActivityGroupDeleted
|
|
24442
|
+
* @static
|
|
24443
|
+
* @param {IActivityGroupDeleted} message ActivityGroupDeleted message or plain object to encode
|
|
24444
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
24445
|
+
* @returns {$protobuf.Writer} Writer
|
|
24446
|
+
*/
|
|
24447
|
+
ActivityGroupDeleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
24448
|
+
return this.encode(message, writer).ldelim();
|
|
24449
|
+
};
|
|
24450
|
+
|
|
24451
|
+
/**
|
|
24452
|
+
* Decodes an ActivityGroupDeleted message from the specified reader or buffer.
|
|
24453
|
+
* @function decode
|
|
24454
|
+
* @memberof ActivityGroupDeleted
|
|
24455
|
+
* @static
|
|
24456
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
24457
|
+
* @param {number} [length] Message length if known beforehand
|
|
24458
|
+
* @returns {ActivityGroupDeleted} ActivityGroupDeleted
|
|
24459
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
24460
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
24461
|
+
*/
|
|
24462
|
+
ActivityGroupDeleted.decode = function decode(reader, length) {
|
|
24463
|
+
if (!(reader instanceof $Reader))
|
|
24464
|
+
reader = $Reader.create(reader);
|
|
24465
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ActivityGroupDeleted();
|
|
24466
|
+
while (reader.pos < end) {
|
|
24467
|
+
var tag = reader.uint32();
|
|
24468
|
+
switch (tag >>> 3) {
|
|
24469
|
+
case 1:
|
|
24470
|
+
message.slug = reader.string();
|
|
24471
|
+
break;
|
|
24472
|
+
case 2:
|
|
24473
|
+
message.deletedAt = reader.uint64();
|
|
24474
|
+
break;
|
|
24475
|
+
default:
|
|
24476
|
+
reader.skipType(tag & 7);
|
|
24477
|
+
break;
|
|
24478
|
+
}
|
|
24479
|
+
}
|
|
24480
|
+
return message;
|
|
24481
|
+
};
|
|
24482
|
+
|
|
24483
|
+
/**
|
|
24484
|
+
* Decodes an ActivityGroupDeleted message from the specified reader or buffer, length delimited.
|
|
24485
|
+
* @function decodeDelimited
|
|
24486
|
+
* @memberof ActivityGroupDeleted
|
|
24487
|
+
* @static
|
|
24488
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
24489
|
+
* @returns {ActivityGroupDeleted} ActivityGroupDeleted
|
|
24490
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
24491
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
24492
|
+
*/
|
|
24493
|
+
ActivityGroupDeleted.decodeDelimited = function decodeDelimited(reader) {
|
|
24494
|
+
if (!(reader instanceof $Reader))
|
|
24495
|
+
reader = new $Reader(reader);
|
|
24496
|
+
return this.decode(reader, reader.uint32());
|
|
24497
|
+
};
|
|
24498
|
+
|
|
24499
|
+
/**
|
|
24500
|
+
* Verifies an ActivityGroupDeleted message.
|
|
24501
|
+
* @function verify
|
|
24502
|
+
* @memberof ActivityGroupDeleted
|
|
24503
|
+
* @static
|
|
24504
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
24505
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
24506
|
+
*/
|
|
24507
|
+
ActivityGroupDeleted.verify = function verify(message) {
|
|
24508
|
+
if (typeof message !== "object" || message === null)
|
|
24509
|
+
return "object expected";
|
|
24510
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
24511
|
+
if (!$util.isString(message.slug))
|
|
24512
|
+
return "slug: string expected";
|
|
24513
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
24514
|
+
if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
|
|
24515
|
+
return "deletedAt: integer|Long expected";
|
|
24516
|
+
return null;
|
|
24517
|
+
};
|
|
24518
|
+
|
|
24519
|
+
/**
|
|
24520
|
+
* Creates an ActivityGroupDeleted message from a plain object. Also converts values to their respective internal types.
|
|
24521
|
+
* @function fromObject
|
|
24522
|
+
* @memberof ActivityGroupDeleted
|
|
24523
|
+
* @static
|
|
24524
|
+
* @param {Object.<string,*>} object Plain object
|
|
24525
|
+
* @returns {ActivityGroupDeleted} ActivityGroupDeleted
|
|
24526
|
+
*/
|
|
24527
|
+
ActivityGroupDeleted.fromObject = function fromObject(object) {
|
|
24528
|
+
if (object instanceof $root.ActivityGroupDeleted)
|
|
24529
|
+
return object;
|
|
24530
|
+
var message = new $root.ActivityGroupDeleted();
|
|
24531
|
+
if (object.slug != null)
|
|
24532
|
+
message.slug = String(object.slug);
|
|
24533
|
+
if (object.deletedAt != null)
|
|
24534
|
+
if ($util.Long)
|
|
24535
|
+
(message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
|
|
24536
|
+
else if (typeof object.deletedAt === "string")
|
|
24537
|
+
message.deletedAt = parseInt(object.deletedAt, 10);
|
|
24538
|
+
else if (typeof object.deletedAt === "number")
|
|
24539
|
+
message.deletedAt = object.deletedAt;
|
|
24540
|
+
else if (typeof object.deletedAt === "object")
|
|
24541
|
+
message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
|
|
24542
|
+
return message;
|
|
24543
|
+
};
|
|
24544
|
+
|
|
24545
|
+
/**
|
|
24546
|
+
* Creates a plain object from an ActivityGroupDeleted message. Also converts values to other types if specified.
|
|
24547
|
+
* @function toObject
|
|
24548
|
+
* @memberof ActivityGroupDeleted
|
|
24549
|
+
* @static
|
|
24550
|
+
* @param {ActivityGroupDeleted} message ActivityGroupDeleted
|
|
24551
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
24552
|
+
* @returns {Object.<string,*>} Plain object
|
|
24553
|
+
*/
|
|
24554
|
+
ActivityGroupDeleted.toObject = function toObject(message, options) {
|
|
24555
|
+
if (!options)
|
|
24556
|
+
options = {};
|
|
24557
|
+
var object = {};
|
|
24558
|
+
if (options.defaults) {
|
|
24559
|
+
object.slug = "";
|
|
24560
|
+
if ($util.Long) {
|
|
24561
|
+
var long = new $util.Long(0, 0, true);
|
|
24562
|
+
object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
24563
|
+
} else
|
|
24564
|
+
object.deletedAt = options.longs === String ? "0" : 0;
|
|
24565
|
+
}
|
|
24566
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
24567
|
+
object.slug = message.slug;
|
|
24568
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
24569
|
+
if (typeof message.deletedAt === "number")
|
|
24570
|
+
object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
|
|
24571
|
+
else
|
|
24572
|
+
object.deletedAt = options.longs === String ? $util.Long.prototype.toString.call(message.deletedAt) : options.longs === Number ? new $util.LongBits(message.deletedAt.low >>> 0, message.deletedAt.high >>> 0).toNumber(true) : message.deletedAt;
|
|
24573
|
+
return object;
|
|
24574
|
+
};
|
|
24575
|
+
|
|
24576
|
+
/**
|
|
24577
|
+
* Converts this ActivityGroupDeleted to JSON.
|
|
24578
|
+
* @function toJSON
|
|
24579
|
+
* @memberof ActivityGroupDeleted
|
|
24580
|
+
* @instance
|
|
24581
|
+
* @returns {Object.<string,*>} JSON object
|
|
24582
|
+
*/
|
|
24583
|
+
ActivityGroupDeleted.prototype.toJSON = function toJSON() {
|
|
24584
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
24585
|
+
};
|
|
24586
|
+
|
|
24587
|
+
return ActivityGroupDeleted;
|
|
24588
|
+
})();
|
|
24589
|
+
|
|
23830
24590
|
$root.CompletedActivity = (function() {
|
|
23831
24591
|
|
|
23832
24592
|
/**
|
|
23833
|
-
* Properties of a CompletedActivity.
|
|
23834
|
-
* @exports ICompletedActivity
|
|
23835
|
-
* @interface ICompletedActivity
|
|
23836
|
-
* @property {string|null} [userId] CompletedActivity userId
|
|
23837
|
-
* @property {number|null} [duration] CompletedActivity duration
|
|
23838
|
-
* @property {number|null} [activityId] CompletedActivity activityId
|
|
23839
|
-
* @property {number|null} [activityVariationId] CompletedActivity activityVariationId
|
|
23840
|
-
* @property {string|null} [completedAtIsoDate] CompletedActivity completedAtIsoDate
|
|
23841
|
-
* @property {boolean|null} [isFirstEdhsCompletion] CompletedActivity isFirstEdhsCompletion
|
|
24593
|
+
* Properties of a CompletedActivity.
|
|
24594
|
+
* @exports ICompletedActivity
|
|
24595
|
+
* @interface ICompletedActivity
|
|
24596
|
+
* @property {string|null} [userId] CompletedActivity userId
|
|
24597
|
+
* @property {number|null} [duration] CompletedActivity duration
|
|
24598
|
+
* @property {number|null} [activityId] CompletedActivity activityId
|
|
24599
|
+
* @property {number|null} [activityVariationId] CompletedActivity activityVariationId
|
|
24600
|
+
* @property {string|null} [completedAtIsoDate] CompletedActivity completedAtIsoDate
|
|
24601
|
+
* @property {boolean|null} [isFirstEdhsCompletion] CompletedActivity isFirstEdhsCompletion
|
|
24602
|
+
*/
|
|
24603
|
+
|
|
24604
|
+
/**
|
|
24605
|
+
* Constructs a new CompletedActivity.
|
|
24606
|
+
* @exports CompletedActivity
|
|
24607
|
+
* @classdesc Represents a CompletedActivity.
|
|
24608
|
+
* @implements ICompletedActivity
|
|
24609
|
+
* @constructor
|
|
24610
|
+
* @param {ICompletedActivity=} [properties] Properties to set
|
|
24611
|
+
*/
|
|
24612
|
+
function CompletedActivity(properties) {
|
|
24613
|
+
if (properties)
|
|
24614
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
24615
|
+
if (properties[keys[i]] != null)
|
|
24616
|
+
this[keys[i]] = properties[keys[i]];
|
|
24617
|
+
}
|
|
24618
|
+
|
|
24619
|
+
/**
|
|
24620
|
+
* CompletedActivity userId.
|
|
24621
|
+
* @member {string} userId
|
|
24622
|
+
* @memberof CompletedActivity
|
|
24623
|
+
* @instance
|
|
24624
|
+
*/
|
|
24625
|
+
CompletedActivity.prototype.userId = "";
|
|
24626
|
+
|
|
24627
|
+
/**
|
|
24628
|
+
* CompletedActivity duration.
|
|
24629
|
+
* @member {number} duration
|
|
24630
|
+
* @memberof CompletedActivity
|
|
24631
|
+
* @instance
|
|
24632
|
+
*/
|
|
24633
|
+
CompletedActivity.prototype.duration = 0;
|
|
24634
|
+
|
|
24635
|
+
/**
|
|
24636
|
+
* CompletedActivity activityId.
|
|
24637
|
+
* @member {number} activityId
|
|
24638
|
+
* @memberof CompletedActivity
|
|
24639
|
+
* @instance
|
|
24640
|
+
*/
|
|
24641
|
+
CompletedActivity.prototype.activityId = 0;
|
|
24642
|
+
|
|
24643
|
+
/**
|
|
24644
|
+
* CompletedActivity activityVariationId.
|
|
24645
|
+
* @member {number} activityVariationId
|
|
24646
|
+
* @memberof CompletedActivity
|
|
24647
|
+
* @instance
|
|
24648
|
+
*/
|
|
24649
|
+
CompletedActivity.prototype.activityVariationId = 0;
|
|
24650
|
+
|
|
24651
|
+
/**
|
|
24652
|
+
* CompletedActivity completedAtIsoDate.
|
|
24653
|
+
* @member {string} completedAtIsoDate
|
|
24654
|
+
* @memberof CompletedActivity
|
|
24655
|
+
* @instance
|
|
24656
|
+
*/
|
|
24657
|
+
CompletedActivity.prototype.completedAtIsoDate = "";
|
|
24658
|
+
|
|
24659
|
+
/**
|
|
24660
|
+
* CompletedActivity isFirstEdhsCompletion.
|
|
24661
|
+
* @member {boolean} isFirstEdhsCompletion
|
|
24662
|
+
* @memberof CompletedActivity
|
|
24663
|
+
* @instance
|
|
24664
|
+
*/
|
|
24665
|
+
CompletedActivity.prototype.isFirstEdhsCompletion = false;
|
|
24666
|
+
|
|
24667
|
+
/**
|
|
24668
|
+
* Creates a new CompletedActivity instance using the specified properties.
|
|
24669
|
+
* @function create
|
|
24670
|
+
* @memberof CompletedActivity
|
|
24671
|
+
* @static
|
|
24672
|
+
* @param {ICompletedActivity=} [properties] Properties to set
|
|
24673
|
+
* @returns {CompletedActivity} CompletedActivity instance
|
|
24674
|
+
*/
|
|
24675
|
+
CompletedActivity.create = function create(properties) {
|
|
24676
|
+
return new CompletedActivity(properties);
|
|
24677
|
+
};
|
|
24678
|
+
|
|
24679
|
+
/**
|
|
24680
|
+
* Encodes the specified CompletedActivity message. Does not implicitly {@link CompletedActivity.verify|verify} messages.
|
|
24681
|
+
* @function encode
|
|
24682
|
+
* @memberof CompletedActivity
|
|
24683
|
+
* @static
|
|
24684
|
+
* @param {ICompletedActivity} message CompletedActivity message or plain object to encode
|
|
24685
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
24686
|
+
* @returns {$protobuf.Writer} Writer
|
|
24687
|
+
*/
|
|
24688
|
+
CompletedActivity.encode = function encode(message, writer) {
|
|
24689
|
+
if (!writer)
|
|
24690
|
+
writer = $Writer.create();
|
|
24691
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
24692
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
|
|
24693
|
+
if (message.duration != null && message.hasOwnProperty("duration"))
|
|
24694
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.duration);
|
|
24695
|
+
if (message.activityId != null && message.hasOwnProperty("activityId"))
|
|
24696
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.activityId);
|
|
24697
|
+
if (message.activityVariationId != null && message.hasOwnProperty("activityVariationId"))
|
|
24698
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.activityVariationId);
|
|
24699
|
+
if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
|
|
24700
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.completedAtIsoDate);
|
|
24701
|
+
if (message.isFirstEdhsCompletion != null && message.hasOwnProperty("isFirstEdhsCompletion"))
|
|
24702
|
+
writer.uint32(/* id 6, wireType 0 =*/48).bool(message.isFirstEdhsCompletion);
|
|
24703
|
+
return writer;
|
|
24704
|
+
};
|
|
24705
|
+
|
|
24706
|
+
/**
|
|
24707
|
+
* Encodes the specified CompletedActivity message, length delimited. Does not implicitly {@link CompletedActivity.verify|verify} messages.
|
|
24708
|
+
* @function encodeDelimited
|
|
24709
|
+
* @memberof CompletedActivity
|
|
24710
|
+
* @static
|
|
24711
|
+
* @param {ICompletedActivity} message CompletedActivity message or plain object to encode
|
|
24712
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
24713
|
+
* @returns {$protobuf.Writer} Writer
|
|
24714
|
+
*/
|
|
24715
|
+
CompletedActivity.encodeDelimited = function encodeDelimited(message, writer) {
|
|
24716
|
+
return this.encode(message, writer).ldelim();
|
|
24717
|
+
};
|
|
24718
|
+
|
|
24719
|
+
/**
|
|
24720
|
+
* Decodes a CompletedActivity message from the specified reader or buffer.
|
|
24721
|
+
* @function decode
|
|
24722
|
+
* @memberof CompletedActivity
|
|
24723
|
+
* @static
|
|
24724
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
24725
|
+
* @param {number} [length] Message length if known beforehand
|
|
24726
|
+
* @returns {CompletedActivity} CompletedActivity
|
|
24727
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
24728
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
24729
|
+
*/
|
|
24730
|
+
CompletedActivity.decode = function decode(reader, length) {
|
|
24731
|
+
if (!(reader instanceof $Reader))
|
|
24732
|
+
reader = $Reader.create(reader);
|
|
24733
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CompletedActivity();
|
|
24734
|
+
while (reader.pos < end) {
|
|
24735
|
+
var tag = reader.uint32();
|
|
24736
|
+
switch (tag >>> 3) {
|
|
24737
|
+
case 1:
|
|
24738
|
+
message.userId = reader.string();
|
|
24739
|
+
break;
|
|
24740
|
+
case 2:
|
|
24741
|
+
message.duration = reader.uint32();
|
|
24742
|
+
break;
|
|
24743
|
+
case 3:
|
|
24744
|
+
message.activityId = reader.uint32();
|
|
24745
|
+
break;
|
|
24746
|
+
case 4:
|
|
24747
|
+
message.activityVariationId = reader.uint32();
|
|
24748
|
+
break;
|
|
24749
|
+
case 5:
|
|
24750
|
+
message.completedAtIsoDate = reader.string();
|
|
24751
|
+
break;
|
|
24752
|
+
case 6:
|
|
24753
|
+
message.isFirstEdhsCompletion = reader.bool();
|
|
24754
|
+
break;
|
|
24755
|
+
default:
|
|
24756
|
+
reader.skipType(tag & 7);
|
|
24757
|
+
break;
|
|
24758
|
+
}
|
|
24759
|
+
}
|
|
24760
|
+
return message;
|
|
24761
|
+
};
|
|
24762
|
+
|
|
24763
|
+
/**
|
|
24764
|
+
* Decodes a CompletedActivity message from the specified reader or buffer, length delimited.
|
|
24765
|
+
* @function decodeDelimited
|
|
24766
|
+
* @memberof CompletedActivity
|
|
24767
|
+
* @static
|
|
24768
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
24769
|
+
* @returns {CompletedActivity} CompletedActivity
|
|
24770
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
24771
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
24772
|
+
*/
|
|
24773
|
+
CompletedActivity.decodeDelimited = function decodeDelimited(reader) {
|
|
24774
|
+
if (!(reader instanceof $Reader))
|
|
24775
|
+
reader = new $Reader(reader);
|
|
24776
|
+
return this.decode(reader, reader.uint32());
|
|
24777
|
+
};
|
|
24778
|
+
|
|
24779
|
+
/**
|
|
24780
|
+
* Verifies a CompletedActivity message.
|
|
24781
|
+
* @function verify
|
|
24782
|
+
* @memberof CompletedActivity
|
|
24783
|
+
* @static
|
|
24784
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
24785
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
24786
|
+
*/
|
|
24787
|
+
CompletedActivity.verify = function verify(message) {
|
|
24788
|
+
if (typeof message !== "object" || message === null)
|
|
24789
|
+
return "object expected";
|
|
24790
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
24791
|
+
if (!$util.isString(message.userId))
|
|
24792
|
+
return "userId: string expected";
|
|
24793
|
+
if (message.duration != null && message.hasOwnProperty("duration"))
|
|
24794
|
+
if (!$util.isInteger(message.duration))
|
|
24795
|
+
return "duration: integer expected";
|
|
24796
|
+
if (message.activityId != null && message.hasOwnProperty("activityId"))
|
|
24797
|
+
if (!$util.isInteger(message.activityId))
|
|
24798
|
+
return "activityId: integer expected";
|
|
24799
|
+
if (message.activityVariationId != null && message.hasOwnProperty("activityVariationId"))
|
|
24800
|
+
if (!$util.isInteger(message.activityVariationId))
|
|
24801
|
+
return "activityVariationId: integer expected";
|
|
24802
|
+
if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
|
|
24803
|
+
if (!$util.isString(message.completedAtIsoDate))
|
|
24804
|
+
return "completedAtIsoDate: string expected";
|
|
24805
|
+
if (message.isFirstEdhsCompletion != null && message.hasOwnProperty("isFirstEdhsCompletion"))
|
|
24806
|
+
if (typeof message.isFirstEdhsCompletion !== "boolean")
|
|
24807
|
+
return "isFirstEdhsCompletion: boolean expected";
|
|
24808
|
+
return null;
|
|
24809
|
+
};
|
|
24810
|
+
|
|
24811
|
+
/**
|
|
24812
|
+
* Creates a CompletedActivity message from a plain object. Also converts values to their respective internal types.
|
|
24813
|
+
* @function fromObject
|
|
24814
|
+
* @memberof CompletedActivity
|
|
24815
|
+
* @static
|
|
24816
|
+
* @param {Object.<string,*>} object Plain object
|
|
24817
|
+
* @returns {CompletedActivity} CompletedActivity
|
|
24818
|
+
*/
|
|
24819
|
+
CompletedActivity.fromObject = function fromObject(object) {
|
|
24820
|
+
if (object instanceof $root.CompletedActivity)
|
|
24821
|
+
return object;
|
|
24822
|
+
var message = new $root.CompletedActivity();
|
|
24823
|
+
if (object.userId != null)
|
|
24824
|
+
message.userId = String(object.userId);
|
|
24825
|
+
if (object.duration != null)
|
|
24826
|
+
message.duration = object.duration >>> 0;
|
|
24827
|
+
if (object.activityId != null)
|
|
24828
|
+
message.activityId = object.activityId >>> 0;
|
|
24829
|
+
if (object.activityVariationId != null)
|
|
24830
|
+
message.activityVariationId = object.activityVariationId >>> 0;
|
|
24831
|
+
if (object.completedAtIsoDate != null)
|
|
24832
|
+
message.completedAtIsoDate = String(object.completedAtIsoDate);
|
|
24833
|
+
if (object.isFirstEdhsCompletion != null)
|
|
24834
|
+
message.isFirstEdhsCompletion = Boolean(object.isFirstEdhsCompletion);
|
|
24835
|
+
return message;
|
|
24836
|
+
};
|
|
24837
|
+
|
|
24838
|
+
/**
|
|
24839
|
+
* Creates a plain object from a CompletedActivity message. Also converts values to other types if specified.
|
|
24840
|
+
* @function toObject
|
|
24841
|
+
* @memberof CompletedActivity
|
|
24842
|
+
* @static
|
|
24843
|
+
* @param {CompletedActivity} message CompletedActivity
|
|
24844
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
24845
|
+
* @returns {Object.<string,*>} Plain object
|
|
24846
|
+
*/
|
|
24847
|
+
CompletedActivity.toObject = function toObject(message, options) {
|
|
24848
|
+
if (!options)
|
|
24849
|
+
options = {};
|
|
24850
|
+
var object = {};
|
|
24851
|
+
if (options.defaults) {
|
|
24852
|
+
object.userId = "";
|
|
24853
|
+
object.duration = 0;
|
|
24854
|
+
object.activityId = 0;
|
|
24855
|
+
object.activityVariationId = 0;
|
|
24856
|
+
object.completedAtIsoDate = "";
|
|
24857
|
+
object.isFirstEdhsCompletion = false;
|
|
24858
|
+
}
|
|
24859
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
24860
|
+
object.userId = message.userId;
|
|
24861
|
+
if (message.duration != null && message.hasOwnProperty("duration"))
|
|
24862
|
+
object.duration = message.duration;
|
|
24863
|
+
if (message.activityId != null && message.hasOwnProperty("activityId"))
|
|
24864
|
+
object.activityId = message.activityId;
|
|
24865
|
+
if (message.activityVariationId != null && message.hasOwnProperty("activityVariationId"))
|
|
24866
|
+
object.activityVariationId = message.activityVariationId;
|
|
24867
|
+
if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
|
|
24868
|
+
object.completedAtIsoDate = message.completedAtIsoDate;
|
|
24869
|
+
if (message.isFirstEdhsCompletion != null && message.hasOwnProperty("isFirstEdhsCompletion"))
|
|
24870
|
+
object.isFirstEdhsCompletion = message.isFirstEdhsCompletion;
|
|
24871
|
+
return object;
|
|
24872
|
+
};
|
|
24873
|
+
|
|
24874
|
+
/**
|
|
24875
|
+
* Converts this CompletedActivity to JSON.
|
|
24876
|
+
* @function toJSON
|
|
24877
|
+
* @memberof CompletedActivity
|
|
24878
|
+
* @instance
|
|
24879
|
+
* @returns {Object.<string,*>} JSON object
|
|
24880
|
+
*/
|
|
24881
|
+
CompletedActivity.prototype.toJSON = function toJSON() {
|
|
24882
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
24883
|
+
};
|
|
24884
|
+
|
|
24885
|
+
return CompletedActivity;
|
|
24886
|
+
})();
|
|
24887
|
+
|
|
24888
|
+
$root.CompletedActivities = (function() {
|
|
24889
|
+
|
|
24890
|
+
/**
|
|
24891
|
+
* Properties of a CompletedActivities.
|
|
24892
|
+
* @exports ICompletedActivities
|
|
24893
|
+
* @interface ICompletedActivities
|
|
24894
|
+
* @property {Array.<ICompletedActivity>|null} [activities] CompletedActivities activities
|
|
24895
|
+
*/
|
|
24896
|
+
|
|
24897
|
+
/**
|
|
24898
|
+
* Constructs a new CompletedActivities.
|
|
24899
|
+
* @exports CompletedActivities
|
|
24900
|
+
* @classdesc Represents a CompletedActivities.
|
|
24901
|
+
* @implements ICompletedActivities
|
|
24902
|
+
* @constructor
|
|
24903
|
+
* @param {ICompletedActivities=} [properties] Properties to set
|
|
24904
|
+
*/
|
|
24905
|
+
function CompletedActivities(properties) {
|
|
24906
|
+
this.activities = [];
|
|
24907
|
+
if (properties)
|
|
24908
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
24909
|
+
if (properties[keys[i]] != null)
|
|
24910
|
+
this[keys[i]] = properties[keys[i]];
|
|
24911
|
+
}
|
|
24912
|
+
|
|
24913
|
+
/**
|
|
24914
|
+
* CompletedActivities activities.
|
|
24915
|
+
* @member {Array.<ICompletedActivity>} activities
|
|
24916
|
+
* @memberof CompletedActivities
|
|
24917
|
+
* @instance
|
|
24918
|
+
*/
|
|
24919
|
+
CompletedActivities.prototype.activities = $util.emptyArray;
|
|
24920
|
+
|
|
24921
|
+
/**
|
|
24922
|
+
* Creates a new CompletedActivities instance using the specified properties.
|
|
24923
|
+
* @function create
|
|
24924
|
+
* @memberof CompletedActivities
|
|
24925
|
+
* @static
|
|
24926
|
+
* @param {ICompletedActivities=} [properties] Properties to set
|
|
24927
|
+
* @returns {CompletedActivities} CompletedActivities instance
|
|
24928
|
+
*/
|
|
24929
|
+
CompletedActivities.create = function create(properties) {
|
|
24930
|
+
return new CompletedActivities(properties);
|
|
24931
|
+
};
|
|
24932
|
+
|
|
24933
|
+
/**
|
|
24934
|
+
* Encodes the specified CompletedActivities message. Does not implicitly {@link CompletedActivities.verify|verify} messages.
|
|
24935
|
+
* @function encode
|
|
24936
|
+
* @memberof CompletedActivities
|
|
24937
|
+
* @static
|
|
24938
|
+
* @param {ICompletedActivities} message CompletedActivities message or plain object to encode
|
|
24939
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
24940
|
+
* @returns {$protobuf.Writer} Writer
|
|
24941
|
+
*/
|
|
24942
|
+
CompletedActivities.encode = function encode(message, writer) {
|
|
24943
|
+
if (!writer)
|
|
24944
|
+
writer = $Writer.create();
|
|
24945
|
+
if (message.activities != null && message.activities.length)
|
|
24946
|
+
for (var i = 0; i < message.activities.length; ++i)
|
|
24947
|
+
$root.CompletedActivity.encode(message.activities[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
24948
|
+
return writer;
|
|
24949
|
+
};
|
|
24950
|
+
|
|
24951
|
+
/**
|
|
24952
|
+
* Encodes the specified CompletedActivities message, length delimited. Does not implicitly {@link CompletedActivities.verify|verify} messages.
|
|
24953
|
+
* @function encodeDelimited
|
|
24954
|
+
* @memberof CompletedActivities
|
|
24955
|
+
* @static
|
|
24956
|
+
* @param {ICompletedActivities} message CompletedActivities message or plain object to encode
|
|
24957
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
24958
|
+
* @returns {$protobuf.Writer} Writer
|
|
24959
|
+
*/
|
|
24960
|
+
CompletedActivities.encodeDelimited = function encodeDelimited(message, writer) {
|
|
24961
|
+
return this.encode(message, writer).ldelim();
|
|
24962
|
+
};
|
|
24963
|
+
|
|
24964
|
+
/**
|
|
24965
|
+
* Decodes a CompletedActivities message from the specified reader or buffer.
|
|
24966
|
+
* @function decode
|
|
24967
|
+
* @memberof CompletedActivities
|
|
24968
|
+
* @static
|
|
24969
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
24970
|
+
* @param {number} [length] Message length if known beforehand
|
|
24971
|
+
* @returns {CompletedActivities} CompletedActivities
|
|
24972
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
24973
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
24974
|
+
*/
|
|
24975
|
+
CompletedActivities.decode = function decode(reader, length) {
|
|
24976
|
+
if (!(reader instanceof $Reader))
|
|
24977
|
+
reader = $Reader.create(reader);
|
|
24978
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CompletedActivities();
|
|
24979
|
+
while (reader.pos < end) {
|
|
24980
|
+
var tag = reader.uint32();
|
|
24981
|
+
switch (tag >>> 3) {
|
|
24982
|
+
case 1:
|
|
24983
|
+
if (!(message.activities && message.activities.length))
|
|
24984
|
+
message.activities = [];
|
|
24985
|
+
message.activities.push($root.CompletedActivity.decode(reader, reader.uint32()));
|
|
24986
|
+
break;
|
|
24987
|
+
default:
|
|
24988
|
+
reader.skipType(tag & 7);
|
|
24989
|
+
break;
|
|
24990
|
+
}
|
|
24991
|
+
}
|
|
24992
|
+
return message;
|
|
24993
|
+
};
|
|
24994
|
+
|
|
24995
|
+
/**
|
|
24996
|
+
* Decodes a CompletedActivities message from the specified reader or buffer, length delimited.
|
|
24997
|
+
* @function decodeDelimited
|
|
24998
|
+
* @memberof CompletedActivities
|
|
24999
|
+
* @static
|
|
25000
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
25001
|
+
* @returns {CompletedActivities} CompletedActivities
|
|
25002
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
25003
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
25004
|
+
*/
|
|
25005
|
+
CompletedActivities.decodeDelimited = function decodeDelimited(reader) {
|
|
25006
|
+
if (!(reader instanceof $Reader))
|
|
25007
|
+
reader = new $Reader(reader);
|
|
25008
|
+
return this.decode(reader, reader.uint32());
|
|
25009
|
+
};
|
|
25010
|
+
|
|
25011
|
+
/**
|
|
25012
|
+
* Verifies a CompletedActivities message.
|
|
25013
|
+
* @function verify
|
|
25014
|
+
* @memberof CompletedActivities
|
|
25015
|
+
* @static
|
|
25016
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
25017
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
25018
|
+
*/
|
|
25019
|
+
CompletedActivities.verify = function verify(message) {
|
|
25020
|
+
if (typeof message !== "object" || message === null)
|
|
25021
|
+
return "object expected";
|
|
25022
|
+
if (message.activities != null && message.hasOwnProperty("activities")) {
|
|
25023
|
+
if (!Array.isArray(message.activities))
|
|
25024
|
+
return "activities: array expected";
|
|
25025
|
+
for (var i = 0; i < message.activities.length; ++i) {
|
|
25026
|
+
var error = $root.CompletedActivity.verify(message.activities[i]);
|
|
25027
|
+
if (error)
|
|
25028
|
+
return "activities." + error;
|
|
25029
|
+
}
|
|
25030
|
+
}
|
|
25031
|
+
return null;
|
|
25032
|
+
};
|
|
25033
|
+
|
|
25034
|
+
/**
|
|
25035
|
+
* Creates a CompletedActivities message from a plain object. Also converts values to their respective internal types.
|
|
25036
|
+
* @function fromObject
|
|
25037
|
+
* @memberof CompletedActivities
|
|
25038
|
+
* @static
|
|
25039
|
+
* @param {Object.<string,*>} object Plain object
|
|
25040
|
+
* @returns {CompletedActivities} CompletedActivities
|
|
25041
|
+
*/
|
|
25042
|
+
CompletedActivities.fromObject = function fromObject(object) {
|
|
25043
|
+
if (object instanceof $root.CompletedActivities)
|
|
25044
|
+
return object;
|
|
25045
|
+
var message = new $root.CompletedActivities();
|
|
25046
|
+
if (object.activities) {
|
|
25047
|
+
if (!Array.isArray(object.activities))
|
|
25048
|
+
throw TypeError(".CompletedActivities.activities: array expected");
|
|
25049
|
+
message.activities = [];
|
|
25050
|
+
for (var i = 0; i < object.activities.length; ++i) {
|
|
25051
|
+
if (typeof object.activities[i] !== "object")
|
|
25052
|
+
throw TypeError(".CompletedActivities.activities: object expected");
|
|
25053
|
+
message.activities[i] = $root.CompletedActivity.fromObject(object.activities[i]);
|
|
25054
|
+
}
|
|
25055
|
+
}
|
|
25056
|
+
return message;
|
|
25057
|
+
};
|
|
25058
|
+
|
|
25059
|
+
/**
|
|
25060
|
+
* Creates a plain object from a CompletedActivities message. Also converts values to other types if specified.
|
|
25061
|
+
* @function toObject
|
|
25062
|
+
* @memberof CompletedActivities
|
|
25063
|
+
* @static
|
|
25064
|
+
* @param {CompletedActivities} message CompletedActivities
|
|
25065
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
25066
|
+
* @returns {Object.<string,*>} Plain object
|
|
25067
|
+
*/
|
|
25068
|
+
CompletedActivities.toObject = function toObject(message, options) {
|
|
25069
|
+
if (!options)
|
|
25070
|
+
options = {};
|
|
25071
|
+
var object = {};
|
|
25072
|
+
if (options.arrays || options.defaults)
|
|
25073
|
+
object.activities = [];
|
|
25074
|
+
if (message.activities && message.activities.length) {
|
|
25075
|
+
object.activities = [];
|
|
25076
|
+
for (var j = 0; j < message.activities.length; ++j)
|
|
25077
|
+
object.activities[j] = $root.CompletedActivity.toObject(message.activities[j], options);
|
|
25078
|
+
}
|
|
25079
|
+
return object;
|
|
25080
|
+
};
|
|
25081
|
+
|
|
25082
|
+
/**
|
|
25083
|
+
* Converts this CompletedActivities to JSON.
|
|
25084
|
+
* @function toJSON
|
|
25085
|
+
* @memberof CompletedActivities
|
|
25086
|
+
* @instance
|
|
25087
|
+
* @returns {Object.<string,*>} JSON object
|
|
25088
|
+
*/
|
|
25089
|
+
CompletedActivities.prototype.toJSON = function toJSON() {
|
|
25090
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
25091
|
+
};
|
|
25092
|
+
|
|
25093
|
+
return CompletedActivities;
|
|
25094
|
+
})();
|
|
25095
|
+
|
|
25096
|
+
$root.ActivityCreated = (function() {
|
|
25097
|
+
|
|
25098
|
+
/**
|
|
25099
|
+
* Properties of an ActivityCreated.
|
|
25100
|
+
* @exports IActivityCreated
|
|
25101
|
+
* @interface IActivityCreated
|
|
25102
|
+
* @property {string|null} [slug] ActivityCreated slug
|
|
25103
|
+
* @property {Array.<contentful.ISlugReference>|null} [accessGroups] ActivityCreated accessGroups
|
|
25104
|
+
* @property {number|Long|null} [createdAt] ActivityCreated createdAt
|
|
25105
|
+
*/
|
|
25106
|
+
|
|
25107
|
+
/**
|
|
25108
|
+
* Constructs a new ActivityCreated.
|
|
25109
|
+
* @exports ActivityCreated
|
|
25110
|
+
* @classdesc Represents an ActivityCreated.
|
|
25111
|
+
* @implements IActivityCreated
|
|
25112
|
+
* @constructor
|
|
25113
|
+
* @param {IActivityCreated=} [properties] Properties to set
|
|
25114
|
+
*/
|
|
25115
|
+
function ActivityCreated(properties) {
|
|
25116
|
+
this.accessGroups = [];
|
|
25117
|
+
if (properties)
|
|
25118
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
25119
|
+
if (properties[keys[i]] != null)
|
|
25120
|
+
this[keys[i]] = properties[keys[i]];
|
|
25121
|
+
}
|
|
25122
|
+
|
|
25123
|
+
/**
|
|
25124
|
+
* ActivityCreated slug.
|
|
25125
|
+
* @member {string} slug
|
|
25126
|
+
* @memberof ActivityCreated
|
|
25127
|
+
* @instance
|
|
25128
|
+
*/
|
|
25129
|
+
ActivityCreated.prototype.slug = "";
|
|
25130
|
+
|
|
25131
|
+
/**
|
|
25132
|
+
* ActivityCreated accessGroups.
|
|
25133
|
+
* @member {Array.<contentful.ISlugReference>} accessGroups
|
|
25134
|
+
* @memberof ActivityCreated
|
|
25135
|
+
* @instance
|
|
25136
|
+
*/
|
|
25137
|
+
ActivityCreated.prototype.accessGroups = $util.emptyArray;
|
|
25138
|
+
|
|
25139
|
+
/**
|
|
25140
|
+
* ActivityCreated createdAt.
|
|
25141
|
+
* @member {number|Long} createdAt
|
|
25142
|
+
* @memberof ActivityCreated
|
|
25143
|
+
* @instance
|
|
25144
|
+
*/
|
|
25145
|
+
ActivityCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
25146
|
+
|
|
25147
|
+
/**
|
|
25148
|
+
* Creates a new ActivityCreated instance using the specified properties.
|
|
25149
|
+
* @function create
|
|
25150
|
+
* @memberof ActivityCreated
|
|
25151
|
+
* @static
|
|
25152
|
+
* @param {IActivityCreated=} [properties] Properties to set
|
|
25153
|
+
* @returns {ActivityCreated} ActivityCreated instance
|
|
25154
|
+
*/
|
|
25155
|
+
ActivityCreated.create = function create(properties) {
|
|
25156
|
+
return new ActivityCreated(properties);
|
|
25157
|
+
};
|
|
25158
|
+
|
|
25159
|
+
/**
|
|
25160
|
+
* Encodes the specified ActivityCreated message. Does not implicitly {@link ActivityCreated.verify|verify} messages.
|
|
25161
|
+
* @function encode
|
|
25162
|
+
* @memberof ActivityCreated
|
|
25163
|
+
* @static
|
|
25164
|
+
* @param {IActivityCreated} message ActivityCreated message or plain object to encode
|
|
25165
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
25166
|
+
* @returns {$protobuf.Writer} Writer
|
|
25167
|
+
*/
|
|
25168
|
+
ActivityCreated.encode = function encode(message, writer) {
|
|
25169
|
+
if (!writer)
|
|
25170
|
+
writer = $Writer.create();
|
|
25171
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
25172
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
25173
|
+
if (message.accessGroups != null && message.accessGroups.length)
|
|
25174
|
+
for (var i = 0; i < message.accessGroups.length; ++i)
|
|
25175
|
+
$root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
25176
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
25177
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.createdAt);
|
|
25178
|
+
return writer;
|
|
25179
|
+
};
|
|
25180
|
+
|
|
25181
|
+
/**
|
|
25182
|
+
* Encodes the specified ActivityCreated message, length delimited. Does not implicitly {@link ActivityCreated.verify|verify} messages.
|
|
25183
|
+
* @function encodeDelimited
|
|
25184
|
+
* @memberof ActivityCreated
|
|
25185
|
+
* @static
|
|
25186
|
+
* @param {IActivityCreated} message ActivityCreated message or plain object to encode
|
|
25187
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
25188
|
+
* @returns {$protobuf.Writer} Writer
|
|
23842
25189
|
*/
|
|
25190
|
+
ActivityCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
25191
|
+
return this.encode(message, writer).ldelim();
|
|
25192
|
+
};
|
|
23843
25193
|
|
|
23844
25194
|
/**
|
|
23845
|
-
*
|
|
23846
|
-
* @
|
|
23847
|
-
* @
|
|
23848
|
-
* @
|
|
23849
|
-
* @
|
|
23850
|
-
* @param {
|
|
25195
|
+
* Decodes an ActivityCreated message from the specified reader or buffer.
|
|
25196
|
+
* @function decode
|
|
25197
|
+
* @memberof ActivityCreated
|
|
25198
|
+
* @static
|
|
25199
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
25200
|
+
* @param {number} [length] Message length if known beforehand
|
|
25201
|
+
* @returns {ActivityCreated} ActivityCreated
|
|
25202
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
25203
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
23851
25204
|
*/
|
|
23852
|
-
function
|
|
23853
|
-
if (
|
|
23854
|
-
|
|
23855
|
-
|
|
23856
|
-
|
|
23857
|
-
|
|
25205
|
+
ActivityCreated.decode = function decode(reader, length) {
|
|
25206
|
+
if (!(reader instanceof $Reader))
|
|
25207
|
+
reader = $Reader.create(reader);
|
|
25208
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ActivityCreated();
|
|
25209
|
+
while (reader.pos < end) {
|
|
25210
|
+
var tag = reader.uint32();
|
|
25211
|
+
switch (tag >>> 3) {
|
|
25212
|
+
case 1:
|
|
25213
|
+
message.slug = reader.string();
|
|
25214
|
+
break;
|
|
25215
|
+
case 2:
|
|
25216
|
+
if (!(message.accessGroups && message.accessGroups.length))
|
|
25217
|
+
message.accessGroups = [];
|
|
25218
|
+
message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
25219
|
+
break;
|
|
25220
|
+
case 3:
|
|
25221
|
+
message.createdAt = reader.uint64();
|
|
25222
|
+
break;
|
|
25223
|
+
default:
|
|
25224
|
+
reader.skipType(tag & 7);
|
|
25225
|
+
break;
|
|
25226
|
+
}
|
|
25227
|
+
}
|
|
25228
|
+
return message;
|
|
25229
|
+
};
|
|
23858
25230
|
|
|
23859
25231
|
/**
|
|
23860
|
-
*
|
|
23861
|
-
* @
|
|
23862
|
-
* @memberof
|
|
23863
|
-
* @
|
|
25232
|
+
* Decodes an ActivityCreated message from the specified reader or buffer, length delimited.
|
|
25233
|
+
* @function decodeDelimited
|
|
25234
|
+
* @memberof ActivityCreated
|
|
25235
|
+
* @static
|
|
25236
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
25237
|
+
* @returns {ActivityCreated} ActivityCreated
|
|
25238
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
25239
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
23864
25240
|
*/
|
|
23865
|
-
|
|
25241
|
+
ActivityCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
25242
|
+
if (!(reader instanceof $Reader))
|
|
25243
|
+
reader = new $Reader(reader);
|
|
25244
|
+
return this.decode(reader, reader.uint32());
|
|
25245
|
+
};
|
|
23866
25246
|
|
|
23867
25247
|
/**
|
|
23868
|
-
*
|
|
23869
|
-
* @
|
|
23870
|
-
* @memberof
|
|
23871
|
-
* @
|
|
25248
|
+
* Verifies an ActivityCreated message.
|
|
25249
|
+
* @function verify
|
|
25250
|
+
* @memberof ActivityCreated
|
|
25251
|
+
* @static
|
|
25252
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
25253
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
23872
25254
|
*/
|
|
23873
|
-
|
|
25255
|
+
ActivityCreated.verify = function verify(message) {
|
|
25256
|
+
if (typeof message !== "object" || message === null)
|
|
25257
|
+
return "object expected";
|
|
25258
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
25259
|
+
if (!$util.isString(message.slug))
|
|
25260
|
+
return "slug: string expected";
|
|
25261
|
+
if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
|
|
25262
|
+
if (!Array.isArray(message.accessGroups))
|
|
25263
|
+
return "accessGroups: array expected";
|
|
25264
|
+
for (var i = 0; i < message.accessGroups.length; ++i) {
|
|
25265
|
+
var error = $root.contentful.SlugReference.verify(message.accessGroups[i]);
|
|
25266
|
+
if (error)
|
|
25267
|
+
return "accessGroups." + error;
|
|
25268
|
+
}
|
|
25269
|
+
}
|
|
25270
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
25271
|
+
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
25272
|
+
return "createdAt: integer|Long expected";
|
|
25273
|
+
return null;
|
|
25274
|
+
};
|
|
23874
25275
|
|
|
23875
25276
|
/**
|
|
23876
|
-
*
|
|
23877
|
-
* @
|
|
23878
|
-
* @memberof
|
|
25277
|
+
* Creates an ActivityCreated message from a plain object. Also converts values to their respective internal types.
|
|
25278
|
+
* @function fromObject
|
|
25279
|
+
* @memberof ActivityCreated
|
|
25280
|
+
* @static
|
|
25281
|
+
* @param {Object.<string,*>} object Plain object
|
|
25282
|
+
* @returns {ActivityCreated} ActivityCreated
|
|
25283
|
+
*/
|
|
25284
|
+
ActivityCreated.fromObject = function fromObject(object) {
|
|
25285
|
+
if (object instanceof $root.ActivityCreated)
|
|
25286
|
+
return object;
|
|
25287
|
+
var message = new $root.ActivityCreated();
|
|
25288
|
+
if (object.slug != null)
|
|
25289
|
+
message.slug = String(object.slug);
|
|
25290
|
+
if (object.accessGroups) {
|
|
25291
|
+
if (!Array.isArray(object.accessGroups))
|
|
25292
|
+
throw TypeError(".ActivityCreated.accessGroups: array expected");
|
|
25293
|
+
message.accessGroups = [];
|
|
25294
|
+
for (var i = 0; i < object.accessGroups.length; ++i) {
|
|
25295
|
+
if (typeof object.accessGroups[i] !== "object")
|
|
25296
|
+
throw TypeError(".ActivityCreated.accessGroups: object expected");
|
|
25297
|
+
message.accessGroups[i] = $root.contentful.SlugReference.fromObject(object.accessGroups[i]);
|
|
25298
|
+
}
|
|
25299
|
+
}
|
|
25300
|
+
if (object.createdAt != null)
|
|
25301
|
+
if ($util.Long)
|
|
25302
|
+
(message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
|
|
25303
|
+
else if (typeof object.createdAt === "string")
|
|
25304
|
+
message.createdAt = parseInt(object.createdAt, 10);
|
|
25305
|
+
else if (typeof object.createdAt === "number")
|
|
25306
|
+
message.createdAt = object.createdAt;
|
|
25307
|
+
else if (typeof object.createdAt === "object")
|
|
25308
|
+
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
25309
|
+
return message;
|
|
25310
|
+
};
|
|
25311
|
+
|
|
25312
|
+
/**
|
|
25313
|
+
* Creates a plain object from an ActivityCreated message. Also converts values to other types if specified.
|
|
25314
|
+
* @function toObject
|
|
25315
|
+
* @memberof ActivityCreated
|
|
25316
|
+
* @static
|
|
25317
|
+
* @param {ActivityCreated} message ActivityCreated
|
|
25318
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
25319
|
+
* @returns {Object.<string,*>} Plain object
|
|
25320
|
+
*/
|
|
25321
|
+
ActivityCreated.toObject = function toObject(message, options) {
|
|
25322
|
+
if (!options)
|
|
25323
|
+
options = {};
|
|
25324
|
+
var object = {};
|
|
25325
|
+
if (options.arrays || options.defaults)
|
|
25326
|
+
object.accessGroups = [];
|
|
25327
|
+
if (options.defaults) {
|
|
25328
|
+
object.slug = "";
|
|
25329
|
+
if ($util.Long) {
|
|
25330
|
+
var long = new $util.Long(0, 0, true);
|
|
25331
|
+
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
25332
|
+
} else
|
|
25333
|
+
object.createdAt = options.longs === String ? "0" : 0;
|
|
25334
|
+
}
|
|
25335
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
25336
|
+
object.slug = message.slug;
|
|
25337
|
+
if (message.accessGroups && message.accessGroups.length) {
|
|
25338
|
+
object.accessGroups = [];
|
|
25339
|
+
for (var j = 0; j < message.accessGroups.length; ++j)
|
|
25340
|
+
object.accessGroups[j] = $root.contentful.SlugReference.toObject(message.accessGroups[j], options);
|
|
25341
|
+
}
|
|
25342
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
25343
|
+
if (typeof message.createdAt === "number")
|
|
25344
|
+
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
25345
|
+
else
|
|
25346
|
+
object.createdAt = options.longs === String ? $util.Long.prototype.toString.call(message.createdAt) : options.longs === Number ? new $util.LongBits(message.createdAt.low >>> 0, message.createdAt.high >>> 0).toNumber(true) : message.createdAt;
|
|
25347
|
+
return object;
|
|
25348
|
+
};
|
|
25349
|
+
|
|
25350
|
+
/**
|
|
25351
|
+
* Converts this ActivityCreated to JSON.
|
|
25352
|
+
* @function toJSON
|
|
25353
|
+
* @memberof ActivityCreated
|
|
23879
25354
|
* @instance
|
|
25355
|
+
* @returns {Object.<string,*>} JSON object
|
|
23880
25356
|
*/
|
|
23881
|
-
|
|
25357
|
+
ActivityCreated.prototype.toJSON = function toJSON() {
|
|
25358
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
25359
|
+
};
|
|
25360
|
+
|
|
25361
|
+
return ActivityCreated;
|
|
25362
|
+
})();
|
|
25363
|
+
|
|
25364
|
+
$root.ActivityUpdated = (function() {
|
|
23882
25365
|
|
|
23883
25366
|
/**
|
|
23884
|
-
*
|
|
23885
|
-
* @
|
|
23886
|
-
* @
|
|
25367
|
+
* Properties of an ActivityUpdated.
|
|
25368
|
+
* @exports IActivityUpdated
|
|
25369
|
+
* @interface IActivityUpdated
|
|
25370
|
+
* @property {string|null} [slug] ActivityUpdated slug
|
|
25371
|
+
* @property {Array.<contentful.ISlugReference>|null} [accessGroups] ActivityUpdated accessGroups
|
|
25372
|
+
* @property {number|Long|null} [updatedAt] ActivityUpdated updatedAt
|
|
25373
|
+
*/
|
|
25374
|
+
|
|
25375
|
+
/**
|
|
25376
|
+
* Constructs a new ActivityUpdated.
|
|
25377
|
+
* @exports ActivityUpdated
|
|
25378
|
+
* @classdesc Represents an ActivityUpdated.
|
|
25379
|
+
* @implements IActivityUpdated
|
|
25380
|
+
* @constructor
|
|
25381
|
+
* @param {IActivityUpdated=} [properties] Properties to set
|
|
25382
|
+
*/
|
|
25383
|
+
function ActivityUpdated(properties) {
|
|
25384
|
+
this.accessGroups = [];
|
|
25385
|
+
if (properties)
|
|
25386
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
25387
|
+
if (properties[keys[i]] != null)
|
|
25388
|
+
this[keys[i]] = properties[keys[i]];
|
|
25389
|
+
}
|
|
25390
|
+
|
|
25391
|
+
/**
|
|
25392
|
+
* ActivityUpdated slug.
|
|
25393
|
+
* @member {string} slug
|
|
25394
|
+
* @memberof ActivityUpdated
|
|
23887
25395
|
* @instance
|
|
23888
25396
|
*/
|
|
23889
|
-
|
|
25397
|
+
ActivityUpdated.prototype.slug = "";
|
|
23890
25398
|
|
|
23891
25399
|
/**
|
|
23892
|
-
*
|
|
23893
|
-
* @member {
|
|
23894
|
-
* @memberof
|
|
25400
|
+
* ActivityUpdated accessGroups.
|
|
25401
|
+
* @member {Array.<contentful.ISlugReference>} accessGroups
|
|
25402
|
+
* @memberof ActivityUpdated
|
|
23895
25403
|
* @instance
|
|
23896
25404
|
*/
|
|
23897
|
-
|
|
25405
|
+
ActivityUpdated.prototype.accessGroups = $util.emptyArray;
|
|
23898
25406
|
|
|
23899
25407
|
/**
|
|
23900
|
-
*
|
|
23901
|
-
* @member {
|
|
23902
|
-
* @memberof
|
|
25408
|
+
* ActivityUpdated updatedAt.
|
|
25409
|
+
* @member {number|Long} updatedAt
|
|
25410
|
+
* @memberof ActivityUpdated
|
|
23903
25411
|
* @instance
|
|
23904
25412
|
*/
|
|
23905
|
-
|
|
25413
|
+
ActivityUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
23906
25414
|
|
|
23907
25415
|
/**
|
|
23908
|
-
* Creates a new
|
|
25416
|
+
* Creates a new ActivityUpdated instance using the specified properties.
|
|
23909
25417
|
* @function create
|
|
23910
|
-
* @memberof
|
|
25418
|
+
* @memberof ActivityUpdated
|
|
23911
25419
|
* @static
|
|
23912
|
-
* @param {
|
|
23913
|
-
* @returns {
|
|
25420
|
+
* @param {IActivityUpdated=} [properties] Properties to set
|
|
25421
|
+
* @returns {ActivityUpdated} ActivityUpdated instance
|
|
23914
25422
|
*/
|
|
23915
|
-
|
|
23916
|
-
return new
|
|
25423
|
+
ActivityUpdated.create = function create(properties) {
|
|
25424
|
+
return new ActivityUpdated(properties);
|
|
23917
25425
|
};
|
|
23918
25426
|
|
|
23919
25427
|
/**
|
|
23920
|
-
* Encodes the specified
|
|
25428
|
+
* Encodes the specified ActivityUpdated message. Does not implicitly {@link ActivityUpdated.verify|verify} messages.
|
|
23921
25429
|
* @function encode
|
|
23922
|
-
* @memberof
|
|
25430
|
+
* @memberof ActivityUpdated
|
|
23923
25431
|
* @static
|
|
23924
|
-
* @param {
|
|
25432
|
+
* @param {IActivityUpdated} message ActivityUpdated message or plain object to encode
|
|
23925
25433
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
23926
25434
|
* @returns {$protobuf.Writer} Writer
|
|
23927
25435
|
*/
|
|
23928
|
-
|
|
25436
|
+
ActivityUpdated.encode = function encode(message, writer) {
|
|
23929
25437
|
if (!writer)
|
|
23930
25438
|
writer = $Writer.create();
|
|
23931
|
-
if (message.
|
|
23932
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.
|
|
23933
|
-
if (message.
|
|
23934
|
-
|
|
23935
|
-
|
|
23936
|
-
|
|
23937
|
-
|
|
23938
|
-
writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.activityVariationId);
|
|
23939
|
-
if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
|
|
23940
|
-
writer.uint32(/* id 5, wireType 2 =*/42).string(message.completedAtIsoDate);
|
|
23941
|
-
if (message.isFirstEdhsCompletion != null && message.hasOwnProperty("isFirstEdhsCompletion"))
|
|
23942
|
-
writer.uint32(/* id 6, wireType 0 =*/48).bool(message.isFirstEdhsCompletion);
|
|
25439
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
25440
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
25441
|
+
if (message.accessGroups != null && message.accessGroups.length)
|
|
25442
|
+
for (var i = 0; i < message.accessGroups.length; ++i)
|
|
25443
|
+
$root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
25444
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
25445
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.updatedAt);
|
|
23943
25446
|
return writer;
|
|
23944
25447
|
};
|
|
23945
25448
|
|
|
23946
25449
|
/**
|
|
23947
|
-
* Encodes the specified
|
|
25450
|
+
* Encodes the specified ActivityUpdated message, length delimited. Does not implicitly {@link ActivityUpdated.verify|verify} messages.
|
|
23948
25451
|
* @function encodeDelimited
|
|
23949
|
-
* @memberof
|
|
25452
|
+
* @memberof ActivityUpdated
|
|
23950
25453
|
* @static
|
|
23951
|
-
* @param {
|
|
25454
|
+
* @param {IActivityUpdated} message ActivityUpdated message or plain object to encode
|
|
23952
25455
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
23953
25456
|
* @returns {$protobuf.Writer} Writer
|
|
23954
25457
|
*/
|
|
23955
|
-
|
|
25458
|
+
ActivityUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
23956
25459
|
return this.encode(message, writer).ldelim();
|
|
23957
25460
|
};
|
|
23958
25461
|
|
|
23959
25462
|
/**
|
|
23960
|
-
* Decodes
|
|
25463
|
+
* Decodes an ActivityUpdated message from the specified reader or buffer.
|
|
23961
25464
|
* @function decode
|
|
23962
|
-
* @memberof
|
|
25465
|
+
* @memberof ActivityUpdated
|
|
23963
25466
|
* @static
|
|
23964
25467
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
23965
25468
|
* @param {number} [length] Message length if known beforehand
|
|
23966
|
-
* @returns {
|
|
25469
|
+
* @returns {ActivityUpdated} ActivityUpdated
|
|
23967
25470
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
23968
25471
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
23969
25472
|
*/
|
|
23970
|
-
|
|
25473
|
+
ActivityUpdated.decode = function decode(reader, length) {
|
|
23971
25474
|
if (!(reader instanceof $Reader))
|
|
23972
25475
|
reader = $Reader.create(reader);
|
|
23973
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.
|
|
25476
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ActivityUpdated();
|
|
23974
25477
|
while (reader.pos < end) {
|
|
23975
25478
|
var tag = reader.uint32();
|
|
23976
25479
|
switch (tag >>> 3) {
|
|
23977
25480
|
case 1:
|
|
23978
|
-
message.
|
|
25481
|
+
message.slug = reader.string();
|
|
23979
25482
|
break;
|
|
23980
25483
|
case 2:
|
|
23981
|
-
message.
|
|
25484
|
+
if (!(message.accessGroups && message.accessGroups.length))
|
|
25485
|
+
message.accessGroups = [];
|
|
25486
|
+
message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
23982
25487
|
break;
|
|
23983
25488
|
case 3:
|
|
23984
|
-
message.
|
|
23985
|
-
break;
|
|
23986
|
-
case 4:
|
|
23987
|
-
message.activityVariationId = reader.uint32();
|
|
23988
|
-
break;
|
|
23989
|
-
case 5:
|
|
23990
|
-
message.completedAtIsoDate = reader.string();
|
|
23991
|
-
break;
|
|
23992
|
-
case 6:
|
|
23993
|
-
message.isFirstEdhsCompletion = reader.bool();
|
|
25489
|
+
message.updatedAt = reader.uint64();
|
|
23994
25490
|
break;
|
|
23995
25491
|
default:
|
|
23996
25492
|
reader.skipType(tag & 7);
|
|
@@ -24001,149 +25497,157 @@ $root.CompletedActivity = (function() {
|
|
|
24001
25497
|
};
|
|
24002
25498
|
|
|
24003
25499
|
/**
|
|
24004
|
-
* Decodes
|
|
25500
|
+
* Decodes an ActivityUpdated message from the specified reader or buffer, length delimited.
|
|
24005
25501
|
* @function decodeDelimited
|
|
24006
|
-
* @memberof
|
|
25502
|
+
* @memberof ActivityUpdated
|
|
24007
25503
|
* @static
|
|
24008
25504
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
24009
|
-
* @returns {
|
|
25505
|
+
* @returns {ActivityUpdated} ActivityUpdated
|
|
24010
25506
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
24011
25507
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
24012
25508
|
*/
|
|
24013
|
-
|
|
25509
|
+
ActivityUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
24014
25510
|
if (!(reader instanceof $Reader))
|
|
24015
25511
|
reader = new $Reader(reader);
|
|
24016
25512
|
return this.decode(reader, reader.uint32());
|
|
24017
25513
|
};
|
|
24018
25514
|
|
|
24019
25515
|
/**
|
|
24020
|
-
* Verifies
|
|
25516
|
+
* Verifies an ActivityUpdated message.
|
|
24021
25517
|
* @function verify
|
|
24022
|
-
* @memberof
|
|
25518
|
+
* @memberof ActivityUpdated
|
|
24023
25519
|
* @static
|
|
24024
25520
|
* @param {Object.<string,*>} message Plain object to verify
|
|
24025
25521
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
24026
25522
|
*/
|
|
24027
|
-
|
|
25523
|
+
ActivityUpdated.verify = function verify(message) {
|
|
24028
25524
|
if (typeof message !== "object" || message === null)
|
|
24029
25525
|
return "object expected";
|
|
24030
|
-
if (message.
|
|
24031
|
-
if (!$util.isString(message.
|
|
24032
|
-
return "
|
|
24033
|
-
if (message.
|
|
24034
|
-
if (
|
|
24035
|
-
return "
|
|
24036
|
-
|
|
24037
|
-
|
|
24038
|
-
|
|
24039
|
-
|
|
24040
|
-
|
|
24041
|
-
|
|
24042
|
-
if (message.
|
|
24043
|
-
if (!$util.
|
|
24044
|
-
return "
|
|
24045
|
-
if (message.isFirstEdhsCompletion != null && message.hasOwnProperty("isFirstEdhsCompletion"))
|
|
24046
|
-
if (typeof message.isFirstEdhsCompletion !== "boolean")
|
|
24047
|
-
return "isFirstEdhsCompletion: boolean expected";
|
|
25526
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
25527
|
+
if (!$util.isString(message.slug))
|
|
25528
|
+
return "slug: string expected";
|
|
25529
|
+
if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
|
|
25530
|
+
if (!Array.isArray(message.accessGroups))
|
|
25531
|
+
return "accessGroups: array expected";
|
|
25532
|
+
for (var i = 0; i < message.accessGroups.length; ++i) {
|
|
25533
|
+
var error = $root.contentful.SlugReference.verify(message.accessGroups[i]);
|
|
25534
|
+
if (error)
|
|
25535
|
+
return "accessGroups." + error;
|
|
25536
|
+
}
|
|
25537
|
+
}
|
|
25538
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
25539
|
+
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
25540
|
+
return "updatedAt: integer|Long expected";
|
|
24048
25541
|
return null;
|
|
24049
25542
|
};
|
|
24050
25543
|
|
|
24051
25544
|
/**
|
|
24052
|
-
* Creates
|
|
25545
|
+
* Creates an ActivityUpdated message from a plain object. Also converts values to their respective internal types.
|
|
24053
25546
|
* @function fromObject
|
|
24054
|
-
* @memberof
|
|
25547
|
+
* @memberof ActivityUpdated
|
|
24055
25548
|
* @static
|
|
24056
25549
|
* @param {Object.<string,*>} object Plain object
|
|
24057
|
-
* @returns {
|
|
25550
|
+
* @returns {ActivityUpdated} ActivityUpdated
|
|
24058
25551
|
*/
|
|
24059
|
-
|
|
24060
|
-
if (object instanceof $root.
|
|
25552
|
+
ActivityUpdated.fromObject = function fromObject(object) {
|
|
25553
|
+
if (object instanceof $root.ActivityUpdated)
|
|
24061
25554
|
return object;
|
|
24062
|
-
var message = new $root.
|
|
24063
|
-
if (object.
|
|
24064
|
-
message.
|
|
24065
|
-
if (object.
|
|
24066
|
-
|
|
24067
|
-
|
|
24068
|
-
message.
|
|
24069
|
-
|
|
24070
|
-
|
|
24071
|
-
|
|
24072
|
-
|
|
24073
|
-
|
|
24074
|
-
|
|
25555
|
+
var message = new $root.ActivityUpdated();
|
|
25556
|
+
if (object.slug != null)
|
|
25557
|
+
message.slug = String(object.slug);
|
|
25558
|
+
if (object.accessGroups) {
|
|
25559
|
+
if (!Array.isArray(object.accessGroups))
|
|
25560
|
+
throw TypeError(".ActivityUpdated.accessGroups: array expected");
|
|
25561
|
+
message.accessGroups = [];
|
|
25562
|
+
for (var i = 0; i < object.accessGroups.length; ++i) {
|
|
25563
|
+
if (typeof object.accessGroups[i] !== "object")
|
|
25564
|
+
throw TypeError(".ActivityUpdated.accessGroups: object expected");
|
|
25565
|
+
message.accessGroups[i] = $root.contentful.SlugReference.fromObject(object.accessGroups[i]);
|
|
25566
|
+
}
|
|
25567
|
+
}
|
|
25568
|
+
if (object.updatedAt != null)
|
|
25569
|
+
if ($util.Long)
|
|
25570
|
+
(message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
|
|
25571
|
+
else if (typeof object.updatedAt === "string")
|
|
25572
|
+
message.updatedAt = parseInt(object.updatedAt, 10);
|
|
25573
|
+
else if (typeof object.updatedAt === "number")
|
|
25574
|
+
message.updatedAt = object.updatedAt;
|
|
25575
|
+
else if (typeof object.updatedAt === "object")
|
|
25576
|
+
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
24075
25577
|
return message;
|
|
24076
25578
|
};
|
|
24077
25579
|
|
|
24078
25580
|
/**
|
|
24079
|
-
* Creates a plain object from
|
|
25581
|
+
* Creates a plain object from an ActivityUpdated message. Also converts values to other types if specified.
|
|
24080
25582
|
* @function toObject
|
|
24081
|
-
* @memberof
|
|
25583
|
+
* @memberof ActivityUpdated
|
|
24082
25584
|
* @static
|
|
24083
|
-
* @param {
|
|
25585
|
+
* @param {ActivityUpdated} message ActivityUpdated
|
|
24084
25586
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
24085
25587
|
* @returns {Object.<string,*>} Plain object
|
|
24086
25588
|
*/
|
|
24087
|
-
|
|
25589
|
+
ActivityUpdated.toObject = function toObject(message, options) {
|
|
24088
25590
|
if (!options)
|
|
24089
25591
|
options = {};
|
|
24090
25592
|
var object = {};
|
|
25593
|
+
if (options.arrays || options.defaults)
|
|
25594
|
+
object.accessGroups = [];
|
|
24091
25595
|
if (options.defaults) {
|
|
24092
|
-
object.
|
|
24093
|
-
|
|
24094
|
-
|
|
24095
|
-
|
|
24096
|
-
|
|
24097
|
-
|
|
25596
|
+
object.slug = "";
|
|
25597
|
+
if ($util.Long) {
|
|
25598
|
+
var long = new $util.Long(0, 0, true);
|
|
25599
|
+
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
25600
|
+
} else
|
|
25601
|
+
object.updatedAt = options.longs === String ? "0" : 0;
|
|
24098
25602
|
}
|
|
24099
|
-
if (message.
|
|
24100
|
-
object.
|
|
24101
|
-
if (message.
|
|
24102
|
-
object.
|
|
24103
|
-
|
|
24104
|
-
|
|
24105
|
-
|
|
24106
|
-
|
|
24107
|
-
|
|
24108
|
-
|
|
24109
|
-
|
|
24110
|
-
|
|
25603
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
25604
|
+
object.slug = message.slug;
|
|
25605
|
+
if (message.accessGroups && message.accessGroups.length) {
|
|
25606
|
+
object.accessGroups = [];
|
|
25607
|
+
for (var j = 0; j < message.accessGroups.length; ++j)
|
|
25608
|
+
object.accessGroups[j] = $root.contentful.SlugReference.toObject(message.accessGroups[j], options);
|
|
25609
|
+
}
|
|
25610
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
25611
|
+
if (typeof message.updatedAt === "number")
|
|
25612
|
+
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
25613
|
+
else
|
|
25614
|
+
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;
|
|
24111
25615
|
return object;
|
|
24112
25616
|
};
|
|
24113
25617
|
|
|
24114
25618
|
/**
|
|
24115
|
-
* Converts this
|
|
25619
|
+
* Converts this ActivityUpdated to JSON.
|
|
24116
25620
|
* @function toJSON
|
|
24117
|
-
* @memberof
|
|
25621
|
+
* @memberof ActivityUpdated
|
|
24118
25622
|
* @instance
|
|
24119
25623
|
* @returns {Object.<string,*>} JSON object
|
|
24120
25624
|
*/
|
|
24121
|
-
|
|
25625
|
+
ActivityUpdated.prototype.toJSON = function toJSON() {
|
|
24122
25626
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
24123
25627
|
};
|
|
24124
25628
|
|
|
24125
|
-
return
|
|
25629
|
+
return ActivityUpdated;
|
|
24126
25630
|
})();
|
|
24127
25631
|
|
|
24128
|
-
$root.
|
|
25632
|
+
$root.ActivityDeleted = (function() {
|
|
24129
25633
|
|
|
24130
25634
|
/**
|
|
24131
|
-
* Properties of
|
|
24132
|
-
* @exports
|
|
24133
|
-
* @interface
|
|
24134
|
-
* @property {
|
|
25635
|
+
* Properties of an ActivityDeleted.
|
|
25636
|
+
* @exports IActivityDeleted
|
|
25637
|
+
* @interface IActivityDeleted
|
|
25638
|
+
* @property {string|null} [slug] ActivityDeleted slug
|
|
25639
|
+
* @property {number|Long|null} [deletedAt] ActivityDeleted deletedAt
|
|
24135
25640
|
*/
|
|
24136
25641
|
|
|
24137
25642
|
/**
|
|
24138
|
-
* Constructs a new
|
|
24139
|
-
* @exports
|
|
24140
|
-
* @classdesc Represents
|
|
24141
|
-
* @implements
|
|
25643
|
+
* Constructs a new ActivityDeleted.
|
|
25644
|
+
* @exports ActivityDeleted
|
|
25645
|
+
* @classdesc Represents an ActivityDeleted.
|
|
25646
|
+
* @implements IActivityDeleted
|
|
24142
25647
|
* @constructor
|
|
24143
|
-
* @param {
|
|
25648
|
+
* @param {IActivityDeleted=} [properties] Properties to set
|
|
24144
25649
|
*/
|
|
24145
|
-
function
|
|
24146
|
-
this.activities = [];
|
|
25650
|
+
function ActivityDeleted(properties) {
|
|
24147
25651
|
if (properties)
|
|
24148
25652
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
24149
25653
|
if (properties[keys[i]] != null)
|
|
@@ -24151,78 +25655,88 @@ $root.CompletedActivities = (function() {
|
|
|
24151
25655
|
}
|
|
24152
25656
|
|
|
24153
25657
|
/**
|
|
24154
|
-
*
|
|
24155
|
-
* @member {
|
|
24156
|
-
* @memberof
|
|
25658
|
+
* ActivityDeleted slug.
|
|
25659
|
+
* @member {string} slug
|
|
25660
|
+
* @memberof ActivityDeleted
|
|
24157
25661
|
* @instance
|
|
24158
25662
|
*/
|
|
24159
|
-
|
|
25663
|
+
ActivityDeleted.prototype.slug = "";
|
|
24160
25664
|
|
|
24161
25665
|
/**
|
|
24162
|
-
*
|
|
25666
|
+
* ActivityDeleted deletedAt.
|
|
25667
|
+
* @member {number|Long} deletedAt
|
|
25668
|
+
* @memberof ActivityDeleted
|
|
25669
|
+
* @instance
|
|
25670
|
+
*/
|
|
25671
|
+
ActivityDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
25672
|
+
|
|
25673
|
+
/**
|
|
25674
|
+
* Creates a new ActivityDeleted instance using the specified properties.
|
|
24163
25675
|
* @function create
|
|
24164
|
-
* @memberof
|
|
25676
|
+
* @memberof ActivityDeleted
|
|
24165
25677
|
* @static
|
|
24166
|
-
* @param {
|
|
24167
|
-
* @returns {
|
|
25678
|
+
* @param {IActivityDeleted=} [properties] Properties to set
|
|
25679
|
+
* @returns {ActivityDeleted} ActivityDeleted instance
|
|
24168
25680
|
*/
|
|
24169
|
-
|
|
24170
|
-
return new
|
|
25681
|
+
ActivityDeleted.create = function create(properties) {
|
|
25682
|
+
return new ActivityDeleted(properties);
|
|
24171
25683
|
};
|
|
24172
25684
|
|
|
24173
25685
|
/**
|
|
24174
|
-
* Encodes the specified
|
|
25686
|
+
* Encodes the specified ActivityDeleted message. Does not implicitly {@link ActivityDeleted.verify|verify} messages.
|
|
24175
25687
|
* @function encode
|
|
24176
|
-
* @memberof
|
|
25688
|
+
* @memberof ActivityDeleted
|
|
24177
25689
|
* @static
|
|
24178
|
-
* @param {
|
|
25690
|
+
* @param {IActivityDeleted} message ActivityDeleted message or plain object to encode
|
|
24179
25691
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
24180
25692
|
* @returns {$protobuf.Writer} Writer
|
|
24181
25693
|
*/
|
|
24182
|
-
|
|
25694
|
+
ActivityDeleted.encode = function encode(message, writer) {
|
|
24183
25695
|
if (!writer)
|
|
24184
25696
|
writer = $Writer.create();
|
|
24185
|
-
if (message.
|
|
24186
|
-
|
|
24187
|
-
|
|
25697
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
25698
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
25699
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
25700
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.deletedAt);
|
|
24188
25701
|
return writer;
|
|
24189
25702
|
};
|
|
24190
25703
|
|
|
24191
25704
|
/**
|
|
24192
|
-
* Encodes the specified
|
|
25705
|
+
* Encodes the specified ActivityDeleted message, length delimited. Does not implicitly {@link ActivityDeleted.verify|verify} messages.
|
|
24193
25706
|
* @function encodeDelimited
|
|
24194
|
-
* @memberof
|
|
25707
|
+
* @memberof ActivityDeleted
|
|
24195
25708
|
* @static
|
|
24196
|
-
* @param {
|
|
25709
|
+
* @param {IActivityDeleted} message ActivityDeleted message or plain object to encode
|
|
24197
25710
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
24198
25711
|
* @returns {$protobuf.Writer} Writer
|
|
24199
25712
|
*/
|
|
24200
|
-
|
|
25713
|
+
ActivityDeleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
24201
25714
|
return this.encode(message, writer).ldelim();
|
|
24202
25715
|
};
|
|
24203
25716
|
|
|
24204
25717
|
/**
|
|
24205
|
-
* Decodes
|
|
25718
|
+
* Decodes an ActivityDeleted message from the specified reader or buffer.
|
|
24206
25719
|
* @function decode
|
|
24207
|
-
* @memberof
|
|
25720
|
+
* @memberof ActivityDeleted
|
|
24208
25721
|
* @static
|
|
24209
25722
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
24210
25723
|
* @param {number} [length] Message length if known beforehand
|
|
24211
|
-
* @returns {
|
|
25724
|
+
* @returns {ActivityDeleted} ActivityDeleted
|
|
24212
25725
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
24213
25726
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
24214
25727
|
*/
|
|
24215
|
-
|
|
25728
|
+
ActivityDeleted.decode = function decode(reader, length) {
|
|
24216
25729
|
if (!(reader instanceof $Reader))
|
|
24217
25730
|
reader = $Reader.create(reader);
|
|
24218
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.
|
|
25731
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ActivityDeleted();
|
|
24219
25732
|
while (reader.pos < end) {
|
|
24220
25733
|
var tag = reader.uint32();
|
|
24221
25734
|
switch (tag >>> 3) {
|
|
24222
25735
|
case 1:
|
|
24223
|
-
|
|
24224
|
-
|
|
24225
|
-
|
|
25736
|
+
message.slug = reader.string();
|
|
25737
|
+
break;
|
|
25738
|
+
case 2:
|
|
25739
|
+
message.deletedAt = reader.uint64();
|
|
24226
25740
|
break;
|
|
24227
25741
|
default:
|
|
24228
25742
|
reader.skipType(tag & 7);
|
|
@@ -24233,104 +25747,110 @@ $root.CompletedActivities = (function() {
|
|
|
24233
25747
|
};
|
|
24234
25748
|
|
|
24235
25749
|
/**
|
|
24236
|
-
* Decodes
|
|
25750
|
+
* Decodes an ActivityDeleted message from the specified reader or buffer, length delimited.
|
|
24237
25751
|
* @function decodeDelimited
|
|
24238
|
-
* @memberof
|
|
25752
|
+
* @memberof ActivityDeleted
|
|
24239
25753
|
* @static
|
|
24240
25754
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
24241
|
-
* @returns {
|
|
25755
|
+
* @returns {ActivityDeleted} ActivityDeleted
|
|
24242
25756
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
24243
25757
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
24244
25758
|
*/
|
|
24245
|
-
|
|
25759
|
+
ActivityDeleted.decodeDelimited = function decodeDelimited(reader) {
|
|
24246
25760
|
if (!(reader instanceof $Reader))
|
|
24247
25761
|
reader = new $Reader(reader);
|
|
24248
25762
|
return this.decode(reader, reader.uint32());
|
|
24249
25763
|
};
|
|
24250
25764
|
|
|
24251
25765
|
/**
|
|
24252
|
-
* Verifies
|
|
25766
|
+
* Verifies an ActivityDeleted message.
|
|
24253
25767
|
* @function verify
|
|
24254
|
-
* @memberof
|
|
25768
|
+
* @memberof ActivityDeleted
|
|
24255
25769
|
* @static
|
|
24256
25770
|
* @param {Object.<string,*>} message Plain object to verify
|
|
24257
25771
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
24258
25772
|
*/
|
|
24259
|
-
|
|
25773
|
+
ActivityDeleted.verify = function verify(message) {
|
|
24260
25774
|
if (typeof message !== "object" || message === null)
|
|
24261
25775
|
return "object expected";
|
|
24262
|
-
if (message.
|
|
24263
|
-
if (
|
|
24264
|
-
return "
|
|
24265
|
-
|
|
24266
|
-
|
|
24267
|
-
|
|
24268
|
-
return "activities." + error;
|
|
24269
|
-
}
|
|
24270
|
-
}
|
|
25776
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
25777
|
+
if (!$util.isString(message.slug))
|
|
25778
|
+
return "slug: string expected";
|
|
25779
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
25780
|
+
if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
|
|
25781
|
+
return "deletedAt: integer|Long expected";
|
|
24271
25782
|
return null;
|
|
24272
25783
|
};
|
|
24273
25784
|
|
|
24274
25785
|
/**
|
|
24275
|
-
* Creates
|
|
25786
|
+
* Creates an ActivityDeleted message from a plain object. Also converts values to their respective internal types.
|
|
24276
25787
|
* @function fromObject
|
|
24277
|
-
* @memberof
|
|
25788
|
+
* @memberof ActivityDeleted
|
|
24278
25789
|
* @static
|
|
24279
25790
|
* @param {Object.<string,*>} object Plain object
|
|
24280
|
-
* @returns {
|
|
25791
|
+
* @returns {ActivityDeleted} ActivityDeleted
|
|
24281
25792
|
*/
|
|
24282
|
-
|
|
24283
|
-
if (object instanceof $root.
|
|
25793
|
+
ActivityDeleted.fromObject = function fromObject(object) {
|
|
25794
|
+
if (object instanceof $root.ActivityDeleted)
|
|
24284
25795
|
return object;
|
|
24285
|
-
var message = new $root.
|
|
24286
|
-
if (object.
|
|
24287
|
-
|
|
24288
|
-
|
|
24289
|
-
|
|
24290
|
-
|
|
24291
|
-
|
|
24292
|
-
|
|
24293
|
-
|
|
24294
|
-
|
|
24295
|
-
|
|
25796
|
+
var message = new $root.ActivityDeleted();
|
|
25797
|
+
if (object.slug != null)
|
|
25798
|
+
message.slug = String(object.slug);
|
|
25799
|
+
if (object.deletedAt != null)
|
|
25800
|
+
if ($util.Long)
|
|
25801
|
+
(message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
|
|
25802
|
+
else if (typeof object.deletedAt === "string")
|
|
25803
|
+
message.deletedAt = parseInt(object.deletedAt, 10);
|
|
25804
|
+
else if (typeof object.deletedAt === "number")
|
|
25805
|
+
message.deletedAt = object.deletedAt;
|
|
25806
|
+
else if (typeof object.deletedAt === "object")
|
|
25807
|
+
message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
|
|
24296
25808
|
return message;
|
|
24297
25809
|
};
|
|
24298
25810
|
|
|
24299
25811
|
/**
|
|
24300
|
-
* Creates a plain object from
|
|
25812
|
+
* Creates a plain object from an ActivityDeleted message. Also converts values to other types if specified.
|
|
24301
25813
|
* @function toObject
|
|
24302
|
-
* @memberof
|
|
25814
|
+
* @memberof ActivityDeleted
|
|
24303
25815
|
* @static
|
|
24304
|
-
* @param {
|
|
25816
|
+
* @param {ActivityDeleted} message ActivityDeleted
|
|
24305
25817
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
24306
25818
|
* @returns {Object.<string,*>} Plain object
|
|
24307
25819
|
*/
|
|
24308
|
-
|
|
25820
|
+
ActivityDeleted.toObject = function toObject(message, options) {
|
|
24309
25821
|
if (!options)
|
|
24310
25822
|
options = {};
|
|
24311
25823
|
var object = {};
|
|
24312
|
-
if (options.
|
|
24313
|
-
object.
|
|
24314
|
-
|
|
24315
|
-
|
|
24316
|
-
|
|
24317
|
-
|
|
25824
|
+
if (options.defaults) {
|
|
25825
|
+
object.slug = "";
|
|
25826
|
+
if ($util.Long) {
|
|
25827
|
+
var long = new $util.Long(0, 0, true);
|
|
25828
|
+
object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
25829
|
+
} else
|
|
25830
|
+
object.deletedAt = options.longs === String ? "0" : 0;
|
|
24318
25831
|
}
|
|
25832
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
25833
|
+
object.slug = message.slug;
|
|
25834
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
25835
|
+
if (typeof message.deletedAt === "number")
|
|
25836
|
+
object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
|
|
25837
|
+
else
|
|
25838
|
+
object.deletedAt = options.longs === String ? $util.Long.prototype.toString.call(message.deletedAt) : options.longs === Number ? new $util.LongBits(message.deletedAt.low >>> 0, message.deletedAt.high >>> 0).toNumber(true) : message.deletedAt;
|
|
24319
25839
|
return object;
|
|
24320
25840
|
};
|
|
24321
25841
|
|
|
24322
25842
|
/**
|
|
24323
|
-
* Converts this
|
|
25843
|
+
* Converts this ActivityDeleted to JSON.
|
|
24324
25844
|
* @function toJSON
|
|
24325
|
-
* @memberof
|
|
25845
|
+
* @memberof ActivityDeleted
|
|
24326
25846
|
* @instance
|
|
24327
25847
|
* @returns {Object.<string,*>} JSON object
|
|
24328
25848
|
*/
|
|
24329
|
-
|
|
25849
|
+
ActivityDeleted.prototype.toJSON = function toJSON() {
|
|
24330
25850
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
24331
25851
|
};
|
|
24332
25852
|
|
|
24333
|
-
return
|
|
25853
|
+
return ActivityDeleted;
|
|
24334
25854
|
})();
|
|
24335
25855
|
|
|
24336
25856
|
$root.ContentPlayed = (function() {
|