@headspace/protos-events 1.169.0 → 1.171.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.
Files changed (3) hide show
  1. package/lib/index.d.ts +318 -0
  2. package/lib/index.js +1297 -7
  3. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -1845,6 +1845,114 @@ export namespace subscription {
1845
1845
  public toJSON(): { [k: string]: any };
1846
1846
  }
1847
1847
 
1848
+ /** Properties of a Term. */
1849
+ interface ITerm {
1850
+
1851
+ /** Term startsMillis */
1852
+ startsMillis?: (number|Long|null);
1853
+
1854
+ /** Term endsMillis */
1855
+ endsMillis?: (number|Long|null);
1856
+
1857
+ /** Term termType */
1858
+ termType?: (subscription.TermType|null);
1859
+ }
1860
+
1861
+ /** Represents a Term. */
1862
+ class Term implements ITerm {
1863
+
1864
+ /**
1865
+ * Constructs a new Term.
1866
+ * @param [properties] Properties to set
1867
+ */
1868
+ constructor(properties?: subscription.ITerm);
1869
+
1870
+ /** Term startsMillis. */
1871
+ public startsMillis: (number|Long);
1872
+
1873
+ /** Term endsMillis. */
1874
+ public endsMillis: (number|Long);
1875
+
1876
+ /** Term termType. */
1877
+ public termType: subscription.TermType;
1878
+
1879
+ /**
1880
+ * Creates a new Term instance using the specified properties.
1881
+ * @param [properties] Properties to set
1882
+ * @returns Term instance
1883
+ */
1884
+ public static create(properties?: subscription.ITerm): subscription.Term;
1885
+
1886
+ /**
1887
+ * Encodes the specified Term message. Does not implicitly {@link subscription.Term.verify|verify} messages.
1888
+ * @param message Term message or plain object to encode
1889
+ * @param [writer] Writer to encode to
1890
+ * @returns Writer
1891
+ */
1892
+ public static encode(message: subscription.ITerm, writer?: $protobuf.Writer): $protobuf.Writer;
1893
+
1894
+ /**
1895
+ * Encodes the specified Term message, length delimited. Does not implicitly {@link subscription.Term.verify|verify} messages.
1896
+ * @param message Term message or plain object to encode
1897
+ * @param [writer] Writer to encode to
1898
+ * @returns Writer
1899
+ */
1900
+ public static encodeDelimited(message: subscription.ITerm, writer?: $protobuf.Writer): $protobuf.Writer;
1901
+
1902
+ /**
1903
+ * Decodes a Term message from the specified reader or buffer.
1904
+ * @param reader Reader or buffer to decode from
1905
+ * @param [length] Message length if known beforehand
1906
+ * @returns Term
1907
+ * @throws {Error} If the payload is not a reader or valid buffer
1908
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1909
+ */
1910
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): subscription.Term;
1911
+
1912
+ /**
1913
+ * Decodes a Term message from the specified reader or buffer, length delimited.
1914
+ * @param reader Reader or buffer to decode from
1915
+ * @returns Term
1916
+ * @throws {Error} If the payload is not a reader or valid buffer
1917
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1918
+ */
1919
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): subscription.Term;
1920
+
1921
+ /**
1922
+ * Verifies a Term message.
1923
+ * @param message Plain object to verify
1924
+ * @returns `null` if valid, otherwise the reason why it is not
1925
+ */
1926
+ public static verify(message: { [k: string]: any }): (string|null);
1927
+
1928
+ /**
1929
+ * Creates a Term message from a plain object. Also converts values to their respective internal types.
1930
+ * @param object Plain object
1931
+ * @returns Term
1932
+ */
1933
+ public static fromObject(object: { [k: string]: any }): subscription.Term;
1934
+
1935
+ /**
1936
+ * Creates a plain object from a Term message. Also converts values to other types if specified.
1937
+ * @param message Term
1938
+ * @param [options] Conversion options
1939
+ * @returns Plain object
1940
+ */
1941
+ public static toObject(message: subscription.Term, options?: $protobuf.IConversionOptions): { [k: string]: any };
1942
+
1943
+ /**
1944
+ * Converts this Term to JSON.
1945
+ * @returns JSON object
1946
+ */
1947
+ public toJSON(): { [k: string]: any };
1948
+ }
1949
+
1950
+ /** TermType enum. */
1951
+ enum TermType {
1952
+ TERM_TYPE_UNKNOWN = 0,
1953
+ FREE_TRIAL = 1
1954
+ }
1955
+
1848
1956
  /** PlanAffiliation enum. */
1849
1957
  enum PlanAffiliation {
1850
1958
  STUDENT = 0,
@@ -20685,6 +20793,9 @@ export interface ISubscriptionCreated {
20685
20793
 
20686
20794
  /** SubscriptionCreated isQueuedSubscription */
20687
20795
  isQueuedSubscription?: (boolean|null);
20796
+
20797
+ /** SubscriptionCreated terms */
20798
+ terms?: (subscription.ITerm[]|null);
20688
20799
  }
20689
20800
 
20690
20801
  /** Represents a SubscriptionCreated. */
@@ -20735,6 +20846,9 @@ export class SubscriptionCreated implements ISubscriptionCreated {
20735
20846
  /** SubscriptionCreated isQueuedSubscription. */
20736
20847
  public isQueuedSubscription: boolean;
20737
20848
 
20849
+ /** SubscriptionCreated terms. */
20850
+ public terms: subscription.ITerm[];
20851
+
20738
20852
  /**
20739
20853
  * Creates a new SubscriptionCreated instance using the specified properties.
20740
20854
  * @param [properties] Properties to set
@@ -20853,6 +20967,9 @@ export interface ISubscriptionCancelled {
20853
20967
 
20854
20968
  /** SubscriptionCancelled renewalCount */
20855
20969
  renewalCount?: (number|Long|null);
20970
+
20971
+ /** SubscriptionCancelled terms */
20972
+ terms?: (subscription.ITerm[]|null);
20856
20973
  }
20857
20974
 
20858
20975
  /** Represents a SubscriptionCancelled. */
@@ -20909,6 +21026,9 @@ export class SubscriptionCancelled implements ISubscriptionCancelled {
20909
21026
  /** SubscriptionCancelled renewalCount. */
20910
21027
  public renewalCount: (number|Long);
20911
21028
 
21029
+ /** SubscriptionCancelled terms. */
21030
+ public terms: subscription.ITerm[];
21031
+
20912
21032
  /**
20913
21033
  * Creates a new SubscriptionCancelled instance using the specified properties.
20914
21034
  * @param [properties] Properties to set
@@ -21021,6 +21141,9 @@ export interface ISubscriptionRenewed {
21021
21141
 
21022
21142
  /** SubscriptionRenewed renewalCount */
21023
21143
  renewalCount?: (number|Long|null);
21144
+
21145
+ /** SubscriptionRenewed terms */
21146
+ terms?: (subscription.ITerm[]|null);
21024
21147
  }
21025
21148
 
21026
21149
  /** Represents a SubscriptionRenewed. */
@@ -21071,6 +21194,9 @@ export class SubscriptionRenewed implements ISubscriptionRenewed {
21071
21194
  /** SubscriptionRenewed renewalCount. */
21072
21195
  public renewalCount: (number|Long);
21073
21196
 
21197
+ /** SubscriptionRenewed terms. */
21198
+ public terms: subscription.ITerm[];
21199
+
21074
21200
  /**
21075
21201
  * Creates a new SubscriptionRenewed instance using the specified properties.
21076
21202
  * @param [properties] Properties to set
@@ -21549,6 +21675,9 @@ export interface ISubscriptionGraced {
21549
21675
 
21550
21676
  /** SubscriptionGraced renewalCount */
21551
21677
  renewalCount?: (number|Long|null);
21678
+
21679
+ /** SubscriptionGraced terms */
21680
+ terms?: (subscription.ITerm[]|null);
21552
21681
  }
21553
21682
 
21554
21683
  /** Represents a SubscriptionGraced. */
@@ -21599,6 +21728,9 @@ export class SubscriptionGraced implements ISubscriptionGraced {
21599
21728
  /** SubscriptionGraced renewalCount. */
21600
21729
  public renewalCount: (number|Long);
21601
21730
 
21731
+ /** SubscriptionGraced terms. */
21732
+ public terms: subscription.ITerm[];
21733
+
21602
21734
  /**
21603
21735
  * Creates a new SubscriptionGraced instance using the specified properties.
21604
21736
  * @param [properties] Properties to set
@@ -21711,6 +21843,9 @@ export interface ISubscriptionStarted {
21711
21843
 
21712
21844
  /** SubscriptionStarted id */
21713
21845
  id?: (number|null);
21846
+
21847
+ /** SubscriptionStarted terms */
21848
+ terms?: (subscription.ITerm[]|null);
21714
21849
  }
21715
21850
 
21716
21851
  /** Represents a SubscriptionStarted. */
@@ -21761,6 +21896,9 @@ export class SubscriptionStarted implements ISubscriptionStarted {
21761
21896
  /** SubscriptionStarted id. */
21762
21897
  public id: number;
21763
21898
 
21899
+ /** SubscriptionStarted terms. */
21900
+ public terms: subscription.ITerm[];
21901
+
21764
21902
  /**
21765
21903
  * Creates a new SubscriptionStarted instance using the specified properties.
21766
21904
  * @param [properties] Properties to set
@@ -21876,6 +22014,9 @@ export interface ISubscriptionEnded {
21876
22014
 
21877
22015
  /** SubscriptionEnded id */
21878
22016
  id?: (number|null);
22017
+
22018
+ /** SubscriptionEnded terms */
22019
+ terms?: (subscription.ITerm[]|null);
21879
22020
  }
21880
22021
 
21881
22022
  /** Represents a SubscriptionEnded. */
@@ -21929,6 +22070,9 @@ export class SubscriptionEnded implements ISubscriptionEnded {
21929
22070
  /** SubscriptionEnded id. */
21930
22071
  public id: number;
21931
22072
 
22073
+ /** SubscriptionEnded terms. */
22074
+ public terms: subscription.ITerm[];
22075
+
21932
22076
  /**
21933
22077
  * Creates a new SubscriptionEnded instance using the specified properties.
21934
22078
  * @param [properties] Properties to set
@@ -22041,6 +22185,9 @@ export interface ISubscriptionRecovered {
22041
22185
 
22042
22186
  /** SubscriptionRecovered id */
22043
22187
  id?: (number|null);
22188
+
22189
+ /** SubscriptionRecovered terms */
22190
+ terms?: (subscription.ITerm[]|null);
22044
22191
  }
22045
22192
 
22046
22193
  /** Represents a SubscriptionRecovered. */
@@ -22091,6 +22238,9 @@ export class SubscriptionRecovered implements ISubscriptionRecovered {
22091
22238
  /** SubscriptionRecovered id. */
22092
22239
  public id: number;
22093
22240
 
22241
+ /** SubscriptionRecovered terms. */
22242
+ public terms: subscription.ITerm[];
22243
+
22094
22244
  /**
22095
22245
  * Creates a new SubscriptionRecovered instance using the specified properties.
22096
22246
  * @param [properties] Properties to set
@@ -22162,6 +22312,174 @@ export class SubscriptionRecovered implements ISubscriptionRecovered {
22162
22312
  public toJSON(): { [k: string]: any };
22163
22313
  }
22164
22314
 
22315
+ /** Properties of a SubscriptionAmended. */
22316
+ export interface ISubscriptionAmended {
22317
+
22318
+ /** SubscriptionAmended updatedOn */
22319
+ updatedOn?: (number|Long|null);
22320
+
22321
+ /** SubscriptionAmended userId */
22322
+ userId?: (string|null);
22323
+
22324
+ /** SubscriptionAmended createdAt */
22325
+ createdAt?: (number|Long|null);
22326
+
22327
+ /** SubscriptionAmended startsAt */
22328
+ startsAt?: (number|Long|null);
22329
+
22330
+ /** SubscriptionAmended endsAt */
22331
+ endsAt?: (number|Long|null);
22332
+
22333
+ /** SubscriptionAmended voucherCode */
22334
+ voucherCode?: (string|null);
22335
+
22336
+ /** SubscriptionAmended platform */
22337
+ platform?: (subscription.SubscriptionPlatform|null);
22338
+
22339
+ /** SubscriptionAmended autoRenewalStatus */
22340
+ autoRenewalStatus?: (subscription.AutoRenewalStatus|null);
22341
+
22342
+ /** SubscriptionAmended plan */
22343
+ plan?: (subscription.IPlan|null);
22344
+
22345
+ /** SubscriptionAmended subscriptionState */
22346
+ subscriptionState?: (subscription.SubscriptionState|null);
22347
+
22348
+ /** SubscriptionAmended labels */
22349
+ labels?: (subscription.SubscriptionLabels[]|null);
22350
+
22351
+ /** SubscriptionAmended renewalCount */
22352
+ renewalCount?: (number|Long|null);
22353
+
22354
+ /** SubscriptionAmended id */
22355
+ id?: (number|null);
22356
+
22357
+ /** SubscriptionAmended terms */
22358
+ terms?: (subscription.ITerm[]|null);
22359
+ }
22360
+
22361
+ /** Represents a SubscriptionAmended. */
22362
+ export class SubscriptionAmended implements ISubscriptionAmended {
22363
+
22364
+ /**
22365
+ * Constructs a new SubscriptionAmended.
22366
+ * @param [properties] Properties to set
22367
+ */
22368
+ constructor(properties?: ISubscriptionAmended);
22369
+
22370
+ /** SubscriptionAmended updatedOn. */
22371
+ public updatedOn: (number|Long);
22372
+
22373
+ /** SubscriptionAmended userId. */
22374
+ public userId: string;
22375
+
22376
+ /** SubscriptionAmended createdAt. */
22377
+ public createdAt: (number|Long);
22378
+
22379
+ /** SubscriptionAmended startsAt. */
22380
+ public startsAt: (number|Long);
22381
+
22382
+ /** SubscriptionAmended endsAt. */
22383
+ public endsAt: (number|Long);
22384
+
22385
+ /** SubscriptionAmended voucherCode. */
22386
+ public voucherCode: string;
22387
+
22388
+ /** SubscriptionAmended platform. */
22389
+ public platform: subscription.SubscriptionPlatform;
22390
+
22391
+ /** SubscriptionAmended autoRenewalStatus. */
22392
+ public autoRenewalStatus: subscription.AutoRenewalStatus;
22393
+
22394
+ /** SubscriptionAmended plan. */
22395
+ public plan?: (subscription.IPlan|null);
22396
+
22397
+ /** SubscriptionAmended subscriptionState. */
22398
+ public subscriptionState: subscription.SubscriptionState;
22399
+
22400
+ /** SubscriptionAmended labels. */
22401
+ public labels: subscription.SubscriptionLabels[];
22402
+
22403
+ /** SubscriptionAmended renewalCount. */
22404
+ public renewalCount: (number|Long);
22405
+
22406
+ /** SubscriptionAmended id. */
22407
+ public id: number;
22408
+
22409
+ /** SubscriptionAmended terms. */
22410
+ public terms: subscription.ITerm[];
22411
+
22412
+ /**
22413
+ * Creates a new SubscriptionAmended instance using the specified properties.
22414
+ * @param [properties] Properties to set
22415
+ * @returns SubscriptionAmended instance
22416
+ */
22417
+ public static create(properties?: ISubscriptionAmended): SubscriptionAmended;
22418
+
22419
+ /**
22420
+ * Encodes the specified SubscriptionAmended message. Does not implicitly {@link SubscriptionAmended.verify|verify} messages.
22421
+ * @param message SubscriptionAmended message or plain object to encode
22422
+ * @param [writer] Writer to encode to
22423
+ * @returns Writer
22424
+ */
22425
+ public static encode(message: ISubscriptionAmended, writer?: $protobuf.Writer): $protobuf.Writer;
22426
+
22427
+ /**
22428
+ * Encodes the specified SubscriptionAmended message, length delimited. Does not implicitly {@link SubscriptionAmended.verify|verify} messages.
22429
+ * @param message SubscriptionAmended message or plain object to encode
22430
+ * @param [writer] Writer to encode to
22431
+ * @returns Writer
22432
+ */
22433
+ public static encodeDelimited(message: ISubscriptionAmended, writer?: $protobuf.Writer): $protobuf.Writer;
22434
+
22435
+ /**
22436
+ * Decodes a SubscriptionAmended message from the specified reader or buffer.
22437
+ * @param reader Reader or buffer to decode from
22438
+ * @param [length] Message length if known beforehand
22439
+ * @returns SubscriptionAmended
22440
+ * @throws {Error} If the payload is not a reader or valid buffer
22441
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
22442
+ */
22443
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SubscriptionAmended;
22444
+
22445
+ /**
22446
+ * Decodes a SubscriptionAmended message from the specified reader or buffer, length delimited.
22447
+ * @param reader Reader or buffer to decode from
22448
+ * @returns SubscriptionAmended
22449
+ * @throws {Error} If the payload is not a reader or valid buffer
22450
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
22451
+ */
22452
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SubscriptionAmended;
22453
+
22454
+ /**
22455
+ * Verifies a SubscriptionAmended message.
22456
+ * @param message Plain object to verify
22457
+ * @returns `null` if valid, otherwise the reason why it is not
22458
+ */
22459
+ public static verify(message: { [k: string]: any }): (string|null);
22460
+
22461
+ /**
22462
+ * Creates a SubscriptionAmended message from a plain object. Also converts values to their respective internal types.
22463
+ * @param object Plain object
22464
+ * @returns SubscriptionAmended
22465
+ */
22466
+ public static fromObject(object: { [k: string]: any }): SubscriptionAmended;
22467
+
22468
+ /**
22469
+ * Creates a plain object from a SubscriptionAmended message. Also converts values to other types if specified.
22470
+ * @param message SubscriptionAmended
22471
+ * @param [options] Conversion options
22472
+ * @returns Plain object
22473
+ */
22474
+ public static toObject(message: SubscriptionAmended, options?: $protobuf.IConversionOptions): { [k: string]: any };
22475
+
22476
+ /**
22477
+ * Converts this SubscriptionAmended to JSON.
22478
+ * @returns JSON object
22479
+ */
22480
+ public toJSON(): { [k: string]: any };
22481
+ }
22482
+
22165
22483
  /** Properties of a SubscriptionMemberSubscribed. */
22166
22484
  export interface ISubscriptionMemberSubscribed {
22167
22485