@iblai/data-layer 1.10.0 → 1.11.1
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.d.ts +61831 -42087
- package/dist/index.esm.js +1214 -38
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1329 -37
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/src/config.d.ts +1 -0
- package/dist/src/constants.d.ts +2 -1
- package/dist/src/features/chat/__tests__/api-slice.test.d.ts +1 -0
- package/dist/src/features/chat/api-slice.d.ts +882 -1
- package/dist/src/features/chat/constants.d.ts +7 -0
- package/dist/src/features/core/api-slice.d.ts +1314 -345
- package/dist/src/features/core/types.d.ts +57 -0
- package/dist/src/features/evaluations/api-slice.d.ts +4314 -0
- package/dist/src/features/evaluations/constants.d.ts +102 -0
- package/dist/src/features/evaluations/types.d.ts +285 -0
- package/dist/src/features/mentor/privacy.d.ts +1 -1
- package/dist/src/features/platform/api-slice.d.ts +8610 -2
- package/dist/src/features/platform/types.d.ts +219 -0
- package/dist/src/features/studio-authoring/__tests__/api-slice.test.d.ts +1 -0
- package/dist/src/features/studio-authoring/api-slice.d.ts +1601 -0
- package/dist/src/features/studio-authoring/constants.d.ts +39 -0
- package/dist/src/features/studio-authoring/types.d.ts +65 -0
- package/dist/src/features/support-tickets/api-slice.d.ts +2356 -0
- package/dist/src/features/support-tickets/constants.d.ts +29 -0
- package/dist/src/features/support-tickets/types.d.ts +114 -0
- package/dist/src/features/utils.d.ts +5 -0
- package/dist/src/index.d.ts +9 -0
- package/dist/src/utils/__tests__/index.test.d.ts +1 -0
- package/dist/src/utils/index.d.ts +1 -1
- package/dist/tests/features/platform/api-slice.test.d.ts +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -59,3 +59,222 @@ export interface PlatformUserGroupDetailsResponse {
|
|
|
59
59
|
is_internal?: boolean;
|
|
60
60
|
users: PlatformUserGroupUser[];
|
|
61
61
|
}
|
|
62
|
+
/** One form of the platform application gate, as returned by the manage endpoints. */
|
|
63
|
+
export interface PlatformApplicationFormRecord {
|
|
64
|
+
id: number;
|
|
65
|
+
name?: string;
|
|
66
|
+
version?: number;
|
|
67
|
+
enabled?: boolean;
|
|
68
|
+
is_default?: boolean;
|
|
69
|
+
/** The form JSON definition (title, description, sections -> fields). */
|
|
70
|
+
schema?: Record<string, unknown>;
|
|
71
|
+
/** Behavior config: fee, decision templates, cooldown, renewal window. */
|
|
72
|
+
config?: Record<string, unknown>;
|
|
73
|
+
}
|
|
74
|
+
/** The gate's open (or most recent) submission summary, carrying its fee state. */
|
|
75
|
+
export interface PlatformApplicationStatusSubmission {
|
|
76
|
+
id: number;
|
|
77
|
+
status: string;
|
|
78
|
+
form_id?: number;
|
|
79
|
+
/** The saved answers, used to resume an editable draft. */
|
|
80
|
+
responses?: Record<string, unknown>;
|
|
81
|
+
/** Application-fee state, when the resolved form charges one. */
|
|
82
|
+
fee?: Record<string, unknown> | null;
|
|
83
|
+
submitted_at?: string | null;
|
|
84
|
+
[key: string]: unknown;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* The application gate state for the caller (GET .../platform/status). The
|
|
88
|
+
* single call that drives the applicant wizard's initial routing: the mode,
|
|
89
|
+
* whether the caller is a member, the active forms, the resolved form (null
|
|
90
|
+
* when several forms exist with no default and no `form_id` was supplied — then
|
|
91
|
+
* `form_id_required` is true), the caller's open/most recent submission with
|
|
92
|
+
* its fee state, and the resolved form's renewal configuration.
|
|
93
|
+
*/
|
|
94
|
+
export interface PlatformApplicationStatusResponse {
|
|
95
|
+
mode?: string;
|
|
96
|
+
is_member?: boolean;
|
|
97
|
+
active_forms?: PlatformApplicationFormRecord[];
|
|
98
|
+
form?: PlatformApplicationFormRecord | null;
|
|
99
|
+
form_id_required?: boolean;
|
|
100
|
+
submission?: PlatformApplicationStatusSubmission | null;
|
|
101
|
+
renewal?: Record<string, unknown> | null;
|
|
102
|
+
[key: string]: unknown;
|
|
103
|
+
}
|
|
104
|
+
/** Structured schema/submit error item shared by form save and submit validation. */
|
|
105
|
+
export interface PlatformApplicationValidationError {
|
|
106
|
+
section?: string | null;
|
|
107
|
+
field?: string | null;
|
|
108
|
+
index?: number | null;
|
|
109
|
+
error: string;
|
|
110
|
+
code?: string;
|
|
111
|
+
}
|
|
112
|
+
/** Per-student summary embedded in a reviewer pipeline row. */
|
|
113
|
+
export interface PlatformApplicationPipelineCandidate {
|
|
114
|
+
id?: number;
|
|
115
|
+
name?: string;
|
|
116
|
+
status?: string;
|
|
117
|
+
enrollment_phase?: 'enrolled' | 'enrollment_in_progress' | string | null;
|
|
118
|
+
}
|
|
119
|
+
/** Lightweight reviewer pipeline row (manage list endpoint). */
|
|
120
|
+
export interface PlatformApplicationPipelineRow {
|
|
121
|
+
id: number;
|
|
122
|
+
status: string;
|
|
123
|
+
applicant?: {
|
|
124
|
+
username?: string;
|
|
125
|
+
email?: string;
|
|
126
|
+
name?: string;
|
|
127
|
+
} | string | null;
|
|
128
|
+
candidates?: PlatformApplicationPipelineCandidate[];
|
|
129
|
+
form_id?: number;
|
|
130
|
+
form_name?: string;
|
|
131
|
+
submitted_at?: string | null;
|
|
132
|
+
created?: string;
|
|
133
|
+
modified?: string;
|
|
134
|
+
[key: string]: unknown;
|
|
135
|
+
}
|
|
136
|
+
export interface PlatformApplicationPipelineResponse {
|
|
137
|
+
count?: number;
|
|
138
|
+
next?: string | null;
|
|
139
|
+
previous?: string | null;
|
|
140
|
+
results?: PlatformApplicationPipelineRow[];
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Pipeline stats (manage stats endpoint): per-status counts plus post-approval
|
|
144
|
+
* buckets. Older backends returned the flat counts object directly, so both
|
|
145
|
+
* shapes are typed; read `counts ?? <flat>`.
|
|
146
|
+
*/
|
|
147
|
+
export interface PlatformApplicationPipelineStats {
|
|
148
|
+
counts?: Record<string, number>;
|
|
149
|
+
post_approval?: Record<string, number>;
|
|
150
|
+
[key: string]: unknown;
|
|
151
|
+
}
|
|
152
|
+
/** One audit-trail row on the reviewer application detail. */
|
|
153
|
+
export interface PlatformApplicationStatusEvent {
|
|
154
|
+
id: number;
|
|
155
|
+
candidate_id?: number | null;
|
|
156
|
+
from_status?: string | null;
|
|
157
|
+
to_status?: string;
|
|
158
|
+
actor?: string | null;
|
|
159
|
+
note?: string | null;
|
|
160
|
+
created?: string;
|
|
161
|
+
}
|
|
162
|
+
/** One internal note on the reviewer application detail. */
|
|
163
|
+
export interface PlatformApplicationNote {
|
|
164
|
+
id: number;
|
|
165
|
+
kind?: 'general' | 'interview' | string;
|
|
166
|
+
body: string;
|
|
167
|
+
author?: string | null;
|
|
168
|
+
created?: string;
|
|
169
|
+
modified?: string;
|
|
170
|
+
}
|
|
171
|
+
/** One reviewer-side candidate (per-student record) on the application detail. */
|
|
172
|
+
export interface PlatformApplicationCandidate {
|
|
173
|
+
id: number;
|
|
174
|
+
item_id?: string | null;
|
|
175
|
+
label?: string;
|
|
176
|
+
details?: Record<string, unknown>;
|
|
177
|
+
status?: string;
|
|
178
|
+
decision_message?: string | null;
|
|
179
|
+
decided_at?: string | null;
|
|
180
|
+
decision_sent_at?: string | null;
|
|
181
|
+
identity?: 'linked' | 'invited' | 'invite_missing' | 'account_unlinked' | 'parent_account' | string;
|
|
182
|
+
enrollment_phase?: 'enrolled' | 'enrollment_in_progress' | string | null;
|
|
183
|
+
removed?: boolean;
|
|
184
|
+
[key: string]: unknown;
|
|
185
|
+
}
|
|
186
|
+
/** One placement-test row (reviewer surface, accepted students only). */
|
|
187
|
+
export interface PlatformApplicationPlacement {
|
|
188
|
+
id: number;
|
|
189
|
+
candidate_id: number;
|
|
190
|
+
mentor_unique_id?: string;
|
|
191
|
+
mentor_label?: string;
|
|
192
|
+
label?: string;
|
|
193
|
+
session_id?: string;
|
|
194
|
+
status?: string;
|
|
195
|
+
result?: unknown;
|
|
196
|
+
override?: unknown;
|
|
197
|
+
override_at?: string | null;
|
|
198
|
+
note?: string | null;
|
|
199
|
+
created?: string;
|
|
200
|
+
modified?: string;
|
|
201
|
+
}
|
|
202
|
+
/** One course-assignment row (reviewer surface, accepted students only). */
|
|
203
|
+
export interface PlatformApplicationCourseAssignment {
|
|
204
|
+
id: number;
|
|
205
|
+
candidate_id: number;
|
|
206
|
+
course_id: string;
|
|
207
|
+
placement_id?: number | null;
|
|
208
|
+
invitation_id?: number | null;
|
|
209
|
+
started?: string | null;
|
|
210
|
+
expired?: string | null;
|
|
211
|
+
active?: boolean;
|
|
212
|
+
created?: string;
|
|
213
|
+
modified?: string;
|
|
214
|
+
}
|
|
215
|
+
/** One submit-blocking checklist row (editable applications, reviewer detail). */
|
|
216
|
+
export interface PlatformApplicationBlockingItem {
|
|
217
|
+
section?: string | null;
|
|
218
|
+
field?: string | null;
|
|
219
|
+
index?: number | null;
|
|
220
|
+
error?: string;
|
|
221
|
+
code?: string;
|
|
222
|
+
waived?: boolean;
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* The reviewer application detail (manage/<id>): the applicant payload plus
|
|
226
|
+
* reviewer-only material. Kept open-ended; the wizard-side types stay in
|
|
227
|
+
* web-containers.
|
|
228
|
+
*/
|
|
229
|
+
export interface PlatformApplicationAdminDetail {
|
|
230
|
+
id: number;
|
|
231
|
+
platform_key?: string;
|
|
232
|
+
status?: string;
|
|
233
|
+
form_id?: number;
|
|
234
|
+
form_version?: number;
|
|
235
|
+
form_schema?: Record<string, unknown>;
|
|
236
|
+
responses?: Record<string, unknown>;
|
|
237
|
+
user?: {
|
|
238
|
+
id?: number;
|
|
239
|
+
username?: string;
|
|
240
|
+
email?: string;
|
|
241
|
+
name?: string;
|
|
242
|
+
};
|
|
243
|
+
candidates?: PlatformApplicationCandidate[];
|
|
244
|
+
attachments?: {
|
|
245
|
+
id: number;
|
|
246
|
+
field?: string;
|
|
247
|
+
item_id?: string | null;
|
|
248
|
+
filename?: string;
|
|
249
|
+
content_type?: string;
|
|
250
|
+
size?: number;
|
|
251
|
+
}[];
|
|
252
|
+
waivers?: {
|
|
253
|
+
section?: string;
|
|
254
|
+
field?: string;
|
|
255
|
+
reason?: string | null;
|
|
256
|
+
}[];
|
|
257
|
+
placements?: PlatformApplicationPlacement[];
|
|
258
|
+
course_assignments?: PlatformApplicationCourseAssignment[];
|
|
259
|
+
status_events?: PlatformApplicationStatusEvent[];
|
|
260
|
+
notes?: PlatformApplicationNote[];
|
|
261
|
+
blocking_items?: PlatformApplicationBlockingItem[];
|
|
262
|
+
sensitive_masked?: string[];
|
|
263
|
+
submitted_at?: string | null;
|
|
264
|
+
decided_at?: string | null;
|
|
265
|
+
created?: string;
|
|
266
|
+
modified?: string;
|
|
267
|
+
[key: string]: unknown;
|
|
268
|
+
}
|
|
269
|
+
/** One ban-list row (manage/blocks). */
|
|
270
|
+
export interface PlatformApplicationBlock {
|
|
271
|
+
id: number;
|
|
272
|
+
user?: {
|
|
273
|
+
id?: number;
|
|
274
|
+
username?: string;
|
|
275
|
+
email?: string;
|
|
276
|
+
};
|
|
277
|
+
reason?: string | null;
|
|
278
|
+
created_by?: string | null;
|
|
279
|
+
created?: string;
|
|
280
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|