@headspace/protos-events 1.39.0 → 1.40.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 +204 -100
  2. package/lib/index.js +484 -577
  3. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -1132,16 +1132,6 @@ 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
- }
1145
1135
  }
1146
1136
 
1147
1137
  /** Namespace com. */
@@ -2099,6 +2089,210 @@ export namespace com {
2099
2089
  }
2100
2090
  }
2101
2091
 
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 completedAtIsoDate */
2108
+ completedAtIsoDate?: (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 completedAtIsoDate. */
2133
+ public completedAtIsoDate: 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
+
2102
2296
  /** Properties of a ContentPlayed. */
2103
2297
  export interface IContentPlayed {
2104
2298
 
@@ -3388,21 +3582,6 @@ export interface ISubscriptionCreated {
3388
3582
 
3389
3583
  /** SubscriptionCreated userId */
3390
3584
  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);
3406
3585
  }
3407
3586
 
3408
3587
  /** Represents a SubscriptionCreated. */
@@ -3423,21 +3602,6 @@ export class SubscriptionCreated implements ISubscriptionCreated {
3423
3602
  /** SubscriptionCreated userId. */
3424
3603
  public userId: string;
3425
3604
 
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
-
3441
3605
  /**
3442
3606
  * Creates a new SubscriptionCreated instance using the specified properties.
3443
3607
  * @param [properties] Properties to set
@@ -3523,21 +3687,6 @@ export interface ISubscriptionCancelled {
3523
3687
 
3524
3688
  /** SubscriptionCancelled paymentMethod */
3525
3689
  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);
3541
3690
  }
3542
3691
 
3543
3692
  /** Represents a SubscriptionCancelled. */
@@ -3561,21 +3710,6 @@ export class SubscriptionCancelled implements ISubscriptionCancelled {
3561
3710
  /** SubscriptionCancelled paymentMethod. */
3562
3711
  public paymentMethod?: (subscription.IPaymentMethod|null);
3563
3712
 
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
-
3579
3713
  /**
3580
3714
  * Creates a new SubscriptionCancelled instance using the specified properties.
3581
3715
  * @param [properties] Properties to set
@@ -3658,21 +3792,6 @@ export interface ISubscriptionRenewed {
3658
3792
 
3659
3793
  /** SubscriptionRenewed userId */
3660
3794
  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);
3676
3795
  }
3677
3796
 
3678
3797
  /** Represents a SubscriptionRenewed. */
@@ -3693,21 +3812,6 @@ export class SubscriptionRenewed implements ISubscriptionRenewed {
3693
3812
  /** SubscriptionRenewed userId. */
3694
3813
  public userId: string;
3695
3814
 
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
-
3711
3815
  /**
3712
3816
  * Creates a new SubscriptionRenewed instance using the specified properties.
3713
3817
  * @param [properties] Properties to set