@headspace/protos-events 1.496.0 → 1.498.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 +216 -0
- package/lib/index.js +544 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -31241,6 +31241,216 @@ export class HeadspaceContentSharePreviewCreated implements IHeadspaceContentSha
|
|
|
31241
31241
|
public toJSON(): { [k: string]: any };
|
|
31242
31242
|
}
|
|
31243
31243
|
|
|
31244
|
+
/** Properties of a UserMessageBrazePushNotification. */
|
|
31245
|
+
export interface IUserMessageBrazePushNotification {
|
|
31246
|
+
|
|
31247
|
+
/** UserMessageBrazePushNotification userId */
|
|
31248
|
+
userId?: (string|null);
|
|
31249
|
+
|
|
31250
|
+
/** UserMessageBrazePushNotification brazeMessageHeader */
|
|
31251
|
+
brazeMessageHeader?: (string|null);
|
|
31252
|
+
|
|
31253
|
+
/** UserMessageBrazePushNotification brazeMessageBody */
|
|
31254
|
+
brazeMessageBody?: (string|null);
|
|
31255
|
+
|
|
31256
|
+
/** UserMessageBrazePushNotification brazeMessageDeeplink */
|
|
31257
|
+
brazeMessageDeeplink?: (string|null);
|
|
31258
|
+
}
|
|
31259
|
+
|
|
31260
|
+
/** Represents a UserMessageBrazePushNotification. */
|
|
31261
|
+
export class UserMessageBrazePushNotification implements IUserMessageBrazePushNotification {
|
|
31262
|
+
|
|
31263
|
+
/**
|
|
31264
|
+
* Constructs a new UserMessageBrazePushNotification.
|
|
31265
|
+
* @param [properties] Properties to set
|
|
31266
|
+
*/
|
|
31267
|
+
constructor(properties?: IUserMessageBrazePushNotification);
|
|
31268
|
+
|
|
31269
|
+
/** UserMessageBrazePushNotification userId. */
|
|
31270
|
+
public userId: string;
|
|
31271
|
+
|
|
31272
|
+
/** UserMessageBrazePushNotification brazeMessageHeader. */
|
|
31273
|
+
public brazeMessageHeader: string;
|
|
31274
|
+
|
|
31275
|
+
/** UserMessageBrazePushNotification brazeMessageBody. */
|
|
31276
|
+
public brazeMessageBody: string;
|
|
31277
|
+
|
|
31278
|
+
/** UserMessageBrazePushNotification brazeMessageDeeplink. */
|
|
31279
|
+
public brazeMessageDeeplink: string;
|
|
31280
|
+
|
|
31281
|
+
/**
|
|
31282
|
+
* Creates a new UserMessageBrazePushNotification instance using the specified properties.
|
|
31283
|
+
* @param [properties] Properties to set
|
|
31284
|
+
* @returns UserMessageBrazePushNotification instance
|
|
31285
|
+
*/
|
|
31286
|
+
public static create(properties?: IUserMessageBrazePushNotification): UserMessageBrazePushNotification;
|
|
31287
|
+
|
|
31288
|
+
/**
|
|
31289
|
+
* Encodes the specified UserMessageBrazePushNotification message. Does not implicitly {@link UserMessageBrazePushNotification.verify|verify} messages.
|
|
31290
|
+
* @param message UserMessageBrazePushNotification message or plain object to encode
|
|
31291
|
+
* @param [writer] Writer to encode to
|
|
31292
|
+
* @returns Writer
|
|
31293
|
+
*/
|
|
31294
|
+
public static encode(message: IUserMessageBrazePushNotification, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
31295
|
+
|
|
31296
|
+
/**
|
|
31297
|
+
* Encodes the specified UserMessageBrazePushNotification message, length delimited. Does not implicitly {@link UserMessageBrazePushNotification.verify|verify} messages.
|
|
31298
|
+
* @param message UserMessageBrazePushNotification message or plain object to encode
|
|
31299
|
+
* @param [writer] Writer to encode to
|
|
31300
|
+
* @returns Writer
|
|
31301
|
+
*/
|
|
31302
|
+
public static encodeDelimited(message: IUserMessageBrazePushNotification, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
31303
|
+
|
|
31304
|
+
/**
|
|
31305
|
+
* Decodes a UserMessageBrazePushNotification message from the specified reader or buffer.
|
|
31306
|
+
* @param reader Reader or buffer to decode from
|
|
31307
|
+
* @param [length] Message length if known beforehand
|
|
31308
|
+
* @returns UserMessageBrazePushNotification
|
|
31309
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
31310
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
31311
|
+
*/
|
|
31312
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserMessageBrazePushNotification;
|
|
31313
|
+
|
|
31314
|
+
/**
|
|
31315
|
+
* Decodes a UserMessageBrazePushNotification message from the specified reader or buffer, length delimited.
|
|
31316
|
+
* @param reader Reader or buffer to decode from
|
|
31317
|
+
* @returns UserMessageBrazePushNotification
|
|
31318
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
31319
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
31320
|
+
*/
|
|
31321
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserMessageBrazePushNotification;
|
|
31322
|
+
|
|
31323
|
+
/**
|
|
31324
|
+
* Verifies a UserMessageBrazePushNotification message.
|
|
31325
|
+
* @param message Plain object to verify
|
|
31326
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
31327
|
+
*/
|
|
31328
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
31329
|
+
|
|
31330
|
+
/**
|
|
31331
|
+
* Creates a UserMessageBrazePushNotification message from a plain object. Also converts values to their respective internal types.
|
|
31332
|
+
* @param object Plain object
|
|
31333
|
+
* @returns UserMessageBrazePushNotification
|
|
31334
|
+
*/
|
|
31335
|
+
public static fromObject(object: { [k: string]: any }): UserMessageBrazePushNotification;
|
|
31336
|
+
|
|
31337
|
+
/**
|
|
31338
|
+
* Creates a plain object from a UserMessageBrazePushNotification message. Also converts values to other types if specified.
|
|
31339
|
+
* @param message UserMessageBrazePushNotification
|
|
31340
|
+
* @param [options] Conversion options
|
|
31341
|
+
* @returns Plain object
|
|
31342
|
+
*/
|
|
31343
|
+
public static toObject(message: UserMessageBrazePushNotification, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
31344
|
+
|
|
31345
|
+
/**
|
|
31346
|
+
* Converts this UserMessageBrazePushNotification to JSON.
|
|
31347
|
+
* @returns JSON object
|
|
31348
|
+
*/
|
|
31349
|
+
public toJSON(): { [k: string]: any };
|
|
31350
|
+
}
|
|
31351
|
+
|
|
31352
|
+
/** Properties of a UserMessageBrazePushNotificationScheduled. */
|
|
31353
|
+
export interface IUserMessageBrazePushNotificationScheduled {
|
|
31354
|
+
|
|
31355
|
+
/** UserMessageBrazePushNotificationScheduled brazeCanvasId */
|
|
31356
|
+
brazeCanvasId?: (string|null);
|
|
31357
|
+
|
|
31358
|
+
/** UserMessageBrazePushNotificationScheduled messageScheduleTimestamp */
|
|
31359
|
+
messageScheduleTimestamp?: (number|Long|null);
|
|
31360
|
+
|
|
31361
|
+
/** UserMessageBrazePushNotificationScheduled userMessage */
|
|
31362
|
+
userMessage?: (IUserMessageBrazePushNotification[]|null);
|
|
31363
|
+
}
|
|
31364
|
+
|
|
31365
|
+
/** Represents a UserMessageBrazePushNotificationScheduled. */
|
|
31366
|
+
export class UserMessageBrazePushNotificationScheduled implements IUserMessageBrazePushNotificationScheduled {
|
|
31367
|
+
|
|
31368
|
+
/**
|
|
31369
|
+
* Constructs a new UserMessageBrazePushNotificationScheduled.
|
|
31370
|
+
* @param [properties] Properties to set
|
|
31371
|
+
*/
|
|
31372
|
+
constructor(properties?: IUserMessageBrazePushNotificationScheduled);
|
|
31373
|
+
|
|
31374
|
+
/** UserMessageBrazePushNotificationScheduled brazeCanvasId. */
|
|
31375
|
+
public brazeCanvasId: string;
|
|
31376
|
+
|
|
31377
|
+
/** UserMessageBrazePushNotificationScheduled messageScheduleTimestamp. */
|
|
31378
|
+
public messageScheduleTimestamp: (number|Long);
|
|
31379
|
+
|
|
31380
|
+
/** UserMessageBrazePushNotificationScheduled userMessage. */
|
|
31381
|
+
public userMessage: IUserMessageBrazePushNotification[];
|
|
31382
|
+
|
|
31383
|
+
/**
|
|
31384
|
+
* Creates a new UserMessageBrazePushNotificationScheduled instance using the specified properties.
|
|
31385
|
+
* @param [properties] Properties to set
|
|
31386
|
+
* @returns UserMessageBrazePushNotificationScheduled instance
|
|
31387
|
+
*/
|
|
31388
|
+
public static create(properties?: IUserMessageBrazePushNotificationScheduled): UserMessageBrazePushNotificationScheduled;
|
|
31389
|
+
|
|
31390
|
+
/**
|
|
31391
|
+
* Encodes the specified UserMessageBrazePushNotificationScheduled message. Does not implicitly {@link UserMessageBrazePushNotificationScheduled.verify|verify} messages.
|
|
31392
|
+
* @param message UserMessageBrazePushNotificationScheduled message or plain object to encode
|
|
31393
|
+
* @param [writer] Writer to encode to
|
|
31394
|
+
* @returns Writer
|
|
31395
|
+
*/
|
|
31396
|
+
public static encode(message: IUserMessageBrazePushNotificationScheduled, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
31397
|
+
|
|
31398
|
+
/**
|
|
31399
|
+
* Encodes the specified UserMessageBrazePushNotificationScheduled message, length delimited. Does not implicitly {@link UserMessageBrazePushNotificationScheduled.verify|verify} messages.
|
|
31400
|
+
* @param message UserMessageBrazePushNotificationScheduled message or plain object to encode
|
|
31401
|
+
* @param [writer] Writer to encode to
|
|
31402
|
+
* @returns Writer
|
|
31403
|
+
*/
|
|
31404
|
+
public static encodeDelimited(message: IUserMessageBrazePushNotificationScheduled, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
31405
|
+
|
|
31406
|
+
/**
|
|
31407
|
+
* Decodes a UserMessageBrazePushNotificationScheduled message from the specified reader or buffer.
|
|
31408
|
+
* @param reader Reader or buffer to decode from
|
|
31409
|
+
* @param [length] Message length if known beforehand
|
|
31410
|
+
* @returns UserMessageBrazePushNotificationScheduled
|
|
31411
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
31412
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
31413
|
+
*/
|
|
31414
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserMessageBrazePushNotificationScheduled;
|
|
31415
|
+
|
|
31416
|
+
/**
|
|
31417
|
+
* Decodes a UserMessageBrazePushNotificationScheduled message from the specified reader or buffer, length delimited.
|
|
31418
|
+
* @param reader Reader or buffer to decode from
|
|
31419
|
+
* @returns UserMessageBrazePushNotificationScheduled
|
|
31420
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
31421
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
31422
|
+
*/
|
|
31423
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserMessageBrazePushNotificationScheduled;
|
|
31424
|
+
|
|
31425
|
+
/**
|
|
31426
|
+
* Verifies a UserMessageBrazePushNotificationScheduled message.
|
|
31427
|
+
* @param message Plain object to verify
|
|
31428
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
31429
|
+
*/
|
|
31430
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
31431
|
+
|
|
31432
|
+
/**
|
|
31433
|
+
* Creates a UserMessageBrazePushNotificationScheduled message from a plain object. Also converts values to their respective internal types.
|
|
31434
|
+
* @param object Plain object
|
|
31435
|
+
* @returns UserMessageBrazePushNotificationScheduled
|
|
31436
|
+
*/
|
|
31437
|
+
public static fromObject(object: { [k: string]: any }): UserMessageBrazePushNotificationScheduled;
|
|
31438
|
+
|
|
31439
|
+
/**
|
|
31440
|
+
* Creates a plain object from a UserMessageBrazePushNotificationScheduled message. Also converts values to other types if specified.
|
|
31441
|
+
* @param message UserMessageBrazePushNotificationScheduled
|
|
31442
|
+
* @param [options] Conversion options
|
|
31443
|
+
* @returns Plain object
|
|
31444
|
+
*/
|
|
31445
|
+
public static toObject(message: UserMessageBrazePushNotificationScheduled, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
31446
|
+
|
|
31447
|
+
/**
|
|
31448
|
+
* Converts this UserMessageBrazePushNotificationScheduled to JSON.
|
|
31449
|
+
* @returns JSON object
|
|
31450
|
+
*/
|
|
31451
|
+
public toJSON(): { [k: string]: any };
|
|
31452
|
+
}
|
|
31453
|
+
|
|
31244
31454
|
/** Properties of a UserBatchPredictionsGenerated. */
|
|
31245
31455
|
export interface IUserBatchPredictionsGenerated {
|
|
31246
31456
|
|
|
@@ -35334,6 +35544,9 @@ export interface IEnterpriseUserEnrollmentCreated {
|
|
|
35334
35544
|
|
|
35335
35545
|
/** EnterpriseUserEnrollmentCreated enrollmentFlow */
|
|
35336
35546
|
enrollmentFlow?: (EnrollmentFlow|null);
|
|
35547
|
+
|
|
35548
|
+
/** EnterpriseUserEnrollmentCreated workEmail */
|
|
35549
|
+
workEmail?: (string|null);
|
|
35337
35550
|
}
|
|
35338
35551
|
|
|
35339
35552
|
/** Represents an EnterpriseUserEnrollmentCreated. */
|
|
@@ -35426,6 +35639,9 @@ export class EnterpriseUserEnrollmentCreated implements IEnterpriseUserEnrollmen
|
|
|
35426
35639
|
/** EnterpriseUserEnrollmentCreated enrollmentFlow. */
|
|
35427
35640
|
public enrollmentFlow: EnrollmentFlow;
|
|
35428
35641
|
|
|
35642
|
+
/** EnterpriseUserEnrollmentCreated workEmail. */
|
|
35643
|
+
public workEmail: string;
|
|
35644
|
+
|
|
35429
35645
|
/**
|
|
35430
35646
|
* Creates a new EnterpriseUserEnrollmentCreated instance using the specified properties.
|
|
35431
35647
|
* @param [properties] Properties to set
|
package/lib/index.js
CHANGED
|
@@ -86880,6 +86880,528 @@ $root.HeadspaceContentSharePreviewCreated = (function() {
|
|
|
86880
86880
|
return HeadspaceContentSharePreviewCreated;
|
|
86881
86881
|
})();
|
|
86882
86882
|
|
|
86883
|
+
$root.UserMessageBrazePushNotification = (function() {
|
|
86884
|
+
|
|
86885
|
+
/**
|
|
86886
|
+
* Properties of a UserMessageBrazePushNotification.
|
|
86887
|
+
* @name IUserMessageBrazePushNotification
|
|
86888
|
+
* @interface IUserMessageBrazePushNotification
|
|
86889
|
+
* @property {string|null} [userId] UserMessageBrazePushNotification userId
|
|
86890
|
+
* @property {string|null} [brazeMessageHeader] UserMessageBrazePushNotification brazeMessageHeader
|
|
86891
|
+
* @property {string|null} [brazeMessageBody] UserMessageBrazePushNotification brazeMessageBody
|
|
86892
|
+
* @property {string|null} [brazeMessageDeeplink] UserMessageBrazePushNotification brazeMessageDeeplink
|
|
86893
|
+
*/
|
|
86894
|
+
|
|
86895
|
+
/**
|
|
86896
|
+
* Constructs a new UserMessageBrazePushNotification.
|
|
86897
|
+
* @name UserMessageBrazePushNotification
|
|
86898
|
+
* @classdesc Represents a UserMessageBrazePushNotification.
|
|
86899
|
+
* @implements IUserMessageBrazePushNotification
|
|
86900
|
+
* @constructor
|
|
86901
|
+
* @param {IUserMessageBrazePushNotification=} [properties] Properties to set
|
|
86902
|
+
*/
|
|
86903
|
+
function UserMessageBrazePushNotification(properties) {
|
|
86904
|
+
if (properties)
|
|
86905
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
86906
|
+
if (properties[keys[i]] != null)
|
|
86907
|
+
this[keys[i]] = properties[keys[i]];
|
|
86908
|
+
}
|
|
86909
|
+
|
|
86910
|
+
/**
|
|
86911
|
+
* UserMessageBrazePushNotification userId.
|
|
86912
|
+
* @member {string} userId
|
|
86913
|
+
* @memberof UserMessageBrazePushNotification
|
|
86914
|
+
* @instance
|
|
86915
|
+
*/
|
|
86916
|
+
UserMessageBrazePushNotification.prototype.userId = "";
|
|
86917
|
+
|
|
86918
|
+
/**
|
|
86919
|
+
* UserMessageBrazePushNotification brazeMessageHeader.
|
|
86920
|
+
* @member {string} brazeMessageHeader
|
|
86921
|
+
* @memberof UserMessageBrazePushNotification
|
|
86922
|
+
* @instance
|
|
86923
|
+
*/
|
|
86924
|
+
UserMessageBrazePushNotification.prototype.brazeMessageHeader = "";
|
|
86925
|
+
|
|
86926
|
+
/**
|
|
86927
|
+
* UserMessageBrazePushNotification brazeMessageBody.
|
|
86928
|
+
* @member {string} brazeMessageBody
|
|
86929
|
+
* @memberof UserMessageBrazePushNotification
|
|
86930
|
+
* @instance
|
|
86931
|
+
*/
|
|
86932
|
+
UserMessageBrazePushNotification.prototype.brazeMessageBody = "";
|
|
86933
|
+
|
|
86934
|
+
/**
|
|
86935
|
+
* UserMessageBrazePushNotification brazeMessageDeeplink.
|
|
86936
|
+
* @member {string} brazeMessageDeeplink
|
|
86937
|
+
* @memberof UserMessageBrazePushNotification
|
|
86938
|
+
* @instance
|
|
86939
|
+
*/
|
|
86940
|
+
UserMessageBrazePushNotification.prototype.brazeMessageDeeplink = "";
|
|
86941
|
+
|
|
86942
|
+
/**
|
|
86943
|
+
* Creates a new UserMessageBrazePushNotification instance using the specified properties.
|
|
86944
|
+
* @function create
|
|
86945
|
+
* @memberof UserMessageBrazePushNotification
|
|
86946
|
+
* @static
|
|
86947
|
+
* @param {IUserMessageBrazePushNotification=} [properties] Properties to set
|
|
86948
|
+
* @returns {UserMessageBrazePushNotification} UserMessageBrazePushNotification instance
|
|
86949
|
+
*/
|
|
86950
|
+
UserMessageBrazePushNotification.create = function create(properties) {
|
|
86951
|
+
return new UserMessageBrazePushNotification(properties);
|
|
86952
|
+
};
|
|
86953
|
+
|
|
86954
|
+
/**
|
|
86955
|
+
* Encodes the specified UserMessageBrazePushNotification message. Does not implicitly {@link UserMessageBrazePushNotification.verify|verify} messages.
|
|
86956
|
+
* @function encode
|
|
86957
|
+
* @memberof UserMessageBrazePushNotification
|
|
86958
|
+
* @static
|
|
86959
|
+
* @param {IUserMessageBrazePushNotification} message UserMessageBrazePushNotification message or plain object to encode
|
|
86960
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
86961
|
+
* @returns {$protobuf.Writer} Writer
|
|
86962
|
+
*/
|
|
86963
|
+
UserMessageBrazePushNotification.encode = function encode(message, writer) {
|
|
86964
|
+
if (!writer)
|
|
86965
|
+
writer = $Writer.create();
|
|
86966
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
86967
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
|
|
86968
|
+
if (message.brazeMessageHeader != null && message.hasOwnProperty("brazeMessageHeader"))
|
|
86969
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.brazeMessageHeader);
|
|
86970
|
+
if (message.brazeMessageBody != null && message.hasOwnProperty("brazeMessageBody"))
|
|
86971
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.brazeMessageBody);
|
|
86972
|
+
if (message.brazeMessageDeeplink != null && message.hasOwnProperty("brazeMessageDeeplink"))
|
|
86973
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.brazeMessageDeeplink);
|
|
86974
|
+
return writer;
|
|
86975
|
+
};
|
|
86976
|
+
|
|
86977
|
+
/**
|
|
86978
|
+
* Encodes the specified UserMessageBrazePushNotification message, length delimited. Does not implicitly {@link UserMessageBrazePushNotification.verify|verify} messages.
|
|
86979
|
+
* @function encodeDelimited
|
|
86980
|
+
* @memberof UserMessageBrazePushNotification
|
|
86981
|
+
* @static
|
|
86982
|
+
* @param {IUserMessageBrazePushNotification} message UserMessageBrazePushNotification message or plain object to encode
|
|
86983
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
86984
|
+
* @returns {$protobuf.Writer} Writer
|
|
86985
|
+
*/
|
|
86986
|
+
UserMessageBrazePushNotification.encodeDelimited = function encodeDelimited(message, writer) {
|
|
86987
|
+
return this.encode(message, writer).ldelim();
|
|
86988
|
+
};
|
|
86989
|
+
|
|
86990
|
+
/**
|
|
86991
|
+
* Decodes a UserMessageBrazePushNotification message from the specified reader or buffer.
|
|
86992
|
+
* @function decode
|
|
86993
|
+
* @memberof UserMessageBrazePushNotification
|
|
86994
|
+
* @static
|
|
86995
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
86996
|
+
* @param {number} [length] Message length if known beforehand
|
|
86997
|
+
* @returns {UserMessageBrazePushNotification} UserMessageBrazePushNotification
|
|
86998
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
86999
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
87000
|
+
*/
|
|
87001
|
+
UserMessageBrazePushNotification.decode = function decode(reader, length) {
|
|
87002
|
+
if (!(reader instanceof $Reader))
|
|
87003
|
+
reader = $Reader.create(reader);
|
|
87004
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserMessageBrazePushNotification();
|
|
87005
|
+
while (reader.pos < end) {
|
|
87006
|
+
var tag = reader.uint32();
|
|
87007
|
+
switch (tag >>> 3) {
|
|
87008
|
+
case 1:
|
|
87009
|
+
message.userId = reader.string();
|
|
87010
|
+
break;
|
|
87011
|
+
case 2:
|
|
87012
|
+
message.brazeMessageHeader = reader.string();
|
|
87013
|
+
break;
|
|
87014
|
+
case 3:
|
|
87015
|
+
message.brazeMessageBody = reader.string();
|
|
87016
|
+
break;
|
|
87017
|
+
case 4:
|
|
87018
|
+
message.brazeMessageDeeplink = reader.string();
|
|
87019
|
+
break;
|
|
87020
|
+
default:
|
|
87021
|
+
reader.skipType(tag & 7);
|
|
87022
|
+
break;
|
|
87023
|
+
}
|
|
87024
|
+
}
|
|
87025
|
+
return message;
|
|
87026
|
+
};
|
|
87027
|
+
|
|
87028
|
+
/**
|
|
87029
|
+
* Decodes a UserMessageBrazePushNotification message from the specified reader or buffer, length delimited.
|
|
87030
|
+
* @function decodeDelimited
|
|
87031
|
+
* @memberof UserMessageBrazePushNotification
|
|
87032
|
+
* @static
|
|
87033
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
87034
|
+
* @returns {UserMessageBrazePushNotification} UserMessageBrazePushNotification
|
|
87035
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
87036
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
87037
|
+
*/
|
|
87038
|
+
UserMessageBrazePushNotification.decodeDelimited = function decodeDelimited(reader) {
|
|
87039
|
+
if (!(reader instanceof $Reader))
|
|
87040
|
+
reader = new $Reader(reader);
|
|
87041
|
+
return this.decode(reader, reader.uint32());
|
|
87042
|
+
};
|
|
87043
|
+
|
|
87044
|
+
/**
|
|
87045
|
+
* Verifies a UserMessageBrazePushNotification message.
|
|
87046
|
+
* @function verify
|
|
87047
|
+
* @memberof UserMessageBrazePushNotification
|
|
87048
|
+
* @static
|
|
87049
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
87050
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
87051
|
+
*/
|
|
87052
|
+
UserMessageBrazePushNotification.verify = function verify(message) {
|
|
87053
|
+
if (typeof message !== "object" || message === null)
|
|
87054
|
+
return "object expected";
|
|
87055
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
87056
|
+
if (!$util.isString(message.userId))
|
|
87057
|
+
return "userId: string expected";
|
|
87058
|
+
if (message.brazeMessageHeader != null && message.hasOwnProperty("brazeMessageHeader"))
|
|
87059
|
+
if (!$util.isString(message.brazeMessageHeader))
|
|
87060
|
+
return "brazeMessageHeader: string expected";
|
|
87061
|
+
if (message.brazeMessageBody != null && message.hasOwnProperty("brazeMessageBody"))
|
|
87062
|
+
if (!$util.isString(message.brazeMessageBody))
|
|
87063
|
+
return "brazeMessageBody: string expected";
|
|
87064
|
+
if (message.brazeMessageDeeplink != null && message.hasOwnProperty("brazeMessageDeeplink"))
|
|
87065
|
+
if (!$util.isString(message.brazeMessageDeeplink))
|
|
87066
|
+
return "brazeMessageDeeplink: string expected";
|
|
87067
|
+
return null;
|
|
87068
|
+
};
|
|
87069
|
+
|
|
87070
|
+
/**
|
|
87071
|
+
* Creates a UserMessageBrazePushNotification message from a plain object. Also converts values to their respective internal types.
|
|
87072
|
+
* @function fromObject
|
|
87073
|
+
* @memberof UserMessageBrazePushNotification
|
|
87074
|
+
* @static
|
|
87075
|
+
* @param {Object.<string,*>} object Plain object
|
|
87076
|
+
* @returns {UserMessageBrazePushNotification} UserMessageBrazePushNotification
|
|
87077
|
+
*/
|
|
87078
|
+
UserMessageBrazePushNotification.fromObject = function fromObject(object) {
|
|
87079
|
+
if (object instanceof $root.UserMessageBrazePushNotification)
|
|
87080
|
+
return object;
|
|
87081
|
+
var message = new $root.UserMessageBrazePushNotification();
|
|
87082
|
+
if (object.userId != null)
|
|
87083
|
+
message.userId = String(object.userId);
|
|
87084
|
+
if (object.brazeMessageHeader != null)
|
|
87085
|
+
message.brazeMessageHeader = String(object.brazeMessageHeader);
|
|
87086
|
+
if (object.brazeMessageBody != null)
|
|
87087
|
+
message.brazeMessageBody = String(object.brazeMessageBody);
|
|
87088
|
+
if (object.brazeMessageDeeplink != null)
|
|
87089
|
+
message.brazeMessageDeeplink = String(object.brazeMessageDeeplink);
|
|
87090
|
+
return message;
|
|
87091
|
+
};
|
|
87092
|
+
|
|
87093
|
+
/**
|
|
87094
|
+
* Creates a plain object from a UserMessageBrazePushNotification message. Also converts values to other types if specified.
|
|
87095
|
+
* @function toObject
|
|
87096
|
+
* @memberof UserMessageBrazePushNotification
|
|
87097
|
+
* @static
|
|
87098
|
+
* @param {UserMessageBrazePushNotification} message UserMessageBrazePushNotification
|
|
87099
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
87100
|
+
* @returns {Object.<string,*>} Plain object
|
|
87101
|
+
*/
|
|
87102
|
+
UserMessageBrazePushNotification.toObject = function toObject(message, options) {
|
|
87103
|
+
if (!options)
|
|
87104
|
+
options = {};
|
|
87105
|
+
var object = {};
|
|
87106
|
+
if (options.defaults) {
|
|
87107
|
+
object.userId = "";
|
|
87108
|
+
object.brazeMessageHeader = "";
|
|
87109
|
+
object.brazeMessageBody = "";
|
|
87110
|
+
object.brazeMessageDeeplink = "";
|
|
87111
|
+
}
|
|
87112
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
87113
|
+
object.userId = message.userId;
|
|
87114
|
+
if (message.brazeMessageHeader != null && message.hasOwnProperty("brazeMessageHeader"))
|
|
87115
|
+
object.brazeMessageHeader = message.brazeMessageHeader;
|
|
87116
|
+
if (message.brazeMessageBody != null && message.hasOwnProperty("brazeMessageBody"))
|
|
87117
|
+
object.brazeMessageBody = message.brazeMessageBody;
|
|
87118
|
+
if (message.brazeMessageDeeplink != null && message.hasOwnProperty("brazeMessageDeeplink"))
|
|
87119
|
+
object.brazeMessageDeeplink = message.brazeMessageDeeplink;
|
|
87120
|
+
return object;
|
|
87121
|
+
};
|
|
87122
|
+
|
|
87123
|
+
/**
|
|
87124
|
+
* Converts this UserMessageBrazePushNotification to JSON.
|
|
87125
|
+
* @function toJSON
|
|
87126
|
+
* @memberof UserMessageBrazePushNotification
|
|
87127
|
+
* @instance
|
|
87128
|
+
* @returns {Object.<string,*>} JSON object
|
|
87129
|
+
*/
|
|
87130
|
+
UserMessageBrazePushNotification.prototype.toJSON = function toJSON() {
|
|
87131
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
87132
|
+
};
|
|
87133
|
+
|
|
87134
|
+
return UserMessageBrazePushNotification;
|
|
87135
|
+
})();
|
|
87136
|
+
|
|
87137
|
+
$root.UserMessageBrazePushNotificationScheduled = (function() {
|
|
87138
|
+
|
|
87139
|
+
/**
|
|
87140
|
+
* Properties of a UserMessageBrazePushNotificationScheduled.
|
|
87141
|
+
* @name IUserMessageBrazePushNotificationScheduled
|
|
87142
|
+
* @interface IUserMessageBrazePushNotificationScheduled
|
|
87143
|
+
* @property {string|null} [brazeCanvasId] UserMessageBrazePushNotificationScheduled brazeCanvasId
|
|
87144
|
+
* @property {number|Long|null} [messageScheduleTimestamp] UserMessageBrazePushNotificationScheduled messageScheduleTimestamp
|
|
87145
|
+
* @property {Array.<IUserMessageBrazePushNotification>|null} [userMessage] UserMessageBrazePushNotificationScheduled userMessage
|
|
87146
|
+
*/
|
|
87147
|
+
|
|
87148
|
+
/**
|
|
87149
|
+
* Constructs a new UserMessageBrazePushNotificationScheduled.
|
|
87150
|
+
* @name UserMessageBrazePushNotificationScheduled
|
|
87151
|
+
* @classdesc Represents a UserMessageBrazePushNotificationScheduled.
|
|
87152
|
+
* @implements IUserMessageBrazePushNotificationScheduled
|
|
87153
|
+
* @constructor
|
|
87154
|
+
* @param {IUserMessageBrazePushNotificationScheduled=} [properties] Properties to set
|
|
87155
|
+
*/
|
|
87156
|
+
function UserMessageBrazePushNotificationScheduled(properties) {
|
|
87157
|
+
this.userMessage = [];
|
|
87158
|
+
if (properties)
|
|
87159
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
87160
|
+
if (properties[keys[i]] != null)
|
|
87161
|
+
this[keys[i]] = properties[keys[i]];
|
|
87162
|
+
}
|
|
87163
|
+
|
|
87164
|
+
/**
|
|
87165
|
+
* UserMessageBrazePushNotificationScheduled brazeCanvasId.
|
|
87166
|
+
* @member {string} brazeCanvasId
|
|
87167
|
+
* @memberof UserMessageBrazePushNotificationScheduled
|
|
87168
|
+
* @instance
|
|
87169
|
+
*/
|
|
87170
|
+
UserMessageBrazePushNotificationScheduled.prototype.brazeCanvasId = "";
|
|
87171
|
+
|
|
87172
|
+
/**
|
|
87173
|
+
* UserMessageBrazePushNotificationScheduled messageScheduleTimestamp.
|
|
87174
|
+
* @member {number|Long} messageScheduleTimestamp
|
|
87175
|
+
* @memberof UserMessageBrazePushNotificationScheduled
|
|
87176
|
+
* @instance
|
|
87177
|
+
*/
|
|
87178
|
+
UserMessageBrazePushNotificationScheduled.prototype.messageScheduleTimestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
87179
|
+
|
|
87180
|
+
/**
|
|
87181
|
+
* UserMessageBrazePushNotificationScheduled userMessage.
|
|
87182
|
+
* @member {Array.<IUserMessageBrazePushNotification>} userMessage
|
|
87183
|
+
* @memberof UserMessageBrazePushNotificationScheduled
|
|
87184
|
+
* @instance
|
|
87185
|
+
*/
|
|
87186
|
+
UserMessageBrazePushNotificationScheduled.prototype.userMessage = $util.emptyArray;
|
|
87187
|
+
|
|
87188
|
+
/**
|
|
87189
|
+
* Creates a new UserMessageBrazePushNotificationScheduled instance using the specified properties.
|
|
87190
|
+
* @function create
|
|
87191
|
+
* @memberof UserMessageBrazePushNotificationScheduled
|
|
87192
|
+
* @static
|
|
87193
|
+
* @param {IUserMessageBrazePushNotificationScheduled=} [properties] Properties to set
|
|
87194
|
+
* @returns {UserMessageBrazePushNotificationScheduled} UserMessageBrazePushNotificationScheduled instance
|
|
87195
|
+
*/
|
|
87196
|
+
UserMessageBrazePushNotificationScheduled.create = function create(properties) {
|
|
87197
|
+
return new UserMessageBrazePushNotificationScheduled(properties);
|
|
87198
|
+
};
|
|
87199
|
+
|
|
87200
|
+
/**
|
|
87201
|
+
* Encodes the specified UserMessageBrazePushNotificationScheduled message. Does not implicitly {@link UserMessageBrazePushNotificationScheduled.verify|verify} messages.
|
|
87202
|
+
* @function encode
|
|
87203
|
+
* @memberof UserMessageBrazePushNotificationScheduled
|
|
87204
|
+
* @static
|
|
87205
|
+
* @param {IUserMessageBrazePushNotificationScheduled} message UserMessageBrazePushNotificationScheduled message or plain object to encode
|
|
87206
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
87207
|
+
* @returns {$protobuf.Writer} Writer
|
|
87208
|
+
*/
|
|
87209
|
+
UserMessageBrazePushNotificationScheduled.encode = function encode(message, writer) {
|
|
87210
|
+
if (!writer)
|
|
87211
|
+
writer = $Writer.create();
|
|
87212
|
+
if (message.brazeCanvasId != null && message.hasOwnProperty("brazeCanvasId"))
|
|
87213
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.brazeCanvasId);
|
|
87214
|
+
if (message.messageScheduleTimestamp != null && message.hasOwnProperty("messageScheduleTimestamp"))
|
|
87215
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.messageScheduleTimestamp);
|
|
87216
|
+
if (message.userMessage != null && message.userMessage.length)
|
|
87217
|
+
for (var i = 0; i < message.userMessage.length; ++i)
|
|
87218
|
+
$root.UserMessageBrazePushNotification.encode(message.userMessage[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
87219
|
+
return writer;
|
|
87220
|
+
};
|
|
87221
|
+
|
|
87222
|
+
/**
|
|
87223
|
+
* Encodes the specified UserMessageBrazePushNotificationScheduled message, length delimited. Does not implicitly {@link UserMessageBrazePushNotificationScheduled.verify|verify} messages.
|
|
87224
|
+
* @function encodeDelimited
|
|
87225
|
+
* @memberof UserMessageBrazePushNotificationScheduled
|
|
87226
|
+
* @static
|
|
87227
|
+
* @param {IUserMessageBrazePushNotificationScheduled} message UserMessageBrazePushNotificationScheduled message or plain object to encode
|
|
87228
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
87229
|
+
* @returns {$protobuf.Writer} Writer
|
|
87230
|
+
*/
|
|
87231
|
+
UserMessageBrazePushNotificationScheduled.encodeDelimited = function encodeDelimited(message, writer) {
|
|
87232
|
+
return this.encode(message, writer).ldelim();
|
|
87233
|
+
};
|
|
87234
|
+
|
|
87235
|
+
/**
|
|
87236
|
+
* Decodes a UserMessageBrazePushNotificationScheduled message from the specified reader or buffer.
|
|
87237
|
+
* @function decode
|
|
87238
|
+
* @memberof UserMessageBrazePushNotificationScheduled
|
|
87239
|
+
* @static
|
|
87240
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
87241
|
+
* @param {number} [length] Message length if known beforehand
|
|
87242
|
+
* @returns {UserMessageBrazePushNotificationScheduled} UserMessageBrazePushNotificationScheduled
|
|
87243
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
87244
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
87245
|
+
*/
|
|
87246
|
+
UserMessageBrazePushNotificationScheduled.decode = function decode(reader, length) {
|
|
87247
|
+
if (!(reader instanceof $Reader))
|
|
87248
|
+
reader = $Reader.create(reader);
|
|
87249
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserMessageBrazePushNotificationScheduled();
|
|
87250
|
+
while (reader.pos < end) {
|
|
87251
|
+
var tag = reader.uint32();
|
|
87252
|
+
switch (tag >>> 3) {
|
|
87253
|
+
case 1:
|
|
87254
|
+
message.brazeCanvasId = reader.string();
|
|
87255
|
+
break;
|
|
87256
|
+
case 2:
|
|
87257
|
+
message.messageScheduleTimestamp = reader.uint64();
|
|
87258
|
+
break;
|
|
87259
|
+
case 3:
|
|
87260
|
+
if (!(message.userMessage && message.userMessage.length))
|
|
87261
|
+
message.userMessage = [];
|
|
87262
|
+
message.userMessage.push($root.UserMessageBrazePushNotification.decode(reader, reader.uint32()));
|
|
87263
|
+
break;
|
|
87264
|
+
default:
|
|
87265
|
+
reader.skipType(tag & 7);
|
|
87266
|
+
break;
|
|
87267
|
+
}
|
|
87268
|
+
}
|
|
87269
|
+
return message;
|
|
87270
|
+
};
|
|
87271
|
+
|
|
87272
|
+
/**
|
|
87273
|
+
* Decodes a UserMessageBrazePushNotificationScheduled message from the specified reader or buffer, length delimited.
|
|
87274
|
+
* @function decodeDelimited
|
|
87275
|
+
* @memberof UserMessageBrazePushNotificationScheduled
|
|
87276
|
+
* @static
|
|
87277
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
87278
|
+
* @returns {UserMessageBrazePushNotificationScheduled} UserMessageBrazePushNotificationScheduled
|
|
87279
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
87280
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
87281
|
+
*/
|
|
87282
|
+
UserMessageBrazePushNotificationScheduled.decodeDelimited = function decodeDelimited(reader) {
|
|
87283
|
+
if (!(reader instanceof $Reader))
|
|
87284
|
+
reader = new $Reader(reader);
|
|
87285
|
+
return this.decode(reader, reader.uint32());
|
|
87286
|
+
};
|
|
87287
|
+
|
|
87288
|
+
/**
|
|
87289
|
+
* Verifies a UserMessageBrazePushNotificationScheduled message.
|
|
87290
|
+
* @function verify
|
|
87291
|
+
* @memberof UserMessageBrazePushNotificationScheduled
|
|
87292
|
+
* @static
|
|
87293
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
87294
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
87295
|
+
*/
|
|
87296
|
+
UserMessageBrazePushNotificationScheduled.verify = function verify(message) {
|
|
87297
|
+
if (typeof message !== "object" || message === null)
|
|
87298
|
+
return "object expected";
|
|
87299
|
+
if (message.brazeCanvasId != null && message.hasOwnProperty("brazeCanvasId"))
|
|
87300
|
+
if (!$util.isString(message.brazeCanvasId))
|
|
87301
|
+
return "brazeCanvasId: string expected";
|
|
87302
|
+
if (message.messageScheduleTimestamp != null && message.hasOwnProperty("messageScheduleTimestamp"))
|
|
87303
|
+
if (!$util.isInteger(message.messageScheduleTimestamp) && !(message.messageScheduleTimestamp && $util.isInteger(message.messageScheduleTimestamp.low) && $util.isInteger(message.messageScheduleTimestamp.high)))
|
|
87304
|
+
return "messageScheduleTimestamp: integer|Long expected";
|
|
87305
|
+
if (message.userMessage != null && message.hasOwnProperty("userMessage")) {
|
|
87306
|
+
if (!Array.isArray(message.userMessage))
|
|
87307
|
+
return "userMessage: array expected";
|
|
87308
|
+
for (var i = 0; i < message.userMessage.length; ++i) {
|
|
87309
|
+
var error = $root.UserMessageBrazePushNotification.verify(message.userMessage[i]);
|
|
87310
|
+
if (error)
|
|
87311
|
+
return "userMessage." + error;
|
|
87312
|
+
}
|
|
87313
|
+
}
|
|
87314
|
+
return null;
|
|
87315
|
+
};
|
|
87316
|
+
|
|
87317
|
+
/**
|
|
87318
|
+
* Creates a UserMessageBrazePushNotificationScheduled message from a plain object. Also converts values to their respective internal types.
|
|
87319
|
+
* @function fromObject
|
|
87320
|
+
* @memberof UserMessageBrazePushNotificationScheduled
|
|
87321
|
+
* @static
|
|
87322
|
+
* @param {Object.<string,*>} object Plain object
|
|
87323
|
+
* @returns {UserMessageBrazePushNotificationScheduled} UserMessageBrazePushNotificationScheduled
|
|
87324
|
+
*/
|
|
87325
|
+
UserMessageBrazePushNotificationScheduled.fromObject = function fromObject(object) {
|
|
87326
|
+
if (object instanceof $root.UserMessageBrazePushNotificationScheduled)
|
|
87327
|
+
return object;
|
|
87328
|
+
var message = new $root.UserMessageBrazePushNotificationScheduled();
|
|
87329
|
+
if (object.brazeCanvasId != null)
|
|
87330
|
+
message.brazeCanvasId = String(object.brazeCanvasId);
|
|
87331
|
+
if (object.messageScheduleTimestamp != null)
|
|
87332
|
+
if ($util.Long)
|
|
87333
|
+
(message.messageScheduleTimestamp = $util.Long.fromValue(object.messageScheduleTimestamp)).unsigned = true;
|
|
87334
|
+
else if (typeof object.messageScheduleTimestamp === "string")
|
|
87335
|
+
message.messageScheduleTimestamp = parseInt(object.messageScheduleTimestamp, 10);
|
|
87336
|
+
else if (typeof object.messageScheduleTimestamp === "number")
|
|
87337
|
+
message.messageScheduleTimestamp = object.messageScheduleTimestamp;
|
|
87338
|
+
else if (typeof object.messageScheduleTimestamp === "object")
|
|
87339
|
+
message.messageScheduleTimestamp = new $util.LongBits(object.messageScheduleTimestamp.low >>> 0, object.messageScheduleTimestamp.high >>> 0).toNumber(true);
|
|
87340
|
+
if (object.userMessage) {
|
|
87341
|
+
if (!Array.isArray(object.userMessage))
|
|
87342
|
+
throw TypeError(".UserMessageBrazePushNotificationScheduled.userMessage: array expected");
|
|
87343
|
+
message.userMessage = [];
|
|
87344
|
+
for (var i = 0; i < object.userMessage.length; ++i) {
|
|
87345
|
+
if (typeof object.userMessage[i] !== "object")
|
|
87346
|
+
throw TypeError(".UserMessageBrazePushNotificationScheduled.userMessage: object expected");
|
|
87347
|
+
message.userMessage[i] = $root.UserMessageBrazePushNotification.fromObject(object.userMessage[i]);
|
|
87348
|
+
}
|
|
87349
|
+
}
|
|
87350
|
+
return message;
|
|
87351
|
+
};
|
|
87352
|
+
|
|
87353
|
+
/**
|
|
87354
|
+
* Creates a plain object from a UserMessageBrazePushNotificationScheduled message. Also converts values to other types if specified.
|
|
87355
|
+
* @function toObject
|
|
87356
|
+
* @memberof UserMessageBrazePushNotificationScheduled
|
|
87357
|
+
* @static
|
|
87358
|
+
* @param {UserMessageBrazePushNotificationScheduled} message UserMessageBrazePushNotificationScheduled
|
|
87359
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
87360
|
+
* @returns {Object.<string,*>} Plain object
|
|
87361
|
+
*/
|
|
87362
|
+
UserMessageBrazePushNotificationScheduled.toObject = function toObject(message, options) {
|
|
87363
|
+
if (!options)
|
|
87364
|
+
options = {};
|
|
87365
|
+
var object = {};
|
|
87366
|
+
if (options.arrays || options.defaults)
|
|
87367
|
+
object.userMessage = [];
|
|
87368
|
+
if (options.defaults) {
|
|
87369
|
+
object.brazeCanvasId = "";
|
|
87370
|
+
if ($util.Long) {
|
|
87371
|
+
var long = new $util.Long(0, 0, true);
|
|
87372
|
+
object.messageScheduleTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
87373
|
+
} else
|
|
87374
|
+
object.messageScheduleTimestamp = options.longs === String ? "0" : 0;
|
|
87375
|
+
}
|
|
87376
|
+
if (message.brazeCanvasId != null && message.hasOwnProperty("brazeCanvasId"))
|
|
87377
|
+
object.brazeCanvasId = message.brazeCanvasId;
|
|
87378
|
+
if (message.messageScheduleTimestamp != null && message.hasOwnProperty("messageScheduleTimestamp"))
|
|
87379
|
+
if (typeof message.messageScheduleTimestamp === "number")
|
|
87380
|
+
object.messageScheduleTimestamp = options.longs === String ? String(message.messageScheduleTimestamp) : message.messageScheduleTimestamp;
|
|
87381
|
+
else
|
|
87382
|
+
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;
|
|
87383
|
+
if (message.userMessage && message.userMessage.length) {
|
|
87384
|
+
object.userMessage = [];
|
|
87385
|
+
for (var j = 0; j < message.userMessage.length; ++j)
|
|
87386
|
+
object.userMessage[j] = $root.UserMessageBrazePushNotification.toObject(message.userMessage[j], options);
|
|
87387
|
+
}
|
|
87388
|
+
return object;
|
|
87389
|
+
};
|
|
87390
|
+
|
|
87391
|
+
/**
|
|
87392
|
+
* Converts this UserMessageBrazePushNotificationScheduled to JSON.
|
|
87393
|
+
* @function toJSON
|
|
87394
|
+
* @memberof UserMessageBrazePushNotificationScheduled
|
|
87395
|
+
* @instance
|
|
87396
|
+
* @returns {Object.<string,*>} JSON object
|
|
87397
|
+
*/
|
|
87398
|
+
UserMessageBrazePushNotificationScheduled.prototype.toJSON = function toJSON() {
|
|
87399
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
87400
|
+
};
|
|
87401
|
+
|
|
87402
|
+
return UserMessageBrazePushNotificationScheduled;
|
|
87403
|
+
})();
|
|
87404
|
+
|
|
86883
87405
|
$root.UserBatchPredictionsGenerated = (function() {
|
|
86884
87406
|
|
|
86885
87407
|
/**
|
|
@@ -98191,6 +98713,7 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
98191
98713
|
* @property {boolean|null} [gingerBundlingEnabled] EnterpriseUserEnrollmentCreated gingerBundlingEnabled
|
|
98192
98714
|
* @property {string|null} [ssoType] EnterpriseUserEnrollmentCreated ssoType
|
|
98193
98715
|
* @property {EnrollmentFlow|null} [enrollmentFlow] EnterpriseUserEnrollmentCreated enrollmentFlow
|
|
98716
|
+
* @property {string|null} [workEmail] EnterpriseUserEnrollmentCreated workEmail
|
|
98194
98717
|
*/
|
|
98195
98718
|
|
|
98196
98719
|
/**
|
|
@@ -98424,6 +98947,14 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
98424
98947
|
*/
|
|
98425
98948
|
EnterpriseUserEnrollmentCreated.prototype.enrollmentFlow = 0;
|
|
98426
98949
|
|
|
98950
|
+
/**
|
|
98951
|
+
* EnterpriseUserEnrollmentCreated workEmail.
|
|
98952
|
+
* @member {string} workEmail
|
|
98953
|
+
* @memberof EnterpriseUserEnrollmentCreated
|
|
98954
|
+
* @instance
|
|
98955
|
+
*/
|
|
98956
|
+
EnterpriseUserEnrollmentCreated.prototype.workEmail = "";
|
|
98957
|
+
|
|
98427
98958
|
/**
|
|
98428
98959
|
* Creates a new EnterpriseUserEnrollmentCreated instance using the specified properties.
|
|
98429
98960
|
* @function create
|
|
@@ -98502,6 +99033,8 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
98502
99033
|
writer.uint32(/* id 30, wireType 2 =*/242).string(message.ssoType);
|
|
98503
99034
|
if (message.enrollmentFlow != null && message.hasOwnProperty("enrollmentFlow"))
|
|
98504
99035
|
writer.uint32(/* id 31, wireType 0 =*/248).int32(message.enrollmentFlow);
|
|
99036
|
+
if (message.workEmail != null && message.hasOwnProperty("workEmail"))
|
|
99037
|
+
writer.uint32(/* id 32, wireType 2 =*/258).string(message.workEmail);
|
|
98505
99038
|
return writer;
|
|
98506
99039
|
};
|
|
98507
99040
|
|
|
@@ -98617,6 +99150,9 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
98617
99150
|
case 31:
|
|
98618
99151
|
message.enrollmentFlow = reader.int32();
|
|
98619
99152
|
break;
|
|
99153
|
+
case 32:
|
|
99154
|
+
message.workEmail = reader.string();
|
|
99155
|
+
break;
|
|
98620
99156
|
default:
|
|
98621
99157
|
reader.skipType(tag & 7);
|
|
98622
99158
|
break;
|
|
@@ -98762,6 +99298,9 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
98762
99298
|
case 3:
|
|
98763
99299
|
break;
|
|
98764
99300
|
}
|
|
99301
|
+
if (message.workEmail != null && message.hasOwnProperty("workEmail"))
|
|
99302
|
+
if (!$util.isString(message.workEmail))
|
|
99303
|
+
return "workEmail: string expected";
|
|
98765
99304
|
return null;
|
|
98766
99305
|
};
|
|
98767
99306
|
|
|
@@ -98934,6 +99473,8 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
98934
99473
|
message.enrollmentFlow = 3;
|
|
98935
99474
|
break;
|
|
98936
99475
|
}
|
|
99476
|
+
if (object.workEmail != null)
|
|
99477
|
+
message.workEmail = String(object.workEmail);
|
|
98937
99478
|
return message;
|
|
98938
99479
|
};
|
|
98939
99480
|
|
|
@@ -98998,6 +99539,7 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
98998
99539
|
object.gingerBundlingEnabled = false;
|
|
98999
99540
|
object.ssoType = "";
|
|
99000
99541
|
object.enrollmentFlow = options.enums === String ? "ENROLLMENT_FLOW_UNKNOWN" : 0;
|
|
99542
|
+
object.workEmail = "";
|
|
99001
99543
|
}
|
|
99002
99544
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
99003
99545
|
object.userId = message.userId;
|
|
@@ -99068,6 +99610,8 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
99068
99610
|
object.ssoType = message.ssoType;
|
|
99069
99611
|
if (message.enrollmentFlow != null && message.hasOwnProperty("enrollmentFlow"))
|
|
99070
99612
|
object.enrollmentFlow = options.enums === String ? $root.EnrollmentFlow[message.enrollmentFlow] : message.enrollmentFlow;
|
|
99613
|
+
if (message.workEmail != null && message.hasOwnProperty("workEmail"))
|
|
99614
|
+
object.workEmail = message.workEmail;
|
|
99071
99615
|
return object;
|
|
99072
99616
|
};
|
|
99073
99617
|
|
package/package.json
CHANGED