@headspace/protos-events 1.47.0 → 1.48.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 +13 -0
- package/lib/index.js +56 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1167,6 +1167,13 @@ export namespace subscription {
|
|
|
1167
1167
|
ENABLED = 1,
|
|
1168
1168
|
DISABLED = 2
|
|
1169
1169
|
}
|
|
1170
|
+
|
|
1171
|
+
/** CancellationType enum. */
|
|
1172
|
+
enum CancellationType {
|
|
1173
|
+
CT_UNKNOWN = 0,
|
|
1174
|
+
CT_ACTIVE = 1,
|
|
1175
|
+
CT_PASSIVE = 2
|
|
1176
|
+
}
|
|
1170
1177
|
}
|
|
1171
1178
|
|
|
1172
1179
|
/** Namespace userdomain. */
|
|
@@ -3581,6 +3588,9 @@ export interface ISubscriptionCancelled {
|
|
|
3581
3588
|
|
|
3582
3589
|
/** SubscriptionCancelled plan */
|
|
3583
3590
|
plan?: (subscription.IPlan|null);
|
|
3591
|
+
|
|
3592
|
+
/** SubscriptionCancelled cancellationType */
|
|
3593
|
+
cancellationType?: (subscription.CancellationType|null);
|
|
3584
3594
|
}
|
|
3585
3595
|
|
|
3586
3596
|
/** Represents a SubscriptionCancelled. */
|
|
@@ -3625,6 +3635,9 @@ export class SubscriptionCancelled implements ISubscriptionCancelled {
|
|
|
3625
3635
|
/** SubscriptionCancelled plan. */
|
|
3626
3636
|
public plan?: (subscription.IPlan|null);
|
|
3627
3637
|
|
|
3638
|
+
/** SubscriptionCancelled cancellationType. */
|
|
3639
|
+
public cancellationType: subscription.CancellationType;
|
|
3640
|
+
|
|
3628
3641
|
/**
|
|
3629
3642
|
* Creates a new SubscriptionCancelled instance using the specified properties.
|
|
3630
3643
|
* @param [properties] Properties to set
|
package/lib/index.js
CHANGED
|
@@ -2648,6 +2648,22 @@ $root.subscription = (function() {
|
|
|
2648
2648
|
return values;
|
|
2649
2649
|
})();
|
|
2650
2650
|
|
|
2651
|
+
/**
|
|
2652
|
+
* CancellationType enum.
|
|
2653
|
+
* @name subscription.CancellationType
|
|
2654
|
+
* @enum {string}
|
|
2655
|
+
* @property {number} CT_UNKNOWN=0 CT_UNKNOWN value
|
|
2656
|
+
* @property {number} CT_ACTIVE=1 CT_ACTIVE value
|
|
2657
|
+
* @property {number} CT_PASSIVE=2 CT_PASSIVE value
|
|
2658
|
+
*/
|
|
2659
|
+
subscription.CancellationType = (function() {
|
|
2660
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
2661
|
+
values[valuesById[0] = "CT_UNKNOWN"] = 0;
|
|
2662
|
+
values[valuesById[1] = "CT_ACTIVE"] = 1;
|
|
2663
|
+
values[valuesById[2] = "CT_PASSIVE"] = 2;
|
|
2664
|
+
return values;
|
|
2665
|
+
})();
|
|
2666
|
+
|
|
2651
2667
|
return subscription;
|
|
2652
2668
|
})();
|
|
2653
2669
|
|
|
@@ -8715,6 +8731,7 @@ $root.SubscriptionCancelled = (function() {
|
|
|
8715
8731
|
* @property {subscription.SubscriptionPlatform|null} [platform] SubscriptionCancelled platform
|
|
8716
8732
|
* @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionCancelled autoRenewalStatus
|
|
8717
8733
|
* @property {subscription.IPlan|null} [plan] SubscriptionCancelled plan
|
|
8734
|
+
* @property {subscription.CancellationType|null} [cancellationType] SubscriptionCancelled cancellationType
|
|
8718
8735
|
*/
|
|
8719
8736
|
|
|
8720
8737
|
/**
|
|
@@ -8820,6 +8837,14 @@ $root.SubscriptionCancelled = (function() {
|
|
|
8820
8837
|
*/
|
|
8821
8838
|
SubscriptionCancelled.prototype.plan = null;
|
|
8822
8839
|
|
|
8840
|
+
/**
|
|
8841
|
+
* SubscriptionCancelled cancellationType.
|
|
8842
|
+
* @member {subscription.CancellationType} cancellationType
|
|
8843
|
+
* @memberof SubscriptionCancelled
|
|
8844
|
+
* @instance
|
|
8845
|
+
*/
|
|
8846
|
+
SubscriptionCancelled.prototype.cancellationType = 0;
|
|
8847
|
+
|
|
8823
8848
|
/**
|
|
8824
8849
|
* Creates a new SubscriptionCancelled instance using the specified properties.
|
|
8825
8850
|
* @function create
|
|
@@ -8866,6 +8891,8 @@ $root.SubscriptionCancelled = (function() {
|
|
|
8866
8891
|
writer.uint32(/* id 10, wireType 0 =*/80).int32(message.autoRenewalStatus);
|
|
8867
8892
|
if (message.plan != null && message.hasOwnProperty("plan"))
|
|
8868
8893
|
$root.subscription.Plan.encode(message.plan, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
|
|
8894
|
+
if (message.cancellationType != null && message.hasOwnProperty("cancellationType"))
|
|
8895
|
+
writer.uint32(/* id 12, wireType 0 =*/96).int32(message.cancellationType);
|
|
8869
8896
|
return writer;
|
|
8870
8897
|
};
|
|
8871
8898
|
|
|
@@ -8933,6 +8960,9 @@ $root.SubscriptionCancelled = (function() {
|
|
|
8933
8960
|
case 11:
|
|
8934
8961
|
message.plan = $root.subscription.Plan.decode(reader, reader.uint32());
|
|
8935
8962
|
break;
|
|
8963
|
+
case 12:
|
|
8964
|
+
message.cancellationType = reader.int32();
|
|
8965
|
+
break;
|
|
8936
8966
|
default:
|
|
8937
8967
|
reader.skipType(tag & 7);
|
|
8938
8968
|
break;
|
|
@@ -9020,6 +9050,15 @@ $root.SubscriptionCancelled = (function() {
|
|
|
9020
9050
|
if (error)
|
|
9021
9051
|
return "plan." + error;
|
|
9022
9052
|
}
|
|
9053
|
+
if (message.cancellationType != null && message.hasOwnProperty("cancellationType"))
|
|
9054
|
+
switch (message.cancellationType) {
|
|
9055
|
+
default:
|
|
9056
|
+
return "cancellationType: enum value expected";
|
|
9057
|
+
case 0:
|
|
9058
|
+
case 1:
|
|
9059
|
+
case 2:
|
|
9060
|
+
break;
|
|
9061
|
+
}
|
|
9023
9062
|
return null;
|
|
9024
9063
|
};
|
|
9025
9064
|
|
|
@@ -9127,6 +9166,20 @@ $root.SubscriptionCancelled = (function() {
|
|
|
9127
9166
|
throw TypeError(".SubscriptionCancelled.plan: object expected");
|
|
9128
9167
|
message.plan = $root.subscription.Plan.fromObject(object.plan);
|
|
9129
9168
|
}
|
|
9169
|
+
switch (object.cancellationType) {
|
|
9170
|
+
case "CT_UNKNOWN":
|
|
9171
|
+
case 0:
|
|
9172
|
+
message.cancellationType = 0;
|
|
9173
|
+
break;
|
|
9174
|
+
case "CT_ACTIVE":
|
|
9175
|
+
case 1:
|
|
9176
|
+
message.cancellationType = 1;
|
|
9177
|
+
break;
|
|
9178
|
+
case "CT_PASSIVE":
|
|
9179
|
+
case 2:
|
|
9180
|
+
message.cancellationType = 2;
|
|
9181
|
+
break;
|
|
9182
|
+
}
|
|
9130
9183
|
return message;
|
|
9131
9184
|
};
|
|
9132
9185
|
|
|
@@ -9171,6 +9224,7 @@ $root.SubscriptionCancelled = (function() {
|
|
|
9171
9224
|
object.platform = options.enums === String ? "PLATFORM_UNKNOWN" : 0;
|
|
9172
9225
|
object.autoRenewalStatus = options.enums === String ? "UNKNOWN_STATUS" : 0;
|
|
9173
9226
|
object.plan = null;
|
|
9227
|
+
object.cancellationType = options.enums === String ? "CT_UNKNOWN" : 0;
|
|
9174
9228
|
}
|
|
9175
9229
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
9176
9230
|
object.id = message.id;
|
|
@@ -9206,6 +9260,8 @@ $root.SubscriptionCancelled = (function() {
|
|
|
9206
9260
|
object.autoRenewalStatus = options.enums === String ? $root.subscription.AutoRenewalStatus[message.autoRenewalStatus] : message.autoRenewalStatus;
|
|
9207
9261
|
if (message.plan != null && message.hasOwnProperty("plan"))
|
|
9208
9262
|
object.plan = $root.subscription.Plan.toObject(message.plan, options);
|
|
9263
|
+
if (message.cancellationType != null && message.hasOwnProperty("cancellationType"))
|
|
9264
|
+
object.cancellationType = options.enums === String ? $root.subscription.CancellationType[message.cancellationType] : message.cancellationType;
|
|
9209
9265
|
return object;
|
|
9210
9266
|
};
|
|
9211
9267
|
|
package/package.json
CHANGED