@headspace/protos-events 1.679.0 → 1.681.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 +415 -0
- package/lib/index.js +1000 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -35255,6 +35255,701 @@ $root.gift = (function() {
|
|
|
35255
35255
|
return gift;
|
|
35256
35256
|
})();
|
|
35257
35257
|
|
|
35258
|
+
$root.GingerProviderProfileUpdateRequested = (function() {
|
|
35259
|
+
|
|
35260
|
+
/**
|
|
35261
|
+
* Properties of a GingerProviderProfileUpdateRequested.
|
|
35262
|
+
* @name IGingerProviderProfileUpdateRequested
|
|
35263
|
+
* @interface IGingerProviderProfileUpdateRequested
|
|
35264
|
+
* @property {IGingerProviderProfileUpdateRequest|null} [request] GingerProviderProfileUpdateRequested request
|
|
35265
|
+
*/
|
|
35266
|
+
|
|
35267
|
+
/**
|
|
35268
|
+
* Constructs a new GingerProviderProfileUpdateRequested.
|
|
35269
|
+
* @name GingerProviderProfileUpdateRequested
|
|
35270
|
+
* @classdesc Represents a GingerProviderProfileUpdateRequested.
|
|
35271
|
+
* @implements IGingerProviderProfileUpdateRequested
|
|
35272
|
+
* @constructor
|
|
35273
|
+
* @param {IGingerProviderProfileUpdateRequested=} [properties] Properties to set
|
|
35274
|
+
*/
|
|
35275
|
+
function GingerProviderProfileUpdateRequested(properties) {
|
|
35276
|
+
if (properties)
|
|
35277
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
35278
|
+
if (properties[keys[i]] != null)
|
|
35279
|
+
this[keys[i]] = properties[keys[i]];
|
|
35280
|
+
}
|
|
35281
|
+
|
|
35282
|
+
/**
|
|
35283
|
+
* GingerProviderProfileUpdateRequested request.
|
|
35284
|
+
* @member {IGingerProviderProfileUpdateRequest|null|undefined} request
|
|
35285
|
+
* @memberof GingerProviderProfileUpdateRequested
|
|
35286
|
+
* @instance
|
|
35287
|
+
*/
|
|
35288
|
+
GingerProviderProfileUpdateRequested.prototype.request = null;
|
|
35289
|
+
|
|
35290
|
+
/**
|
|
35291
|
+
* Creates a new GingerProviderProfileUpdateRequested instance using the specified properties.
|
|
35292
|
+
* @function create
|
|
35293
|
+
* @memberof GingerProviderProfileUpdateRequested
|
|
35294
|
+
* @static
|
|
35295
|
+
* @param {IGingerProviderProfileUpdateRequested=} [properties] Properties to set
|
|
35296
|
+
* @returns {GingerProviderProfileUpdateRequested} GingerProviderProfileUpdateRequested instance
|
|
35297
|
+
*/
|
|
35298
|
+
GingerProviderProfileUpdateRequested.create = function create(properties) {
|
|
35299
|
+
return new GingerProviderProfileUpdateRequested(properties);
|
|
35300
|
+
};
|
|
35301
|
+
|
|
35302
|
+
/**
|
|
35303
|
+
* Encodes the specified GingerProviderProfileUpdateRequested message. Does not implicitly {@link GingerProviderProfileUpdateRequested.verify|verify} messages.
|
|
35304
|
+
* @function encode
|
|
35305
|
+
* @memberof GingerProviderProfileUpdateRequested
|
|
35306
|
+
* @static
|
|
35307
|
+
* @param {IGingerProviderProfileUpdateRequested} message GingerProviderProfileUpdateRequested message or plain object to encode
|
|
35308
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
35309
|
+
* @returns {$protobuf.Writer} Writer
|
|
35310
|
+
*/
|
|
35311
|
+
GingerProviderProfileUpdateRequested.encode = function encode(message, writer) {
|
|
35312
|
+
if (!writer)
|
|
35313
|
+
writer = $Writer.create();
|
|
35314
|
+
if (message.request != null && message.hasOwnProperty("request"))
|
|
35315
|
+
$root.GingerProviderProfileUpdateRequest.encode(message.request, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
35316
|
+
return writer;
|
|
35317
|
+
};
|
|
35318
|
+
|
|
35319
|
+
/**
|
|
35320
|
+
* Encodes the specified GingerProviderProfileUpdateRequested message, length delimited. Does not implicitly {@link GingerProviderProfileUpdateRequested.verify|verify} messages.
|
|
35321
|
+
* @function encodeDelimited
|
|
35322
|
+
* @memberof GingerProviderProfileUpdateRequested
|
|
35323
|
+
* @static
|
|
35324
|
+
* @param {IGingerProviderProfileUpdateRequested} message GingerProviderProfileUpdateRequested message or plain object to encode
|
|
35325
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
35326
|
+
* @returns {$protobuf.Writer} Writer
|
|
35327
|
+
*/
|
|
35328
|
+
GingerProviderProfileUpdateRequested.encodeDelimited = function encodeDelimited(message, writer) {
|
|
35329
|
+
return this.encode(message, writer).ldelim();
|
|
35330
|
+
};
|
|
35331
|
+
|
|
35332
|
+
/**
|
|
35333
|
+
* Decodes a GingerProviderProfileUpdateRequested message from the specified reader or buffer.
|
|
35334
|
+
* @function decode
|
|
35335
|
+
* @memberof GingerProviderProfileUpdateRequested
|
|
35336
|
+
* @static
|
|
35337
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
35338
|
+
* @param {number} [length] Message length if known beforehand
|
|
35339
|
+
* @returns {GingerProviderProfileUpdateRequested} GingerProviderProfileUpdateRequested
|
|
35340
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
35341
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
35342
|
+
*/
|
|
35343
|
+
GingerProviderProfileUpdateRequested.decode = function decode(reader, length) {
|
|
35344
|
+
if (!(reader instanceof $Reader))
|
|
35345
|
+
reader = $Reader.create(reader);
|
|
35346
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.GingerProviderProfileUpdateRequested();
|
|
35347
|
+
while (reader.pos < end) {
|
|
35348
|
+
var tag = reader.uint32();
|
|
35349
|
+
switch (tag >>> 3) {
|
|
35350
|
+
case 1:
|
|
35351
|
+
message.request = $root.GingerProviderProfileUpdateRequest.decode(reader, reader.uint32());
|
|
35352
|
+
break;
|
|
35353
|
+
default:
|
|
35354
|
+
reader.skipType(tag & 7);
|
|
35355
|
+
break;
|
|
35356
|
+
}
|
|
35357
|
+
}
|
|
35358
|
+
return message;
|
|
35359
|
+
};
|
|
35360
|
+
|
|
35361
|
+
/**
|
|
35362
|
+
* Decodes a GingerProviderProfileUpdateRequested message from the specified reader or buffer, length delimited.
|
|
35363
|
+
* @function decodeDelimited
|
|
35364
|
+
* @memberof GingerProviderProfileUpdateRequested
|
|
35365
|
+
* @static
|
|
35366
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
35367
|
+
* @returns {GingerProviderProfileUpdateRequested} GingerProviderProfileUpdateRequested
|
|
35368
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
35369
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
35370
|
+
*/
|
|
35371
|
+
GingerProviderProfileUpdateRequested.decodeDelimited = function decodeDelimited(reader) {
|
|
35372
|
+
if (!(reader instanceof $Reader))
|
|
35373
|
+
reader = new $Reader(reader);
|
|
35374
|
+
return this.decode(reader, reader.uint32());
|
|
35375
|
+
};
|
|
35376
|
+
|
|
35377
|
+
/**
|
|
35378
|
+
* Verifies a GingerProviderProfileUpdateRequested message.
|
|
35379
|
+
* @function verify
|
|
35380
|
+
* @memberof GingerProviderProfileUpdateRequested
|
|
35381
|
+
* @static
|
|
35382
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
35383
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
35384
|
+
*/
|
|
35385
|
+
GingerProviderProfileUpdateRequested.verify = function verify(message) {
|
|
35386
|
+
if (typeof message !== "object" || message === null)
|
|
35387
|
+
return "object expected";
|
|
35388
|
+
if (message.request != null && message.hasOwnProperty("request")) {
|
|
35389
|
+
var error = $root.GingerProviderProfileUpdateRequest.verify(message.request);
|
|
35390
|
+
if (error)
|
|
35391
|
+
return "request." + error;
|
|
35392
|
+
}
|
|
35393
|
+
return null;
|
|
35394
|
+
};
|
|
35395
|
+
|
|
35396
|
+
/**
|
|
35397
|
+
* Creates a GingerProviderProfileUpdateRequested message from a plain object. Also converts values to their respective internal types.
|
|
35398
|
+
* @function fromObject
|
|
35399
|
+
* @memberof GingerProviderProfileUpdateRequested
|
|
35400
|
+
* @static
|
|
35401
|
+
* @param {Object.<string,*>} object Plain object
|
|
35402
|
+
* @returns {GingerProviderProfileUpdateRequested} GingerProviderProfileUpdateRequested
|
|
35403
|
+
*/
|
|
35404
|
+
GingerProviderProfileUpdateRequested.fromObject = function fromObject(object) {
|
|
35405
|
+
if (object instanceof $root.GingerProviderProfileUpdateRequested)
|
|
35406
|
+
return object;
|
|
35407
|
+
var message = new $root.GingerProviderProfileUpdateRequested();
|
|
35408
|
+
if (object.request != null) {
|
|
35409
|
+
if (typeof object.request !== "object")
|
|
35410
|
+
throw TypeError(".GingerProviderProfileUpdateRequested.request: object expected");
|
|
35411
|
+
message.request = $root.GingerProviderProfileUpdateRequest.fromObject(object.request);
|
|
35412
|
+
}
|
|
35413
|
+
return message;
|
|
35414
|
+
};
|
|
35415
|
+
|
|
35416
|
+
/**
|
|
35417
|
+
* Creates a plain object from a GingerProviderProfileUpdateRequested message. Also converts values to other types if specified.
|
|
35418
|
+
* @function toObject
|
|
35419
|
+
* @memberof GingerProviderProfileUpdateRequested
|
|
35420
|
+
* @static
|
|
35421
|
+
* @param {GingerProviderProfileUpdateRequested} message GingerProviderProfileUpdateRequested
|
|
35422
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
35423
|
+
* @returns {Object.<string,*>} Plain object
|
|
35424
|
+
*/
|
|
35425
|
+
GingerProviderProfileUpdateRequested.toObject = function toObject(message, options) {
|
|
35426
|
+
if (!options)
|
|
35427
|
+
options = {};
|
|
35428
|
+
var object = {};
|
|
35429
|
+
if (options.defaults)
|
|
35430
|
+
object.request = null;
|
|
35431
|
+
if (message.request != null && message.hasOwnProperty("request"))
|
|
35432
|
+
object.request = $root.GingerProviderProfileUpdateRequest.toObject(message.request, options);
|
|
35433
|
+
return object;
|
|
35434
|
+
};
|
|
35435
|
+
|
|
35436
|
+
/**
|
|
35437
|
+
* Converts this GingerProviderProfileUpdateRequested to JSON.
|
|
35438
|
+
* @function toJSON
|
|
35439
|
+
* @memberof GingerProviderProfileUpdateRequested
|
|
35440
|
+
* @instance
|
|
35441
|
+
* @returns {Object.<string,*>} JSON object
|
|
35442
|
+
*/
|
|
35443
|
+
GingerProviderProfileUpdateRequested.prototype.toJSON = function toJSON() {
|
|
35444
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
35445
|
+
};
|
|
35446
|
+
|
|
35447
|
+
return GingerProviderProfileUpdateRequested;
|
|
35448
|
+
})();
|
|
35449
|
+
|
|
35450
|
+
$root.GingerProviderProfileUpdateRequestCompleted = (function() {
|
|
35451
|
+
|
|
35452
|
+
/**
|
|
35453
|
+
* Properties of a GingerProviderProfileUpdateRequestCompleted.
|
|
35454
|
+
* @name IGingerProviderProfileUpdateRequestCompleted
|
|
35455
|
+
* @interface IGingerProviderProfileUpdateRequestCompleted
|
|
35456
|
+
* @property {IGingerProviderProfileUpdateRequest|null} [request] GingerProviderProfileUpdateRequestCompleted request
|
|
35457
|
+
* @property {GingerProviderProfileUpdateRequestAction|null} [action] GingerProviderProfileUpdateRequestCompleted action
|
|
35458
|
+
*/
|
|
35459
|
+
|
|
35460
|
+
/**
|
|
35461
|
+
* Constructs a new GingerProviderProfileUpdateRequestCompleted.
|
|
35462
|
+
* @name GingerProviderProfileUpdateRequestCompleted
|
|
35463
|
+
* @classdesc Represents a GingerProviderProfileUpdateRequestCompleted.
|
|
35464
|
+
* @implements IGingerProviderProfileUpdateRequestCompleted
|
|
35465
|
+
* @constructor
|
|
35466
|
+
* @param {IGingerProviderProfileUpdateRequestCompleted=} [properties] Properties to set
|
|
35467
|
+
*/
|
|
35468
|
+
function GingerProviderProfileUpdateRequestCompleted(properties) {
|
|
35469
|
+
if (properties)
|
|
35470
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
35471
|
+
if (properties[keys[i]] != null)
|
|
35472
|
+
this[keys[i]] = properties[keys[i]];
|
|
35473
|
+
}
|
|
35474
|
+
|
|
35475
|
+
/**
|
|
35476
|
+
* GingerProviderProfileUpdateRequestCompleted request.
|
|
35477
|
+
* @member {IGingerProviderProfileUpdateRequest|null|undefined} request
|
|
35478
|
+
* @memberof GingerProviderProfileUpdateRequestCompleted
|
|
35479
|
+
* @instance
|
|
35480
|
+
*/
|
|
35481
|
+
GingerProviderProfileUpdateRequestCompleted.prototype.request = null;
|
|
35482
|
+
|
|
35483
|
+
/**
|
|
35484
|
+
* GingerProviderProfileUpdateRequestCompleted action.
|
|
35485
|
+
* @member {GingerProviderProfileUpdateRequestAction} action
|
|
35486
|
+
* @memberof GingerProviderProfileUpdateRequestCompleted
|
|
35487
|
+
* @instance
|
|
35488
|
+
*/
|
|
35489
|
+
GingerProviderProfileUpdateRequestCompleted.prototype.action = 0;
|
|
35490
|
+
|
|
35491
|
+
/**
|
|
35492
|
+
* Creates a new GingerProviderProfileUpdateRequestCompleted instance using the specified properties.
|
|
35493
|
+
* @function create
|
|
35494
|
+
* @memberof GingerProviderProfileUpdateRequestCompleted
|
|
35495
|
+
* @static
|
|
35496
|
+
* @param {IGingerProviderProfileUpdateRequestCompleted=} [properties] Properties to set
|
|
35497
|
+
* @returns {GingerProviderProfileUpdateRequestCompleted} GingerProviderProfileUpdateRequestCompleted instance
|
|
35498
|
+
*/
|
|
35499
|
+
GingerProviderProfileUpdateRequestCompleted.create = function create(properties) {
|
|
35500
|
+
return new GingerProviderProfileUpdateRequestCompleted(properties);
|
|
35501
|
+
};
|
|
35502
|
+
|
|
35503
|
+
/**
|
|
35504
|
+
* Encodes the specified GingerProviderProfileUpdateRequestCompleted message. Does not implicitly {@link GingerProviderProfileUpdateRequestCompleted.verify|verify} messages.
|
|
35505
|
+
* @function encode
|
|
35506
|
+
* @memberof GingerProviderProfileUpdateRequestCompleted
|
|
35507
|
+
* @static
|
|
35508
|
+
* @param {IGingerProviderProfileUpdateRequestCompleted} message GingerProviderProfileUpdateRequestCompleted message or plain object to encode
|
|
35509
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
35510
|
+
* @returns {$protobuf.Writer} Writer
|
|
35511
|
+
*/
|
|
35512
|
+
GingerProviderProfileUpdateRequestCompleted.encode = function encode(message, writer) {
|
|
35513
|
+
if (!writer)
|
|
35514
|
+
writer = $Writer.create();
|
|
35515
|
+
if (message.request != null && message.hasOwnProperty("request"))
|
|
35516
|
+
$root.GingerProviderProfileUpdateRequest.encode(message.request, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
35517
|
+
if (message.action != null && message.hasOwnProperty("action"))
|
|
35518
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.action);
|
|
35519
|
+
return writer;
|
|
35520
|
+
};
|
|
35521
|
+
|
|
35522
|
+
/**
|
|
35523
|
+
* Encodes the specified GingerProviderProfileUpdateRequestCompleted message, length delimited. Does not implicitly {@link GingerProviderProfileUpdateRequestCompleted.verify|verify} messages.
|
|
35524
|
+
* @function encodeDelimited
|
|
35525
|
+
* @memberof GingerProviderProfileUpdateRequestCompleted
|
|
35526
|
+
* @static
|
|
35527
|
+
* @param {IGingerProviderProfileUpdateRequestCompleted} message GingerProviderProfileUpdateRequestCompleted message or plain object to encode
|
|
35528
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
35529
|
+
* @returns {$protobuf.Writer} Writer
|
|
35530
|
+
*/
|
|
35531
|
+
GingerProviderProfileUpdateRequestCompleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
35532
|
+
return this.encode(message, writer).ldelim();
|
|
35533
|
+
};
|
|
35534
|
+
|
|
35535
|
+
/**
|
|
35536
|
+
* Decodes a GingerProviderProfileUpdateRequestCompleted message from the specified reader or buffer.
|
|
35537
|
+
* @function decode
|
|
35538
|
+
* @memberof GingerProviderProfileUpdateRequestCompleted
|
|
35539
|
+
* @static
|
|
35540
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
35541
|
+
* @param {number} [length] Message length if known beforehand
|
|
35542
|
+
* @returns {GingerProviderProfileUpdateRequestCompleted} GingerProviderProfileUpdateRequestCompleted
|
|
35543
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
35544
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
35545
|
+
*/
|
|
35546
|
+
GingerProviderProfileUpdateRequestCompleted.decode = function decode(reader, length) {
|
|
35547
|
+
if (!(reader instanceof $Reader))
|
|
35548
|
+
reader = $Reader.create(reader);
|
|
35549
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.GingerProviderProfileUpdateRequestCompleted();
|
|
35550
|
+
while (reader.pos < end) {
|
|
35551
|
+
var tag = reader.uint32();
|
|
35552
|
+
switch (tag >>> 3) {
|
|
35553
|
+
case 1:
|
|
35554
|
+
message.request = $root.GingerProviderProfileUpdateRequest.decode(reader, reader.uint32());
|
|
35555
|
+
break;
|
|
35556
|
+
case 2:
|
|
35557
|
+
message.action = reader.int32();
|
|
35558
|
+
break;
|
|
35559
|
+
default:
|
|
35560
|
+
reader.skipType(tag & 7);
|
|
35561
|
+
break;
|
|
35562
|
+
}
|
|
35563
|
+
}
|
|
35564
|
+
return message;
|
|
35565
|
+
};
|
|
35566
|
+
|
|
35567
|
+
/**
|
|
35568
|
+
* Decodes a GingerProviderProfileUpdateRequestCompleted message from the specified reader or buffer, length delimited.
|
|
35569
|
+
* @function decodeDelimited
|
|
35570
|
+
* @memberof GingerProviderProfileUpdateRequestCompleted
|
|
35571
|
+
* @static
|
|
35572
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
35573
|
+
* @returns {GingerProviderProfileUpdateRequestCompleted} GingerProviderProfileUpdateRequestCompleted
|
|
35574
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
35575
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
35576
|
+
*/
|
|
35577
|
+
GingerProviderProfileUpdateRequestCompleted.decodeDelimited = function decodeDelimited(reader) {
|
|
35578
|
+
if (!(reader instanceof $Reader))
|
|
35579
|
+
reader = new $Reader(reader);
|
|
35580
|
+
return this.decode(reader, reader.uint32());
|
|
35581
|
+
};
|
|
35582
|
+
|
|
35583
|
+
/**
|
|
35584
|
+
* Verifies a GingerProviderProfileUpdateRequestCompleted message.
|
|
35585
|
+
* @function verify
|
|
35586
|
+
* @memberof GingerProviderProfileUpdateRequestCompleted
|
|
35587
|
+
* @static
|
|
35588
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
35589
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
35590
|
+
*/
|
|
35591
|
+
GingerProviderProfileUpdateRequestCompleted.verify = function verify(message) {
|
|
35592
|
+
if (typeof message !== "object" || message === null)
|
|
35593
|
+
return "object expected";
|
|
35594
|
+
if (message.request != null && message.hasOwnProperty("request")) {
|
|
35595
|
+
var error = $root.GingerProviderProfileUpdateRequest.verify(message.request);
|
|
35596
|
+
if (error)
|
|
35597
|
+
return "request." + error;
|
|
35598
|
+
}
|
|
35599
|
+
if (message.action != null && message.hasOwnProperty("action"))
|
|
35600
|
+
switch (message.action) {
|
|
35601
|
+
default:
|
|
35602
|
+
return "action: enum value expected";
|
|
35603
|
+
case 0:
|
|
35604
|
+
case 1:
|
|
35605
|
+
case 2:
|
|
35606
|
+
break;
|
|
35607
|
+
}
|
|
35608
|
+
return null;
|
|
35609
|
+
};
|
|
35610
|
+
|
|
35611
|
+
/**
|
|
35612
|
+
* Creates a GingerProviderProfileUpdateRequestCompleted message from a plain object. Also converts values to their respective internal types.
|
|
35613
|
+
* @function fromObject
|
|
35614
|
+
* @memberof GingerProviderProfileUpdateRequestCompleted
|
|
35615
|
+
* @static
|
|
35616
|
+
* @param {Object.<string,*>} object Plain object
|
|
35617
|
+
* @returns {GingerProviderProfileUpdateRequestCompleted} GingerProviderProfileUpdateRequestCompleted
|
|
35618
|
+
*/
|
|
35619
|
+
GingerProviderProfileUpdateRequestCompleted.fromObject = function fromObject(object) {
|
|
35620
|
+
if (object instanceof $root.GingerProviderProfileUpdateRequestCompleted)
|
|
35621
|
+
return object;
|
|
35622
|
+
var message = new $root.GingerProviderProfileUpdateRequestCompleted();
|
|
35623
|
+
if (object.request != null) {
|
|
35624
|
+
if (typeof object.request !== "object")
|
|
35625
|
+
throw TypeError(".GingerProviderProfileUpdateRequestCompleted.request: object expected");
|
|
35626
|
+
message.request = $root.GingerProviderProfileUpdateRequest.fromObject(object.request);
|
|
35627
|
+
}
|
|
35628
|
+
switch (object.action) {
|
|
35629
|
+
case "GINGER_PROVIDER_PROFILE_UPDATE_REQUEST_ACTION_UNKNOWN":
|
|
35630
|
+
case 0:
|
|
35631
|
+
message.action = 0;
|
|
35632
|
+
break;
|
|
35633
|
+
case "GINGER_PROVIDER_PROFILE_UPDATE_REQUEST_ACTION_APPROVED":
|
|
35634
|
+
case 1:
|
|
35635
|
+
message.action = 1;
|
|
35636
|
+
break;
|
|
35637
|
+
case "GINGER_PROVIDER_PROFILE_UPDATE_REQUEST_ACTION_REJECTED":
|
|
35638
|
+
case 2:
|
|
35639
|
+
message.action = 2;
|
|
35640
|
+
break;
|
|
35641
|
+
}
|
|
35642
|
+
return message;
|
|
35643
|
+
};
|
|
35644
|
+
|
|
35645
|
+
/**
|
|
35646
|
+
* Creates a plain object from a GingerProviderProfileUpdateRequestCompleted message. Also converts values to other types if specified.
|
|
35647
|
+
* @function toObject
|
|
35648
|
+
* @memberof GingerProviderProfileUpdateRequestCompleted
|
|
35649
|
+
* @static
|
|
35650
|
+
* @param {GingerProviderProfileUpdateRequestCompleted} message GingerProviderProfileUpdateRequestCompleted
|
|
35651
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
35652
|
+
* @returns {Object.<string,*>} Plain object
|
|
35653
|
+
*/
|
|
35654
|
+
GingerProviderProfileUpdateRequestCompleted.toObject = function toObject(message, options) {
|
|
35655
|
+
if (!options)
|
|
35656
|
+
options = {};
|
|
35657
|
+
var object = {};
|
|
35658
|
+
if (options.defaults) {
|
|
35659
|
+
object.request = null;
|
|
35660
|
+
object.action = options.enums === String ? "GINGER_PROVIDER_PROFILE_UPDATE_REQUEST_ACTION_UNKNOWN" : 0;
|
|
35661
|
+
}
|
|
35662
|
+
if (message.request != null && message.hasOwnProperty("request"))
|
|
35663
|
+
object.request = $root.GingerProviderProfileUpdateRequest.toObject(message.request, options);
|
|
35664
|
+
if (message.action != null && message.hasOwnProperty("action"))
|
|
35665
|
+
object.action = options.enums === String ? $root.GingerProviderProfileUpdateRequestAction[message.action] : message.action;
|
|
35666
|
+
return object;
|
|
35667
|
+
};
|
|
35668
|
+
|
|
35669
|
+
/**
|
|
35670
|
+
* Converts this GingerProviderProfileUpdateRequestCompleted to JSON.
|
|
35671
|
+
* @function toJSON
|
|
35672
|
+
* @memberof GingerProviderProfileUpdateRequestCompleted
|
|
35673
|
+
* @instance
|
|
35674
|
+
* @returns {Object.<string,*>} JSON object
|
|
35675
|
+
*/
|
|
35676
|
+
GingerProviderProfileUpdateRequestCompleted.prototype.toJSON = function toJSON() {
|
|
35677
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
35678
|
+
};
|
|
35679
|
+
|
|
35680
|
+
return GingerProviderProfileUpdateRequestCompleted;
|
|
35681
|
+
})();
|
|
35682
|
+
|
|
35683
|
+
/**
|
|
35684
|
+
* GingerProviderProfileUpdateRequestAction enum.
|
|
35685
|
+
* @name GingerProviderProfileUpdateRequestAction
|
|
35686
|
+
* @enum {string}
|
|
35687
|
+
* @property {number} GINGER_PROVIDER_PROFILE_UPDATE_REQUEST_ACTION_UNKNOWN=0 GINGER_PROVIDER_PROFILE_UPDATE_REQUEST_ACTION_UNKNOWN value
|
|
35688
|
+
* @property {number} GINGER_PROVIDER_PROFILE_UPDATE_REQUEST_ACTION_APPROVED=1 GINGER_PROVIDER_PROFILE_UPDATE_REQUEST_ACTION_APPROVED value
|
|
35689
|
+
* @property {number} GINGER_PROVIDER_PROFILE_UPDATE_REQUEST_ACTION_REJECTED=2 GINGER_PROVIDER_PROFILE_UPDATE_REQUEST_ACTION_REJECTED value
|
|
35690
|
+
*/
|
|
35691
|
+
$root.GingerProviderProfileUpdateRequestAction = (function() {
|
|
35692
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
35693
|
+
values[valuesById[0] = "GINGER_PROVIDER_PROFILE_UPDATE_REQUEST_ACTION_UNKNOWN"] = 0;
|
|
35694
|
+
values[valuesById[1] = "GINGER_PROVIDER_PROFILE_UPDATE_REQUEST_ACTION_APPROVED"] = 1;
|
|
35695
|
+
values[valuesById[2] = "GINGER_PROVIDER_PROFILE_UPDATE_REQUEST_ACTION_REJECTED"] = 2;
|
|
35696
|
+
return values;
|
|
35697
|
+
})();
|
|
35698
|
+
|
|
35699
|
+
$root.GingerProviderProfileUpdateRequest = (function() {
|
|
35700
|
+
|
|
35701
|
+
/**
|
|
35702
|
+
* Properties of a GingerProviderProfileUpdateRequest.
|
|
35703
|
+
* @name IGingerProviderProfileUpdateRequest
|
|
35704
|
+
* @interface IGingerProviderProfileUpdateRequest
|
|
35705
|
+
* @property {string|null} [id] GingerProviderProfileUpdateRequest id
|
|
35706
|
+
* @property {string|null} [hsClinicianId] GingerProviderProfileUpdateRequest hsClinicianId
|
|
35707
|
+
* @property {number|null} [gingerClinicianId] GingerProviderProfileUpdateRequest gingerClinicianId
|
|
35708
|
+
* @property {string|null} [gingerProviderId] GingerProviderProfileUpdateRequest gingerProviderId
|
|
35709
|
+
*/
|
|
35710
|
+
|
|
35711
|
+
/**
|
|
35712
|
+
* Constructs a new GingerProviderProfileUpdateRequest.
|
|
35713
|
+
* @name GingerProviderProfileUpdateRequest
|
|
35714
|
+
* @classdesc Represents a GingerProviderProfileUpdateRequest.
|
|
35715
|
+
* @implements IGingerProviderProfileUpdateRequest
|
|
35716
|
+
* @constructor
|
|
35717
|
+
* @param {IGingerProviderProfileUpdateRequest=} [properties] Properties to set
|
|
35718
|
+
*/
|
|
35719
|
+
function GingerProviderProfileUpdateRequest(properties) {
|
|
35720
|
+
if (properties)
|
|
35721
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
35722
|
+
if (properties[keys[i]] != null)
|
|
35723
|
+
this[keys[i]] = properties[keys[i]];
|
|
35724
|
+
}
|
|
35725
|
+
|
|
35726
|
+
/**
|
|
35727
|
+
* GingerProviderProfileUpdateRequest id.
|
|
35728
|
+
* @member {string} id
|
|
35729
|
+
* @memberof GingerProviderProfileUpdateRequest
|
|
35730
|
+
* @instance
|
|
35731
|
+
*/
|
|
35732
|
+
GingerProviderProfileUpdateRequest.prototype.id = "";
|
|
35733
|
+
|
|
35734
|
+
/**
|
|
35735
|
+
* GingerProviderProfileUpdateRequest hsClinicianId.
|
|
35736
|
+
* @member {string} hsClinicianId
|
|
35737
|
+
* @memberof GingerProviderProfileUpdateRequest
|
|
35738
|
+
* @instance
|
|
35739
|
+
*/
|
|
35740
|
+
GingerProviderProfileUpdateRequest.prototype.hsClinicianId = "";
|
|
35741
|
+
|
|
35742
|
+
/**
|
|
35743
|
+
* GingerProviderProfileUpdateRequest gingerClinicianId.
|
|
35744
|
+
* @member {number} gingerClinicianId
|
|
35745
|
+
* @memberof GingerProviderProfileUpdateRequest
|
|
35746
|
+
* @instance
|
|
35747
|
+
*/
|
|
35748
|
+
GingerProviderProfileUpdateRequest.prototype.gingerClinicianId = 0;
|
|
35749
|
+
|
|
35750
|
+
/**
|
|
35751
|
+
* GingerProviderProfileUpdateRequest gingerProviderId.
|
|
35752
|
+
* @member {string} gingerProviderId
|
|
35753
|
+
* @memberof GingerProviderProfileUpdateRequest
|
|
35754
|
+
* @instance
|
|
35755
|
+
*/
|
|
35756
|
+
GingerProviderProfileUpdateRequest.prototype.gingerProviderId = "";
|
|
35757
|
+
|
|
35758
|
+
/**
|
|
35759
|
+
* Creates a new GingerProviderProfileUpdateRequest instance using the specified properties.
|
|
35760
|
+
* @function create
|
|
35761
|
+
* @memberof GingerProviderProfileUpdateRequest
|
|
35762
|
+
* @static
|
|
35763
|
+
* @param {IGingerProviderProfileUpdateRequest=} [properties] Properties to set
|
|
35764
|
+
* @returns {GingerProviderProfileUpdateRequest} GingerProviderProfileUpdateRequest instance
|
|
35765
|
+
*/
|
|
35766
|
+
GingerProviderProfileUpdateRequest.create = function create(properties) {
|
|
35767
|
+
return new GingerProviderProfileUpdateRequest(properties);
|
|
35768
|
+
};
|
|
35769
|
+
|
|
35770
|
+
/**
|
|
35771
|
+
* Encodes the specified GingerProviderProfileUpdateRequest message. Does not implicitly {@link GingerProviderProfileUpdateRequest.verify|verify} messages.
|
|
35772
|
+
* @function encode
|
|
35773
|
+
* @memberof GingerProviderProfileUpdateRequest
|
|
35774
|
+
* @static
|
|
35775
|
+
* @param {IGingerProviderProfileUpdateRequest} message GingerProviderProfileUpdateRequest message or plain object to encode
|
|
35776
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
35777
|
+
* @returns {$protobuf.Writer} Writer
|
|
35778
|
+
*/
|
|
35779
|
+
GingerProviderProfileUpdateRequest.encode = function encode(message, writer) {
|
|
35780
|
+
if (!writer)
|
|
35781
|
+
writer = $Writer.create();
|
|
35782
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
35783
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
|
|
35784
|
+
if (message.hsClinicianId != null && message.hasOwnProperty("hsClinicianId"))
|
|
35785
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.hsClinicianId);
|
|
35786
|
+
if (message.gingerClinicianId != null && message.hasOwnProperty("gingerClinicianId"))
|
|
35787
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.gingerClinicianId);
|
|
35788
|
+
if (message.gingerProviderId != null && message.hasOwnProperty("gingerProviderId"))
|
|
35789
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.gingerProviderId);
|
|
35790
|
+
return writer;
|
|
35791
|
+
};
|
|
35792
|
+
|
|
35793
|
+
/**
|
|
35794
|
+
* Encodes the specified GingerProviderProfileUpdateRequest message, length delimited. Does not implicitly {@link GingerProviderProfileUpdateRequest.verify|verify} messages.
|
|
35795
|
+
* @function encodeDelimited
|
|
35796
|
+
* @memberof GingerProviderProfileUpdateRequest
|
|
35797
|
+
* @static
|
|
35798
|
+
* @param {IGingerProviderProfileUpdateRequest} message GingerProviderProfileUpdateRequest message or plain object to encode
|
|
35799
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
35800
|
+
* @returns {$protobuf.Writer} Writer
|
|
35801
|
+
*/
|
|
35802
|
+
GingerProviderProfileUpdateRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
35803
|
+
return this.encode(message, writer).ldelim();
|
|
35804
|
+
};
|
|
35805
|
+
|
|
35806
|
+
/**
|
|
35807
|
+
* Decodes a GingerProviderProfileUpdateRequest message from the specified reader or buffer.
|
|
35808
|
+
* @function decode
|
|
35809
|
+
* @memberof GingerProviderProfileUpdateRequest
|
|
35810
|
+
* @static
|
|
35811
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
35812
|
+
* @param {number} [length] Message length if known beforehand
|
|
35813
|
+
* @returns {GingerProviderProfileUpdateRequest} GingerProviderProfileUpdateRequest
|
|
35814
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
35815
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
35816
|
+
*/
|
|
35817
|
+
GingerProviderProfileUpdateRequest.decode = function decode(reader, length) {
|
|
35818
|
+
if (!(reader instanceof $Reader))
|
|
35819
|
+
reader = $Reader.create(reader);
|
|
35820
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.GingerProviderProfileUpdateRequest();
|
|
35821
|
+
while (reader.pos < end) {
|
|
35822
|
+
var tag = reader.uint32();
|
|
35823
|
+
switch (tag >>> 3) {
|
|
35824
|
+
case 1:
|
|
35825
|
+
message.id = reader.string();
|
|
35826
|
+
break;
|
|
35827
|
+
case 2:
|
|
35828
|
+
message.hsClinicianId = reader.string();
|
|
35829
|
+
break;
|
|
35830
|
+
case 3:
|
|
35831
|
+
message.gingerClinicianId = reader.uint32();
|
|
35832
|
+
break;
|
|
35833
|
+
case 4:
|
|
35834
|
+
message.gingerProviderId = reader.string();
|
|
35835
|
+
break;
|
|
35836
|
+
default:
|
|
35837
|
+
reader.skipType(tag & 7);
|
|
35838
|
+
break;
|
|
35839
|
+
}
|
|
35840
|
+
}
|
|
35841
|
+
return message;
|
|
35842
|
+
};
|
|
35843
|
+
|
|
35844
|
+
/**
|
|
35845
|
+
* Decodes a GingerProviderProfileUpdateRequest message from the specified reader or buffer, length delimited.
|
|
35846
|
+
* @function decodeDelimited
|
|
35847
|
+
* @memberof GingerProviderProfileUpdateRequest
|
|
35848
|
+
* @static
|
|
35849
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
35850
|
+
* @returns {GingerProviderProfileUpdateRequest} GingerProviderProfileUpdateRequest
|
|
35851
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
35852
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
35853
|
+
*/
|
|
35854
|
+
GingerProviderProfileUpdateRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
35855
|
+
if (!(reader instanceof $Reader))
|
|
35856
|
+
reader = new $Reader(reader);
|
|
35857
|
+
return this.decode(reader, reader.uint32());
|
|
35858
|
+
};
|
|
35859
|
+
|
|
35860
|
+
/**
|
|
35861
|
+
* Verifies a GingerProviderProfileUpdateRequest message.
|
|
35862
|
+
* @function verify
|
|
35863
|
+
* @memberof GingerProviderProfileUpdateRequest
|
|
35864
|
+
* @static
|
|
35865
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
35866
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
35867
|
+
*/
|
|
35868
|
+
GingerProviderProfileUpdateRequest.verify = function verify(message) {
|
|
35869
|
+
if (typeof message !== "object" || message === null)
|
|
35870
|
+
return "object expected";
|
|
35871
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
35872
|
+
if (!$util.isString(message.id))
|
|
35873
|
+
return "id: string expected";
|
|
35874
|
+
if (message.hsClinicianId != null && message.hasOwnProperty("hsClinicianId"))
|
|
35875
|
+
if (!$util.isString(message.hsClinicianId))
|
|
35876
|
+
return "hsClinicianId: string expected";
|
|
35877
|
+
if (message.gingerClinicianId != null && message.hasOwnProperty("gingerClinicianId"))
|
|
35878
|
+
if (!$util.isInteger(message.gingerClinicianId))
|
|
35879
|
+
return "gingerClinicianId: integer expected";
|
|
35880
|
+
if (message.gingerProviderId != null && message.hasOwnProperty("gingerProviderId"))
|
|
35881
|
+
if (!$util.isString(message.gingerProviderId))
|
|
35882
|
+
return "gingerProviderId: string expected";
|
|
35883
|
+
return null;
|
|
35884
|
+
};
|
|
35885
|
+
|
|
35886
|
+
/**
|
|
35887
|
+
* Creates a GingerProviderProfileUpdateRequest message from a plain object. Also converts values to their respective internal types.
|
|
35888
|
+
* @function fromObject
|
|
35889
|
+
* @memberof GingerProviderProfileUpdateRequest
|
|
35890
|
+
* @static
|
|
35891
|
+
* @param {Object.<string,*>} object Plain object
|
|
35892
|
+
* @returns {GingerProviderProfileUpdateRequest} GingerProviderProfileUpdateRequest
|
|
35893
|
+
*/
|
|
35894
|
+
GingerProviderProfileUpdateRequest.fromObject = function fromObject(object) {
|
|
35895
|
+
if (object instanceof $root.GingerProviderProfileUpdateRequest)
|
|
35896
|
+
return object;
|
|
35897
|
+
var message = new $root.GingerProviderProfileUpdateRequest();
|
|
35898
|
+
if (object.id != null)
|
|
35899
|
+
message.id = String(object.id);
|
|
35900
|
+
if (object.hsClinicianId != null)
|
|
35901
|
+
message.hsClinicianId = String(object.hsClinicianId);
|
|
35902
|
+
if (object.gingerClinicianId != null)
|
|
35903
|
+
message.gingerClinicianId = object.gingerClinicianId >>> 0;
|
|
35904
|
+
if (object.gingerProviderId != null)
|
|
35905
|
+
message.gingerProviderId = String(object.gingerProviderId);
|
|
35906
|
+
return message;
|
|
35907
|
+
};
|
|
35908
|
+
|
|
35909
|
+
/**
|
|
35910
|
+
* Creates a plain object from a GingerProviderProfileUpdateRequest message. Also converts values to other types if specified.
|
|
35911
|
+
* @function toObject
|
|
35912
|
+
* @memberof GingerProviderProfileUpdateRequest
|
|
35913
|
+
* @static
|
|
35914
|
+
* @param {GingerProviderProfileUpdateRequest} message GingerProviderProfileUpdateRequest
|
|
35915
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
35916
|
+
* @returns {Object.<string,*>} Plain object
|
|
35917
|
+
*/
|
|
35918
|
+
GingerProviderProfileUpdateRequest.toObject = function toObject(message, options) {
|
|
35919
|
+
if (!options)
|
|
35920
|
+
options = {};
|
|
35921
|
+
var object = {};
|
|
35922
|
+
if (options.defaults) {
|
|
35923
|
+
object.id = "";
|
|
35924
|
+
object.hsClinicianId = "";
|
|
35925
|
+
object.gingerClinicianId = 0;
|
|
35926
|
+
object.gingerProviderId = "";
|
|
35927
|
+
}
|
|
35928
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
35929
|
+
object.id = message.id;
|
|
35930
|
+
if (message.hsClinicianId != null && message.hasOwnProperty("hsClinicianId"))
|
|
35931
|
+
object.hsClinicianId = message.hsClinicianId;
|
|
35932
|
+
if (message.gingerClinicianId != null && message.hasOwnProperty("gingerClinicianId"))
|
|
35933
|
+
object.gingerClinicianId = message.gingerClinicianId;
|
|
35934
|
+
if (message.gingerProviderId != null && message.hasOwnProperty("gingerProviderId"))
|
|
35935
|
+
object.gingerProviderId = message.gingerProviderId;
|
|
35936
|
+
return object;
|
|
35937
|
+
};
|
|
35938
|
+
|
|
35939
|
+
/**
|
|
35940
|
+
* Converts this GingerProviderProfileUpdateRequest to JSON.
|
|
35941
|
+
* @function toJSON
|
|
35942
|
+
* @memberof GingerProviderProfileUpdateRequest
|
|
35943
|
+
* @instance
|
|
35944
|
+
* @returns {Object.<string,*>} JSON object
|
|
35945
|
+
*/
|
|
35946
|
+
GingerProviderProfileUpdateRequest.prototype.toJSON = function toJSON() {
|
|
35947
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
35948
|
+
};
|
|
35949
|
+
|
|
35950
|
+
return GingerProviderProfileUpdateRequest;
|
|
35951
|
+
})();
|
|
35952
|
+
|
|
35258
35953
|
$root.b2b = (function() {
|
|
35259
35954
|
|
|
35260
35955
|
/**
|
|
@@ -134988,6 +135683,311 @@ $root.OrganizationSubscriptionDeleted = (function() {
|
|
|
134988
135683
|
return OrganizationSubscriptionDeleted;
|
|
134989
135684
|
})();
|
|
134990
135685
|
|
|
135686
|
+
$root.OrganizationContractSwitched = (function() {
|
|
135687
|
+
|
|
135688
|
+
/**
|
|
135689
|
+
* Properties of an OrganizationContractSwitched.
|
|
135690
|
+
* @name IOrganizationContractSwitched
|
|
135691
|
+
* @interface IOrganizationContractSwitched
|
|
135692
|
+
* @property {b2b.IOrganization|null} [organization] OrganizationContractSwitched organization
|
|
135693
|
+
* @property {b2b.IB2BSubscriptionManagement|null} [activatedContract] OrganizationContractSwitched activatedContract
|
|
135694
|
+
* @property {b2b.IB2BSubscriptionManagement|null} [expiredContract] OrganizationContractSwitched expiredContract
|
|
135695
|
+
* @property {string|null} [adminPortalUserId] OrganizationContractSwitched adminPortalUserId
|
|
135696
|
+
* @property {number|Long|null} [timestamp] OrganizationContractSwitched timestamp
|
|
135697
|
+
*/
|
|
135698
|
+
|
|
135699
|
+
/**
|
|
135700
|
+
* Constructs a new OrganizationContractSwitched.
|
|
135701
|
+
* @name OrganizationContractSwitched
|
|
135702
|
+
* @classdesc Represents an OrganizationContractSwitched.
|
|
135703
|
+
* @implements IOrganizationContractSwitched
|
|
135704
|
+
* @constructor
|
|
135705
|
+
* @param {IOrganizationContractSwitched=} [properties] Properties to set
|
|
135706
|
+
*/
|
|
135707
|
+
function OrganizationContractSwitched(properties) {
|
|
135708
|
+
if (properties)
|
|
135709
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
135710
|
+
if (properties[keys[i]] != null)
|
|
135711
|
+
this[keys[i]] = properties[keys[i]];
|
|
135712
|
+
}
|
|
135713
|
+
|
|
135714
|
+
/**
|
|
135715
|
+
* OrganizationContractSwitched organization.
|
|
135716
|
+
* @member {b2b.IOrganization|null|undefined} organization
|
|
135717
|
+
* @memberof OrganizationContractSwitched
|
|
135718
|
+
* @instance
|
|
135719
|
+
*/
|
|
135720
|
+
OrganizationContractSwitched.prototype.organization = null;
|
|
135721
|
+
|
|
135722
|
+
/**
|
|
135723
|
+
* OrganizationContractSwitched activatedContract.
|
|
135724
|
+
* @member {b2b.IB2BSubscriptionManagement|null|undefined} activatedContract
|
|
135725
|
+
* @memberof OrganizationContractSwitched
|
|
135726
|
+
* @instance
|
|
135727
|
+
*/
|
|
135728
|
+
OrganizationContractSwitched.prototype.activatedContract = null;
|
|
135729
|
+
|
|
135730
|
+
/**
|
|
135731
|
+
* OrganizationContractSwitched expiredContract.
|
|
135732
|
+
* @member {b2b.IB2BSubscriptionManagement|null|undefined} expiredContract
|
|
135733
|
+
* @memberof OrganizationContractSwitched
|
|
135734
|
+
* @instance
|
|
135735
|
+
*/
|
|
135736
|
+
OrganizationContractSwitched.prototype.expiredContract = null;
|
|
135737
|
+
|
|
135738
|
+
/**
|
|
135739
|
+
* OrganizationContractSwitched adminPortalUserId.
|
|
135740
|
+
* @member {string} adminPortalUserId
|
|
135741
|
+
* @memberof OrganizationContractSwitched
|
|
135742
|
+
* @instance
|
|
135743
|
+
*/
|
|
135744
|
+
OrganizationContractSwitched.prototype.adminPortalUserId = "";
|
|
135745
|
+
|
|
135746
|
+
/**
|
|
135747
|
+
* OrganizationContractSwitched timestamp.
|
|
135748
|
+
* @member {number|Long} timestamp
|
|
135749
|
+
* @memberof OrganizationContractSwitched
|
|
135750
|
+
* @instance
|
|
135751
|
+
*/
|
|
135752
|
+
OrganizationContractSwitched.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
135753
|
+
|
|
135754
|
+
/**
|
|
135755
|
+
* Creates a new OrganizationContractSwitched instance using the specified properties.
|
|
135756
|
+
* @function create
|
|
135757
|
+
* @memberof OrganizationContractSwitched
|
|
135758
|
+
* @static
|
|
135759
|
+
* @param {IOrganizationContractSwitched=} [properties] Properties to set
|
|
135760
|
+
* @returns {OrganizationContractSwitched} OrganizationContractSwitched instance
|
|
135761
|
+
*/
|
|
135762
|
+
OrganizationContractSwitched.create = function create(properties) {
|
|
135763
|
+
return new OrganizationContractSwitched(properties);
|
|
135764
|
+
};
|
|
135765
|
+
|
|
135766
|
+
/**
|
|
135767
|
+
* Encodes the specified OrganizationContractSwitched message. Does not implicitly {@link OrganizationContractSwitched.verify|verify} messages.
|
|
135768
|
+
* @function encode
|
|
135769
|
+
* @memberof OrganizationContractSwitched
|
|
135770
|
+
* @static
|
|
135771
|
+
* @param {IOrganizationContractSwitched} message OrganizationContractSwitched message or plain object to encode
|
|
135772
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
135773
|
+
* @returns {$protobuf.Writer} Writer
|
|
135774
|
+
*/
|
|
135775
|
+
OrganizationContractSwitched.encode = function encode(message, writer) {
|
|
135776
|
+
if (!writer)
|
|
135777
|
+
writer = $Writer.create();
|
|
135778
|
+
if (message.organization != null && message.hasOwnProperty("organization"))
|
|
135779
|
+
$root.b2b.Organization.encode(message.organization, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
135780
|
+
if (message.activatedContract != null && message.hasOwnProperty("activatedContract"))
|
|
135781
|
+
$root.b2b.B2BSubscriptionManagement.encode(message.activatedContract, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
135782
|
+
if (message.expiredContract != null && message.hasOwnProperty("expiredContract"))
|
|
135783
|
+
$root.b2b.B2BSubscriptionManagement.encode(message.expiredContract, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
135784
|
+
if (message.adminPortalUserId != null && message.hasOwnProperty("adminPortalUserId"))
|
|
135785
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.adminPortalUserId);
|
|
135786
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
135787
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.timestamp);
|
|
135788
|
+
return writer;
|
|
135789
|
+
};
|
|
135790
|
+
|
|
135791
|
+
/**
|
|
135792
|
+
* Encodes the specified OrganizationContractSwitched message, length delimited. Does not implicitly {@link OrganizationContractSwitched.verify|verify} messages.
|
|
135793
|
+
* @function encodeDelimited
|
|
135794
|
+
* @memberof OrganizationContractSwitched
|
|
135795
|
+
* @static
|
|
135796
|
+
* @param {IOrganizationContractSwitched} message OrganizationContractSwitched message or plain object to encode
|
|
135797
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
135798
|
+
* @returns {$protobuf.Writer} Writer
|
|
135799
|
+
*/
|
|
135800
|
+
OrganizationContractSwitched.encodeDelimited = function encodeDelimited(message, writer) {
|
|
135801
|
+
return this.encode(message, writer).ldelim();
|
|
135802
|
+
};
|
|
135803
|
+
|
|
135804
|
+
/**
|
|
135805
|
+
* Decodes an OrganizationContractSwitched message from the specified reader or buffer.
|
|
135806
|
+
* @function decode
|
|
135807
|
+
* @memberof OrganizationContractSwitched
|
|
135808
|
+
* @static
|
|
135809
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
135810
|
+
* @param {number} [length] Message length if known beforehand
|
|
135811
|
+
* @returns {OrganizationContractSwitched} OrganizationContractSwitched
|
|
135812
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
135813
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
135814
|
+
*/
|
|
135815
|
+
OrganizationContractSwitched.decode = function decode(reader, length) {
|
|
135816
|
+
if (!(reader instanceof $Reader))
|
|
135817
|
+
reader = $Reader.create(reader);
|
|
135818
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.OrganizationContractSwitched();
|
|
135819
|
+
while (reader.pos < end) {
|
|
135820
|
+
var tag = reader.uint32();
|
|
135821
|
+
switch (tag >>> 3) {
|
|
135822
|
+
case 1:
|
|
135823
|
+
message.organization = $root.b2b.Organization.decode(reader, reader.uint32());
|
|
135824
|
+
break;
|
|
135825
|
+
case 2:
|
|
135826
|
+
message.activatedContract = $root.b2b.B2BSubscriptionManagement.decode(reader, reader.uint32());
|
|
135827
|
+
break;
|
|
135828
|
+
case 3:
|
|
135829
|
+
message.expiredContract = $root.b2b.B2BSubscriptionManagement.decode(reader, reader.uint32());
|
|
135830
|
+
break;
|
|
135831
|
+
case 4:
|
|
135832
|
+
message.adminPortalUserId = reader.string();
|
|
135833
|
+
break;
|
|
135834
|
+
case 5:
|
|
135835
|
+
message.timestamp = reader.uint64();
|
|
135836
|
+
break;
|
|
135837
|
+
default:
|
|
135838
|
+
reader.skipType(tag & 7);
|
|
135839
|
+
break;
|
|
135840
|
+
}
|
|
135841
|
+
}
|
|
135842
|
+
return message;
|
|
135843
|
+
};
|
|
135844
|
+
|
|
135845
|
+
/**
|
|
135846
|
+
* Decodes an OrganizationContractSwitched message from the specified reader or buffer, length delimited.
|
|
135847
|
+
* @function decodeDelimited
|
|
135848
|
+
* @memberof OrganizationContractSwitched
|
|
135849
|
+
* @static
|
|
135850
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
135851
|
+
* @returns {OrganizationContractSwitched} OrganizationContractSwitched
|
|
135852
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
135853
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
135854
|
+
*/
|
|
135855
|
+
OrganizationContractSwitched.decodeDelimited = function decodeDelimited(reader) {
|
|
135856
|
+
if (!(reader instanceof $Reader))
|
|
135857
|
+
reader = new $Reader(reader);
|
|
135858
|
+
return this.decode(reader, reader.uint32());
|
|
135859
|
+
};
|
|
135860
|
+
|
|
135861
|
+
/**
|
|
135862
|
+
* Verifies an OrganizationContractSwitched message.
|
|
135863
|
+
* @function verify
|
|
135864
|
+
* @memberof OrganizationContractSwitched
|
|
135865
|
+
* @static
|
|
135866
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
135867
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
135868
|
+
*/
|
|
135869
|
+
OrganizationContractSwitched.verify = function verify(message) {
|
|
135870
|
+
if (typeof message !== "object" || message === null)
|
|
135871
|
+
return "object expected";
|
|
135872
|
+
if (message.organization != null && message.hasOwnProperty("organization")) {
|
|
135873
|
+
var error = $root.b2b.Organization.verify(message.organization);
|
|
135874
|
+
if (error)
|
|
135875
|
+
return "organization." + error;
|
|
135876
|
+
}
|
|
135877
|
+
if (message.activatedContract != null && message.hasOwnProperty("activatedContract")) {
|
|
135878
|
+
var error = $root.b2b.B2BSubscriptionManagement.verify(message.activatedContract);
|
|
135879
|
+
if (error)
|
|
135880
|
+
return "activatedContract." + error;
|
|
135881
|
+
}
|
|
135882
|
+
if (message.expiredContract != null && message.hasOwnProperty("expiredContract")) {
|
|
135883
|
+
var error = $root.b2b.B2BSubscriptionManagement.verify(message.expiredContract);
|
|
135884
|
+
if (error)
|
|
135885
|
+
return "expiredContract." + error;
|
|
135886
|
+
}
|
|
135887
|
+
if (message.adminPortalUserId != null && message.hasOwnProperty("adminPortalUserId"))
|
|
135888
|
+
if (!$util.isString(message.adminPortalUserId))
|
|
135889
|
+
return "adminPortalUserId: string expected";
|
|
135890
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
135891
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
135892
|
+
return "timestamp: integer|Long expected";
|
|
135893
|
+
return null;
|
|
135894
|
+
};
|
|
135895
|
+
|
|
135896
|
+
/**
|
|
135897
|
+
* Creates an OrganizationContractSwitched message from a plain object. Also converts values to their respective internal types.
|
|
135898
|
+
* @function fromObject
|
|
135899
|
+
* @memberof OrganizationContractSwitched
|
|
135900
|
+
* @static
|
|
135901
|
+
* @param {Object.<string,*>} object Plain object
|
|
135902
|
+
* @returns {OrganizationContractSwitched} OrganizationContractSwitched
|
|
135903
|
+
*/
|
|
135904
|
+
OrganizationContractSwitched.fromObject = function fromObject(object) {
|
|
135905
|
+
if (object instanceof $root.OrganizationContractSwitched)
|
|
135906
|
+
return object;
|
|
135907
|
+
var message = new $root.OrganizationContractSwitched();
|
|
135908
|
+
if (object.organization != null) {
|
|
135909
|
+
if (typeof object.organization !== "object")
|
|
135910
|
+
throw TypeError(".OrganizationContractSwitched.organization: object expected");
|
|
135911
|
+
message.organization = $root.b2b.Organization.fromObject(object.organization);
|
|
135912
|
+
}
|
|
135913
|
+
if (object.activatedContract != null) {
|
|
135914
|
+
if (typeof object.activatedContract !== "object")
|
|
135915
|
+
throw TypeError(".OrganizationContractSwitched.activatedContract: object expected");
|
|
135916
|
+
message.activatedContract = $root.b2b.B2BSubscriptionManagement.fromObject(object.activatedContract);
|
|
135917
|
+
}
|
|
135918
|
+
if (object.expiredContract != null) {
|
|
135919
|
+
if (typeof object.expiredContract !== "object")
|
|
135920
|
+
throw TypeError(".OrganizationContractSwitched.expiredContract: object expected");
|
|
135921
|
+
message.expiredContract = $root.b2b.B2BSubscriptionManagement.fromObject(object.expiredContract);
|
|
135922
|
+
}
|
|
135923
|
+
if (object.adminPortalUserId != null)
|
|
135924
|
+
message.adminPortalUserId = String(object.adminPortalUserId);
|
|
135925
|
+
if (object.timestamp != null)
|
|
135926
|
+
if ($util.Long)
|
|
135927
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
135928
|
+
else if (typeof object.timestamp === "string")
|
|
135929
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
135930
|
+
else if (typeof object.timestamp === "number")
|
|
135931
|
+
message.timestamp = object.timestamp;
|
|
135932
|
+
else if (typeof object.timestamp === "object")
|
|
135933
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
135934
|
+
return message;
|
|
135935
|
+
};
|
|
135936
|
+
|
|
135937
|
+
/**
|
|
135938
|
+
* Creates a plain object from an OrganizationContractSwitched message. Also converts values to other types if specified.
|
|
135939
|
+
* @function toObject
|
|
135940
|
+
* @memberof OrganizationContractSwitched
|
|
135941
|
+
* @static
|
|
135942
|
+
* @param {OrganizationContractSwitched} message OrganizationContractSwitched
|
|
135943
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
135944
|
+
* @returns {Object.<string,*>} Plain object
|
|
135945
|
+
*/
|
|
135946
|
+
OrganizationContractSwitched.toObject = function toObject(message, options) {
|
|
135947
|
+
if (!options)
|
|
135948
|
+
options = {};
|
|
135949
|
+
var object = {};
|
|
135950
|
+
if (options.defaults) {
|
|
135951
|
+
object.organization = null;
|
|
135952
|
+
object.activatedContract = null;
|
|
135953
|
+
object.expiredContract = null;
|
|
135954
|
+
object.adminPortalUserId = "";
|
|
135955
|
+
if ($util.Long) {
|
|
135956
|
+
var long = new $util.Long(0, 0, true);
|
|
135957
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
135958
|
+
} else
|
|
135959
|
+
object.timestamp = options.longs === String ? "0" : 0;
|
|
135960
|
+
}
|
|
135961
|
+
if (message.organization != null && message.hasOwnProperty("organization"))
|
|
135962
|
+
object.organization = $root.b2b.Organization.toObject(message.organization, options);
|
|
135963
|
+
if (message.activatedContract != null && message.hasOwnProperty("activatedContract"))
|
|
135964
|
+
object.activatedContract = $root.b2b.B2BSubscriptionManagement.toObject(message.activatedContract, options);
|
|
135965
|
+
if (message.expiredContract != null && message.hasOwnProperty("expiredContract"))
|
|
135966
|
+
object.expiredContract = $root.b2b.B2BSubscriptionManagement.toObject(message.expiredContract, options);
|
|
135967
|
+
if (message.adminPortalUserId != null && message.hasOwnProperty("adminPortalUserId"))
|
|
135968
|
+
object.adminPortalUserId = message.adminPortalUserId;
|
|
135969
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
135970
|
+
if (typeof message.timestamp === "number")
|
|
135971
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
135972
|
+
else
|
|
135973
|
+
object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
|
|
135974
|
+
return object;
|
|
135975
|
+
};
|
|
135976
|
+
|
|
135977
|
+
/**
|
|
135978
|
+
* Converts this OrganizationContractSwitched to JSON.
|
|
135979
|
+
* @function toJSON
|
|
135980
|
+
* @memberof OrganizationContractSwitched
|
|
135981
|
+
* @instance
|
|
135982
|
+
* @returns {Object.<string,*>} JSON object
|
|
135983
|
+
*/
|
|
135984
|
+
OrganizationContractSwitched.prototype.toJSON = function toJSON() {
|
|
135985
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
135986
|
+
};
|
|
135987
|
+
|
|
135988
|
+
return OrganizationContractSwitched;
|
|
135989
|
+
})();
|
|
135990
|
+
|
|
134991
135991
|
$root.BrazeProxyChatMessageSent = (function() {
|
|
134992
135992
|
|
|
134993
135993
|
/**
|