@openstax/ts-utils 1.5.4 → 1.5.5
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/dist/cjs/services/authProvider/index.d.ts +5 -0
- package/dist/cjs/services/lrsGateway/attempt-utils.d.ts +2 -0
- package/dist/cjs/services/lrsGateway/index.js +1 -1
- package/dist/cjs/tsconfig.without-specs.cjs.tsbuildinfo +1 -1
- package/dist/esm/services/authProvider/index.d.ts +5 -0
- package/dist/esm/services/lrsGateway/attempt-utils.d.ts +2 -0
- package/dist/esm/services/lrsGateway/index.js +1 -1
- package/dist/esm/tsconfig.without-specs.esm.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -18,6 +18,11 @@ export interface ApiUser extends TokenUser {
|
|
|
18
18
|
is_verified: boolean;
|
|
19
19
|
is_guessed_preferred: boolean;
|
|
20
20
|
}>;
|
|
21
|
+
applications: Array<{
|
|
22
|
+
id: number;
|
|
23
|
+
name: string;
|
|
24
|
+
roles: string[];
|
|
25
|
+
}>;
|
|
21
26
|
external_ids: string[];
|
|
22
27
|
is_not_gdpr_location: boolean;
|
|
23
28
|
signed_contract_names: string[];
|
|
@@ -24,8 +24,10 @@ export declare const resolveAttemptInfo: (statements: XapiStatement[], options?:
|
|
|
24
24
|
currentPreference?: "latest" | "oldest" | undefined;
|
|
25
25
|
} | undefined) => ActivityState;
|
|
26
26
|
export declare const loadStatementsForActivityAndFirstChildren: (gateway: LrsGateway, activityIRI: string, options?: {
|
|
27
|
+
anyUser?: boolean | undefined;
|
|
27
28
|
attempt?: string | undefined;
|
|
28
29
|
ensureSync?: boolean | undefined;
|
|
30
|
+
user?: string | undefined;
|
|
29
31
|
} | undefined) => Promise<XapiStatement[]>;
|
|
30
32
|
export declare const loadActivityAttemptInfo: (gateway: LrsGateway, activityIRI: string, options?: {
|
|
31
33
|
currentAttempt?: string | undefined;
|
|
@@ -117,7 +117,7 @@ ${await response.text()}`);
|
|
|
117
117
|
throw new Error(`xAPI consistent through ${consistentThrough}; not in sync with current date ${date}.`);
|
|
118
118
|
}
|
|
119
119
|
return formatGetXapiStatementsResponse(responsePromise);
|
|
120
|
-
});
|
|
120
|
+
}, { retries: 4 });
|
|
121
121
|
}
|
|
122
122
|
else {
|
|
123
123
|
return formatGetXapiStatementsResponse(fetchXapiStatements(fetchParams));
|