@headspace/protos-events 1.56.0 → 1.58.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 CHANGED
@@ -1174,6 +1174,17 @@ export namespace subscription {
1174
1174
  CT_ACTIVE = 1,
1175
1175
  CT_PASSIVE = 2
1176
1176
  }
1177
+
1178
+ /** SubscriptionState enum. */
1179
+ enum SubscriptionState {
1180
+ SUBSTATE_UNKNOWN = 0,
1181
+ SUBSTATE_NONE = 1,
1182
+ SUBSTATE_FREE_SUBSCRIPTION = 2,
1183
+ SUBSTATE_FREE_TRIAL = 3,
1184
+ SUBSTATE_PAYING = 4,
1185
+ SUBSTATE_GRACE = 6,
1186
+ SUBSTATE_CANCELLED = 5
1187
+ }
1177
1188
  }
1178
1189
 
1179
1190
  /** Namespace userdomain. */
@@ -3891,6 +3902,9 @@ export interface ISubscriptionCreated {
3891
3902
 
3892
3903
  /** SubscriptionCreated plan */
3893
3904
  plan?: (subscription.IPlan|null);
3905
+
3906
+ /** SubscriptionCreated subscriptionState */
3907
+ subscriptionState?: (subscription.SubscriptionState|null);
3894
3908
  }
3895
3909
 
3896
3910
  /** Represents a SubscriptionCreated. */
@@ -3932,6 +3946,9 @@ export class SubscriptionCreated implements ISubscriptionCreated {
3932
3946
  /** SubscriptionCreated plan. */
3933
3947
  public plan?: (subscription.IPlan|null);
3934
3948
 
3949
+ /** SubscriptionCreated subscriptionState. */
3950
+ public subscriptionState: subscription.SubscriptionState;
3951
+
3935
3952
  /**
3936
3953
  * Creates a new SubscriptionCreated instance using the specified properties.
3937
3954
  * @param [properties] Properties to set
@@ -4041,6 +4058,9 @@ export interface ISubscriptionCancelled {
4041
4058
 
4042
4059
  /** SubscriptionCancelled cancellationType */
4043
4060
  cancellationType?: (subscription.CancellationType|null);
4061
+
4062
+ /** SubscriptionCancelled subscriptionState */
4063
+ subscriptionState?: (subscription.SubscriptionState|null);
4044
4064
  }
4045
4065
 
4046
4066
  /** Represents a SubscriptionCancelled. */
@@ -4088,6 +4108,9 @@ export class SubscriptionCancelled implements ISubscriptionCancelled {
4088
4108
  /** SubscriptionCancelled cancellationType. */
4089
4109
  public cancellationType: subscription.CancellationType;
4090
4110
 
4111
+ /** SubscriptionCancelled subscriptionState. */
4112
+ public subscriptionState: subscription.SubscriptionState;
4113
+
4091
4114
  /**
4092
4115
  * Creates a new SubscriptionCancelled instance using the specified properties.
4093
4116
  * @param [properties] Properties to set
@@ -4191,6 +4214,9 @@ export interface ISubscriptionRenewed {
4191
4214
 
4192
4215
  /** SubscriptionRenewed plan */
4193
4216
  plan?: (subscription.IPlan|null);
4217
+
4218
+ /** SubscriptionRenewed subscriptionState */
4219
+ subscriptionState?: (subscription.SubscriptionState|null);
4194
4220
  }
4195
4221
 
4196
4222
  /** Represents a SubscriptionRenewed. */
@@ -4232,6 +4258,9 @@ export class SubscriptionRenewed implements ISubscriptionRenewed {
4232
4258
  /** SubscriptionRenewed plan. */
4233
4259
  public plan?: (subscription.IPlan|null);
4234
4260
 
4261
+ /** SubscriptionRenewed subscriptionState. */
4262
+ public subscriptionState: subscription.SubscriptionState;
4263
+
4235
4264
  /**
4236
4265
  * Creates a new SubscriptionRenewed instance using the specified properties.
4237
4266
  * @param [properties] Properties to set
@@ -4701,6 +4730,9 @@ export interface ISubscriptionGraced {
4701
4730
 
4702
4731
  /** SubscriptionGraced plan */
4703
4732
  plan?: (subscription.IPlan|null);
4733
+
4734
+ /** SubscriptionGraced subscriptionState */
4735
+ subscriptionState?: (subscription.SubscriptionState|null);
4704
4736
  }
4705
4737
 
4706
4738
  /** Represents a SubscriptionGraced. */
@@ -4742,6 +4774,9 @@ export class SubscriptionGraced implements ISubscriptionGraced {
4742
4774
  /** SubscriptionGraced plan. */
4743
4775
  public plan?: (subscription.IPlan|null);
4744
4776
 
4777
+ /** SubscriptionGraced subscriptionState. */
4778
+ public subscriptionState: subscription.SubscriptionState;
4779
+
4745
4780
  /**
4746
4781
  * Creates a new SubscriptionGraced instance using the specified properties.
4747
4782
  * @param [properties] Properties to set
@@ -4842,6 +4877,9 @@ export interface ISubscriptionStarted {
4842
4877
 
4843
4878
  /** SubscriptionStarted plan */
4844
4879
  plan?: (subscription.IPlan|null);
4880
+
4881
+ /** SubscriptionStarted subscriptionState */
4882
+ subscriptionState?: (subscription.SubscriptionState|null);
4845
4883
  }
4846
4884
 
4847
4885
  /** Represents a SubscriptionStarted. */
@@ -4880,6 +4918,9 @@ export class SubscriptionStarted implements ISubscriptionStarted {
4880
4918
  /** SubscriptionStarted plan. */
4881
4919
  public plan?: (subscription.IPlan|null);
4882
4920
 
4921
+ /** SubscriptionStarted subscriptionState. */
4922
+ public subscriptionState: subscription.SubscriptionState;
4923
+
4883
4924
  /**
4884
4925
  * Creates a new SubscriptionStarted instance using the specified properties.
4885
4926
  * @param [properties] Properties to set
@@ -4983,6 +5024,9 @@ export interface ISubscriptionEnded {
4983
5024
 
4984
5025
  /** SubscriptionEnded cancellationType */
4985
5026
  cancellationType?: (subscription.CancellationType|null);
5027
+
5028
+ /** SubscriptionEnded subscriptionState */
5029
+ subscriptionState?: (subscription.SubscriptionState|null);
4986
5030
  }
4987
5031
 
4988
5032
  /** Represents a SubscriptionEnded. */
@@ -5024,6 +5068,9 @@ export class SubscriptionEnded implements ISubscriptionEnded {
5024
5068
  /** SubscriptionEnded cancellationType. */
5025
5069
  public cancellationType: subscription.CancellationType;
5026
5070
 
5071
+ /** SubscriptionEnded subscriptionState. */
5072
+ public subscriptionState: subscription.SubscriptionState;
5073
+
5027
5074
  /**
5028
5075
  * Creates a new SubscriptionEnded instance using the specified properties.
5029
5076
  * @param [properties] Properties to set
@@ -5095,6 +5142,150 @@ export class SubscriptionEnded implements ISubscriptionEnded {
5095
5142
  public toJSON(): { [k: string]: any };
5096
5143
  }
5097
5144
 
5145
+ /** Properties of a SubscriptionRecovered. */
5146
+ export interface ISubscriptionRecovered {
5147
+
5148
+ /** SubscriptionRecovered updatedOn */
5149
+ updatedOn?: (number|Long|null);
5150
+
5151
+ /** SubscriptionRecovered userId */
5152
+ userId?: (string|null);
5153
+
5154
+ /** SubscriptionRecovered createdAt */
5155
+ createdAt?: (number|Long|null);
5156
+
5157
+ /** SubscriptionRecovered startsAt */
5158
+ startsAt?: (number|Long|null);
5159
+
5160
+ /** SubscriptionRecovered endsAt */
5161
+ endsAt?: (number|Long|null);
5162
+
5163
+ /** SubscriptionRecovered voucherCode */
5164
+ voucherCode?: (string|null);
5165
+
5166
+ /** SubscriptionRecovered platform */
5167
+ platform?: (subscription.SubscriptionPlatform|null);
5168
+
5169
+ /** SubscriptionRecovered autoRenewalStatus */
5170
+ autoRenewalStatus?: (subscription.AutoRenewalStatus|null);
5171
+
5172
+ /** SubscriptionRecovered plan */
5173
+ plan?: (subscription.IPlan|null);
5174
+
5175
+ /** SubscriptionRecovered subscriptionState */
5176
+ subscriptionState?: (subscription.SubscriptionState|null);
5177
+ }
5178
+
5179
+ /** Represents a SubscriptionRecovered. */
5180
+ export class SubscriptionRecovered implements ISubscriptionRecovered {
5181
+
5182
+ /**
5183
+ * Constructs a new SubscriptionRecovered.
5184
+ * @param [properties] Properties to set
5185
+ */
5186
+ constructor(properties?: ISubscriptionRecovered);
5187
+
5188
+ /** SubscriptionRecovered updatedOn. */
5189
+ public updatedOn: (number|Long);
5190
+
5191
+ /** SubscriptionRecovered userId. */
5192
+ public userId: string;
5193
+
5194
+ /** SubscriptionRecovered createdAt. */
5195
+ public createdAt: (number|Long);
5196
+
5197
+ /** SubscriptionRecovered startsAt. */
5198
+ public startsAt: (number|Long);
5199
+
5200
+ /** SubscriptionRecovered endsAt. */
5201
+ public endsAt: (number|Long);
5202
+
5203
+ /** SubscriptionRecovered voucherCode. */
5204
+ public voucherCode: string;
5205
+
5206
+ /** SubscriptionRecovered platform. */
5207
+ public platform: subscription.SubscriptionPlatform;
5208
+
5209
+ /** SubscriptionRecovered autoRenewalStatus. */
5210
+ public autoRenewalStatus: subscription.AutoRenewalStatus;
5211
+
5212
+ /** SubscriptionRecovered plan. */
5213
+ public plan?: (subscription.IPlan|null);
5214
+
5215
+ /** SubscriptionRecovered subscriptionState. */
5216
+ public subscriptionState: subscription.SubscriptionState;
5217
+
5218
+ /**
5219
+ * Creates a new SubscriptionRecovered instance using the specified properties.
5220
+ * @param [properties] Properties to set
5221
+ * @returns SubscriptionRecovered instance
5222
+ */
5223
+ public static create(properties?: ISubscriptionRecovered): SubscriptionRecovered;
5224
+
5225
+ /**
5226
+ * Encodes the specified SubscriptionRecovered message. Does not implicitly {@link SubscriptionRecovered.verify|verify} messages.
5227
+ * @param message SubscriptionRecovered message or plain object to encode
5228
+ * @param [writer] Writer to encode to
5229
+ * @returns Writer
5230
+ */
5231
+ public static encode(message: ISubscriptionRecovered, writer?: $protobuf.Writer): $protobuf.Writer;
5232
+
5233
+ /**
5234
+ * Encodes the specified SubscriptionRecovered message, length delimited. Does not implicitly {@link SubscriptionRecovered.verify|verify} messages.
5235
+ * @param message SubscriptionRecovered message or plain object to encode
5236
+ * @param [writer] Writer to encode to
5237
+ * @returns Writer
5238
+ */
5239
+ public static encodeDelimited(message: ISubscriptionRecovered, writer?: $protobuf.Writer): $protobuf.Writer;
5240
+
5241
+ /**
5242
+ * Decodes a SubscriptionRecovered message from the specified reader or buffer.
5243
+ * @param reader Reader or buffer to decode from
5244
+ * @param [length] Message length if known beforehand
5245
+ * @returns SubscriptionRecovered
5246
+ * @throws {Error} If the payload is not a reader or valid buffer
5247
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5248
+ */
5249
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SubscriptionRecovered;
5250
+
5251
+ /**
5252
+ * Decodes a SubscriptionRecovered message from the specified reader or buffer, length delimited.
5253
+ * @param reader Reader or buffer to decode from
5254
+ * @returns SubscriptionRecovered
5255
+ * @throws {Error} If the payload is not a reader or valid buffer
5256
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5257
+ */
5258
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SubscriptionRecovered;
5259
+
5260
+ /**
5261
+ * Verifies a SubscriptionRecovered message.
5262
+ * @param message Plain object to verify
5263
+ * @returns `null` if valid, otherwise the reason why it is not
5264
+ */
5265
+ public static verify(message: { [k: string]: any }): (string|null);
5266
+
5267
+ /**
5268
+ * Creates a SubscriptionRecovered message from a plain object. Also converts values to their respective internal types.
5269
+ * @param object Plain object
5270
+ * @returns SubscriptionRecovered
5271
+ */
5272
+ public static fromObject(object: { [k: string]: any }): SubscriptionRecovered;
5273
+
5274
+ /**
5275
+ * Creates a plain object from a SubscriptionRecovered message. Also converts values to other types if specified.
5276
+ * @param message SubscriptionRecovered
5277
+ * @param [options] Conversion options
5278
+ * @returns Plain object
5279
+ */
5280
+ public static toObject(message: SubscriptionRecovered, options?: $protobuf.IConversionOptions): { [k: string]: any };
5281
+
5282
+ /**
5283
+ * Converts this SubscriptionRecovered to JSON.
5284
+ * @returns JSON object
5285
+ */
5286
+ public toJSON(): { [k: string]: any };
5287
+ }
5288
+
5098
5289
  /** Properties of a UserDoubleOptInEmailRequested. */
5099
5290
  export interface IUserDoubleOptInEmailRequested {
5100
5291