@headspace/protos-events 1.37.0 → 1.39.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 +100 -198
- package/lib/index.js +577 -462
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1132,6 +1132,16 @@ export namespace subscription {
|
|
|
1132
1132
|
PRIMARY = 0,
|
|
1133
1133
|
MEMBER = 1
|
|
1134
1134
|
}
|
|
1135
|
+
|
|
1136
|
+
/** SubscriptionPlatform enum. */
|
|
1137
|
+
enum SubscriptionPlatform {
|
|
1138
|
+
PLATFORM_UNKNOWN = 0,
|
|
1139
|
+
ITUNES = 1,
|
|
1140
|
+
PLAY_STORE = 2,
|
|
1141
|
+
ZUORA = 3,
|
|
1142
|
+
HEADSPACE = 4,
|
|
1143
|
+
SPOTIFY = 5
|
|
1144
|
+
}
|
|
1135
1145
|
}
|
|
1136
1146
|
|
|
1137
1147
|
/** Namespace com. */
|
|
@@ -2089,204 +2099,6 @@ export namespace com {
|
|
|
2089
2099
|
}
|
|
2090
2100
|
}
|
|
2091
2101
|
|
|
2092
|
-
/** Properties of a CompletedActivity. */
|
|
2093
|
-
export interface ICompletedActivity {
|
|
2094
|
-
|
|
2095
|
-
/** CompletedActivity userId */
|
|
2096
|
-
userId?: (string|null);
|
|
2097
|
-
|
|
2098
|
-
/** CompletedActivity duration */
|
|
2099
|
-
duration?: (number|null);
|
|
2100
|
-
|
|
2101
|
-
/** CompletedActivity activityId */
|
|
2102
|
-
activityId?: (number|null);
|
|
2103
|
-
|
|
2104
|
-
/** CompletedActivity completedAt */
|
|
2105
|
-
completedAt?: (string|null);
|
|
2106
|
-
}
|
|
2107
|
-
|
|
2108
|
-
/** Represents a CompletedActivity. */
|
|
2109
|
-
export class CompletedActivity implements ICompletedActivity {
|
|
2110
|
-
|
|
2111
|
-
/**
|
|
2112
|
-
* Constructs a new CompletedActivity.
|
|
2113
|
-
* @param [properties] Properties to set
|
|
2114
|
-
*/
|
|
2115
|
-
constructor(properties?: ICompletedActivity);
|
|
2116
|
-
|
|
2117
|
-
/** CompletedActivity userId. */
|
|
2118
|
-
public userId: string;
|
|
2119
|
-
|
|
2120
|
-
/** CompletedActivity duration. */
|
|
2121
|
-
public duration: number;
|
|
2122
|
-
|
|
2123
|
-
/** CompletedActivity activityId. */
|
|
2124
|
-
public activityId: number;
|
|
2125
|
-
|
|
2126
|
-
/** CompletedActivity completedAt. */
|
|
2127
|
-
public completedAt: string;
|
|
2128
|
-
|
|
2129
|
-
/**
|
|
2130
|
-
* Creates a new CompletedActivity instance using the specified properties.
|
|
2131
|
-
* @param [properties] Properties to set
|
|
2132
|
-
* @returns CompletedActivity instance
|
|
2133
|
-
*/
|
|
2134
|
-
public static create(properties?: ICompletedActivity): CompletedActivity;
|
|
2135
|
-
|
|
2136
|
-
/**
|
|
2137
|
-
* Encodes the specified CompletedActivity message. Does not implicitly {@link CompletedActivity.verify|verify} messages.
|
|
2138
|
-
* @param message CompletedActivity message or plain object to encode
|
|
2139
|
-
* @param [writer] Writer to encode to
|
|
2140
|
-
* @returns Writer
|
|
2141
|
-
*/
|
|
2142
|
-
public static encode(message: ICompletedActivity, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2143
|
-
|
|
2144
|
-
/**
|
|
2145
|
-
* Encodes the specified CompletedActivity message, length delimited. Does not implicitly {@link CompletedActivity.verify|verify} messages.
|
|
2146
|
-
* @param message CompletedActivity message or plain object to encode
|
|
2147
|
-
* @param [writer] Writer to encode to
|
|
2148
|
-
* @returns Writer
|
|
2149
|
-
*/
|
|
2150
|
-
public static encodeDelimited(message: ICompletedActivity, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2151
|
-
|
|
2152
|
-
/**
|
|
2153
|
-
* Decodes a CompletedActivity message from the specified reader or buffer.
|
|
2154
|
-
* @param reader Reader or buffer to decode from
|
|
2155
|
-
* @param [length] Message length if known beforehand
|
|
2156
|
-
* @returns CompletedActivity
|
|
2157
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2158
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2159
|
-
*/
|
|
2160
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): CompletedActivity;
|
|
2161
|
-
|
|
2162
|
-
/**
|
|
2163
|
-
* Decodes a CompletedActivity message from the specified reader or buffer, length delimited.
|
|
2164
|
-
* @param reader Reader or buffer to decode from
|
|
2165
|
-
* @returns CompletedActivity
|
|
2166
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2167
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2168
|
-
*/
|
|
2169
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): CompletedActivity;
|
|
2170
|
-
|
|
2171
|
-
/**
|
|
2172
|
-
* Verifies a CompletedActivity message.
|
|
2173
|
-
* @param message Plain object to verify
|
|
2174
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
|
2175
|
-
*/
|
|
2176
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
|
2177
|
-
|
|
2178
|
-
/**
|
|
2179
|
-
* Creates a CompletedActivity message from a plain object. Also converts values to their respective internal types.
|
|
2180
|
-
* @param object Plain object
|
|
2181
|
-
* @returns CompletedActivity
|
|
2182
|
-
*/
|
|
2183
|
-
public static fromObject(object: { [k: string]: any }): CompletedActivity;
|
|
2184
|
-
|
|
2185
|
-
/**
|
|
2186
|
-
* Creates a plain object from a CompletedActivity message. Also converts values to other types if specified.
|
|
2187
|
-
* @param message CompletedActivity
|
|
2188
|
-
* @param [options] Conversion options
|
|
2189
|
-
* @returns Plain object
|
|
2190
|
-
*/
|
|
2191
|
-
public static toObject(message: CompletedActivity, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
2192
|
-
|
|
2193
|
-
/**
|
|
2194
|
-
* Converts this CompletedActivity to JSON.
|
|
2195
|
-
* @returns JSON object
|
|
2196
|
-
*/
|
|
2197
|
-
public toJSON(): { [k: string]: any };
|
|
2198
|
-
}
|
|
2199
|
-
|
|
2200
|
-
/** Properties of a CompletedActivities. */
|
|
2201
|
-
export interface ICompletedActivities {
|
|
2202
|
-
|
|
2203
|
-
/** CompletedActivities activities */
|
|
2204
|
-
activities?: (ICompletedActivity[]|null);
|
|
2205
|
-
}
|
|
2206
|
-
|
|
2207
|
-
/** Represents a CompletedActivities. */
|
|
2208
|
-
export class CompletedActivities implements ICompletedActivities {
|
|
2209
|
-
|
|
2210
|
-
/**
|
|
2211
|
-
* Constructs a new CompletedActivities.
|
|
2212
|
-
* @param [properties] Properties to set
|
|
2213
|
-
*/
|
|
2214
|
-
constructor(properties?: ICompletedActivities);
|
|
2215
|
-
|
|
2216
|
-
/** CompletedActivities activities. */
|
|
2217
|
-
public activities: ICompletedActivity[];
|
|
2218
|
-
|
|
2219
|
-
/**
|
|
2220
|
-
* Creates a new CompletedActivities instance using the specified properties.
|
|
2221
|
-
* @param [properties] Properties to set
|
|
2222
|
-
* @returns CompletedActivities instance
|
|
2223
|
-
*/
|
|
2224
|
-
public static create(properties?: ICompletedActivities): CompletedActivities;
|
|
2225
|
-
|
|
2226
|
-
/**
|
|
2227
|
-
* Encodes the specified CompletedActivities message. Does not implicitly {@link CompletedActivities.verify|verify} messages.
|
|
2228
|
-
* @param message CompletedActivities message or plain object to encode
|
|
2229
|
-
* @param [writer] Writer to encode to
|
|
2230
|
-
* @returns Writer
|
|
2231
|
-
*/
|
|
2232
|
-
public static encode(message: ICompletedActivities, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2233
|
-
|
|
2234
|
-
/**
|
|
2235
|
-
* Encodes the specified CompletedActivities message, length delimited. Does not implicitly {@link CompletedActivities.verify|verify} messages.
|
|
2236
|
-
* @param message CompletedActivities message or plain object to encode
|
|
2237
|
-
* @param [writer] Writer to encode to
|
|
2238
|
-
* @returns Writer
|
|
2239
|
-
*/
|
|
2240
|
-
public static encodeDelimited(message: ICompletedActivities, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2241
|
-
|
|
2242
|
-
/**
|
|
2243
|
-
* Decodes a CompletedActivities message from the specified reader or buffer.
|
|
2244
|
-
* @param reader Reader or buffer to decode from
|
|
2245
|
-
* @param [length] Message length if known beforehand
|
|
2246
|
-
* @returns CompletedActivities
|
|
2247
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2248
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2249
|
-
*/
|
|
2250
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): CompletedActivities;
|
|
2251
|
-
|
|
2252
|
-
/**
|
|
2253
|
-
* Decodes a CompletedActivities message from the specified reader or buffer, length delimited.
|
|
2254
|
-
* @param reader Reader or buffer to decode from
|
|
2255
|
-
* @returns CompletedActivities
|
|
2256
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2257
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2258
|
-
*/
|
|
2259
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): CompletedActivities;
|
|
2260
|
-
|
|
2261
|
-
/**
|
|
2262
|
-
* Verifies a CompletedActivities message.
|
|
2263
|
-
* @param message Plain object to verify
|
|
2264
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
|
2265
|
-
*/
|
|
2266
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
|
2267
|
-
|
|
2268
|
-
/**
|
|
2269
|
-
* Creates a CompletedActivities message from a plain object. Also converts values to their respective internal types.
|
|
2270
|
-
* @param object Plain object
|
|
2271
|
-
* @returns CompletedActivities
|
|
2272
|
-
*/
|
|
2273
|
-
public static fromObject(object: { [k: string]: any }): CompletedActivities;
|
|
2274
|
-
|
|
2275
|
-
/**
|
|
2276
|
-
* Creates a plain object from a CompletedActivities message. Also converts values to other types if specified.
|
|
2277
|
-
* @param message CompletedActivities
|
|
2278
|
-
* @param [options] Conversion options
|
|
2279
|
-
* @returns Plain object
|
|
2280
|
-
*/
|
|
2281
|
-
public static toObject(message: CompletedActivities, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
2282
|
-
|
|
2283
|
-
/**
|
|
2284
|
-
* Converts this CompletedActivities to JSON.
|
|
2285
|
-
* @returns JSON object
|
|
2286
|
-
*/
|
|
2287
|
-
public toJSON(): { [k: string]: any };
|
|
2288
|
-
}
|
|
2289
|
-
|
|
2290
2102
|
/** Properties of a ContentPlayed. */
|
|
2291
2103
|
export interface IContentPlayed {
|
|
2292
2104
|
|
|
@@ -3576,6 +3388,21 @@ export interface ISubscriptionCreated {
|
|
|
3576
3388
|
|
|
3577
3389
|
/** SubscriptionCreated userId */
|
|
3578
3390
|
userId?: (string|null);
|
|
3391
|
+
|
|
3392
|
+
/** SubscriptionCreated createdAt */
|
|
3393
|
+
createdAt?: (number|Long|null);
|
|
3394
|
+
|
|
3395
|
+
/** SubscriptionCreated startsAt */
|
|
3396
|
+
startsAt?: (number|Long|null);
|
|
3397
|
+
|
|
3398
|
+
/** SubscriptionCreated endsAt */
|
|
3399
|
+
endsAt?: (number|Long|null);
|
|
3400
|
+
|
|
3401
|
+
/** SubscriptionCreated voucherCode */
|
|
3402
|
+
voucherCode?: (string|null);
|
|
3403
|
+
|
|
3404
|
+
/** SubscriptionCreated platform */
|
|
3405
|
+
platform?: (subscription.SubscriptionPlatform|null);
|
|
3579
3406
|
}
|
|
3580
3407
|
|
|
3581
3408
|
/** Represents a SubscriptionCreated. */
|
|
@@ -3596,6 +3423,21 @@ export class SubscriptionCreated implements ISubscriptionCreated {
|
|
|
3596
3423
|
/** SubscriptionCreated userId. */
|
|
3597
3424
|
public userId: string;
|
|
3598
3425
|
|
|
3426
|
+
/** SubscriptionCreated createdAt. */
|
|
3427
|
+
public createdAt: (number|Long);
|
|
3428
|
+
|
|
3429
|
+
/** SubscriptionCreated startsAt. */
|
|
3430
|
+
public startsAt: (number|Long);
|
|
3431
|
+
|
|
3432
|
+
/** SubscriptionCreated endsAt. */
|
|
3433
|
+
public endsAt: (number|Long);
|
|
3434
|
+
|
|
3435
|
+
/** SubscriptionCreated voucherCode. */
|
|
3436
|
+
public voucherCode: string;
|
|
3437
|
+
|
|
3438
|
+
/** SubscriptionCreated platform. */
|
|
3439
|
+
public platform: subscription.SubscriptionPlatform;
|
|
3440
|
+
|
|
3599
3441
|
/**
|
|
3600
3442
|
* Creates a new SubscriptionCreated instance using the specified properties.
|
|
3601
3443
|
* @param [properties] Properties to set
|
|
@@ -3681,6 +3523,21 @@ export interface ISubscriptionCancelled {
|
|
|
3681
3523
|
|
|
3682
3524
|
/** SubscriptionCancelled paymentMethod */
|
|
3683
3525
|
paymentMethod?: (subscription.IPaymentMethod|null);
|
|
3526
|
+
|
|
3527
|
+
/** SubscriptionCancelled createdAt */
|
|
3528
|
+
createdAt?: (number|Long|null);
|
|
3529
|
+
|
|
3530
|
+
/** SubscriptionCancelled startsAt */
|
|
3531
|
+
startsAt?: (number|Long|null);
|
|
3532
|
+
|
|
3533
|
+
/** SubscriptionCancelled endsAt */
|
|
3534
|
+
endsAt?: (number|Long|null);
|
|
3535
|
+
|
|
3536
|
+
/** SubscriptionCancelled voucherCode */
|
|
3537
|
+
voucherCode?: (string|null);
|
|
3538
|
+
|
|
3539
|
+
/** SubscriptionCancelled platform */
|
|
3540
|
+
platform?: (subscription.SubscriptionPlatform|null);
|
|
3684
3541
|
}
|
|
3685
3542
|
|
|
3686
3543
|
/** Represents a SubscriptionCancelled. */
|
|
@@ -3704,6 +3561,21 @@ export class SubscriptionCancelled implements ISubscriptionCancelled {
|
|
|
3704
3561
|
/** SubscriptionCancelled paymentMethod. */
|
|
3705
3562
|
public paymentMethod?: (subscription.IPaymentMethod|null);
|
|
3706
3563
|
|
|
3564
|
+
/** SubscriptionCancelled createdAt. */
|
|
3565
|
+
public createdAt: (number|Long);
|
|
3566
|
+
|
|
3567
|
+
/** SubscriptionCancelled startsAt. */
|
|
3568
|
+
public startsAt: (number|Long);
|
|
3569
|
+
|
|
3570
|
+
/** SubscriptionCancelled endsAt. */
|
|
3571
|
+
public endsAt: (number|Long);
|
|
3572
|
+
|
|
3573
|
+
/** SubscriptionCancelled voucherCode. */
|
|
3574
|
+
public voucherCode: string;
|
|
3575
|
+
|
|
3576
|
+
/** SubscriptionCancelled platform. */
|
|
3577
|
+
public platform: subscription.SubscriptionPlatform;
|
|
3578
|
+
|
|
3707
3579
|
/**
|
|
3708
3580
|
* Creates a new SubscriptionCancelled instance using the specified properties.
|
|
3709
3581
|
* @param [properties] Properties to set
|
|
@@ -3786,6 +3658,21 @@ export interface ISubscriptionRenewed {
|
|
|
3786
3658
|
|
|
3787
3659
|
/** SubscriptionRenewed userId */
|
|
3788
3660
|
userId?: (string|null);
|
|
3661
|
+
|
|
3662
|
+
/** SubscriptionRenewed createdAt */
|
|
3663
|
+
createdAt?: (number|Long|null);
|
|
3664
|
+
|
|
3665
|
+
/** SubscriptionRenewed startsAt */
|
|
3666
|
+
startsAt?: (number|Long|null);
|
|
3667
|
+
|
|
3668
|
+
/** SubscriptionRenewed endsAt */
|
|
3669
|
+
endsAt?: (number|Long|null);
|
|
3670
|
+
|
|
3671
|
+
/** SubscriptionRenewed voucherCode */
|
|
3672
|
+
voucherCode?: (string|null);
|
|
3673
|
+
|
|
3674
|
+
/** SubscriptionRenewed platform */
|
|
3675
|
+
platform?: (subscription.SubscriptionPlatform|null);
|
|
3789
3676
|
}
|
|
3790
3677
|
|
|
3791
3678
|
/** Represents a SubscriptionRenewed. */
|
|
@@ -3806,6 +3693,21 @@ export class SubscriptionRenewed implements ISubscriptionRenewed {
|
|
|
3806
3693
|
/** SubscriptionRenewed userId. */
|
|
3807
3694
|
public userId: string;
|
|
3808
3695
|
|
|
3696
|
+
/** SubscriptionRenewed createdAt. */
|
|
3697
|
+
public createdAt: (number|Long);
|
|
3698
|
+
|
|
3699
|
+
/** SubscriptionRenewed startsAt. */
|
|
3700
|
+
public startsAt: (number|Long);
|
|
3701
|
+
|
|
3702
|
+
/** SubscriptionRenewed endsAt. */
|
|
3703
|
+
public endsAt: (number|Long);
|
|
3704
|
+
|
|
3705
|
+
/** SubscriptionRenewed voucherCode. */
|
|
3706
|
+
public voucherCode: string;
|
|
3707
|
+
|
|
3708
|
+
/** SubscriptionRenewed platform. */
|
|
3709
|
+
public platform: subscription.SubscriptionPlatform;
|
|
3710
|
+
|
|
3809
3711
|
/**
|
|
3810
3712
|
* Creates a new SubscriptionRenewed instance using the specified properties.
|
|
3811
3713
|
* @param [properties] Properties to set
|