@pocketprep/types 1.13.9 → 1.13.11
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 +6 -1
- package/Teach/Class.d.ts +19 -0
- package/package.json +1 -1
package/Study/Cloud.d.ts
CHANGED
|
@@ -376,7 +376,12 @@ export type onboardingCompleted = (params: {
|
|
|
376
376
|
|
|
377
377
|
export type activateLicense = (params: { licenseKey: string }) => Subscription
|
|
378
378
|
|
|
379
|
-
export type
|
|
379
|
+
export type TLicenseSource = 'Web' | 'WebMarketing' | 'Android' | 'iOS' | 'Teach' | 'SSO' | 'unknown'
|
|
380
|
+
export type activateLicenseV2 = (params: {
|
|
381
|
+
licenseKey: string
|
|
382
|
+
platform?: TLicenseSource
|
|
383
|
+
})
|
|
384
|
+
=> { license: License; subscription: Subscription }[]
|
|
380
385
|
|
|
381
386
|
export type validateLicense = (params: { licenseKey: string }) => License
|
|
382
387
|
|
package/Teach/Class.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export type OrgGroup = Parse.Object<{
|
|
|
16
16
|
orgStudents: OrgStudent[]
|
|
17
17
|
owner?: OrgInstructor
|
|
18
18
|
isPubliclyEditable: boolean
|
|
19
|
+
lmsCourseId?: string
|
|
19
20
|
}>
|
|
20
21
|
export type OrgGroupJSON = ReturnType<OrgGroup['toJSON']>
|
|
21
22
|
export type OrgGroupPayload = Payload<OrgGroup>
|
|
@@ -55,3 +56,21 @@ export type OrgApiKey = Parse.Object<{
|
|
|
55
56
|
}>
|
|
56
57
|
export type OrgApiKeyJSON = ReturnType<OrgApiKey['toJSON']>
|
|
57
58
|
export type OrgApiKeyPayload = Payload<OrgApiKey>
|
|
59
|
+
|
|
60
|
+
export type LMS = Parse.Object<{
|
|
61
|
+
iss: string
|
|
62
|
+
clientId?: string
|
|
63
|
+
deploymentIds?: string[]
|
|
64
|
+
name: string
|
|
65
|
+
jwkUrl: string
|
|
66
|
+
oidcAuthUrl: string
|
|
67
|
+
organization: Parse.Pointer | Organization
|
|
68
|
+
}>
|
|
69
|
+
|
|
70
|
+
export type LMSLoginAttempt = Parse.Object<{
|
|
71
|
+
lms: Parse.Pointer | LMS
|
|
72
|
+
state: string
|
|
73
|
+
nonce: string
|
|
74
|
+
loginHint: string
|
|
75
|
+
hasResolved: boolean
|
|
76
|
+
}>
|