@headspace/protos-events 1.495.0 → 1.496.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
@@ -31241,6 +31241,102 @@ export class HeadspaceContentSharePreviewCreated implements IHeadspaceContentSha
31241
31241
  public toJSON(): { [k: string]: any };
31242
31242
  }
31243
31243
 
31244
+ /** Properties of a UserBatchPredictionsGenerated. */
31245
+ export interface IUserBatchPredictionsGenerated {
31246
+
31247
+ /** UserBatchPredictionsGenerated outputFilePath */
31248
+ outputFilePath?: (string|null);
31249
+
31250
+ /** UserBatchPredictionsGenerated messageScheduleTimestamp */
31251
+ messageScheduleTimestamp?: (number|Long|null);
31252
+ }
31253
+
31254
+ /** Represents a UserBatchPredictionsGenerated. */
31255
+ export class UserBatchPredictionsGenerated implements IUserBatchPredictionsGenerated {
31256
+
31257
+ /**
31258
+ * Constructs a new UserBatchPredictionsGenerated.
31259
+ * @param [properties] Properties to set
31260
+ */
31261
+ constructor(properties?: IUserBatchPredictionsGenerated);
31262
+
31263
+ /** UserBatchPredictionsGenerated outputFilePath. */
31264
+ public outputFilePath: string;
31265
+
31266
+ /** UserBatchPredictionsGenerated messageScheduleTimestamp. */
31267
+ public messageScheduleTimestamp: (number|Long);
31268
+
31269
+ /**
31270
+ * Creates a new UserBatchPredictionsGenerated instance using the specified properties.
31271
+ * @param [properties] Properties to set
31272
+ * @returns UserBatchPredictionsGenerated instance
31273
+ */
31274
+ public static create(properties?: IUserBatchPredictionsGenerated): UserBatchPredictionsGenerated;
31275
+
31276
+ /**
31277
+ * Encodes the specified UserBatchPredictionsGenerated message. Does not implicitly {@link UserBatchPredictionsGenerated.verify|verify} messages.
31278
+ * @param message UserBatchPredictionsGenerated message or plain object to encode
31279
+ * @param [writer] Writer to encode to
31280
+ * @returns Writer
31281
+ */
31282
+ public static encode(message: IUserBatchPredictionsGenerated, writer?: $protobuf.Writer): $protobuf.Writer;
31283
+
31284
+ /**
31285
+ * Encodes the specified UserBatchPredictionsGenerated message, length delimited. Does not implicitly {@link UserBatchPredictionsGenerated.verify|verify} messages.
31286
+ * @param message UserBatchPredictionsGenerated message or plain object to encode
31287
+ * @param [writer] Writer to encode to
31288
+ * @returns Writer
31289
+ */
31290
+ public static encodeDelimited(message: IUserBatchPredictionsGenerated, writer?: $protobuf.Writer): $protobuf.Writer;
31291
+
31292
+ /**
31293
+ * Decodes a UserBatchPredictionsGenerated message from the specified reader or buffer.
31294
+ * @param reader Reader or buffer to decode from
31295
+ * @param [length] Message length if known beforehand
31296
+ * @returns UserBatchPredictionsGenerated
31297
+ * @throws {Error} If the payload is not a reader or valid buffer
31298
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
31299
+ */
31300
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserBatchPredictionsGenerated;
31301
+
31302
+ /**
31303
+ * Decodes a UserBatchPredictionsGenerated message from the specified reader or buffer, length delimited.
31304
+ * @param reader Reader or buffer to decode from
31305
+ * @returns UserBatchPredictionsGenerated
31306
+ * @throws {Error} If the payload is not a reader or valid buffer
31307
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
31308
+ */
31309
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserBatchPredictionsGenerated;
31310
+
31311
+ /**
31312
+ * Verifies a UserBatchPredictionsGenerated message.
31313
+ * @param message Plain object to verify
31314
+ * @returns `null` if valid, otherwise the reason why it is not
31315
+ */
31316
+ public static verify(message: { [k: string]: any }): (string|null);
31317
+
31318
+ /**
31319
+ * Creates a UserBatchPredictionsGenerated message from a plain object. Also converts values to their respective internal types.
31320
+ * @param object Plain object
31321
+ * @returns UserBatchPredictionsGenerated
31322
+ */
31323
+ public static fromObject(object: { [k: string]: any }): UserBatchPredictionsGenerated;
31324
+
31325
+ /**
31326
+ * Creates a plain object from a UserBatchPredictionsGenerated message. Also converts values to other types if specified.
31327
+ * @param message UserBatchPredictionsGenerated
31328
+ * @param [options] Conversion options
31329
+ * @returns Plain object
31330
+ */
31331
+ public static toObject(message: UserBatchPredictionsGenerated, options?: $protobuf.IConversionOptions): { [k: string]: any };
31332
+
31333
+ /**
31334
+ * Converts this UserBatchPredictionsGenerated to JSON.
31335
+ * @returns JSON object
31336
+ */
31337
+ public toJSON(): { [k: string]: any };
31338
+ }
31339
+
31244
31340
  /** Properties of an AmazonPurchasePeriod. */
31245
31341
  export interface IAmazonPurchasePeriod {
31246
31342
 
package/lib/index.js CHANGED
@@ -86880,6 +86880,230 @@ $root.HeadspaceContentSharePreviewCreated = (function() {
86880
86880
  return HeadspaceContentSharePreviewCreated;
86881
86881
  })();
86882
86882
 
86883
+ $root.UserBatchPredictionsGenerated = (function() {
86884
+
86885
+ /**
86886
+ * Properties of a UserBatchPredictionsGenerated.
86887
+ * @name IUserBatchPredictionsGenerated
86888
+ * @interface IUserBatchPredictionsGenerated
86889
+ * @property {string|null} [outputFilePath] UserBatchPredictionsGenerated outputFilePath
86890
+ * @property {number|Long|null} [messageScheduleTimestamp] UserBatchPredictionsGenerated messageScheduleTimestamp
86891
+ */
86892
+
86893
+ /**
86894
+ * Constructs a new UserBatchPredictionsGenerated.
86895
+ * @name UserBatchPredictionsGenerated
86896
+ * @classdesc Represents a UserBatchPredictionsGenerated.
86897
+ * @implements IUserBatchPredictionsGenerated
86898
+ * @constructor
86899
+ * @param {IUserBatchPredictionsGenerated=} [properties] Properties to set
86900
+ */
86901
+ function UserBatchPredictionsGenerated(properties) {
86902
+ if (properties)
86903
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
86904
+ if (properties[keys[i]] != null)
86905
+ this[keys[i]] = properties[keys[i]];
86906
+ }
86907
+
86908
+ /**
86909
+ * UserBatchPredictionsGenerated outputFilePath.
86910
+ * @member {string} outputFilePath
86911
+ * @memberof UserBatchPredictionsGenerated
86912
+ * @instance
86913
+ */
86914
+ UserBatchPredictionsGenerated.prototype.outputFilePath = "";
86915
+
86916
+ /**
86917
+ * UserBatchPredictionsGenerated messageScheduleTimestamp.
86918
+ * @member {number|Long} messageScheduleTimestamp
86919
+ * @memberof UserBatchPredictionsGenerated
86920
+ * @instance
86921
+ */
86922
+ UserBatchPredictionsGenerated.prototype.messageScheduleTimestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
86923
+
86924
+ /**
86925
+ * Creates a new UserBatchPredictionsGenerated instance using the specified properties.
86926
+ * @function create
86927
+ * @memberof UserBatchPredictionsGenerated
86928
+ * @static
86929
+ * @param {IUserBatchPredictionsGenerated=} [properties] Properties to set
86930
+ * @returns {UserBatchPredictionsGenerated} UserBatchPredictionsGenerated instance
86931
+ */
86932
+ UserBatchPredictionsGenerated.create = function create(properties) {
86933
+ return new UserBatchPredictionsGenerated(properties);
86934
+ };
86935
+
86936
+ /**
86937
+ * Encodes the specified UserBatchPredictionsGenerated message. Does not implicitly {@link UserBatchPredictionsGenerated.verify|verify} messages.
86938
+ * @function encode
86939
+ * @memberof UserBatchPredictionsGenerated
86940
+ * @static
86941
+ * @param {IUserBatchPredictionsGenerated} message UserBatchPredictionsGenerated message or plain object to encode
86942
+ * @param {$protobuf.Writer} [writer] Writer to encode to
86943
+ * @returns {$protobuf.Writer} Writer
86944
+ */
86945
+ UserBatchPredictionsGenerated.encode = function encode(message, writer) {
86946
+ if (!writer)
86947
+ writer = $Writer.create();
86948
+ if (message.outputFilePath != null && message.hasOwnProperty("outputFilePath"))
86949
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.outputFilePath);
86950
+ if (message.messageScheduleTimestamp != null && message.hasOwnProperty("messageScheduleTimestamp"))
86951
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.messageScheduleTimestamp);
86952
+ return writer;
86953
+ };
86954
+
86955
+ /**
86956
+ * Encodes the specified UserBatchPredictionsGenerated message, length delimited. Does not implicitly {@link UserBatchPredictionsGenerated.verify|verify} messages.
86957
+ * @function encodeDelimited
86958
+ * @memberof UserBatchPredictionsGenerated
86959
+ * @static
86960
+ * @param {IUserBatchPredictionsGenerated} message UserBatchPredictionsGenerated message or plain object to encode
86961
+ * @param {$protobuf.Writer} [writer] Writer to encode to
86962
+ * @returns {$protobuf.Writer} Writer
86963
+ */
86964
+ UserBatchPredictionsGenerated.encodeDelimited = function encodeDelimited(message, writer) {
86965
+ return this.encode(message, writer).ldelim();
86966
+ };
86967
+
86968
+ /**
86969
+ * Decodes a UserBatchPredictionsGenerated message from the specified reader or buffer.
86970
+ * @function decode
86971
+ * @memberof UserBatchPredictionsGenerated
86972
+ * @static
86973
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
86974
+ * @param {number} [length] Message length if known beforehand
86975
+ * @returns {UserBatchPredictionsGenerated} UserBatchPredictionsGenerated
86976
+ * @throws {Error} If the payload is not a reader or valid buffer
86977
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
86978
+ */
86979
+ UserBatchPredictionsGenerated.decode = function decode(reader, length) {
86980
+ if (!(reader instanceof $Reader))
86981
+ reader = $Reader.create(reader);
86982
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserBatchPredictionsGenerated();
86983
+ while (reader.pos < end) {
86984
+ var tag = reader.uint32();
86985
+ switch (tag >>> 3) {
86986
+ case 1:
86987
+ message.outputFilePath = reader.string();
86988
+ break;
86989
+ case 2:
86990
+ message.messageScheduleTimestamp = reader.uint64();
86991
+ break;
86992
+ default:
86993
+ reader.skipType(tag & 7);
86994
+ break;
86995
+ }
86996
+ }
86997
+ return message;
86998
+ };
86999
+
87000
+ /**
87001
+ * Decodes a UserBatchPredictionsGenerated message from the specified reader or buffer, length delimited.
87002
+ * @function decodeDelimited
87003
+ * @memberof UserBatchPredictionsGenerated
87004
+ * @static
87005
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
87006
+ * @returns {UserBatchPredictionsGenerated} UserBatchPredictionsGenerated
87007
+ * @throws {Error} If the payload is not a reader or valid buffer
87008
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
87009
+ */
87010
+ UserBatchPredictionsGenerated.decodeDelimited = function decodeDelimited(reader) {
87011
+ if (!(reader instanceof $Reader))
87012
+ reader = new $Reader(reader);
87013
+ return this.decode(reader, reader.uint32());
87014
+ };
87015
+
87016
+ /**
87017
+ * Verifies a UserBatchPredictionsGenerated message.
87018
+ * @function verify
87019
+ * @memberof UserBatchPredictionsGenerated
87020
+ * @static
87021
+ * @param {Object.<string,*>} message Plain object to verify
87022
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
87023
+ */
87024
+ UserBatchPredictionsGenerated.verify = function verify(message) {
87025
+ if (typeof message !== "object" || message === null)
87026
+ return "object expected";
87027
+ if (message.outputFilePath != null && message.hasOwnProperty("outputFilePath"))
87028
+ if (!$util.isString(message.outputFilePath))
87029
+ return "outputFilePath: string expected";
87030
+ if (message.messageScheduleTimestamp != null && message.hasOwnProperty("messageScheduleTimestamp"))
87031
+ if (!$util.isInteger(message.messageScheduleTimestamp) && !(message.messageScheduleTimestamp && $util.isInteger(message.messageScheduleTimestamp.low) && $util.isInteger(message.messageScheduleTimestamp.high)))
87032
+ return "messageScheduleTimestamp: integer|Long expected";
87033
+ return null;
87034
+ };
87035
+
87036
+ /**
87037
+ * Creates a UserBatchPredictionsGenerated message from a plain object. Also converts values to their respective internal types.
87038
+ * @function fromObject
87039
+ * @memberof UserBatchPredictionsGenerated
87040
+ * @static
87041
+ * @param {Object.<string,*>} object Plain object
87042
+ * @returns {UserBatchPredictionsGenerated} UserBatchPredictionsGenerated
87043
+ */
87044
+ UserBatchPredictionsGenerated.fromObject = function fromObject(object) {
87045
+ if (object instanceof $root.UserBatchPredictionsGenerated)
87046
+ return object;
87047
+ var message = new $root.UserBatchPredictionsGenerated();
87048
+ if (object.outputFilePath != null)
87049
+ message.outputFilePath = String(object.outputFilePath);
87050
+ if (object.messageScheduleTimestamp != null)
87051
+ if ($util.Long)
87052
+ (message.messageScheduleTimestamp = $util.Long.fromValue(object.messageScheduleTimestamp)).unsigned = true;
87053
+ else if (typeof object.messageScheduleTimestamp === "string")
87054
+ message.messageScheduleTimestamp = parseInt(object.messageScheduleTimestamp, 10);
87055
+ else if (typeof object.messageScheduleTimestamp === "number")
87056
+ message.messageScheduleTimestamp = object.messageScheduleTimestamp;
87057
+ else if (typeof object.messageScheduleTimestamp === "object")
87058
+ message.messageScheduleTimestamp = new $util.LongBits(object.messageScheduleTimestamp.low >>> 0, object.messageScheduleTimestamp.high >>> 0).toNumber(true);
87059
+ return message;
87060
+ };
87061
+
87062
+ /**
87063
+ * Creates a plain object from a UserBatchPredictionsGenerated message. Also converts values to other types if specified.
87064
+ * @function toObject
87065
+ * @memberof UserBatchPredictionsGenerated
87066
+ * @static
87067
+ * @param {UserBatchPredictionsGenerated} message UserBatchPredictionsGenerated
87068
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
87069
+ * @returns {Object.<string,*>} Plain object
87070
+ */
87071
+ UserBatchPredictionsGenerated.toObject = function toObject(message, options) {
87072
+ if (!options)
87073
+ options = {};
87074
+ var object = {};
87075
+ if (options.defaults) {
87076
+ object.outputFilePath = "";
87077
+ if ($util.Long) {
87078
+ var long = new $util.Long(0, 0, true);
87079
+ object.messageScheduleTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
87080
+ } else
87081
+ object.messageScheduleTimestamp = options.longs === String ? "0" : 0;
87082
+ }
87083
+ if (message.outputFilePath != null && message.hasOwnProperty("outputFilePath"))
87084
+ object.outputFilePath = message.outputFilePath;
87085
+ if (message.messageScheduleTimestamp != null && message.hasOwnProperty("messageScheduleTimestamp"))
87086
+ if (typeof message.messageScheduleTimestamp === "number")
87087
+ object.messageScheduleTimestamp = options.longs === String ? String(message.messageScheduleTimestamp) : message.messageScheduleTimestamp;
87088
+ else
87089
+ object.messageScheduleTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.messageScheduleTimestamp) : options.longs === Number ? new $util.LongBits(message.messageScheduleTimestamp.low >>> 0, message.messageScheduleTimestamp.high >>> 0).toNumber(true) : message.messageScheduleTimestamp;
87090
+ return object;
87091
+ };
87092
+
87093
+ /**
87094
+ * Converts this UserBatchPredictionsGenerated to JSON.
87095
+ * @function toJSON
87096
+ * @memberof UserBatchPredictionsGenerated
87097
+ * @instance
87098
+ * @returns {Object.<string,*>} JSON object
87099
+ */
87100
+ UserBatchPredictionsGenerated.prototype.toJSON = function toJSON() {
87101
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
87102
+ };
87103
+
87104
+ return UserBatchPredictionsGenerated;
87105
+ })();
87106
+
86883
87107
  $root.AmazonPurchasePeriod = (function() {
86884
87108
 
86885
87109
  /**
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.495.0"
19
+ "version": "1.496.0"
20
20
  }