@easyedu/js-lsm-api 1.51.0 → 1.53.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 +30 -2
  3. package/dist/apis/CourseCatalogApi.d.ts +138 -0
  4. package/dist/apis/CourseCatalogApi.js +352 -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 +138 -0
  12. package/dist/esm/apis/CourseCatalogApi.js +348 -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 +544 -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 +447 -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,93 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * LMS API
6
+ * LMS API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CourseShareStateEnum = exports.CourseShareAllowedModeEnum = void 0;
17
+ exports.instanceOfCourseShare = instanceOfCourseShare;
18
+ exports.CourseShareFromJSON = CourseShareFromJSON;
19
+ exports.CourseShareFromJSONTyped = CourseShareFromJSONTyped;
20
+ exports.CourseShareToJSON = CourseShareToJSON;
21
+ exports.CourseShareToJSONTyped = CourseShareToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.CourseShareAllowedModeEnum = {
26
+ Mirror: 'Mirror',
27
+ Clone: 'Clone',
28
+ Either: 'Either'
29
+ };
30
+ /**
31
+ * @export
32
+ */
33
+ exports.CourseShareStateEnum = {
34
+ Offered: 'Offered',
35
+ AcceptedMirror: 'AcceptedMirror',
36
+ AcceptedClone: 'AcceptedClone',
37
+ Declined: 'Declined',
38
+ Revoked: 'Revoked'
39
+ };
40
+ /**
41
+ * Check if a given object implements the CourseShare interface.
42
+ */
43
+ function instanceOfCourseShare(value) {
44
+ if (!('id' in value) || value['id'] === undefined)
45
+ return false;
46
+ if (!('sourcePortalId' in value) || value['sourcePortalId'] === undefined)
47
+ return false;
48
+ if (!('targetPortalId' in value) || value['targetPortalId'] === undefined)
49
+ return false;
50
+ if (!('courseId' in value) || value['courseId'] === undefined)
51
+ return false;
52
+ if (!('allowedMode' in value) || value['allowedMode'] === undefined)
53
+ return false;
54
+ if (!('state' in value) || value['state'] === undefined)
55
+ return false;
56
+ if (!('allowResharing' in value) || value['allowResharing'] === undefined)
57
+ return false;
58
+ return true;
59
+ }
60
+ function CourseShareFromJSON(json) {
61
+ return CourseShareFromJSONTyped(json, false);
62
+ }
63
+ function CourseShareFromJSONTyped(json, ignoreDiscriminator) {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+ 'id': json['id'],
69
+ 'sourcePortalId': json['source_portal_id'],
70
+ 'targetPortalId': json['target_portal_id'],
71
+ 'courseId': json['course_id'],
72
+ 'allowedMode': json['allowed_mode'],
73
+ 'state': json['state'],
74
+ 'allowResharing': json['allow_resharing'],
75
+ };
76
+ }
77
+ function CourseShareToJSON(json) {
78
+ return CourseShareToJSONTyped(json, false);
79
+ }
80
+ function CourseShareToJSONTyped(value, ignoreDiscriminator = false) {
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+ return {
85
+ 'id': value['id'],
86
+ 'source_portal_id': value['sourcePortalId'],
87
+ 'target_portal_id': value['targetPortalId'],
88
+ 'course_id': value['courseId'],
89
+ 'allowed_mode': value['allowedMode'],
90
+ 'state': value['state'],
91
+ 'allow_resharing': value['allowResharing'],
92
+ };
93
+ }
@@ -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,69 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * LMS API
6
+ * LMS API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.PortalSublicenseLicenseStateEnum = void 0;
17
+ exports.instanceOfPortalSublicense = instanceOfPortalSublicense;
18
+ exports.PortalSublicenseFromJSON = PortalSublicenseFromJSON;
19
+ exports.PortalSublicenseFromJSONTyped = PortalSublicenseFromJSONTyped;
20
+ exports.PortalSublicenseToJSON = PortalSublicenseToJSON;
21
+ exports.PortalSublicenseToJSONTyped = PortalSublicenseToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.PortalSublicenseLicenseStateEnum = {
26
+ Active: 'Active',
27
+ Suspended: 'Suspended',
28
+ Expired: 'Expired'
29
+ };
30
+ /**
31
+ * Check if a given object implements the PortalSublicense interface.
32
+ */
33
+ function instanceOfPortalSublicense(value) {
34
+ if (!('licenseState' in value) || value['licenseState'] === undefined)
35
+ return false;
36
+ if (!('activeEnrollmentCount' in value) || value['activeEnrollmentCount'] === undefined)
37
+ return false;
38
+ return true;
39
+ }
40
+ function PortalSublicenseFromJSON(json) {
41
+ return PortalSublicenseFromJSONTyped(json, false);
42
+ }
43
+ function PortalSublicenseFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'seatLimit': json['seat_limit'] == null ? undefined : json['seat_limit'],
49
+ 'licenseStartAt': json['license_start_at'] == null ? undefined : json['license_start_at'],
50
+ 'licenseEndAt': json['license_end_at'] == null ? undefined : json['license_end_at'],
51
+ 'licenseState': json['license_state'],
52
+ 'activeEnrollmentCount': json['active_enrollment_count'],
53
+ };
54
+ }
55
+ function PortalSublicenseToJSON(json) {
56
+ return PortalSublicenseToJSONTyped(json, false);
57
+ }
58
+ function PortalSublicenseToJSONTyped(value, ignoreDiscriminator = false) {
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+ return {
63
+ 'seat_limit': value['seatLimit'],
64
+ 'license_start_at': value['licenseStartAt'],
65
+ 'license_end_at': value['licenseEndAt'],
66
+ 'license_state': value['licenseState'],
67
+ 'active_enrollment_count': value['activeEnrollmentCount'],
68
+ };
69
+ }
@@ -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,52 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * LMS API
6
+ * LMS API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfPostCourseCatalog = instanceOfPostCourseCatalog;
17
+ exports.PostCourseCatalogFromJSON = PostCourseCatalogFromJSON;
18
+ exports.PostCourseCatalogFromJSONTyped = PostCourseCatalogFromJSONTyped;
19
+ exports.PostCourseCatalogToJSON = PostCourseCatalogToJSON;
20
+ exports.PostCourseCatalogToJSONTyped = PostCourseCatalogToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the PostCourseCatalog interface.
23
+ */
24
+ function instanceOfPostCourseCatalog(value) {
25
+ if (!('name' in value) || value['name'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function PostCourseCatalogFromJSON(json) {
30
+ return PostCourseCatalogFromJSONTyped(json, false);
31
+ }
32
+ function PostCourseCatalogFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'name': json['name'],
38
+ 'description': json['description'] == null ? undefined : json['description'],
39
+ };
40
+ }
41
+ function PostCourseCatalogToJSON(json) {
42
+ return PostCourseCatalogToJSONTyped(json, false);
43
+ }
44
+ function PostCourseCatalogToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'name': value['name'],
50
+ 'description': value['description'],
51
+ };
52
+ }
@@ -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,67 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * LMS API
6
+ * LMS API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.PostOfferCatalogAllowedModeEnum = void 0;
17
+ exports.instanceOfPostOfferCatalog = instanceOfPostOfferCatalog;
18
+ exports.PostOfferCatalogFromJSON = PostOfferCatalogFromJSON;
19
+ exports.PostOfferCatalogFromJSONTyped = PostOfferCatalogFromJSONTyped;
20
+ exports.PostOfferCatalogToJSON = PostOfferCatalogToJSON;
21
+ exports.PostOfferCatalogToJSONTyped = PostOfferCatalogToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.PostOfferCatalogAllowedModeEnum = {
26
+ Mirror: 'mirror',
27
+ Clone: 'clone',
28
+ Either: 'either'
29
+ };
30
+ /**
31
+ * Check if a given object implements the PostOfferCatalog interface.
32
+ */
33
+ function instanceOfPostOfferCatalog(value) {
34
+ if (!('targetPortalId' in value) || value['targetPortalId'] === undefined)
35
+ return false;
36
+ if (!('allowedMode' in value) || value['allowedMode'] === undefined)
37
+ return false;
38
+ return true;
39
+ }
40
+ function PostOfferCatalogFromJSON(json) {
41
+ return PostOfferCatalogFromJSONTyped(json, false);
42
+ }
43
+ function PostOfferCatalogFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'targetPortalId': json['target_portal_id'],
49
+ 'allowedMode': json['allowed_mode'],
50
+ 'allowResharing': json['allow_resharing'] == null ? undefined : json['allow_resharing'],
51
+ 'seatLimit': json['seat_limit'] == null ? undefined : json['seat_limit'],
52
+ };
53
+ }
54
+ function PostOfferCatalogToJSON(json) {
55
+ return PostOfferCatalogToJSONTyped(json, false);
56
+ }
57
+ function PostOfferCatalogToJSONTyped(value, ignoreDiscriminator = false) {
58
+ if (value == null) {
59
+ return value;
60
+ }
61
+ return {
62
+ 'target_portal_id': value['targetPortalId'],
63
+ 'allowed_mode': value['allowedMode'],
64
+ 'allow_resharing': value['allowResharing'],
65
+ 'seat_limit': value['seatLimit'],
66
+ };
67
+ }
@@ -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,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * LMS API
6
+ * LMS API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfPostOfferCatalogResponse = instanceOfPostOfferCatalogResponse;
17
+ exports.PostOfferCatalogResponseFromJSON = PostOfferCatalogResponseFromJSON;
18
+ exports.PostOfferCatalogResponseFromJSONTyped = PostOfferCatalogResponseFromJSONTyped;
19
+ exports.PostOfferCatalogResponseToJSON = PostOfferCatalogResponseToJSON;
20
+ exports.PostOfferCatalogResponseToJSONTyped = PostOfferCatalogResponseToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the PostOfferCatalogResponse interface.
23
+ */
24
+ function instanceOfPostOfferCatalogResponse(value) {
25
+ if (!('createdShareCount' in value) || value['createdShareCount'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function PostOfferCatalogResponseFromJSON(json) {
30
+ return PostOfferCatalogResponseFromJSONTyped(json, false);
31
+ }
32
+ function PostOfferCatalogResponseFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'createdShareCount': json['created_share_count'],
38
+ };
39
+ }
40
+ function PostOfferCatalogResponseToJSON(json) {
41
+ return PostOfferCatalogResponseToJSONTyped(json, false);
42
+ }
43
+ function PostOfferCatalogResponseToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'created_share_count': value['createdShareCount'],
49
+ };
50
+ }
@@ -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;
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * LMS API
6
+ * LMS API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.PostOfferCourseAllowedModeEnum = void 0;
17
+ exports.instanceOfPostOfferCourse = instanceOfPostOfferCourse;
18
+ exports.PostOfferCourseFromJSON = PostOfferCourseFromJSON;
19
+ exports.PostOfferCourseFromJSONTyped = PostOfferCourseFromJSONTyped;
20
+ exports.PostOfferCourseToJSON = PostOfferCourseToJSON;
21
+ exports.PostOfferCourseToJSONTyped = PostOfferCourseToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.PostOfferCourseAllowedModeEnum = {
26
+ Mirror: 'mirror',
27
+ Clone: 'clone',
28
+ Either: 'either'
29
+ };
30
+ /**
31
+ * Check if a given object implements the PostOfferCourse interface.
32
+ */
33
+ function instanceOfPostOfferCourse(value) {
34
+ if (!('targetPortalId' in value) || value['targetPortalId'] === undefined)
35
+ return false;
36
+ if (!('allowedMode' in value) || value['allowedMode'] === undefined)
37
+ return false;
38
+ return true;
39
+ }
40
+ function PostOfferCourseFromJSON(json) {
41
+ return PostOfferCourseFromJSONTyped(json, false);
42
+ }
43
+ function PostOfferCourseFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'targetPortalId': json['target_portal_id'],
49
+ 'allowedMode': json['allowed_mode'],
50
+ 'allowResharing': json['allow_resharing'] == null ? undefined : json['allow_resharing'],
51
+ 'seatLimit': json['seat_limit'] == null ? undefined : json['seat_limit'],
52
+ };
53
+ }
54
+ function PostOfferCourseToJSON(json) {
55
+ return PostOfferCourseToJSONTyped(json, false);
56
+ }
57
+ function PostOfferCourseToJSONTyped(value, ignoreDiscriminator = false) {
58
+ if (value == null) {
59
+ return value;
60
+ }
61
+ return {
62
+ 'target_portal_id': value['targetPortalId'],
63
+ 'allowed_mode': value['allowedMode'],
64
+ 'allow_resharing': value['allowResharing'],
65
+ 'seat_limit': value['seatLimit'],
66
+ };
67
+ }