@pocketprep/types 1.14.34 → 1.14.36

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 (2) hide show
  1. package/Study/Class.d.ts +27 -0
  2. package/package.json +1 -1
package/Study/Class.d.ts CHANGED
@@ -259,6 +259,7 @@ export type License = Parse.Object<{
259
259
  'session-seconds': number
260
260
  }
261
261
  linkedLicenses?: License[]
262
+ lineItemId?: string // Used to connect with Hubspot Deal Line Items
262
263
  }>
263
264
 
264
265
  export type LicensePayload = Payload<License>
@@ -311,6 +312,31 @@ export type ReceiptSource = {
311
312
  Teach: 'Teach'
312
313
  }
313
314
 
315
+ export type CustomerWithAttributes = {
316
+ customer: {
317
+ id: string
318
+ identifiers: {
319
+ cio_id: string
320
+ id: string
321
+ }
322
+ attributes: {
323
+ _cio_subscription_preferences_computed?: string
324
+ created_at?: string
325
+ email?: string
326
+ cio_id?: string
327
+ id?: string
328
+ }
329
+ timestamps: Record<string, number>
330
+ unsubscribed: boolean
331
+ devices: unknown[]
332
+ }
333
+ }
334
+
335
+ export type CustomerIOBackup = Parse.Object<{
336
+ user: User | Parse.Pointer
337
+ customerWithAttributes: CustomerWithAttributes
338
+ }>
339
+
314
340
  export type UserWebConfig = {
315
341
  hasSeenOnboarding?: boolean
316
342
  hasSeenWelcomeModal?: boolean
@@ -358,6 +384,7 @@ export type User = Parse.User<{
358
384
  currentUserExamMetadata?: UserExamMetadata | Parse.Pointer
359
385
  currentExamGuid?: string // DEPRECATED
360
386
  currentApp?: string // DEPRECATED
387
+ customerIOBackup?: CustomerIOBackup | Parse.Pointer
361
388
  }>
362
389
 
363
390
  export type UserJSON = ReturnType<User['toJSON']>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/types",
3
- "version": "1.14.34",
3
+ "version": "1.14.36",
4
4
  "description": "Pocket Prep type declarations",
5
5
  "repository": {
6
6
  "type": "git",