Skip to content

Commit 0cd9af3

Browse files
chore: generate Open API types
1 parent 82418d2 commit 0cd9af3

File tree

4 files changed

+205
-56
lines changed

4 files changed

+205
-56
lines changed

src/types/enterprise-access.openapi.d.ts

Lines changed: 86 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,13 @@ export interface paths {
177177
*/
178178
post: operations["api_v1_assignment_configurations_acknowledge_assignments_create"];
179179
};
180+
"/api/v1/bffs/health/ping/": {
181+
/**
182+
* Health Check Ping
183+
* @description Simple ping endpoint to check if the BFF service is running and responsive.
184+
*/
185+
get: operations["ping_health_check"];
186+
};
180187
"/api/v1/bffs/learner/academy/": {
181188
/**
182189
* Academy route
@@ -588,6 +595,12 @@ export interface components {
588595
};
589596
/** @enum {unknown} */
590597
BlankEnum: "";
598+
/**
599+
* @description * `13` - Subscription - Trial Catalog
600+
* * `10` - Subscription
601+
* @enum {integer}
602+
*/
603+
CatalogQueryIdEnum: 13 | 10;
591604
/**
592605
* @description Serializer to help return additional content metadata for assignments. These fields should
593606
* map more or less 1-1 to the fields in content metadata dicts returned from the
@@ -953,8 +966,19 @@ export interface components {
953966
EnterpriseCatalogRequest: {
954967
/** @description The name of the Enterprise Catalog. */
955968
title: string;
956-
/** @description The id of the related Catalog Query. */
957-
catalog_query_id: number;
969+
/**
970+
* @description The id of the related Catalog Query.
971+
*
972+
* * `13` - Subscription - Trial Catalog
973+
* * `10` - Subscription
974+
* @default [
975+
* [
976+
* 13,
977+
* "Subscription - Trial Catalog"
978+
* ]
979+
* ]
980+
*/
981+
catalog_query_id?: components["schemas"]["CatalogQueryIdEnum"];
958982
};
959983
/** @description Catalog object serializer for provisioning responses. */
960984
EnterpriseCatalogResponse: {
@@ -983,7 +1007,6 @@ export interface components {
9831007
is_revoked: boolean;
9841008
/** Format: uri */
9851009
link_to_course: string;
986-
/** Format: uri */
9871010
link_to_certificate: string | null;
9881011
micromasters_title: string | null;
9891012
mode: string;
@@ -1452,6 +1475,8 @@ export interface components {
14521475
};
14531476
/** @description Serializer for the learner academy detail response. */
14541477
LearnerAcademyResponse: {
1478+
errors?: components["schemas"]["Error"][];
1479+
warnings?: components["schemas"]["Warning"][];
14551480
enterprise_customer?: components["schemas"]["EnterpriseCustomer"] | null;
14561481
all_linked_enterprise_customer_users?: components["schemas"]["EnterpriseCustomerUser"][];
14571482
active_enterprise_customer?: components["schemas"]["EnterpriseCustomer"] | null;
@@ -1462,8 +1487,6 @@ export interface components {
14621487
catalog_uuids_to_catalog_query_uuids: {
14631488
[key: string]: string;
14641489
};
1465-
errors?: components["schemas"]["Error"][];
1466-
warnings?: components["schemas"]["Warning"][];
14671490
enterprise_features?: {
14681491
[key: string]: unknown;
14691492
};
@@ -1800,6 +1823,9 @@ export interface components {
18001823
learner_credit_request_config?: string | null;
18011824
/** Format: uuid */
18021825
assignment?: string | null;
1826+
/** @description Cost of the content in USD Cents. */
1827+
course_price?: number | null;
1828+
latest_action: string;
18031829
};
18041830
/** @description Serializer for the learner dashboard request. */
18051831
LearnerDashboardRequest: {
@@ -1813,6 +1839,8 @@ export interface components {
18131839
};
18141840
/** @description Serializer for the learner dashboard response. */
18151841
LearnerDashboardResponse: {
1842+
errors?: components["schemas"]["Error"][];
1843+
warnings?: components["schemas"]["Warning"][];
18161844
enterprise_customer?: components["schemas"]["EnterpriseCustomer"] | null;
18171845
all_linked_enterprise_customer_users?: components["schemas"]["EnterpriseCustomerUser"][];
18181846
active_enterprise_customer?: components["schemas"]["EnterpriseCustomer"] | null;
@@ -1823,8 +1851,6 @@ export interface components {
18231851
catalog_uuids_to_catalog_query_uuids: {
18241852
[key: string]: string;
18251853
};
1826-
errors?: components["schemas"]["Error"][];
1827-
warnings?: components["schemas"]["Warning"][];
18281854
enterprise_features?: {
18291855
[key: string]: unknown;
18301856
};
@@ -1852,6 +1878,8 @@ export interface components {
18521878
};
18531879
/** @description Serializer for the learner search response. */
18541880
LearnerSearchResponse: {
1881+
errors?: components["schemas"]["Error"][];
1882+
warnings?: components["schemas"]["Warning"][];
18551883
enterprise_customer?: components["schemas"]["EnterpriseCustomer"] | null;
18561884
all_linked_enterprise_customer_users?: components["schemas"]["EnterpriseCustomerUser"][];
18571885
active_enterprise_customer?: components["schemas"]["EnterpriseCustomer"] | null;
@@ -1862,8 +1890,6 @@ export interface components {
18621890
catalog_uuids_to_catalog_query_uuids: {
18631891
[key: string]: string;
18641892
};
1865-
errors?: components["schemas"]["Error"][];
1866-
warnings?: components["schemas"]["Warning"][];
18671893
enterprise_features?: {
18681894
[key: string]: unknown;
18691895
};
@@ -1881,6 +1907,8 @@ export interface components {
18811907
};
18821908
/** @description Serializer for the learner skills quiz response. */
18831909
LearnerSkillsQuizResponse: {
1910+
errors?: components["schemas"]["Error"][];
1911+
warnings?: components["schemas"]["Warning"][];
18841912
enterprise_customer?: components["schemas"]["EnterpriseCustomer"] | null;
18851913
all_linked_enterprise_customer_users?: components["schemas"]["EnterpriseCustomerUser"][];
18861914
active_enterprise_customer?: components["schemas"]["EnterpriseCustomer"] | null;
@@ -1891,8 +1919,6 @@ export interface components {
18911919
catalog_uuids_to_catalog_query_uuids: {
18921920
[key: string]: string;
18931921
};
1894-
errors?: components["schemas"]["Error"][];
1895-
warnings?: components["schemas"]["Warning"][];
18961922
enterprise_features?: {
18971923
[key: string]: unknown;
18981924
};
@@ -2334,16 +2360,22 @@ export interface components {
23342360
* @enum {string}
23352361
*/
23362362
PolicyTypeEnum: "PerLearnerEnrollmentCreditAccessPolicy" | "PerLearnerSpendCreditAccessPolicy" | "AssignedLearnerCreditAccessPolicy";
2363+
/**
2364+
* @description * `1` - B2B Paid
2365+
* * `3` - Trial
2366+
* @enum {integer}
2367+
*/
2368+
ProductIdEnum: 1 | 3;
23372369
/** @description Request serializer for provisioning create view. */
23382370
ProvisioningRequest: {
23392371
/** @description Object describing the requested Enterprise Customer. */
23402372
enterprise_customer: components["schemas"]["EnterpriseCustomerRequest"];
23412373
/** @description List of objects containing requested customer admin email addresses. */
23422374
pending_admins: components["schemas"]["PendingCustomerAdminRequest"][];
23432375
/** @description Object describing the requested Enterprise Catalog. */
2344-
enterprise_catalog: components["schemas"]["EnterpriseCatalogRequest"];
2376+
enterprise_catalog?: components["schemas"]["EnterpriseCatalogRequest"] | null;
23452377
/** @description Object describing the requested Customer Agreement. */
2346-
customer_agreement: components["schemas"]["CustomerAgreementRequest"];
2378+
customer_agreement?: components["schemas"]["CustomerAgreementRequest"] | null;
23472379
subscription_plan: components["schemas"]["SubscriptionPlanRequest"];
23482380
};
23492381
/** @description Response serializer for provisioning create view. */
@@ -2418,15 +2450,33 @@ export interface components {
24182450
};
24192451
/** @description Subscription Plan serializer for provisioning requests. */
24202452
SubscriptionPlanRequest: {
2453+
/** @description The title of the subscription plan. */
24212454
title: string;
2455+
/** @description The Salesforce Opportunity Line Item id associated with this subscription plan. */
24222456
salesforce_opportunity_line_item: string;
2423-
/** Format: date-time */
2457+
/**
2458+
* Format: date-time
2459+
* @description The date and time at which the subscription plan becomes usable.
2460+
*/
24242461
start_date: string;
2425-
/** Format: date-time */
2462+
/**
2463+
* Format: date-time
2464+
* @description The date and time at which the subscription plan becomes unusable.
2465+
*/
24262466
expiration_date: string;
2427-
product_id: number;
2467+
/**
2468+
* @description The internal edX Enterprise Subscription Product record.
2469+
*
2470+
* * `1` - B2B Paid
2471+
* * `3` - Trial
2472+
*/
2473+
product_id: components["schemas"]["ProductIdEnum"];
2474+
/** @description The number of licenses to create for this plan. */
24282475
desired_num_licenses: number;
2429-
/** Format: uuid */
2476+
/**
2477+
* Format: uuid
2478+
* @description Optional. The enterprise catalog uuid associated with this subscription plan.
2479+
*/
24302480
enterprise_catalog_uuid?: string | null;
24312481
};
24322482
/** @description Subscription Plan serializer for provisioning responses. */
@@ -3596,6 +3646,25 @@ export interface operations {
35963646
};
35973647
};
35983648
};
3649+
/**
3650+
* Health Check Ping
3651+
* @description Simple ping endpoint to check if the BFF service is running and responsive.
3652+
*/
3653+
ping_health_check: {
3654+
responses: {
3655+
200: {
3656+
content: {
3657+
"application/json": {
3658+
message?: string;
3659+
/** Format: date-time */
3660+
timestamp?: string;
3661+
status?: string;
3662+
service?: string;
3663+
};
3664+
};
3665+
};
3666+
};
3667+
};
35993668
/**
36003669
* Academy route
36013670
* @description Retrieves, transforms, and processes data for the learner academy route.

src/types/enterprise-subsidy.openapi.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -954,6 +954,7 @@ export interface operations {
954954
subsidy_access_policy_uuid?: string;
955955
};
956956
path: {
957+
/** @description A UUID string identifying this Subsidy. */
957958
uuid: string;
958959
};
959960
};

0 commit comments

Comments
 (0)