@iblai/iblai-api 4.450.0-core → 4.452.0-core

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 (83) hide show
  1. package/dist/index.cjs.js +763 -60
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +763 -61
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/index.umd.js +763 -60
  6. package/dist/index.umd.js.map +1 -1
  7. package/dist/types/index.d.ts +15 -0
  8. package/dist/types/models/Activity.d.ts +4 -0
  9. package/dist/types/models/Deal.d.ts +4 -0
  10. package/dist/types/models/LeadSource.d.ts +4 -0
  11. package/dist/types/models/Member.d.ts +16 -0
  12. package/dist/types/models/Organization.d.ts +4 -0
  13. package/dist/types/models/Overview.d.ts +4 -0
  14. package/dist/types/models/PaginatedMemberList.d.ts +7 -0
  15. package/dist/types/models/PaginatedWebFormList.d.ts +7 -0
  16. package/dist/types/models/PaginatedWebFormSubmissionList.d.ts +7 -0
  17. package/dist/types/models/PatchedActivity.d.ts +4 -0
  18. package/dist/types/models/PatchedDeal.d.ts +4 -0
  19. package/dist/types/models/PatchedLeadSource.d.ts +4 -0
  20. package/dist/types/models/PatchedOrganization.d.ts +4 -0
  21. package/dist/types/models/PatchedPerson.d.ts +4 -0
  22. package/dist/types/models/PatchedPipeline.d.ts +4 -0
  23. package/dist/types/models/PatchedSavedView.d.ts +4 -0
  24. package/dist/types/models/PatchedTag.d.ts +4 -0
  25. package/dist/types/models/PatchedWebForm.d.ts +41 -0
  26. package/dist/types/models/Person.d.ts +4 -0
  27. package/dist/types/models/Pipeline.d.ts +4 -0
  28. package/dist/types/models/SavedView.d.ts +4 -0
  29. package/dist/types/models/SearchDeal.d.ts +4 -0
  30. package/dist/types/models/SearchOrganization.d.ts +5 -1
  31. package/dist/types/models/SearchPerson.d.ts +4 -0
  32. package/dist/types/models/Tag.d.ts +4 -0
  33. package/dist/types/models/Type240Enum.d.ts +20 -0
  34. package/dist/types/models/WebForm.d.ts +41 -0
  35. package/dist/types/models/WebFormField.d.ts +20 -0
  36. package/dist/types/models/WebFormPublic.d.ts +25 -0
  37. package/dist/types/models/WebFormPublicField.d.ts +10 -0
  38. package/dist/types/models/WebFormRouting.d.ts +45 -0
  39. package/dist/types/models/WebFormSubmission.d.ts +15 -0
  40. package/dist/types/models/WebFormSubmitRequest.d.ts +15 -0
  41. package/dist/types/models/WebFormSubmitResponse.d.ts +4 -0
  42. package/dist/types/services/CrmService.d.ts +662 -83
  43. package/dist/types/services/V1CoursesService.d.ts +25 -0
  44. package/package.json +1 -1
  45. package/sdk_schema.yml +1895 -10
  46. package/src/core/OpenAPI.ts +1 -1
  47. package/src/index.ts +15 -0
  48. package/src/models/Activity.ts +4 -0
  49. package/src/models/Deal.ts +4 -0
  50. package/src/models/LeadSource.ts +4 -0
  51. package/src/models/Member.ts +21 -0
  52. package/src/models/Organization.ts +4 -0
  53. package/src/models/Overview.ts +4 -0
  54. package/src/models/PaginatedMemberList.ts +12 -0
  55. package/src/models/PaginatedWebFormList.ts +12 -0
  56. package/src/models/PaginatedWebFormSubmissionList.ts +12 -0
  57. package/src/models/PatchedActivity.ts +4 -0
  58. package/src/models/PatchedDeal.ts +4 -0
  59. package/src/models/PatchedLeadSource.ts +4 -0
  60. package/src/models/PatchedOrganization.ts +4 -0
  61. package/src/models/PatchedPerson.ts +4 -0
  62. package/src/models/PatchedPipeline.ts +4 -0
  63. package/src/models/PatchedSavedView.ts +4 -0
  64. package/src/models/PatchedTag.ts +4 -0
  65. package/src/models/PatchedWebForm.ts +46 -0
  66. package/src/models/Person.ts +4 -0
  67. package/src/models/Pipeline.ts +4 -0
  68. package/src/models/SavedView.ts +4 -0
  69. package/src/models/SearchDeal.ts +4 -0
  70. package/src/models/SearchOrganization.ts +5 -1
  71. package/src/models/SearchPerson.ts +4 -0
  72. package/src/models/Tag.ts +4 -0
  73. package/src/models/Type240Enum.ts +24 -0
  74. package/src/models/WebForm.ts +46 -0
  75. package/src/models/WebFormField.ts +25 -0
  76. package/src/models/WebFormPublic.ts +30 -0
  77. package/src/models/WebFormPublicField.ts +15 -0
  78. package/src/models/WebFormRouting.ts +50 -0
  79. package/src/models/WebFormSubmission.ts +20 -0
  80. package/src/models/WebFormSubmitRequest.ts +20 -0
  81. package/src/models/WebFormSubmitResponse.ts +9 -0
  82. package/src/services/CrmService.ts +1151 -38
  83. package/src/services/V1CoursesService.ts +52 -0
@@ -0,0 +1,52 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { CancelablePromise } from '../core/CancelablePromise';
6
+ import { OpenAPI } from '../core/OpenAPI';
7
+ import { request as __request } from '../core/request';
8
+ export class V1CoursesService {
9
+ /**
10
+ * Get course metadata
11
+ * The course's metadata in the shape of the edX plugin's `api/ibl/v1/course_metadata` response: Studio's course details, the DM's public course metadata, `course_outline` (sections down to units), `course_price`, `certificate_available` and the display fields. Served from what the DM stores, as of the course's last Studio save and course info sync.
12
+ *
13
+ * Anonymous callers get courses whose catalog visibility is public. Other callers are scoped to their token's platform; a course hidden from the catalog needs a platform admin or staff member. Service accounts name the platform in `iblai-org`. A course that is missing, on another platform or not visible to the caller is 404.
14
+ * @returns any
15
+ * @throws ApiError
16
+ */
17
+ public static v1CoursesMetadataRetrieve({
18
+ courseId,
19
+ courseKey,
20
+ iblaiOrg,
21
+ }: {
22
+ /**
23
+ * The course id, URL-encoded. Required unless course_key is given.
24
+ */
25
+ courseId?: string,
26
+ /**
27
+ * Alias of course_id: the parameter the edX plugin endpoint took.
28
+ */
29
+ courseKey?: string,
30
+ /**
31
+ * Platform key. Required for service accounts. Other callers are scoped to their token's platform and get 403 if this names another.
32
+ */
33
+ iblaiOrg?: string,
34
+ }): CancelablePromise<Record<string, any>> {
35
+ return __request(OpenAPI, {
36
+ method: 'GET',
37
+ url: '/v1/courses/metadata',
38
+ headers: {
39
+ 'iblai-org': iblaiOrg,
40
+ },
41
+ query: {
42
+ 'course_id': courseId,
43
+ 'course_key': courseKey,
44
+ },
45
+ errors: {
46
+ 400: `course_id missing, or a service account omitted iblai-org.`,
47
+ 403: `iblai-org names another platform.`,
48
+ 404: `Course or platform not found.`,
49
+ },
50
+ });
51
+ }
52
+ }