@headspace/protos-events 1.56.0 → 1.57.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 +138 -0
- package/lib/index.js +476 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -5095,6 +5095,144 @@ export class SubscriptionEnded implements ISubscriptionEnded {
|
|
|
5095
5095
|
public toJSON(): { [k: string]: any };
|
|
5096
5096
|
}
|
|
5097
5097
|
|
|
5098
|
+
/** Properties of a SubscriptionRecovered. */
|
|
5099
|
+
export interface ISubscriptionRecovered {
|
|
5100
|
+
|
|
5101
|
+
/** SubscriptionRecovered updatedOn */
|
|
5102
|
+
updatedOn?: (number|Long|null);
|
|
5103
|
+
|
|
5104
|
+
/** SubscriptionRecovered userId */
|
|
5105
|
+
userId?: (string|null);
|
|
5106
|
+
|
|
5107
|
+
/** SubscriptionRecovered createdAt */
|
|
5108
|
+
createdAt?: (number|Long|null);
|
|
5109
|
+
|
|
5110
|
+
/** SubscriptionRecovered startsAt */
|
|
5111
|
+
startsAt?: (number|Long|null);
|
|
5112
|
+
|
|
5113
|
+
/** SubscriptionRecovered endsAt */
|
|
5114
|
+
endsAt?: (number|Long|null);
|
|
5115
|
+
|
|
5116
|
+
/** SubscriptionRecovered voucherCode */
|
|
5117
|
+
voucherCode?: (string|null);
|
|
5118
|
+
|
|
5119
|
+
/** SubscriptionRecovered platform */
|
|
5120
|
+
platform?: (subscription.SubscriptionPlatform|null);
|
|
5121
|
+
|
|
5122
|
+
/** SubscriptionRecovered autoRenewalStatus */
|
|
5123
|
+
autoRenewalStatus?: (subscription.AutoRenewalStatus|null);
|
|
5124
|
+
|
|
5125
|
+
/** SubscriptionRecovered plan */
|
|
5126
|
+
plan?: (subscription.IPlan|null);
|
|
5127
|
+
}
|
|
5128
|
+
|
|
5129
|
+
/** Represents a SubscriptionRecovered. */
|
|
5130
|
+
export class SubscriptionRecovered implements ISubscriptionRecovered {
|
|
5131
|
+
|
|
5132
|
+
/**
|
|
5133
|
+
* Constructs a new SubscriptionRecovered.
|
|
5134
|
+
* @param [properties] Properties to set
|
|
5135
|
+
*/
|
|
5136
|
+
constructor(properties?: ISubscriptionRecovered);
|
|
5137
|
+
|
|
5138
|
+
/** SubscriptionRecovered updatedOn. */
|
|
5139
|
+
public updatedOn: (number|Long);
|
|
5140
|
+
|
|
5141
|
+
/** SubscriptionRecovered userId. */
|
|
5142
|
+
public userId: string;
|
|
5143
|
+
|
|
5144
|
+
/** SubscriptionRecovered createdAt. */
|
|
5145
|
+
public createdAt: (number|Long);
|
|
5146
|
+
|
|
5147
|
+
/** SubscriptionRecovered startsAt. */
|
|
5148
|
+
public startsAt: (number|Long);
|
|
5149
|
+
|
|
5150
|
+
/** SubscriptionRecovered endsAt. */
|
|
5151
|
+
public endsAt: (number|Long);
|
|
5152
|
+
|
|
5153
|
+
/** SubscriptionRecovered voucherCode. */
|
|
5154
|
+
public voucherCode: string;
|
|
5155
|
+
|
|
5156
|
+
/** SubscriptionRecovered platform. */
|
|
5157
|
+
public platform: subscription.SubscriptionPlatform;
|
|
5158
|
+
|
|
5159
|
+
/** SubscriptionRecovered autoRenewalStatus. */
|
|
5160
|
+
public autoRenewalStatus: subscription.AutoRenewalStatus;
|
|
5161
|
+
|
|
5162
|
+
/** SubscriptionRecovered plan. */
|
|
5163
|
+
public plan?: (subscription.IPlan|null);
|
|
5164
|
+
|
|
5165
|
+
/**
|
|
5166
|
+
* Creates a new SubscriptionRecovered instance using the specified properties.
|
|
5167
|
+
* @param [properties] Properties to set
|
|
5168
|
+
* @returns SubscriptionRecovered instance
|
|
5169
|
+
*/
|
|
5170
|
+
public static create(properties?: ISubscriptionRecovered): SubscriptionRecovered;
|
|
5171
|
+
|
|
5172
|
+
/**
|
|
5173
|
+
* Encodes the specified SubscriptionRecovered message. Does not implicitly {@link SubscriptionRecovered.verify|verify} messages.
|
|
5174
|
+
* @param message SubscriptionRecovered message or plain object to encode
|
|
5175
|
+
* @param [writer] Writer to encode to
|
|
5176
|
+
* @returns Writer
|
|
5177
|
+
*/
|
|
5178
|
+
public static encode(message: ISubscriptionRecovered, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5179
|
+
|
|
5180
|
+
/**
|
|
5181
|
+
* Encodes the specified SubscriptionRecovered message, length delimited. Does not implicitly {@link SubscriptionRecovered.verify|verify} messages.
|
|
5182
|
+
* @param message SubscriptionRecovered message or plain object to encode
|
|
5183
|
+
* @param [writer] Writer to encode to
|
|
5184
|
+
* @returns Writer
|
|
5185
|
+
*/
|
|
5186
|
+
public static encodeDelimited(message: ISubscriptionRecovered, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5187
|
+
|
|
5188
|
+
/**
|
|
5189
|
+
* Decodes a SubscriptionRecovered message from the specified reader or buffer.
|
|
5190
|
+
* @param reader Reader or buffer to decode from
|
|
5191
|
+
* @param [length] Message length if known beforehand
|
|
5192
|
+
* @returns SubscriptionRecovered
|
|
5193
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5194
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5195
|
+
*/
|
|
5196
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SubscriptionRecovered;
|
|
5197
|
+
|
|
5198
|
+
/**
|
|
5199
|
+
* Decodes a SubscriptionRecovered message from the specified reader or buffer, length delimited.
|
|
5200
|
+
* @param reader Reader or buffer to decode from
|
|
5201
|
+
* @returns SubscriptionRecovered
|
|
5202
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5203
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5204
|
+
*/
|
|
5205
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SubscriptionRecovered;
|
|
5206
|
+
|
|
5207
|
+
/**
|
|
5208
|
+
* Verifies a SubscriptionRecovered message.
|
|
5209
|
+
* @param message Plain object to verify
|
|
5210
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
5211
|
+
*/
|
|
5212
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
5213
|
+
|
|
5214
|
+
/**
|
|
5215
|
+
* Creates a SubscriptionRecovered message from a plain object. Also converts values to their respective internal types.
|
|
5216
|
+
* @param object Plain object
|
|
5217
|
+
* @returns SubscriptionRecovered
|
|
5218
|
+
*/
|
|
5219
|
+
public static fromObject(object: { [k: string]: any }): SubscriptionRecovered;
|
|
5220
|
+
|
|
5221
|
+
/**
|
|
5222
|
+
* Creates a plain object from a SubscriptionRecovered message. Also converts values to other types if specified.
|
|
5223
|
+
* @param message SubscriptionRecovered
|
|
5224
|
+
* @param [options] Conversion options
|
|
5225
|
+
* @returns Plain object
|
|
5226
|
+
*/
|
|
5227
|
+
public static toObject(message: SubscriptionRecovered, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
5228
|
+
|
|
5229
|
+
/**
|
|
5230
|
+
* Converts this SubscriptionRecovered to JSON.
|
|
5231
|
+
* @returns JSON object
|
|
5232
|
+
*/
|
|
5233
|
+
public toJSON(): { [k: string]: any };
|
|
5234
|
+
}
|
|
5235
|
+
|
|
5098
5236
|
/** Properties of a UserDoubleOptInEmailRequested. */
|
|
5099
5237
|
export interface IUserDoubleOptInEmailRequested {
|
|
5100
5238
|
|
package/lib/index.js
CHANGED
|
@@ -13394,6 +13394,482 @@ $root.SubscriptionEnded = (function() {
|
|
|
13394
13394
|
return SubscriptionEnded;
|
|
13395
13395
|
})();
|
|
13396
13396
|
|
|
13397
|
+
$root.SubscriptionRecovered = (function() {
|
|
13398
|
+
|
|
13399
|
+
/**
|
|
13400
|
+
* Properties of a SubscriptionRecovered.
|
|
13401
|
+
* @exports ISubscriptionRecovered
|
|
13402
|
+
* @interface ISubscriptionRecovered
|
|
13403
|
+
* @property {number|Long|null} [updatedOn] SubscriptionRecovered updatedOn
|
|
13404
|
+
* @property {string|null} [userId] SubscriptionRecovered userId
|
|
13405
|
+
* @property {number|Long|null} [createdAt] SubscriptionRecovered createdAt
|
|
13406
|
+
* @property {number|Long|null} [startsAt] SubscriptionRecovered startsAt
|
|
13407
|
+
* @property {number|Long|null} [endsAt] SubscriptionRecovered endsAt
|
|
13408
|
+
* @property {string|null} [voucherCode] SubscriptionRecovered voucherCode
|
|
13409
|
+
* @property {subscription.SubscriptionPlatform|null} [platform] SubscriptionRecovered platform
|
|
13410
|
+
* @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionRecovered autoRenewalStatus
|
|
13411
|
+
* @property {subscription.IPlan|null} [plan] SubscriptionRecovered plan
|
|
13412
|
+
*/
|
|
13413
|
+
|
|
13414
|
+
/**
|
|
13415
|
+
* Constructs a new SubscriptionRecovered.
|
|
13416
|
+
* @exports SubscriptionRecovered
|
|
13417
|
+
* @classdesc Represents a SubscriptionRecovered.
|
|
13418
|
+
* @implements ISubscriptionRecovered
|
|
13419
|
+
* @constructor
|
|
13420
|
+
* @param {ISubscriptionRecovered=} [properties] Properties to set
|
|
13421
|
+
*/
|
|
13422
|
+
function SubscriptionRecovered(properties) {
|
|
13423
|
+
if (properties)
|
|
13424
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
13425
|
+
if (properties[keys[i]] != null)
|
|
13426
|
+
this[keys[i]] = properties[keys[i]];
|
|
13427
|
+
}
|
|
13428
|
+
|
|
13429
|
+
/**
|
|
13430
|
+
* SubscriptionRecovered updatedOn.
|
|
13431
|
+
* @member {number|Long} updatedOn
|
|
13432
|
+
* @memberof SubscriptionRecovered
|
|
13433
|
+
* @instance
|
|
13434
|
+
*/
|
|
13435
|
+
SubscriptionRecovered.prototype.updatedOn = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
13436
|
+
|
|
13437
|
+
/**
|
|
13438
|
+
* SubscriptionRecovered userId.
|
|
13439
|
+
* @member {string} userId
|
|
13440
|
+
* @memberof SubscriptionRecovered
|
|
13441
|
+
* @instance
|
|
13442
|
+
*/
|
|
13443
|
+
SubscriptionRecovered.prototype.userId = "";
|
|
13444
|
+
|
|
13445
|
+
/**
|
|
13446
|
+
* SubscriptionRecovered createdAt.
|
|
13447
|
+
* @member {number|Long} createdAt
|
|
13448
|
+
* @memberof SubscriptionRecovered
|
|
13449
|
+
* @instance
|
|
13450
|
+
*/
|
|
13451
|
+
SubscriptionRecovered.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
13452
|
+
|
|
13453
|
+
/**
|
|
13454
|
+
* SubscriptionRecovered startsAt.
|
|
13455
|
+
* @member {number|Long} startsAt
|
|
13456
|
+
* @memberof SubscriptionRecovered
|
|
13457
|
+
* @instance
|
|
13458
|
+
*/
|
|
13459
|
+
SubscriptionRecovered.prototype.startsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
13460
|
+
|
|
13461
|
+
/**
|
|
13462
|
+
* SubscriptionRecovered endsAt.
|
|
13463
|
+
* @member {number|Long} endsAt
|
|
13464
|
+
* @memberof SubscriptionRecovered
|
|
13465
|
+
* @instance
|
|
13466
|
+
*/
|
|
13467
|
+
SubscriptionRecovered.prototype.endsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
13468
|
+
|
|
13469
|
+
/**
|
|
13470
|
+
* SubscriptionRecovered voucherCode.
|
|
13471
|
+
* @member {string} voucherCode
|
|
13472
|
+
* @memberof SubscriptionRecovered
|
|
13473
|
+
* @instance
|
|
13474
|
+
*/
|
|
13475
|
+
SubscriptionRecovered.prototype.voucherCode = "";
|
|
13476
|
+
|
|
13477
|
+
/**
|
|
13478
|
+
* SubscriptionRecovered platform.
|
|
13479
|
+
* @member {subscription.SubscriptionPlatform} platform
|
|
13480
|
+
* @memberof SubscriptionRecovered
|
|
13481
|
+
* @instance
|
|
13482
|
+
*/
|
|
13483
|
+
SubscriptionRecovered.prototype.platform = 0;
|
|
13484
|
+
|
|
13485
|
+
/**
|
|
13486
|
+
* SubscriptionRecovered autoRenewalStatus.
|
|
13487
|
+
* @member {subscription.AutoRenewalStatus} autoRenewalStatus
|
|
13488
|
+
* @memberof SubscriptionRecovered
|
|
13489
|
+
* @instance
|
|
13490
|
+
*/
|
|
13491
|
+
SubscriptionRecovered.prototype.autoRenewalStatus = 0;
|
|
13492
|
+
|
|
13493
|
+
/**
|
|
13494
|
+
* SubscriptionRecovered plan.
|
|
13495
|
+
* @member {subscription.IPlan|null|undefined} plan
|
|
13496
|
+
* @memberof SubscriptionRecovered
|
|
13497
|
+
* @instance
|
|
13498
|
+
*/
|
|
13499
|
+
SubscriptionRecovered.prototype.plan = null;
|
|
13500
|
+
|
|
13501
|
+
/**
|
|
13502
|
+
* Creates a new SubscriptionRecovered instance using the specified properties.
|
|
13503
|
+
* @function create
|
|
13504
|
+
* @memberof SubscriptionRecovered
|
|
13505
|
+
* @static
|
|
13506
|
+
* @param {ISubscriptionRecovered=} [properties] Properties to set
|
|
13507
|
+
* @returns {SubscriptionRecovered} SubscriptionRecovered instance
|
|
13508
|
+
*/
|
|
13509
|
+
SubscriptionRecovered.create = function create(properties) {
|
|
13510
|
+
return new SubscriptionRecovered(properties);
|
|
13511
|
+
};
|
|
13512
|
+
|
|
13513
|
+
/**
|
|
13514
|
+
* Encodes the specified SubscriptionRecovered message. Does not implicitly {@link SubscriptionRecovered.verify|verify} messages.
|
|
13515
|
+
* @function encode
|
|
13516
|
+
* @memberof SubscriptionRecovered
|
|
13517
|
+
* @static
|
|
13518
|
+
* @param {ISubscriptionRecovered} message SubscriptionRecovered message or plain object to encode
|
|
13519
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
13520
|
+
* @returns {$protobuf.Writer} Writer
|
|
13521
|
+
*/
|
|
13522
|
+
SubscriptionRecovered.encode = function encode(message, writer) {
|
|
13523
|
+
if (!writer)
|
|
13524
|
+
writer = $Writer.create();
|
|
13525
|
+
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
13526
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.updatedOn);
|
|
13527
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
13528
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.userId);
|
|
13529
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
13530
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.createdAt);
|
|
13531
|
+
if (message.startsAt != null && message.hasOwnProperty("startsAt"))
|
|
13532
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.startsAt);
|
|
13533
|
+
if (message.endsAt != null && message.hasOwnProperty("endsAt"))
|
|
13534
|
+
writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.endsAt);
|
|
13535
|
+
if (message.voucherCode != null && message.hasOwnProperty("voucherCode"))
|
|
13536
|
+
writer.uint32(/* id 7, wireType 2 =*/58).string(message.voucherCode);
|
|
13537
|
+
if (message.platform != null && message.hasOwnProperty("platform"))
|
|
13538
|
+
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.platform);
|
|
13539
|
+
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
13540
|
+
writer.uint32(/* id 9, wireType 0 =*/72).int32(message.autoRenewalStatus);
|
|
13541
|
+
if (message.plan != null && message.hasOwnProperty("plan"))
|
|
13542
|
+
$root.subscription.Plan.encode(message.plan, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
13543
|
+
return writer;
|
|
13544
|
+
};
|
|
13545
|
+
|
|
13546
|
+
/**
|
|
13547
|
+
* Encodes the specified SubscriptionRecovered message, length delimited. Does not implicitly {@link SubscriptionRecovered.verify|verify} messages.
|
|
13548
|
+
* @function encodeDelimited
|
|
13549
|
+
* @memberof SubscriptionRecovered
|
|
13550
|
+
* @static
|
|
13551
|
+
* @param {ISubscriptionRecovered} message SubscriptionRecovered message or plain object to encode
|
|
13552
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
13553
|
+
* @returns {$protobuf.Writer} Writer
|
|
13554
|
+
*/
|
|
13555
|
+
SubscriptionRecovered.encodeDelimited = function encodeDelimited(message, writer) {
|
|
13556
|
+
return this.encode(message, writer).ldelim();
|
|
13557
|
+
};
|
|
13558
|
+
|
|
13559
|
+
/**
|
|
13560
|
+
* Decodes a SubscriptionRecovered message from the specified reader or buffer.
|
|
13561
|
+
* @function decode
|
|
13562
|
+
* @memberof SubscriptionRecovered
|
|
13563
|
+
* @static
|
|
13564
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
13565
|
+
* @param {number} [length] Message length if known beforehand
|
|
13566
|
+
* @returns {SubscriptionRecovered} SubscriptionRecovered
|
|
13567
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
13568
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
13569
|
+
*/
|
|
13570
|
+
SubscriptionRecovered.decode = function decode(reader, length) {
|
|
13571
|
+
if (!(reader instanceof $Reader))
|
|
13572
|
+
reader = $Reader.create(reader);
|
|
13573
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SubscriptionRecovered();
|
|
13574
|
+
while (reader.pos < end) {
|
|
13575
|
+
var tag = reader.uint32();
|
|
13576
|
+
switch (tag >>> 3) {
|
|
13577
|
+
case 2:
|
|
13578
|
+
message.updatedOn = reader.uint64();
|
|
13579
|
+
break;
|
|
13580
|
+
case 3:
|
|
13581
|
+
message.userId = reader.string();
|
|
13582
|
+
break;
|
|
13583
|
+
case 4:
|
|
13584
|
+
message.createdAt = reader.uint64();
|
|
13585
|
+
break;
|
|
13586
|
+
case 5:
|
|
13587
|
+
message.startsAt = reader.uint64();
|
|
13588
|
+
break;
|
|
13589
|
+
case 6:
|
|
13590
|
+
message.endsAt = reader.uint64();
|
|
13591
|
+
break;
|
|
13592
|
+
case 7:
|
|
13593
|
+
message.voucherCode = reader.string();
|
|
13594
|
+
break;
|
|
13595
|
+
case 8:
|
|
13596
|
+
message.platform = reader.int32();
|
|
13597
|
+
break;
|
|
13598
|
+
case 9:
|
|
13599
|
+
message.autoRenewalStatus = reader.int32();
|
|
13600
|
+
break;
|
|
13601
|
+
case 10:
|
|
13602
|
+
message.plan = $root.subscription.Plan.decode(reader, reader.uint32());
|
|
13603
|
+
break;
|
|
13604
|
+
default:
|
|
13605
|
+
reader.skipType(tag & 7);
|
|
13606
|
+
break;
|
|
13607
|
+
}
|
|
13608
|
+
}
|
|
13609
|
+
return message;
|
|
13610
|
+
};
|
|
13611
|
+
|
|
13612
|
+
/**
|
|
13613
|
+
* Decodes a SubscriptionRecovered message from the specified reader or buffer, length delimited.
|
|
13614
|
+
* @function decodeDelimited
|
|
13615
|
+
* @memberof SubscriptionRecovered
|
|
13616
|
+
* @static
|
|
13617
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
13618
|
+
* @returns {SubscriptionRecovered} SubscriptionRecovered
|
|
13619
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
13620
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
13621
|
+
*/
|
|
13622
|
+
SubscriptionRecovered.decodeDelimited = function decodeDelimited(reader) {
|
|
13623
|
+
if (!(reader instanceof $Reader))
|
|
13624
|
+
reader = new $Reader(reader);
|
|
13625
|
+
return this.decode(reader, reader.uint32());
|
|
13626
|
+
};
|
|
13627
|
+
|
|
13628
|
+
/**
|
|
13629
|
+
* Verifies a SubscriptionRecovered message.
|
|
13630
|
+
* @function verify
|
|
13631
|
+
* @memberof SubscriptionRecovered
|
|
13632
|
+
* @static
|
|
13633
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
13634
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
13635
|
+
*/
|
|
13636
|
+
SubscriptionRecovered.verify = function verify(message) {
|
|
13637
|
+
if (typeof message !== "object" || message === null)
|
|
13638
|
+
return "object expected";
|
|
13639
|
+
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
13640
|
+
if (!$util.isInteger(message.updatedOn) && !(message.updatedOn && $util.isInteger(message.updatedOn.low) && $util.isInteger(message.updatedOn.high)))
|
|
13641
|
+
return "updatedOn: integer|Long expected";
|
|
13642
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
13643
|
+
if (!$util.isString(message.userId))
|
|
13644
|
+
return "userId: string expected";
|
|
13645
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
13646
|
+
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
13647
|
+
return "createdAt: integer|Long expected";
|
|
13648
|
+
if (message.startsAt != null && message.hasOwnProperty("startsAt"))
|
|
13649
|
+
if (!$util.isInteger(message.startsAt) && !(message.startsAt && $util.isInteger(message.startsAt.low) && $util.isInteger(message.startsAt.high)))
|
|
13650
|
+
return "startsAt: integer|Long expected";
|
|
13651
|
+
if (message.endsAt != null && message.hasOwnProperty("endsAt"))
|
|
13652
|
+
if (!$util.isInteger(message.endsAt) && !(message.endsAt && $util.isInteger(message.endsAt.low) && $util.isInteger(message.endsAt.high)))
|
|
13653
|
+
return "endsAt: integer|Long expected";
|
|
13654
|
+
if (message.voucherCode != null && message.hasOwnProperty("voucherCode"))
|
|
13655
|
+
if (!$util.isString(message.voucherCode))
|
|
13656
|
+
return "voucherCode: string expected";
|
|
13657
|
+
if (message.platform != null && message.hasOwnProperty("platform"))
|
|
13658
|
+
switch (message.platform) {
|
|
13659
|
+
default:
|
|
13660
|
+
return "platform: enum value expected";
|
|
13661
|
+
case 0:
|
|
13662
|
+
case 1:
|
|
13663
|
+
case 2:
|
|
13664
|
+
case 3:
|
|
13665
|
+
case 4:
|
|
13666
|
+
case 5:
|
|
13667
|
+
break;
|
|
13668
|
+
}
|
|
13669
|
+
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
13670
|
+
switch (message.autoRenewalStatus) {
|
|
13671
|
+
default:
|
|
13672
|
+
return "autoRenewalStatus: enum value expected";
|
|
13673
|
+
case 0:
|
|
13674
|
+
case 1:
|
|
13675
|
+
case 2:
|
|
13676
|
+
break;
|
|
13677
|
+
}
|
|
13678
|
+
if (message.plan != null && message.hasOwnProperty("plan")) {
|
|
13679
|
+
var error = $root.subscription.Plan.verify(message.plan);
|
|
13680
|
+
if (error)
|
|
13681
|
+
return "plan." + error;
|
|
13682
|
+
}
|
|
13683
|
+
return null;
|
|
13684
|
+
};
|
|
13685
|
+
|
|
13686
|
+
/**
|
|
13687
|
+
* Creates a SubscriptionRecovered message from a plain object. Also converts values to their respective internal types.
|
|
13688
|
+
* @function fromObject
|
|
13689
|
+
* @memberof SubscriptionRecovered
|
|
13690
|
+
* @static
|
|
13691
|
+
* @param {Object.<string,*>} object Plain object
|
|
13692
|
+
* @returns {SubscriptionRecovered} SubscriptionRecovered
|
|
13693
|
+
*/
|
|
13694
|
+
SubscriptionRecovered.fromObject = function fromObject(object) {
|
|
13695
|
+
if (object instanceof $root.SubscriptionRecovered)
|
|
13696
|
+
return object;
|
|
13697
|
+
var message = new $root.SubscriptionRecovered();
|
|
13698
|
+
if (object.updatedOn != null)
|
|
13699
|
+
if ($util.Long)
|
|
13700
|
+
(message.updatedOn = $util.Long.fromValue(object.updatedOn)).unsigned = true;
|
|
13701
|
+
else if (typeof object.updatedOn === "string")
|
|
13702
|
+
message.updatedOn = parseInt(object.updatedOn, 10);
|
|
13703
|
+
else if (typeof object.updatedOn === "number")
|
|
13704
|
+
message.updatedOn = object.updatedOn;
|
|
13705
|
+
else if (typeof object.updatedOn === "object")
|
|
13706
|
+
message.updatedOn = new $util.LongBits(object.updatedOn.low >>> 0, object.updatedOn.high >>> 0).toNumber(true);
|
|
13707
|
+
if (object.userId != null)
|
|
13708
|
+
message.userId = String(object.userId);
|
|
13709
|
+
if (object.createdAt != null)
|
|
13710
|
+
if ($util.Long)
|
|
13711
|
+
(message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
|
|
13712
|
+
else if (typeof object.createdAt === "string")
|
|
13713
|
+
message.createdAt = parseInt(object.createdAt, 10);
|
|
13714
|
+
else if (typeof object.createdAt === "number")
|
|
13715
|
+
message.createdAt = object.createdAt;
|
|
13716
|
+
else if (typeof object.createdAt === "object")
|
|
13717
|
+
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
13718
|
+
if (object.startsAt != null)
|
|
13719
|
+
if ($util.Long)
|
|
13720
|
+
(message.startsAt = $util.Long.fromValue(object.startsAt)).unsigned = true;
|
|
13721
|
+
else if (typeof object.startsAt === "string")
|
|
13722
|
+
message.startsAt = parseInt(object.startsAt, 10);
|
|
13723
|
+
else if (typeof object.startsAt === "number")
|
|
13724
|
+
message.startsAt = object.startsAt;
|
|
13725
|
+
else if (typeof object.startsAt === "object")
|
|
13726
|
+
message.startsAt = new $util.LongBits(object.startsAt.low >>> 0, object.startsAt.high >>> 0).toNumber(true);
|
|
13727
|
+
if (object.endsAt != null)
|
|
13728
|
+
if ($util.Long)
|
|
13729
|
+
(message.endsAt = $util.Long.fromValue(object.endsAt)).unsigned = true;
|
|
13730
|
+
else if (typeof object.endsAt === "string")
|
|
13731
|
+
message.endsAt = parseInt(object.endsAt, 10);
|
|
13732
|
+
else if (typeof object.endsAt === "number")
|
|
13733
|
+
message.endsAt = object.endsAt;
|
|
13734
|
+
else if (typeof object.endsAt === "object")
|
|
13735
|
+
message.endsAt = new $util.LongBits(object.endsAt.low >>> 0, object.endsAt.high >>> 0).toNumber(true);
|
|
13736
|
+
if (object.voucherCode != null)
|
|
13737
|
+
message.voucherCode = String(object.voucherCode);
|
|
13738
|
+
switch (object.platform) {
|
|
13739
|
+
case "PLATFORM_UNKNOWN":
|
|
13740
|
+
case 0:
|
|
13741
|
+
message.platform = 0;
|
|
13742
|
+
break;
|
|
13743
|
+
case "ITUNES":
|
|
13744
|
+
case 1:
|
|
13745
|
+
message.platform = 1;
|
|
13746
|
+
break;
|
|
13747
|
+
case "PLAY_STORE":
|
|
13748
|
+
case 2:
|
|
13749
|
+
message.platform = 2;
|
|
13750
|
+
break;
|
|
13751
|
+
case "ZUORA":
|
|
13752
|
+
case 3:
|
|
13753
|
+
message.platform = 3;
|
|
13754
|
+
break;
|
|
13755
|
+
case "HEADSPACE":
|
|
13756
|
+
case 4:
|
|
13757
|
+
message.platform = 4;
|
|
13758
|
+
break;
|
|
13759
|
+
case "SPOTIFY":
|
|
13760
|
+
case 5:
|
|
13761
|
+
message.platform = 5;
|
|
13762
|
+
break;
|
|
13763
|
+
}
|
|
13764
|
+
switch (object.autoRenewalStatus) {
|
|
13765
|
+
case "UNKNOWN_STATUS":
|
|
13766
|
+
case 0:
|
|
13767
|
+
message.autoRenewalStatus = 0;
|
|
13768
|
+
break;
|
|
13769
|
+
case "ENABLED":
|
|
13770
|
+
case 1:
|
|
13771
|
+
message.autoRenewalStatus = 1;
|
|
13772
|
+
break;
|
|
13773
|
+
case "DISABLED":
|
|
13774
|
+
case 2:
|
|
13775
|
+
message.autoRenewalStatus = 2;
|
|
13776
|
+
break;
|
|
13777
|
+
}
|
|
13778
|
+
if (object.plan != null) {
|
|
13779
|
+
if (typeof object.plan !== "object")
|
|
13780
|
+
throw TypeError(".SubscriptionRecovered.plan: object expected");
|
|
13781
|
+
message.plan = $root.subscription.Plan.fromObject(object.plan);
|
|
13782
|
+
}
|
|
13783
|
+
return message;
|
|
13784
|
+
};
|
|
13785
|
+
|
|
13786
|
+
/**
|
|
13787
|
+
* Creates a plain object from a SubscriptionRecovered message. Also converts values to other types if specified.
|
|
13788
|
+
* @function toObject
|
|
13789
|
+
* @memberof SubscriptionRecovered
|
|
13790
|
+
* @static
|
|
13791
|
+
* @param {SubscriptionRecovered} message SubscriptionRecovered
|
|
13792
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
13793
|
+
* @returns {Object.<string,*>} Plain object
|
|
13794
|
+
*/
|
|
13795
|
+
SubscriptionRecovered.toObject = function toObject(message, options) {
|
|
13796
|
+
if (!options)
|
|
13797
|
+
options = {};
|
|
13798
|
+
var object = {};
|
|
13799
|
+
if (options.defaults) {
|
|
13800
|
+
if ($util.Long) {
|
|
13801
|
+
var long = new $util.Long(0, 0, true);
|
|
13802
|
+
object.updatedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
13803
|
+
} else
|
|
13804
|
+
object.updatedOn = options.longs === String ? "0" : 0;
|
|
13805
|
+
object.userId = "";
|
|
13806
|
+
if ($util.Long) {
|
|
13807
|
+
var long = new $util.Long(0, 0, true);
|
|
13808
|
+
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
13809
|
+
} else
|
|
13810
|
+
object.createdAt = options.longs === String ? "0" : 0;
|
|
13811
|
+
if ($util.Long) {
|
|
13812
|
+
var long = new $util.Long(0, 0, true);
|
|
13813
|
+
object.startsAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
13814
|
+
} else
|
|
13815
|
+
object.startsAt = options.longs === String ? "0" : 0;
|
|
13816
|
+
if ($util.Long) {
|
|
13817
|
+
var long = new $util.Long(0, 0, true);
|
|
13818
|
+
object.endsAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
13819
|
+
} else
|
|
13820
|
+
object.endsAt = options.longs === String ? "0" : 0;
|
|
13821
|
+
object.voucherCode = "";
|
|
13822
|
+
object.platform = options.enums === String ? "PLATFORM_UNKNOWN" : 0;
|
|
13823
|
+
object.autoRenewalStatus = options.enums === String ? "UNKNOWN_STATUS" : 0;
|
|
13824
|
+
object.plan = null;
|
|
13825
|
+
}
|
|
13826
|
+
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
13827
|
+
if (typeof message.updatedOn === "number")
|
|
13828
|
+
object.updatedOn = options.longs === String ? String(message.updatedOn) : message.updatedOn;
|
|
13829
|
+
else
|
|
13830
|
+
object.updatedOn = options.longs === String ? $util.Long.prototype.toString.call(message.updatedOn) : options.longs === Number ? new $util.LongBits(message.updatedOn.low >>> 0, message.updatedOn.high >>> 0).toNumber(true) : message.updatedOn;
|
|
13831
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
13832
|
+
object.userId = message.userId;
|
|
13833
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
13834
|
+
if (typeof message.createdAt === "number")
|
|
13835
|
+
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
13836
|
+
else
|
|
13837
|
+
object.createdAt = options.longs === String ? $util.Long.prototype.toString.call(message.createdAt) : options.longs === Number ? new $util.LongBits(message.createdAt.low >>> 0, message.createdAt.high >>> 0).toNumber(true) : message.createdAt;
|
|
13838
|
+
if (message.startsAt != null && message.hasOwnProperty("startsAt"))
|
|
13839
|
+
if (typeof message.startsAt === "number")
|
|
13840
|
+
object.startsAt = options.longs === String ? String(message.startsAt) : message.startsAt;
|
|
13841
|
+
else
|
|
13842
|
+
object.startsAt = options.longs === String ? $util.Long.prototype.toString.call(message.startsAt) : options.longs === Number ? new $util.LongBits(message.startsAt.low >>> 0, message.startsAt.high >>> 0).toNumber(true) : message.startsAt;
|
|
13843
|
+
if (message.endsAt != null && message.hasOwnProperty("endsAt"))
|
|
13844
|
+
if (typeof message.endsAt === "number")
|
|
13845
|
+
object.endsAt = options.longs === String ? String(message.endsAt) : message.endsAt;
|
|
13846
|
+
else
|
|
13847
|
+
object.endsAt = options.longs === String ? $util.Long.prototype.toString.call(message.endsAt) : options.longs === Number ? new $util.LongBits(message.endsAt.low >>> 0, message.endsAt.high >>> 0).toNumber(true) : message.endsAt;
|
|
13848
|
+
if (message.voucherCode != null && message.hasOwnProperty("voucherCode"))
|
|
13849
|
+
object.voucherCode = message.voucherCode;
|
|
13850
|
+
if (message.platform != null && message.hasOwnProperty("platform"))
|
|
13851
|
+
object.platform = options.enums === String ? $root.subscription.SubscriptionPlatform[message.platform] : message.platform;
|
|
13852
|
+
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
13853
|
+
object.autoRenewalStatus = options.enums === String ? $root.subscription.AutoRenewalStatus[message.autoRenewalStatus] : message.autoRenewalStatus;
|
|
13854
|
+
if (message.plan != null && message.hasOwnProperty("plan"))
|
|
13855
|
+
object.plan = $root.subscription.Plan.toObject(message.plan, options);
|
|
13856
|
+
return object;
|
|
13857
|
+
};
|
|
13858
|
+
|
|
13859
|
+
/**
|
|
13860
|
+
* Converts this SubscriptionRecovered to JSON.
|
|
13861
|
+
* @function toJSON
|
|
13862
|
+
* @memberof SubscriptionRecovered
|
|
13863
|
+
* @instance
|
|
13864
|
+
* @returns {Object.<string,*>} JSON object
|
|
13865
|
+
*/
|
|
13866
|
+
SubscriptionRecovered.prototype.toJSON = function toJSON() {
|
|
13867
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
13868
|
+
};
|
|
13869
|
+
|
|
13870
|
+
return SubscriptionRecovered;
|
|
13871
|
+
})();
|
|
13872
|
+
|
|
13397
13873
|
$root.UserDoubleOptInEmailRequested = (function() {
|
|
13398
13874
|
|
|
13399
13875
|
/**
|
package/package.json
CHANGED