@iblai/iblai-api 4.328.1-core → 4.329.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.
- package/dist/index.cjs.js +281 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +282 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +281 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +6 -0
- package/dist/types/models/PatchedPlacementAssessmentUpdate.d.ts +13 -0
- package/dist/types/models/PlacementAssessment.d.ts +13 -0
- package/dist/types/models/PlacementCourseAssignmentCreate.d.ts +10 -0
- package/dist/types/models/PlacementProgramAssignmentCreate.d.ts +10 -0
- package/dist/types/models/PlacementRecordCreate.d.ts +9 -0
- package/dist/types/models/PlatformApplicationPlacementItem.d.ts +3 -4
- package/dist/types/models/SourceEnum.d.ts +10 -0
- package/dist/types/services/CatalogService.d.ts +149 -0
- package/package.json +1 -1
- package/sdk_schema.yml +545 -9
- package/src/core/OpenAPI.ts +1 -1
- package/src/index.ts +6 -0
- package/src/models/PatchedPlacementAssessmentUpdate.ts +18 -0
- package/src/models/PlacementAssessment.ts +18 -0
- package/src/models/PlacementCourseAssignmentCreate.ts +15 -0
- package/src/models/PlacementProgramAssignmentCreate.ts +15 -0
- package/src/models/PlacementRecordCreate.ts +14 -0
- package/src/models/PlatformApplicationPlacementItem.ts +3 -4
- package/src/models/SourceEnum.ts +14 -0
- package/src/services/CatalogService.ts +326 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* Grant one program to a platform user, optionally linked to a placement.
|
|
7
|
+
*/
|
|
8
|
+
export type PlacementProgramAssignmentCreate = {
|
|
9
|
+
user_id: number;
|
|
10
|
+
program_key: string;
|
|
11
|
+
started?: string;
|
|
12
|
+
expired?: string;
|
|
13
|
+
placement_id?: number;
|
|
14
|
+
};
|
|
15
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* Assign a configured assessment to a platform user (no application).
|
|
7
|
+
*/
|
|
8
|
+
export type PlacementRecordCreate = {
|
|
9
|
+
user_id: number;
|
|
10
|
+
assessment_id: number;
|
|
11
|
+
session_id?: string;
|
|
12
|
+
note?: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
@@ -3,13 +3,12 @@
|
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
/**
|
|
6
|
-
* One placement assignment: which candidate, which
|
|
6
|
+
* One placement assignment: which candidate, which configured assessment.
|
|
7
|
+
* The agent and subject come from the assessment, snapshotted onto the record.
|
|
7
8
|
*/
|
|
8
9
|
export type PlatformApplicationPlacementItem = {
|
|
9
10
|
candidate_id: number;
|
|
10
|
-
|
|
11
|
-
mentor_label?: string;
|
|
12
|
-
label?: string;
|
|
11
|
+
assessment_id: number;
|
|
13
12
|
session_id?: string;
|
|
14
13
|
note?: string;
|
|
15
14
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* * `agent` - agent
|
|
7
|
+
* * `manual` - manual
|
|
8
|
+
* * `external` - external
|
|
9
|
+
*/
|
|
10
|
+
export enum SourceEnum {
|
|
11
|
+
AGENT = 'agent',
|
|
12
|
+
MANUAL = 'manual',
|
|
13
|
+
EXTERNAL = 'external',
|
|
14
|
+
}
|
|
@@ -72,6 +72,7 @@ import type { PaginatedSkill } from '../models/PaginatedSkill';
|
|
|
72
72
|
import type { PaginatedUserLicense } from '../models/PaginatedUserLicense';
|
|
73
73
|
import type { PaginatedUserLicenseAssignment } from '../models/PaginatedUserLicenseAssignment';
|
|
74
74
|
import type { PaginatedUserLicenseGroupAssignment } from '../models/PaginatedUserLicenseGroupAssignment';
|
|
75
|
+
import type { PatchedPlacementAssessmentUpdate } from '../models/PatchedPlacementAssessmentUpdate';
|
|
75
76
|
import type { PatchedPlatformApplicationFormUpdate } from '../models/PatchedPlatformApplicationFormUpdate';
|
|
76
77
|
import type { PatchedPlatformApplicationNote } from '../models/PatchedPlatformApplicationNote';
|
|
77
78
|
import type { PatchedPlatformApplicationPlacementUpdate } from '../models/PatchedPlatformApplicationPlacementUpdate';
|
|
@@ -89,6 +90,10 @@ import type { PathwaySelfEnrollmentRequest } from '../models/PathwaySelfEnrollme
|
|
|
89
90
|
import type { PathwaySuggestionBulkCreate } from '../models/PathwaySuggestionBulkCreate';
|
|
90
91
|
import type { PathwaySuggestionCreate } from '../models/PathwaySuggestionCreate';
|
|
91
92
|
import type { PathwaySuggestionDetail } from '../models/PathwaySuggestionDetail';
|
|
93
|
+
import type { PlacementAssessment } from '../models/PlacementAssessment';
|
|
94
|
+
import type { PlacementCourseAssignmentCreate } from '../models/PlacementCourseAssignmentCreate';
|
|
95
|
+
import type { PlacementProgramAssignmentCreate } from '../models/PlacementProgramAssignmentCreate';
|
|
96
|
+
import type { PlacementRecordCreate } from '../models/PlacementRecordCreate';
|
|
92
97
|
import type { PlatformApplicationAdminSubmit } from '../models/PlatformApplicationAdminSubmit';
|
|
93
98
|
import type { PlatformApplicationAttachmentUpload } from '../models/PlatformApplicationAttachmentUpload';
|
|
94
99
|
import type { PlatformApplicationCandidateLink } from '../models/PlatformApplicationCandidateLink';
|
|
@@ -7735,6 +7740,327 @@ export class CatalogService {
|
|
|
7735
7740
|
},
|
|
7736
7741
|
});
|
|
7737
7742
|
}
|
|
7743
|
+
/**
|
|
7744
|
+
* A platform's placement assessments (#2280): list and create.
|
|
7745
|
+
* @returns any Assessments for the platform
|
|
7746
|
+
* @throws ApiError
|
|
7747
|
+
*/
|
|
7748
|
+
public static catalogPlacementsAssessmentsRetrieve(): CancelablePromise<any> {
|
|
7749
|
+
return __request(OpenAPI, {
|
|
7750
|
+
method: 'GET',
|
|
7751
|
+
url: '/api/catalog/placements/assessments/',
|
|
7752
|
+
});
|
|
7753
|
+
}
|
|
7754
|
+
/**
|
|
7755
|
+
* A platform's placement assessments (#2280): list and create.
|
|
7756
|
+
* @returns any Assessment created
|
|
7757
|
+
* @throws ApiError
|
|
7758
|
+
*/
|
|
7759
|
+
public static catalogPlacementsAssessmentsCreate({
|
|
7760
|
+
requestBody,
|
|
7761
|
+
}: {
|
|
7762
|
+
requestBody: PlacementAssessment,
|
|
7763
|
+
}): CancelablePromise<any> {
|
|
7764
|
+
return __request(OpenAPI, {
|
|
7765
|
+
method: 'POST',
|
|
7766
|
+
url: '/api/catalog/placements/assessments/',
|
|
7767
|
+
body: requestBody,
|
|
7768
|
+
mediaType: 'application/json',
|
|
7769
|
+
});
|
|
7770
|
+
}
|
|
7771
|
+
/**
|
|
7772
|
+
* A single placement assessment: view, edit, or delete.
|
|
7773
|
+
* @returns any Assessment
|
|
7774
|
+
* @throws ApiError
|
|
7775
|
+
*/
|
|
7776
|
+
public static catalogPlacementsAssessmentsRetrieve2({
|
|
7777
|
+
assessmentId,
|
|
7778
|
+
}: {
|
|
7779
|
+
assessmentId: string,
|
|
7780
|
+
}): CancelablePromise<any> {
|
|
7781
|
+
return __request(OpenAPI, {
|
|
7782
|
+
method: 'GET',
|
|
7783
|
+
url: '/api/catalog/placements/assessments/{assessment_id}/',
|
|
7784
|
+
path: {
|
|
7785
|
+
'assessment_id': assessmentId,
|
|
7786
|
+
},
|
|
7787
|
+
});
|
|
7788
|
+
}
|
|
7789
|
+
/**
|
|
7790
|
+
* A single placement assessment: view, edit, or delete.
|
|
7791
|
+
* @returns any Assessment updated
|
|
7792
|
+
* @throws ApiError
|
|
7793
|
+
*/
|
|
7794
|
+
public static catalogPlacementsAssessmentsPartialUpdate({
|
|
7795
|
+
assessmentId,
|
|
7796
|
+
requestBody,
|
|
7797
|
+
}: {
|
|
7798
|
+
assessmentId: string,
|
|
7799
|
+
requestBody?: PatchedPlacementAssessmentUpdate,
|
|
7800
|
+
}): CancelablePromise<any> {
|
|
7801
|
+
return __request(OpenAPI, {
|
|
7802
|
+
method: 'PATCH',
|
|
7803
|
+
url: '/api/catalog/placements/assessments/{assessment_id}/',
|
|
7804
|
+
path: {
|
|
7805
|
+
'assessment_id': assessmentId,
|
|
7806
|
+
},
|
|
7807
|
+
body: requestBody,
|
|
7808
|
+
mediaType: 'application/json',
|
|
7809
|
+
});
|
|
7810
|
+
}
|
|
7811
|
+
/**
|
|
7812
|
+
* A single placement assessment: view, edit, or delete.
|
|
7813
|
+
* @returns void
|
|
7814
|
+
* @throws ApiError
|
|
7815
|
+
*/
|
|
7816
|
+
public static catalogPlacementsAssessmentsDestroy({
|
|
7817
|
+
assessmentId,
|
|
7818
|
+
}: {
|
|
7819
|
+
assessmentId: string,
|
|
7820
|
+
}): CancelablePromise<void> {
|
|
7821
|
+
return __request(OpenAPI, {
|
|
7822
|
+
method: 'DELETE',
|
|
7823
|
+
url: '/api/catalog/placements/assessments/{assessment_id}/',
|
|
7824
|
+
path: {
|
|
7825
|
+
'assessment_id': assessmentId,
|
|
7826
|
+
},
|
|
7827
|
+
});
|
|
7828
|
+
}
|
|
7829
|
+
/**
|
|
7830
|
+
* Course assignments on a platform (#2280): list (optionally by user), and
|
|
7831
|
+
* grant a course to a user. Each grant issues a ``CourseInvitation`` the
|
|
7832
|
+
* existing pipeline enrolls.
|
|
7833
|
+
* @returns any Course assignments
|
|
7834
|
+
* @throws ApiError
|
|
7835
|
+
*/
|
|
7836
|
+
public static catalogPlacementsCourseAssignmentsRetrieve({
|
|
7837
|
+
platformKey,
|
|
7838
|
+
userId,
|
|
7839
|
+
}: {
|
|
7840
|
+
platformKey: string,
|
|
7841
|
+
userId?: number,
|
|
7842
|
+
}): CancelablePromise<any> {
|
|
7843
|
+
return __request(OpenAPI, {
|
|
7844
|
+
method: 'GET',
|
|
7845
|
+
url: '/api/catalog/placements/course-assignments/',
|
|
7846
|
+
query: {
|
|
7847
|
+
'platform_key': platformKey,
|
|
7848
|
+
'user_id': userId,
|
|
7849
|
+
},
|
|
7850
|
+
});
|
|
7851
|
+
}
|
|
7852
|
+
/**
|
|
7853
|
+
* Course assignments on a platform (#2280): list (optionally by user), and
|
|
7854
|
+
* grant a course to a user. Each grant issues a ``CourseInvitation`` the
|
|
7855
|
+
* existing pipeline enrolls.
|
|
7856
|
+
* @returns any Course assigned
|
|
7857
|
+
* @throws ApiError
|
|
7858
|
+
*/
|
|
7859
|
+
public static catalogPlacementsCourseAssignmentsCreate({
|
|
7860
|
+
platformKey,
|
|
7861
|
+
requestBody,
|
|
7862
|
+
userId,
|
|
7863
|
+
}: {
|
|
7864
|
+
platformKey: string,
|
|
7865
|
+
requestBody: PlacementCourseAssignmentCreate,
|
|
7866
|
+
userId?: number,
|
|
7867
|
+
}): CancelablePromise<any> {
|
|
7868
|
+
return __request(OpenAPI, {
|
|
7869
|
+
method: 'POST',
|
|
7870
|
+
url: '/api/catalog/placements/course-assignments/',
|
|
7871
|
+
query: {
|
|
7872
|
+
'platform_key': platformKey,
|
|
7873
|
+
'user_id': userId,
|
|
7874
|
+
},
|
|
7875
|
+
body: requestBody,
|
|
7876
|
+
mediaType: 'application/json',
|
|
7877
|
+
});
|
|
7878
|
+
}
|
|
7879
|
+
/**
|
|
7880
|
+
* Remove one course assignment: deactivate the record and cancel its
|
|
7881
|
+
* invitation when the student has not yet enrolled through it.
|
|
7882
|
+
* @returns void
|
|
7883
|
+
* @throws ApiError
|
|
7884
|
+
*/
|
|
7885
|
+
public static catalogPlacementsCourseAssignmentsDestroy({
|
|
7886
|
+
assignmentId,
|
|
7887
|
+
}: {
|
|
7888
|
+
assignmentId: string,
|
|
7889
|
+
}): CancelablePromise<void> {
|
|
7890
|
+
return __request(OpenAPI, {
|
|
7891
|
+
method: 'DELETE',
|
|
7892
|
+
url: '/api/catalog/placements/course-assignments/{assignment_id}/',
|
|
7893
|
+
path: {
|
|
7894
|
+
'assignment_id': assignmentId,
|
|
7895
|
+
},
|
|
7896
|
+
});
|
|
7897
|
+
}
|
|
7898
|
+
/**
|
|
7899
|
+
* Program assignments on a platform (#2280): list (optionally by user), and
|
|
7900
|
+
* grant a program to a user. Each grant issues a ``ProgramInvitation``.
|
|
7901
|
+
* @returns any Program assignments
|
|
7902
|
+
* @throws ApiError
|
|
7903
|
+
*/
|
|
7904
|
+
public static catalogPlacementsProgramAssignmentsRetrieve({
|
|
7905
|
+
platformKey,
|
|
7906
|
+
userId,
|
|
7907
|
+
}: {
|
|
7908
|
+
platformKey: string,
|
|
7909
|
+
userId?: number,
|
|
7910
|
+
}): CancelablePromise<any> {
|
|
7911
|
+
return __request(OpenAPI, {
|
|
7912
|
+
method: 'GET',
|
|
7913
|
+
url: '/api/catalog/placements/program-assignments/',
|
|
7914
|
+
query: {
|
|
7915
|
+
'platform_key': platformKey,
|
|
7916
|
+
'user_id': userId,
|
|
7917
|
+
},
|
|
7918
|
+
});
|
|
7919
|
+
}
|
|
7920
|
+
/**
|
|
7921
|
+
* Program assignments on a platform (#2280): list (optionally by user), and
|
|
7922
|
+
* grant a program to a user. Each grant issues a ``ProgramInvitation``.
|
|
7923
|
+
* @returns any Program assigned
|
|
7924
|
+
* @throws ApiError
|
|
7925
|
+
*/
|
|
7926
|
+
public static catalogPlacementsProgramAssignmentsCreate({
|
|
7927
|
+
platformKey,
|
|
7928
|
+
requestBody,
|
|
7929
|
+
userId,
|
|
7930
|
+
}: {
|
|
7931
|
+
platformKey: string,
|
|
7932
|
+
requestBody: PlacementProgramAssignmentCreate,
|
|
7933
|
+
userId?: number,
|
|
7934
|
+
}): CancelablePromise<any> {
|
|
7935
|
+
return __request(OpenAPI, {
|
|
7936
|
+
method: 'POST',
|
|
7937
|
+
url: '/api/catalog/placements/program-assignments/',
|
|
7938
|
+
query: {
|
|
7939
|
+
'platform_key': platformKey,
|
|
7940
|
+
'user_id': userId,
|
|
7941
|
+
},
|
|
7942
|
+
body: requestBody,
|
|
7943
|
+
mediaType: 'application/json',
|
|
7944
|
+
});
|
|
7945
|
+
}
|
|
7946
|
+
/**
|
|
7947
|
+
* Remove one program assignment: deactivate the record and cancel its
|
|
7948
|
+
* invitation when the student has not yet enrolled through it.
|
|
7949
|
+
* @returns void
|
|
7950
|
+
* @throws ApiError
|
|
7951
|
+
*/
|
|
7952
|
+
public static catalogPlacementsProgramAssignmentsDestroy({
|
|
7953
|
+
assignmentId,
|
|
7954
|
+
}: {
|
|
7955
|
+
assignmentId: string,
|
|
7956
|
+
}): CancelablePromise<void> {
|
|
7957
|
+
return __request(OpenAPI, {
|
|
7958
|
+
method: 'DELETE',
|
|
7959
|
+
url: '/api/catalog/placements/program-assignments/{assignment_id}/',
|
|
7960
|
+
path: {
|
|
7961
|
+
'assignment_id': assignmentId,
|
|
7962
|
+
},
|
|
7963
|
+
});
|
|
7964
|
+
}
|
|
7965
|
+
/**
|
|
7966
|
+
* Placement records on a platform (#2280): list (filter by user, assessment,
|
|
7967
|
+
* or status), and assign a configured assessment to a user.
|
|
7968
|
+
* @returns any Placement records
|
|
7969
|
+
* @throws ApiError
|
|
7970
|
+
*/
|
|
7971
|
+
public static catalogPlacementsRecordsRetrieve({
|
|
7972
|
+
platformKey,
|
|
7973
|
+
assessmentId,
|
|
7974
|
+
status,
|
|
7975
|
+
userId,
|
|
7976
|
+
}: {
|
|
7977
|
+
platformKey: string,
|
|
7978
|
+
assessmentId?: number,
|
|
7979
|
+
/**
|
|
7980
|
+
* * `not_assigned` - not_assigned
|
|
7981
|
+
* * `assigned` - assigned
|
|
7982
|
+
* * `started` - started
|
|
7983
|
+
* * `completed` - completed
|
|
7984
|
+
* * `reviewed` - reviewed
|
|
7985
|
+
* * `confirmed` - confirmed
|
|
7986
|
+
*/
|
|
7987
|
+
status?: 'not_assigned' | 'assigned' | 'started' | 'completed' | 'reviewed' | 'confirmed',
|
|
7988
|
+
userId?: number,
|
|
7989
|
+
}): CancelablePromise<any> {
|
|
7990
|
+
return __request(OpenAPI, {
|
|
7991
|
+
method: 'GET',
|
|
7992
|
+
url: '/api/catalog/placements/records/',
|
|
7993
|
+
query: {
|
|
7994
|
+
'assessment_id': assessmentId,
|
|
7995
|
+
'platform_key': platformKey,
|
|
7996
|
+
'status': status,
|
|
7997
|
+
'user_id': userId,
|
|
7998
|
+
},
|
|
7999
|
+
});
|
|
8000
|
+
}
|
|
8001
|
+
/**
|
|
8002
|
+
* Placement records on a platform (#2280): list (filter by user, assessment,
|
|
8003
|
+
* or status), and assign a configured assessment to a user.
|
|
8004
|
+
* @returns any Placement assigned
|
|
8005
|
+
* @throws ApiError
|
|
8006
|
+
*/
|
|
8007
|
+
public static catalogPlacementsRecordsCreate({
|
|
8008
|
+
platformKey,
|
|
8009
|
+
requestBody,
|
|
8010
|
+
assessmentId,
|
|
8011
|
+
status,
|
|
8012
|
+
userId,
|
|
8013
|
+
}: {
|
|
8014
|
+
platformKey: string,
|
|
8015
|
+
requestBody: PlacementRecordCreate,
|
|
8016
|
+
assessmentId?: number,
|
|
8017
|
+
/**
|
|
8018
|
+
* * `not_assigned` - not_assigned
|
|
8019
|
+
* * `assigned` - assigned
|
|
8020
|
+
* * `started` - started
|
|
8021
|
+
* * `completed` - completed
|
|
8022
|
+
* * `reviewed` - reviewed
|
|
8023
|
+
* * `confirmed` - confirmed
|
|
8024
|
+
*/
|
|
8025
|
+
status?: 'not_assigned' | 'assigned' | 'started' | 'completed' | 'reviewed' | 'confirmed',
|
|
8026
|
+
userId?: number,
|
|
8027
|
+
}): CancelablePromise<any> {
|
|
8028
|
+
return __request(OpenAPI, {
|
|
8029
|
+
method: 'POST',
|
|
8030
|
+
url: '/api/catalog/placements/records/',
|
|
8031
|
+
query: {
|
|
8032
|
+
'assessment_id': assessmentId,
|
|
8033
|
+
'platform_key': platformKey,
|
|
8034
|
+
'status': status,
|
|
8035
|
+
'user_id': userId,
|
|
8036
|
+
},
|
|
8037
|
+
body: requestBody,
|
|
8038
|
+
mediaType: 'application/json',
|
|
8039
|
+
});
|
|
8040
|
+
}
|
|
8041
|
+
/**
|
|
8042
|
+
* Advance a single placement record: status, the agent's result, an admin
|
|
8043
|
+
* override, or a note.
|
|
8044
|
+
* @returns any Record updated
|
|
8045
|
+
* @throws ApiError
|
|
8046
|
+
*/
|
|
8047
|
+
public static catalogPlacementsRecordsPartialUpdate({
|
|
8048
|
+
recordId,
|
|
8049
|
+
requestBody,
|
|
8050
|
+
}: {
|
|
8051
|
+
recordId: string,
|
|
8052
|
+
requestBody?: PatchedPlatformApplicationPlacementUpdate,
|
|
8053
|
+
}): CancelablePromise<any> {
|
|
8054
|
+
return __request(OpenAPI, {
|
|
8055
|
+
method: 'PATCH',
|
|
8056
|
+
url: '/api/catalog/placements/records/{record_id}/',
|
|
8057
|
+
path: {
|
|
8058
|
+
'record_id': recordId,
|
|
8059
|
+
},
|
|
8060
|
+
body: requestBody,
|
|
8061
|
+
mediaType: 'application/json',
|
|
8062
|
+
});
|
|
8063
|
+
}
|
|
7738
8064
|
/**
|
|
7739
8065
|
* Retrieve programs matching query parameters. Limited parameters include program_id, name, slug, enabled, and org.
|
|
7740
8066
|
* @returns Program
|