Skip to content

Commit 079ffeb

Browse files
chore: generate Open API types
1 parent 8ec64a1 commit 079ffeb

File tree

2 files changed

+259
-21
lines changed

2 files changed

+259
-21
lines changed

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

Lines changed: 113 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,20 @@ export interface paths {
295295
*/
296296
get: operations["api_v1_learner_credit_requests_retrieve"];
297297
};
298+
"/api/v1/learner-credit-requests/approve/": {
299+
/**
300+
* Approve a learner credit request.
301+
* @description Approve a learner credit request.
302+
*/
303+
post: operations["api_v1_learner_credit_requests_approve_create"];
304+
};
305+
"/api/v1/learner-credit-requests/cancel/": {
306+
/**
307+
* Learner credit request cancel endpoint.
308+
* @description Cancel a learner credit request.
309+
*/
310+
post: operations["api_v1_learner_credit_requests_cancel_create"];
311+
};
298312
"/api/v1/learner-credit-requests/decline/": {
299313
/**
300314
* Decline a learner credit request.
@@ -309,6 +323,10 @@ export interface paths {
309323
*/
310324
get: operations["api_v1_learner_credit_requests_overview_retrieve"];
311325
};
326+
"/api/v1/learner-credit-requests/remind/": {
327+
/** @description Remind a Learner that their LearnerCreditRequest is Approved and waiting for their action. */
328+
post: operations["api_v1_learner_credit_requests_remind_create"];
329+
};
312330
"/api/v1/license-requests/": {
313331
/**
314332
* License request list.
@@ -1489,7 +1507,6 @@ export interface components {
14891507
active_enterprise_customer?: components["schemas"]["EnterpriseCustomer"] | null;
14901508
staff_enterprise_customer?: components["schemas"]["EnterpriseCustomer"] | null;
14911509
should_update_active_enterprise_customer_user: boolean;
1492-
secured_algolia_api_key?: string | null;
14931510
/** @description Mapping of catalog UUIDs to catalog query UUIDs. */
14941511
catalog_uuids_to_catalog_query_uuids: {
14951512
[key: string]: string;
@@ -1835,6 +1852,37 @@ export interface components {
18351852
course_price?: number | null;
18361853
latest_action: string;
18371854
};
1855+
/**
1856+
* @description Request Serializer to validate subsidy-request ``approve`` endpoint POST data.
1857+
*
1858+
* For view: LearnerCreditRequestViewSet.approve
1859+
*/
1860+
LearnerCreditRequestApproveRequest: {
1861+
/**
1862+
* Format: uuid
1863+
* @description The UUID of the policy to which the request belongs.
1864+
*/
1865+
policy_uuid: string;
1866+
/**
1867+
* Format: uuid
1868+
* @description The UUID of the Enterprise Customer.
1869+
*/
1870+
enterprise_customer_uuid: string;
1871+
/**
1872+
* Format: uuid
1873+
* @description The UUID of the LearnerCreditRequest to be approved.
1874+
*/
1875+
learner_credit_request_uuid: string;
1876+
};
1877+
/**
1878+
* @description Request serializer to validate cancel endpoint query params.
1879+
*
1880+
* For view: LearnerCreditRequestViewSet.cancel
1881+
*/
1882+
LearnerCreditRequestCancel: {
1883+
/** Format: uuid */
1884+
request_uuid: string;
1885+
};
18381886
/** @description Serializer for declining a learner credit request. */
18391887
LearnerCreditRequestDecline: {
18401888
/**
@@ -1872,7 +1920,6 @@ export interface components {
18721920
active_enterprise_customer?: components["schemas"]["EnterpriseCustomer"] | null;
18731921
staff_enterprise_customer?: components["schemas"]["EnterpriseCustomer"] | null;
18741922
should_update_active_enterprise_customer_user: boolean;
1875-
secured_algolia_api_key?: string | null;
18761923
/** @description Mapping of catalog UUIDs to catalog query UUIDs. */
18771924
catalog_uuids_to_catalog_query_uuids: {
18781925
[key: string]: string;
@@ -1912,7 +1959,6 @@ export interface components {
19121959
active_enterprise_customer?: components["schemas"]["EnterpriseCustomer"] | null;
19131960
staff_enterprise_customer?: components["schemas"]["EnterpriseCustomer"] | null;
19141961
should_update_active_enterprise_customer_user: boolean;
1915-
secured_algolia_api_key?: string | null;
19161962
/** @description Mapping of catalog UUIDs to catalog query UUIDs. */
19171963
catalog_uuids_to_catalog_query_uuids: {
19181964
[key: string]: string;
@@ -1942,7 +1988,6 @@ export interface components {
19421988
active_enterprise_customer?: components["schemas"]["EnterpriseCustomer"] | null;
19431989
staff_enterprise_customer?: components["schemas"]["EnterpriseCustomer"] | null;
19441990
should_update_active_enterprise_customer_user: boolean;
1945-
secured_algolia_api_key?: string | null;
19461991
/** @description Mapping of catalog UUIDs to catalog query UUIDs. */
19471992
catalog_uuids_to_catalog_query_uuids: {
19481993
[key: string]: string;
@@ -2551,11 +2596,11 @@ export interface components {
25512596
* @description Total Amount redeemed for policy, in USD.
25522597
*/
25532598
amount_redeemed_usd: number;
2554-
/** @description Total amount allocated for policies of type AssignedLearnerCreditAccessPolicy (0 otherwise), in positive USD cents. */
2599+
/** @description Total amount allocated for policies of type AssignedLearnerCreditAccessPolicy or {PolicyTypes.PER_LEARNER_SPEND_CREDIT} (0 otherwise), in positive USD cents. */
25552600
amount_allocated_usd_cents: number;
25562601
/**
25572602
* Format: double
2558-
* @description ('Total amount allocated for policies of type AssignedLearnerCreditAccessPolicy (0 otherwise), in USD.',)
2603+
* @description ('Total amount allocated for policies of type AssignedLearnerCreditAccessPolicy or ', '{PolicyTypes.PER_LEARNER_SPEND_CREDIT} (0 otherwise), in USD.')
25592604
*/
25602605
amount_allocated_usd: number;
25612606
/** @description Total Amount of available spend for policy, in positive USD cents. */
@@ -4046,12 +4091,17 @@ export interface operations {
40464091
query?: {
40474092
course_id?: string;
40484093
enterprise_customer_uuid?: string;
4094+
/** @description Choose from the following valid action statuses: requested, pending, approved, declined, error, accepted, cancelled, expired, reversed, reminded */
4095+
latest_action_status?: string;
4096+
/** @description Choose from the following valid action statuses: requested, pending, approved, declined, error, accepted, cancelled, expired, reversed, reminded */
4097+
latest_action_status__in?: string[];
40494098
/** @description Which field to use when ordering the results. */
40504099
ordering?: string;
40514100
/** @description A page number within the paginated result set. */
40524101
page?: number;
40534102
/** @description Number of results to return per page. */
40544103
page_size?: number;
4104+
policy_uuid?: string;
40554105
/** @description A search term. */
40564106
search?: string;
40574107
user__email?: string;
@@ -4105,6 +4155,46 @@ export interface operations {
41054155
};
41064156
};
41074157
};
4158+
/**
4159+
* Approve a learner credit request.
4160+
* @description Approve a learner credit request.
4161+
*/
4162+
api_v1_learner_credit_requests_approve_create: {
4163+
requestBody: {
4164+
content: {
4165+
"application/json": components["schemas"]["LearnerCreditRequestApproveRequest"];
4166+
"application/x-www-form-urlencoded": components["schemas"]["LearnerCreditRequestApproveRequest"];
4167+
"multipart/form-data": components["schemas"]["LearnerCreditRequestApproveRequest"];
4168+
};
4169+
};
4170+
responses: {
4171+
200: {
4172+
content: {
4173+
"application/json": components["schemas"]["LearnerCreditRequest"];
4174+
};
4175+
};
4176+
};
4177+
};
4178+
/**
4179+
* Learner credit request cancel endpoint.
4180+
* @description Cancel a learner credit request.
4181+
*/
4182+
api_v1_learner_credit_requests_cancel_create: {
4183+
requestBody: {
4184+
content: {
4185+
"application/json": components["schemas"]["LearnerCreditRequestCancel"];
4186+
"application/x-www-form-urlencoded": components["schemas"]["LearnerCreditRequestCancel"];
4187+
"multipart/form-data": components["schemas"]["LearnerCreditRequestCancel"];
4188+
};
4189+
};
4190+
responses: {
4191+
200: {
4192+
content: {
4193+
"application/json": components["schemas"]["LearnerCreditRequestCancel"];
4194+
};
4195+
};
4196+
};
4197+
};
41084198
/**
41094199
* Decline a learner credit request.
41104200
* @description Action of declining a Learner Credit Subsidy Request
@@ -4138,6 +4228,23 @@ export interface operations {
41384228
};
41394229
};
41404230
};
4231+
/** @description Remind a Learner that their LearnerCreditRequest is Approved and waiting for their action. */
4232+
api_v1_learner_credit_requests_remind_create: {
4233+
requestBody: {
4234+
content: {
4235+
"application/json": components["schemas"]["LearnerCreditRequest"];
4236+
"application/x-www-form-urlencoded": components["schemas"]["LearnerCreditRequest"];
4237+
"multipart/form-data": components["schemas"]["LearnerCreditRequest"];
4238+
};
4239+
};
4240+
responses: {
4241+
200: {
4242+
content: {
4243+
"application/json": components["schemas"]["LearnerCreditRequest"];
4244+
};
4245+
};
4246+
};
4247+
};
41414248
/**
41424249
* License request list.
41434250
* @description Viewset for license requests

0 commit comments

Comments
 (0)