@pocketprep/types 1.15.35 → 1.16.1

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/Study/Cloud.d.ts CHANGED
@@ -455,7 +455,7 @@ export type fetchUserDataV2 = (params: {
455
455
  }[]
456
456
  assignments: PrebuiltQuiz[]
457
457
  licenses: License[]
458
- conceptQuizzes: ConceptQuiz[]
458
+ conceptQuizzes?: ConceptQuiz[]
459
459
  userFlags: {
460
460
  assignmentsEnabled: boolean
461
461
  }
@@ -0,0 +1,66 @@
1
+ import { Study, Teach } from '../index'
2
+
3
+ export type supportCreateOrganization = (params: { orgName: string }) => Teach.Class.OrganizationJSON
4
+
5
+ export type supportFetchOrganizations = () => Teach.Class.OrganizationJSON[]
6
+
7
+ export type supportAddInstructor = (params: {
8
+ email: string
9
+ firstName: string
10
+ lastName: string
11
+ isAdmin: boolean
12
+ orgId: string
13
+ }) => Teach.Class.OrgInstructorJSON
14
+
15
+ export type supportAddGroup = (params: {
16
+ groupName: string
17
+ orgId: string
18
+ orgExamId: string
19
+ ownerId?: string
20
+ }) => Teach.Class.OrgGroupJSON
21
+
22
+ export type supportAddDemoStudents = (params: {
23
+ orgId: string
24
+ orgExamIds: string[]
25
+ numStudents: number
26
+ }) => Teach.Class.OrgStudentJSON[]
27
+
28
+ export type supportCreateDemoStudentActivity = (params: {
29
+ studentId: string
30
+ examGuid: string
31
+ version: string
32
+ examMetadataId?: string
33
+ }) => Study.Class.QuizJSON[]
34
+
35
+ export type createLicenses = (params: {
36
+ organizationId: string
37
+ examGuid: string
38
+ numLicenses: number
39
+ disableAdminNotification?: boolean
40
+ }) => Study.Class.LicenseJSON[]
41
+
42
+ export type updateLicenseExam = (
43
+ params: {
44
+ objectId: string
45
+ examGuid: string
46
+ appId: string
47
+ examName: string
48
+ }
49
+ ) => Study.Class.LicenseJSON
50
+
51
+ export type deleteLicense = (params: { licenseId: string }) => void
52
+
53
+ export type addExams = (params: {
54
+ exams: { examMetadataId: string; displayName: string }[]
55
+ organizationId: string
56
+ }) => Teach.Class.OrgExamJSON[]
57
+
58
+ export type archiveOrganization = (
59
+ params: {
60
+ organizationId: string
61
+ }
62
+ ) => Teach.Class.OrganizationJSON
63
+
64
+ export type createMagicToken = (params: {
65
+ email: string
66
+ }) => string
@@ -0,0 +1,3 @@
1
+ import * as Cloud from './Cloud'
2
+
3
+ export { Cloud }
package/index.d.ts CHANGED
@@ -2,12 +2,14 @@
2
2
  import * as Study from './Study'
3
3
  import * as CMS from './CMS'
4
4
  import * as Teach from './Teach'
5
+ import * as Support from './Support'
5
6
  import * as AI from './AI'
6
7
 
7
8
  export {
8
9
  Study,
9
10
  CMS,
10
11
  Teach,
12
+ Support,
11
13
  AI,
12
14
  }
13
15
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/types",
3
- "version": "1.15.35",
3
+ "version": "1.16.1",
4
4
  "description": "Pocket Prep type declarations",
5
5
  "repository": {
6
6
  "type": "git",
package/tsconfig.json CHANGED
@@ -18,7 +18,6 @@
18
18
  "forceConsistentCasingInFileNames": true
19
19
  },
20
20
  "files": [
21
- "index.d.ts",
22
- "type-tests.ts"
21
+ "index.d.ts"
23
22
  ]
24
23
  }