@mitodl/ol-analytics-learner-records-api-axios 0.0.0-stage → 2026.10.20-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.
Files changed (43) hide show
  1. package/LICENSE +29 -0
  2. package/dist/cjs/api.d.ts +650 -0
  3. package/dist/cjs/api.d.ts.map +1 -0
  4. package/dist/cjs/api.js +497 -0
  5. package/dist/cjs/api.js.map +1 -0
  6. package/dist/cjs/base.d.ts +43 -0
  7. package/dist/cjs/base.d.ts.map +1 -0
  8. package/dist/cjs/base.js +50 -0
  9. package/dist/cjs/base.js.map +1 -0
  10. package/dist/cjs/common.d.ts +35 -0
  11. package/dist/cjs/common.d.ts.map +1 -0
  12. package/dist/cjs/common.js +140 -0
  13. package/dist/cjs/common.js.map +1 -0
  14. package/dist/cjs/configuration.d.ts +99 -0
  15. package/dist/cjs/configuration.d.ts.map +1 -0
  16. package/dist/cjs/configuration.js +45 -0
  17. package/dist/cjs/configuration.js.map +1 -0
  18. package/dist/cjs/index.d.ts +14 -0
  19. package/dist/cjs/index.d.ts.map +1 -0
  20. package/dist/cjs/index.js +32 -0
  21. package/dist/cjs/index.js.map +1 -0
  22. package/dist/esm/api.d.ts +650 -0
  23. package/dist/esm/api.d.ts.map +1 -0
  24. package/dist/esm/api.js +479 -0
  25. package/dist/esm/api.js.map +1 -0
  26. package/dist/esm/base.d.ts +43 -0
  27. package/dist/esm/base.d.ts.map +1 -0
  28. package/dist/esm/base.js +42 -0
  29. package/dist/esm/base.js.map +1 -0
  30. package/dist/esm/common.d.ts +35 -0
  31. package/dist/esm/common.d.ts.map +1 -0
  32. package/dist/esm/common.js +127 -0
  33. package/dist/esm/common.js.map +1 -0
  34. package/dist/esm/configuration.d.ts +99 -0
  35. package/dist/esm/configuration.d.ts.map +1 -0
  36. package/dist/esm/configuration.js +41 -0
  37. package/dist/esm/configuration.js.map +1 -0
  38. package/dist/esm/index.d.ts +14 -0
  39. package/dist/esm/index.d.ts.map +1 -0
  40. package/dist/esm/index.js +16 -0
  41. package/dist/esm/index.js.map +1 -0
  42. package/package.json +37 -3
  43. package/README.md +0 -3
package/LICENSE ADDED
@@ -0,0 +1,29 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2017, MIT Office of Digital Learning
4
+ All rights reserved.
5
+
6
+ Redistribution and use in source and binary forms, with or without
7
+ modification, are permitted provided that the following conditions are met:
8
+
9
+ * Redistributions of source code must retain the above copyright notice, this
10
+ list of conditions and the following disclaimer.
11
+
12
+ * Redistributions in binary form must reproduce the above copyright notice,
13
+ this list of conditions and the following disclaimer in the documentation
14
+ and/or other materials provided with the distribution.
15
+
16
+ * Neither the name of the copyright holder nor the names of its
17
+ contributors may be used to endorse or promote products derived from
18
+ this software without specific prior written permission.
19
+
20
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,650 @@
1
+ /**
2
+ * B2B Learner Records
3
+ * Machine-to-machine, read-only, organization-scoped learner progress records for B2B site-license partners. Records identify individual learners.
4
+ *
5
+ * The version of the OpenAPI document: 0.0.1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Configuration } from './configuration';
13
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
+ import type { RequestArgs } from './base';
15
+ import { BaseAPI } from './base';
16
+ /**
17
+ * ``passed`` without ``certified`` is normal — certificates are issued on a schedule after grading, and audit-mode enrollments never certify.
18
+ */
19
+ export declare const CompletionStatus: {
20
+ readonly NotStarted: "not_started";
21
+ readonly InProgress: "in_progress";
22
+ readonly Passed: "passed";
23
+ readonly Certified: "certified";
24
+ };
25
+ export type CompletionStatus = typeof CompletionStatus[keyof typeof CompletionStatus];
26
+ export declare const CompletionStatusFilter: {
27
+ readonly NotStarted: "not_started";
28
+ readonly InProgress: "in_progress";
29
+ readonly Passed: "passed";
30
+ readonly Certified: "certified";
31
+ readonly Unknown: "unknown";
32
+ };
33
+ export type CompletionStatusFilter = typeof CompletionStatusFilter[keyof typeof CompletionStatusFilter];
34
+ /**
35
+ * ``not_recorded`` = the learner has not answered. ``declined`` covers a learner who answered no and one who consented and later withdrew: MITx Online keeps one nullable boolean per (learner, contract).
36
+ */
37
+ export declare const ConsentStatus: {
38
+ readonly Consented: "consented";
39
+ readonly Declined: "declined";
40
+ readonly NotRecorded: "not_recorded";
41
+ };
42
+ export type ConsentStatus = typeof ConsentStatus[keyof typeof ConsentStatus];
43
+ /**
44
+ * One course run covered by one of the organization\'s contracts. No personal data, so no consent gate.
45
+ */
46
+ export interface CourseRun {
47
+ /**
48
+ * The organization\'s Keycloak organization UUID.
49
+ */
50
+ 'organization_id': string;
51
+ /**
52
+ * Display name of the organization.
53
+ */
54
+ 'organization_name': string;
55
+ /**
56
+ * Numeric identifier of the B2B contract.
57
+ */
58
+ 'contract_id': number;
59
+ /**
60
+ * Name of the B2B contract.
61
+ */
62
+ 'contract_name': string;
63
+ /**
64
+ * Whether the contract is currently active.
65
+ */
66
+ 'contract_is_active': boolean;
67
+ /**
68
+ * Null where the contract records no start date.
69
+ */
70
+ 'contract_start_date': string | null;
71
+ /**
72
+ * Null where the contract records no end date.
73
+ */
74
+ 'contract_end_date': string | null;
75
+ /**
76
+ * Null means uncapped, not zero.
77
+ */
78
+ 'seat_limit': number | null;
79
+ /**
80
+ * Readable course-run identifier, e.g. `course-v1:MITxT+14.310x+2T2026`.
81
+ */
82
+ 'courserun_id': string;
83
+ /**
84
+ * Mutable display title — key on courserun_id.
85
+ */
86
+ 'courserun_title': string;
87
+ /**
88
+ * Start date/time of the course run, or null if unscheduled.
89
+ */
90
+ 'courserun_start_on': string | null;
91
+ /**
92
+ * Null for self-paced runs.
93
+ */
94
+ 'courserun_end_on': string | null;
95
+ }
96
+ /**
97
+ * One learner\'s enrollment in one course run under one contract.
98
+ */
99
+ export interface Enrollment {
100
+ /**
101
+ * Stable opaque identifier, consistent across endpoints and stable across email changes. Use as the join key.
102
+ */
103
+ 'learner_id': string;
104
+ /**
105
+ * Not a join key; may differ from the enrolling address.
106
+ */
107
+ 'email': string | null;
108
+ /**
109
+ * Often null.
110
+ */
111
+ 'full_name': string | null;
112
+ /**
113
+ * The organization\'s Keycloak organization UUID.
114
+ */
115
+ 'organization_id': string;
116
+ /**
117
+ * Numeric identifier of the B2B contract the enrollment is attributed to.
118
+ */
119
+ 'contract_id': number;
120
+ /**
121
+ * Name of the B2B contract.
122
+ */
123
+ 'contract_name': string;
124
+ /**
125
+ * Readable course-run identifier, e.g. `course-v1:MITxT+14.310x+2T2026`.
126
+ */
127
+ 'courserun_id': string;
128
+ /**
129
+ * Mutable display title — key on courserun_id.
130
+ */
131
+ 'courserun_title': string;
132
+ /**
133
+ * Start date/time of the course run, or null if unscheduled.
134
+ */
135
+ 'courserun_start_on': string | null;
136
+ /**
137
+ * Null for self-paced runs.
138
+ */
139
+ 'courserun_end_on': string | null;
140
+ /**
141
+ * This run\'s enrollment, not an earlier run of the same course. Not consent-gated.
142
+ */
143
+ 'enrolled_on': string;
144
+ /**
145
+ * Not consent-gated.
146
+ */
147
+ 'enrollment_is_active': boolean;
148
+ /**
149
+ * e.g. `verified`, `audit`. Determines whether the run is certificate-bearing.
150
+ */
151
+ 'enrollment_mode': string | null;
152
+ /**
153
+ * Deactivation reason where one was recorded.
154
+ */
155
+ 'enrollment_status': string | null;
156
+ /**
157
+ * The learner\'s recorded decision for this enrollment\'s contract, before the deployment\'s default: not_recorded is a learner who has not answered, declined one who answered no or withdrew. Not consent-gated.
158
+ */
159
+ 'outcomes_consent_status': ConsentStatus;
160
+ /**
161
+ * Whether the learner\'s course status is shared for this enrollment\'s contract. A recorded consent decision always decides it; with none recorded, the deployment\'s default does. False means every field below is null.
162
+ */
163
+ 'outcomes_shared': boolean;
164
+ /**
165
+ * Single derived answer per row. Null when outcomes are withheld. in_progress means not passed or certified, with a nonzero grade or any tracked activity in the run; not_started means neither.
166
+ */
167
+ 'completion_status': CompletionStatus | null;
168
+ /**
169
+ * Null where no grade has been computed.
170
+ */
171
+ 'is_passing': boolean | null;
172
+ /**
173
+ * Numeric grade between 0 and 1.
174
+ */
175
+ 'grade': number | null;
176
+ /**
177
+ * Frequently null — not every platform records one.
178
+ */
179
+ 'letter_grade': string | null;
180
+ /**
181
+ * Share of the run\'s current course content the learner has completed, between 0 and 1. Times 100 it is the completion percent on the course\'s progress page. Not an input to completion_status: a certified learner can be below 1. Null where the run has no content to count. Changes to it do not move updated_since.
182
+ */
183
+ 'content_progress': number | null;
184
+ /**
185
+ * Timestamp the certificate was issued, or null if none exists.
186
+ */
187
+ 'certificate_issued_on': string | null;
188
+ /**
189
+ * Null where no certificate exists. A revoked certificate doesn\'t count as certified: completion_status then follows the grade, so it can read passed, in_progress or not_started.
190
+ */
191
+ 'certificate_is_revoked': boolean | null;
192
+ /**
193
+ * Most recent day with tracked activity in this course run. A date in the course platform\'s local day, not a UTC day. Null with no activity. Changes to it do not move updated_since; a full reload picks them up.
194
+ */
195
+ 'last_active_on': string | null;
196
+ /**
197
+ * Distinct days with tracked activity in this course run. Changes to it do not move updated_since; a full reload picks them up.
198
+ */
199
+ 'days_active': number | null;
200
+ /**
201
+ * Video blocks played, counted once per day: a block played on two days counts twice. Changes to it do not move updated_since; a full reload picks them up.
202
+ */
203
+ 'videos_watched': number | null;
204
+ /**
205
+ * Problem blocks checked, counted once per day: a block attempted on two days counts twice. Viewing an answer is not an attempt. Changes to it do not move updated_since; a full reload picks them up.
206
+ */
207
+ 'problems_attempted': number | null;
208
+ /**
209
+ * Chatbot submits in this course run, counting each (session, block) once per day. Changes to it do not move updated_since; a full reload picks them up.
210
+ */
211
+ 'chatbot_interactions': number | null;
212
+ }
213
+ export interface HTTPValidationError {
214
+ 'detail'?: Array<ValidationError>;
215
+ }
216
+ /**
217
+ * One learner\'s association with the organization.
218
+ */
219
+ export interface Learner {
220
+ /**
221
+ * Stable opaque identifier, consistent across endpoints and stable across email changes. Use as the join key.
222
+ */
223
+ 'learner_id': string;
224
+ /**
225
+ * Not a join key; may differ from the enrolling address.
226
+ */
227
+ 'email': string | null;
228
+ /**
229
+ * Often null.
230
+ */
231
+ 'full_name': string | null;
232
+ /**
233
+ * The organization\'s Keycloak organization UUID.
234
+ */
235
+ 'organization_id': string;
236
+ /**
237
+ * Display name of the organization.
238
+ */
239
+ 'organization_name': string;
240
+ /**
241
+ * How the learner is associated with the organization; see MembershipSource for the individual values.
242
+ */
243
+ 'membership_source': MembershipSource;
244
+ /**
245
+ * Administers the organization in MITx Online.
246
+ */
247
+ 'is_organization_manager': boolean;
248
+ /**
249
+ * Null for a roster member with no enrollments.
250
+ */
251
+ 'first_enrolled_on': string | null;
252
+ /**
253
+ * Timestamp of the learner\'s most recent enrollment.
254
+ */
255
+ 'last_enrolled_on': string | null;
256
+ /**
257
+ * Distinct course runs under the organization\'s contracts. Not consent-gated.
258
+ */
259
+ 'courses_enrolled': number;
260
+ /**
261
+ * The learner\'s recorded decision, before the deployment\'s default: not_recorded is a learner who has not answered, declined one who answered no or withdrew. Across several contracts any decline reads declined, then any contract with no decision reads not_recorded. Not consent-gated.
262
+ */
263
+ 'outcomes_consent_status': ConsentStatus;
264
+ /**
265
+ * Whether this learner\'s course status is shared. A recorded consent decision always decides it; with none recorded, the deployment\'s default does. False means every field below is null.
266
+ */
267
+ 'outcomes_shared': boolean;
268
+ /**
269
+ * When consent was recorded. Null when outcomes_shared is false, and when it is true with no recorded decision.
270
+ */
271
+ 'outcomes_consent_on': string | null;
272
+ /**
273
+ * Most recent day with tracked course activity (video play, problem check, navigation, discussion or chatbot submit) across the enrollments the request covers: active ones only, unless include_inactive is set. A date in the course platform\'s local day, not a UTC day. Null with no activity. Changes to it do not move updated_since; a full reload picks them up.
274
+ */
275
+ 'last_active_on': string | null;
276
+ /**
277
+ * Distinct course runs whose completion_status is in_progress: not passed or certified, with a nonzero grade or any tracked activity. Active enrollments only, unless include_inactive is set. Changes to it do not move updated_since; a full reload picks them up.
278
+ */
279
+ 'courses_in_progress': number | null;
280
+ /**
281
+ * Distinct course runs where the learner has a passing grade.
282
+ */
283
+ 'courses_passed': number | null;
284
+ /**
285
+ * Distinct course runs where the learner holds a non-revoked certificate.
286
+ */
287
+ 'courses_certified': number | null;
288
+ /**
289
+ * Includes program certificates, which have no course run and so are not in courses_certified.
290
+ */
291
+ 'certificates_earned': number | null;
292
+ }
293
+ export interface LearnerRecordsResponseCourseRun {
294
+ /**
295
+ * The organization\'s Keycloak organization UUID.
296
+ */
297
+ 'organization_id': string;
298
+ /**
299
+ * Last refresh of the backing data. Null before an organization\'s first refresh.
300
+ */
301
+ 'as_of': string | null;
302
+ /**
303
+ * Matching records across all pages, not this page.
304
+ */
305
+ 'total_count': number;
306
+ /**
307
+ * Records in total_count carrying outcomes_shared: false. Always 0 on endpoints with no consent gate.
308
+ */
309
+ 'outcomes_withheld_count': number;
310
+ /**
311
+ * The requested page of records.
312
+ */
313
+ 'data': Array<CourseRun>;
314
+ }
315
+ export interface LearnerRecordsResponseEnrollment {
316
+ /**
317
+ * The organization\'s Keycloak organization UUID.
318
+ */
319
+ 'organization_id': string;
320
+ /**
321
+ * Last refresh of the backing data. Null before an organization\'s first refresh.
322
+ */
323
+ 'as_of': string | null;
324
+ /**
325
+ * Matching records across all pages, not this page.
326
+ */
327
+ 'total_count': number;
328
+ /**
329
+ * Records in total_count carrying outcomes_shared: false. Always 0 on endpoints with no consent gate.
330
+ */
331
+ 'outcomes_withheld_count': number;
332
+ /**
333
+ * The requested page of records.
334
+ */
335
+ 'data': Array<Enrollment>;
336
+ }
337
+ export interface LearnerRecordsResponseLearner {
338
+ /**
339
+ * The organization\'s Keycloak organization UUID.
340
+ */
341
+ 'organization_id': string;
342
+ /**
343
+ * Last refresh of the backing data. Null before an organization\'s first refresh.
344
+ */
345
+ 'as_of': string | null;
346
+ /**
347
+ * Matching records across all pages, not this page.
348
+ */
349
+ 'total_count': number;
350
+ /**
351
+ * Records in total_count carrying outcomes_shared: false. Always 0 on endpoints with no consent gate.
352
+ */
353
+ 'outcomes_withheld_count': number;
354
+ /**
355
+ * The requested page of records.
356
+ */
357
+ 'data': Array<Learner>;
358
+ }
359
+ export interface LocationInner {
360
+ }
361
+ /**
362
+ * ``roster`` = on the organization\'s membership roster with no enrollments (an assigned, unstarted seat). ``enrollment`` = enrolled under a contract but absent from the roster (usually a provisioning lag). ``both`` = the expected state.
363
+ */
364
+ export declare const MembershipSource: {
365
+ readonly Roster: "roster";
366
+ readonly Enrollment: "enrollment";
367
+ readonly Both: "both";
368
+ };
369
+ export type MembershipSource = typeof MembershipSource[keyof typeof MembershipSource];
370
+ export interface ValidationError {
371
+ 'loc': Array<LocationInner>;
372
+ 'msg': string;
373
+ 'type': string;
374
+ 'input'?: any;
375
+ 'ctx'?: object;
376
+ }
377
+ /**
378
+ * CatalogApi - axios parameter creator
379
+ */
380
+ export declare const CatalogApiAxiosParamCreator: (configuration?: Configuration) => {
381
+ /**
382
+ *
383
+ * @summary Contracts and course runs covered by the organization\'s licence
384
+ * @param {string} organization_id
385
+ * @param {number | null} [contract_id]
386
+ * @param {boolean | null} [contract_is_active]
387
+ * @param {string | null} [courserun_id]
388
+ * @param {string | null} [courserun_starts_after] Return only course runs starting at or after this instant. Self-paced or otherwise unscheduled runs have no start date and match neither this nor courserun_starts_before; a partitioned sync needs one pass with neither set to pick those up.
389
+ * @param {string | null} [courserun_starts_before] Return only course runs starting strictly before this instant.
390
+ * @param {number} [limit]
391
+ * @param {number} [offset]
392
+ * @param {*} [options] Override http request option.
393
+ * @throws {RequiredError}
394
+ */
395
+ listCourses: (organization_id: string, contract_id?: number | null, contract_is_active?: boolean | null, courserun_id?: string | null, courserun_starts_after?: string | null, courserun_starts_before?: string | null, limit?: number, offset?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
396
+ };
397
+ /**
398
+ * CatalogApi - functional programming interface
399
+ */
400
+ export declare const CatalogApiFp: (configuration?: Configuration) => {
401
+ /**
402
+ *
403
+ * @summary Contracts and course runs covered by the organization\'s licence
404
+ * @param {string} organization_id
405
+ * @param {number | null} [contract_id]
406
+ * @param {boolean | null} [contract_is_active]
407
+ * @param {string | null} [courserun_id]
408
+ * @param {string | null} [courserun_starts_after] Return only course runs starting at or after this instant. Self-paced or otherwise unscheduled runs have no start date and match neither this nor courserun_starts_before; a partitioned sync needs one pass with neither set to pick those up.
409
+ * @param {string | null} [courserun_starts_before] Return only course runs starting strictly before this instant.
410
+ * @param {number} [limit]
411
+ * @param {number} [offset]
412
+ * @param {*} [options] Override http request option.
413
+ * @throws {RequiredError}
414
+ */
415
+ listCourses(organization_id: string, contract_id?: number | null, contract_is_active?: boolean | null, courserun_id?: string | null, courserun_starts_after?: string | null, courserun_starts_before?: string | null, limit?: number, offset?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LearnerRecordsResponseCourseRun>>;
416
+ };
417
+ /**
418
+ * CatalogApi - factory interface
419
+ */
420
+ export declare const CatalogApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
421
+ /**
422
+ *
423
+ * @summary Contracts and course runs covered by the organization\'s licence
424
+ * @param {CatalogApiListCoursesRequest} requestParameters Request parameters.
425
+ * @param {*} [options] Override http request option.
426
+ * @throws {RequiredError}
427
+ */
428
+ listCourses(requestParameters: CatalogApiListCoursesRequest, options?: RawAxiosRequestConfig): AxiosPromise<LearnerRecordsResponseCourseRun>;
429
+ };
430
+ /**
431
+ * Request parameters for listCourses operation in CatalogApi.
432
+ */
433
+ export interface CatalogApiListCoursesRequest {
434
+ readonly organization_id: string;
435
+ readonly contract_id?: number | null;
436
+ readonly contract_is_active?: boolean | null;
437
+ readonly courserun_id?: string | null;
438
+ /**
439
+ * Return only course runs starting at or after this instant. Self-paced or otherwise unscheduled runs have no start date and match neither this nor courserun_starts_before; a partitioned sync needs one pass with neither set to pick those up.
440
+ */
441
+ readonly courserun_starts_after?: string | null;
442
+ /**
443
+ * Return only course runs starting strictly before this instant.
444
+ */
445
+ readonly courserun_starts_before?: string | null;
446
+ readonly limit?: number;
447
+ readonly offset?: number;
448
+ }
449
+ /**
450
+ * CatalogApi - object-oriented interface
451
+ */
452
+ export declare class CatalogApi extends BaseAPI {
453
+ /**
454
+ *
455
+ * @summary Contracts and course runs covered by the organization\'s licence
456
+ * @param {CatalogApiListCoursesRequest} requestParameters Request parameters.
457
+ * @param {*} [options] Override http request option.
458
+ * @throws {RequiredError}
459
+ */
460
+ listCourses(requestParameters: CatalogApiListCoursesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LearnerRecordsResponseCourseRun, any, {}, any>>;
461
+ }
462
+ /**
463
+ * EnrollmentsApi - axios parameter creator
464
+ */
465
+ export declare const EnrollmentsApiAxiosParamCreator: (configuration?: Configuration) => {
466
+ /**
467
+ *
468
+ * @summary Learner-by-course-run enrollment and completion records
469
+ * @param {string} organization_id
470
+ * @param {number | null} [contract_id]
471
+ * @param {string | null} [courserun_id]
472
+ * @param {Array<string>} [learner_id] Repeat for several.
473
+ * @param {Array<CompletionStatusFilter>} [completion_status]
474
+ * @param {string | null} [updated_since] Return only records changed at or after this instant.
475
+ * @param {string | null} [updated_before] Return only records changed strictly before this instant. Paired with updated_since, bounds a window for a partitioned backfill or replay.
476
+ * @param {boolean} [include_inactive] Include deactivated enrollments (unenrolled, refunded, transferred).
477
+ * @param {number} [limit]
478
+ * @param {number} [offset]
479
+ * @param {*} [options] Override http request option.
480
+ * @throws {RequiredError}
481
+ */
482
+ listEnrollments: (organization_id: string, contract_id?: number | null, courserun_id?: string | null, learner_id?: Array<string>, completion_status?: Array<CompletionStatusFilter>, updated_since?: string | null, updated_before?: string | null, include_inactive?: boolean, limit?: number, offset?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
483
+ };
484
+ /**
485
+ * EnrollmentsApi - functional programming interface
486
+ */
487
+ export declare const EnrollmentsApiFp: (configuration?: Configuration) => {
488
+ /**
489
+ *
490
+ * @summary Learner-by-course-run enrollment and completion records
491
+ * @param {string} organization_id
492
+ * @param {number | null} [contract_id]
493
+ * @param {string | null} [courserun_id]
494
+ * @param {Array<string>} [learner_id] Repeat for several.
495
+ * @param {Array<CompletionStatusFilter>} [completion_status]
496
+ * @param {string | null} [updated_since] Return only records changed at or after this instant.
497
+ * @param {string | null} [updated_before] Return only records changed strictly before this instant. Paired with updated_since, bounds a window for a partitioned backfill or replay.
498
+ * @param {boolean} [include_inactive] Include deactivated enrollments (unenrolled, refunded, transferred).
499
+ * @param {number} [limit]
500
+ * @param {number} [offset]
501
+ * @param {*} [options] Override http request option.
502
+ * @throws {RequiredError}
503
+ */
504
+ listEnrollments(organization_id: string, contract_id?: number | null, courserun_id?: string | null, learner_id?: Array<string>, completion_status?: Array<CompletionStatusFilter>, updated_since?: string | null, updated_before?: string | null, include_inactive?: boolean, limit?: number, offset?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LearnerRecordsResponseEnrollment>>;
505
+ };
506
+ /**
507
+ * EnrollmentsApi - factory interface
508
+ */
509
+ export declare const EnrollmentsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
510
+ /**
511
+ *
512
+ * @summary Learner-by-course-run enrollment and completion records
513
+ * @param {EnrollmentsApiListEnrollmentsRequest} requestParameters Request parameters.
514
+ * @param {*} [options] Override http request option.
515
+ * @throws {RequiredError}
516
+ */
517
+ listEnrollments(requestParameters: EnrollmentsApiListEnrollmentsRequest, options?: RawAxiosRequestConfig): AxiosPromise<LearnerRecordsResponseEnrollment>;
518
+ };
519
+ /**
520
+ * Request parameters for listEnrollments operation in EnrollmentsApi.
521
+ */
522
+ export interface EnrollmentsApiListEnrollmentsRequest {
523
+ readonly organization_id: string;
524
+ readonly contract_id?: number | null;
525
+ readonly courserun_id?: string | null;
526
+ /**
527
+ * Repeat for several.
528
+ */
529
+ readonly learner_id?: Array<string>;
530
+ readonly completion_status?: Array<CompletionStatusFilter>;
531
+ /**
532
+ * Return only records changed at or after this instant.
533
+ */
534
+ readonly updated_since?: string | null;
535
+ /**
536
+ * Return only records changed strictly before this instant. Paired with updated_since, bounds a window for a partitioned backfill or replay.
537
+ */
538
+ readonly updated_before?: string | null;
539
+ /**
540
+ * Include deactivated enrollments (unenrolled, refunded, transferred).
541
+ */
542
+ readonly include_inactive?: boolean;
543
+ readonly limit?: number;
544
+ readonly offset?: number;
545
+ }
546
+ /**
547
+ * EnrollmentsApi - object-oriented interface
548
+ */
549
+ export declare class EnrollmentsApi extends BaseAPI {
550
+ /**
551
+ *
552
+ * @summary Learner-by-course-run enrollment and completion records
553
+ * @param {EnrollmentsApiListEnrollmentsRequest} requestParameters Request parameters.
554
+ * @param {*} [options] Override http request option.
555
+ * @throws {RequiredError}
556
+ */
557
+ listEnrollments(requestParameters: EnrollmentsApiListEnrollmentsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LearnerRecordsResponseEnrollment, any, {}, any>>;
558
+ }
559
+ /**
560
+ * LearnersApi - axios parameter creator
561
+ */
562
+ export declare const LearnersApiAxiosParamCreator: (configuration?: Configuration) => {
563
+ /**
564
+ *
565
+ * @summary Learner roster with progress rollups
566
+ * @param {string} organization_id
567
+ * @param {number | null} [contract_id]
568
+ * @param {Array<string>} [learner_id] Repeat for several.
569
+ * @param {string | null} [updated_since] Return only records changed at or after this instant.
570
+ * @param {string | null} [updated_before] Return only records changed strictly before this instant. Paired with updated_since, bounds a window for a partitioned backfill or replay.
571
+ * @param {boolean} [include_inactive] Include deactivated enrollments (unenrolled, refunded, transferred).
572
+ * @param {number} [limit]
573
+ * @param {number} [offset]
574
+ * @param {*} [options] Override http request option.
575
+ * @throws {RequiredError}
576
+ */
577
+ listLearners: (organization_id: string, contract_id?: number | null, learner_id?: Array<string>, updated_since?: string | null, updated_before?: string | null, include_inactive?: boolean, limit?: number, offset?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
578
+ };
579
+ /**
580
+ * LearnersApi - functional programming interface
581
+ */
582
+ export declare const LearnersApiFp: (configuration?: Configuration) => {
583
+ /**
584
+ *
585
+ * @summary Learner roster with progress rollups
586
+ * @param {string} organization_id
587
+ * @param {number | null} [contract_id]
588
+ * @param {Array<string>} [learner_id] Repeat for several.
589
+ * @param {string | null} [updated_since] Return only records changed at or after this instant.
590
+ * @param {string | null} [updated_before] Return only records changed strictly before this instant. Paired with updated_since, bounds a window for a partitioned backfill or replay.
591
+ * @param {boolean} [include_inactive] Include deactivated enrollments (unenrolled, refunded, transferred).
592
+ * @param {number} [limit]
593
+ * @param {number} [offset]
594
+ * @param {*} [options] Override http request option.
595
+ * @throws {RequiredError}
596
+ */
597
+ listLearners(organization_id: string, contract_id?: number | null, learner_id?: Array<string>, updated_since?: string | null, updated_before?: string | null, include_inactive?: boolean, limit?: number, offset?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LearnerRecordsResponseLearner>>;
598
+ };
599
+ /**
600
+ * LearnersApi - factory interface
601
+ */
602
+ export declare const LearnersApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
603
+ /**
604
+ *
605
+ * @summary Learner roster with progress rollups
606
+ * @param {LearnersApiListLearnersRequest} requestParameters Request parameters.
607
+ * @param {*} [options] Override http request option.
608
+ * @throws {RequiredError}
609
+ */
610
+ listLearners(requestParameters: LearnersApiListLearnersRequest, options?: RawAxiosRequestConfig): AxiosPromise<LearnerRecordsResponseLearner>;
611
+ };
612
+ /**
613
+ * Request parameters for listLearners operation in LearnersApi.
614
+ */
615
+ export interface LearnersApiListLearnersRequest {
616
+ readonly organization_id: string;
617
+ readonly contract_id?: number | null;
618
+ /**
619
+ * Repeat for several.
620
+ */
621
+ readonly learner_id?: Array<string>;
622
+ /**
623
+ * Return only records changed at or after this instant.
624
+ */
625
+ readonly updated_since?: string | null;
626
+ /**
627
+ * Return only records changed strictly before this instant. Paired with updated_since, bounds a window for a partitioned backfill or replay.
628
+ */
629
+ readonly updated_before?: string | null;
630
+ /**
631
+ * Include deactivated enrollments (unenrolled, refunded, transferred).
632
+ */
633
+ readonly include_inactive?: boolean;
634
+ readonly limit?: number;
635
+ readonly offset?: number;
636
+ }
637
+ /**
638
+ * LearnersApi - object-oriented interface
639
+ */
640
+ export declare class LearnersApi extends BaseAPI {
641
+ /**
642
+ *
643
+ * @summary Learner roster with progress rollups
644
+ * @param {LearnersApiListLearnersRequest} requestParameters Request parameters.
645
+ * @param {*} [options] Override http request option.
646
+ * @throws {RequiredError}
647
+ */
648
+ listLearners(requestParameters: LearnersApiListLearnersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LearnerRecordsResponseLearner, any, {}, any>>;
649
+ }
650
+ //# sourceMappingURL=api.d.ts.map