Created
May 20, 2025 20:12
-
-
Save ochaminho/0a87fe3170e9c966d53bbc1be683ac9c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/packages/react-header/src/graphql/api-platform-graphql.ts b/packages/react-header/src/graphql/api-platform-graphql.ts | |
| index 8fff128bd..dbd7f3d19 100644 | |
| --- a/packages/react-header/src/graphql/api-platform-graphql.ts | |
| +++ b/packages/react-header/src/graphql/api-platform-graphql.ts | |
| @@ -67,6 +67,7 @@ export type Scalars = { | |
| NonPositiveFloat: any; | |
| NonPositiveInt: any; | |
| ObjectID: any; | |
| + OffsetInSeconds: any; | |
| PhoneNumber: any; | |
| Port: any; | |
| PositiveFloat: any; | |
| @@ -858,6 +859,15 @@ export type Category = { | |
| subcategories: Array<SubCategory>; | |
| }; | |
| +/** Category navigation list item. */ | |
| +export type CategoryNavListItem = NavListItem & { | |
| + __typename?: 'CategoryNavListItem'; | |
| + /** The category this item represents. */ | |
| + category: CourseCategory; | |
| + /** List of child navigation items. */ | |
| + children: Array<Maybe<NavListItem>>; | |
| +}; | |
| + | |
| /** Certification Exam for earning a Badge */ | |
| export type CertificationExam = { | |
| __typename?: 'CertificationExam'; | |
| @@ -930,6 +940,15 @@ export enum ChatFeedbackTargetType { | |
| Unspecified = 'UNSPECIFIED', | |
| } | |
| +/** A micro-content representing a code block */ | |
| +export type CodeBlock = { | |
| + __typename?: 'CodeBlock'; | |
| + /** The code value */ | |
| + code: Scalars['String']; | |
| + /** The language of the code */ | |
| + language: Scalars['String']; | |
| +}; | |
| + | |
| /** Type of the files withing coding exercise templates */ | |
| export type CodeFile = { | |
| __typename?: 'CodeFile'; | |
| @@ -1046,6 +1065,16 @@ export type ContentCollection = { | |
| id: Scalars['ID']; | |
| }; | |
| +/** Source of a lesson component */ | |
| +export enum ContentSourceType { | |
| + /** The source is the AI */ | |
| + Ai = 'AI', | |
| + /** The source is the instructor */ | |
| + Instructor = 'INSTRUCTOR', | |
| + /** The source is mixed */ | |
| + Mixed = 'MIXED', | |
| +} | |
| + | |
| /** The Course object. */ | |
| export type Course = LearningPathItem & | |
| LearningProduct & { | |
| @@ -1082,6 +1111,10 @@ export type Course = LearningPathItem & | |
| instructors: Array<CourseInstructor>; | |
| /** Whether the course is enrolled by the current user or not */ | |
| isEnrolled: Scalars['Boolean']; | |
| + /** Whether the course is a free course or not */ | |
| + isFree: Scalars['Boolean']; | |
| + /** Indicates if Course is a practice test only, made to prepare for a certification exam */ | |
| + isPracticeTestCourse: Scalars['Boolean']; | |
| /** What you will learn in this course */ | |
| learningOutcomes: Array<Scalars['String']>; | |
| /** Instruction level of the course */ | |
| @@ -1102,6 +1135,8 @@ export type Course = LearningPathItem & | |
| promoVideo?: Maybe<CoursePromoVideo>; | |
| /** How do students rate the course */ | |
| rating: CourseRating; | |
| + /** Subscription specific course properties */ | |
| + subscriptionInfo?: Maybe<CourseSubscriptionInfo>; | |
| /** Who should attend the course */ | |
| targetAudience: Array<Scalars['String']>; | |
| /** Title of the course. */ | |
| @@ -1114,6 +1149,8 @@ export type Course = LearningPathItem & | |
| urlAutoEnroll?: Maybe<Scalars['URL']>; | |
| /** The URL to access the course landing page */ | |
| urlCourseLanding?: Maybe<Scalars['URL']>; | |
| + /** The URL to access the course taking page */ | |
| + urlCourseTaking?: Maybe<Scalars['URL']>; | |
| /** Mobile Native deep link of the course */ | |
| urlMobileNativeDeeplink: Scalars['URL']; | |
| /** Versioned identifier of the course */ | |
| @@ -1202,9 +1239,28 @@ export type CourseCategory = Category & { | |
| url: Scalars['URL']; | |
| }; | |
| +/** Count of the course curriculum content by type */ | |
| +export type CourseCurriculumContentCounts = { | |
| + __typename?: 'CourseCurriculumContentCounts'; | |
| + /** Count of all coding exercises in the course curriculum */ | |
| + codingExercisesCount: Scalars['Int']; | |
| + /** Count of all lectures in the course curriculum */ | |
| + lecturesCount: Scalars['Int']; | |
| + /** Count of all practice assignments in the course curriculum */ | |
| + practiceAssignmentsCount: Scalars['Int']; | |
| + /** Count of all questions in the PracticeTests in the course curriculum */ | |
| + practiceTestQuestionsCount: Scalars['Int']; | |
| + /** Count of all practice tests in the course curriculum */ | |
| + practiceTestsCount: Scalars['Int']; | |
| + /** Count of all quizzes in the course curriculum */ | |
| + quizzesCount: Scalars['Int']; | |
| +}; | |
| + | |
| /** Course enrollment */ | |
| export type CourseEnrollment = { | |
| __typename?: 'CourseEnrollment'; | |
| + /** Time at which the enrollment was archived (null if not archived). */ | |
| + archiveTime?: Maybe<Scalars['DateTime']>; | |
| /** Completion percentage for the course */ | |
| completionPercentage?: Maybe<Scalars['NonNegativeFloat']>; | |
| /** The course that the current user is enrolled in */ | |
| @@ -1219,7 +1275,7 @@ export type CourseEnrollment = { | |
| export type CourseEnrollments = { | |
| __typename?: 'CourseEnrollments'; | |
| /** Exact count of how many students are there currently enrolled (course purchase and subscription). Requires token scope 'udemy:application' to access. */ | |
| - count: Scalars['Int']; | |
| + count?: Maybe<Scalars['Int']>; | |
| /** | |
| * Count of how many students are currently enrolled (course purchase and subscription) rounded to the nearest decimal | |
| * Exception: if there are fewer than 10 enrollments we show the exact amount (instead of 0) | |
| @@ -1227,6 +1283,14 @@ export type CourseEnrollments = { | |
| roundedCount: Scalars['Int']; | |
| }; | |
| +/** Filters for course enrollments */ | |
| +export type CourseEnrollmentsFilters = { | |
| + /** Maximum course progress percentage */ | |
| + maxCourseProgress?: InputMaybe<Scalars['NonNegativeFloat']>; | |
| + /** Minimum course progress percentage */ | |
| + minCourseProgress?: InputMaybe<Scalars['NonNegativeFloat']>; | |
| +}; | |
| + | |
| /** Paged course enrollments */ | |
| export type CourseEnrollmentsPaged = { | |
| __typename?: 'CourseEnrollmentsPaged'; | |
| @@ -1236,6 +1300,16 @@ export type CourseEnrollmentsPaged = { | |
| cursor?: Maybe<Scalars['String']>; | |
| }; | |
| +/** Sort order options for course enrollments */ | |
| +export type CourseEnrollmentsSortOrder = { | |
| + /** Course title sort order */ | |
| + courseTitle?: InputMaybe<SortDirection>; | |
| + /** Enrollment time sort order */ | |
| + enrollmentTime?: InputMaybe<SortDirection>; | |
| + /** Last accessed time sort order */ | |
| + lastAccessedTime?: InputMaybe<SortDirection>; | |
| +}; | |
| + | |
| /** Course images by varying dimensions */ | |
| export type CourseImages = { | |
| __typename?: 'CourseImages'; | |
| @@ -1259,6 +1333,8 @@ export type CourseImages = { | |
| px304x171?: Maybe<Scalars['String']>; | |
| /** Course preview image with 480x270 dimensions in pixels */ | |
| px480x270?: Maybe<Scalars['String']>; | |
| + /** Course preview image with 750x422 dimensions in pixels */ | |
| + px750x422?: Maybe<Scalars['String']>; | |
| }; | |
| /** Instructor for a course */ | |
| @@ -1311,16 +1387,36 @@ export type CourseRating = { | |
| count: Scalars['Int']; | |
| }; | |
| +/** Additional search context for specific UX cases */ | |
| +export type CourseSearchContext = { | |
| + /** Enables debugging mode for search queries. */ | |
| + isDebug?: InputMaybe<Scalars['Boolean']>; | |
| + /** The original query written before any manipulation, e.g., 'pyt' when autocompleted to 'python'. */ | |
| + originalQuery?: InputMaybe<Scalars['String']>; | |
| + /** Refined query for the search, used for related or narrowing search. */ | |
| + refinedQuery?: InputMaybe<Scalars['String']>; | |
| + /** Trigger type for the course search. */ | |
| + triggerType?: InputMaybe<CourseSearchTriggerType>; | |
| +}; | |
| + | |
| /** Search filters to apply on search request */ | |
| export type CourseSearchFilters = { | |
| /** Filter results based on closed caption language */ | |
| closedCaptionLanguage?: InputMaybe<Array<LanguageCode>>; | |
| + /** Whether or not course is for certification preparation */ | |
| + isCertificationPrep?: InputMaybe<Scalars['Boolean']>; | |
| /** Filter results based on course language */ | |
| language?: InputMaybe<Array<LanguageCode>>; | |
| /** Filter course based on difficulty level */ | |
| level?: InputMaybe<Array<DifficultyLevel>>; | |
| /** Minimum average rating for the course. Ranges from 0 to 5.0. */ | |
| minAverageRating?: InputMaybe<Scalars['AverageRating']>; | |
| + /** | |
| + * Determines if the course is available in the user's Consumer Subscription when user has one. | |
| + * If true, only courses included in the user's Consumer Subscription are shown. | |
| + * If false, only purchasable courses outside the user's Consumer Subscription are shown. | |
| + */ | |
| + mustBeInConsumerSubscription?: InputMaybe<Scalars['Boolean']>; | |
| /** Whether or not course must have closed captions */ | |
| mustHaveClosedCaption?: InputMaybe<Scalars['Boolean']>; | |
| /** Whether or not course must have coding exercises */ | |
| @@ -1329,8 +1425,14 @@ export type CourseSearchFilters = { | |
| mustHavePracticeTest?: InputMaybe<Scalars['Boolean']>; | |
| /** Whether or not course must have quizzes */ | |
| mustHaveQuiz?: InputMaybe<Scalars['Boolean']>; | |
| + /** Whether or not course must have roleplays */ | |
| + mustHaveRoleplay?: InputMaybe<Scalars['Boolean']>; | |
| /** Whether or not course must have workspaces */ | |
| mustHaveWorkspace?: InputMaybe<Scalars['Boolean']>; | |
| + /** Filter courses based on price, paid or free */ | |
| + price?: InputMaybe<Array<PriceOption>>; | |
| + /** Filter courses that solely consist of practice tests */ | |
| + showPracticeTestCoursesOnly?: InputMaybe<Scalars['Boolean']>; | |
| /** Filter courses based on topics */ | |
| topicIds?: InputMaybe<Array<Scalars['ID']>>; | |
| /** Filter course based on video length */ | |
| @@ -1342,14 +1444,55 @@ export type CourseSearchResponse = Paginated & { | |
| __typename?: 'CourseSearchResponse'; | |
| /** Total number of Courses matching the search query and filters. */ | |
| count: Scalars['Int']; | |
| - /** List of Course objects. */ | |
| + /** | |
| + * List of Course objects. | |
| + * @deprecated Use results instead | |
| + */ | |
| courses: Array<Course>; | |
| /** Identifies available search filter facets. */ | |
| filterOptions: Array<SearchAggregation>; | |
| + /** Metadata for whole search result used by front end */ | |
| + metadata?: Maybe<CourseSearchResponseMetadata>; | |
| /** The current page number, 0 based */ | |
| page: Scalars['Int']; | |
| /** The total amount of pages in search response */ | |
| pageCount: Scalars['Int']; | |
| + /** List of CourseSearchResult objects containing course and additional search related fields. */ | |
| + results: Array<Maybe<CourseSearchResult>>; | |
| +}; | |
| + | |
| +/** Contains info for front end related stuff and tracking info. This data is calculated by backend service and used by Udemy front end. If you are an external user, you shouldn't need this. */ | |
| +export type CourseSearchResponseMetadata = { | |
| + __typename?: 'CourseSearchResponseMetadata'; | |
| + /** Associated topic for the search response. */ | |
| + associatedTopic?: Maybe<Topic>; | |
| + /** Certification topic for the search response. */ | |
| + certificationTopic?: Maybe<Topic>; | |
| + /** Debug information for the search response. */ | |
| + debug?: Maybe<Scalars['JSON']>; | |
| + /** For the request, show experiment metadata results like bucketing info, experiment IDs of assigned feature variants. */ | |
| + experimentResults: Array<FeatureVariantAssignment>; | |
| + /** Whether there are available courses for organizations in the search result or not. */ | |
| + hasOrgCourses: Scalars['Boolean']; | |
| + /** Original search query, without any manipulation. */ | |
| + originalQuery: Scalars['String']; | |
| + /** Search query suggestion containing the suggested query and the suggestion type. */ | |
| + querySuggestion?: Maybe<SearchQuerySuggestion>; | |
| + /** Search analytics tracking id; for uniquely identifying this query and result set; for this request. */ | |
| + trackingId: Scalars['String']; | |
| +}; | |
| + | |
| +/** Represents a course search result with additional data about the search response. */ | |
| +export type CourseSearchResult = { | |
| + __typename?: 'CourseSearchResult'; | |
| + /** The course information returned in the search result. */ | |
| + course: Course; | |
| + /** Curriculum items that match with the search query. */ | |
| + curriculumItemMatches: Array<Maybe<CurriculumItem>>; | |
| + /** Debugging information related to the search process for this course. */ | |
| + searchDebugFeatures?: Maybe<Scalars['JSON']>; | |
| + /** Unique analytics ID for this instance of Course returned from the server in this request. */ | |
| + trackingId: Scalars['String']; | |
| }; | |
| /** Sort order for courses in search response */ | |
| @@ -1364,6 +1507,31 @@ export enum CourseSearchSortType { | |
| Time = 'TIME', | |
| } | |
| +/** Trigger types for the course search. */ | |
| +export enum CourseSearchTriggerType { | |
| + /** | |
| + * Course search triggered by a browse certification page | |
| + * This includes pages like: | |
| + * - https://www.udemy.com/browse/certification/ | |
| + * - https://www.udemy.com/browse/certification/... (e.g., https://www.udemy.com/browse/certification/aws-certifications/) | |
| + */ | |
| + BrowseCertification = 'BROWSE_CERTIFICATION', | |
| + /** User clicks on a narrowing search suggestion */ | |
| + NarrowingSearch = 'NARROWING_SEARCH', | |
| + /** User clicks on recommendation unit */ | |
| + Recommendation = 'RECOMMENDATION', | |
| + /** User clicks on related searches suggestion */ | |
| + RelatedSearches = 'RELATED_SEARCHES', | |
| + /** User selects a search autocomplete */ | |
| + SearchAutocomplete = 'SEARCH_AUTOCOMPLETE', | |
| + /** User insists on the original query, exactly as typed */ | |
| + SearchOriginalQuery = 'SEARCH_ORIGINAL_QUERY', | |
| + /** User selects a search suggested query */ | |
| + SearchQuerySuggestion = 'SEARCH_QUERY_SUGGESTION', | |
| + /** User inputs query in the search bar */ | |
| + UserQuery = 'USER_QUERY', | |
| +} | |
| + | |
| /** Section of the course containing all types of curriculum items */ | |
| export type CourseSection = CurriculumItem & { | |
| __typename?: 'CourseSection'; | |
| @@ -1399,6 +1567,15 @@ export type CourseSubCategory = SubCategory & { | |
| url: Scalars['URL']; | |
| }; | |
| +/** Subscription specific course properties */ | |
| +export type CourseSubscriptionInfo = { | |
| + __typename?: 'CourseSubscriptionInfo'; | |
| + /** Indicates which types of subscription this course can be purchased in */ | |
| + availableInSubscriptions?: Maybe<Array<SubscriptionPlan>>; | |
| + /** Indicates which type of user's subscription course is included in */ | |
| + inSubscriptions?: Maybe<Array<SubscriptionPlan>>; | |
| +}; | |
| + | |
| /** Currencies available */ | |
| export enum CurrencyCode { | |
| /** Australian dollar */ | |
| @@ -1466,6 +1643,8 @@ export enum CurrencyCode { | |
| /** Curriculum part of a course */ | |
| export type Curriculum = { | |
| __typename?: 'Curriculum'; | |
| + /** Count of the course curriculum content by type */ | |
| + contentCounts?: Maybe<CourseCurriculumContentCounts>; | |
| /** Course this curriculum belongs to */ | |
| course?: Maybe<Course>; | |
| /** Each course section containing the course curriculum content */ | |
| @@ -1576,28 +1755,6 @@ export enum DiscountSourceType { | |
| UdemyCoupon = 'UDEMY_COUPON', | |
| } | |
| -/** DiscussionEntry represents a piece user-created content in context of discussion */ | |
| -export type DiscussionEntry = { | |
| - /** Author */ | |
| - author: User; | |
| - /** The time the content was created at */ | |
| - createdAt: Scalars['DateTime']; | |
| - /** The time the content was deleted at */ | |
| - deletedAt?: Maybe<Scalars['DateTime']>; | |
| - /** The entry id */ | |
| - id: Scalars['UUID']; | |
| - /** The text part of the entry */ | |
| - text: Scalars['SafeHtml']; | |
| - /** The last time the content was updated at */ | |
| - updatedAt?: Maybe<Scalars['DateTime']>; | |
| -}; | |
| - | |
| -/** A discussion entry input type for creating and updating discussion entries i.e. Posts, Comments, etc. */ | |
| -export type DiscussionEntryInput = { | |
| - /** The text of the social entry */ | |
| - text: Scalars['SafeHtml']; | |
| -}; | |
| - | |
| /** The content of a component defined in the CMS */ | |
| export type DynamicWebContent = { | |
| __typename?: 'DynamicWebContent'; | |
| @@ -1679,12 +1836,21 @@ export type EBookLecture = CurriculumItem & | |
| /** A record of user's enrollment to a learning product */ | |
| export type Enrollment = { | |
| __typename?: 'Enrollment'; | |
| + /** Time at which the enrollment was archived (null if not archived). */ | |
| + archiveTime?: Maybe<Scalars['DateTime']>; | |
| /** Time of enrollment */ | |
| createdAt: Scalars['DateTime']; | |
| /** Learning Product to which the enrollment has been created */ | |
| learningProduct: LearningProduct; | |
| }; | |
| +/** Response object for archiving an enrollment. */ | |
| +export type EnrollmentArchiveResponse = { | |
| + __typename?: 'EnrollmentArchiveResponse'; | |
| + /** The enrollment that was archived */ | |
| + enrollment: Enrollment; | |
| +}; | |
| + | |
| /** Response object for enrollment creation */ | |
| export type EnrollmentCreateResponse = { | |
| __typename?: 'EnrollmentCreateResponse'; | |
| @@ -1692,6 +1858,13 @@ export type EnrollmentCreateResponse = { | |
| enrollment?: Maybe<Enrollment>; | |
| }; | |
| +/** Response object for unarchiving an enrollment. */ | |
| +export type EnrollmentUnarchiveResponse = { | |
| + __typename?: 'EnrollmentUnarchiveResponse'; | |
| + /** The enrollment that was unarchived */ | |
| + enrollment: Enrollment; | |
| +}; | |
| + | |
| /** Input for enrolling to learning product */ | |
| export type EnrollmentsLearningProductInput = { | |
| /** ID of the learning product */ | |
| @@ -2931,6 +3104,8 @@ export type LearningAssistantChatLearningProductOrCurriculumItem = | |
| /** Represent a chat message */ | |
| export type LearningAssistantChatMessage = { | |
| __typename?: 'LearningAssistantChatMessage'; | |
| + /** ID of the chat that the message belongs to */ | |
| + chatId: Scalars['ID']; | |
| /** Timestamp indicating when the message was created */ | |
| created: Scalars['Timestamp']; | |
| /** ID of the chat message */ | |
| @@ -3172,230 +3347,6 @@ export type LearningAssistantUserQuotas = { | |
| nonExceededQuotas: Array<LearningAssistantUserQuota>; | |
| }; | |
| -/** The Learning Community */ | |
| -export type LearningCommunity = { | |
| - __typename?: 'LearningCommunity'; | |
| - /** The reason for creating the learning community */ | |
| - creationReason: LearningCommunityCreateReason; | |
| - /** The learning community description */ | |
| - description?: Maybe<Scalars['String']>; | |
| - /** The learning community ID. */ | |
| - id: Scalars['UUID']; | |
| - /** The members to the learning community, owner/creator is included here too */ | |
| - members: Array<User>; | |
| - /** The number of members in the learning community */ | |
| - numberOfMembers: Scalars['Int']; | |
| - /** The organization in which the learning community is created */ | |
| - organizationId: Scalars['ID']; | |
| - /** The owner/creator of the learning community */ | |
| - owner: User; | |
| - /** The learning community title */ | |
| - title: Scalars['String']; | |
| - /** The topics selected for the learning community, should not be empty */ | |
| - topics: Array<Topic>; | |
| - /** The visibility of the learning community, defaults to PRIVATE */ | |
| - visibility: LearningCommunityVisibility; | |
| -}; | |
| - | |
| -/** A page of Learning Community Activities */ | |
| -export type LearningCommunityActivitiesPaged = { | |
| - __typename?: 'LearningCommunityActivitiesPaged'; | |
| - /** The cursor to the next Learning Community Activities Page */ | |
| - cursor?: Maybe<Scalars['String']>; | |
| - /** The activities in this page */ | |
| - items: Array<LearningCommunityActivity>; | |
| -}; | |
| - | |
| -/** An activity is an event initiated by a user */ | |
| -export type LearningCommunityActivity = { | |
| - __typename?: 'LearningCommunityActivity'; | |
| - /** The user who initiated the event */ | |
| - by: User; | |
| - /** The event */ | |
| - event: LearningCommunityActivityEvent; | |
| - /** The activity id */ | |
| - id: Scalars['UUID']; | |
| - /** The reactions to the activity */ | |
| - reactions?: Maybe<Array<LearningCommunityActivityUserReactions>>; | |
| -}; | |
| - | |
| -/** All the activity types presented in a learning community activity feed */ | |
| -export type LearningCommunityActivityEvent = | |
| - | LearningCommunityCurriculumItemEvent | |
| - | LearningCommunityPostEvent | |
| - | LearningProductEvent; | |
| - | |
| -/** The response for updating a learning community activity */ | |
| -export type LearningCommunityActivityUpdateResponse = { | |
| - __typename?: 'LearningCommunityActivityUpdateResponse'; | |
| - /** The learning community activity which has been updated */ | |
| - activity: LearningCommunityActivity; | |
| -}; | |
| - | |
| -/** The type of reaction that is being added or removed */ | |
| -export type LearningCommunityActivityUserReactionInput = { | |
| - /** The string representation of the reaction */ | |
| - type: LearningCommunityActivityUserReactionType; | |
| -}; | |
| - | |
| -/** The type of reaction available to users */ | |
| -export enum LearningCommunityActivityUserReactionType { | |
| - /** A celebrate reaction type */ | |
| - Celebrate = 'CELEBRATE', | |
| - /** An insightful reaction type */ | |
| - Insightful = 'INSIGHTFUL', | |
| - /** A like reaction type */ | |
| - Like = 'LIKE', | |
| - /** A plus one reaction type */ | |
| - PlusOne = 'PLUS_ONE', | |
| -} | |
| - | |
| -/** The reactions and the users who reacted to a learning community activity */ | |
| -export type LearningCommunityActivityUserReactions = { | |
| - __typename?: 'LearningCommunityActivityUserReactions'; | |
| - /** The number of users who reacted */ | |
| - count: Scalars['Int']; | |
| - /** The string representation of the reaction */ | |
| - type: LearningCommunityActivityUserReactionType; | |
| - /** A list of the users who reacted */ | |
| - users: Array<Maybe<User>>; | |
| -}; | |
| - | |
| -/** Response for creating a new Learning Community */ | |
| -export type LearningCommunityCreateOrUpdateResponse = { | |
| - __typename?: 'LearningCommunityCreateOrUpdateResponse'; | |
| - /** The learning community created or updated if the mutation was successful */ | |
| - learningCommunity?: Maybe<LearningCommunity>; | |
| -}; | |
| - | |
| -/** The Reason for creating a new Learning Community */ | |
| -export type LearningCommunityCreateReason = { | |
| - __typename?: 'LearningCommunityCreateReason'; | |
| - /** If type is equal to OTHER you have to provide a text for Reason */ | |
| - text?: Maybe<Scalars['String']>; | |
| - /** The Reason for creating the learning community */ | |
| - type: LearningCommunityCreateReasonType; | |
| -}; | |
| - | |
| -/** The Reason for creating a new Learning Community */ | |
| -export type LearningCommunityCreateReasonInput = { | |
| - /** If type is equal to OTHER, you have to provide a text for Reason. */ | |
| - text?: InputMaybe<Scalars['String']>; | |
| - /** The Reason for creating the learning community */ | |
| - type: LearningCommunityCreateReasonType; | |
| -}; | |
| - | |
| -/** The Reasons for creating a new Learning Community */ | |
| -export enum LearningCommunityCreateReasonType { | |
| - /** The reason to create the Learning Community was to initiate a company-wide transformation */ | |
| - CompanyWideTransformationInitiate = 'COMPANY_WIDE_TRANSFORMATION_INITIATE', | |
| - /** The reason to create the Learning Community was compliance training */ | |
| - ComplianceTraining = 'COMPLIANCE_TRAINING', | |
| - /** The reason to create the Learning Community was to learn new skill(s) in a social setting */ | |
| - LearnNewSkillsTogetherWithOthers = 'LEARN_NEW_SKILLS_TOGETHER_WITH_OTHERS', | |
| - /** The reason to create the Learning Community was to onboard new member(s) to a team */ | |
| - OnboardingANewTeam = 'ONBOARDING_A_NEW_TEAM', | |
| - /** The reason to create the Learning Community was not included so a free text is provided */ | |
| - Other = 'OTHER', | |
| - /** The reason to create the Learning Community was to Study for a certificate */ | |
| - StudyForACertificate = 'STUDY_FOR_A_CERTIFICATE', | |
| -} | |
| - | |
| -/** An event happening to a curriculum item which is part of a course */ | |
| -export type LearningCommunityCurriculumItemEvent = { | |
| - __typename?: 'LearningCommunityCurriculumItemEvent'; | |
| - /** The course containing the item */ | |
| - course: Course; | |
| - /** The moment in time which the event happend */ | |
| - dateTime: Scalars['DateTime']; | |
| - /** Type of event happening to the item */ | |
| - eventType: LearningCommunityCurriculumItemEventType; | |
| - /** The curriculum item */ | |
| - item: CurriculumItem; | |
| -}; | |
| - | |
| -/** The type of events that happens to a curriculum item */ | |
| -export enum LearningCommunityCurriculumItemEventType { | |
| - /** Completed working on/watching a curriculum item */ | |
| - Completed = 'COMPLETED', | |
| -} | |
| - | |
| -/** Response for deleting a Learning Community */ | |
| -export type LearningCommunityDeleteResponse = { | |
| - __typename?: 'LearningCommunityDeleteResponse'; | |
| - /** The ID of the deleted learning community if the mutation was successful */ | |
| - learningCommunityId?: Maybe<Scalars['UUID']>; | |
| -}; | |
| - | |
| -/** The input used for creating a new Learning Community */ | |
| -export type LearningCommunityInput = { | |
| - /** The reason for creating the learning community */ | |
| - creationReason: LearningCommunityCreateReasonInput; | |
| - /** The learning community description */ | |
| - description?: InputMaybe<Scalars['String']>; | |
| - /** The learning community title */ | |
| - title: Scalars['String']; | |
| - /** The topics selected for the learning community, can not be empty */ | |
| - topicIds: Array<Scalars['ID']>; | |
| - /** The visibility of the learning community */ | |
| - visibility?: InputMaybe<LearningCommunityVisibility>; | |
| -}; | |
| - | |
| -/** The input used for inviting new members to the learning community */ | |
| -export type LearningCommunityInviteInput = { | |
| - /** Invitation language */ | |
| - language: LanguageCode; | |
| - /** Invitation Message */ | |
| - message: Scalars['String']; | |
| -}; | |
| - | |
| -/** A post in a learning community activity feed */ | |
| -export type LearningCommunityPost = DiscussionEntry & { | |
| - __typename?: 'LearningCommunityPost'; | |
| - /** Author */ | |
| - author: User; | |
| - /** The time the content was created at */ | |
| - createdAt: Scalars['DateTime']; | |
| - /** The time the content was deleted at */ | |
| - deletedAt?: Maybe<Scalars['DateTime']>; | |
| - /** The post id */ | |
| - id: Scalars['UUID']; | |
| - /** The text part of the entry */ | |
| - text: Scalars['SafeHtml']; | |
| - /** The last time the content was updated at */ | |
| - updatedAt?: Maybe<Scalars['DateTime']>; | |
| -}; | |
| - | |
| -/** The response for creating a new post in the learning community activity feed */ | |
| -export type LearningCommunityPostCreateOrUpdateResponse = { | |
| - __typename?: 'LearningCommunityPostCreateOrUpdateResponse'; | |
| - /** The post created inside a learning community activity feed */ | |
| - post?: Maybe<LearningCommunityPost>; | |
| -}; | |
| - | |
| -/** A post event happening in a learning community activity feed */ | |
| -export type LearningCommunityPostEvent = { | |
| - __typename?: 'LearningCommunityPostEvent'; | |
| - /** The moment in time which the event happened */ | |
| - dateTime: Scalars['DateTime']; | |
| - /** The post */ | |
| - post: LearningCommunityPost; | |
| -}; | |
| - | |
| -/** The input used for updating a new Learning Community */ | |
| -export type LearningCommunityUpdateInput = { | |
| - /** The new visibility of the learning community */ | |
| - visibility?: InputMaybe<LearningCommunityVisibility>; | |
| -}; | |
| - | |
| -/** The visibility of the learning community */ | |
| -export enum LearningCommunityVisibility { | |
| - /** The learning community is visible to only members */ | |
| - Private = 'PRIVATE', | |
| - /** The learning community is visible to everyone */ | |
| - Public = 'PUBLIC', | |
| -} | |
| - | |
| /** A learning objective is a brief statements that describe what students will be expected to learn. */ | |
| export type LearningObjective = { | |
| __typename?: 'LearningObjective'; | |
| @@ -3636,27 +3587,6 @@ export type LearningProductBadge = { | |
| name: Scalars['String']; | |
| }; | |
| -/** An event happening to a learning product in a moment in time */ | |
| -export type LearningProductEvent = { | |
| - __typename?: 'LearningProductEvent'; | |
| - /** The moment in time which the event happened */ | |
| - dateTime: Scalars['DateTime']; | |
| - /** The type of event on the learning product */ | |
| - eventType: LearningProductEventType; | |
| - /** The learning product */ | |
| - product: LearningProduct; | |
| -}; | |
| - | |
| -/** The type of events that happens to a learning product and matters to the learning community service */ | |
| -export enum LearningProductEventType { | |
| - /** Completed working on/watching a learning product */ | |
| - Completed = 'COMPLETED', | |
| - /** Enrolled in a course */ | |
| - Enrolled = 'ENROLLED', | |
| - /** Started working on/watching a learning product (lecture, lab, etc.) */ | |
| - Started = 'STARTED', | |
| -} | |
| - | |
| /** Input for getting badge classes by learning products */ | |
| export type LearningProductInput = { | |
| /** ID of the learning product */ | |
| @@ -3916,6 +3846,81 @@ export type LectureSearchResult = { | |
| trackingId?: Maybe<Scalars['String']>; | |
| }; | |
| +/** A lesson associated with a learning product */ | |
| +export type Lesson = { | |
| + __typename?: 'Lesson'; | |
| + /** The lesson article whose fragments are mapped within the playable media */ | |
| + article?: Maybe<LessonArticle>; | |
| + /** The creation timestamp */ | |
| + created?: Maybe<Scalars['DateTime']>; | |
| + /** The entity tag for optimistic locking, to be provided, as read, when updating */ | |
| + entityTag: Scalars['Int']; | |
| + /** The id of the lesson */ | |
| + id: LessonId; | |
| + /** The lesson's original locale */ | |
| + locale: Scalars['Locale']; | |
| + /** The last update timestamp */ | |
| + updated?: Maybe<Scalars['DateTime']>; | |
| + /** The version of the lesson */ | |
| + version: Scalars['String']; | |
| +}; | |
| + | |
| +/** A rich article whose fragments can map to timestamps within the playable media */ | |
| +export type LessonArticle = { | |
| + __typename?: 'LessonArticle'; | |
| + /** A description for the article */ | |
| + description: Scalars['String']; | |
| + /** The article's fragments */ | |
| + fragments: Array<LessonArticleFragment>; | |
| + /** The article's locale. Supports translation. */ | |
| + locale: Scalars['Locale']; | |
| + /** The source of the article */ | |
| + source: ContentSourceType; | |
| + /** The key takeaways of an article in markdown format */ | |
| + takeaways?: Maybe<Markdown>; | |
| + /** The title of the article */ | |
| + title: Scalars['String']; | |
| + /** A uuid uniquely identifying an article */ | |
| + uuid: Scalars['UUID']; | |
| +}; | |
| + | |
| +/** A fragment of an article with possible mapping to the lesson's playable media */ | |
| +export type LessonArticleFragment = { | |
| + __typename?: 'LessonArticleFragment'; | |
| + /** The polymorphic content of the fragment */ | |
| + content: LessonArticleFragmentContent; | |
| + /** The offset in seconds within the playable media this fragment corresponds to */ | |
| + timestamp?: Maybe<Scalars['OffsetInSeconds']>; | |
| +}; | |
| + | |
| +/** Polymorphic Article Fragment Content */ | |
| +export type LessonArticleFragmentContent = CodeBlock | Markdown; | |
| + | |
| +/** A flexible identification for a lesson */ | |
| +export type LessonId = { | |
| + __typename?: 'LessonId'; | |
| + /** The type of the id */ | |
| + idType: LessonIdType; | |
| + /** The id value */ | |
| + idValue: Scalars['ID']; | |
| +}; | |
| + | |
| +/** Input type for providing a lesson id */ | |
| +export type LessonIdInput = { | |
| + /** The type of the id */ | |
| + idType: LessonIdType; | |
| + /** The id value */ | |
| + idValue: Scalars['ID']; | |
| +}; | |
| + | |
| +/** The types of a LessonId */ | |
| +export enum LessonIdType { | |
| + /** A lesson attached to an asset ID */ | |
| + AssetId = 'ASSET_ID', | |
| + /** A standalone lesson with a UUID */ | |
| + Uuid = 'UUID', | |
| +} | |
| + | |
| /** License pool */ | |
| export type LicensePool = { | |
| __typename?: 'LicensePool'; | |
| @@ -4018,6 +4023,13 @@ export type LicensePoolsActiveUserFilters = { | |
| userIds?: InputMaybe<Array<Scalars['ID']>>; | |
| }; | |
| +/** A micro-content representing markdown */ | |
| +export type Markdown = { | |
| + __typename?: 'Markdown'; | |
| + /** The markdown value */ | |
| + content: Scalars['String']; | |
| +}; | |
| + | |
| /** Current User */ | |
| export type Me = { | |
| __typename?: 'Me'; | |
| @@ -4043,6 +4055,8 @@ export type MeEnrollments = { | |
| * @deprecated Use courseEnrollmentsPaged instead | |
| */ | |
| courseEnrollments: Array<Maybe<CourseEnrollment>>; | |
| + /** List of current user's course enrollments fetching for the given course ids */ | |
| + courseEnrollmentsForCourseIds: Array<Maybe<CourseEnrollment>>; | |
| /** List of paged course enrollments sorted by lastAccessedTime */ | |
| courseEnrollmentsPaged: CourseEnrollmentsPaged; | |
| /** List of learning path enrollments */ | |
| @@ -4055,9 +4069,16 @@ export type MeEnrollmentsCourseEnrollmentsArgs = { | |
| pageSize?: Scalars['MaxResultsPerPage']; | |
| }; | |
| +/** Enrollments of the current user */ | |
| +export type MeEnrollmentsCourseEnrollmentsForCourseIdsArgs = { | |
| + courseIds: Array<Scalars['ID']>; | |
| +}; | |
| + | |
| /** Enrollments of the current user */ | |
| export type MeEnrollmentsCourseEnrollmentsPagedArgs = { | |
| cursor?: InputMaybe<Scalars['String']>; | |
| + filters?: InputMaybe<CourseEnrollmentsFilters>; | |
| + order?: Array<CourseEnrollmentsSortOrder>; | |
| pageSize?: Scalars['MaxResultsPerPage']; | |
| }; | |
| @@ -4129,10 +4150,14 @@ export type Mutation = { | |
| badgeClassUpdateVisibilityStatus?: Maybe<BadgeClassUpdateResponse>; | |
| /** Creates a snapshot of a course's head version with an optional comment */ | |
| courseSnapshotCreate?: Maybe<CourseSnapshotCreateResponse>; | |
| + /** Archives current user's enrollment to learning product */ | |
| + enrollmentArchive?: Maybe<EnrollmentArchiveResponse>; | |
| /** Enrolls current user to learning product */ | |
| enrollmentCreate?: Maybe<EnrollmentCreateResponse>; | |
| /** Unenrolls current user from learning product */ | |
| enrollmentDelete?: Maybe<Scalars['Boolean']>; | |
| + /** Unarchives current user's enrollment to learning product */ | |
| + enrollmentUnarchive?: Maybe<EnrollmentUnarchiveResponse>; | |
| /** Create a feedback */ | |
| feedbackCreate?: Maybe<FeedbackCreateResponse>; | |
| /** Link an opportunity to a course */ | |
| @@ -4161,28 +4186,6 @@ export type Mutation = { | |
| learningAssistantChatMessageTextSend?: Maybe<LearningAssistantChatMessageSendResponse>; | |
| /** Terminate the chat session */ | |
| learningAssistantChatTerminate?: Maybe<LearningAssistantChatTerminateResponse>; | |
| - /** Add a user's reaction to an activity in the learning community activity feed. */ | |
| - learningCommunityActivityUserReactionAdd?: Maybe<LearningCommunityActivityUpdateResponse>; | |
| - /** Remove a user's reaction from an activity in the learning community activity feed. */ | |
| - learningCommunityActivityUserReactionRemove?: Maybe<LearningCommunityActivityUpdateResponse>; | |
| - /** Add members to a Learning Community */ | |
| - learningCommunityAddMembers?: Maybe<LearningCommunityCreateOrUpdateResponse>; | |
| - /** Create a new Learning Community. */ | |
| - learningCommunityCreate?: Maybe<LearningCommunityCreateOrUpdateResponse>; | |
| - /** Delete an existing Learning Community by ID. */ | |
| - learningCommunityDelete?: Maybe<LearningCommunityDeleteResponse>; | |
| - /** Leave the learning community */ | |
| - learningCommunityLeave?: Maybe<LearningCommunityCreateOrUpdateResponse>; | |
| - /** Create a post on the learning community activity feed */ | |
| - learningCommunityPostCreate?: Maybe<LearningCommunityPostCreateOrUpdateResponse>; | |
| - /** Delete a post from the learning community activity feed. */ | |
| - learningCommunityPostDelete?: Maybe<LearningCommunityPostCreateOrUpdateResponse>; | |
| - /** Update the content for a post on the learning community activity feed. */ | |
| - learningCommunityPostUpdate?: Maybe<LearningCommunityPostCreateOrUpdateResponse>; | |
| - /** Remove members from a Learning Community */ | |
| - learningCommunityRemoveMembers?: Maybe<LearningCommunityCreateOrUpdateResponse>; | |
| - /** Update the learning community */ | |
| - learningCommunityUpdate?: Maybe<LearningCommunityCreateOrUpdateResponse>; | |
| /** Update mapped content status for list of mapped content in a Skills Framework */ | |
| learningObjectiveUpdateActivities?: Maybe<LearningObjectiveUpdateResponse>; | |
| /** Create a learning path from skills framework */ | |
| @@ -4332,6 +4335,11 @@ export type MutationCourseSnapshotCreateArgs = { | |
| courseId: Scalars['ID']; | |
| }; | |
| +/** Root mutation from which every mutation schema extends */ | |
| +export type MutationEnrollmentArchiveArgs = { | |
| + learningProduct: EnrollmentsLearningProductInput; | |
| +}; | |
| + | |
| /** Root mutation from which every mutation schema extends */ | |
| export type MutationEnrollmentCreateArgs = { | |
| learningProduct: EnrollmentsLearningProductInput; | |
| @@ -4342,6 +4350,11 @@ export type MutationEnrollmentDeleteArgs = { | |
| learningProduct: EnrollmentsLearningProductInput; | |
| }; | |
| +/** Root mutation from which every mutation schema extends */ | |
| +export type MutationEnrollmentUnarchiveArgs = { | |
| + learningProduct: EnrollmentsLearningProductInput; | |
| +}; | |
| + | |
| /** Root mutation from which every mutation schema extends */ | |
| export type MutationFeedbackCreateArgs = { | |
| feedbackCreateInput: FeedbackCreateInput; | |
| @@ -4420,73 +4433,6 @@ export type MutationLearningAssistantChatTerminateArgs = { | |
| chatId: Scalars['ID']; | |
| }; | |
| -/** Root mutation from which every mutation schema extends */ | |
| -export type MutationLearningCommunityActivityUserReactionAddArgs = { | |
| - activityId: Scalars['UUID']; | |
| - learningCommunityId: Scalars['UUID']; | |
| - reaction: LearningCommunityActivityUserReactionInput; | |
| -}; | |
| - | |
| -/** Root mutation from which every mutation schema extends */ | |
| -export type MutationLearningCommunityActivityUserReactionRemoveArgs = { | |
| - activityId: Scalars['UUID']; | |
| - learningCommunityId: Scalars['UUID']; | |
| - reaction: LearningCommunityActivityUserReactionInput; | |
| -}; | |
| - | |
| -/** Root mutation from which every mutation schema extends */ | |
| -export type MutationLearningCommunityAddMembersArgs = { | |
| - id: Scalars['UUID']; | |
| - invitations: LearningCommunityInviteInput; | |
| - userIds: Array<Scalars['ID']>; | |
| -}; | |
| - | |
| -/** Root mutation from which every mutation schema extends */ | |
| -export type MutationLearningCommunityCreateArgs = { | |
| - learningCommunity: LearningCommunityInput; | |
| -}; | |
| - | |
| -/** Root mutation from which every mutation schema extends */ | |
| -export type MutationLearningCommunityDeleteArgs = { | |
| - id: Scalars['UUID']; | |
| -}; | |
| - | |
| -/** Root mutation from which every mutation schema extends */ | |
| -export type MutationLearningCommunityLeaveArgs = { | |
| - id: Scalars['UUID']; | |
| -}; | |
| - | |
| -/** Root mutation from which every mutation schema extends */ | |
| -export type MutationLearningCommunityPostCreateArgs = { | |
| - entry: DiscussionEntryInput; | |
| - learningCommunityId: Scalars['UUID']; | |
| -}; | |
| - | |
| -/** Root mutation from which every mutation schema extends */ | |
| -export type MutationLearningCommunityPostDeleteArgs = { | |
| - learningCommunityId: Scalars['UUID']; | |
| - postId: Scalars['UUID']; | |
| -}; | |
| - | |
| -/** Root mutation from which every mutation schema extends */ | |
| -export type MutationLearningCommunityPostUpdateArgs = { | |
| - entry: DiscussionEntryInput; | |
| - learningCommunityId: Scalars['UUID']; | |
| - postId: Scalars['UUID']; | |
| -}; | |
| - | |
| -/** Root mutation from which every mutation schema extends */ | |
| -export type MutationLearningCommunityRemoveMembersArgs = { | |
| - id: Scalars['UUID']; | |
| - userIds: Array<Scalars['ID']>; | |
| -}; | |
| - | |
| -/** Root mutation from which every mutation schema extends */ | |
| -export type MutationLearningCommunityUpdateArgs = { | |
| - id: Scalars['UUID']; | |
| - learningCommunity: LearningCommunityUpdateInput; | |
| -}; | |
| - | |
| /** Root mutation from which every mutation schema extends */ | |
| export type MutationLearningObjectiveUpdateActivitiesArgs = { | |
| activities: Array<LearningObjectiveActivityInput>; | |
| @@ -4684,6 +4630,20 @@ export type MutationUserNotificationPreferencesUpdateArgs = { | |
| userNotificationPreferencesInput: UserNotificationPreferenceSetInput; | |
| }; | |
| +/** Item in navigation list. */ | |
| +export type NavListItem = { | |
| + /** List of child navigation items. */ | |
| + children: Array<Maybe<NavListItem>>; | |
| +}; | |
| + | |
| +/** Identifies the name of the navigation list. */ | |
| +export enum NavListName { | |
| + /** The navigation tabs seen on category and subcategory landing pages. */ | |
| + LinkBar = 'LINK_BAR', | |
| + /** The main navigation list seen in explore menu */ | |
| + Main = 'MAIN', | |
| +} | |
| + | |
| /** Represents a badge awarded to a new learning product. */ | |
| export type NewBadge = LearningProductBadge & { | |
| __typename?: 'NewBadge'; | |
| @@ -5322,6 +5282,14 @@ export enum PaymentMethodType { | |
| Wire = 'WIRE', | |
| } | |
| +/** Input for payout exists search filter */ | |
| +export type PayoutExistsSearchFilterInput = { | |
| + /** list of payout methods to search */ | |
| + payoutMethods?: InputMaybe<Array<PaymentMethodType>>; | |
| + /** list of status to search */ | |
| + statuses?: InputMaybe<Array<PayoutStatusType>>; | |
| +}; | |
| + | |
| /** Enum for different payout statuses */ | |
| export enum PayoutStatusType { | |
| /** Payout status BLOCKED */ | |
| @@ -5435,6 +5403,14 @@ export type PresentationLecture = CurriculumItem & | |
| versionedIdentifier: VersionedIdentifier; | |
| }; | |
| +/** Price of the course, free or paid */ | |
| +export enum PriceOption { | |
| + /** Free */ | |
| + Free = 'FREE', | |
| + /** Paid */ | |
| + Paid = 'PAID', | |
| +} | |
| + | |
| /** The LearningPath only available for PRO subscriptions */ | |
| export type ProLearningPath = LearningPath & | |
| LearningProduct & { | |
| @@ -5532,6 +5508,8 @@ export type Query = { | |
| badgeClassesByTopics: Array<BadgeClass>; | |
| /** Retrieve all categories */ | |
| categories: Array<Category>; | |
| + /** Fetches a coding exercise by its ID */ | |
| + codingExercise?: Maybe<CodingExercise>; | |
| /** Retrieve a set of coding exercise templates by their language */ | |
| codingExerciseTemplatesByLanguage: Array<CodingExerciseTemplate>; | |
| /** Retrieve a course by its ID */ | |
| @@ -5561,6 +5539,8 @@ export type Query = { | |
| coursesByLandingURLs: Array<Maybe<Course>>; | |
| /** Retrieve a set of courses by their versioned identifiers */ | |
| coursesByVersionedIdentifiers: Array<Maybe<Course>>; | |
| + /** Get recommended courses for an assessment */ | |
| + coursesRecommendedByAssessment: Array<Course>; | |
| /** Fetch the current subscription of user or subscription of user's organization if user is a member of an organization. Current subscription could be cancelled or expired. */ | |
| currentSubscriptionEnrollment?: Maybe<SubscriptionEnrollment>; | |
| /** The query to get the dynamic web content for the component represented by the `contentId` filter */ | |
| @@ -5599,17 +5579,6 @@ export type Query = { | |
| learningAssistantSuggestedPrompts: LearningAssistantSuggestedPromptsPaged; | |
| /** Returns any user quota that has exceeded. If no user quota has exceeded, it returns the first quota */ | |
| learningAssistantUserQuota: LearningAssistantUserQuotaResponse; | |
| - /** | |
| - * List Learning Communities by IDs. | |
| - * If no `ids` are provided then all the learning communities which the user is part of will be returned. | |
| - */ | |
| - learningCommunities: Array<Maybe<LearningCommunity>>; | |
| - /** | |
| - * Fetch the activities for a learning community with the cursor. | |
| - * The `limit` is used to limit the number of activities returned on the page. | |
| - * The cursor can be used to continue fetching the next pages of activities. the cursor is part of previous results. | |
| - */ | |
| - learningCommunityActivities?: Maybe<LearningCommunityActivitiesPaged>; | |
| /** Get learning objectives by skills framework id and learning objective ids */ | |
| learningObjectivesByIdsAndSkills: Array<Maybe<LearningObjective>>; | |
| /** Get learning objectives by skills framework id and activities */ | |
| @@ -5628,8 +5597,12 @@ export type Query = { | |
| learningReminders: LearningRemindersPaged; | |
| /** Returns a list of Learning Testimonials based on the page type */ | |
| learningTestimonials: Array<Maybe<LearningTestimonial>>; | |
| + /** Fetches a lecture by its ID */ | |
| + lecture?: Maybe<Lecture>; | |
| /** Searches lectures semantically for given query. To get a result, query must be in english and at least three words. The search team has been focused on leveraging semantic search to be able to recommend the right lectures for users. Instead of relying on just titles and descriptions, the team leverage caption data to understand content better and provide better results */ | |
| lectureSearch?: Maybe<LectureSearchResponse>; | |
| + /** Fetches the latest released version of a Lesson */ | |
| + lesson?: Maybe<Lesson>; | |
| /** Get license pools */ | |
| licensePools: Array<LicensePool>; | |
| /** Returns a list of pools with active user counts per product type */ | |
| @@ -5640,6 +5613,8 @@ export type Query = { | |
| licensePoolsUsersMovePreview: Array<LicensePool>; | |
| /** Query the current user */ | |
| me: Me; | |
| + /** Get the navigation list for a given name. */ | |
| + navList: Array<Maybe<NavListItem>>; | |
| /** Fetch occupation groups */ | |
| occupationGroups: Array<Maybe<OccupationGroup>>; | |
| /** Search occupations */ | |
| @@ -5660,12 +5635,20 @@ export type Query = { | |
| organizationSettingsByNamesAndOrganizationId: Array<OrganizationSetting>; | |
| /** Get the current licenses assigned to the User calling this Query in their org, filtered by type and if it is active or not */ | |
| organizationUserLicenses?: Maybe<Array<OrganizationUserLicense>>; | |
| + /** A query to check if payout exists with the given statuses and methods. */ | |
| + payoutExists?: Maybe<Scalars['Boolean']>; | |
| /** Gets a list of all popular topics */ | |
| popularTopicsByCategoryId: Array<Maybe<PopularTopic>>; | |
| + /** Fetches a practice assignment by its ID */ | |
| + practiceAssignment?: Maybe<PracticeAssignment>; | |
| + /** Fetches a practice test by its ID */ | |
| + practiceTest?: Maybe<PracticeTest>; | |
| /** Find the practice-test, its version history and the questions that were active between the dates specified in the filters, and all of their instructor relevant insights for given scope and date range */ | |
| practiceTestsByIdAndChannel?: Maybe<InstructorInsightPracticeTest>; | |
| /** Get Pro learning paths by topic */ | |
| proLearningPathsByTopic: Array<ProLearningPath>; | |
| + /** Fetches a quiz by its ID */ | |
| + quiz?: Maybe<Quiz>; | |
| /** Search for autocomplete */ | |
| searchAutocomplete: Array<Maybe<SearchAutocompleteSuggestion>>; | |
| /** Get skills framework by learning path id and optional versionId */ | |
| @@ -5696,6 +5679,8 @@ export type Query = { | |
| topicInterests: Array<Topic>; | |
| /** Search topics */ | |
| topicSearch: Array<Topic>; | |
| + /** Return a list of topics by ID */ | |
| + topics: Array<Topic>; | |
| /** Returns user notification preferences */ | |
| userNotificationPreferences: Array<UserNotificationPreference>; | |
| /** Returns the details of current user occupation */ | |
| @@ -5806,6 +5791,11 @@ export type QueryBadgeClassesByTopicsArgs = { | |
| topicIds: Array<Scalars['ID']>; | |
| }; | |
| +/** Root query from which every query schema extends */ | |
| +export type QueryCodingExerciseArgs = { | |
| + id: Scalars['ID']; | |
| +}; | |
| + | |
| /** Root query from which every query schema extends */ | |
| export type QueryCodingExerciseTemplatesByLanguageArgs = { | |
| filters?: InputMaybe<CodingExerciseTemplateFilters>; | |
| @@ -5858,6 +5848,7 @@ export type QueryCourseCategoryArgs = { | |
| /** Root query from which every query schema extends */ | |
| export type QueryCourseSearchArgs = { | |
| + context?: InputMaybe<CourseSearchContext>; | |
| filters?: InputMaybe<CourseSearchFilters>; | |
| page?: Scalars['NonNegativeInt']; | |
| pageSize?: Scalars['MaxResultsPerPage']; | |
| @@ -5880,6 +5871,12 @@ export type QueryCoursesByVersionedIdentifiersArgs = { | |
| versionedIdentifiers: Array<VersionedIdentifierInput>; | |
| }; | |
| +/** Root query from which every query schema extends */ | |
| +export type QueryCoursesRecommendedByAssessmentArgs = { | |
| + assessmentId: Scalars['ID']; | |
| + maxResults?: InputMaybe<Scalars['Int']>; | |
| +}; | |
| + | |
| /** Root query from which every query schema extends */ | |
| export type QueryDynamicWebContentArgs = { | |
| filters: DynamicWebContentFilters; | |
| @@ -5950,7 +5947,7 @@ export type QueryLearningActivityTrendArgs = { | |
| /** Root query from which every query schema extends */ | |
| export type QueryLearningAssistantChatHistoryMessagesArgs = { | |
| before: Scalars['Timestamp']; | |
| - context: LearningAssistantChatContextInput; | |
| + context?: InputMaybe<LearningAssistantChatContextInput>; | |
| name: LearningAssistantChatName; | |
| page?: InputMaybe<Scalars['Int']>; | |
| pageSize?: InputMaybe<Scalars['MaxResultsPerPage']>; | |
| @@ -5972,18 +5969,6 @@ export type QueryLearningAssistantSuggestedPromptsArgs = { | |
| size?: InputMaybe<Scalars['MaxResultsPerPage']>; | |
| }; | |
| -/** Root query from which every query schema extends */ | |
| -export type QueryLearningCommunitiesArgs = { | |
| - ids?: InputMaybe<Array<Scalars['UUID']>>; | |
| -}; | |
| - | |
| -/** Root query from which every query schema extends */ | |
| -export type QueryLearningCommunityActivitiesArgs = { | |
| - cursor?: InputMaybe<Scalars['String']>; | |
| - id: Scalars['UUID']; | |
| - limit: Scalars['Int']; | |
| -}; | |
| - | |
| /** Root query from which every query schema extends */ | |
| export type QueryLearningObjectivesByIdsAndSkillsArgs = { | |
| ids: Array<Scalars['ID']>; | |
| @@ -6039,11 +6024,21 @@ export type QueryLearningTestimonialsArgs = { | |
| filters: LearningTestimonialFilters; | |
| }; | |
| +/** Root query from which every query schema extends */ | |
| +export type QueryLectureArgs = { | |
| + id: Scalars['ID']; | |
| +}; | |
| + | |
| /** Root query from which every query schema extends */ | |
| export type QueryLectureSearchArgs = { | |
| query: Scalars['String']; | |
| }; | |
| +/** Root query from which every query schema extends */ | |
| +export type QueryLessonArgs = { | |
| + id: LessonIdInput; | |
| +}; | |
| + | |
| /** Root query from which every query schema extends */ | |
| export type QueryLicensePoolsActiveUserCountsArgs = { | |
| filters?: InputMaybe<LicensePoolsActiveUserFilters>; | |
| @@ -6060,6 +6055,11 @@ export type QueryLicensePoolsUsersMovePreviewArgs = { | |
| userIds: Array<Scalars['ID']>; | |
| }; | |
| +/** Root query from which every query schema extends */ | |
| +export type QueryNavListArgs = { | |
| + name: NavListName; | |
| +}; | |
| + | |
| /** Root query from which every query schema extends */ | |
| export type QueryOccupationGroupsArgs = { | |
| ids?: InputMaybe<Array<Scalars['ID']>>; | |
| @@ -6109,11 +6109,26 @@ export type QueryOrganizationUserLicensesArgs = { | |
| filters?: InputMaybe<OrganizationUserLicensesFilters>; | |
| }; | |
| +/** Root query from which every query schema extends */ | |
| +export type QueryPayoutExistsArgs = { | |
| + filter: PayoutExistsSearchFilterInput; | |
| +}; | |
| + | |
| /** Root query from which every query schema extends */ | |
| export type QueryPopularTopicsByCategoryIdArgs = { | |
| categoryId: Scalars['ID']; | |
| }; | |
| +/** Root query from which every query schema extends */ | |
| +export type QueryPracticeAssignmentArgs = { | |
| + id: Scalars['ID']; | |
| +}; | |
| + | |
| +/** Root query from which every query schema extends */ | |
| +export type QueryPracticeTestArgs = { | |
| + id: Scalars['ID']; | |
| +}; | |
| + | |
| /** Root query from which every query schema extends */ | |
| export type QueryPracticeTestsByIdAndChannelArgs = { | |
| filters?: InputMaybe<PracticeTestInsightFilters>; | |
| @@ -6126,6 +6141,11 @@ export type QueryProLearningPathsByTopicArgs = { | |
| topicId: Scalars['ID']; | |
| }; | |
| +/** Root query from which every query schema extends */ | |
| +export type QueryQuizArgs = { | |
| + id: Scalars['ID']; | |
| +}; | |
| + | |
| /** Root query from which every query schema extends */ | |
| export type QuerySearchAutocompleteArgs = { | |
| filters?: InputMaybe<SearchAutocompleteRequestFilters>; | |
| @@ -6203,6 +6223,11 @@ export type QueryTopicSearchArgs = { | |
| query?: InputMaybe<Scalars['String']>; | |
| }; | |
| +/** Root query from which every query schema extends */ | |
| +export type QueryTopicsArgs = { | |
| + ids: Array<Scalars['ID']>; | |
| +}; | |
| + | |
| /** Quiz with simple questions and multiple choice answers */ | |
| export type Quiz = CurriculumItem & { | |
| __typename?: 'Quiz'; | |
| @@ -6269,6 +6294,10 @@ export type SearchAggregationOption = { | |
| __typename?: 'SearchAggregationOption'; | |
| /** Number of results if this filter option were to be applied. */ | |
| countWithFilterApplied: Scalars['Int']; | |
| + /** Whether this filter option is selected or not. */ | |
| + isSelected: Scalars['Boolean']; | |
| + /** Key that can be passed to the query to filter by this option. */ | |
| + key: Scalars['String']; | |
| /** Human-readable label for this filter option. */ | |
| label: Scalars['String']; | |
| /** Value argument that can be passed to query to filter by this option. */ | |
| @@ -6320,6 +6349,23 @@ export type SearchAutocompleteSuggestion = { | |
| trackingId: Scalars['String']; | |
| }; | |
| +/** Represents a search suggestion for a search */ | |
| +export type SearchQuerySuggestion = { | |
| + __typename?: 'SearchQuerySuggestion'; | |
| + /** The suggested query based on the original search input. */ | |
| + query?: Maybe<Scalars['String']>; | |
| + /** The type of search query suggestion */ | |
| + type?: Maybe<SearchQuerySuggestionType>; | |
| +}; | |
| + | |
| +/** Possible suggestion types for the search query. */ | |
| +export enum SearchQuerySuggestionType { | |
| + /** 'Did you mean' suggestion for the search query. */ | |
| + DidYouMean = 'DID_YOU_MEAN', | |
| + /** 'Rewrite' suggestion for the search query. */ | |
| + Rewrite = 'REWRITE', | |
| +} | |
| + | |
| /** A skills framework is a collection of learning objectives that are organized into a hierarchy. */ | |
| export type SkillsFramework = LearningProduct & { | |
| __typename?: 'SkillsFramework'; | |
| @@ -6470,6 +6516,14 @@ export enum SkillsPrepStatus { | |
| Started = 'STARTED', | |
| } | |
| +/** Sort direction */ | |
| +export enum SortDirection { | |
| + /** Ascending sort direction */ | |
| + Ascending = 'ASCENDING', | |
| + /** Descending sort direction */ | |
| + Descending = 'DESCENDING', | |
| +} | |
| + | |
| /** Details about a user's lecture minutes consumption streak, including what to achieve by what date */ | |
| export type StreakLectureConsumptionWeekly = { | |
| __typename?: 'StreakLectureConsumptionWeekly'; | |
| @@ -6507,6 +6561,15 @@ export type SubCategory = { | |
| name: Scalars['String']; | |
| }; | |
| +/** Subcategory navigation list item. */ | |
| +export type SubcategoryNavListItem = NavListItem & { | |
| + __typename?: 'SubcategoryNavListItem'; | |
| + /** List of child navigation items. */ | |
| + children: Array<Maybe<NavListItem>>; | |
| + /** The subcategory this item represents. */ | |
| + subcategory: CourseSubCategory; | |
| +}; | |
| + | |
| /** Subscription plan that the subscriber is subscribed to */ | |
| export type SubscribedPlan = { | |
| __typename?: 'SubscribedPlan'; | |
| @@ -6554,6 +6617,8 @@ export type SubscriptionBilling = { | |
| listPrice: Money; | |
| /** Payment method used for the subscription */ | |
| paymentMethod: SubscriptionPaymentMethod; | |
| + /** Type of payment method used for the subscription */ | |
| + paymentType: SubscriptionPaymentType; | |
| /** Tax amount for the subscription */ | |
| taxPrice: Money; | |
| }; | |
| @@ -6659,6 +6724,8 @@ export enum SubscriptionFeatureKey { | |
| MobileApp = 'MOBILE_APP', | |
| /** ORGANIZATION_BADGES */ | |
| OrganizationBadges = 'ORGANIZATION_BADGES', | |
| + /** ORGANIZATION_BADGES FOR LEARNERS */ | |
| + OrganizationBadgesForLearners = 'ORGANIZATION_BADGES_FOR_LEARNERS', | |
| /** Question and answer */ | |
| QuestionAndAnswer = 'QUESTION_AND_ANSWER', | |
| /** Recommend */ | |
| @@ -6733,7 +6800,21 @@ export type SubscriptionPaymentMethod = | |
| | SubscriptionInAppPurchase | |
| | SubscriptionPayPalMethod; | |
| -/** An offer for a consumer subscription plan to access a catalog of Udemy content */ | |
| +/** Payment type for subscription billing */ | |
| +export enum SubscriptionPaymentType { | |
| + /** Apple Pay payment */ | |
| + ApplePay = 'APPLE_PAY', | |
| + /** Credit card payment */ | |
| + CreditCard = 'CREDIT_CARD', | |
| + /** Google Pay payment */ | |
| + GooglePay = 'GOOGLE_PAY', | |
| + /** Payment through a native mobile app */ | |
| + NativeApp = 'NATIVE_APP', | |
| + /** PayPal payment over Stripe */ | |
| + PaypalOverStripe = 'PAYPAL_OVER_STRIPE', | |
| +} | |
| + | |
| +/** A Subscription plan to access a catalog of Udemy content */ | |
| export type SubscriptionPlan = { | |
| __typename?: 'SubscriptionPlan'; | |
| /** List of content groups included in a given plan */ | |
| @@ -6752,7 +6833,7 @@ export type SubscriptionPlan = { | |
| urlTermsOfUse: Scalars['URL']; | |
| }; | |
| -/** An offer for a consumer subscription plan to access a catalog of Udemy content */ | |
| +/** A Subscription plan to access a catalog of Udemy content */ | |
| export type SubscriptionPlanPriceOptionsArgs = { | |
| licenseCount?: InputMaybe<Scalars['Int']>; | |
| marketingURL?: InputMaybe<Scalars['URL']>; | |
| @@ -7262,6 +7343,15 @@ export type WeeklySubscriptionPlanPricingOption = { | |
| trial?: Maybe<SubscriptionTrial>; | |
| }; | |
| +export type AiTopicsQueryVariables = Exact<{ | |
| + ids: Array<Scalars['ID']> | Scalars['ID']; | |
| +}>; | |
| + | |
| +export type AiTopicsQuery = { | |
| + __typename?: 'Query'; | |
| + topics: Array<{__typename?: 'Topic'; id: string; name: string; url: any}>; | |
| +}; | |
| + | |
| export type EnrolledCoursesMyLearningHeaderQueryVariables = Exact<{ | |
| page: Scalars['Int']; | |
| pageSize: Scalars['MaxResultsPerPage']; | |
| @@ -7287,6 +7377,28 @@ export type EnrolledCoursesMyLearningHeaderQuery = { | |
| }; | |
| }; | |
| +export const AiTopicsDocument = ` | |
| + query AiTopics($ids: [ID!]!) { | |
| + topics(ids: $ids) { | |
| + id | |
| + name | |
| + url | |
| + } | |
| +} | |
| + `; | |
| +export const useAiTopicsQuery = <TData = AiTopicsQuery, TError = unknown>( | |
| + variables: AiTopicsQueryVariables, | |
| + options?: UseQueryOptions<AiTopicsQuery, TError, TData>, | |
| +) => | |
| + useQuery<AiTopicsQuery, TError, TData>( | |
| + ['AiTopics', variables], | |
| + fetcher<AiTopicsQuery, AiTopicsQueryVariables>(AiTopicsDocument, variables), | |
| + options, | |
| + ); | |
| + | |
| +useAiTopicsQuery.getKey = (variables: AiTopicsQueryVariables) => ['AiTopics', variables]; | |
| +useAiTopicsQuery.fetcher = (variables: AiTopicsQueryVariables, options?: RequestInit['headers']) => | |
| + fetcher<AiTopicsQuery, AiTopicsQueryVariables>(AiTopicsDocument, variables, options); | |
| export const EnrolledCoursesMyLearningHeaderDocument = ` | |
| query enrolledCoursesMyLearningHeader($page: Int!, $pageSize: MaxResultsPerPage!) { | |
| me { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment