@headspace/protos-events 1.65.0 → 1.66.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 CHANGED
@@ -3809,6 +3809,108 @@ export class ExperimentContentMapUpdated implements IExperimentContentMapUpdated
3809
3809
  public toJSON(): { [k: string]: any };
3810
3810
  }
3811
3811
 
3812
+ /** Properties of an ExperimentContentMapDeleted. */
3813
+ export interface IExperimentContentMapDeleted {
3814
+
3815
+ /** ExperimentContentMapDeleted experimentName */
3816
+ experimentName?: (string|null);
3817
+
3818
+ /** ExperimentContentMapDeleted variationName */
3819
+ variationName?: (string|null);
3820
+
3821
+ /** ExperimentContentMapDeleted deletedAt */
3822
+ deletedAt?: (number|Long|null);
3823
+ }
3824
+
3825
+ /** Represents an ExperimentContentMapDeleted. */
3826
+ export class ExperimentContentMapDeleted implements IExperimentContentMapDeleted {
3827
+
3828
+ /**
3829
+ * Constructs a new ExperimentContentMapDeleted.
3830
+ * @param [properties] Properties to set
3831
+ */
3832
+ constructor(properties?: IExperimentContentMapDeleted);
3833
+
3834
+ /** ExperimentContentMapDeleted experimentName. */
3835
+ public experimentName: string;
3836
+
3837
+ /** ExperimentContentMapDeleted variationName. */
3838
+ public variationName: string;
3839
+
3840
+ /** ExperimentContentMapDeleted deletedAt. */
3841
+ public deletedAt: (number|Long);
3842
+
3843
+ /**
3844
+ * Creates a new ExperimentContentMapDeleted instance using the specified properties.
3845
+ * @param [properties] Properties to set
3846
+ * @returns ExperimentContentMapDeleted instance
3847
+ */
3848
+ public static create(properties?: IExperimentContentMapDeleted): ExperimentContentMapDeleted;
3849
+
3850
+ /**
3851
+ * Encodes the specified ExperimentContentMapDeleted message. Does not implicitly {@link ExperimentContentMapDeleted.verify|verify} messages.
3852
+ * @param message ExperimentContentMapDeleted message or plain object to encode
3853
+ * @param [writer] Writer to encode to
3854
+ * @returns Writer
3855
+ */
3856
+ public static encode(message: IExperimentContentMapDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
3857
+
3858
+ /**
3859
+ * Encodes the specified ExperimentContentMapDeleted message, length delimited. Does not implicitly {@link ExperimentContentMapDeleted.verify|verify} messages.
3860
+ * @param message ExperimentContentMapDeleted message or plain object to encode
3861
+ * @param [writer] Writer to encode to
3862
+ * @returns Writer
3863
+ */
3864
+ public static encodeDelimited(message: IExperimentContentMapDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
3865
+
3866
+ /**
3867
+ * Decodes an ExperimentContentMapDeleted message from the specified reader or buffer.
3868
+ * @param reader Reader or buffer to decode from
3869
+ * @param [length] Message length if known beforehand
3870
+ * @returns ExperimentContentMapDeleted
3871
+ * @throws {Error} If the payload is not a reader or valid buffer
3872
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3873
+ */
3874
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ExperimentContentMapDeleted;
3875
+
3876
+ /**
3877
+ * Decodes an ExperimentContentMapDeleted message from the specified reader or buffer, length delimited.
3878
+ * @param reader Reader or buffer to decode from
3879
+ * @returns ExperimentContentMapDeleted
3880
+ * @throws {Error} If the payload is not a reader or valid buffer
3881
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3882
+ */
3883
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ExperimentContentMapDeleted;
3884
+
3885
+ /**
3886
+ * Verifies an ExperimentContentMapDeleted message.
3887
+ * @param message Plain object to verify
3888
+ * @returns `null` if valid, otherwise the reason why it is not
3889
+ */
3890
+ public static verify(message: { [k: string]: any }): (string|null);
3891
+
3892
+ /**
3893
+ * Creates an ExperimentContentMapDeleted message from a plain object. Also converts values to their respective internal types.
3894
+ * @param object Plain object
3895
+ * @returns ExperimentContentMapDeleted
3896
+ */
3897
+ public static fromObject(object: { [k: string]: any }): ExperimentContentMapDeleted;
3898
+
3899
+ /**
3900
+ * Creates a plain object from an ExperimentContentMapDeleted message. Also converts values to other types if specified.
3901
+ * @param message ExperimentContentMapDeleted
3902
+ * @param [options] Conversion options
3903
+ * @returns Plain object
3904
+ */
3905
+ public static toObject(message: ExperimentContentMapDeleted, options?: $protobuf.IConversionOptions): { [k: string]: any };
3906
+
3907
+ /**
3908
+ * Converts this ExperimentContentMapDeleted to JSON.
3909
+ * @returns JSON object
3910
+ */
3911
+ public toJSON(): { [k: string]: any };
3912
+ }
3913
+
3812
3914
  /** Properties of a ReferralSignedUp. */
3813
3915
  export interface IReferralSignedUp {
3814
3916
 
package/lib/index.js CHANGED
@@ -9211,6 +9211,252 @@ $root.ExperimentContentMapUpdated = (function() {
9211
9211
  return ExperimentContentMapUpdated;
9212
9212
  })();
9213
9213
 
9214
+ $root.ExperimentContentMapDeleted = (function() {
9215
+
9216
+ /**
9217
+ * Properties of an ExperimentContentMapDeleted.
9218
+ * @exports IExperimentContentMapDeleted
9219
+ * @interface IExperimentContentMapDeleted
9220
+ * @property {string|null} [experimentName] ExperimentContentMapDeleted experimentName
9221
+ * @property {string|null} [variationName] ExperimentContentMapDeleted variationName
9222
+ * @property {number|Long|null} [deletedAt] ExperimentContentMapDeleted deletedAt
9223
+ */
9224
+
9225
+ /**
9226
+ * Constructs a new ExperimentContentMapDeleted.
9227
+ * @exports ExperimentContentMapDeleted
9228
+ * @classdesc Represents an ExperimentContentMapDeleted.
9229
+ * @implements IExperimentContentMapDeleted
9230
+ * @constructor
9231
+ * @param {IExperimentContentMapDeleted=} [properties] Properties to set
9232
+ */
9233
+ function ExperimentContentMapDeleted(properties) {
9234
+ if (properties)
9235
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
9236
+ if (properties[keys[i]] != null)
9237
+ this[keys[i]] = properties[keys[i]];
9238
+ }
9239
+
9240
+ /**
9241
+ * ExperimentContentMapDeleted experimentName.
9242
+ * @member {string} experimentName
9243
+ * @memberof ExperimentContentMapDeleted
9244
+ * @instance
9245
+ */
9246
+ ExperimentContentMapDeleted.prototype.experimentName = "";
9247
+
9248
+ /**
9249
+ * ExperimentContentMapDeleted variationName.
9250
+ * @member {string} variationName
9251
+ * @memberof ExperimentContentMapDeleted
9252
+ * @instance
9253
+ */
9254
+ ExperimentContentMapDeleted.prototype.variationName = "";
9255
+
9256
+ /**
9257
+ * ExperimentContentMapDeleted deletedAt.
9258
+ * @member {number|Long} deletedAt
9259
+ * @memberof ExperimentContentMapDeleted
9260
+ * @instance
9261
+ */
9262
+ ExperimentContentMapDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
9263
+
9264
+ /**
9265
+ * Creates a new ExperimentContentMapDeleted instance using the specified properties.
9266
+ * @function create
9267
+ * @memberof ExperimentContentMapDeleted
9268
+ * @static
9269
+ * @param {IExperimentContentMapDeleted=} [properties] Properties to set
9270
+ * @returns {ExperimentContentMapDeleted} ExperimentContentMapDeleted instance
9271
+ */
9272
+ ExperimentContentMapDeleted.create = function create(properties) {
9273
+ return new ExperimentContentMapDeleted(properties);
9274
+ };
9275
+
9276
+ /**
9277
+ * Encodes the specified ExperimentContentMapDeleted message. Does not implicitly {@link ExperimentContentMapDeleted.verify|verify} messages.
9278
+ * @function encode
9279
+ * @memberof ExperimentContentMapDeleted
9280
+ * @static
9281
+ * @param {IExperimentContentMapDeleted} message ExperimentContentMapDeleted message or plain object to encode
9282
+ * @param {$protobuf.Writer} [writer] Writer to encode to
9283
+ * @returns {$protobuf.Writer} Writer
9284
+ */
9285
+ ExperimentContentMapDeleted.encode = function encode(message, writer) {
9286
+ if (!writer)
9287
+ writer = $Writer.create();
9288
+ if (message.experimentName != null && message.hasOwnProperty("experimentName"))
9289
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.experimentName);
9290
+ if (message.variationName != null && message.hasOwnProperty("variationName"))
9291
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.variationName);
9292
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
9293
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.deletedAt);
9294
+ return writer;
9295
+ };
9296
+
9297
+ /**
9298
+ * Encodes the specified ExperimentContentMapDeleted message, length delimited. Does not implicitly {@link ExperimentContentMapDeleted.verify|verify} messages.
9299
+ * @function encodeDelimited
9300
+ * @memberof ExperimentContentMapDeleted
9301
+ * @static
9302
+ * @param {IExperimentContentMapDeleted} message ExperimentContentMapDeleted message or plain object to encode
9303
+ * @param {$protobuf.Writer} [writer] Writer to encode to
9304
+ * @returns {$protobuf.Writer} Writer
9305
+ */
9306
+ ExperimentContentMapDeleted.encodeDelimited = function encodeDelimited(message, writer) {
9307
+ return this.encode(message, writer).ldelim();
9308
+ };
9309
+
9310
+ /**
9311
+ * Decodes an ExperimentContentMapDeleted message from the specified reader or buffer.
9312
+ * @function decode
9313
+ * @memberof ExperimentContentMapDeleted
9314
+ * @static
9315
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
9316
+ * @param {number} [length] Message length if known beforehand
9317
+ * @returns {ExperimentContentMapDeleted} ExperimentContentMapDeleted
9318
+ * @throws {Error} If the payload is not a reader or valid buffer
9319
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9320
+ */
9321
+ ExperimentContentMapDeleted.decode = function decode(reader, length) {
9322
+ if (!(reader instanceof $Reader))
9323
+ reader = $Reader.create(reader);
9324
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ExperimentContentMapDeleted();
9325
+ while (reader.pos < end) {
9326
+ var tag = reader.uint32();
9327
+ switch (tag >>> 3) {
9328
+ case 1:
9329
+ message.experimentName = reader.string();
9330
+ break;
9331
+ case 2:
9332
+ message.variationName = reader.string();
9333
+ break;
9334
+ case 3:
9335
+ message.deletedAt = reader.uint64();
9336
+ break;
9337
+ default:
9338
+ reader.skipType(tag & 7);
9339
+ break;
9340
+ }
9341
+ }
9342
+ return message;
9343
+ };
9344
+
9345
+ /**
9346
+ * Decodes an ExperimentContentMapDeleted message from the specified reader or buffer, length delimited.
9347
+ * @function decodeDelimited
9348
+ * @memberof ExperimentContentMapDeleted
9349
+ * @static
9350
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
9351
+ * @returns {ExperimentContentMapDeleted} ExperimentContentMapDeleted
9352
+ * @throws {Error} If the payload is not a reader or valid buffer
9353
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9354
+ */
9355
+ ExperimentContentMapDeleted.decodeDelimited = function decodeDelimited(reader) {
9356
+ if (!(reader instanceof $Reader))
9357
+ reader = new $Reader(reader);
9358
+ return this.decode(reader, reader.uint32());
9359
+ };
9360
+
9361
+ /**
9362
+ * Verifies an ExperimentContentMapDeleted message.
9363
+ * @function verify
9364
+ * @memberof ExperimentContentMapDeleted
9365
+ * @static
9366
+ * @param {Object.<string,*>} message Plain object to verify
9367
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
9368
+ */
9369
+ ExperimentContentMapDeleted.verify = function verify(message) {
9370
+ if (typeof message !== "object" || message === null)
9371
+ return "object expected";
9372
+ if (message.experimentName != null && message.hasOwnProperty("experimentName"))
9373
+ if (!$util.isString(message.experimentName))
9374
+ return "experimentName: string expected";
9375
+ if (message.variationName != null && message.hasOwnProperty("variationName"))
9376
+ if (!$util.isString(message.variationName))
9377
+ return "variationName: string expected";
9378
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
9379
+ if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
9380
+ return "deletedAt: integer|Long expected";
9381
+ return null;
9382
+ };
9383
+
9384
+ /**
9385
+ * Creates an ExperimentContentMapDeleted message from a plain object. Also converts values to their respective internal types.
9386
+ * @function fromObject
9387
+ * @memberof ExperimentContentMapDeleted
9388
+ * @static
9389
+ * @param {Object.<string,*>} object Plain object
9390
+ * @returns {ExperimentContentMapDeleted} ExperimentContentMapDeleted
9391
+ */
9392
+ ExperimentContentMapDeleted.fromObject = function fromObject(object) {
9393
+ if (object instanceof $root.ExperimentContentMapDeleted)
9394
+ return object;
9395
+ var message = new $root.ExperimentContentMapDeleted();
9396
+ if (object.experimentName != null)
9397
+ message.experimentName = String(object.experimentName);
9398
+ if (object.variationName != null)
9399
+ message.variationName = String(object.variationName);
9400
+ if (object.deletedAt != null)
9401
+ if ($util.Long)
9402
+ (message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
9403
+ else if (typeof object.deletedAt === "string")
9404
+ message.deletedAt = parseInt(object.deletedAt, 10);
9405
+ else if (typeof object.deletedAt === "number")
9406
+ message.deletedAt = object.deletedAt;
9407
+ else if (typeof object.deletedAt === "object")
9408
+ message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
9409
+ return message;
9410
+ };
9411
+
9412
+ /**
9413
+ * Creates a plain object from an ExperimentContentMapDeleted message. Also converts values to other types if specified.
9414
+ * @function toObject
9415
+ * @memberof ExperimentContentMapDeleted
9416
+ * @static
9417
+ * @param {ExperimentContentMapDeleted} message ExperimentContentMapDeleted
9418
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
9419
+ * @returns {Object.<string,*>} Plain object
9420
+ */
9421
+ ExperimentContentMapDeleted.toObject = function toObject(message, options) {
9422
+ if (!options)
9423
+ options = {};
9424
+ var object = {};
9425
+ if (options.defaults) {
9426
+ object.experimentName = "";
9427
+ object.variationName = "";
9428
+ if ($util.Long) {
9429
+ var long = new $util.Long(0, 0, true);
9430
+ object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
9431
+ } else
9432
+ object.deletedAt = options.longs === String ? "0" : 0;
9433
+ }
9434
+ if (message.experimentName != null && message.hasOwnProperty("experimentName"))
9435
+ object.experimentName = message.experimentName;
9436
+ if (message.variationName != null && message.hasOwnProperty("variationName"))
9437
+ object.variationName = message.variationName;
9438
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
9439
+ if (typeof message.deletedAt === "number")
9440
+ object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
9441
+ else
9442
+ 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;
9443
+ return object;
9444
+ };
9445
+
9446
+ /**
9447
+ * Converts this ExperimentContentMapDeleted to JSON.
9448
+ * @function toJSON
9449
+ * @memberof ExperimentContentMapDeleted
9450
+ * @instance
9451
+ * @returns {Object.<string,*>} JSON object
9452
+ */
9453
+ ExperimentContentMapDeleted.prototype.toJSON = function toJSON() {
9454
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
9455
+ };
9456
+
9457
+ return ExperimentContentMapDeleted;
9458
+ })();
9459
+
9214
9460
  $root.ReferralSignedUp = (function() {
9215
9461
 
9216
9462
  /**
package/package.json CHANGED
@@ -16,5 +16,5 @@
16
16
  "main": "lib/index.js",
17
17
  "name": "@headspace/protos-events",
18
18
  "typings": "lib/index.d.ts",
19
- "version": "1.65.0"
19
+ "version": "1.66.0"
20
20
  }