@headspace/protos-events 1.457.0 → 1.458.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 +1933 -1819
- package/lib/index.js +305 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -88197,6 +88197,311 @@ $root.OrganizationSubscriptionActivated = (function() {
|
|
|
88197
88197
|
return OrganizationSubscriptionActivated;
|
|
88198
88198
|
})();
|
|
88199
88199
|
|
|
88200
|
+
$root.OrganizationSubscriptionDeleted = (function() {
|
|
88201
|
+
|
|
88202
|
+
/**
|
|
88203
|
+
* Properties of an OrganizationSubscriptionDeleted.
|
|
88204
|
+
* @exports IOrganizationSubscriptionDeleted
|
|
88205
|
+
* @interface IOrganizationSubscriptionDeleted
|
|
88206
|
+
* @property {number|Long|null} [timestamp] OrganizationSubscriptionDeleted timestamp
|
|
88207
|
+
* @property {number|null} [dashboardUserId] OrganizationSubscriptionDeleted dashboardUserId
|
|
88208
|
+
* @property {b2b.IOrganization|null} [organization] OrganizationSubscriptionDeleted organization
|
|
88209
|
+
* @property {b2b.IB2BSubscriptionManagement|null} [subscription] OrganizationSubscriptionDeleted subscription
|
|
88210
|
+
* @property {b2b.IB2BSubscriptionManagement|null} [activeSubscription] OrganizationSubscriptionDeleted activeSubscription
|
|
88211
|
+
*/
|
|
88212
|
+
|
|
88213
|
+
/**
|
|
88214
|
+
* Constructs a new OrganizationSubscriptionDeleted.
|
|
88215
|
+
* @exports OrganizationSubscriptionDeleted
|
|
88216
|
+
* @classdesc Represents an OrganizationSubscriptionDeleted.
|
|
88217
|
+
* @implements IOrganizationSubscriptionDeleted
|
|
88218
|
+
* @constructor
|
|
88219
|
+
* @param {IOrganizationSubscriptionDeleted=} [properties] Properties to set
|
|
88220
|
+
*/
|
|
88221
|
+
function OrganizationSubscriptionDeleted(properties) {
|
|
88222
|
+
if (properties)
|
|
88223
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
88224
|
+
if (properties[keys[i]] != null)
|
|
88225
|
+
this[keys[i]] = properties[keys[i]];
|
|
88226
|
+
}
|
|
88227
|
+
|
|
88228
|
+
/**
|
|
88229
|
+
* OrganizationSubscriptionDeleted timestamp.
|
|
88230
|
+
* @member {number|Long} timestamp
|
|
88231
|
+
* @memberof OrganizationSubscriptionDeleted
|
|
88232
|
+
* @instance
|
|
88233
|
+
*/
|
|
88234
|
+
OrganizationSubscriptionDeleted.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
88235
|
+
|
|
88236
|
+
/**
|
|
88237
|
+
* OrganizationSubscriptionDeleted dashboardUserId.
|
|
88238
|
+
* @member {number} dashboardUserId
|
|
88239
|
+
* @memberof OrganizationSubscriptionDeleted
|
|
88240
|
+
* @instance
|
|
88241
|
+
*/
|
|
88242
|
+
OrganizationSubscriptionDeleted.prototype.dashboardUserId = 0;
|
|
88243
|
+
|
|
88244
|
+
/**
|
|
88245
|
+
* OrganizationSubscriptionDeleted organization.
|
|
88246
|
+
* @member {b2b.IOrganization|null|undefined} organization
|
|
88247
|
+
* @memberof OrganizationSubscriptionDeleted
|
|
88248
|
+
* @instance
|
|
88249
|
+
*/
|
|
88250
|
+
OrganizationSubscriptionDeleted.prototype.organization = null;
|
|
88251
|
+
|
|
88252
|
+
/**
|
|
88253
|
+
* OrganizationSubscriptionDeleted subscription.
|
|
88254
|
+
* @member {b2b.IB2BSubscriptionManagement|null|undefined} subscription
|
|
88255
|
+
* @memberof OrganizationSubscriptionDeleted
|
|
88256
|
+
* @instance
|
|
88257
|
+
*/
|
|
88258
|
+
OrganizationSubscriptionDeleted.prototype.subscription = null;
|
|
88259
|
+
|
|
88260
|
+
/**
|
|
88261
|
+
* OrganizationSubscriptionDeleted activeSubscription.
|
|
88262
|
+
* @member {b2b.IB2BSubscriptionManagement|null|undefined} activeSubscription
|
|
88263
|
+
* @memberof OrganizationSubscriptionDeleted
|
|
88264
|
+
* @instance
|
|
88265
|
+
*/
|
|
88266
|
+
OrganizationSubscriptionDeleted.prototype.activeSubscription = null;
|
|
88267
|
+
|
|
88268
|
+
/**
|
|
88269
|
+
* Creates a new OrganizationSubscriptionDeleted instance using the specified properties.
|
|
88270
|
+
* @function create
|
|
88271
|
+
* @memberof OrganizationSubscriptionDeleted
|
|
88272
|
+
* @static
|
|
88273
|
+
* @param {IOrganizationSubscriptionDeleted=} [properties] Properties to set
|
|
88274
|
+
* @returns {OrganizationSubscriptionDeleted} OrganizationSubscriptionDeleted instance
|
|
88275
|
+
*/
|
|
88276
|
+
OrganizationSubscriptionDeleted.create = function create(properties) {
|
|
88277
|
+
return new OrganizationSubscriptionDeleted(properties);
|
|
88278
|
+
};
|
|
88279
|
+
|
|
88280
|
+
/**
|
|
88281
|
+
* Encodes the specified OrganizationSubscriptionDeleted message. Does not implicitly {@link OrganizationSubscriptionDeleted.verify|verify} messages.
|
|
88282
|
+
* @function encode
|
|
88283
|
+
* @memberof OrganizationSubscriptionDeleted
|
|
88284
|
+
* @static
|
|
88285
|
+
* @param {IOrganizationSubscriptionDeleted} message OrganizationSubscriptionDeleted message or plain object to encode
|
|
88286
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
88287
|
+
* @returns {$protobuf.Writer} Writer
|
|
88288
|
+
*/
|
|
88289
|
+
OrganizationSubscriptionDeleted.encode = function encode(message, writer) {
|
|
88290
|
+
if (!writer)
|
|
88291
|
+
writer = $Writer.create();
|
|
88292
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
88293
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
|
|
88294
|
+
if (message.dashboardUserId != null && message.hasOwnProperty("dashboardUserId"))
|
|
88295
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.dashboardUserId);
|
|
88296
|
+
if (message.organization != null && message.hasOwnProperty("organization"))
|
|
88297
|
+
$root.b2b.Organization.encode(message.organization, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
88298
|
+
if (message.subscription != null && message.hasOwnProperty("subscription"))
|
|
88299
|
+
$root.b2b.B2BSubscriptionManagement.encode(message.subscription, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
88300
|
+
if (message.activeSubscription != null && message.hasOwnProperty("activeSubscription"))
|
|
88301
|
+
$root.b2b.B2BSubscriptionManagement.encode(message.activeSubscription, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
88302
|
+
return writer;
|
|
88303
|
+
};
|
|
88304
|
+
|
|
88305
|
+
/**
|
|
88306
|
+
* Encodes the specified OrganizationSubscriptionDeleted message, length delimited. Does not implicitly {@link OrganizationSubscriptionDeleted.verify|verify} messages.
|
|
88307
|
+
* @function encodeDelimited
|
|
88308
|
+
* @memberof OrganizationSubscriptionDeleted
|
|
88309
|
+
* @static
|
|
88310
|
+
* @param {IOrganizationSubscriptionDeleted} message OrganizationSubscriptionDeleted message or plain object to encode
|
|
88311
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
88312
|
+
* @returns {$protobuf.Writer} Writer
|
|
88313
|
+
*/
|
|
88314
|
+
OrganizationSubscriptionDeleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
88315
|
+
return this.encode(message, writer).ldelim();
|
|
88316
|
+
};
|
|
88317
|
+
|
|
88318
|
+
/**
|
|
88319
|
+
* Decodes an OrganizationSubscriptionDeleted message from the specified reader or buffer.
|
|
88320
|
+
* @function decode
|
|
88321
|
+
* @memberof OrganizationSubscriptionDeleted
|
|
88322
|
+
* @static
|
|
88323
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
88324
|
+
* @param {number} [length] Message length if known beforehand
|
|
88325
|
+
* @returns {OrganizationSubscriptionDeleted} OrganizationSubscriptionDeleted
|
|
88326
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
88327
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
88328
|
+
*/
|
|
88329
|
+
OrganizationSubscriptionDeleted.decode = function decode(reader, length) {
|
|
88330
|
+
if (!(reader instanceof $Reader))
|
|
88331
|
+
reader = $Reader.create(reader);
|
|
88332
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.OrganizationSubscriptionDeleted();
|
|
88333
|
+
while (reader.pos < end) {
|
|
88334
|
+
var tag = reader.uint32();
|
|
88335
|
+
switch (tag >>> 3) {
|
|
88336
|
+
case 1:
|
|
88337
|
+
message.timestamp = reader.uint64();
|
|
88338
|
+
break;
|
|
88339
|
+
case 2:
|
|
88340
|
+
message.dashboardUserId = reader.uint32();
|
|
88341
|
+
break;
|
|
88342
|
+
case 3:
|
|
88343
|
+
message.organization = $root.b2b.Organization.decode(reader, reader.uint32());
|
|
88344
|
+
break;
|
|
88345
|
+
case 4:
|
|
88346
|
+
message.subscription = $root.b2b.B2BSubscriptionManagement.decode(reader, reader.uint32());
|
|
88347
|
+
break;
|
|
88348
|
+
case 5:
|
|
88349
|
+
message.activeSubscription = $root.b2b.B2BSubscriptionManagement.decode(reader, reader.uint32());
|
|
88350
|
+
break;
|
|
88351
|
+
default:
|
|
88352
|
+
reader.skipType(tag & 7);
|
|
88353
|
+
break;
|
|
88354
|
+
}
|
|
88355
|
+
}
|
|
88356
|
+
return message;
|
|
88357
|
+
};
|
|
88358
|
+
|
|
88359
|
+
/**
|
|
88360
|
+
* Decodes an OrganizationSubscriptionDeleted message from the specified reader or buffer, length delimited.
|
|
88361
|
+
* @function decodeDelimited
|
|
88362
|
+
* @memberof OrganizationSubscriptionDeleted
|
|
88363
|
+
* @static
|
|
88364
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
88365
|
+
* @returns {OrganizationSubscriptionDeleted} OrganizationSubscriptionDeleted
|
|
88366
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
88367
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
88368
|
+
*/
|
|
88369
|
+
OrganizationSubscriptionDeleted.decodeDelimited = function decodeDelimited(reader) {
|
|
88370
|
+
if (!(reader instanceof $Reader))
|
|
88371
|
+
reader = new $Reader(reader);
|
|
88372
|
+
return this.decode(reader, reader.uint32());
|
|
88373
|
+
};
|
|
88374
|
+
|
|
88375
|
+
/**
|
|
88376
|
+
* Verifies an OrganizationSubscriptionDeleted message.
|
|
88377
|
+
* @function verify
|
|
88378
|
+
* @memberof OrganizationSubscriptionDeleted
|
|
88379
|
+
* @static
|
|
88380
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
88381
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
88382
|
+
*/
|
|
88383
|
+
OrganizationSubscriptionDeleted.verify = function verify(message) {
|
|
88384
|
+
if (typeof message !== "object" || message === null)
|
|
88385
|
+
return "object expected";
|
|
88386
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
88387
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
88388
|
+
return "timestamp: integer|Long expected";
|
|
88389
|
+
if (message.dashboardUserId != null && message.hasOwnProperty("dashboardUserId"))
|
|
88390
|
+
if (!$util.isInteger(message.dashboardUserId))
|
|
88391
|
+
return "dashboardUserId: integer expected";
|
|
88392
|
+
if (message.organization != null && message.hasOwnProperty("organization")) {
|
|
88393
|
+
var error = $root.b2b.Organization.verify(message.organization);
|
|
88394
|
+
if (error)
|
|
88395
|
+
return "organization." + error;
|
|
88396
|
+
}
|
|
88397
|
+
if (message.subscription != null && message.hasOwnProperty("subscription")) {
|
|
88398
|
+
var error = $root.b2b.B2BSubscriptionManagement.verify(message.subscription);
|
|
88399
|
+
if (error)
|
|
88400
|
+
return "subscription." + error;
|
|
88401
|
+
}
|
|
88402
|
+
if (message.activeSubscription != null && message.hasOwnProperty("activeSubscription")) {
|
|
88403
|
+
var error = $root.b2b.B2BSubscriptionManagement.verify(message.activeSubscription);
|
|
88404
|
+
if (error)
|
|
88405
|
+
return "activeSubscription." + error;
|
|
88406
|
+
}
|
|
88407
|
+
return null;
|
|
88408
|
+
};
|
|
88409
|
+
|
|
88410
|
+
/**
|
|
88411
|
+
* Creates an OrganizationSubscriptionDeleted message from a plain object. Also converts values to their respective internal types.
|
|
88412
|
+
* @function fromObject
|
|
88413
|
+
* @memberof OrganizationSubscriptionDeleted
|
|
88414
|
+
* @static
|
|
88415
|
+
* @param {Object.<string,*>} object Plain object
|
|
88416
|
+
* @returns {OrganizationSubscriptionDeleted} OrganizationSubscriptionDeleted
|
|
88417
|
+
*/
|
|
88418
|
+
OrganizationSubscriptionDeleted.fromObject = function fromObject(object) {
|
|
88419
|
+
if (object instanceof $root.OrganizationSubscriptionDeleted)
|
|
88420
|
+
return object;
|
|
88421
|
+
var message = new $root.OrganizationSubscriptionDeleted();
|
|
88422
|
+
if (object.timestamp != null)
|
|
88423
|
+
if ($util.Long)
|
|
88424
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
88425
|
+
else if (typeof object.timestamp === "string")
|
|
88426
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
88427
|
+
else if (typeof object.timestamp === "number")
|
|
88428
|
+
message.timestamp = object.timestamp;
|
|
88429
|
+
else if (typeof object.timestamp === "object")
|
|
88430
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
88431
|
+
if (object.dashboardUserId != null)
|
|
88432
|
+
message.dashboardUserId = object.dashboardUserId >>> 0;
|
|
88433
|
+
if (object.organization != null) {
|
|
88434
|
+
if (typeof object.organization !== "object")
|
|
88435
|
+
throw TypeError(".OrganizationSubscriptionDeleted.organization: object expected");
|
|
88436
|
+
message.organization = $root.b2b.Organization.fromObject(object.organization);
|
|
88437
|
+
}
|
|
88438
|
+
if (object.subscription != null) {
|
|
88439
|
+
if (typeof object.subscription !== "object")
|
|
88440
|
+
throw TypeError(".OrganizationSubscriptionDeleted.subscription: object expected");
|
|
88441
|
+
message.subscription = $root.b2b.B2BSubscriptionManagement.fromObject(object.subscription);
|
|
88442
|
+
}
|
|
88443
|
+
if (object.activeSubscription != null) {
|
|
88444
|
+
if (typeof object.activeSubscription !== "object")
|
|
88445
|
+
throw TypeError(".OrganizationSubscriptionDeleted.activeSubscription: object expected");
|
|
88446
|
+
message.activeSubscription = $root.b2b.B2BSubscriptionManagement.fromObject(object.activeSubscription);
|
|
88447
|
+
}
|
|
88448
|
+
return message;
|
|
88449
|
+
};
|
|
88450
|
+
|
|
88451
|
+
/**
|
|
88452
|
+
* Creates a plain object from an OrganizationSubscriptionDeleted message. Also converts values to other types if specified.
|
|
88453
|
+
* @function toObject
|
|
88454
|
+
* @memberof OrganizationSubscriptionDeleted
|
|
88455
|
+
* @static
|
|
88456
|
+
* @param {OrganizationSubscriptionDeleted} message OrganizationSubscriptionDeleted
|
|
88457
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
88458
|
+
* @returns {Object.<string,*>} Plain object
|
|
88459
|
+
*/
|
|
88460
|
+
OrganizationSubscriptionDeleted.toObject = function toObject(message, options) {
|
|
88461
|
+
if (!options)
|
|
88462
|
+
options = {};
|
|
88463
|
+
var object = {};
|
|
88464
|
+
if (options.defaults) {
|
|
88465
|
+
if ($util.Long) {
|
|
88466
|
+
var long = new $util.Long(0, 0, true);
|
|
88467
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
88468
|
+
} else
|
|
88469
|
+
object.timestamp = options.longs === String ? "0" : 0;
|
|
88470
|
+
object.dashboardUserId = 0;
|
|
88471
|
+
object.organization = null;
|
|
88472
|
+
object.subscription = null;
|
|
88473
|
+
object.activeSubscription = null;
|
|
88474
|
+
}
|
|
88475
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
88476
|
+
if (typeof message.timestamp === "number")
|
|
88477
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
88478
|
+
else
|
|
88479
|
+
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;
|
|
88480
|
+
if (message.dashboardUserId != null && message.hasOwnProperty("dashboardUserId"))
|
|
88481
|
+
object.dashboardUserId = message.dashboardUserId;
|
|
88482
|
+
if (message.organization != null && message.hasOwnProperty("organization"))
|
|
88483
|
+
object.organization = $root.b2b.Organization.toObject(message.organization, options);
|
|
88484
|
+
if (message.subscription != null && message.hasOwnProperty("subscription"))
|
|
88485
|
+
object.subscription = $root.b2b.B2BSubscriptionManagement.toObject(message.subscription, options);
|
|
88486
|
+
if (message.activeSubscription != null && message.hasOwnProperty("activeSubscription"))
|
|
88487
|
+
object.activeSubscription = $root.b2b.B2BSubscriptionManagement.toObject(message.activeSubscription, options);
|
|
88488
|
+
return object;
|
|
88489
|
+
};
|
|
88490
|
+
|
|
88491
|
+
/**
|
|
88492
|
+
* Converts this OrganizationSubscriptionDeleted to JSON.
|
|
88493
|
+
* @function toJSON
|
|
88494
|
+
* @memberof OrganizationSubscriptionDeleted
|
|
88495
|
+
* @instance
|
|
88496
|
+
* @returns {Object.<string,*>} JSON object
|
|
88497
|
+
*/
|
|
88498
|
+
OrganizationSubscriptionDeleted.prototype.toJSON = function toJSON() {
|
|
88499
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
88500
|
+
};
|
|
88501
|
+
|
|
88502
|
+
return OrganizationSubscriptionDeleted;
|
|
88503
|
+
})();
|
|
88504
|
+
|
|
88200
88505
|
$root.FamilyMemberAdded = (function() {
|
|
88201
88506
|
|
|
88202
88507
|
/**
|
package/package.json
CHANGED