@headspace/protos-events 1.38.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 -204
- package/lib/index.js +577 -484
- 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,210 +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 activityVariationId */
|
|
2105
|
-
activityVariationId?: (number|null);
|
|
2106
|
-
|
|
2107
|
-
/** CompletedActivity completedAt */
|
|
2108
|
-
completedAt?: (string|null);
|
|
2109
|
-
}
|
|
2110
|
-
|
|
2111
|
-
/** Represents a CompletedActivity. */
|
|
2112
|
-
export class CompletedActivity implements ICompletedActivity {
|
|
2113
|
-
|
|
2114
|
-
/**
|
|
2115
|
-
* Constructs a new CompletedActivity.
|
|
2116
|
-
* @param [properties] Properties to set
|
|
2117
|
-
*/
|
|
2118
|
-
constructor(properties?: ICompletedActivity);
|
|
2119
|
-
|
|
2120
|
-
/** CompletedActivity userId. */
|
|
2121
|
-
public userId: string;
|
|
2122
|
-
|
|
2123
|
-
/** CompletedActivity duration. */
|
|
2124
|
-
public duration: number;
|
|
2125
|
-
|
|
2126
|
-
/** CompletedActivity activityId. */
|
|
2127
|
-
public activityId: number;
|
|
2128
|
-
|
|
2129
|
-
/** CompletedActivity activityVariationId. */
|
|
2130
|
-
public activityVariationId: number;
|
|
2131
|
-
|
|
2132
|
-
/** CompletedActivity completedAt. */
|
|
2133
|
-
public completedAt: string;
|
|
2134
|
-
|
|
2135
|
-
/**
|
|
2136
|
-
* Creates a new CompletedActivity instance using the specified properties.
|
|
2137
|
-
* @param [properties] Properties to set
|
|
2138
|
-
* @returns CompletedActivity instance
|
|
2139
|
-
*/
|
|
2140
|
-
public static create(properties?: ICompletedActivity): CompletedActivity;
|
|
2141
|
-
|
|
2142
|
-
/**
|
|
2143
|
-
* Encodes the specified CompletedActivity message. Does not implicitly {@link CompletedActivity.verify|verify} messages.
|
|
2144
|
-
* @param message CompletedActivity message or plain object to encode
|
|
2145
|
-
* @param [writer] Writer to encode to
|
|
2146
|
-
* @returns Writer
|
|
2147
|
-
*/
|
|
2148
|
-
public static encode(message: ICompletedActivity, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2149
|
-
|
|
2150
|
-
/**
|
|
2151
|
-
* Encodes the specified CompletedActivity message, length delimited. Does not implicitly {@link CompletedActivity.verify|verify} messages.
|
|
2152
|
-
* @param message CompletedActivity message or plain object to encode
|
|
2153
|
-
* @param [writer] Writer to encode to
|
|
2154
|
-
* @returns Writer
|
|
2155
|
-
*/
|
|
2156
|
-
public static encodeDelimited(message: ICompletedActivity, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2157
|
-
|
|
2158
|
-
/**
|
|
2159
|
-
* Decodes a CompletedActivity message from the specified reader or buffer.
|
|
2160
|
-
* @param reader Reader or buffer to decode from
|
|
2161
|
-
* @param [length] Message length if known beforehand
|
|
2162
|
-
* @returns CompletedActivity
|
|
2163
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2164
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2165
|
-
*/
|
|
2166
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): CompletedActivity;
|
|
2167
|
-
|
|
2168
|
-
/**
|
|
2169
|
-
* Decodes a CompletedActivity message from the specified reader or buffer, length delimited.
|
|
2170
|
-
* @param reader Reader or buffer to decode from
|
|
2171
|
-
* @returns CompletedActivity
|
|
2172
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2173
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2174
|
-
*/
|
|
2175
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): CompletedActivity;
|
|
2176
|
-
|
|
2177
|
-
/**
|
|
2178
|
-
* Verifies a CompletedActivity message.
|
|
2179
|
-
* @param message Plain object to verify
|
|
2180
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
|
2181
|
-
*/
|
|
2182
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
|
2183
|
-
|
|
2184
|
-
/**
|
|
2185
|
-
* Creates a CompletedActivity message from a plain object. Also converts values to their respective internal types.
|
|
2186
|
-
* @param object Plain object
|
|
2187
|
-
* @returns CompletedActivity
|
|
2188
|
-
*/
|
|
2189
|
-
public static fromObject(object: { [k: string]: any }): CompletedActivity;
|
|
2190
|
-
|
|
2191
|
-
/**
|
|
2192
|
-
* Creates a plain object from a CompletedActivity message. Also converts values to other types if specified.
|
|
2193
|
-
* @param message CompletedActivity
|
|
2194
|
-
* @param [options] Conversion options
|
|
2195
|
-
* @returns Plain object
|
|
2196
|
-
*/
|
|
2197
|
-
public static toObject(message: CompletedActivity, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
2198
|
-
|
|
2199
|
-
/**
|
|
2200
|
-
* Converts this CompletedActivity to JSON.
|
|
2201
|
-
* @returns JSON object
|
|
2202
|
-
*/
|
|
2203
|
-
public toJSON(): { [k: string]: any };
|
|
2204
|
-
}
|
|
2205
|
-
|
|
2206
|
-
/** Properties of a CompletedActivities. */
|
|
2207
|
-
export interface ICompletedActivities {
|
|
2208
|
-
|
|
2209
|
-
/** CompletedActivities activities */
|
|
2210
|
-
activities?: (ICompletedActivity[]|null);
|
|
2211
|
-
}
|
|
2212
|
-
|
|
2213
|
-
/** Represents a CompletedActivities. */
|
|
2214
|
-
export class CompletedActivities implements ICompletedActivities {
|
|
2215
|
-
|
|
2216
|
-
/**
|
|
2217
|
-
* Constructs a new CompletedActivities.
|
|
2218
|
-
* @param [properties] Properties to set
|
|
2219
|
-
*/
|
|
2220
|
-
constructor(properties?: ICompletedActivities);
|
|
2221
|
-
|
|
2222
|
-
/** CompletedActivities activities. */
|
|
2223
|
-
public activities: ICompletedActivity[];
|
|
2224
|
-
|
|
2225
|
-
/**
|
|
2226
|
-
* Creates a new CompletedActivities instance using the specified properties.
|
|
2227
|
-
* @param [properties] Properties to set
|
|
2228
|
-
* @returns CompletedActivities instance
|
|
2229
|
-
*/
|
|
2230
|
-
public static create(properties?: ICompletedActivities): CompletedActivities;
|
|
2231
|
-
|
|
2232
|
-
/**
|
|
2233
|
-
* Encodes the specified CompletedActivities message. Does not implicitly {@link CompletedActivities.verify|verify} messages.
|
|
2234
|
-
* @param message CompletedActivities message or plain object to encode
|
|
2235
|
-
* @param [writer] Writer to encode to
|
|
2236
|
-
* @returns Writer
|
|
2237
|
-
*/
|
|
2238
|
-
public static encode(message: ICompletedActivities, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2239
|
-
|
|
2240
|
-
/**
|
|
2241
|
-
* Encodes the specified CompletedActivities message, length delimited. Does not implicitly {@link CompletedActivities.verify|verify} messages.
|
|
2242
|
-
* @param message CompletedActivities message or plain object to encode
|
|
2243
|
-
* @param [writer] Writer to encode to
|
|
2244
|
-
* @returns Writer
|
|
2245
|
-
*/
|
|
2246
|
-
public static encodeDelimited(message: ICompletedActivities, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2247
|
-
|
|
2248
|
-
/**
|
|
2249
|
-
* Decodes a CompletedActivities message from the specified reader or buffer.
|
|
2250
|
-
* @param reader Reader or buffer to decode from
|
|
2251
|
-
* @param [length] Message length if known beforehand
|
|
2252
|
-
* @returns CompletedActivities
|
|
2253
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2254
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2255
|
-
*/
|
|
2256
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): CompletedActivities;
|
|
2257
|
-
|
|
2258
|
-
/**
|
|
2259
|
-
* Decodes a CompletedActivities message from the specified reader or buffer, length delimited.
|
|
2260
|
-
* @param reader Reader or buffer to decode from
|
|
2261
|
-
* @returns CompletedActivities
|
|
2262
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2263
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2264
|
-
*/
|
|
2265
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): CompletedActivities;
|
|
2266
|
-
|
|
2267
|
-
/**
|
|
2268
|
-
* Verifies a CompletedActivities message.
|
|
2269
|
-
* @param message Plain object to verify
|
|
2270
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
|
2271
|
-
*/
|
|
2272
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
|
2273
|
-
|
|
2274
|
-
/**
|
|
2275
|
-
* Creates a CompletedActivities message from a plain object. Also converts values to their respective internal types.
|
|
2276
|
-
* @param object Plain object
|
|
2277
|
-
* @returns CompletedActivities
|
|
2278
|
-
*/
|
|
2279
|
-
public static fromObject(object: { [k: string]: any }): CompletedActivities;
|
|
2280
|
-
|
|
2281
|
-
/**
|
|
2282
|
-
* Creates a plain object from a CompletedActivities message. Also converts values to other types if specified.
|
|
2283
|
-
* @param message CompletedActivities
|
|
2284
|
-
* @param [options] Conversion options
|
|
2285
|
-
* @returns Plain object
|
|
2286
|
-
*/
|
|
2287
|
-
public static toObject(message: CompletedActivities, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
2288
|
-
|
|
2289
|
-
/**
|
|
2290
|
-
* Converts this CompletedActivities to JSON.
|
|
2291
|
-
* @returns JSON object
|
|
2292
|
-
*/
|
|
2293
|
-
public toJSON(): { [k: string]: any };
|
|
2294
|
-
}
|
|
2295
|
-
|
|
2296
2102
|
/** Properties of a ContentPlayed. */
|
|
2297
2103
|
export interface IContentPlayed {
|
|
2298
2104
|
|
|
@@ -3582,6 +3388,21 @@ export interface ISubscriptionCreated {
|
|
|
3582
3388
|
|
|
3583
3389
|
/** SubscriptionCreated userId */
|
|
3584
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);
|
|
3585
3406
|
}
|
|
3586
3407
|
|
|
3587
3408
|
/** Represents a SubscriptionCreated. */
|
|
@@ -3602,6 +3423,21 @@ export class SubscriptionCreated implements ISubscriptionCreated {
|
|
|
3602
3423
|
/** SubscriptionCreated userId. */
|
|
3603
3424
|
public userId: string;
|
|
3604
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
|
+
|
|
3605
3441
|
/**
|
|
3606
3442
|
* Creates a new SubscriptionCreated instance using the specified properties.
|
|
3607
3443
|
* @param [properties] Properties to set
|
|
@@ -3687,6 +3523,21 @@ export interface ISubscriptionCancelled {
|
|
|
3687
3523
|
|
|
3688
3524
|
/** SubscriptionCancelled paymentMethod */
|
|
3689
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);
|
|
3690
3541
|
}
|
|
3691
3542
|
|
|
3692
3543
|
/** Represents a SubscriptionCancelled. */
|
|
@@ -3710,6 +3561,21 @@ export class SubscriptionCancelled implements ISubscriptionCancelled {
|
|
|
3710
3561
|
/** SubscriptionCancelled paymentMethod. */
|
|
3711
3562
|
public paymentMethod?: (subscription.IPaymentMethod|null);
|
|
3712
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
|
+
|
|
3713
3579
|
/**
|
|
3714
3580
|
* Creates a new SubscriptionCancelled instance using the specified properties.
|
|
3715
3581
|
* @param [properties] Properties to set
|
|
@@ -3792,6 +3658,21 @@ export interface ISubscriptionRenewed {
|
|
|
3792
3658
|
|
|
3793
3659
|
/** SubscriptionRenewed userId */
|
|
3794
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);
|
|
3795
3676
|
}
|
|
3796
3677
|
|
|
3797
3678
|
/** Represents a SubscriptionRenewed. */
|
|
@@ -3812,6 +3693,21 @@ export class SubscriptionRenewed implements ISubscriptionRenewed {
|
|
|
3812
3693
|
/** SubscriptionRenewed userId. */
|
|
3813
3694
|
public userId: string;
|
|
3814
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
|
+
|
|
3815
3711
|
/**
|
|
3816
3712
|
* Creates a new SubscriptionRenewed instance using the specified properties.
|
|
3817
3713
|
* @param [properties] Properties to set
|