@easyedu/js-lsm-api 1.51.0 → 1.52.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.
Files changed (91) hide show
  1. package/.openapi-generator/FILES +26 -0
  2. package/README.md +29 -2
  3. package/dist/apis/CourseCatalogApi.d.ts +123 -0
  4. package/dist/apis/CourseCatalogApi.js +313 -0
  5. package/dist/apis/CourseShareApi.d.ts +153 -0
  6. package/dist/apis/CourseShareApi.js +385 -0
  7. package/dist/apis/PortalSublicenseApi.d.ts +36 -0
  8. package/dist/apis/PortalSublicenseApi.js +79 -0
  9. package/dist/apis/index.d.ts +3 -0
  10. package/dist/apis/index.js +3 -0
  11. package/dist/esm/apis/CourseCatalogApi.d.ts +123 -0
  12. package/dist/esm/apis/CourseCatalogApi.js +309 -0
  13. package/dist/esm/apis/CourseShareApi.d.ts +153 -0
  14. package/dist/esm/apis/CourseShareApi.js +381 -0
  15. package/dist/esm/apis/PortalSublicenseApi.d.ts +36 -0
  16. package/dist/esm/apis/PortalSublicenseApi.js +75 -0
  17. package/dist/esm/apis/index.d.ts +3 -0
  18. package/dist/esm/apis/index.js +3 -0
  19. package/dist/esm/models/CourseCatalog.d.ts +44 -0
  20. package/dist/esm/models/CourseCatalog.js +51 -0
  21. package/dist/esm/models/CourseShare.d.ts +88 -0
  22. package/dist/esm/models/CourseShare.js +85 -0
  23. package/dist/esm/models/PortalSublicense.d.ts +65 -0
  24. package/dist/esm/models/PortalSublicense.js +61 -0
  25. package/dist/esm/models/PostCourseCatalog.d.ts +38 -0
  26. package/dist/esm/models/PostCourseCatalog.js +45 -0
  27. package/dist/esm/models/PostOfferCatalog.d.ts +59 -0
  28. package/dist/esm/models/PostOfferCatalog.js +59 -0
  29. package/dist/esm/models/PostOfferCatalogResponse.d.ts +32 -0
  30. package/dist/esm/models/PostOfferCatalogResponse.js +43 -0
  31. package/dist/esm/models/PostOfferCourse.d.ts +59 -0
  32. package/dist/esm/models/PostOfferCourse.js +59 -0
  33. package/dist/esm/models/PostOfferCourseResponse.d.ts +49 -0
  34. package/dist/esm/models/PostOfferCourseResponse.js +57 -0
  35. package/dist/esm/models/PutCourseCatalog.d.ts +38 -0
  36. package/dist/esm/models/PutCourseCatalog.js +43 -0
  37. package/dist/esm/models/PutPortalSublicense.d.ts +46 -0
  38. package/dist/esm/models/PutPortalSublicense.js +45 -0
  39. package/dist/esm/models/index.d.ts +10 -0
  40. package/dist/esm/models/index.js +10 -0
  41. package/dist/models/CourseCatalog.d.ts +44 -0
  42. package/dist/models/CourseCatalog.js +58 -0
  43. package/dist/models/CourseShare.d.ts +88 -0
  44. package/dist/models/CourseShare.js +93 -0
  45. package/dist/models/PortalSublicense.d.ts +65 -0
  46. package/dist/models/PortalSublicense.js +69 -0
  47. package/dist/models/PostCourseCatalog.d.ts +38 -0
  48. package/dist/models/PostCourseCatalog.js +52 -0
  49. package/dist/models/PostOfferCatalog.d.ts +59 -0
  50. package/dist/models/PostOfferCatalog.js +67 -0
  51. package/dist/models/PostOfferCatalogResponse.d.ts +32 -0
  52. package/dist/models/PostOfferCatalogResponse.js +50 -0
  53. package/dist/models/PostOfferCourse.d.ts +59 -0
  54. package/dist/models/PostOfferCourse.js +67 -0
  55. package/dist/models/PostOfferCourseResponse.d.ts +49 -0
  56. package/dist/models/PostOfferCourseResponse.js +65 -0
  57. package/dist/models/PutCourseCatalog.d.ts +38 -0
  58. package/dist/models/PutCourseCatalog.js +50 -0
  59. package/dist/models/PutPortalSublicense.d.ts +46 -0
  60. package/dist/models/PutPortalSublicense.js +52 -0
  61. package/dist/models/index.d.ts +10 -0
  62. package/dist/models/index.js +10 -0
  63. package/docs/CourseCatalog.md +38 -0
  64. package/docs/CourseCatalogApi.md +476 -0
  65. package/docs/CourseShare.md +46 -0
  66. package/docs/CourseShareApi.md +609 -0
  67. package/docs/PortalSublicense.md +42 -0
  68. package/docs/PortalSublicenseApi.md +81 -0
  69. package/docs/PostCourseCatalog.md +36 -0
  70. package/docs/PostOfferCatalog.md +40 -0
  71. package/docs/PostOfferCatalogResponse.md +34 -0
  72. package/docs/PostOfferCourse.md +40 -0
  73. package/docs/PostOfferCourseResponse.md +36 -0
  74. package/docs/PutCourseCatalog.md +36 -0
  75. package/docs/PutPortalSublicense.md +39 -0
  76. package/package.json +1 -1
  77. package/src/apis/CourseCatalogApi.ts +395 -0
  78. package/src/apis/CourseShareApi.ts +480 -0
  79. package/src/apis/PortalSublicenseApi.ts +95 -0
  80. package/src/apis/index.ts +3 -0
  81. package/src/models/CourseCatalog.ts +84 -0
  82. package/src/models/CourseShare.ts +144 -0
  83. package/src/models/PortalSublicense.ts +111 -0
  84. package/src/models/PostCourseCatalog.ts +74 -0
  85. package/src/models/PostOfferCatalog.ts +103 -0
  86. package/src/models/PostOfferCatalogResponse.ts +66 -0
  87. package/src/models/PostOfferCourse.ts +103 -0
  88. package/src/models/PostOfferCourseResponse.ts +89 -0
  89. package/src/models/PutCourseCatalog.ts +73 -0
  90. package/src/models/PutPortalSublicense.ts +83 -0
  91. package/src/models/index.ts +10 -0
@@ -0,0 +1,88 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface CourseShare
16
+ */
17
+ export interface CourseShare {
18
+ /**
19
+ * External ID (UUID) of the share
20
+ * @type {string}
21
+ * @memberof CourseShare
22
+ */
23
+ id: string;
24
+ /**
25
+ * Internal ID of the offering portal
26
+ * @type {number}
27
+ * @memberof CourseShare
28
+ */
29
+ sourcePortalId: number;
30
+ /**
31
+ * Internal ID of the receiving portal
32
+ * @type {number}
33
+ * @memberof CourseShare
34
+ */
35
+ targetPortalId: number;
36
+ /**
37
+ * Internal ID of the offered course
38
+ * @type {number}
39
+ * @memberof CourseShare
40
+ */
41
+ courseId: number;
42
+ /**
43
+ *
44
+ * @type {CourseShareAllowedModeEnum}
45
+ * @memberof CourseShare
46
+ */
47
+ allowedMode: CourseShareAllowedModeEnum;
48
+ /**
49
+ *
50
+ * @type {CourseShareStateEnum}
51
+ * @memberof CourseShare
52
+ */
53
+ state: CourseShareStateEnum;
54
+ /**
55
+ *
56
+ * @type {boolean}
57
+ * @memberof CourseShare
58
+ */
59
+ allowResharing: boolean;
60
+ }
61
+ /**
62
+ * @export
63
+ */
64
+ export declare const CourseShareAllowedModeEnum: {
65
+ readonly Mirror: "Mirror";
66
+ readonly Clone: "Clone";
67
+ readonly Either: "Either";
68
+ };
69
+ export type CourseShareAllowedModeEnum = typeof CourseShareAllowedModeEnum[keyof typeof CourseShareAllowedModeEnum];
70
+ /**
71
+ * @export
72
+ */
73
+ export declare const CourseShareStateEnum: {
74
+ readonly Offered: "Offered";
75
+ readonly AcceptedMirror: "AcceptedMirror";
76
+ readonly AcceptedClone: "AcceptedClone";
77
+ readonly Declined: "Declined";
78
+ readonly Revoked: "Revoked";
79
+ };
80
+ export type CourseShareStateEnum = typeof CourseShareStateEnum[keyof typeof CourseShareStateEnum];
81
+ /**
82
+ * Check if a given object implements the CourseShare interface.
83
+ */
84
+ export declare function instanceOfCourseShare(value: object): value is CourseShare;
85
+ export declare function CourseShareFromJSON(json: any): CourseShare;
86
+ export declare function CourseShareFromJSONTyped(json: any, ignoreDiscriminator: boolean): CourseShare;
87
+ export declare function CourseShareToJSON(json: any): CourseShare;
88
+ export declare function CourseShareToJSONTyped(value?: CourseShare | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,85 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * @export
16
+ */
17
+ export const CourseShareAllowedModeEnum = {
18
+ Mirror: 'Mirror',
19
+ Clone: 'Clone',
20
+ Either: 'Either'
21
+ };
22
+ /**
23
+ * @export
24
+ */
25
+ export const CourseShareStateEnum = {
26
+ Offered: 'Offered',
27
+ AcceptedMirror: 'AcceptedMirror',
28
+ AcceptedClone: 'AcceptedClone',
29
+ Declined: 'Declined',
30
+ Revoked: 'Revoked'
31
+ };
32
+ /**
33
+ * Check if a given object implements the CourseShare interface.
34
+ */
35
+ export function instanceOfCourseShare(value) {
36
+ if (!('id' in value) || value['id'] === undefined)
37
+ return false;
38
+ if (!('sourcePortalId' in value) || value['sourcePortalId'] === undefined)
39
+ return false;
40
+ if (!('targetPortalId' in value) || value['targetPortalId'] === undefined)
41
+ return false;
42
+ if (!('courseId' in value) || value['courseId'] === undefined)
43
+ return false;
44
+ if (!('allowedMode' in value) || value['allowedMode'] === undefined)
45
+ return false;
46
+ if (!('state' in value) || value['state'] === undefined)
47
+ return false;
48
+ if (!('allowResharing' in value) || value['allowResharing'] === undefined)
49
+ return false;
50
+ return true;
51
+ }
52
+ export function CourseShareFromJSON(json) {
53
+ return CourseShareFromJSONTyped(json, false);
54
+ }
55
+ export function CourseShareFromJSONTyped(json, ignoreDiscriminator) {
56
+ if (json == null) {
57
+ return json;
58
+ }
59
+ return {
60
+ 'id': json['id'],
61
+ 'sourcePortalId': json['source_portal_id'],
62
+ 'targetPortalId': json['target_portal_id'],
63
+ 'courseId': json['course_id'],
64
+ 'allowedMode': json['allowed_mode'],
65
+ 'state': json['state'],
66
+ 'allowResharing': json['allow_resharing'],
67
+ };
68
+ }
69
+ export function CourseShareToJSON(json) {
70
+ return CourseShareToJSONTyped(json, false);
71
+ }
72
+ export function CourseShareToJSONTyped(value, ignoreDiscriminator = false) {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+ return {
77
+ 'id': value['id'],
78
+ 'source_portal_id': value['sourcePortalId'],
79
+ 'target_portal_id': value['targetPortalId'],
80
+ 'course_id': value['courseId'],
81
+ 'allowed_mode': value['allowedMode'],
82
+ 'state': value['state'],
83
+ 'allow_resharing': value['allowResharing'],
84
+ };
85
+ }
@@ -0,0 +1,65 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface PortalSublicense
16
+ */
17
+ export interface PortalSublicense {
18
+ /**
19
+ * Maximum active enrollments. null = unlimited.
20
+ * @type {number}
21
+ * @memberof PortalSublicense
22
+ */
23
+ seatLimit?: number | null;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof PortalSublicense
28
+ */
29
+ licenseStartAt?: number | null;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof PortalSublicense
34
+ */
35
+ licenseEndAt?: number | null;
36
+ /**
37
+ *
38
+ * @type {PortalSublicenseLicenseStateEnum}
39
+ * @memberof PortalSublicense
40
+ */
41
+ licenseState: PortalSublicenseLicenseStateEnum;
42
+ /**
43
+ * Current count of non-archived enrollments in this portal
44
+ * @type {number}
45
+ * @memberof PortalSublicense
46
+ */
47
+ activeEnrollmentCount: number;
48
+ }
49
+ /**
50
+ * @export
51
+ */
52
+ export declare const PortalSublicenseLicenseStateEnum: {
53
+ readonly Active: "Active";
54
+ readonly Suspended: "Suspended";
55
+ readonly Expired: "Expired";
56
+ };
57
+ export type PortalSublicenseLicenseStateEnum = typeof PortalSublicenseLicenseStateEnum[keyof typeof PortalSublicenseLicenseStateEnum];
58
+ /**
59
+ * Check if a given object implements the PortalSublicense interface.
60
+ */
61
+ export declare function instanceOfPortalSublicense(value: object): value is PortalSublicense;
62
+ export declare function PortalSublicenseFromJSON(json: any): PortalSublicense;
63
+ export declare function PortalSublicenseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PortalSublicense;
64
+ export declare function PortalSublicenseToJSON(json: any): PortalSublicense;
65
+ export declare function PortalSublicenseToJSONTyped(value?: PortalSublicense | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,61 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * @export
16
+ */
17
+ export const PortalSublicenseLicenseStateEnum = {
18
+ Active: 'Active',
19
+ Suspended: 'Suspended',
20
+ Expired: 'Expired'
21
+ };
22
+ /**
23
+ * Check if a given object implements the PortalSublicense interface.
24
+ */
25
+ export function instanceOfPortalSublicense(value) {
26
+ if (!('licenseState' in value) || value['licenseState'] === undefined)
27
+ return false;
28
+ if (!('activeEnrollmentCount' in value) || value['activeEnrollmentCount'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ export function PortalSublicenseFromJSON(json) {
33
+ return PortalSublicenseFromJSONTyped(json, false);
34
+ }
35
+ export function PortalSublicenseFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'seatLimit': json['seat_limit'] == null ? undefined : json['seat_limit'],
41
+ 'licenseStartAt': json['license_start_at'] == null ? undefined : json['license_start_at'],
42
+ 'licenseEndAt': json['license_end_at'] == null ? undefined : json['license_end_at'],
43
+ 'licenseState': json['license_state'],
44
+ 'activeEnrollmentCount': json['active_enrollment_count'],
45
+ };
46
+ }
47
+ export function PortalSublicenseToJSON(json) {
48
+ return PortalSublicenseToJSONTyped(json, false);
49
+ }
50
+ export function PortalSublicenseToJSONTyped(value, ignoreDiscriminator = false) {
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'seat_limit': value['seatLimit'],
56
+ 'license_start_at': value['licenseStartAt'],
57
+ 'license_end_at': value['licenseEndAt'],
58
+ 'license_state': value['licenseState'],
59
+ 'active_enrollment_count': value['activeEnrollmentCount'],
60
+ };
61
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface PostCourseCatalog
16
+ */
17
+ export interface PostCourseCatalog {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PostCourseCatalog
22
+ */
23
+ name: string;
24
+ /**
25
+ * Optional, defaults to empty string
26
+ * @type {string}
27
+ * @memberof PostCourseCatalog
28
+ */
29
+ description?: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the PostCourseCatalog interface.
33
+ */
34
+ export declare function instanceOfPostCourseCatalog(value: object): value is PostCourseCatalog;
35
+ export declare function PostCourseCatalogFromJSON(json: any): PostCourseCatalog;
36
+ export declare function PostCourseCatalogFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostCourseCatalog;
37
+ export declare function PostCourseCatalogToJSON(json: any): PostCourseCatalog;
38
+ export declare function PostCourseCatalogToJSONTyped(value?: PostCourseCatalog | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,45 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the PostCourseCatalog interface.
16
+ */
17
+ export function instanceOfPostCourseCatalog(value) {
18
+ if (!('name' in value) || value['name'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function PostCourseCatalogFromJSON(json) {
23
+ return PostCourseCatalogFromJSONTyped(json, false);
24
+ }
25
+ export function PostCourseCatalogFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'name': json['name'],
31
+ 'description': json['description'] == null ? undefined : json['description'],
32
+ };
33
+ }
34
+ export function PostCourseCatalogToJSON(json) {
35
+ return PostCourseCatalogToJSONTyped(json, false);
36
+ }
37
+ export function PostCourseCatalogToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'name': value['name'],
43
+ 'description': value['description'],
44
+ };
45
+ }
@@ -0,0 +1,59 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface PostOfferCatalog
16
+ */
17
+ export interface PostOfferCatalog {
18
+ /**
19
+ * External ID of the target (descendant) portal
20
+ * @type {string}
21
+ * @memberof PostOfferCatalog
22
+ */
23
+ targetPortalId: string;
24
+ /**
25
+ *
26
+ * @type {PostOfferCatalogAllowedModeEnum}
27
+ * @memberof PostOfferCatalog
28
+ */
29
+ allowedMode: PostOfferCatalogAllowedModeEnum;
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof PostOfferCatalog
34
+ */
35
+ allowResharing?: boolean;
36
+ /**
37
+ * Per-share seat cap applied to each generated offer, null = unlimited
38
+ * @type {number}
39
+ * @memberof PostOfferCatalog
40
+ */
41
+ seatLimit?: number | null;
42
+ }
43
+ /**
44
+ * @export
45
+ */
46
+ export declare const PostOfferCatalogAllowedModeEnum: {
47
+ readonly Mirror: "mirror";
48
+ readonly Clone: "clone";
49
+ readonly Either: "either";
50
+ };
51
+ export type PostOfferCatalogAllowedModeEnum = typeof PostOfferCatalogAllowedModeEnum[keyof typeof PostOfferCatalogAllowedModeEnum];
52
+ /**
53
+ * Check if a given object implements the PostOfferCatalog interface.
54
+ */
55
+ export declare function instanceOfPostOfferCatalog(value: object): value is PostOfferCatalog;
56
+ export declare function PostOfferCatalogFromJSON(json: any): PostOfferCatalog;
57
+ export declare function PostOfferCatalogFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostOfferCatalog;
58
+ export declare function PostOfferCatalogToJSON(json: any): PostOfferCatalog;
59
+ export declare function PostOfferCatalogToJSONTyped(value?: PostOfferCatalog | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * @export
16
+ */
17
+ export const PostOfferCatalogAllowedModeEnum = {
18
+ Mirror: 'mirror',
19
+ Clone: 'clone',
20
+ Either: 'either'
21
+ };
22
+ /**
23
+ * Check if a given object implements the PostOfferCatalog interface.
24
+ */
25
+ export function instanceOfPostOfferCatalog(value) {
26
+ if (!('targetPortalId' in value) || value['targetPortalId'] === undefined)
27
+ return false;
28
+ if (!('allowedMode' in value) || value['allowedMode'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ export function PostOfferCatalogFromJSON(json) {
33
+ return PostOfferCatalogFromJSONTyped(json, false);
34
+ }
35
+ export function PostOfferCatalogFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'targetPortalId': json['target_portal_id'],
41
+ 'allowedMode': json['allowed_mode'],
42
+ 'allowResharing': json['allow_resharing'] == null ? undefined : json['allow_resharing'],
43
+ 'seatLimit': json['seat_limit'] == null ? undefined : json['seat_limit'],
44
+ };
45
+ }
46
+ export function PostOfferCatalogToJSON(json) {
47
+ return PostOfferCatalogToJSONTyped(json, false);
48
+ }
49
+ export function PostOfferCatalogToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'target_portal_id': value['targetPortalId'],
55
+ 'allowed_mode': value['allowedMode'],
56
+ 'allow_resharing': value['allowResharing'],
57
+ 'seat_limit': value['seatLimit'],
58
+ };
59
+ }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface PostOfferCatalogResponse
16
+ */
17
+ export interface PostOfferCatalogResponse {
18
+ /**
19
+ * Number of per-course shares created from this catalog offer
20
+ * @type {number}
21
+ * @memberof PostOfferCatalogResponse
22
+ */
23
+ createdShareCount: number;
24
+ }
25
+ /**
26
+ * Check if a given object implements the PostOfferCatalogResponse interface.
27
+ */
28
+ export declare function instanceOfPostOfferCatalogResponse(value: object): value is PostOfferCatalogResponse;
29
+ export declare function PostOfferCatalogResponseFromJSON(json: any): PostOfferCatalogResponse;
30
+ export declare function PostOfferCatalogResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostOfferCatalogResponse;
31
+ export declare function PostOfferCatalogResponseToJSON(json: any): PostOfferCatalogResponse;
32
+ export declare function PostOfferCatalogResponseToJSONTyped(value?: PostOfferCatalogResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,43 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the PostOfferCatalogResponse interface.
16
+ */
17
+ export function instanceOfPostOfferCatalogResponse(value) {
18
+ if (!('createdShareCount' in value) || value['createdShareCount'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function PostOfferCatalogResponseFromJSON(json) {
23
+ return PostOfferCatalogResponseFromJSONTyped(json, false);
24
+ }
25
+ export function PostOfferCatalogResponseFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'createdShareCount': json['created_share_count'],
31
+ };
32
+ }
33
+ export function PostOfferCatalogResponseToJSON(json) {
34
+ return PostOfferCatalogResponseToJSONTyped(json, false);
35
+ }
36
+ export function PostOfferCatalogResponseToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'created_share_count': value['createdShareCount'],
42
+ };
43
+ }
@@ -0,0 +1,59 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface PostOfferCourse
16
+ */
17
+ export interface PostOfferCourse {
18
+ /**
19
+ * External ID of the target (descendant) portal
20
+ * @type {string}
21
+ * @memberof PostOfferCourse
22
+ */
23
+ targetPortalId: string;
24
+ /**
25
+ *
26
+ * @type {PostOfferCourseAllowedModeEnum}
27
+ * @memberof PostOfferCourse
28
+ */
29
+ allowedMode: PostOfferCourseAllowedModeEnum;
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof PostOfferCourse
34
+ */
35
+ allowResharing?: boolean;
36
+ /**
37
+ * Per-share seat cap, null = unlimited
38
+ * @type {number}
39
+ * @memberof PostOfferCourse
40
+ */
41
+ seatLimit?: number | null;
42
+ }
43
+ /**
44
+ * @export
45
+ */
46
+ export declare const PostOfferCourseAllowedModeEnum: {
47
+ readonly Mirror: "mirror";
48
+ readonly Clone: "clone";
49
+ readonly Either: "either";
50
+ };
51
+ export type PostOfferCourseAllowedModeEnum = typeof PostOfferCourseAllowedModeEnum[keyof typeof PostOfferCourseAllowedModeEnum];
52
+ /**
53
+ * Check if a given object implements the PostOfferCourse interface.
54
+ */
55
+ export declare function instanceOfPostOfferCourse(value: object): value is PostOfferCourse;
56
+ export declare function PostOfferCourseFromJSON(json: any): PostOfferCourse;
57
+ export declare function PostOfferCourseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostOfferCourse;
58
+ export declare function PostOfferCourseToJSON(json: any): PostOfferCourse;
59
+ export declare function PostOfferCourseToJSONTyped(value?: PostOfferCourse | null, ignoreDiscriminator?: boolean): any;