@headspace/protos-events 1.128.0 → 1.129.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 +300 -0
- package/lib/index.js +760 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -7013,6 +7013,306 @@ export class ContentPlayedMetadata implements IContentPlayedMetadata {
|
|
|
7013
7013
|
public toJSON(): { [k: string]: any };
|
|
7014
7014
|
}
|
|
7015
7015
|
|
|
7016
|
+
/** Properties of a TopicCreated. */
|
|
7017
|
+
export interface ITopicCreated {
|
|
7018
|
+
|
|
7019
|
+
/** TopicCreated slug */
|
|
7020
|
+
slug?: (string|null);
|
|
7021
|
+
|
|
7022
|
+
/** TopicCreated accessGroups */
|
|
7023
|
+
accessGroups?: (contentful.ISlugReference[]|null);
|
|
7024
|
+
|
|
7025
|
+
/** TopicCreated createdAt */
|
|
7026
|
+
createdAt?: (number|Long|null);
|
|
7027
|
+
}
|
|
7028
|
+
|
|
7029
|
+
/** Represents a TopicCreated. */
|
|
7030
|
+
export class TopicCreated implements ITopicCreated {
|
|
7031
|
+
|
|
7032
|
+
/**
|
|
7033
|
+
* Constructs a new TopicCreated.
|
|
7034
|
+
* @param [properties] Properties to set
|
|
7035
|
+
*/
|
|
7036
|
+
constructor(properties?: ITopicCreated);
|
|
7037
|
+
|
|
7038
|
+
/** TopicCreated slug. */
|
|
7039
|
+
public slug: string;
|
|
7040
|
+
|
|
7041
|
+
/** TopicCreated accessGroups. */
|
|
7042
|
+
public accessGroups: contentful.ISlugReference[];
|
|
7043
|
+
|
|
7044
|
+
/** TopicCreated createdAt. */
|
|
7045
|
+
public createdAt: (number|Long);
|
|
7046
|
+
|
|
7047
|
+
/**
|
|
7048
|
+
* Creates a new TopicCreated instance using the specified properties.
|
|
7049
|
+
* @param [properties] Properties to set
|
|
7050
|
+
* @returns TopicCreated instance
|
|
7051
|
+
*/
|
|
7052
|
+
public static create(properties?: ITopicCreated): TopicCreated;
|
|
7053
|
+
|
|
7054
|
+
/**
|
|
7055
|
+
* Encodes the specified TopicCreated message. Does not implicitly {@link TopicCreated.verify|verify} messages.
|
|
7056
|
+
* @param message TopicCreated message or plain object to encode
|
|
7057
|
+
* @param [writer] Writer to encode to
|
|
7058
|
+
* @returns Writer
|
|
7059
|
+
*/
|
|
7060
|
+
public static encode(message: ITopicCreated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
7061
|
+
|
|
7062
|
+
/**
|
|
7063
|
+
* Encodes the specified TopicCreated message, length delimited. Does not implicitly {@link TopicCreated.verify|verify} messages.
|
|
7064
|
+
* @param message TopicCreated message or plain object to encode
|
|
7065
|
+
* @param [writer] Writer to encode to
|
|
7066
|
+
* @returns Writer
|
|
7067
|
+
*/
|
|
7068
|
+
public static encodeDelimited(message: ITopicCreated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
7069
|
+
|
|
7070
|
+
/**
|
|
7071
|
+
* Decodes a TopicCreated message from the specified reader or buffer.
|
|
7072
|
+
* @param reader Reader or buffer to decode from
|
|
7073
|
+
* @param [length] Message length if known beforehand
|
|
7074
|
+
* @returns TopicCreated
|
|
7075
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7076
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7077
|
+
*/
|
|
7078
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TopicCreated;
|
|
7079
|
+
|
|
7080
|
+
/**
|
|
7081
|
+
* Decodes a TopicCreated message from the specified reader or buffer, length delimited.
|
|
7082
|
+
* @param reader Reader or buffer to decode from
|
|
7083
|
+
* @returns TopicCreated
|
|
7084
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7085
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7086
|
+
*/
|
|
7087
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): TopicCreated;
|
|
7088
|
+
|
|
7089
|
+
/**
|
|
7090
|
+
* Verifies a TopicCreated message.
|
|
7091
|
+
* @param message Plain object to verify
|
|
7092
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
7093
|
+
*/
|
|
7094
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
7095
|
+
|
|
7096
|
+
/**
|
|
7097
|
+
* Creates a TopicCreated message from a plain object. Also converts values to their respective internal types.
|
|
7098
|
+
* @param object Plain object
|
|
7099
|
+
* @returns TopicCreated
|
|
7100
|
+
*/
|
|
7101
|
+
public static fromObject(object: { [k: string]: any }): TopicCreated;
|
|
7102
|
+
|
|
7103
|
+
/**
|
|
7104
|
+
* Creates a plain object from a TopicCreated message. Also converts values to other types if specified.
|
|
7105
|
+
* @param message TopicCreated
|
|
7106
|
+
* @param [options] Conversion options
|
|
7107
|
+
* @returns Plain object
|
|
7108
|
+
*/
|
|
7109
|
+
public static toObject(message: TopicCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
7110
|
+
|
|
7111
|
+
/**
|
|
7112
|
+
* Converts this TopicCreated to JSON.
|
|
7113
|
+
* @returns JSON object
|
|
7114
|
+
*/
|
|
7115
|
+
public toJSON(): { [k: string]: any };
|
|
7116
|
+
}
|
|
7117
|
+
|
|
7118
|
+
/** Properties of a TopicUpdated. */
|
|
7119
|
+
export interface ITopicUpdated {
|
|
7120
|
+
|
|
7121
|
+
/** TopicUpdated slug */
|
|
7122
|
+
slug?: (string|null);
|
|
7123
|
+
|
|
7124
|
+
/** TopicUpdated accessGroups */
|
|
7125
|
+
accessGroups?: (contentful.ISlugReference[]|null);
|
|
7126
|
+
|
|
7127
|
+
/** TopicUpdated updatedAt */
|
|
7128
|
+
updatedAt?: (number|Long|null);
|
|
7129
|
+
}
|
|
7130
|
+
|
|
7131
|
+
/** Represents a TopicUpdated. */
|
|
7132
|
+
export class TopicUpdated implements ITopicUpdated {
|
|
7133
|
+
|
|
7134
|
+
/**
|
|
7135
|
+
* Constructs a new TopicUpdated.
|
|
7136
|
+
* @param [properties] Properties to set
|
|
7137
|
+
*/
|
|
7138
|
+
constructor(properties?: ITopicUpdated);
|
|
7139
|
+
|
|
7140
|
+
/** TopicUpdated slug. */
|
|
7141
|
+
public slug: string;
|
|
7142
|
+
|
|
7143
|
+
/** TopicUpdated accessGroups. */
|
|
7144
|
+
public accessGroups: contentful.ISlugReference[];
|
|
7145
|
+
|
|
7146
|
+
/** TopicUpdated updatedAt. */
|
|
7147
|
+
public updatedAt: (number|Long);
|
|
7148
|
+
|
|
7149
|
+
/**
|
|
7150
|
+
* Creates a new TopicUpdated instance using the specified properties.
|
|
7151
|
+
* @param [properties] Properties to set
|
|
7152
|
+
* @returns TopicUpdated instance
|
|
7153
|
+
*/
|
|
7154
|
+
public static create(properties?: ITopicUpdated): TopicUpdated;
|
|
7155
|
+
|
|
7156
|
+
/**
|
|
7157
|
+
* Encodes the specified TopicUpdated message. Does not implicitly {@link TopicUpdated.verify|verify} messages.
|
|
7158
|
+
* @param message TopicUpdated message or plain object to encode
|
|
7159
|
+
* @param [writer] Writer to encode to
|
|
7160
|
+
* @returns Writer
|
|
7161
|
+
*/
|
|
7162
|
+
public static encode(message: ITopicUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
7163
|
+
|
|
7164
|
+
/**
|
|
7165
|
+
* Encodes the specified TopicUpdated message, length delimited. Does not implicitly {@link TopicUpdated.verify|verify} messages.
|
|
7166
|
+
* @param message TopicUpdated message or plain object to encode
|
|
7167
|
+
* @param [writer] Writer to encode to
|
|
7168
|
+
* @returns Writer
|
|
7169
|
+
*/
|
|
7170
|
+
public static encodeDelimited(message: ITopicUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
7171
|
+
|
|
7172
|
+
/**
|
|
7173
|
+
* Decodes a TopicUpdated message from the specified reader or buffer.
|
|
7174
|
+
* @param reader Reader or buffer to decode from
|
|
7175
|
+
* @param [length] Message length if known beforehand
|
|
7176
|
+
* @returns TopicUpdated
|
|
7177
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7178
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7179
|
+
*/
|
|
7180
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TopicUpdated;
|
|
7181
|
+
|
|
7182
|
+
/**
|
|
7183
|
+
* Decodes a TopicUpdated message from the specified reader or buffer, length delimited.
|
|
7184
|
+
* @param reader Reader or buffer to decode from
|
|
7185
|
+
* @returns TopicUpdated
|
|
7186
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7187
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7188
|
+
*/
|
|
7189
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): TopicUpdated;
|
|
7190
|
+
|
|
7191
|
+
/**
|
|
7192
|
+
* Verifies a TopicUpdated message.
|
|
7193
|
+
* @param message Plain object to verify
|
|
7194
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
7195
|
+
*/
|
|
7196
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
7197
|
+
|
|
7198
|
+
/**
|
|
7199
|
+
* Creates a TopicUpdated message from a plain object. Also converts values to their respective internal types.
|
|
7200
|
+
* @param object Plain object
|
|
7201
|
+
* @returns TopicUpdated
|
|
7202
|
+
*/
|
|
7203
|
+
public static fromObject(object: { [k: string]: any }): TopicUpdated;
|
|
7204
|
+
|
|
7205
|
+
/**
|
|
7206
|
+
* Creates a plain object from a TopicUpdated message. Also converts values to other types if specified.
|
|
7207
|
+
* @param message TopicUpdated
|
|
7208
|
+
* @param [options] Conversion options
|
|
7209
|
+
* @returns Plain object
|
|
7210
|
+
*/
|
|
7211
|
+
public static toObject(message: TopicUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
7212
|
+
|
|
7213
|
+
/**
|
|
7214
|
+
* Converts this TopicUpdated to JSON.
|
|
7215
|
+
* @returns JSON object
|
|
7216
|
+
*/
|
|
7217
|
+
public toJSON(): { [k: string]: any };
|
|
7218
|
+
}
|
|
7219
|
+
|
|
7220
|
+
/** Properties of a TopicDeleted. */
|
|
7221
|
+
export interface ITopicDeleted {
|
|
7222
|
+
|
|
7223
|
+
/** TopicDeleted slug */
|
|
7224
|
+
slug?: (string|null);
|
|
7225
|
+
|
|
7226
|
+
/** TopicDeleted deletedAt */
|
|
7227
|
+
deletedAt?: (number|Long|null);
|
|
7228
|
+
}
|
|
7229
|
+
|
|
7230
|
+
/** Represents a TopicDeleted. */
|
|
7231
|
+
export class TopicDeleted implements ITopicDeleted {
|
|
7232
|
+
|
|
7233
|
+
/**
|
|
7234
|
+
* Constructs a new TopicDeleted.
|
|
7235
|
+
* @param [properties] Properties to set
|
|
7236
|
+
*/
|
|
7237
|
+
constructor(properties?: ITopicDeleted);
|
|
7238
|
+
|
|
7239
|
+
/** TopicDeleted slug. */
|
|
7240
|
+
public slug: string;
|
|
7241
|
+
|
|
7242
|
+
/** TopicDeleted deletedAt. */
|
|
7243
|
+
public deletedAt: (number|Long);
|
|
7244
|
+
|
|
7245
|
+
/**
|
|
7246
|
+
* Creates a new TopicDeleted instance using the specified properties.
|
|
7247
|
+
* @param [properties] Properties to set
|
|
7248
|
+
* @returns TopicDeleted instance
|
|
7249
|
+
*/
|
|
7250
|
+
public static create(properties?: ITopicDeleted): TopicDeleted;
|
|
7251
|
+
|
|
7252
|
+
/**
|
|
7253
|
+
* Encodes the specified TopicDeleted message. Does not implicitly {@link TopicDeleted.verify|verify} messages.
|
|
7254
|
+
* @param message TopicDeleted message or plain object to encode
|
|
7255
|
+
* @param [writer] Writer to encode to
|
|
7256
|
+
* @returns Writer
|
|
7257
|
+
*/
|
|
7258
|
+
public static encode(message: ITopicDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
7259
|
+
|
|
7260
|
+
/**
|
|
7261
|
+
* Encodes the specified TopicDeleted message, length delimited. Does not implicitly {@link TopicDeleted.verify|verify} messages.
|
|
7262
|
+
* @param message TopicDeleted message or plain object to encode
|
|
7263
|
+
* @param [writer] Writer to encode to
|
|
7264
|
+
* @returns Writer
|
|
7265
|
+
*/
|
|
7266
|
+
public static encodeDelimited(message: ITopicDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
7267
|
+
|
|
7268
|
+
/**
|
|
7269
|
+
* Decodes a TopicDeleted message from the specified reader or buffer.
|
|
7270
|
+
* @param reader Reader or buffer to decode from
|
|
7271
|
+
* @param [length] Message length if known beforehand
|
|
7272
|
+
* @returns TopicDeleted
|
|
7273
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7274
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7275
|
+
*/
|
|
7276
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TopicDeleted;
|
|
7277
|
+
|
|
7278
|
+
/**
|
|
7279
|
+
* Decodes a TopicDeleted message from the specified reader or buffer, length delimited.
|
|
7280
|
+
* @param reader Reader or buffer to decode from
|
|
7281
|
+
* @returns TopicDeleted
|
|
7282
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7283
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7284
|
+
*/
|
|
7285
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): TopicDeleted;
|
|
7286
|
+
|
|
7287
|
+
/**
|
|
7288
|
+
* Verifies a TopicDeleted message.
|
|
7289
|
+
* @param message Plain object to verify
|
|
7290
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
7291
|
+
*/
|
|
7292
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
7293
|
+
|
|
7294
|
+
/**
|
|
7295
|
+
* Creates a TopicDeleted message from a plain object. Also converts values to their respective internal types.
|
|
7296
|
+
* @param object Plain object
|
|
7297
|
+
* @returns TopicDeleted
|
|
7298
|
+
*/
|
|
7299
|
+
public static fromObject(object: { [k: string]: any }): TopicDeleted;
|
|
7300
|
+
|
|
7301
|
+
/**
|
|
7302
|
+
* Creates a plain object from a TopicDeleted message. Also converts values to other types if specified.
|
|
7303
|
+
* @param message TopicDeleted
|
|
7304
|
+
* @param [options] Conversion options
|
|
7305
|
+
* @returns Plain object
|
|
7306
|
+
*/
|
|
7307
|
+
public static toObject(message: TopicDeleted, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
7308
|
+
|
|
7309
|
+
/**
|
|
7310
|
+
* Converts this TopicDeleted to JSON.
|
|
7311
|
+
* @returns JSON object
|
|
7312
|
+
*/
|
|
7313
|
+
public toJSON(): { [k: string]: any };
|
|
7314
|
+
}
|
|
7315
|
+
|
|
7016
7316
|
/** Properties of a SurveyResponse. */
|
|
7017
7317
|
export interface ISurveyResponse {
|
|
7018
7318
|
|
package/lib/index.js
CHANGED
|
@@ -18454,6 +18454,766 @@ $root.ContentPlayedMetadata = (function() {
|
|
|
18454
18454
|
return ContentPlayedMetadata;
|
|
18455
18455
|
})();
|
|
18456
18456
|
|
|
18457
|
+
$root.TopicCreated = (function() {
|
|
18458
|
+
|
|
18459
|
+
/**
|
|
18460
|
+
* Properties of a TopicCreated.
|
|
18461
|
+
* @exports ITopicCreated
|
|
18462
|
+
* @interface ITopicCreated
|
|
18463
|
+
* @property {string|null} [slug] TopicCreated slug
|
|
18464
|
+
* @property {Array.<contentful.ISlugReference>|null} [accessGroups] TopicCreated accessGroups
|
|
18465
|
+
* @property {number|Long|null} [createdAt] TopicCreated createdAt
|
|
18466
|
+
*/
|
|
18467
|
+
|
|
18468
|
+
/**
|
|
18469
|
+
* Constructs a new TopicCreated.
|
|
18470
|
+
* @exports TopicCreated
|
|
18471
|
+
* @classdesc Represents a TopicCreated.
|
|
18472
|
+
* @implements ITopicCreated
|
|
18473
|
+
* @constructor
|
|
18474
|
+
* @param {ITopicCreated=} [properties] Properties to set
|
|
18475
|
+
*/
|
|
18476
|
+
function TopicCreated(properties) {
|
|
18477
|
+
this.accessGroups = [];
|
|
18478
|
+
if (properties)
|
|
18479
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
18480
|
+
if (properties[keys[i]] != null)
|
|
18481
|
+
this[keys[i]] = properties[keys[i]];
|
|
18482
|
+
}
|
|
18483
|
+
|
|
18484
|
+
/**
|
|
18485
|
+
* TopicCreated slug.
|
|
18486
|
+
* @member {string} slug
|
|
18487
|
+
* @memberof TopicCreated
|
|
18488
|
+
* @instance
|
|
18489
|
+
*/
|
|
18490
|
+
TopicCreated.prototype.slug = "";
|
|
18491
|
+
|
|
18492
|
+
/**
|
|
18493
|
+
* TopicCreated accessGroups.
|
|
18494
|
+
* @member {Array.<contentful.ISlugReference>} accessGroups
|
|
18495
|
+
* @memberof TopicCreated
|
|
18496
|
+
* @instance
|
|
18497
|
+
*/
|
|
18498
|
+
TopicCreated.prototype.accessGroups = $util.emptyArray;
|
|
18499
|
+
|
|
18500
|
+
/**
|
|
18501
|
+
* TopicCreated createdAt.
|
|
18502
|
+
* @member {number|Long} createdAt
|
|
18503
|
+
* @memberof TopicCreated
|
|
18504
|
+
* @instance
|
|
18505
|
+
*/
|
|
18506
|
+
TopicCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
18507
|
+
|
|
18508
|
+
/**
|
|
18509
|
+
* Creates a new TopicCreated instance using the specified properties.
|
|
18510
|
+
* @function create
|
|
18511
|
+
* @memberof TopicCreated
|
|
18512
|
+
* @static
|
|
18513
|
+
* @param {ITopicCreated=} [properties] Properties to set
|
|
18514
|
+
* @returns {TopicCreated} TopicCreated instance
|
|
18515
|
+
*/
|
|
18516
|
+
TopicCreated.create = function create(properties) {
|
|
18517
|
+
return new TopicCreated(properties);
|
|
18518
|
+
};
|
|
18519
|
+
|
|
18520
|
+
/**
|
|
18521
|
+
* Encodes the specified TopicCreated message. Does not implicitly {@link TopicCreated.verify|verify} messages.
|
|
18522
|
+
* @function encode
|
|
18523
|
+
* @memberof TopicCreated
|
|
18524
|
+
* @static
|
|
18525
|
+
* @param {ITopicCreated} message TopicCreated message or plain object to encode
|
|
18526
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
18527
|
+
* @returns {$protobuf.Writer} Writer
|
|
18528
|
+
*/
|
|
18529
|
+
TopicCreated.encode = function encode(message, writer) {
|
|
18530
|
+
if (!writer)
|
|
18531
|
+
writer = $Writer.create();
|
|
18532
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
18533
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
18534
|
+
if (message.accessGroups != null && message.accessGroups.length)
|
|
18535
|
+
for (var i = 0; i < message.accessGroups.length; ++i)
|
|
18536
|
+
$root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
18537
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
18538
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.createdAt);
|
|
18539
|
+
return writer;
|
|
18540
|
+
};
|
|
18541
|
+
|
|
18542
|
+
/**
|
|
18543
|
+
* Encodes the specified TopicCreated message, length delimited. Does not implicitly {@link TopicCreated.verify|verify} messages.
|
|
18544
|
+
* @function encodeDelimited
|
|
18545
|
+
* @memberof TopicCreated
|
|
18546
|
+
* @static
|
|
18547
|
+
* @param {ITopicCreated} message TopicCreated message or plain object to encode
|
|
18548
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
18549
|
+
* @returns {$protobuf.Writer} Writer
|
|
18550
|
+
*/
|
|
18551
|
+
TopicCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
18552
|
+
return this.encode(message, writer).ldelim();
|
|
18553
|
+
};
|
|
18554
|
+
|
|
18555
|
+
/**
|
|
18556
|
+
* Decodes a TopicCreated message from the specified reader or buffer.
|
|
18557
|
+
* @function decode
|
|
18558
|
+
* @memberof TopicCreated
|
|
18559
|
+
* @static
|
|
18560
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
18561
|
+
* @param {number} [length] Message length if known beforehand
|
|
18562
|
+
* @returns {TopicCreated} TopicCreated
|
|
18563
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18564
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18565
|
+
*/
|
|
18566
|
+
TopicCreated.decode = function decode(reader, length) {
|
|
18567
|
+
if (!(reader instanceof $Reader))
|
|
18568
|
+
reader = $Reader.create(reader);
|
|
18569
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TopicCreated();
|
|
18570
|
+
while (reader.pos < end) {
|
|
18571
|
+
var tag = reader.uint32();
|
|
18572
|
+
switch (tag >>> 3) {
|
|
18573
|
+
case 1:
|
|
18574
|
+
message.slug = reader.string();
|
|
18575
|
+
break;
|
|
18576
|
+
case 2:
|
|
18577
|
+
if (!(message.accessGroups && message.accessGroups.length))
|
|
18578
|
+
message.accessGroups = [];
|
|
18579
|
+
message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
18580
|
+
break;
|
|
18581
|
+
case 3:
|
|
18582
|
+
message.createdAt = reader.uint64();
|
|
18583
|
+
break;
|
|
18584
|
+
default:
|
|
18585
|
+
reader.skipType(tag & 7);
|
|
18586
|
+
break;
|
|
18587
|
+
}
|
|
18588
|
+
}
|
|
18589
|
+
return message;
|
|
18590
|
+
};
|
|
18591
|
+
|
|
18592
|
+
/**
|
|
18593
|
+
* Decodes a TopicCreated message from the specified reader or buffer, length delimited.
|
|
18594
|
+
* @function decodeDelimited
|
|
18595
|
+
* @memberof TopicCreated
|
|
18596
|
+
* @static
|
|
18597
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
18598
|
+
* @returns {TopicCreated} TopicCreated
|
|
18599
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18600
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18601
|
+
*/
|
|
18602
|
+
TopicCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
18603
|
+
if (!(reader instanceof $Reader))
|
|
18604
|
+
reader = new $Reader(reader);
|
|
18605
|
+
return this.decode(reader, reader.uint32());
|
|
18606
|
+
};
|
|
18607
|
+
|
|
18608
|
+
/**
|
|
18609
|
+
* Verifies a TopicCreated message.
|
|
18610
|
+
* @function verify
|
|
18611
|
+
* @memberof TopicCreated
|
|
18612
|
+
* @static
|
|
18613
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
18614
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
18615
|
+
*/
|
|
18616
|
+
TopicCreated.verify = function verify(message) {
|
|
18617
|
+
if (typeof message !== "object" || message === null)
|
|
18618
|
+
return "object expected";
|
|
18619
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
18620
|
+
if (!$util.isString(message.slug))
|
|
18621
|
+
return "slug: string expected";
|
|
18622
|
+
if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
|
|
18623
|
+
if (!Array.isArray(message.accessGroups))
|
|
18624
|
+
return "accessGroups: array expected";
|
|
18625
|
+
for (var i = 0; i < message.accessGroups.length; ++i) {
|
|
18626
|
+
var error = $root.contentful.SlugReference.verify(message.accessGroups[i]);
|
|
18627
|
+
if (error)
|
|
18628
|
+
return "accessGroups." + error;
|
|
18629
|
+
}
|
|
18630
|
+
}
|
|
18631
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
18632
|
+
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
18633
|
+
return "createdAt: integer|Long expected";
|
|
18634
|
+
return null;
|
|
18635
|
+
};
|
|
18636
|
+
|
|
18637
|
+
/**
|
|
18638
|
+
* Creates a TopicCreated message from a plain object. Also converts values to their respective internal types.
|
|
18639
|
+
* @function fromObject
|
|
18640
|
+
* @memberof TopicCreated
|
|
18641
|
+
* @static
|
|
18642
|
+
* @param {Object.<string,*>} object Plain object
|
|
18643
|
+
* @returns {TopicCreated} TopicCreated
|
|
18644
|
+
*/
|
|
18645
|
+
TopicCreated.fromObject = function fromObject(object) {
|
|
18646
|
+
if (object instanceof $root.TopicCreated)
|
|
18647
|
+
return object;
|
|
18648
|
+
var message = new $root.TopicCreated();
|
|
18649
|
+
if (object.slug != null)
|
|
18650
|
+
message.slug = String(object.slug);
|
|
18651
|
+
if (object.accessGroups) {
|
|
18652
|
+
if (!Array.isArray(object.accessGroups))
|
|
18653
|
+
throw TypeError(".TopicCreated.accessGroups: array expected");
|
|
18654
|
+
message.accessGroups = [];
|
|
18655
|
+
for (var i = 0; i < object.accessGroups.length; ++i) {
|
|
18656
|
+
if (typeof object.accessGroups[i] !== "object")
|
|
18657
|
+
throw TypeError(".TopicCreated.accessGroups: object expected");
|
|
18658
|
+
message.accessGroups[i] = $root.contentful.SlugReference.fromObject(object.accessGroups[i]);
|
|
18659
|
+
}
|
|
18660
|
+
}
|
|
18661
|
+
if (object.createdAt != null)
|
|
18662
|
+
if ($util.Long)
|
|
18663
|
+
(message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
|
|
18664
|
+
else if (typeof object.createdAt === "string")
|
|
18665
|
+
message.createdAt = parseInt(object.createdAt, 10);
|
|
18666
|
+
else if (typeof object.createdAt === "number")
|
|
18667
|
+
message.createdAt = object.createdAt;
|
|
18668
|
+
else if (typeof object.createdAt === "object")
|
|
18669
|
+
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
18670
|
+
return message;
|
|
18671
|
+
};
|
|
18672
|
+
|
|
18673
|
+
/**
|
|
18674
|
+
* Creates a plain object from a TopicCreated message. Also converts values to other types if specified.
|
|
18675
|
+
* @function toObject
|
|
18676
|
+
* @memberof TopicCreated
|
|
18677
|
+
* @static
|
|
18678
|
+
* @param {TopicCreated} message TopicCreated
|
|
18679
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
18680
|
+
* @returns {Object.<string,*>} Plain object
|
|
18681
|
+
*/
|
|
18682
|
+
TopicCreated.toObject = function toObject(message, options) {
|
|
18683
|
+
if (!options)
|
|
18684
|
+
options = {};
|
|
18685
|
+
var object = {};
|
|
18686
|
+
if (options.arrays || options.defaults)
|
|
18687
|
+
object.accessGroups = [];
|
|
18688
|
+
if (options.defaults) {
|
|
18689
|
+
object.slug = "";
|
|
18690
|
+
if ($util.Long) {
|
|
18691
|
+
var long = new $util.Long(0, 0, true);
|
|
18692
|
+
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
18693
|
+
} else
|
|
18694
|
+
object.createdAt = options.longs === String ? "0" : 0;
|
|
18695
|
+
}
|
|
18696
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
18697
|
+
object.slug = message.slug;
|
|
18698
|
+
if (message.accessGroups && message.accessGroups.length) {
|
|
18699
|
+
object.accessGroups = [];
|
|
18700
|
+
for (var j = 0; j < message.accessGroups.length; ++j)
|
|
18701
|
+
object.accessGroups[j] = $root.contentful.SlugReference.toObject(message.accessGroups[j], options);
|
|
18702
|
+
}
|
|
18703
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
18704
|
+
if (typeof message.createdAt === "number")
|
|
18705
|
+
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
18706
|
+
else
|
|
18707
|
+
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;
|
|
18708
|
+
return object;
|
|
18709
|
+
};
|
|
18710
|
+
|
|
18711
|
+
/**
|
|
18712
|
+
* Converts this TopicCreated to JSON.
|
|
18713
|
+
* @function toJSON
|
|
18714
|
+
* @memberof TopicCreated
|
|
18715
|
+
* @instance
|
|
18716
|
+
* @returns {Object.<string,*>} JSON object
|
|
18717
|
+
*/
|
|
18718
|
+
TopicCreated.prototype.toJSON = function toJSON() {
|
|
18719
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
18720
|
+
};
|
|
18721
|
+
|
|
18722
|
+
return TopicCreated;
|
|
18723
|
+
})();
|
|
18724
|
+
|
|
18725
|
+
$root.TopicUpdated = (function() {
|
|
18726
|
+
|
|
18727
|
+
/**
|
|
18728
|
+
* Properties of a TopicUpdated.
|
|
18729
|
+
* @exports ITopicUpdated
|
|
18730
|
+
* @interface ITopicUpdated
|
|
18731
|
+
* @property {string|null} [slug] TopicUpdated slug
|
|
18732
|
+
* @property {Array.<contentful.ISlugReference>|null} [accessGroups] TopicUpdated accessGroups
|
|
18733
|
+
* @property {number|Long|null} [updatedAt] TopicUpdated updatedAt
|
|
18734
|
+
*/
|
|
18735
|
+
|
|
18736
|
+
/**
|
|
18737
|
+
* Constructs a new TopicUpdated.
|
|
18738
|
+
* @exports TopicUpdated
|
|
18739
|
+
* @classdesc Represents a TopicUpdated.
|
|
18740
|
+
* @implements ITopicUpdated
|
|
18741
|
+
* @constructor
|
|
18742
|
+
* @param {ITopicUpdated=} [properties] Properties to set
|
|
18743
|
+
*/
|
|
18744
|
+
function TopicUpdated(properties) {
|
|
18745
|
+
this.accessGroups = [];
|
|
18746
|
+
if (properties)
|
|
18747
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
18748
|
+
if (properties[keys[i]] != null)
|
|
18749
|
+
this[keys[i]] = properties[keys[i]];
|
|
18750
|
+
}
|
|
18751
|
+
|
|
18752
|
+
/**
|
|
18753
|
+
* TopicUpdated slug.
|
|
18754
|
+
* @member {string} slug
|
|
18755
|
+
* @memberof TopicUpdated
|
|
18756
|
+
* @instance
|
|
18757
|
+
*/
|
|
18758
|
+
TopicUpdated.prototype.slug = "";
|
|
18759
|
+
|
|
18760
|
+
/**
|
|
18761
|
+
* TopicUpdated accessGroups.
|
|
18762
|
+
* @member {Array.<contentful.ISlugReference>} accessGroups
|
|
18763
|
+
* @memberof TopicUpdated
|
|
18764
|
+
* @instance
|
|
18765
|
+
*/
|
|
18766
|
+
TopicUpdated.prototype.accessGroups = $util.emptyArray;
|
|
18767
|
+
|
|
18768
|
+
/**
|
|
18769
|
+
* TopicUpdated updatedAt.
|
|
18770
|
+
* @member {number|Long} updatedAt
|
|
18771
|
+
* @memberof TopicUpdated
|
|
18772
|
+
* @instance
|
|
18773
|
+
*/
|
|
18774
|
+
TopicUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
18775
|
+
|
|
18776
|
+
/**
|
|
18777
|
+
* Creates a new TopicUpdated instance using the specified properties.
|
|
18778
|
+
* @function create
|
|
18779
|
+
* @memberof TopicUpdated
|
|
18780
|
+
* @static
|
|
18781
|
+
* @param {ITopicUpdated=} [properties] Properties to set
|
|
18782
|
+
* @returns {TopicUpdated} TopicUpdated instance
|
|
18783
|
+
*/
|
|
18784
|
+
TopicUpdated.create = function create(properties) {
|
|
18785
|
+
return new TopicUpdated(properties);
|
|
18786
|
+
};
|
|
18787
|
+
|
|
18788
|
+
/**
|
|
18789
|
+
* Encodes the specified TopicUpdated message. Does not implicitly {@link TopicUpdated.verify|verify} messages.
|
|
18790
|
+
* @function encode
|
|
18791
|
+
* @memberof TopicUpdated
|
|
18792
|
+
* @static
|
|
18793
|
+
* @param {ITopicUpdated} message TopicUpdated message or plain object to encode
|
|
18794
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
18795
|
+
* @returns {$protobuf.Writer} Writer
|
|
18796
|
+
*/
|
|
18797
|
+
TopicUpdated.encode = function encode(message, writer) {
|
|
18798
|
+
if (!writer)
|
|
18799
|
+
writer = $Writer.create();
|
|
18800
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
18801
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
18802
|
+
if (message.accessGroups != null && message.accessGroups.length)
|
|
18803
|
+
for (var i = 0; i < message.accessGroups.length; ++i)
|
|
18804
|
+
$root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
18805
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
18806
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.updatedAt);
|
|
18807
|
+
return writer;
|
|
18808
|
+
};
|
|
18809
|
+
|
|
18810
|
+
/**
|
|
18811
|
+
* Encodes the specified TopicUpdated message, length delimited. Does not implicitly {@link TopicUpdated.verify|verify} messages.
|
|
18812
|
+
* @function encodeDelimited
|
|
18813
|
+
* @memberof TopicUpdated
|
|
18814
|
+
* @static
|
|
18815
|
+
* @param {ITopicUpdated} message TopicUpdated message or plain object to encode
|
|
18816
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
18817
|
+
* @returns {$protobuf.Writer} Writer
|
|
18818
|
+
*/
|
|
18819
|
+
TopicUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
18820
|
+
return this.encode(message, writer).ldelim();
|
|
18821
|
+
};
|
|
18822
|
+
|
|
18823
|
+
/**
|
|
18824
|
+
* Decodes a TopicUpdated message from the specified reader or buffer.
|
|
18825
|
+
* @function decode
|
|
18826
|
+
* @memberof TopicUpdated
|
|
18827
|
+
* @static
|
|
18828
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
18829
|
+
* @param {number} [length] Message length if known beforehand
|
|
18830
|
+
* @returns {TopicUpdated} TopicUpdated
|
|
18831
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18832
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18833
|
+
*/
|
|
18834
|
+
TopicUpdated.decode = function decode(reader, length) {
|
|
18835
|
+
if (!(reader instanceof $Reader))
|
|
18836
|
+
reader = $Reader.create(reader);
|
|
18837
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TopicUpdated();
|
|
18838
|
+
while (reader.pos < end) {
|
|
18839
|
+
var tag = reader.uint32();
|
|
18840
|
+
switch (tag >>> 3) {
|
|
18841
|
+
case 1:
|
|
18842
|
+
message.slug = reader.string();
|
|
18843
|
+
break;
|
|
18844
|
+
case 2:
|
|
18845
|
+
if (!(message.accessGroups && message.accessGroups.length))
|
|
18846
|
+
message.accessGroups = [];
|
|
18847
|
+
message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
18848
|
+
break;
|
|
18849
|
+
case 3:
|
|
18850
|
+
message.updatedAt = reader.uint64();
|
|
18851
|
+
break;
|
|
18852
|
+
default:
|
|
18853
|
+
reader.skipType(tag & 7);
|
|
18854
|
+
break;
|
|
18855
|
+
}
|
|
18856
|
+
}
|
|
18857
|
+
return message;
|
|
18858
|
+
};
|
|
18859
|
+
|
|
18860
|
+
/**
|
|
18861
|
+
* Decodes a TopicUpdated message from the specified reader or buffer, length delimited.
|
|
18862
|
+
* @function decodeDelimited
|
|
18863
|
+
* @memberof TopicUpdated
|
|
18864
|
+
* @static
|
|
18865
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
18866
|
+
* @returns {TopicUpdated} TopicUpdated
|
|
18867
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18868
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18869
|
+
*/
|
|
18870
|
+
TopicUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
18871
|
+
if (!(reader instanceof $Reader))
|
|
18872
|
+
reader = new $Reader(reader);
|
|
18873
|
+
return this.decode(reader, reader.uint32());
|
|
18874
|
+
};
|
|
18875
|
+
|
|
18876
|
+
/**
|
|
18877
|
+
* Verifies a TopicUpdated message.
|
|
18878
|
+
* @function verify
|
|
18879
|
+
* @memberof TopicUpdated
|
|
18880
|
+
* @static
|
|
18881
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
18882
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
18883
|
+
*/
|
|
18884
|
+
TopicUpdated.verify = function verify(message) {
|
|
18885
|
+
if (typeof message !== "object" || message === null)
|
|
18886
|
+
return "object expected";
|
|
18887
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
18888
|
+
if (!$util.isString(message.slug))
|
|
18889
|
+
return "slug: string expected";
|
|
18890
|
+
if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
|
|
18891
|
+
if (!Array.isArray(message.accessGroups))
|
|
18892
|
+
return "accessGroups: array expected";
|
|
18893
|
+
for (var i = 0; i < message.accessGroups.length; ++i) {
|
|
18894
|
+
var error = $root.contentful.SlugReference.verify(message.accessGroups[i]);
|
|
18895
|
+
if (error)
|
|
18896
|
+
return "accessGroups." + error;
|
|
18897
|
+
}
|
|
18898
|
+
}
|
|
18899
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
18900
|
+
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
18901
|
+
return "updatedAt: integer|Long expected";
|
|
18902
|
+
return null;
|
|
18903
|
+
};
|
|
18904
|
+
|
|
18905
|
+
/**
|
|
18906
|
+
* Creates a TopicUpdated message from a plain object. Also converts values to their respective internal types.
|
|
18907
|
+
* @function fromObject
|
|
18908
|
+
* @memberof TopicUpdated
|
|
18909
|
+
* @static
|
|
18910
|
+
* @param {Object.<string,*>} object Plain object
|
|
18911
|
+
* @returns {TopicUpdated} TopicUpdated
|
|
18912
|
+
*/
|
|
18913
|
+
TopicUpdated.fromObject = function fromObject(object) {
|
|
18914
|
+
if (object instanceof $root.TopicUpdated)
|
|
18915
|
+
return object;
|
|
18916
|
+
var message = new $root.TopicUpdated();
|
|
18917
|
+
if (object.slug != null)
|
|
18918
|
+
message.slug = String(object.slug);
|
|
18919
|
+
if (object.accessGroups) {
|
|
18920
|
+
if (!Array.isArray(object.accessGroups))
|
|
18921
|
+
throw TypeError(".TopicUpdated.accessGroups: array expected");
|
|
18922
|
+
message.accessGroups = [];
|
|
18923
|
+
for (var i = 0; i < object.accessGroups.length; ++i) {
|
|
18924
|
+
if (typeof object.accessGroups[i] !== "object")
|
|
18925
|
+
throw TypeError(".TopicUpdated.accessGroups: object expected");
|
|
18926
|
+
message.accessGroups[i] = $root.contentful.SlugReference.fromObject(object.accessGroups[i]);
|
|
18927
|
+
}
|
|
18928
|
+
}
|
|
18929
|
+
if (object.updatedAt != null)
|
|
18930
|
+
if ($util.Long)
|
|
18931
|
+
(message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
|
|
18932
|
+
else if (typeof object.updatedAt === "string")
|
|
18933
|
+
message.updatedAt = parseInt(object.updatedAt, 10);
|
|
18934
|
+
else if (typeof object.updatedAt === "number")
|
|
18935
|
+
message.updatedAt = object.updatedAt;
|
|
18936
|
+
else if (typeof object.updatedAt === "object")
|
|
18937
|
+
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
18938
|
+
return message;
|
|
18939
|
+
};
|
|
18940
|
+
|
|
18941
|
+
/**
|
|
18942
|
+
* Creates a plain object from a TopicUpdated message. Also converts values to other types if specified.
|
|
18943
|
+
* @function toObject
|
|
18944
|
+
* @memberof TopicUpdated
|
|
18945
|
+
* @static
|
|
18946
|
+
* @param {TopicUpdated} message TopicUpdated
|
|
18947
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
18948
|
+
* @returns {Object.<string,*>} Plain object
|
|
18949
|
+
*/
|
|
18950
|
+
TopicUpdated.toObject = function toObject(message, options) {
|
|
18951
|
+
if (!options)
|
|
18952
|
+
options = {};
|
|
18953
|
+
var object = {};
|
|
18954
|
+
if (options.arrays || options.defaults)
|
|
18955
|
+
object.accessGroups = [];
|
|
18956
|
+
if (options.defaults) {
|
|
18957
|
+
object.slug = "";
|
|
18958
|
+
if ($util.Long) {
|
|
18959
|
+
var long = new $util.Long(0, 0, true);
|
|
18960
|
+
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
18961
|
+
} else
|
|
18962
|
+
object.updatedAt = options.longs === String ? "0" : 0;
|
|
18963
|
+
}
|
|
18964
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
18965
|
+
object.slug = message.slug;
|
|
18966
|
+
if (message.accessGroups && message.accessGroups.length) {
|
|
18967
|
+
object.accessGroups = [];
|
|
18968
|
+
for (var j = 0; j < message.accessGroups.length; ++j)
|
|
18969
|
+
object.accessGroups[j] = $root.contentful.SlugReference.toObject(message.accessGroups[j], options);
|
|
18970
|
+
}
|
|
18971
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
18972
|
+
if (typeof message.updatedAt === "number")
|
|
18973
|
+
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
18974
|
+
else
|
|
18975
|
+
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;
|
|
18976
|
+
return object;
|
|
18977
|
+
};
|
|
18978
|
+
|
|
18979
|
+
/**
|
|
18980
|
+
* Converts this TopicUpdated to JSON.
|
|
18981
|
+
* @function toJSON
|
|
18982
|
+
* @memberof TopicUpdated
|
|
18983
|
+
* @instance
|
|
18984
|
+
* @returns {Object.<string,*>} JSON object
|
|
18985
|
+
*/
|
|
18986
|
+
TopicUpdated.prototype.toJSON = function toJSON() {
|
|
18987
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
18988
|
+
};
|
|
18989
|
+
|
|
18990
|
+
return TopicUpdated;
|
|
18991
|
+
})();
|
|
18992
|
+
|
|
18993
|
+
$root.TopicDeleted = (function() {
|
|
18994
|
+
|
|
18995
|
+
/**
|
|
18996
|
+
* Properties of a TopicDeleted.
|
|
18997
|
+
* @exports ITopicDeleted
|
|
18998
|
+
* @interface ITopicDeleted
|
|
18999
|
+
* @property {string|null} [slug] TopicDeleted slug
|
|
19000
|
+
* @property {number|Long|null} [deletedAt] TopicDeleted deletedAt
|
|
19001
|
+
*/
|
|
19002
|
+
|
|
19003
|
+
/**
|
|
19004
|
+
* Constructs a new TopicDeleted.
|
|
19005
|
+
* @exports TopicDeleted
|
|
19006
|
+
* @classdesc Represents a TopicDeleted.
|
|
19007
|
+
* @implements ITopicDeleted
|
|
19008
|
+
* @constructor
|
|
19009
|
+
* @param {ITopicDeleted=} [properties] Properties to set
|
|
19010
|
+
*/
|
|
19011
|
+
function TopicDeleted(properties) {
|
|
19012
|
+
if (properties)
|
|
19013
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
19014
|
+
if (properties[keys[i]] != null)
|
|
19015
|
+
this[keys[i]] = properties[keys[i]];
|
|
19016
|
+
}
|
|
19017
|
+
|
|
19018
|
+
/**
|
|
19019
|
+
* TopicDeleted slug.
|
|
19020
|
+
* @member {string} slug
|
|
19021
|
+
* @memberof TopicDeleted
|
|
19022
|
+
* @instance
|
|
19023
|
+
*/
|
|
19024
|
+
TopicDeleted.prototype.slug = "";
|
|
19025
|
+
|
|
19026
|
+
/**
|
|
19027
|
+
* TopicDeleted deletedAt.
|
|
19028
|
+
* @member {number|Long} deletedAt
|
|
19029
|
+
* @memberof TopicDeleted
|
|
19030
|
+
* @instance
|
|
19031
|
+
*/
|
|
19032
|
+
TopicDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
19033
|
+
|
|
19034
|
+
/**
|
|
19035
|
+
* Creates a new TopicDeleted instance using the specified properties.
|
|
19036
|
+
* @function create
|
|
19037
|
+
* @memberof TopicDeleted
|
|
19038
|
+
* @static
|
|
19039
|
+
* @param {ITopicDeleted=} [properties] Properties to set
|
|
19040
|
+
* @returns {TopicDeleted} TopicDeleted instance
|
|
19041
|
+
*/
|
|
19042
|
+
TopicDeleted.create = function create(properties) {
|
|
19043
|
+
return new TopicDeleted(properties);
|
|
19044
|
+
};
|
|
19045
|
+
|
|
19046
|
+
/**
|
|
19047
|
+
* Encodes the specified TopicDeleted message. Does not implicitly {@link TopicDeleted.verify|verify} messages.
|
|
19048
|
+
* @function encode
|
|
19049
|
+
* @memberof TopicDeleted
|
|
19050
|
+
* @static
|
|
19051
|
+
* @param {ITopicDeleted} message TopicDeleted message or plain object to encode
|
|
19052
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
19053
|
+
* @returns {$protobuf.Writer} Writer
|
|
19054
|
+
*/
|
|
19055
|
+
TopicDeleted.encode = function encode(message, writer) {
|
|
19056
|
+
if (!writer)
|
|
19057
|
+
writer = $Writer.create();
|
|
19058
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
19059
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
19060
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
19061
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.deletedAt);
|
|
19062
|
+
return writer;
|
|
19063
|
+
};
|
|
19064
|
+
|
|
19065
|
+
/**
|
|
19066
|
+
* Encodes the specified TopicDeleted message, length delimited. Does not implicitly {@link TopicDeleted.verify|verify} messages.
|
|
19067
|
+
* @function encodeDelimited
|
|
19068
|
+
* @memberof TopicDeleted
|
|
19069
|
+
* @static
|
|
19070
|
+
* @param {ITopicDeleted} message TopicDeleted message or plain object to encode
|
|
19071
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
19072
|
+
* @returns {$protobuf.Writer} Writer
|
|
19073
|
+
*/
|
|
19074
|
+
TopicDeleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
19075
|
+
return this.encode(message, writer).ldelim();
|
|
19076
|
+
};
|
|
19077
|
+
|
|
19078
|
+
/**
|
|
19079
|
+
* Decodes a TopicDeleted message from the specified reader or buffer.
|
|
19080
|
+
* @function decode
|
|
19081
|
+
* @memberof TopicDeleted
|
|
19082
|
+
* @static
|
|
19083
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
19084
|
+
* @param {number} [length] Message length if known beforehand
|
|
19085
|
+
* @returns {TopicDeleted} TopicDeleted
|
|
19086
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
19087
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
19088
|
+
*/
|
|
19089
|
+
TopicDeleted.decode = function decode(reader, length) {
|
|
19090
|
+
if (!(reader instanceof $Reader))
|
|
19091
|
+
reader = $Reader.create(reader);
|
|
19092
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TopicDeleted();
|
|
19093
|
+
while (reader.pos < end) {
|
|
19094
|
+
var tag = reader.uint32();
|
|
19095
|
+
switch (tag >>> 3) {
|
|
19096
|
+
case 1:
|
|
19097
|
+
message.slug = reader.string();
|
|
19098
|
+
break;
|
|
19099
|
+
case 2:
|
|
19100
|
+
message.deletedAt = reader.uint64();
|
|
19101
|
+
break;
|
|
19102
|
+
default:
|
|
19103
|
+
reader.skipType(tag & 7);
|
|
19104
|
+
break;
|
|
19105
|
+
}
|
|
19106
|
+
}
|
|
19107
|
+
return message;
|
|
19108
|
+
};
|
|
19109
|
+
|
|
19110
|
+
/**
|
|
19111
|
+
* Decodes a TopicDeleted message from the specified reader or buffer, length delimited.
|
|
19112
|
+
* @function decodeDelimited
|
|
19113
|
+
* @memberof TopicDeleted
|
|
19114
|
+
* @static
|
|
19115
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
19116
|
+
* @returns {TopicDeleted} TopicDeleted
|
|
19117
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
19118
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
19119
|
+
*/
|
|
19120
|
+
TopicDeleted.decodeDelimited = function decodeDelimited(reader) {
|
|
19121
|
+
if (!(reader instanceof $Reader))
|
|
19122
|
+
reader = new $Reader(reader);
|
|
19123
|
+
return this.decode(reader, reader.uint32());
|
|
19124
|
+
};
|
|
19125
|
+
|
|
19126
|
+
/**
|
|
19127
|
+
* Verifies a TopicDeleted message.
|
|
19128
|
+
* @function verify
|
|
19129
|
+
* @memberof TopicDeleted
|
|
19130
|
+
* @static
|
|
19131
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
19132
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
19133
|
+
*/
|
|
19134
|
+
TopicDeleted.verify = function verify(message) {
|
|
19135
|
+
if (typeof message !== "object" || message === null)
|
|
19136
|
+
return "object expected";
|
|
19137
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
19138
|
+
if (!$util.isString(message.slug))
|
|
19139
|
+
return "slug: string expected";
|
|
19140
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
19141
|
+
if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
|
|
19142
|
+
return "deletedAt: integer|Long expected";
|
|
19143
|
+
return null;
|
|
19144
|
+
};
|
|
19145
|
+
|
|
19146
|
+
/**
|
|
19147
|
+
* Creates a TopicDeleted message from a plain object. Also converts values to their respective internal types.
|
|
19148
|
+
* @function fromObject
|
|
19149
|
+
* @memberof TopicDeleted
|
|
19150
|
+
* @static
|
|
19151
|
+
* @param {Object.<string,*>} object Plain object
|
|
19152
|
+
* @returns {TopicDeleted} TopicDeleted
|
|
19153
|
+
*/
|
|
19154
|
+
TopicDeleted.fromObject = function fromObject(object) {
|
|
19155
|
+
if (object instanceof $root.TopicDeleted)
|
|
19156
|
+
return object;
|
|
19157
|
+
var message = new $root.TopicDeleted();
|
|
19158
|
+
if (object.slug != null)
|
|
19159
|
+
message.slug = String(object.slug);
|
|
19160
|
+
if (object.deletedAt != null)
|
|
19161
|
+
if ($util.Long)
|
|
19162
|
+
(message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
|
|
19163
|
+
else if (typeof object.deletedAt === "string")
|
|
19164
|
+
message.deletedAt = parseInt(object.deletedAt, 10);
|
|
19165
|
+
else if (typeof object.deletedAt === "number")
|
|
19166
|
+
message.deletedAt = object.deletedAt;
|
|
19167
|
+
else if (typeof object.deletedAt === "object")
|
|
19168
|
+
message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
|
|
19169
|
+
return message;
|
|
19170
|
+
};
|
|
19171
|
+
|
|
19172
|
+
/**
|
|
19173
|
+
* Creates a plain object from a TopicDeleted message. Also converts values to other types if specified.
|
|
19174
|
+
* @function toObject
|
|
19175
|
+
* @memberof TopicDeleted
|
|
19176
|
+
* @static
|
|
19177
|
+
* @param {TopicDeleted} message TopicDeleted
|
|
19178
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
19179
|
+
* @returns {Object.<string,*>} Plain object
|
|
19180
|
+
*/
|
|
19181
|
+
TopicDeleted.toObject = function toObject(message, options) {
|
|
19182
|
+
if (!options)
|
|
19183
|
+
options = {};
|
|
19184
|
+
var object = {};
|
|
19185
|
+
if (options.defaults) {
|
|
19186
|
+
object.slug = "";
|
|
19187
|
+
if ($util.Long) {
|
|
19188
|
+
var long = new $util.Long(0, 0, true);
|
|
19189
|
+
object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
19190
|
+
} else
|
|
19191
|
+
object.deletedAt = options.longs === String ? "0" : 0;
|
|
19192
|
+
}
|
|
19193
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
19194
|
+
object.slug = message.slug;
|
|
19195
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
19196
|
+
if (typeof message.deletedAt === "number")
|
|
19197
|
+
object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
|
|
19198
|
+
else
|
|
19199
|
+
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;
|
|
19200
|
+
return object;
|
|
19201
|
+
};
|
|
19202
|
+
|
|
19203
|
+
/**
|
|
19204
|
+
* Converts this TopicDeleted to JSON.
|
|
19205
|
+
* @function toJSON
|
|
19206
|
+
* @memberof TopicDeleted
|
|
19207
|
+
* @instance
|
|
19208
|
+
* @returns {Object.<string,*>} JSON object
|
|
19209
|
+
*/
|
|
19210
|
+
TopicDeleted.prototype.toJSON = function toJSON() {
|
|
19211
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
19212
|
+
};
|
|
19213
|
+
|
|
19214
|
+
return TopicDeleted;
|
|
19215
|
+
})();
|
|
19216
|
+
|
|
18457
19217
|
$root.SurveyResponse = (function() {
|
|
18458
19218
|
|
|
18459
19219
|
/**
|
package/package.json
CHANGED