@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.
@@ -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;
@@ -88,7 +88,7 @@ ${await response.text()}`);
88
88
  throw new Error(`xAPI consistent through ${consistentThrough}; not in sync with current date ${date}.`);
89
89
  }
90
90
  return formatGetXapiStatementsResponse(responsePromise);
91
- });
91
+ }, { retries: 4 });
92
92
  }
93
93
  else {
94
94
  return formatGetXapiStatementsResponse(fetchXapiStatements(fetchParams));