@iblai/iblai-api 4.284.3-core → 4.285.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 +174 -21
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +175 -22
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +174 -21
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +4 -1
- package/dist/types/models/DirectionEnum.d.ts +8 -0
- package/dist/types/models/EximTask.d.ts +2 -2
- package/dist/types/models/PlatformMigrationRun.d.ts +31 -0
- package/dist/types/models/PlatformMigrationRunCreate.d.ts +18 -0
- package/dist/types/models/{EximTaskStatusEnum.d.ts → Status147Enum.d.ts} +1 -1
- package/dist/types/services/EximService.d.ts +103 -0
- package/package.json +1 -1
- package/sdk_schema.yml +389 -16
- package/src/core/OpenAPI.ts +1 -1
- package/src/index.ts +4 -1
- package/src/models/DirectionEnum.ts +12 -0
- package/src/models/EximTask.ts +2 -2
- package/src/models/PlatformMigrationRun.ts +36 -0
- package/src/models/PlatformMigrationRunCreate.ts +23 -0
- package/src/models/{EximTaskStatusEnum.ts → Status147Enum.ts} +1 -1
- package/src/services/EximService.ts +172 -0
|
@@ -3,6 +3,8 @@ import type { EximTask } from '../models/EximTask';
|
|
|
3
3
|
import type { ExportTargetEnvironment } from '../models/ExportTargetEnvironment';
|
|
4
4
|
import type { PatchedCourseExportEligibility } from '../models/PatchedCourseExportEligibility';
|
|
5
5
|
import type { PatchedExportTargetEnvironment } from '../models/PatchedExportTargetEnvironment';
|
|
6
|
+
import type { PlatformMigrationRun } from '../models/PlatformMigrationRun';
|
|
7
|
+
import type { PlatformMigrationRunCreate } from '../models/PlatformMigrationRunCreate';
|
|
6
8
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
7
9
|
export declare class EximService {
|
|
8
10
|
/**
|
|
@@ -156,6 +158,107 @@ export declare class EximService {
|
|
|
156
158
|
*/
|
|
157
159
|
id: number;
|
|
158
160
|
}): CancelablePromise<void>;
|
|
161
|
+
/**
|
|
162
|
+
* Start and poll tenant-data migration runs (the platform_migration lane).
|
|
163
|
+
*
|
|
164
|
+
* ``POST`` starts a run and returns its ``run_id`` (kicking the Celery task);
|
|
165
|
+
* ``GET`` list/detail surface status + progress + report. Detail lookup is by
|
|
166
|
+
* the public ``run_id`` UUID, not the surrogate PK. Gated by the
|
|
167
|
+
* feature flag — start is rejected with 503 on non-AI deployments.
|
|
168
|
+
* @returns PlatformMigrationRun
|
|
169
|
+
* @throws ApiError
|
|
170
|
+
*/
|
|
171
|
+
static eximManagePlatformMigrationsList({ direction, ordering, sourceKey, status, targetKey, }: {
|
|
172
|
+
/**
|
|
173
|
+
* * `export` - Export
|
|
174
|
+
* * `import` - Import
|
|
175
|
+
*/
|
|
176
|
+
direction?: 'export' | 'import';
|
|
177
|
+
/**
|
|
178
|
+
* Which field to use when ordering the results.
|
|
179
|
+
*/
|
|
180
|
+
ordering?: string;
|
|
181
|
+
sourceKey?: string;
|
|
182
|
+
/**
|
|
183
|
+
* * `pending` - Pending
|
|
184
|
+
* * `in_progress` - In Progress
|
|
185
|
+
* * `completed` - Completed
|
|
186
|
+
* * `failed` - Failed
|
|
187
|
+
* * `canceled` - Canceled
|
|
188
|
+
*/
|
|
189
|
+
status?: 'canceled' | 'completed' | 'failed' | 'in_progress' | 'pending';
|
|
190
|
+
targetKey?: string;
|
|
191
|
+
}): CancelablePromise<Array<PlatformMigrationRun>>;
|
|
192
|
+
/**
|
|
193
|
+
* Start and poll tenant-data migration runs (the platform_migration lane).
|
|
194
|
+
*
|
|
195
|
+
* ``POST`` starts a run and returns its ``run_id`` (kicking the Celery task);
|
|
196
|
+
* ``GET`` list/detail surface status + progress + report. Detail lookup is by
|
|
197
|
+
* the public ``run_id`` UUID, not the surrogate PK. Gated by the
|
|
198
|
+
* feature flag — start is rejected with 503 on non-AI deployments.
|
|
199
|
+
* @returns PlatformMigrationRunCreate
|
|
200
|
+
* @throws ApiError
|
|
201
|
+
*/
|
|
202
|
+
static eximManagePlatformMigrationsCreate({ requestBody, }: {
|
|
203
|
+
requestBody: PlatformMigrationRunCreate;
|
|
204
|
+
}): CancelablePromise<PlatformMigrationRunCreate>;
|
|
205
|
+
/**
|
|
206
|
+
* Start and poll tenant-data migration runs (the platform_migration lane).
|
|
207
|
+
*
|
|
208
|
+
* ``POST`` starts a run and returns its ``run_id`` (kicking the Celery task);
|
|
209
|
+
* ``GET`` list/detail surface status + progress + report. Detail lookup is by
|
|
210
|
+
* the public ``run_id`` UUID, not the surrogate PK. Gated by the
|
|
211
|
+
* feature flag — start is rejected with 503 on non-AI deployments.
|
|
212
|
+
* @returns PlatformMigrationRun
|
|
213
|
+
* @throws ApiError
|
|
214
|
+
*/
|
|
215
|
+
static eximManagePlatformMigrationsRetrieve({ runId, }: {
|
|
216
|
+
runId: string;
|
|
217
|
+
}): CancelablePromise<PlatformMigrationRun>;
|
|
218
|
+
/**
|
|
219
|
+
* Cancel a still-pending run. No-op for any other status.
|
|
220
|
+
*
|
|
221
|
+
* Conditional UPDATE so we don't race the worker: if it has already flipped
|
|
222
|
+
* the row to ``in_progress`` the UPDATE matches zero rows and we return 409.
|
|
223
|
+
* A run already executing is not interrupted mid-phase.
|
|
224
|
+
* @returns PlatformMigrationRun
|
|
225
|
+
* @throws ApiError
|
|
226
|
+
*/
|
|
227
|
+
static eximManagePlatformMigrationsCancelCreate({ runId, requestBody, }: {
|
|
228
|
+
runId: string;
|
|
229
|
+
requestBody?: PlatformMigrationRun;
|
|
230
|
+
}): CancelablePromise<PlatformMigrationRun>;
|
|
231
|
+
/**
|
|
232
|
+
* Stream a completed export's bundle as a single ``.zip``.
|
|
233
|
+
*
|
|
234
|
+
* Token-gated (IsDMAdmin) REST mirror of the admin "Download .zip" link, so
|
|
235
|
+
* a programmatic caller can pull the bundle down to move it to another
|
|
236
|
+
* deployment. Only a completed EXPORT with a bundle still on disk is
|
|
237
|
+
* downloadable; imports and not-yet-finished runs have nothing to stream.
|
|
238
|
+
* @returns PlatformMigrationRun
|
|
239
|
+
* @throws ApiError
|
|
240
|
+
*/
|
|
241
|
+
static eximManagePlatformMigrationsDownloadRetrieve({ runId, }: {
|
|
242
|
+
runId: string;
|
|
243
|
+
}): CancelablePromise<PlatformMigrationRun>;
|
|
244
|
+
/**
|
|
245
|
+
* Upload a bundle ``.zip`` and start an import run from it (API parity).
|
|
246
|
+
*
|
|
247
|
+
* The programmatic mirror of the admin "Import from uploaded ZIP" page, so a
|
|
248
|
+
* caller that pulled a bundle off one deployment can push it to another over
|
|
249
|
+
* the API alone. Multipart fields: ``bundle_file`` (the zip, required),
|
|
250
|
+
* ``target_key`` (required), optional ``selected_components`` (repeatable),
|
|
251
|
+
* ``admin_user``, ``email``.
|
|
252
|
+
*
|
|
253
|
+
* On an S3 deployment the validated bundle is stored to S3 and the import
|
|
254
|
+
* runs from there (any node can execute it); otherwise it stays on local
|
|
255
|
+
* disk like the admin flow.
|
|
256
|
+
* @returns PlatformMigrationRun
|
|
257
|
+
* @throws ApiError
|
|
258
|
+
*/
|
|
259
|
+
static eximManagePlatformMigrationsImportUploadCreate({ formData, }: {
|
|
260
|
+
formData?: PlatformMigrationRun;
|
|
261
|
+
}): CancelablePromise<PlatformMigrationRun>;
|
|
159
262
|
/**
|
|
160
263
|
* Admin-only read-only access to EximTask records.
|
|
161
264
|
*
|
package/package.json
CHANGED
package/sdk_schema.yml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
openapi: 3.0.3
|
|
2
2
|
info:
|
|
3
3
|
title: ibl-data-manager
|
|
4
|
-
version: 4.
|
|
4
|
+
version: 4.285.0-core
|
|
5
5
|
description: API for iblai
|
|
6
6
|
paths:
|
|
7
7
|
/access-check/{item_type}/{item_id}/:
|
|
@@ -29851,6 +29851,242 @@ paths:
|
|
|
29851
29851
|
responses:
|
|
29852
29852
|
'204':
|
|
29853
29853
|
description: No response body
|
|
29854
|
+
/api/exim/manage/platform-migrations/:
|
|
29855
|
+
get:
|
|
29856
|
+
operationId: exim_manage_platform_migrations_list
|
|
29857
|
+
description: |-
|
|
29858
|
+
Start and poll tenant-data migration runs (the platform_migration lane).
|
|
29859
|
+
|
|
29860
|
+
``POST`` starts a run and returns its ``run_id`` (kicking the Celery task);
|
|
29861
|
+
``GET`` list/detail surface status + progress + report. Detail lookup is by
|
|
29862
|
+
the public ``run_id`` UUID, not the surrogate PK. Gated by the
|
|
29863
|
+
feature flag — start is rejected with 503 on non-AI deployments.
|
|
29864
|
+
parameters:
|
|
29865
|
+
- in: query
|
|
29866
|
+
name: direction
|
|
29867
|
+
schema:
|
|
29868
|
+
type: string
|
|
29869
|
+
enum:
|
|
29870
|
+
- export
|
|
29871
|
+
- import
|
|
29872
|
+
description: |-
|
|
29873
|
+
* `export` - Export
|
|
29874
|
+
* `import` - Import
|
|
29875
|
+
- name: ordering
|
|
29876
|
+
required: false
|
|
29877
|
+
in: query
|
|
29878
|
+
description: Which field to use when ordering the results.
|
|
29879
|
+
schema:
|
|
29880
|
+
type: string
|
|
29881
|
+
- in: query
|
|
29882
|
+
name: source_key
|
|
29883
|
+
schema:
|
|
29884
|
+
type: string
|
|
29885
|
+
- in: query
|
|
29886
|
+
name: status
|
|
29887
|
+
schema:
|
|
29888
|
+
type: string
|
|
29889
|
+
enum:
|
|
29890
|
+
- canceled
|
|
29891
|
+
- completed
|
|
29892
|
+
- failed
|
|
29893
|
+
- in_progress
|
|
29894
|
+
- pending
|
|
29895
|
+
description: |-
|
|
29896
|
+
* `pending` - Pending
|
|
29897
|
+
* `in_progress` - In Progress
|
|
29898
|
+
* `completed` - Completed
|
|
29899
|
+
* `failed` - Failed
|
|
29900
|
+
* `canceled` - Canceled
|
|
29901
|
+
- in: query
|
|
29902
|
+
name: target_key
|
|
29903
|
+
schema:
|
|
29904
|
+
type: string
|
|
29905
|
+
tags:
|
|
29906
|
+
- exim
|
|
29907
|
+
security:
|
|
29908
|
+
- PlatformApiKeyAuthentication: []
|
|
29909
|
+
responses:
|
|
29910
|
+
'200':
|
|
29911
|
+
content:
|
|
29912
|
+
application/json:
|
|
29913
|
+
schema:
|
|
29914
|
+
type: array
|
|
29915
|
+
items:
|
|
29916
|
+
$ref: '#/components/schemas/PlatformMigrationRun'
|
|
29917
|
+
description: ''
|
|
29918
|
+
post:
|
|
29919
|
+
operationId: exim_manage_platform_migrations_create
|
|
29920
|
+
description: |-
|
|
29921
|
+
Start and poll tenant-data migration runs (the platform_migration lane).
|
|
29922
|
+
|
|
29923
|
+
``POST`` starts a run and returns its ``run_id`` (kicking the Celery task);
|
|
29924
|
+
``GET`` list/detail surface status + progress + report. Detail lookup is by
|
|
29925
|
+
the public ``run_id`` UUID, not the surrogate PK. Gated by the
|
|
29926
|
+
feature flag — start is rejected with 503 on non-AI deployments.
|
|
29927
|
+
tags:
|
|
29928
|
+
- exim
|
|
29929
|
+
requestBody:
|
|
29930
|
+
content:
|
|
29931
|
+
application/json:
|
|
29932
|
+
schema:
|
|
29933
|
+
$ref: '#/components/schemas/PlatformMigrationRunCreate'
|
|
29934
|
+
application/scim+json:
|
|
29935
|
+
schema:
|
|
29936
|
+
$ref: '#/components/schemas/PlatformMigrationRunCreate'
|
|
29937
|
+
application/x-www-form-urlencoded:
|
|
29938
|
+
schema:
|
|
29939
|
+
$ref: '#/components/schemas/PlatformMigrationRunCreate'
|
|
29940
|
+
multipart/form-data:
|
|
29941
|
+
schema:
|
|
29942
|
+
$ref: '#/components/schemas/PlatformMigrationRunCreate'
|
|
29943
|
+
'*/*':
|
|
29944
|
+
schema:
|
|
29945
|
+
$ref: '#/components/schemas/PlatformMigrationRunCreate'
|
|
29946
|
+
required: true
|
|
29947
|
+
security:
|
|
29948
|
+
- PlatformApiKeyAuthentication: []
|
|
29949
|
+
responses:
|
|
29950
|
+
'201':
|
|
29951
|
+
content:
|
|
29952
|
+
application/json:
|
|
29953
|
+
schema:
|
|
29954
|
+
$ref: '#/components/schemas/PlatformMigrationRunCreate'
|
|
29955
|
+
description: ''
|
|
29956
|
+
/api/exim/manage/platform-migrations/{run_id}/:
|
|
29957
|
+
get:
|
|
29958
|
+
operationId: exim_manage_platform_migrations_retrieve
|
|
29959
|
+
description: |-
|
|
29960
|
+
Start and poll tenant-data migration runs (the platform_migration lane).
|
|
29961
|
+
|
|
29962
|
+
``POST`` starts a run and returns its ``run_id`` (kicking the Celery task);
|
|
29963
|
+
``GET`` list/detail surface status + progress + report. Detail lookup is by
|
|
29964
|
+
the public ``run_id`` UUID, not the surrogate PK. Gated by the
|
|
29965
|
+
feature flag — start is rejected with 503 on non-AI deployments.
|
|
29966
|
+
parameters:
|
|
29967
|
+
- in: path
|
|
29968
|
+
name: run_id
|
|
29969
|
+
schema:
|
|
29970
|
+
type: string
|
|
29971
|
+
format: uuid
|
|
29972
|
+
required: true
|
|
29973
|
+
tags:
|
|
29974
|
+
- exim
|
|
29975
|
+
security:
|
|
29976
|
+
- PlatformApiKeyAuthentication: []
|
|
29977
|
+
responses:
|
|
29978
|
+
'200':
|
|
29979
|
+
content:
|
|
29980
|
+
application/json:
|
|
29981
|
+
schema:
|
|
29982
|
+
$ref: '#/components/schemas/PlatformMigrationRun'
|
|
29983
|
+
description: ''
|
|
29984
|
+
/api/exim/manage/platform-migrations/{run_id}/cancel/:
|
|
29985
|
+
post:
|
|
29986
|
+
operationId: exim_manage_platform_migrations_cancel_create
|
|
29987
|
+
description: |-
|
|
29988
|
+
Cancel a still-pending run. No-op for any other status.
|
|
29989
|
+
|
|
29990
|
+
Conditional UPDATE so we don't race the worker: if it has already flipped
|
|
29991
|
+
the row to ``in_progress`` the UPDATE matches zero rows and we return 409.
|
|
29992
|
+
A run already executing is not interrupted mid-phase.
|
|
29993
|
+
parameters:
|
|
29994
|
+
- in: path
|
|
29995
|
+
name: run_id
|
|
29996
|
+
schema:
|
|
29997
|
+
type: string
|
|
29998
|
+
format: uuid
|
|
29999
|
+
required: true
|
|
30000
|
+
tags:
|
|
30001
|
+
- exim
|
|
30002
|
+
requestBody:
|
|
30003
|
+
content:
|
|
30004
|
+
application/json:
|
|
30005
|
+
schema:
|
|
30006
|
+
$ref: '#/components/schemas/PlatformMigrationRun'
|
|
30007
|
+
application/scim+json:
|
|
30008
|
+
schema:
|
|
30009
|
+
$ref: '#/components/schemas/PlatformMigrationRun'
|
|
30010
|
+
application/x-www-form-urlencoded:
|
|
30011
|
+
schema:
|
|
30012
|
+
$ref: '#/components/schemas/PlatformMigrationRun'
|
|
30013
|
+
multipart/form-data:
|
|
30014
|
+
schema:
|
|
30015
|
+
$ref: '#/components/schemas/PlatformMigrationRun'
|
|
30016
|
+
'*/*':
|
|
30017
|
+
schema:
|
|
30018
|
+
$ref: '#/components/schemas/PlatformMigrationRun'
|
|
30019
|
+
security:
|
|
30020
|
+
- PlatformApiKeyAuthentication: []
|
|
30021
|
+
responses:
|
|
30022
|
+
'200':
|
|
30023
|
+
content:
|
|
30024
|
+
application/json:
|
|
30025
|
+
schema:
|
|
30026
|
+
$ref: '#/components/schemas/PlatformMigrationRun'
|
|
30027
|
+
description: ''
|
|
30028
|
+
/api/exim/manage/platform-migrations/{run_id}/download/:
|
|
30029
|
+
get:
|
|
30030
|
+
operationId: exim_manage_platform_migrations_download_retrieve
|
|
30031
|
+
description: |-
|
|
30032
|
+
Stream a completed export's bundle as a single ``.zip``.
|
|
30033
|
+
|
|
30034
|
+
Token-gated (IsDMAdmin) REST mirror of the admin "Download .zip" link, so
|
|
30035
|
+
a programmatic caller can pull the bundle down to move it to another
|
|
30036
|
+
deployment. Only a completed EXPORT with a bundle still on disk is
|
|
30037
|
+
downloadable; imports and not-yet-finished runs have nothing to stream.
|
|
30038
|
+
parameters:
|
|
30039
|
+
- in: path
|
|
30040
|
+
name: run_id
|
|
30041
|
+
schema:
|
|
30042
|
+
type: string
|
|
30043
|
+
format: uuid
|
|
30044
|
+
required: true
|
|
30045
|
+
tags:
|
|
30046
|
+
- exim
|
|
30047
|
+
security:
|
|
30048
|
+
- PlatformApiKeyAuthentication: []
|
|
30049
|
+
responses:
|
|
30050
|
+
'200':
|
|
30051
|
+
content:
|
|
30052
|
+
application/json:
|
|
30053
|
+
schema:
|
|
30054
|
+
$ref: '#/components/schemas/PlatformMigrationRun'
|
|
30055
|
+
description: ''
|
|
30056
|
+
/api/exim/manage/platform-migrations/import-upload/:
|
|
30057
|
+
post:
|
|
30058
|
+
operationId: exim_manage_platform_migrations_import_upload_create
|
|
30059
|
+
description: |-
|
|
30060
|
+
Upload a bundle ``.zip`` and start an import run from it (API parity).
|
|
30061
|
+
|
|
30062
|
+
The programmatic mirror of the admin "Import from uploaded ZIP" page, so a
|
|
30063
|
+
caller that pulled a bundle off one deployment can push it to another over
|
|
30064
|
+
the API alone. Multipart fields: ``bundle_file`` (the zip, required),
|
|
30065
|
+
``target_key`` (required), optional ``selected_components`` (repeatable),
|
|
30066
|
+
``admin_user``, ``email``.
|
|
30067
|
+
|
|
30068
|
+
On an S3 deployment the validated bundle is stored to S3 and the import
|
|
30069
|
+
runs from there (any node can execute it); otherwise it stays on local
|
|
30070
|
+
disk like the admin flow.
|
|
30071
|
+
tags:
|
|
30072
|
+
- exim
|
|
30073
|
+
requestBody:
|
|
30074
|
+
content:
|
|
30075
|
+
multipart/form-data:
|
|
30076
|
+
schema:
|
|
30077
|
+
$ref: '#/components/schemas/PlatformMigrationRun'
|
|
30078
|
+
application/x-www-form-urlencoded:
|
|
30079
|
+
schema:
|
|
30080
|
+
$ref: '#/components/schemas/PlatformMigrationRun'
|
|
30081
|
+
security:
|
|
30082
|
+
- PlatformApiKeyAuthentication: []
|
|
30083
|
+
responses:
|
|
30084
|
+
'200':
|
|
30085
|
+
content:
|
|
30086
|
+
application/json:
|
|
30087
|
+
schema:
|
|
30088
|
+
$ref: '#/components/schemas/PlatformMigrationRun'
|
|
30089
|
+
description: ''
|
|
29854
30090
|
/api/exim/manage/tasks/:
|
|
29855
30091
|
get:
|
|
29856
30092
|
operationId: exim_manage_tasks_list
|
|
@@ -47010,6 +47246,14 @@ components:
|
|
|
47010
47246
|
required:
|
|
47011
47247
|
- display_name
|
|
47012
47248
|
- id
|
|
47249
|
+
DirectionEnum:
|
|
47250
|
+
enum:
|
|
47251
|
+
- export
|
|
47252
|
+
- import
|
|
47253
|
+
type: string
|
|
47254
|
+
description: |-
|
|
47255
|
+
* `export` - Export
|
|
47256
|
+
* `import` - Import
|
|
47013
47257
|
DisabilityStatusEnum:
|
|
47014
47258
|
enum:
|
|
47015
47259
|
- 'yes'
|
|
@@ -47341,7 +47585,7 @@ components:
|
|
|
47341
47585
|
readOnly: true
|
|
47342
47586
|
status:
|
|
47343
47587
|
allOf:
|
|
47344
|
-
- $ref: '#/components/schemas/
|
|
47588
|
+
- $ref: '#/components/schemas/Status147Enum'
|
|
47345
47589
|
readOnly: true
|
|
47346
47590
|
published_at:
|
|
47347
47591
|
type: string
|
|
@@ -47393,20 +47637,6 @@ components:
|
|
|
47393
47637
|
- target_environment
|
|
47394
47638
|
- target_environment_name
|
|
47395
47639
|
- updated_at
|
|
47396
|
-
EximTaskStatusEnum:
|
|
47397
|
-
enum:
|
|
47398
|
-
- pending
|
|
47399
|
-
- in_progress
|
|
47400
|
-
- completed
|
|
47401
|
-
- failed
|
|
47402
|
-
- canceled
|
|
47403
|
-
type: string
|
|
47404
|
-
description: |-
|
|
47405
|
-
* `pending` - Pending
|
|
47406
|
-
* `in_progress` - In Progress
|
|
47407
|
-
* `completed` - Completed
|
|
47408
|
-
* `failed` - Failed
|
|
47409
|
-
* `canceled` - Canceled
|
|
47410
47640
|
Experience:
|
|
47411
47641
|
type: object
|
|
47412
47642
|
properties:
|
|
@@ -54918,6 +55148,135 @@ components:
|
|
|
54918
55148
|
- programs
|
|
54919
55149
|
- resources
|
|
54920
55150
|
- skills
|
|
55151
|
+
PlatformMigrationRun:
|
|
55152
|
+
type: object
|
|
55153
|
+
description: |-
|
|
55154
|
+
Read-only view of a platform migration run — the status/progress payload.
|
|
55155
|
+
|
|
55156
|
+
``run_id`` is the public task id callers poll on. ``report`` carries the
|
|
55157
|
+
per-phase summaries, component selection, id-map totals and warnings written
|
|
55158
|
+
by the runner. ``download_url`` is the link to pull the bundle as a ``.zip``
|
|
55159
|
+
once a completed export has one on disk (null otherwise).
|
|
55160
|
+
properties:
|
|
55161
|
+
run_id:
|
|
55162
|
+
type: string
|
|
55163
|
+
format: uuid
|
|
55164
|
+
readOnly: true
|
|
55165
|
+
direction:
|
|
55166
|
+
allOf:
|
|
55167
|
+
- $ref: '#/components/schemas/DirectionEnum'
|
|
55168
|
+
readOnly: true
|
|
55169
|
+
source_key:
|
|
55170
|
+
type: string
|
|
55171
|
+
readOnly: true
|
|
55172
|
+
target_key:
|
|
55173
|
+
type: string
|
|
55174
|
+
readOnly: true
|
|
55175
|
+
bundle_path:
|
|
55176
|
+
type: string
|
|
55177
|
+
readOnly: true
|
|
55178
|
+
bundle_storage_key:
|
|
55179
|
+
type: string
|
|
55180
|
+
readOnly: true
|
|
55181
|
+
status:
|
|
55182
|
+
allOf:
|
|
55183
|
+
- $ref: '#/components/schemas/Status147Enum'
|
|
55184
|
+
readOnly: true
|
|
55185
|
+
phase:
|
|
55186
|
+
type: string
|
|
55187
|
+
readOnly: true
|
|
55188
|
+
cursor:
|
|
55189
|
+
readOnly: true
|
|
55190
|
+
selected_components:
|
|
55191
|
+
readOnly: true
|
|
55192
|
+
admin_user:
|
|
55193
|
+
type: string
|
|
55194
|
+
readOnly: true
|
|
55195
|
+
email:
|
|
55196
|
+
type: string
|
|
55197
|
+
format: email
|
|
55198
|
+
readOnly: true
|
|
55199
|
+
report:
|
|
55200
|
+
readOnly: true
|
|
55201
|
+
error_message:
|
|
55202
|
+
type: string
|
|
55203
|
+
readOnly: true
|
|
55204
|
+
download_url:
|
|
55205
|
+
type: string
|
|
55206
|
+
readOnly: true
|
|
55207
|
+
created_at:
|
|
55208
|
+
type: string
|
|
55209
|
+
format: date-time
|
|
55210
|
+
readOnly: true
|
|
55211
|
+
updated_at:
|
|
55212
|
+
type: string
|
|
55213
|
+
format: date-time
|
|
55214
|
+
readOnly: true
|
|
55215
|
+
started_at:
|
|
55216
|
+
type: string
|
|
55217
|
+
format: date-time
|
|
55218
|
+
readOnly: true
|
|
55219
|
+
nullable: true
|
|
55220
|
+
finished_at:
|
|
55221
|
+
type: string
|
|
55222
|
+
format: date-time
|
|
55223
|
+
readOnly: true
|
|
55224
|
+
nullable: true
|
|
55225
|
+
required:
|
|
55226
|
+
- admin_user
|
|
55227
|
+
- bundle_path
|
|
55228
|
+
- bundle_storage_key
|
|
55229
|
+
- created_at
|
|
55230
|
+
- cursor
|
|
55231
|
+
- direction
|
|
55232
|
+
- download_url
|
|
55233
|
+
- email
|
|
55234
|
+
- error_message
|
|
55235
|
+
- finished_at
|
|
55236
|
+
- phase
|
|
55237
|
+
- report
|
|
55238
|
+
- run_id
|
|
55239
|
+
- selected_components
|
|
55240
|
+
- source_key
|
|
55241
|
+
- started_at
|
|
55242
|
+
- status
|
|
55243
|
+
- target_key
|
|
55244
|
+
- updated_at
|
|
55245
|
+
PlatformMigrationRunCreate:
|
|
55246
|
+
type: object
|
|
55247
|
+
description: |-
|
|
55248
|
+
Start a migration run. Validates the request; the view kicks the task.
|
|
55249
|
+
|
|
55250
|
+
``selected_components`` is the OPTIONAL-set selection; mandatory
|
|
55251
|
+
sets always run regardless. An empty/omitted list = full fidelity.
|
|
55252
|
+
properties:
|
|
55253
|
+
run_id:
|
|
55254
|
+
type: string
|
|
55255
|
+
format: uuid
|
|
55256
|
+
readOnly: true
|
|
55257
|
+
direction:
|
|
55258
|
+
$ref: '#/components/schemas/DirectionEnum'
|
|
55259
|
+
source_key:
|
|
55260
|
+
type: string
|
|
55261
|
+
maxLength: 255
|
|
55262
|
+
target_key:
|
|
55263
|
+
type: string
|
|
55264
|
+
maxLength: 255
|
|
55265
|
+
bundle_path:
|
|
55266
|
+
type: string
|
|
55267
|
+
bundle_storage_key:
|
|
55268
|
+
type: string
|
|
55269
|
+
selected_components: {}
|
|
55270
|
+
admin_user:
|
|
55271
|
+
type: string
|
|
55272
|
+
maxLength: 255
|
|
55273
|
+
email:
|
|
55274
|
+
type: string
|
|
55275
|
+
format: email
|
|
55276
|
+
maxLength: 254
|
|
55277
|
+
required:
|
|
55278
|
+
- direction
|
|
55279
|
+
- run_id
|
|
54921
55280
|
PlatformPublicImageAsset:
|
|
54922
55281
|
type: object
|
|
54923
55282
|
properties:
|
|
@@ -58125,6 +58484,20 @@ components:
|
|
|
58125
58484
|
* `past_due` - Past Due
|
|
58126
58485
|
* `canceled` - Canceled
|
|
58127
58486
|
* `incomplete` - Incomplete
|
|
58487
|
+
Status147Enum:
|
|
58488
|
+
enum:
|
|
58489
|
+
- pending
|
|
58490
|
+
- in_progress
|
|
58491
|
+
- completed
|
|
58492
|
+
- failed
|
|
58493
|
+
- canceled
|
|
58494
|
+
type: string
|
|
58495
|
+
description: |-
|
|
58496
|
+
* `pending` - Pending
|
|
58497
|
+
* `in_progress` - In Progress
|
|
58498
|
+
* `completed` - Completed
|
|
58499
|
+
* `failed` - Failed
|
|
58500
|
+
* `canceled` - Canceled
|
|
58128
58501
|
Status3daEnum:
|
|
58129
58502
|
enum:
|
|
58130
58503
|
- READ
|
package/src/core/OpenAPI.ts
CHANGED
package/src/index.ts
CHANGED
|
@@ -149,6 +149,7 @@ export type { DesiredSkillCreateUpdateRequest } from './models/DesiredSkillCreat
|
|
|
149
149
|
export type { DetailedGradeSubsection } from './models/DetailedGradeSubsection';
|
|
150
150
|
export type { DetailedGradeView } from './models/DetailedGradeView';
|
|
151
151
|
export type { DetailedGradeViewData } from './models/DetailedGradeViewData';
|
|
152
|
+
export { DirectionEnum } from './models/DirectionEnum';
|
|
152
153
|
export { DisabilityStatusEnum } from './models/DisabilityStatusEnum';
|
|
153
154
|
export type { Education } from './models/Education';
|
|
154
155
|
export type { EdxJwtToken } from './models/EdxJwtToken';
|
|
@@ -165,7 +166,6 @@ export type { ErrorResponse } from './models/ErrorResponse';
|
|
|
165
166
|
export { EthnicityEnum } from './models/EthnicityEnum';
|
|
166
167
|
export { EventsEnum } from './models/EventsEnum';
|
|
167
168
|
export type { EximTask } from './models/EximTask';
|
|
168
|
-
export { EximTaskStatusEnum } from './models/EximTaskStatusEnum';
|
|
169
169
|
export type { Experience } from './models/Experience';
|
|
170
170
|
export type { ExportTargetEnvironment } from './models/ExportTargetEnvironment';
|
|
171
171
|
export type { ExternalCredentialMapping } from './models/ExternalCredentialMapping';
|
|
@@ -392,6 +392,8 @@ export type { PlatformMembershipConfig } from './models/PlatformMembershipConfig
|
|
|
392
392
|
export type { PlatformMembershipConfigPostRequest } from './models/PlatformMembershipConfigPostRequest';
|
|
393
393
|
export type { PlatformMembershipConfigPublicResponse } from './models/PlatformMembershipConfigPublicResponse';
|
|
394
394
|
export type { PlatformMetrics } from './models/PlatformMetrics';
|
|
395
|
+
export type { PlatformMigrationRun } from './models/PlatformMigrationRun';
|
|
396
|
+
export type { PlatformMigrationRunCreate } from './models/PlatformMigrationRunCreate';
|
|
395
397
|
export type { PlatformPublicImageAsset } from './models/PlatformPublicImageAsset';
|
|
396
398
|
export type { PlatformPublicMetadata } from './models/PlatformPublicMetadata';
|
|
397
399
|
export type { PlatformRevenueSummary } from './models/PlatformRevenueSummary';
|
|
@@ -495,6 +497,7 @@ export type { SkillThreshold } from './models/SkillThreshold';
|
|
|
495
497
|
export type { Spa } from './models/Spa';
|
|
496
498
|
export { StateEnum } from './models/StateEnum';
|
|
497
499
|
export { Status0e3Enum } from './models/Status0e3Enum';
|
|
500
|
+
export { Status147Enum } from './models/Status147Enum';
|
|
498
501
|
export { Status3daEnum } from './models/Status3daEnum';
|
|
499
502
|
export type { StripeCheckoutSessionRequest } from './models/StripeCheckoutSessionRequest';
|
|
500
503
|
export type { StripeCheckoutSessionResponse } from './models/StripeCheckoutSessionResponse';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* * `export` - Export
|
|
7
|
+
* * `import` - Import
|
|
8
|
+
*/
|
|
9
|
+
export enum DirectionEnum {
|
|
10
|
+
EXPORT = 'export',
|
|
11
|
+
IMPORT = 'import',
|
|
12
|
+
}
|
package/src/models/EximTask.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
|
-
import type {
|
|
5
|
+
import type { Status147Enum } from './Status147Enum';
|
|
6
6
|
/**
|
|
7
7
|
* Read-only serializer for EximTask records.
|
|
8
8
|
*
|
|
@@ -15,7 +15,7 @@ export type EximTask = {
|
|
|
15
15
|
readonly course_id: string;
|
|
16
16
|
readonly target_environment: number;
|
|
17
17
|
readonly target_environment_name: string;
|
|
18
|
-
readonly status:
|
|
18
|
+
readonly status: Status147Enum;
|
|
19
19
|
/**
|
|
20
20
|
* Time the publish signal was received; used for FIFO ordering
|
|
21
21
|
*/
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { DirectionEnum } from './DirectionEnum';
|
|
6
|
+
import type { Status147Enum } from './Status147Enum';
|
|
7
|
+
/**
|
|
8
|
+
* Read-only view of a platform migration run — the status/progress payload.
|
|
9
|
+
*
|
|
10
|
+
* ``run_id`` is the public task id callers poll on. ``report`` carries the
|
|
11
|
+
* per-phase summaries, component selection, id-map totals and warnings written
|
|
12
|
+
* by the runner. ``download_url`` is the link to pull the bundle as a ``.zip``
|
|
13
|
+
* once a completed export has one on disk (null otherwise).
|
|
14
|
+
*/
|
|
15
|
+
export type PlatformMigrationRun = {
|
|
16
|
+
readonly run_id: string;
|
|
17
|
+
readonly direction: DirectionEnum;
|
|
18
|
+
readonly source_key: string;
|
|
19
|
+
readonly target_key: string;
|
|
20
|
+
readonly bundle_path: string;
|
|
21
|
+
readonly bundle_storage_key: string;
|
|
22
|
+
readonly status: Status147Enum;
|
|
23
|
+
readonly phase: string;
|
|
24
|
+
readonly cursor: any;
|
|
25
|
+
readonly selected_components: any;
|
|
26
|
+
readonly admin_user: string;
|
|
27
|
+
readonly email: string;
|
|
28
|
+
readonly report: any;
|
|
29
|
+
readonly error_message: string;
|
|
30
|
+
readonly download_url: string;
|
|
31
|
+
readonly created_at: string;
|
|
32
|
+
readonly updated_at: string;
|
|
33
|
+
readonly started_at: string | null;
|
|
34
|
+
readonly finished_at: string | null;
|
|
35
|
+
};
|
|
36
|
+
|