@headspace/protos-events 1.168.0 → 1.170.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 +162 -0
- package/lib/index.js +648 -9
- 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,
|
|
@@ -7488,6 +7596,9 @@ export interface IContentfulActivityVariationCreated {
|
|
|
7488
7596
|
/** ContentfulActivityVariationCreated media */
|
|
7489
7597
|
media?: ({ [k: string]: contentful.IIdReference }|null);
|
|
7490
7598
|
|
|
7599
|
+
/** ContentfulActivityVariationCreated locale */
|
|
7600
|
+
locale?: (string|null);
|
|
7601
|
+
|
|
7491
7602
|
/** ContentfulActivityVariationCreated createdAt */
|
|
7492
7603
|
createdAt?: (number|Long|null);
|
|
7493
7604
|
}
|
|
@@ -7510,6 +7621,9 @@ export class ContentfulActivityVariationCreated implements IContentfulActivityVa
|
|
|
7510
7621
|
/** ContentfulActivityVariationCreated media. */
|
|
7511
7622
|
public media: { [k: string]: contentful.IIdReference };
|
|
7512
7623
|
|
|
7624
|
+
/** ContentfulActivityVariationCreated locale. */
|
|
7625
|
+
public locale: string;
|
|
7626
|
+
|
|
7513
7627
|
/** ContentfulActivityVariationCreated createdAt. */
|
|
7514
7628
|
public createdAt: (number|Long);
|
|
7515
7629
|
|
|
@@ -7596,6 +7710,9 @@ export interface IContentfulActivityVariationUpdated {
|
|
|
7596
7710
|
/** ContentfulActivityVariationUpdated media */
|
|
7597
7711
|
media?: ({ [k: string]: contentful.IIdReference }|null);
|
|
7598
7712
|
|
|
7713
|
+
/** ContentfulActivityVariationUpdated locale */
|
|
7714
|
+
locale?: (string|null);
|
|
7715
|
+
|
|
7599
7716
|
/** ContentfulActivityVariationUpdated updatedAt */
|
|
7600
7717
|
updatedAt?: (number|Long|null);
|
|
7601
7718
|
}
|
|
@@ -7618,6 +7735,9 @@ export class ContentfulActivityVariationUpdated implements IContentfulActivityVa
|
|
|
7618
7735
|
/** ContentfulActivityVariationUpdated media. */
|
|
7619
7736
|
public media: { [k: string]: contentful.IIdReference };
|
|
7620
7737
|
|
|
7738
|
+
/** ContentfulActivityVariationUpdated locale. */
|
|
7739
|
+
public locale: string;
|
|
7740
|
+
|
|
7621
7741
|
/** ContentfulActivityVariationUpdated updatedAt. */
|
|
7622
7742
|
public updatedAt: (number|Long);
|
|
7623
7743
|
|
|
@@ -20673,6 +20793,9 @@ export interface ISubscriptionCreated {
|
|
|
20673
20793
|
|
|
20674
20794
|
/** SubscriptionCreated isQueuedSubscription */
|
|
20675
20795
|
isQueuedSubscription?: (boolean|null);
|
|
20796
|
+
|
|
20797
|
+
/** SubscriptionCreated terms */
|
|
20798
|
+
terms?: (subscription.ITerm[]|null);
|
|
20676
20799
|
}
|
|
20677
20800
|
|
|
20678
20801
|
/** Represents a SubscriptionCreated. */
|
|
@@ -20723,6 +20846,9 @@ export class SubscriptionCreated implements ISubscriptionCreated {
|
|
|
20723
20846
|
/** SubscriptionCreated isQueuedSubscription. */
|
|
20724
20847
|
public isQueuedSubscription: boolean;
|
|
20725
20848
|
|
|
20849
|
+
/** SubscriptionCreated terms. */
|
|
20850
|
+
public terms: subscription.ITerm[];
|
|
20851
|
+
|
|
20726
20852
|
/**
|
|
20727
20853
|
* Creates a new SubscriptionCreated instance using the specified properties.
|
|
20728
20854
|
* @param [properties] Properties to set
|
|
@@ -20841,6 +20967,9 @@ export interface ISubscriptionCancelled {
|
|
|
20841
20967
|
|
|
20842
20968
|
/** SubscriptionCancelled renewalCount */
|
|
20843
20969
|
renewalCount?: (number|Long|null);
|
|
20970
|
+
|
|
20971
|
+
/** SubscriptionCancelled terms */
|
|
20972
|
+
terms?: (subscription.ITerm[]|null);
|
|
20844
20973
|
}
|
|
20845
20974
|
|
|
20846
20975
|
/** Represents a SubscriptionCancelled. */
|
|
@@ -20897,6 +21026,9 @@ export class SubscriptionCancelled implements ISubscriptionCancelled {
|
|
|
20897
21026
|
/** SubscriptionCancelled renewalCount. */
|
|
20898
21027
|
public renewalCount: (number|Long);
|
|
20899
21028
|
|
|
21029
|
+
/** SubscriptionCancelled terms. */
|
|
21030
|
+
public terms: subscription.ITerm[];
|
|
21031
|
+
|
|
20900
21032
|
/**
|
|
20901
21033
|
* Creates a new SubscriptionCancelled instance using the specified properties.
|
|
20902
21034
|
* @param [properties] Properties to set
|
|
@@ -21009,6 +21141,9 @@ export interface ISubscriptionRenewed {
|
|
|
21009
21141
|
|
|
21010
21142
|
/** SubscriptionRenewed renewalCount */
|
|
21011
21143
|
renewalCount?: (number|Long|null);
|
|
21144
|
+
|
|
21145
|
+
/** SubscriptionRenewed terms */
|
|
21146
|
+
terms?: (subscription.ITerm[]|null);
|
|
21012
21147
|
}
|
|
21013
21148
|
|
|
21014
21149
|
/** Represents a SubscriptionRenewed. */
|
|
@@ -21059,6 +21194,9 @@ export class SubscriptionRenewed implements ISubscriptionRenewed {
|
|
|
21059
21194
|
/** SubscriptionRenewed renewalCount. */
|
|
21060
21195
|
public renewalCount: (number|Long);
|
|
21061
21196
|
|
|
21197
|
+
/** SubscriptionRenewed terms. */
|
|
21198
|
+
public terms: subscription.ITerm[];
|
|
21199
|
+
|
|
21062
21200
|
/**
|
|
21063
21201
|
* Creates a new SubscriptionRenewed instance using the specified properties.
|
|
21064
21202
|
* @param [properties] Properties to set
|
|
@@ -21537,6 +21675,9 @@ export interface ISubscriptionGraced {
|
|
|
21537
21675
|
|
|
21538
21676
|
/** SubscriptionGraced renewalCount */
|
|
21539
21677
|
renewalCount?: (number|Long|null);
|
|
21678
|
+
|
|
21679
|
+
/** SubscriptionGraced terms */
|
|
21680
|
+
terms?: (subscription.ITerm[]|null);
|
|
21540
21681
|
}
|
|
21541
21682
|
|
|
21542
21683
|
/** Represents a SubscriptionGraced. */
|
|
@@ -21587,6 +21728,9 @@ export class SubscriptionGraced implements ISubscriptionGraced {
|
|
|
21587
21728
|
/** SubscriptionGraced renewalCount. */
|
|
21588
21729
|
public renewalCount: (number|Long);
|
|
21589
21730
|
|
|
21731
|
+
/** SubscriptionGraced terms. */
|
|
21732
|
+
public terms: subscription.ITerm[];
|
|
21733
|
+
|
|
21590
21734
|
/**
|
|
21591
21735
|
* Creates a new SubscriptionGraced instance using the specified properties.
|
|
21592
21736
|
* @param [properties] Properties to set
|
|
@@ -21699,6 +21843,9 @@ export interface ISubscriptionStarted {
|
|
|
21699
21843
|
|
|
21700
21844
|
/** SubscriptionStarted id */
|
|
21701
21845
|
id?: (number|null);
|
|
21846
|
+
|
|
21847
|
+
/** SubscriptionStarted terms */
|
|
21848
|
+
terms?: (subscription.ITerm[]|null);
|
|
21702
21849
|
}
|
|
21703
21850
|
|
|
21704
21851
|
/** Represents a SubscriptionStarted. */
|
|
@@ -21749,6 +21896,9 @@ export class SubscriptionStarted implements ISubscriptionStarted {
|
|
|
21749
21896
|
/** SubscriptionStarted id. */
|
|
21750
21897
|
public id: number;
|
|
21751
21898
|
|
|
21899
|
+
/** SubscriptionStarted terms. */
|
|
21900
|
+
public terms: subscription.ITerm[];
|
|
21901
|
+
|
|
21752
21902
|
/**
|
|
21753
21903
|
* Creates a new SubscriptionStarted instance using the specified properties.
|
|
21754
21904
|
* @param [properties] Properties to set
|
|
@@ -21864,6 +22014,9 @@ export interface ISubscriptionEnded {
|
|
|
21864
22014
|
|
|
21865
22015
|
/** SubscriptionEnded id */
|
|
21866
22016
|
id?: (number|null);
|
|
22017
|
+
|
|
22018
|
+
/** SubscriptionEnded terms */
|
|
22019
|
+
terms?: (subscription.ITerm[]|null);
|
|
21867
22020
|
}
|
|
21868
22021
|
|
|
21869
22022
|
/** Represents a SubscriptionEnded. */
|
|
@@ -21917,6 +22070,9 @@ export class SubscriptionEnded implements ISubscriptionEnded {
|
|
|
21917
22070
|
/** SubscriptionEnded id. */
|
|
21918
22071
|
public id: number;
|
|
21919
22072
|
|
|
22073
|
+
/** SubscriptionEnded terms. */
|
|
22074
|
+
public terms: subscription.ITerm[];
|
|
22075
|
+
|
|
21920
22076
|
/**
|
|
21921
22077
|
* Creates a new SubscriptionEnded instance using the specified properties.
|
|
21922
22078
|
* @param [properties] Properties to set
|
|
@@ -22029,6 +22185,9 @@ export interface ISubscriptionRecovered {
|
|
|
22029
22185
|
|
|
22030
22186
|
/** SubscriptionRecovered id */
|
|
22031
22187
|
id?: (number|null);
|
|
22188
|
+
|
|
22189
|
+
/** SubscriptionRecovered terms */
|
|
22190
|
+
terms?: (subscription.ITerm[]|null);
|
|
22032
22191
|
}
|
|
22033
22192
|
|
|
22034
22193
|
/** Represents a SubscriptionRecovered. */
|
|
@@ -22079,6 +22238,9 @@ export class SubscriptionRecovered implements ISubscriptionRecovered {
|
|
|
22079
22238
|
/** SubscriptionRecovered id. */
|
|
22080
22239
|
public id: number;
|
|
22081
22240
|
|
|
22241
|
+
/** SubscriptionRecovered terms. */
|
|
22242
|
+
public terms: subscription.ITerm[];
|
|
22243
|
+
|
|
22082
22244
|
/**
|
|
22083
22245
|
* Creates a new SubscriptionRecovered instance using the specified properties.
|
|
22084
22246
|
* @param [properties] Properties to set
|