@easyedu/js-lsm-api 1.117.0 → 1.119.0
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/.openapi-generator/FILES +46 -0
- package/README.md +36 -2
- package/dist/apis/CourseApi.d.ts +55 -0
- package/dist/apis/CourseApi.js +147 -0
- package/dist/apis/DispatchApi.d.ts +121 -5
- package/dist/apis/DispatchApi.js +303 -8
- package/dist/apis/IntegrationApi.d.ts +2 -0
- package/dist/apis/IntegrationApi.js +3 -1
- package/dist/apis/PlayerApi.d.ts +26 -6
- package/dist/apis/PlayerApi.js +57 -6
- package/dist/esm/apis/CourseApi.d.ts +55 -0
- package/dist/esm/apis/CourseApi.js +147 -0
- package/dist/esm/apis/DispatchApi.d.ts +121 -5
- package/dist/esm/apis/DispatchApi.js +303 -8
- package/dist/esm/apis/IntegrationApi.d.ts +2 -0
- package/dist/esm/apis/IntegrationApi.js +3 -1
- package/dist/esm/apis/PlayerApi.d.ts +26 -6
- package/dist/esm/apis/PlayerApi.js +57 -6
- package/dist/esm/models/CustomWebhookIntegration.d.ts +2 -0
- package/dist/esm/models/CustomWebhookIntegration.js +3 -1
- package/dist/esm/models/DispatchTokenResponse.d.ts +57 -0
- package/dist/esm/models/DispatchTokenResponse.js +61 -0
- package/dist/esm/models/GetCourseExport.d.ts +62 -0
- package/dist/esm/models/GetCourseExport.js +44 -0
- package/dist/esm/models/GetDispatchCourse.d.ts +82 -0
- package/dist/esm/models/GetDispatchCourse.js +77 -0
- package/dist/esm/models/GetDispatchRollup.d.ts +104 -0
- package/dist/esm/models/GetDispatchRollup.js +95 -0
- package/dist/esm/models/GetHostedScormRegistration.d.ts +80 -0
- package/dist/esm/models/GetHostedScormRegistration.js +71 -0
- package/dist/esm/models/GetHostedScormRegistrationList.d.ts +57 -0
- package/dist/esm/models/GetHostedScormRegistrationList.js +60 -0
- package/dist/esm/models/GetResourceSessionDiagnostics.d.ts +8 -0
- package/dist/esm/models/GetResourceSessionDiagnostics.js +2 -0
- package/dist/esm/models/HostedScormAccessPolicy.d.ts +50 -0
- package/dist/esm/models/HostedScormAccessPolicy.js +55 -0
- package/dist/esm/models/HostedScormOutlineEntry.d.ts +108 -0
- package/dist/esm/models/HostedScormOutlineEntry.js +97 -0
- package/dist/esm/models/HostedScormRollupPolicy.d.ts +69 -0
- package/dist/esm/models/HostedScormRollupPolicy.js +72 -0
- package/dist/esm/models/HostedScormScoreItem.d.ts +38 -0
- package/dist/esm/models/HostedScormScoreItem.js +47 -0
- package/dist/esm/models/IntegrationEvent.d.ts +2 -0
- package/dist/esm/models/IntegrationEvent.js +3 -1
- package/dist/esm/models/IntegrationEventData.d.ts +16 -2
- package/dist/esm/models/IntegrationEventData.js +10 -0
- package/dist/esm/models/IntegrationEventInvitation.d.ts +71 -0
- package/dist/esm/models/IntegrationEventInvitation.js +71 -0
- package/dist/esm/models/IntegrationEventUser.d.ts +50 -0
- package/dist/esm/models/IntegrationEventUser.js +55 -0
- package/dist/esm/models/PostCourseExport.d.ts +28 -0
- package/dist/esm/models/PostCourseExport.js +15 -0
- package/dist/esm/models/PostCustomWebhookIntegration.d.ts +2 -0
- package/dist/esm/models/PostCustomWebhookIntegration.js +3 -1
- package/dist/esm/models/PostDispatchItemLaunch.d.ts +32 -0
- package/dist/esm/models/PostDispatchItemLaunch.js +41 -0
- package/dist/esm/models/PostDispatchItemLaunchResponse.d.ts +64 -0
- package/dist/esm/models/PostDispatchItemLaunchResponse.js +66 -0
- package/dist/esm/models/PostDispatchLaunch.d.ts +50 -0
- package/dist/esm/models/PostDispatchLaunch.js +53 -0
- package/dist/esm/models/PostDispatchLaunchResponse.d.ts +70 -0
- package/dist/esm/models/PostDispatchLaunchResponse.js +70 -0
- package/dist/esm/models/PostDispatchTokenExchange.d.ts +32 -0
- package/dist/esm/models/PostDispatchTokenExchange.js +43 -0
- package/dist/esm/models/PostZapierSubscription.d.ts +2 -0
- package/dist/esm/models/PostZapierSubscription.js +3 -1
- package/dist/esm/models/PutCustomWebhookIntegration.d.ts +2 -0
- package/dist/esm/models/PutCustomWebhookIntegration.js +3 -1
- package/dist/esm/models/PutHostedScormStatus.d.ts +32 -0
- package/dist/esm/models/PutHostedScormStatus.js +43 -0
- package/dist/esm/models/ScormGetValueResponse.d.ts +12 -0
- package/dist/esm/models/ScormGetValueResponse.js +8 -0
- package/dist/esm/models/ScormNavigationDelivery.d.ts +64 -0
- package/dist/esm/models/ScormNavigationDelivery.js +66 -0
- package/dist/esm/models/ScormNavigationRequest.d.ts +55 -0
- package/dist/esm/models/ScormNavigationRequest.js +61 -0
- package/dist/esm/models/ScormNavigationResponse.d.ts +70 -0
- package/dist/esm/models/ScormNavigationResponse.js +67 -0
- package/dist/esm/models/ScormNavigationValidity.d.ts +92 -0
- package/dist/esm/models/ScormNavigationValidity.js +83 -0
- package/dist/esm/models/ScormRuntimeResponse.d.ts +44 -0
- package/dist/esm/models/ScormRuntimeResponse.js +51 -0
- package/dist/esm/models/ScormSetValueResponse.d.ts +12 -0
- package/dist/esm/models/ScormSetValueResponse.js +8 -0
- package/dist/esm/models/ScormTerminateResponse.d.ts +63 -0
- package/dist/esm/models/ScormTerminateResponse.js +62 -0
- package/dist/esm/models/ZapierSubscription.d.ts +2 -0
- package/dist/esm/models/ZapierSubscription.js +3 -1
- package/dist/esm/models/index.d.ts +23 -0
- package/dist/esm/models/index.js +23 -0
- package/dist/models/CustomWebhookIntegration.d.ts +2 -0
- package/dist/models/CustomWebhookIntegration.js +3 -1
- package/dist/models/DispatchTokenResponse.d.ts +57 -0
- package/dist/models/DispatchTokenResponse.js +69 -0
- package/dist/models/GetCourseExport.d.ts +62 -0
- package/dist/models/GetCourseExport.js +45 -1
- package/dist/models/GetDispatchCourse.d.ts +82 -0
- package/dist/models/GetDispatchCourse.js +84 -0
- package/dist/models/GetDispatchRollup.d.ts +104 -0
- package/dist/models/GetDispatchRollup.js +103 -0
- package/dist/models/GetHostedScormRegistration.d.ts +80 -0
- package/dist/models/GetHostedScormRegistration.js +78 -0
- package/dist/models/GetHostedScormRegistrationList.d.ts +57 -0
- package/dist/models/GetHostedScormRegistrationList.js +67 -0
- package/dist/models/GetResourceSessionDiagnostics.d.ts +8 -0
- package/dist/models/GetResourceSessionDiagnostics.js +2 -0
- package/dist/models/HostedScormAccessPolicy.d.ts +50 -0
- package/dist/models/HostedScormAccessPolicy.js +62 -0
- package/dist/models/HostedScormOutlineEntry.d.ts +108 -0
- package/dist/models/HostedScormOutlineEntry.js +105 -0
- package/dist/models/HostedScormRollupPolicy.d.ts +69 -0
- package/dist/models/HostedScormRollupPolicy.js +80 -0
- package/dist/models/HostedScormScoreItem.d.ts +38 -0
- package/dist/models/HostedScormScoreItem.js +54 -0
- package/dist/models/IntegrationEvent.d.ts +2 -0
- package/dist/models/IntegrationEvent.js +3 -1
- package/dist/models/IntegrationEventData.d.ts +16 -2
- package/dist/models/IntegrationEventData.js +10 -0
- package/dist/models/IntegrationEventInvitation.d.ts +71 -0
- package/dist/models/IntegrationEventInvitation.js +79 -0
- package/dist/models/IntegrationEventUser.d.ts +50 -0
- package/dist/models/IntegrationEventUser.js +62 -0
- package/dist/models/PostCourseExport.d.ts +28 -0
- package/dist/models/PostCourseExport.js +16 -1
- package/dist/models/PostCustomWebhookIntegration.d.ts +2 -0
- package/dist/models/PostCustomWebhookIntegration.js +3 -1
- package/dist/models/PostDispatchItemLaunch.d.ts +32 -0
- package/dist/models/PostDispatchItemLaunch.js +48 -0
- package/dist/models/PostDispatchItemLaunchResponse.d.ts +64 -0
- package/dist/models/PostDispatchItemLaunchResponse.js +74 -0
- package/dist/models/PostDispatchLaunch.d.ts +50 -0
- package/dist/models/PostDispatchLaunch.js +60 -0
- package/dist/models/PostDispatchLaunchResponse.d.ts +70 -0
- package/dist/models/PostDispatchLaunchResponse.js +78 -0
- package/dist/models/PostDispatchTokenExchange.d.ts +32 -0
- package/dist/models/PostDispatchTokenExchange.js +50 -0
- package/dist/models/PostZapierSubscription.d.ts +2 -0
- package/dist/models/PostZapierSubscription.js +3 -1
- package/dist/models/PutCustomWebhookIntegration.d.ts +2 -0
- package/dist/models/PutCustomWebhookIntegration.js +3 -1
- package/dist/models/PutHostedScormStatus.d.ts +32 -0
- package/dist/models/PutHostedScormStatus.js +50 -0
- package/dist/models/ScormGetValueResponse.d.ts +12 -0
- package/dist/models/ScormGetValueResponse.js +8 -0
- package/dist/models/ScormNavigationDelivery.d.ts +64 -0
- package/dist/models/ScormNavigationDelivery.js +74 -0
- package/dist/models/ScormNavigationRequest.d.ts +55 -0
- package/dist/models/ScormNavigationRequest.js +69 -0
- package/dist/models/ScormNavigationResponse.d.ts +70 -0
- package/dist/models/ScormNavigationResponse.js +74 -0
- package/dist/models/ScormNavigationValidity.d.ts +92 -0
- package/dist/models/ScormNavigationValidity.js +90 -0
- package/dist/models/ScormRuntimeResponse.d.ts +44 -0
- package/dist/models/ScormRuntimeResponse.js +58 -0
- package/dist/models/ScormSetValueResponse.d.ts +12 -0
- package/dist/models/ScormSetValueResponse.js +8 -0
- package/dist/models/ScormTerminateResponse.d.ts +63 -0
- package/dist/models/ScormTerminateResponse.js +69 -0
- package/dist/models/ZapierSubscription.d.ts +2 -0
- package/dist/models/ZapierSubscription.js +3 -1
- package/dist/models/index.d.ts +23 -0
- package/dist/models/index.js +23 -0
- package/docs/CourseApi.md +225 -0
- package/docs/DispatchApi.md +480 -9
- package/docs/DispatchTokenResponse.md +40 -0
- package/docs/GetCourseExport.md +14 -0
- package/docs/GetDispatchCourse.md +50 -0
- package/docs/GetDispatchRollup.md +52 -0
- package/docs/GetHostedScormRegistration.md +50 -0
- package/docs/GetHostedScormRegistrationList.md +42 -0
- package/docs/GetResourceSessionDiagnostics.md +2 -0
- package/docs/HostedScormAccessPolicy.md +41 -0
- package/docs/HostedScormOutlineEntry.md +54 -0
- package/docs/HostedScormRollupPolicy.md +41 -0
- package/docs/HostedScormScoreItem.md +36 -0
- package/docs/IntegrationApi.md +2 -2
- package/docs/IntegrationEventData.md +4 -0
- package/docs/IntegrationEventInvitation.md +45 -0
- package/docs/IntegrationEventUser.md +41 -0
- package/docs/PlayerApi.md +80 -9
- package/docs/PostCourseExport.md +6 -0
- package/docs/PostDispatchItemLaunch.md +34 -0
- package/docs/PostDispatchItemLaunchResponse.md +42 -0
- package/docs/PostDispatchLaunch.md +40 -0
- package/docs/PostDispatchLaunchResponse.md +44 -0
- package/docs/PostDispatchTokenExchange.md +34 -0
- package/docs/PutHostedScormStatus.md +34 -0
- package/docs/ScormGetValueResponse.md +4 -0
- package/docs/ScormNavigationDelivery.md +43 -0
- package/docs/ScormNavigationRequest.md +37 -0
- package/docs/ScormNavigationResponse.md +47 -0
- package/docs/ScormNavigationValidity.md +55 -0
- package/docs/ScormRuntimeResponse.md +39 -0
- package/docs/ScormSetValueResponse.md +4 -0
- package/docs/ScormTerminateResponse.md +44 -0
- package/package.json +1 -1
- package/src/apis/CourseApi.ts +221 -0
- package/src/apis/DispatchApi.ts +426 -10
- package/src/apis/IntegrationApi.ts +3 -1
- package/src/apis/PlayerApi.ts +95 -12
- package/src/models/CustomWebhookIntegration.ts +3 -1
- package/src/models/DispatchTokenResponse.ts +103 -0
- package/src/models/GetCourseExport.ts +97 -0
- package/src/models/GetDispatchCourse.ts +153 -0
- package/src/models/GetDispatchRollup.ts +169 -0
- package/src/models/GetHostedScormRegistration.ts +136 -0
- package/src/models/GetHostedScormRegistrationList.ts +110 -0
- package/src/models/GetResourceSessionDiagnostics.ts +8 -0
- package/src/models/HostedScormAccessPolicy.ts +93 -0
- package/src/models/HostedScormOutlineEntry.ts +176 -0
- package/src/models/HostedScormRollupPolicy.ts +123 -0
- package/src/models/HostedScormScoreItem.ts +75 -0
- package/src/models/IntegrationEvent.ts +3 -1
- package/src/models/IntegrationEventData.ts +34 -2
- package/src/models/IntegrationEventInvitation.ts +130 -0
- package/src/models/IntegrationEventUser.ts +93 -0
- package/src/models/PostCourseExport.ts +48 -0
- package/src/models/PostCustomWebhookIntegration.ts +3 -1
- package/src/models/PostDispatchItemLaunch.ts +65 -0
- package/src/models/PostDispatchItemLaunchResponse.ts +113 -0
- package/src/models/PostDispatchLaunch.ts +92 -0
- package/src/models/PostDispatchLaunchResponse.ts +122 -0
- package/src/models/PostDispatchTokenExchange.ts +66 -0
- package/src/models/PostZapierSubscription.ts +3 -1
- package/src/models/PutCustomWebhookIntegration.ts +3 -1
- package/src/models/PutHostedScormStatus.ts +66 -0
- package/src/models/ScormGetValueResponse.ts +18 -0
- package/src/models/ScormNavigationDelivery.ts +113 -0
- package/src/models/ScormNavigationRequest.ts +94 -0
- package/src/models/ScormNavigationResponse.ts +134 -0
- package/src/models/ScormNavigationValidity.ts +156 -0
- package/src/models/ScormRuntimeResponse.ts +84 -0
- package/src/models/ScormSetValueResponse.ts +18 -0
- package/src/models/ScormTerminateResponse.ts +118 -0
- package/src/models/ZapierSubscription.ts +3 -1
- package/src/models/index.ts +23 -0
package/src/apis/CourseApi.ts
CHANGED
|
@@ -88,6 +88,16 @@ import {
|
|
|
88
88
|
GetCourseVersionSectionFromJSON,
|
|
89
89
|
GetCourseVersionSectionToJSON,
|
|
90
90
|
} from '../models/GetCourseVersionSection';
|
|
91
|
+
import {
|
|
92
|
+
type GetHostedScormRegistrationList,
|
|
93
|
+
GetHostedScormRegistrationListFromJSON,
|
|
94
|
+
GetHostedScormRegistrationListToJSON,
|
|
95
|
+
} from '../models/GetHostedScormRegistrationList';
|
|
96
|
+
import {
|
|
97
|
+
type HostedScormAccessPolicy,
|
|
98
|
+
HostedScormAccessPolicyFromJSON,
|
|
99
|
+
HostedScormAccessPolicyToJSON,
|
|
100
|
+
} from '../models/HostedScormAccessPolicy';
|
|
91
101
|
import {
|
|
92
102
|
type PostClearSessions,
|
|
93
103
|
PostClearSessionsFromJSON,
|
|
@@ -193,6 +203,11 @@ import {
|
|
|
193
203
|
PutCourseVersionSectionFromJSON,
|
|
194
204
|
PutCourseVersionSectionToJSON,
|
|
195
205
|
} from '../models/PutCourseVersionSection';
|
|
206
|
+
import {
|
|
207
|
+
type PutHostedScormStatus,
|
|
208
|
+
PutHostedScormStatusFromJSON,
|
|
209
|
+
PutHostedScormStatusToJSON,
|
|
210
|
+
} from '../models/PutHostedScormStatus';
|
|
196
211
|
|
|
197
212
|
export interface DeleteCourseRequest {
|
|
198
213
|
courseId: string;
|
|
@@ -299,6 +314,13 @@ export interface GetCourseVersionProgressionRequest {
|
|
|
299
314
|
preview?: boolean;
|
|
300
315
|
}
|
|
301
316
|
|
|
317
|
+
export interface GetHostedScormExportRegistrationsRequest {
|
|
318
|
+
courseId: string;
|
|
319
|
+
exportId: string;
|
|
320
|
+
page?: number;
|
|
321
|
+
pageSize?: number;
|
|
322
|
+
}
|
|
323
|
+
|
|
302
324
|
export interface GetPortalCourseExportsRequest {
|
|
303
325
|
page?: number;
|
|
304
326
|
pageSize?: number;
|
|
@@ -424,6 +446,18 @@ export interface PutCourseVersionSectionRequest {
|
|
|
424
446
|
putCourseVersionSection: PutCourseVersionSection;
|
|
425
447
|
}
|
|
426
448
|
|
|
449
|
+
export interface PutHostedScormExportAccessRequest {
|
|
450
|
+
courseId: string;
|
|
451
|
+
exportId: string;
|
|
452
|
+
body: HostedScormAccessPolicy;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
export interface PutHostedScormExportStatusRequest {
|
|
456
|
+
courseId: string;
|
|
457
|
+
exportId: string;
|
|
458
|
+
putHostedScormStatus: PutHostedScormStatus;
|
|
459
|
+
}
|
|
460
|
+
|
|
427
461
|
/**
|
|
428
462
|
*
|
|
429
463
|
*/
|
|
@@ -1452,6 +1486,67 @@ export class CourseApi extends runtime.BaseAPI {
|
|
|
1452
1486
|
return await response.value();
|
|
1453
1487
|
}
|
|
1454
1488
|
|
|
1489
|
+
/**
|
|
1490
|
+
* Creates request options for getHostedScormExportRegistrations without sending the request
|
|
1491
|
+
*/
|
|
1492
|
+
async getHostedScormExportRegistrationsRequestOpts(requestParameters: GetHostedScormExportRegistrationsRequest): Promise<runtime.RequestOpts> {
|
|
1493
|
+
if (requestParameters['courseId'] == null) {
|
|
1494
|
+
throw new runtime.RequiredError(
|
|
1495
|
+
'courseId',
|
|
1496
|
+
'Required parameter "courseId" was null or undefined when calling getHostedScormExportRegistrations().'
|
|
1497
|
+
);
|
|
1498
|
+
}
|
|
1499
|
+
|
|
1500
|
+
if (requestParameters['exportId'] == null) {
|
|
1501
|
+
throw new runtime.RequiredError(
|
|
1502
|
+
'exportId',
|
|
1503
|
+
'Required parameter "exportId" was null or undefined when calling getHostedScormExportRegistrations().'
|
|
1504
|
+
);
|
|
1505
|
+
}
|
|
1506
|
+
|
|
1507
|
+
const queryParameters: any = {};
|
|
1508
|
+
|
|
1509
|
+
if (requestParameters['page'] != null) {
|
|
1510
|
+
queryParameters['page'] = requestParameters['page'];
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1513
|
+
if (requestParameters['pageSize'] != null) {
|
|
1514
|
+
queryParameters['page_size'] = requestParameters['pageSize'];
|
|
1515
|
+
}
|
|
1516
|
+
|
|
1517
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1518
|
+
|
|
1519
|
+
|
|
1520
|
+
let urlPath = `/courses/{courseId}/exports/{exportId}/registrations`;
|
|
1521
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
1522
|
+
urlPath = urlPath.replace('{exportId}', encodeURIComponent(String(requestParameters['exportId'])));
|
|
1523
|
+
|
|
1524
|
+
return {
|
|
1525
|
+
path: urlPath,
|
|
1526
|
+
method: 'GET',
|
|
1527
|
+
headers: headerParameters,
|
|
1528
|
+
query: queryParameters,
|
|
1529
|
+
};
|
|
1530
|
+
}
|
|
1531
|
+
|
|
1532
|
+
/**
|
|
1533
|
+
* List hosted SCORM learner registrations
|
|
1534
|
+
*/
|
|
1535
|
+
async getHostedScormExportRegistrationsRaw(requestParameters: GetHostedScormExportRegistrationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetHostedScormRegistrationList>> {
|
|
1536
|
+
const requestOptions = await this.getHostedScormExportRegistrationsRequestOpts(requestParameters);
|
|
1537
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1538
|
+
|
|
1539
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetHostedScormRegistrationListFromJSON(jsonValue));
|
|
1540
|
+
}
|
|
1541
|
+
|
|
1542
|
+
/**
|
|
1543
|
+
* List hosted SCORM learner registrations
|
|
1544
|
+
*/
|
|
1545
|
+
async getHostedScormExportRegistrations(requestParameters: GetHostedScormExportRegistrationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetHostedScormRegistrationList> {
|
|
1546
|
+
const response = await this.getHostedScormExportRegistrationsRaw(requestParameters, initOverrides);
|
|
1547
|
+
return await response.value();
|
|
1548
|
+
}
|
|
1549
|
+
|
|
1455
1550
|
/**
|
|
1456
1551
|
* Creates request options for getPortalCourseExports without sending the request
|
|
1457
1552
|
*/
|
|
@@ -2752,6 +2847,132 @@ export class CourseApi extends runtime.BaseAPI {
|
|
|
2752
2847
|
return await response.value();
|
|
2753
2848
|
}
|
|
2754
2849
|
|
|
2850
|
+
/**
|
|
2851
|
+
* Creates request options for putHostedScormExportAccess without sending the request
|
|
2852
|
+
*/
|
|
2853
|
+
async putHostedScormExportAccessRequestOpts(requestParameters: PutHostedScormExportAccessRequest): Promise<runtime.RequestOpts> {
|
|
2854
|
+
if (requestParameters['courseId'] == null) {
|
|
2855
|
+
throw new runtime.RequiredError(
|
|
2856
|
+
'courseId',
|
|
2857
|
+
'Required parameter "courseId" was null or undefined when calling putHostedScormExportAccess().'
|
|
2858
|
+
);
|
|
2859
|
+
}
|
|
2860
|
+
|
|
2861
|
+
if (requestParameters['exportId'] == null) {
|
|
2862
|
+
throw new runtime.RequiredError(
|
|
2863
|
+
'exportId',
|
|
2864
|
+
'Required parameter "exportId" was null or undefined when calling putHostedScormExportAccess().'
|
|
2865
|
+
);
|
|
2866
|
+
}
|
|
2867
|
+
|
|
2868
|
+
if (requestParameters['body'] == null) {
|
|
2869
|
+
throw new runtime.RequiredError(
|
|
2870
|
+
'body',
|
|
2871
|
+
'Required parameter "body" was null or undefined when calling putHostedScormExportAccess().'
|
|
2872
|
+
);
|
|
2873
|
+
}
|
|
2874
|
+
|
|
2875
|
+
const queryParameters: any = {};
|
|
2876
|
+
|
|
2877
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2878
|
+
|
|
2879
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2880
|
+
|
|
2881
|
+
|
|
2882
|
+
let urlPath = `/courses/{courseId}/exports/{exportId}/access`;
|
|
2883
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
2884
|
+
urlPath = urlPath.replace('{exportId}', encodeURIComponent(String(requestParameters['exportId'])));
|
|
2885
|
+
|
|
2886
|
+
return {
|
|
2887
|
+
path: urlPath,
|
|
2888
|
+
method: 'PUT',
|
|
2889
|
+
headers: headerParameters,
|
|
2890
|
+
query: queryParameters,
|
|
2891
|
+
body: requestParameters['body'] as any,
|
|
2892
|
+
};
|
|
2893
|
+
}
|
|
2894
|
+
|
|
2895
|
+
/**
|
|
2896
|
+
* Update mutable access controls for a hosted SCORM export
|
|
2897
|
+
*/
|
|
2898
|
+
async putHostedScormExportAccessRaw(requestParameters: PutHostedScormExportAccessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCourseExport>> {
|
|
2899
|
+
const requestOptions = await this.putHostedScormExportAccessRequestOpts(requestParameters);
|
|
2900
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2901
|
+
|
|
2902
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetCourseExportFromJSON(jsonValue));
|
|
2903
|
+
}
|
|
2904
|
+
|
|
2905
|
+
/**
|
|
2906
|
+
* Update mutable access controls for a hosted SCORM export
|
|
2907
|
+
*/
|
|
2908
|
+
async putHostedScormExportAccess(requestParameters: PutHostedScormExportAccessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCourseExport> {
|
|
2909
|
+
const response = await this.putHostedScormExportAccessRaw(requestParameters, initOverrides);
|
|
2910
|
+
return await response.value();
|
|
2911
|
+
}
|
|
2912
|
+
|
|
2913
|
+
/**
|
|
2914
|
+
* Creates request options for putHostedScormExportStatus without sending the request
|
|
2915
|
+
*/
|
|
2916
|
+
async putHostedScormExportStatusRequestOpts(requestParameters: PutHostedScormExportStatusRequest): Promise<runtime.RequestOpts> {
|
|
2917
|
+
if (requestParameters['courseId'] == null) {
|
|
2918
|
+
throw new runtime.RequiredError(
|
|
2919
|
+
'courseId',
|
|
2920
|
+
'Required parameter "courseId" was null or undefined when calling putHostedScormExportStatus().'
|
|
2921
|
+
);
|
|
2922
|
+
}
|
|
2923
|
+
|
|
2924
|
+
if (requestParameters['exportId'] == null) {
|
|
2925
|
+
throw new runtime.RequiredError(
|
|
2926
|
+
'exportId',
|
|
2927
|
+
'Required parameter "exportId" was null or undefined when calling putHostedScormExportStatus().'
|
|
2928
|
+
);
|
|
2929
|
+
}
|
|
2930
|
+
|
|
2931
|
+
if (requestParameters['putHostedScormStatus'] == null) {
|
|
2932
|
+
throw new runtime.RequiredError(
|
|
2933
|
+
'putHostedScormStatus',
|
|
2934
|
+
'Required parameter "putHostedScormStatus" was null or undefined when calling putHostedScormExportStatus().'
|
|
2935
|
+
);
|
|
2936
|
+
}
|
|
2937
|
+
|
|
2938
|
+
const queryParameters: any = {};
|
|
2939
|
+
|
|
2940
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2941
|
+
|
|
2942
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2943
|
+
|
|
2944
|
+
|
|
2945
|
+
let urlPath = `/courses/{courseId}/exports/{exportId}/status`;
|
|
2946
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
2947
|
+
urlPath = urlPath.replace('{exportId}', encodeURIComponent(String(requestParameters['exportId'])));
|
|
2948
|
+
|
|
2949
|
+
return {
|
|
2950
|
+
path: urlPath,
|
|
2951
|
+
method: 'PUT',
|
|
2952
|
+
headers: headerParameters,
|
|
2953
|
+
query: queryParameters,
|
|
2954
|
+
body: PutHostedScormStatusToJSON(requestParameters['putHostedScormStatus']),
|
|
2955
|
+
};
|
|
2956
|
+
}
|
|
2957
|
+
|
|
2958
|
+
/**
|
|
2959
|
+
* Revoke or reactivate a hosted SCORM export
|
|
2960
|
+
*/
|
|
2961
|
+
async putHostedScormExportStatusRaw(requestParameters: PutHostedScormExportStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCourseExport>> {
|
|
2962
|
+
const requestOptions = await this.putHostedScormExportStatusRequestOpts(requestParameters);
|
|
2963
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2964
|
+
|
|
2965
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetCourseExportFromJSON(jsonValue));
|
|
2966
|
+
}
|
|
2967
|
+
|
|
2968
|
+
/**
|
|
2969
|
+
* Revoke or reactivate a hosted SCORM export
|
|
2970
|
+
*/
|
|
2971
|
+
async putHostedScormExportStatus(requestParameters: PutHostedScormExportStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCourseExport> {
|
|
2972
|
+
const response = await this.putHostedScormExportStatusRaw(requestParameters, initOverrides);
|
|
2973
|
+
return await response.value();
|
|
2974
|
+
}
|
|
2975
|
+
|
|
2755
2976
|
}
|
|
2756
2977
|
|
|
2757
2978
|
/**
|