@headspace/protos-events 1.448.0 → 1.450.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 +37 -37
- package/lib/index.js +85 -85
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -29384,97 +29384,97 @@ export class B2BChallengeCreated implements IB2BChallengeCreated {
|
|
|
29384
29384
|
public toJSON(): { [k: string]: any };
|
|
29385
29385
|
}
|
|
29386
29386
|
|
|
29387
|
-
/** Properties of a
|
|
29388
|
-
export interface
|
|
29387
|
+
/** Properties of a B2BChallengeCanceled. */
|
|
29388
|
+
export interface IB2BChallengeCanceled {
|
|
29389
29389
|
|
|
29390
|
-
/**
|
|
29391
|
-
challengeId?: (number|Long|null);
|
|
29392
|
-
|
|
29393
|
-
/** B2BChallengeScheduled brazeScheduleId */
|
|
29390
|
+
/** B2BChallengeCanceled brazeScheduleId */
|
|
29394
29391
|
brazeScheduleId?: (string|null);
|
|
29392
|
+
|
|
29393
|
+
/** B2BChallengeCanceled durationInWeeks */
|
|
29394
|
+
durationInWeeks?: (number|Long|null);
|
|
29395
29395
|
}
|
|
29396
29396
|
|
|
29397
|
-
/** Represents a
|
|
29398
|
-
export class
|
|
29397
|
+
/** Represents a B2BChallengeCanceled. */
|
|
29398
|
+
export class B2BChallengeCanceled implements IB2BChallengeCanceled {
|
|
29399
29399
|
|
|
29400
29400
|
/**
|
|
29401
|
-
* Constructs a new
|
|
29401
|
+
* Constructs a new B2BChallengeCanceled.
|
|
29402
29402
|
* @param [properties] Properties to set
|
|
29403
29403
|
*/
|
|
29404
|
-
constructor(properties?:
|
|
29404
|
+
constructor(properties?: IB2BChallengeCanceled);
|
|
29405
29405
|
|
|
29406
|
-
/**
|
|
29407
|
-
public challengeId: (number|Long);
|
|
29408
|
-
|
|
29409
|
-
/** B2BChallengeScheduled brazeScheduleId. */
|
|
29406
|
+
/** B2BChallengeCanceled brazeScheduleId. */
|
|
29410
29407
|
public brazeScheduleId: string;
|
|
29411
29408
|
|
|
29409
|
+
/** B2BChallengeCanceled durationInWeeks. */
|
|
29410
|
+
public durationInWeeks: (number|Long);
|
|
29411
|
+
|
|
29412
29412
|
/**
|
|
29413
|
-
* Creates a new
|
|
29413
|
+
* Creates a new B2BChallengeCanceled instance using the specified properties.
|
|
29414
29414
|
* @param [properties] Properties to set
|
|
29415
|
-
* @returns
|
|
29415
|
+
* @returns B2BChallengeCanceled instance
|
|
29416
29416
|
*/
|
|
29417
|
-
public static create(properties?:
|
|
29417
|
+
public static create(properties?: IB2BChallengeCanceled): B2BChallengeCanceled;
|
|
29418
29418
|
|
|
29419
29419
|
/**
|
|
29420
|
-
* Encodes the specified
|
|
29421
|
-
* @param message
|
|
29420
|
+
* Encodes the specified B2BChallengeCanceled message. Does not implicitly {@link B2BChallengeCanceled.verify|verify} messages.
|
|
29421
|
+
* @param message B2BChallengeCanceled message or plain object to encode
|
|
29422
29422
|
* @param [writer] Writer to encode to
|
|
29423
29423
|
* @returns Writer
|
|
29424
29424
|
*/
|
|
29425
|
-
public static encode(message:
|
|
29425
|
+
public static encode(message: IB2BChallengeCanceled, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
29426
29426
|
|
|
29427
29427
|
/**
|
|
29428
|
-
* Encodes the specified
|
|
29429
|
-
* @param message
|
|
29428
|
+
* Encodes the specified B2BChallengeCanceled message, length delimited. Does not implicitly {@link B2BChallengeCanceled.verify|verify} messages.
|
|
29429
|
+
* @param message B2BChallengeCanceled message or plain object to encode
|
|
29430
29430
|
* @param [writer] Writer to encode to
|
|
29431
29431
|
* @returns Writer
|
|
29432
29432
|
*/
|
|
29433
|
-
public static encodeDelimited(message:
|
|
29433
|
+
public static encodeDelimited(message: IB2BChallengeCanceled, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
29434
29434
|
|
|
29435
29435
|
/**
|
|
29436
|
-
* Decodes a
|
|
29436
|
+
* Decodes a B2BChallengeCanceled message from the specified reader or buffer.
|
|
29437
29437
|
* @param reader Reader or buffer to decode from
|
|
29438
29438
|
* @param [length] Message length if known beforehand
|
|
29439
|
-
* @returns
|
|
29439
|
+
* @returns B2BChallengeCanceled
|
|
29440
29440
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
29441
29441
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
29442
29442
|
*/
|
|
29443
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number):
|
|
29443
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): B2BChallengeCanceled;
|
|
29444
29444
|
|
|
29445
29445
|
/**
|
|
29446
|
-
* Decodes a
|
|
29446
|
+
* Decodes a B2BChallengeCanceled message from the specified reader or buffer, length delimited.
|
|
29447
29447
|
* @param reader Reader or buffer to decode from
|
|
29448
|
-
* @returns
|
|
29448
|
+
* @returns B2BChallengeCanceled
|
|
29449
29449
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
29450
29450
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
29451
29451
|
*/
|
|
29452
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)):
|
|
29452
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): B2BChallengeCanceled;
|
|
29453
29453
|
|
|
29454
29454
|
/**
|
|
29455
|
-
* Verifies a
|
|
29455
|
+
* Verifies a B2BChallengeCanceled message.
|
|
29456
29456
|
* @param message Plain object to verify
|
|
29457
29457
|
* @returns `null` if valid, otherwise the reason why it is not
|
|
29458
29458
|
*/
|
|
29459
29459
|
public static verify(message: { [k: string]: any }): (string|null);
|
|
29460
29460
|
|
|
29461
29461
|
/**
|
|
29462
|
-
* Creates a
|
|
29462
|
+
* Creates a B2BChallengeCanceled message from a plain object. Also converts values to their respective internal types.
|
|
29463
29463
|
* @param object Plain object
|
|
29464
|
-
* @returns
|
|
29464
|
+
* @returns B2BChallengeCanceled
|
|
29465
29465
|
*/
|
|
29466
|
-
public static fromObject(object: { [k: string]: any }):
|
|
29466
|
+
public static fromObject(object: { [k: string]: any }): B2BChallengeCanceled;
|
|
29467
29467
|
|
|
29468
29468
|
/**
|
|
29469
|
-
* Creates a plain object from a
|
|
29470
|
-
* @param message
|
|
29469
|
+
* Creates a plain object from a B2BChallengeCanceled message. Also converts values to other types if specified.
|
|
29470
|
+
* @param message B2BChallengeCanceled
|
|
29471
29471
|
* @param [options] Conversion options
|
|
29472
29472
|
* @returns Plain object
|
|
29473
29473
|
*/
|
|
29474
|
-
public static toObject(message:
|
|
29474
|
+
public static toObject(message: B2BChallengeCanceled, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
29475
29475
|
|
|
29476
29476
|
/**
|
|
29477
|
-
* Converts this
|
|
29477
|
+
* Converts this B2BChallengeCanceled to JSON.
|
|
29478
29478
|
* @returns JSON object
|
|
29479
29479
|
*/
|
|
29480
29480
|
public toJSON(): { [k: string]: any };
|
package/lib/index.js
CHANGED
|
@@ -81314,25 +81314,25 @@ $root.B2BChallengeCreated = (function() {
|
|
|
81314
81314
|
return B2BChallengeCreated;
|
|
81315
81315
|
})();
|
|
81316
81316
|
|
|
81317
|
-
$root.
|
|
81317
|
+
$root.B2BChallengeCanceled = (function() {
|
|
81318
81318
|
|
|
81319
81319
|
/**
|
|
81320
|
-
* Properties of a
|
|
81321
|
-
* @exports
|
|
81322
|
-
* @interface
|
|
81323
|
-
* @property {
|
|
81324
|
-
* @property {
|
|
81320
|
+
* Properties of a B2BChallengeCanceled.
|
|
81321
|
+
* @exports IB2BChallengeCanceled
|
|
81322
|
+
* @interface IB2BChallengeCanceled
|
|
81323
|
+
* @property {string|null} [brazeScheduleId] B2BChallengeCanceled brazeScheduleId
|
|
81324
|
+
* @property {number|Long|null} [durationInWeeks] B2BChallengeCanceled durationInWeeks
|
|
81325
81325
|
*/
|
|
81326
81326
|
|
|
81327
81327
|
/**
|
|
81328
|
-
* Constructs a new
|
|
81329
|
-
* @exports
|
|
81330
|
-
* @classdesc Represents a
|
|
81331
|
-
* @implements
|
|
81328
|
+
* Constructs a new B2BChallengeCanceled.
|
|
81329
|
+
* @exports B2BChallengeCanceled
|
|
81330
|
+
* @classdesc Represents a B2BChallengeCanceled.
|
|
81331
|
+
* @implements IB2BChallengeCanceled
|
|
81332
81332
|
* @constructor
|
|
81333
|
-
* @param {
|
|
81333
|
+
* @param {IB2BChallengeCanceled=} [properties] Properties to set
|
|
81334
81334
|
*/
|
|
81335
|
-
function
|
|
81335
|
+
function B2BChallengeCanceled(properties) {
|
|
81336
81336
|
if (properties)
|
|
81337
81337
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
81338
81338
|
if (properties[keys[i]] != null)
|
|
@@ -81340,88 +81340,88 @@ $root.B2BChallengeScheduled = (function() {
|
|
|
81340
81340
|
}
|
|
81341
81341
|
|
|
81342
81342
|
/**
|
|
81343
|
-
*
|
|
81344
|
-
* @member {
|
|
81345
|
-
* @memberof
|
|
81343
|
+
* B2BChallengeCanceled brazeScheduleId.
|
|
81344
|
+
* @member {string} brazeScheduleId
|
|
81345
|
+
* @memberof B2BChallengeCanceled
|
|
81346
81346
|
* @instance
|
|
81347
81347
|
*/
|
|
81348
|
-
|
|
81348
|
+
B2BChallengeCanceled.prototype.brazeScheduleId = "";
|
|
81349
81349
|
|
|
81350
81350
|
/**
|
|
81351
|
-
*
|
|
81352
|
-
* @member {
|
|
81353
|
-
* @memberof
|
|
81351
|
+
* B2BChallengeCanceled durationInWeeks.
|
|
81352
|
+
* @member {number|Long} durationInWeeks
|
|
81353
|
+
* @memberof B2BChallengeCanceled
|
|
81354
81354
|
* @instance
|
|
81355
81355
|
*/
|
|
81356
|
-
|
|
81356
|
+
B2BChallengeCanceled.prototype.durationInWeeks = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
81357
81357
|
|
|
81358
81358
|
/**
|
|
81359
|
-
* Creates a new
|
|
81359
|
+
* Creates a new B2BChallengeCanceled instance using the specified properties.
|
|
81360
81360
|
* @function create
|
|
81361
|
-
* @memberof
|
|
81361
|
+
* @memberof B2BChallengeCanceled
|
|
81362
81362
|
* @static
|
|
81363
|
-
* @param {
|
|
81364
|
-
* @returns {
|
|
81363
|
+
* @param {IB2BChallengeCanceled=} [properties] Properties to set
|
|
81364
|
+
* @returns {B2BChallengeCanceled} B2BChallengeCanceled instance
|
|
81365
81365
|
*/
|
|
81366
|
-
|
|
81367
|
-
return new
|
|
81366
|
+
B2BChallengeCanceled.create = function create(properties) {
|
|
81367
|
+
return new B2BChallengeCanceled(properties);
|
|
81368
81368
|
};
|
|
81369
81369
|
|
|
81370
81370
|
/**
|
|
81371
|
-
* Encodes the specified
|
|
81371
|
+
* Encodes the specified B2BChallengeCanceled message. Does not implicitly {@link B2BChallengeCanceled.verify|verify} messages.
|
|
81372
81372
|
* @function encode
|
|
81373
|
-
* @memberof
|
|
81373
|
+
* @memberof B2BChallengeCanceled
|
|
81374
81374
|
* @static
|
|
81375
|
-
* @param {
|
|
81375
|
+
* @param {IB2BChallengeCanceled} message B2BChallengeCanceled message or plain object to encode
|
|
81376
81376
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
81377
81377
|
* @returns {$protobuf.Writer} Writer
|
|
81378
81378
|
*/
|
|
81379
|
-
|
|
81379
|
+
B2BChallengeCanceled.encode = function encode(message, writer) {
|
|
81380
81380
|
if (!writer)
|
|
81381
81381
|
writer = $Writer.create();
|
|
81382
|
-
if (message.challengeId != null && message.hasOwnProperty("challengeId"))
|
|
81383
|
-
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.challengeId);
|
|
81384
81382
|
if (message.brazeScheduleId != null && message.hasOwnProperty("brazeScheduleId"))
|
|
81385
|
-
writer.uint32(/* id
|
|
81383
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.brazeScheduleId);
|
|
81384
|
+
if (message.durationInWeeks != null && message.hasOwnProperty("durationInWeeks"))
|
|
81385
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.durationInWeeks);
|
|
81386
81386
|
return writer;
|
|
81387
81387
|
};
|
|
81388
81388
|
|
|
81389
81389
|
/**
|
|
81390
|
-
* Encodes the specified
|
|
81390
|
+
* Encodes the specified B2BChallengeCanceled message, length delimited. Does not implicitly {@link B2BChallengeCanceled.verify|verify} messages.
|
|
81391
81391
|
* @function encodeDelimited
|
|
81392
|
-
* @memberof
|
|
81392
|
+
* @memberof B2BChallengeCanceled
|
|
81393
81393
|
* @static
|
|
81394
|
-
* @param {
|
|
81394
|
+
* @param {IB2BChallengeCanceled} message B2BChallengeCanceled message or plain object to encode
|
|
81395
81395
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
81396
81396
|
* @returns {$protobuf.Writer} Writer
|
|
81397
81397
|
*/
|
|
81398
|
-
|
|
81398
|
+
B2BChallengeCanceled.encodeDelimited = function encodeDelimited(message, writer) {
|
|
81399
81399
|
return this.encode(message, writer).ldelim();
|
|
81400
81400
|
};
|
|
81401
81401
|
|
|
81402
81402
|
/**
|
|
81403
|
-
* Decodes a
|
|
81403
|
+
* Decodes a B2BChallengeCanceled message from the specified reader or buffer.
|
|
81404
81404
|
* @function decode
|
|
81405
|
-
* @memberof
|
|
81405
|
+
* @memberof B2BChallengeCanceled
|
|
81406
81406
|
* @static
|
|
81407
81407
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
81408
81408
|
* @param {number} [length] Message length if known beforehand
|
|
81409
|
-
* @returns {
|
|
81409
|
+
* @returns {B2BChallengeCanceled} B2BChallengeCanceled
|
|
81410
81410
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
81411
81411
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
81412
81412
|
*/
|
|
81413
|
-
|
|
81413
|
+
B2BChallengeCanceled.decode = function decode(reader, length) {
|
|
81414
81414
|
if (!(reader instanceof $Reader))
|
|
81415
81415
|
reader = $Reader.create(reader);
|
|
81416
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.
|
|
81416
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.B2BChallengeCanceled();
|
|
81417
81417
|
while (reader.pos < end) {
|
|
81418
81418
|
var tag = reader.uint32();
|
|
81419
81419
|
switch (tag >>> 3) {
|
|
81420
81420
|
case 1:
|
|
81421
|
-
message.
|
|
81421
|
+
message.brazeScheduleId = reader.string();
|
|
81422
81422
|
break;
|
|
81423
81423
|
case 2:
|
|
81424
|
-
message.
|
|
81424
|
+
message.durationInWeeks = reader.uint64();
|
|
81425
81425
|
break;
|
|
81426
81426
|
default:
|
|
81427
81427
|
reader.skipType(tag & 7);
|
|
@@ -81432,110 +81432,110 @@ $root.B2BChallengeScheduled = (function() {
|
|
|
81432
81432
|
};
|
|
81433
81433
|
|
|
81434
81434
|
/**
|
|
81435
|
-
* Decodes a
|
|
81435
|
+
* Decodes a B2BChallengeCanceled message from the specified reader or buffer, length delimited.
|
|
81436
81436
|
* @function decodeDelimited
|
|
81437
|
-
* @memberof
|
|
81437
|
+
* @memberof B2BChallengeCanceled
|
|
81438
81438
|
* @static
|
|
81439
81439
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
81440
|
-
* @returns {
|
|
81440
|
+
* @returns {B2BChallengeCanceled} B2BChallengeCanceled
|
|
81441
81441
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
81442
81442
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
81443
81443
|
*/
|
|
81444
|
-
|
|
81444
|
+
B2BChallengeCanceled.decodeDelimited = function decodeDelimited(reader) {
|
|
81445
81445
|
if (!(reader instanceof $Reader))
|
|
81446
81446
|
reader = new $Reader(reader);
|
|
81447
81447
|
return this.decode(reader, reader.uint32());
|
|
81448
81448
|
};
|
|
81449
81449
|
|
|
81450
81450
|
/**
|
|
81451
|
-
* Verifies a
|
|
81451
|
+
* Verifies a B2BChallengeCanceled message.
|
|
81452
81452
|
* @function verify
|
|
81453
|
-
* @memberof
|
|
81453
|
+
* @memberof B2BChallengeCanceled
|
|
81454
81454
|
* @static
|
|
81455
81455
|
* @param {Object.<string,*>} message Plain object to verify
|
|
81456
81456
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
81457
81457
|
*/
|
|
81458
|
-
|
|
81458
|
+
B2BChallengeCanceled.verify = function verify(message) {
|
|
81459
81459
|
if (typeof message !== "object" || message === null)
|
|
81460
81460
|
return "object expected";
|
|
81461
|
-
if (message.challengeId != null && message.hasOwnProperty("challengeId"))
|
|
81462
|
-
if (!$util.isInteger(message.challengeId) && !(message.challengeId && $util.isInteger(message.challengeId.low) && $util.isInteger(message.challengeId.high)))
|
|
81463
|
-
return "challengeId: integer|Long expected";
|
|
81464
81461
|
if (message.brazeScheduleId != null && message.hasOwnProperty("brazeScheduleId"))
|
|
81465
81462
|
if (!$util.isString(message.brazeScheduleId))
|
|
81466
81463
|
return "brazeScheduleId: string expected";
|
|
81464
|
+
if (message.durationInWeeks != null && message.hasOwnProperty("durationInWeeks"))
|
|
81465
|
+
if (!$util.isInteger(message.durationInWeeks) && !(message.durationInWeeks && $util.isInteger(message.durationInWeeks.low) && $util.isInteger(message.durationInWeeks.high)))
|
|
81466
|
+
return "durationInWeeks: integer|Long expected";
|
|
81467
81467
|
return null;
|
|
81468
81468
|
};
|
|
81469
81469
|
|
|
81470
81470
|
/**
|
|
81471
|
-
* Creates a
|
|
81471
|
+
* Creates a B2BChallengeCanceled message from a plain object. Also converts values to their respective internal types.
|
|
81472
81472
|
* @function fromObject
|
|
81473
|
-
* @memberof
|
|
81473
|
+
* @memberof B2BChallengeCanceled
|
|
81474
81474
|
* @static
|
|
81475
81475
|
* @param {Object.<string,*>} object Plain object
|
|
81476
|
-
* @returns {
|
|
81476
|
+
* @returns {B2BChallengeCanceled} B2BChallengeCanceled
|
|
81477
81477
|
*/
|
|
81478
|
-
|
|
81479
|
-
if (object instanceof $root.
|
|
81478
|
+
B2BChallengeCanceled.fromObject = function fromObject(object) {
|
|
81479
|
+
if (object instanceof $root.B2BChallengeCanceled)
|
|
81480
81480
|
return object;
|
|
81481
|
-
var message = new $root.
|
|
81482
|
-
if (object.challengeId != null)
|
|
81483
|
-
if ($util.Long)
|
|
81484
|
-
(message.challengeId = $util.Long.fromValue(object.challengeId)).unsigned = true;
|
|
81485
|
-
else if (typeof object.challengeId === "string")
|
|
81486
|
-
message.challengeId = parseInt(object.challengeId, 10);
|
|
81487
|
-
else if (typeof object.challengeId === "number")
|
|
81488
|
-
message.challengeId = object.challengeId;
|
|
81489
|
-
else if (typeof object.challengeId === "object")
|
|
81490
|
-
message.challengeId = new $util.LongBits(object.challengeId.low >>> 0, object.challengeId.high >>> 0).toNumber(true);
|
|
81481
|
+
var message = new $root.B2BChallengeCanceled();
|
|
81491
81482
|
if (object.brazeScheduleId != null)
|
|
81492
81483
|
message.brazeScheduleId = String(object.brazeScheduleId);
|
|
81484
|
+
if (object.durationInWeeks != null)
|
|
81485
|
+
if ($util.Long)
|
|
81486
|
+
(message.durationInWeeks = $util.Long.fromValue(object.durationInWeeks)).unsigned = true;
|
|
81487
|
+
else if (typeof object.durationInWeeks === "string")
|
|
81488
|
+
message.durationInWeeks = parseInt(object.durationInWeeks, 10);
|
|
81489
|
+
else if (typeof object.durationInWeeks === "number")
|
|
81490
|
+
message.durationInWeeks = object.durationInWeeks;
|
|
81491
|
+
else if (typeof object.durationInWeeks === "object")
|
|
81492
|
+
message.durationInWeeks = new $util.LongBits(object.durationInWeeks.low >>> 0, object.durationInWeeks.high >>> 0).toNumber(true);
|
|
81493
81493
|
return message;
|
|
81494
81494
|
};
|
|
81495
81495
|
|
|
81496
81496
|
/**
|
|
81497
|
-
* Creates a plain object from a
|
|
81497
|
+
* Creates a plain object from a B2BChallengeCanceled message. Also converts values to other types if specified.
|
|
81498
81498
|
* @function toObject
|
|
81499
|
-
* @memberof
|
|
81499
|
+
* @memberof B2BChallengeCanceled
|
|
81500
81500
|
* @static
|
|
81501
|
-
* @param {
|
|
81501
|
+
* @param {B2BChallengeCanceled} message B2BChallengeCanceled
|
|
81502
81502
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
81503
81503
|
* @returns {Object.<string,*>} Plain object
|
|
81504
81504
|
*/
|
|
81505
|
-
|
|
81505
|
+
B2BChallengeCanceled.toObject = function toObject(message, options) {
|
|
81506
81506
|
if (!options)
|
|
81507
81507
|
options = {};
|
|
81508
81508
|
var object = {};
|
|
81509
81509
|
if (options.defaults) {
|
|
81510
|
+
object.brazeScheduleId = "";
|
|
81510
81511
|
if ($util.Long) {
|
|
81511
81512
|
var long = new $util.Long(0, 0, true);
|
|
81512
|
-
object.
|
|
81513
|
+
object.durationInWeeks = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
81513
81514
|
} else
|
|
81514
|
-
object.
|
|
81515
|
-
object.brazeScheduleId = "";
|
|
81515
|
+
object.durationInWeeks = options.longs === String ? "0" : 0;
|
|
81516
81516
|
}
|
|
81517
|
-
if (message.challengeId != null && message.hasOwnProperty("challengeId"))
|
|
81518
|
-
if (typeof message.challengeId === "number")
|
|
81519
|
-
object.challengeId = options.longs === String ? String(message.challengeId) : message.challengeId;
|
|
81520
|
-
else
|
|
81521
|
-
object.challengeId = options.longs === String ? $util.Long.prototype.toString.call(message.challengeId) : options.longs === Number ? new $util.LongBits(message.challengeId.low >>> 0, message.challengeId.high >>> 0).toNumber(true) : message.challengeId;
|
|
81522
81517
|
if (message.brazeScheduleId != null && message.hasOwnProperty("brazeScheduleId"))
|
|
81523
81518
|
object.brazeScheduleId = message.brazeScheduleId;
|
|
81519
|
+
if (message.durationInWeeks != null && message.hasOwnProperty("durationInWeeks"))
|
|
81520
|
+
if (typeof message.durationInWeeks === "number")
|
|
81521
|
+
object.durationInWeeks = options.longs === String ? String(message.durationInWeeks) : message.durationInWeeks;
|
|
81522
|
+
else
|
|
81523
|
+
object.durationInWeeks = options.longs === String ? $util.Long.prototype.toString.call(message.durationInWeeks) : options.longs === Number ? new $util.LongBits(message.durationInWeeks.low >>> 0, message.durationInWeeks.high >>> 0).toNumber(true) : message.durationInWeeks;
|
|
81524
81524
|
return object;
|
|
81525
81525
|
};
|
|
81526
81526
|
|
|
81527
81527
|
/**
|
|
81528
|
-
* Converts this
|
|
81528
|
+
* Converts this B2BChallengeCanceled to JSON.
|
|
81529
81529
|
* @function toJSON
|
|
81530
|
-
* @memberof
|
|
81530
|
+
* @memberof B2BChallengeCanceled
|
|
81531
81531
|
* @instance
|
|
81532
81532
|
* @returns {Object.<string,*>} JSON object
|
|
81533
81533
|
*/
|
|
81534
|
-
|
|
81534
|
+
B2BChallengeCanceled.prototype.toJSON = function toJSON() {
|
|
81535
81535
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
81536
81536
|
};
|
|
81537
81537
|
|
|
81538
|
-
return
|
|
81538
|
+
return B2BChallengeCanceled;
|
|
81539
81539
|
})();
|
|
81540
81540
|
|
|
81541
81541
|
$root.EligibilityFileProcessed = (function() {
|
package/package.json
CHANGED