openxiangda-contracts 2.0.0-alpha.19 → 2.0.0-alpha.21
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/schemas.d.ts +702 -6
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +83 -2
- package/dist/schemas.js.map +1 -1
- package/dist/types.d.ts +16 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +1 -0
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
package/dist/schemas.d.ts
CHANGED
|
@@ -141,11 +141,69 @@ export declare const workspaceContextSchema: {
|
|
|
141
141
|
};
|
|
142
142
|
};
|
|
143
143
|
};
|
|
144
|
+
export declare const runtimeEnvironmentSchema: {
|
|
145
|
+
readonly type: "object";
|
|
146
|
+
readonly additionalProperties: false;
|
|
147
|
+
readonly required: readonly ["id", "tenantId", "appCode", "environmentKey", "environmentKind", "displayName", "status", "runtimeState", "sideEffectPolicy", "revision", "createdBy", "updatedBy", "createdAt", "updatedAt"];
|
|
148
|
+
readonly properties: {
|
|
149
|
+
readonly id: {
|
|
150
|
+
readonly type: "string";
|
|
151
|
+
readonly minLength: 1;
|
|
152
|
+
};
|
|
153
|
+
readonly tenantId: {
|
|
154
|
+
readonly type: "string";
|
|
155
|
+
readonly minLength: 1;
|
|
156
|
+
};
|
|
157
|
+
readonly appCode: {
|
|
158
|
+
readonly type: "string";
|
|
159
|
+
readonly minLength: 1;
|
|
160
|
+
};
|
|
161
|
+
readonly environmentKey: {
|
|
162
|
+
readonly enum: readonly ["preproduction", "production"];
|
|
163
|
+
};
|
|
164
|
+
readonly environmentKind: {
|
|
165
|
+
readonly enum: readonly ["preproduction", "production"];
|
|
166
|
+
};
|
|
167
|
+
readonly displayName: {
|
|
168
|
+
readonly type: "string";
|
|
169
|
+
readonly minLength: 1;
|
|
170
|
+
};
|
|
171
|
+
readonly status: {
|
|
172
|
+
readonly enum: readonly ["active", "decommissioned"];
|
|
173
|
+
};
|
|
174
|
+
readonly runtimeState: {
|
|
175
|
+
readonly enum: readonly ["running", "stopped"];
|
|
176
|
+
};
|
|
177
|
+
readonly sideEffectPolicy: {
|
|
178
|
+
readonly type: "object";
|
|
179
|
+
};
|
|
180
|
+
readonly revision: {
|
|
181
|
+
readonly type: "integer";
|
|
182
|
+
readonly minimum: 1;
|
|
183
|
+
};
|
|
184
|
+
readonly createdBy: {
|
|
185
|
+
readonly type: "string";
|
|
186
|
+
readonly minLength: 1;
|
|
187
|
+
};
|
|
188
|
+
readonly updatedBy: {
|
|
189
|
+
readonly type: "string";
|
|
190
|
+
readonly minLength: 1;
|
|
191
|
+
};
|
|
192
|
+
readonly createdAt: {
|
|
193
|
+
readonly type: "string";
|
|
194
|
+
readonly format: "date-time";
|
|
195
|
+
};
|
|
196
|
+
readonly updatedAt: {
|
|
197
|
+
readonly type: "string";
|
|
198
|
+
readonly format: "date-time";
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
};
|
|
144
202
|
export declare const applicationSchema: {
|
|
145
203
|
readonly $id: "openxiangda.application/v2";
|
|
146
204
|
readonly type: "object";
|
|
147
205
|
readonly additionalProperties: false;
|
|
148
|
-
readonly required: readonly ["schemaVersion", "created", "application", "bootstrapSuperAdminGrant"];
|
|
206
|
+
readonly required: readonly ["schemaVersion", "created", "application", "environments", "bootstrapSuperAdminGrant"];
|
|
149
207
|
readonly properties: {
|
|
150
208
|
readonly schemaVersion: {
|
|
151
209
|
readonly const: "openxiangda.application/v2";
|
|
@@ -156,8 +214,11 @@ export declare const applicationSchema: {
|
|
|
156
214
|
readonly application: {
|
|
157
215
|
readonly type: "object";
|
|
158
216
|
readonly additionalProperties: false;
|
|
159
|
-
readonly required: readonly ["id", "appCode", "name", "runtimeMode"];
|
|
217
|
+
readonly required: readonly ["schemaVersion", "id", "appCode", "name", "runtimeMode", "activeRuntimeReleaseId", "activeRuntimeBuildId"];
|
|
160
218
|
readonly properties: {
|
|
219
|
+
readonly schemaVersion: {
|
|
220
|
+
readonly const: "openxiangda.application/v2";
|
|
221
|
+
};
|
|
161
222
|
readonly id: {
|
|
162
223
|
readonly type: "string";
|
|
163
224
|
readonly minLength: 1;
|
|
@@ -176,6 +237,12 @@ export declare const applicationSchema: {
|
|
|
176
237
|
readonly runtimeMode: {
|
|
177
238
|
readonly const: "react-spa";
|
|
178
239
|
};
|
|
240
|
+
readonly activeRuntimeReleaseId: {
|
|
241
|
+
readonly type: readonly ["string", "null"];
|
|
242
|
+
};
|
|
243
|
+
readonly activeRuntimeBuildId: {
|
|
244
|
+
readonly type: readonly ["string", "null"];
|
|
245
|
+
};
|
|
179
246
|
readonly createdAt: {
|
|
180
247
|
readonly anyOf: readonly [{
|
|
181
248
|
readonly type: "string";
|
|
@@ -194,6 +261,69 @@ export declare const applicationSchema: {
|
|
|
194
261
|
};
|
|
195
262
|
};
|
|
196
263
|
};
|
|
264
|
+
readonly environments: {
|
|
265
|
+
readonly type: "array";
|
|
266
|
+
readonly minItems: 1;
|
|
267
|
+
readonly maxItems: 2;
|
|
268
|
+
readonly items: {
|
|
269
|
+
readonly type: "object";
|
|
270
|
+
readonly additionalProperties: false;
|
|
271
|
+
readonly required: readonly ["id", "tenantId", "appCode", "environmentKey", "environmentKind", "displayName", "status", "runtimeState", "sideEffectPolicy", "revision", "createdBy", "updatedBy", "createdAt", "updatedAt"];
|
|
272
|
+
readonly properties: {
|
|
273
|
+
readonly id: {
|
|
274
|
+
readonly type: "string";
|
|
275
|
+
readonly minLength: 1;
|
|
276
|
+
};
|
|
277
|
+
readonly tenantId: {
|
|
278
|
+
readonly type: "string";
|
|
279
|
+
readonly minLength: 1;
|
|
280
|
+
};
|
|
281
|
+
readonly appCode: {
|
|
282
|
+
readonly type: "string";
|
|
283
|
+
readonly minLength: 1;
|
|
284
|
+
};
|
|
285
|
+
readonly environmentKey: {
|
|
286
|
+
readonly enum: readonly ["preproduction", "production"];
|
|
287
|
+
};
|
|
288
|
+
readonly environmentKind: {
|
|
289
|
+
readonly enum: readonly ["preproduction", "production"];
|
|
290
|
+
};
|
|
291
|
+
readonly displayName: {
|
|
292
|
+
readonly type: "string";
|
|
293
|
+
readonly minLength: 1;
|
|
294
|
+
};
|
|
295
|
+
readonly status: {
|
|
296
|
+
readonly enum: readonly ["active", "decommissioned"];
|
|
297
|
+
};
|
|
298
|
+
readonly runtimeState: {
|
|
299
|
+
readonly enum: readonly ["running", "stopped"];
|
|
300
|
+
};
|
|
301
|
+
readonly sideEffectPolicy: {
|
|
302
|
+
readonly type: "object";
|
|
303
|
+
};
|
|
304
|
+
readonly revision: {
|
|
305
|
+
readonly type: "integer";
|
|
306
|
+
readonly minimum: 1;
|
|
307
|
+
};
|
|
308
|
+
readonly createdBy: {
|
|
309
|
+
readonly type: "string";
|
|
310
|
+
readonly minLength: 1;
|
|
311
|
+
};
|
|
312
|
+
readonly updatedBy: {
|
|
313
|
+
readonly type: "string";
|
|
314
|
+
readonly minLength: 1;
|
|
315
|
+
};
|
|
316
|
+
readonly createdAt: {
|
|
317
|
+
readonly type: "string";
|
|
318
|
+
readonly format: "date-time";
|
|
319
|
+
};
|
|
320
|
+
readonly updatedAt: {
|
|
321
|
+
readonly type: "string";
|
|
322
|
+
readonly format: "date-time";
|
|
323
|
+
};
|
|
324
|
+
};
|
|
325
|
+
};
|
|
326
|
+
};
|
|
197
327
|
readonly bootstrapSuperAdminGrant: {
|
|
198
328
|
readonly type: "object";
|
|
199
329
|
readonly additionalProperties: false;
|
|
@@ -3278,6 +3408,253 @@ export declare const environmentHeadSchema: {
|
|
|
3278
3408
|
};
|
|
3279
3409
|
};
|
|
3280
3410
|
};
|
|
3411
|
+
export declare const applicationEnvironmentsSchema: {
|
|
3412
|
+
readonly $id: "openxiangda.application-environments/v2";
|
|
3413
|
+
readonly type: "object";
|
|
3414
|
+
readonly additionalProperties: false;
|
|
3415
|
+
readonly required: readonly ["schemaVersion", "items", "total"];
|
|
3416
|
+
readonly properties: {
|
|
3417
|
+
readonly schemaVersion: {
|
|
3418
|
+
readonly const: "openxiangda.application-environments/v2";
|
|
3419
|
+
};
|
|
3420
|
+
readonly items: {
|
|
3421
|
+
readonly type: "array";
|
|
3422
|
+
readonly maxItems: 2;
|
|
3423
|
+
readonly items: {
|
|
3424
|
+
readonly required: readonly ["id", "tenantId", "appCode", "environmentKey", "environmentKind", "displayName", "status", "runtimeState", "sideEffectPolicy", "revision", "createdBy", "updatedBy", "createdAt", "updatedAt", "activeHead"];
|
|
3425
|
+
readonly properties: {
|
|
3426
|
+
readonly activeHead: {
|
|
3427
|
+
readonly anyOf: readonly [{
|
|
3428
|
+
readonly $id: "openxiangda.environment-head/v2";
|
|
3429
|
+
readonly type: "object";
|
|
3430
|
+
readonly additionalProperties: false;
|
|
3431
|
+
readonly required: readonly ["schemaVersion", "id", "appCode", "environmentKey", "environmentId", "environmentKind", "activeAppVersionId", "revisions", "revision", "activatedByDeploymentId", "activatedBy", "activatedAt", "updatedAt"];
|
|
3432
|
+
readonly properties: {
|
|
3433
|
+
readonly schemaVersion: {
|
|
3434
|
+
readonly const: "openxiangda.environment-head/v2";
|
|
3435
|
+
};
|
|
3436
|
+
readonly id: {
|
|
3437
|
+
readonly type: "string";
|
|
3438
|
+
readonly minLength: 1;
|
|
3439
|
+
};
|
|
3440
|
+
readonly appCode: {
|
|
3441
|
+
readonly type: "string";
|
|
3442
|
+
readonly minLength: 1;
|
|
3443
|
+
};
|
|
3444
|
+
readonly environmentKey: {
|
|
3445
|
+
readonly type: "string";
|
|
3446
|
+
readonly minLength: 1;
|
|
3447
|
+
};
|
|
3448
|
+
readonly environmentId: {
|
|
3449
|
+
readonly type: readonly ["string", "null"];
|
|
3450
|
+
};
|
|
3451
|
+
readonly environmentKind: {
|
|
3452
|
+
readonly enum: readonly ["preproduction", "production"];
|
|
3453
|
+
};
|
|
3454
|
+
readonly activeAppVersionId: {
|
|
3455
|
+
readonly type: "string";
|
|
3456
|
+
readonly minLength: 1;
|
|
3457
|
+
};
|
|
3458
|
+
readonly revisions: {
|
|
3459
|
+
readonly type: "object";
|
|
3460
|
+
readonly additionalProperties: false;
|
|
3461
|
+
readonly required: readonly ["frontend", "backend", "config", "dataContract"];
|
|
3462
|
+
readonly properties: {
|
|
3463
|
+
readonly frontend: {
|
|
3464
|
+
readonly type: readonly ["string", "null"];
|
|
3465
|
+
};
|
|
3466
|
+
readonly backend: {
|
|
3467
|
+
readonly type: readonly ["string", "null"];
|
|
3468
|
+
};
|
|
3469
|
+
readonly config: {
|
|
3470
|
+
readonly type: readonly ["string", "null"];
|
|
3471
|
+
};
|
|
3472
|
+
readonly dataContract: {
|
|
3473
|
+
readonly type: readonly ["string", "null"];
|
|
3474
|
+
};
|
|
3475
|
+
};
|
|
3476
|
+
};
|
|
3477
|
+
readonly revision: {
|
|
3478
|
+
readonly type: "integer";
|
|
3479
|
+
readonly minimum: 1;
|
|
3480
|
+
};
|
|
3481
|
+
readonly activatedByDeploymentId: {
|
|
3482
|
+
readonly type: "string";
|
|
3483
|
+
readonly minLength: 1;
|
|
3484
|
+
};
|
|
3485
|
+
readonly activatedBy: {
|
|
3486
|
+
readonly type: "string";
|
|
3487
|
+
readonly minLength: 1;
|
|
3488
|
+
};
|
|
3489
|
+
readonly activatedAt: {
|
|
3490
|
+
readonly type: "string";
|
|
3491
|
+
readonly format: "date-time";
|
|
3492
|
+
};
|
|
3493
|
+
readonly updatedAt: {
|
|
3494
|
+
readonly type: "string";
|
|
3495
|
+
readonly format: "date-time";
|
|
3496
|
+
};
|
|
3497
|
+
readonly activeAppVersion: {
|
|
3498
|
+
readonly anyOf: readonly [{
|
|
3499
|
+
readonly $id: "openxiangda.app-version/v2";
|
|
3500
|
+
readonly type: "object";
|
|
3501
|
+
readonly additionalProperties: false;
|
|
3502
|
+
readonly required: readonly ["schemaVersion", "id", "appCode", "version", "packageDigest", "source", "toolchain", "revisions", "metadata", "createdBy", "createdAt"];
|
|
3503
|
+
readonly properties: {
|
|
3504
|
+
readonly schemaVersion: {
|
|
3505
|
+
readonly const: "openxiangda.app-version/v2";
|
|
3506
|
+
};
|
|
3507
|
+
readonly id: {
|
|
3508
|
+
readonly type: "string";
|
|
3509
|
+
readonly minLength: 1;
|
|
3510
|
+
};
|
|
3511
|
+
readonly appCode: {
|
|
3512
|
+
readonly type: "string";
|
|
3513
|
+
readonly minLength: 1;
|
|
3514
|
+
};
|
|
3515
|
+
readonly version: {
|
|
3516
|
+
readonly type: "string";
|
|
3517
|
+
readonly minLength: 1;
|
|
3518
|
+
};
|
|
3519
|
+
readonly packageDigest: {
|
|
3520
|
+
readonly type: "string";
|
|
3521
|
+
readonly pattern: "^[0-9a-f]{64}$";
|
|
3522
|
+
};
|
|
3523
|
+
readonly source: {
|
|
3524
|
+
readonly type: "object";
|
|
3525
|
+
readonly additionalProperties: false;
|
|
3526
|
+
readonly required: readonly ["repository", "commit", "dirty"];
|
|
3527
|
+
readonly properties: {
|
|
3528
|
+
readonly repository: {
|
|
3529
|
+
readonly type: "string";
|
|
3530
|
+
readonly minLength: 1;
|
|
3531
|
+
};
|
|
3532
|
+
readonly commit: {
|
|
3533
|
+
readonly type: "string";
|
|
3534
|
+
readonly minLength: 1;
|
|
3535
|
+
};
|
|
3536
|
+
readonly dirty: {
|
|
3537
|
+
readonly type: "boolean";
|
|
3538
|
+
};
|
|
3539
|
+
};
|
|
3540
|
+
};
|
|
3541
|
+
readonly toolchain: {
|
|
3542
|
+
readonly type: "object";
|
|
3543
|
+
readonly additionalProperties: false;
|
|
3544
|
+
readonly required: readonly ["version", "contractVersion"];
|
|
3545
|
+
readonly properties: {
|
|
3546
|
+
readonly version: {
|
|
3547
|
+
readonly type: "string";
|
|
3548
|
+
readonly minLength: 1;
|
|
3549
|
+
};
|
|
3550
|
+
readonly contractVersion: {
|
|
3551
|
+
readonly const: "2.0.0-alpha.3";
|
|
3552
|
+
};
|
|
3553
|
+
};
|
|
3554
|
+
};
|
|
3555
|
+
readonly revisions: {
|
|
3556
|
+
readonly type: "object";
|
|
3557
|
+
readonly additionalProperties: false;
|
|
3558
|
+
readonly required: readonly ["frontend", "backend", "config", "dataContract"];
|
|
3559
|
+
readonly properties: {
|
|
3560
|
+
readonly frontend: {
|
|
3561
|
+
readonly type: readonly ["string", "null"];
|
|
3562
|
+
};
|
|
3563
|
+
readonly backend: {
|
|
3564
|
+
readonly type: readonly ["string", "null"];
|
|
3565
|
+
};
|
|
3566
|
+
readonly config: {
|
|
3567
|
+
readonly type: readonly ["string", "null"];
|
|
3568
|
+
};
|
|
3569
|
+
readonly dataContract: {
|
|
3570
|
+
readonly type: readonly ["string", "null"];
|
|
3571
|
+
};
|
|
3572
|
+
};
|
|
3573
|
+
};
|
|
3574
|
+
readonly metadata: {
|
|
3575
|
+
readonly type: "object";
|
|
3576
|
+
};
|
|
3577
|
+
readonly createdBy: {
|
|
3578
|
+
readonly type: "string";
|
|
3579
|
+
readonly minLength: 1;
|
|
3580
|
+
};
|
|
3581
|
+
readonly createdAt: {
|
|
3582
|
+
readonly type: "string";
|
|
3583
|
+
readonly format: "date-time";
|
|
3584
|
+
};
|
|
3585
|
+
};
|
|
3586
|
+
}, {
|
|
3587
|
+
readonly type: "null";
|
|
3588
|
+
}];
|
|
3589
|
+
};
|
|
3590
|
+
};
|
|
3591
|
+
}, {
|
|
3592
|
+
readonly type: "null";
|
|
3593
|
+
}];
|
|
3594
|
+
};
|
|
3595
|
+
readonly id: {
|
|
3596
|
+
readonly type: "string";
|
|
3597
|
+
readonly minLength: 1;
|
|
3598
|
+
};
|
|
3599
|
+
readonly tenantId: {
|
|
3600
|
+
readonly type: "string";
|
|
3601
|
+
readonly minLength: 1;
|
|
3602
|
+
};
|
|
3603
|
+
readonly appCode: {
|
|
3604
|
+
readonly type: "string";
|
|
3605
|
+
readonly minLength: 1;
|
|
3606
|
+
};
|
|
3607
|
+
readonly environmentKey: {
|
|
3608
|
+
readonly enum: readonly ["preproduction", "production"];
|
|
3609
|
+
};
|
|
3610
|
+
readonly environmentKind: {
|
|
3611
|
+
readonly enum: readonly ["preproduction", "production"];
|
|
3612
|
+
};
|
|
3613
|
+
readonly displayName: {
|
|
3614
|
+
readonly type: "string";
|
|
3615
|
+
readonly minLength: 1;
|
|
3616
|
+
};
|
|
3617
|
+
readonly status: {
|
|
3618
|
+
readonly enum: readonly ["active", "decommissioned"];
|
|
3619
|
+
};
|
|
3620
|
+
readonly runtimeState: {
|
|
3621
|
+
readonly enum: readonly ["running", "stopped"];
|
|
3622
|
+
};
|
|
3623
|
+
readonly sideEffectPolicy: {
|
|
3624
|
+
readonly type: "object";
|
|
3625
|
+
};
|
|
3626
|
+
readonly revision: {
|
|
3627
|
+
readonly type: "integer";
|
|
3628
|
+
readonly minimum: 1;
|
|
3629
|
+
};
|
|
3630
|
+
readonly createdBy: {
|
|
3631
|
+
readonly type: "string";
|
|
3632
|
+
readonly minLength: 1;
|
|
3633
|
+
};
|
|
3634
|
+
readonly updatedBy: {
|
|
3635
|
+
readonly type: "string";
|
|
3636
|
+
readonly minLength: 1;
|
|
3637
|
+
};
|
|
3638
|
+
readonly createdAt: {
|
|
3639
|
+
readonly type: "string";
|
|
3640
|
+
readonly format: "date-time";
|
|
3641
|
+
};
|
|
3642
|
+
readonly updatedAt: {
|
|
3643
|
+
readonly type: "string";
|
|
3644
|
+
readonly format: "date-time";
|
|
3645
|
+
};
|
|
3646
|
+
};
|
|
3647
|
+
readonly type: "object";
|
|
3648
|
+
readonly additionalProperties: false;
|
|
3649
|
+
};
|
|
3650
|
+
};
|
|
3651
|
+
readonly total: {
|
|
3652
|
+
readonly type: "integer";
|
|
3653
|
+
readonly minimum: 0;
|
|
3654
|
+
readonly maximum: 2;
|
|
3655
|
+
};
|
|
3656
|
+
};
|
|
3657
|
+
};
|
|
3281
3658
|
export declare const deploymentRunSchema: {
|
|
3282
3659
|
readonly $id: "openxiangda.deployment-run/v2";
|
|
3283
3660
|
readonly type: "object";
|
|
@@ -3308,7 +3685,7 @@ export declare const deploymentRunSchema: {
|
|
|
3308
3685
|
};
|
|
3309
3686
|
};
|
|
3310
3687
|
readonly kind: {
|
|
3311
|
-
readonly enum: readonly ["deploy", "promotion", "rollback", "redeploy"];
|
|
3688
|
+
readonly enum: readonly ["deploy", "promotion", "rollback", "redeploy", "start", "stop"];
|
|
3312
3689
|
};
|
|
3313
3690
|
readonly packageDigest: {
|
|
3314
3691
|
readonly type: "string";
|
|
@@ -5853,7 +6230,7 @@ export declare const contractSchemas: {
|
|
|
5853
6230
|
readonly $id: "openxiangda.application/v2";
|
|
5854
6231
|
readonly type: "object";
|
|
5855
6232
|
readonly additionalProperties: false;
|
|
5856
|
-
readonly required: readonly ["schemaVersion", "created", "application", "bootstrapSuperAdminGrant"];
|
|
6233
|
+
readonly required: readonly ["schemaVersion", "created", "application", "environments", "bootstrapSuperAdminGrant"];
|
|
5857
6234
|
readonly properties: {
|
|
5858
6235
|
readonly schemaVersion: {
|
|
5859
6236
|
readonly const: "openxiangda.application/v2";
|
|
@@ -5864,8 +6241,11 @@ export declare const contractSchemas: {
|
|
|
5864
6241
|
readonly application: {
|
|
5865
6242
|
readonly type: "object";
|
|
5866
6243
|
readonly additionalProperties: false;
|
|
5867
|
-
readonly required: readonly ["id", "appCode", "name", "runtimeMode"];
|
|
6244
|
+
readonly required: readonly ["schemaVersion", "id", "appCode", "name", "runtimeMode", "activeRuntimeReleaseId", "activeRuntimeBuildId"];
|
|
5868
6245
|
readonly properties: {
|
|
6246
|
+
readonly schemaVersion: {
|
|
6247
|
+
readonly const: "openxiangda.application/v2";
|
|
6248
|
+
};
|
|
5869
6249
|
readonly id: {
|
|
5870
6250
|
readonly type: "string";
|
|
5871
6251
|
readonly minLength: 1;
|
|
@@ -5884,6 +6264,12 @@ export declare const contractSchemas: {
|
|
|
5884
6264
|
readonly runtimeMode: {
|
|
5885
6265
|
readonly const: "react-spa";
|
|
5886
6266
|
};
|
|
6267
|
+
readonly activeRuntimeReleaseId: {
|
|
6268
|
+
readonly type: readonly ["string", "null"];
|
|
6269
|
+
};
|
|
6270
|
+
readonly activeRuntimeBuildId: {
|
|
6271
|
+
readonly type: readonly ["string", "null"];
|
|
6272
|
+
};
|
|
5887
6273
|
readonly createdAt: {
|
|
5888
6274
|
readonly anyOf: readonly [{
|
|
5889
6275
|
readonly type: "string";
|
|
@@ -5902,6 +6288,69 @@ export declare const contractSchemas: {
|
|
|
5902
6288
|
};
|
|
5903
6289
|
};
|
|
5904
6290
|
};
|
|
6291
|
+
readonly environments: {
|
|
6292
|
+
readonly type: "array";
|
|
6293
|
+
readonly minItems: 1;
|
|
6294
|
+
readonly maxItems: 2;
|
|
6295
|
+
readonly items: {
|
|
6296
|
+
readonly type: "object";
|
|
6297
|
+
readonly additionalProperties: false;
|
|
6298
|
+
readonly required: readonly ["id", "tenantId", "appCode", "environmentKey", "environmentKind", "displayName", "status", "runtimeState", "sideEffectPolicy", "revision", "createdBy", "updatedBy", "createdAt", "updatedAt"];
|
|
6299
|
+
readonly properties: {
|
|
6300
|
+
readonly id: {
|
|
6301
|
+
readonly type: "string";
|
|
6302
|
+
readonly minLength: 1;
|
|
6303
|
+
};
|
|
6304
|
+
readonly tenantId: {
|
|
6305
|
+
readonly type: "string";
|
|
6306
|
+
readonly minLength: 1;
|
|
6307
|
+
};
|
|
6308
|
+
readonly appCode: {
|
|
6309
|
+
readonly type: "string";
|
|
6310
|
+
readonly minLength: 1;
|
|
6311
|
+
};
|
|
6312
|
+
readonly environmentKey: {
|
|
6313
|
+
readonly enum: readonly ["preproduction", "production"];
|
|
6314
|
+
};
|
|
6315
|
+
readonly environmentKind: {
|
|
6316
|
+
readonly enum: readonly ["preproduction", "production"];
|
|
6317
|
+
};
|
|
6318
|
+
readonly displayName: {
|
|
6319
|
+
readonly type: "string";
|
|
6320
|
+
readonly minLength: 1;
|
|
6321
|
+
};
|
|
6322
|
+
readonly status: {
|
|
6323
|
+
readonly enum: readonly ["active", "decommissioned"];
|
|
6324
|
+
};
|
|
6325
|
+
readonly runtimeState: {
|
|
6326
|
+
readonly enum: readonly ["running", "stopped"];
|
|
6327
|
+
};
|
|
6328
|
+
readonly sideEffectPolicy: {
|
|
6329
|
+
readonly type: "object";
|
|
6330
|
+
};
|
|
6331
|
+
readonly revision: {
|
|
6332
|
+
readonly type: "integer";
|
|
6333
|
+
readonly minimum: 1;
|
|
6334
|
+
};
|
|
6335
|
+
readonly createdBy: {
|
|
6336
|
+
readonly type: "string";
|
|
6337
|
+
readonly minLength: 1;
|
|
6338
|
+
};
|
|
6339
|
+
readonly updatedBy: {
|
|
6340
|
+
readonly type: "string";
|
|
6341
|
+
readonly minLength: 1;
|
|
6342
|
+
};
|
|
6343
|
+
readonly createdAt: {
|
|
6344
|
+
readonly type: "string";
|
|
6345
|
+
readonly format: "date-time";
|
|
6346
|
+
};
|
|
6347
|
+
readonly updatedAt: {
|
|
6348
|
+
readonly type: "string";
|
|
6349
|
+
readonly format: "date-time";
|
|
6350
|
+
};
|
|
6351
|
+
};
|
|
6352
|
+
};
|
|
6353
|
+
};
|
|
5905
6354
|
readonly bootstrapSuperAdminGrant: {
|
|
5906
6355
|
readonly type: "object";
|
|
5907
6356
|
readonly additionalProperties: false;
|
|
@@ -10541,6 +10990,253 @@ export declare const contractSchemas: {
|
|
|
10541
10990
|
};
|
|
10542
10991
|
};
|
|
10543
10992
|
};
|
|
10993
|
+
readonly applicationEnvironments: {
|
|
10994
|
+
readonly $id: "openxiangda.application-environments/v2";
|
|
10995
|
+
readonly type: "object";
|
|
10996
|
+
readonly additionalProperties: false;
|
|
10997
|
+
readonly required: readonly ["schemaVersion", "items", "total"];
|
|
10998
|
+
readonly properties: {
|
|
10999
|
+
readonly schemaVersion: {
|
|
11000
|
+
readonly const: "openxiangda.application-environments/v2";
|
|
11001
|
+
};
|
|
11002
|
+
readonly items: {
|
|
11003
|
+
readonly type: "array";
|
|
11004
|
+
readonly maxItems: 2;
|
|
11005
|
+
readonly items: {
|
|
11006
|
+
readonly required: readonly ["id", "tenantId", "appCode", "environmentKey", "environmentKind", "displayName", "status", "runtimeState", "sideEffectPolicy", "revision", "createdBy", "updatedBy", "createdAt", "updatedAt", "activeHead"];
|
|
11007
|
+
readonly properties: {
|
|
11008
|
+
readonly activeHead: {
|
|
11009
|
+
readonly anyOf: readonly [{
|
|
11010
|
+
readonly $id: "openxiangda.environment-head/v2";
|
|
11011
|
+
readonly type: "object";
|
|
11012
|
+
readonly additionalProperties: false;
|
|
11013
|
+
readonly required: readonly ["schemaVersion", "id", "appCode", "environmentKey", "environmentId", "environmentKind", "activeAppVersionId", "revisions", "revision", "activatedByDeploymentId", "activatedBy", "activatedAt", "updatedAt"];
|
|
11014
|
+
readonly properties: {
|
|
11015
|
+
readonly schemaVersion: {
|
|
11016
|
+
readonly const: "openxiangda.environment-head/v2";
|
|
11017
|
+
};
|
|
11018
|
+
readonly id: {
|
|
11019
|
+
readonly type: "string";
|
|
11020
|
+
readonly minLength: 1;
|
|
11021
|
+
};
|
|
11022
|
+
readonly appCode: {
|
|
11023
|
+
readonly type: "string";
|
|
11024
|
+
readonly minLength: 1;
|
|
11025
|
+
};
|
|
11026
|
+
readonly environmentKey: {
|
|
11027
|
+
readonly type: "string";
|
|
11028
|
+
readonly minLength: 1;
|
|
11029
|
+
};
|
|
11030
|
+
readonly environmentId: {
|
|
11031
|
+
readonly type: readonly ["string", "null"];
|
|
11032
|
+
};
|
|
11033
|
+
readonly environmentKind: {
|
|
11034
|
+
readonly enum: readonly ["preproduction", "production"];
|
|
11035
|
+
};
|
|
11036
|
+
readonly activeAppVersionId: {
|
|
11037
|
+
readonly type: "string";
|
|
11038
|
+
readonly minLength: 1;
|
|
11039
|
+
};
|
|
11040
|
+
readonly revisions: {
|
|
11041
|
+
readonly type: "object";
|
|
11042
|
+
readonly additionalProperties: false;
|
|
11043
|
+
readonly required: readonly ["frontend", "backend", "config", "dataContract"];
|
|
11044
|
+
readonly properties: {
|
|
11045
|
+
readonly frontend: {
|
|
11046
|
+
readonly type: readonly ["string", "null"];
|
|
11047
|
+
};
|
|
11048
|
+
readonly backend: {
|
|
11049
|
+
readonly type: readonly ["string", "null"];
|
|
11050
|
+
};
|
|
11051
|
+
readonly config: {
|
|
11052
|
+
readonly type: readonly ["string", "null"];
|
|
11053
|
+
};
|
|
11054
|
+
readonly dataContract: {
|
|
11055
|
+
readonly type: readonly ["string", "null"];
|
|
11056
|
+
};
|
|
11057
|
+
};
|
|
11058
|
+
};
|
|
11059
|
+
readonly revision: {
|
|
11060
|
+
readonly type: "integer";
|
|
11061
|
+
readonly minimum: 1;
|
|
11062
|
+
};
|
|
11063
|
+
readonly activatedByDeploymentId: {
|
|
11064
|
+
readonly type: "string";
|
|
11065
|
+
readonly minLength: 1;
|
|
11066
|
+
};
|
|
11067
|
+
readonly activatedBy: {
|
|
11068
|
+
readonly type: "string";
|
|
11069
|
+
readonly minLength: 1;
|
|
11070
|
+
};
|
|
11071
|
+
readonly activatedAt: {
|
|
11072
|
+
readonly type: "string";
|
|
11073
|
+
readonly format: "date-time";
|
|
11074
|
+
};
|
|
11075
|
+
readonly updatedAt: {
|
|
11076
|
+
readonly type: "string";
|
|
11077
|
+
readonly format: "date-time";
|
|
11078
|
+
};
|
|
11079
|
+
readonly activeAppVersion: {
|
|
11080
|
+
readonly anyOf: readonly [{
|
|
11081
|
+
readonly $id: "openxiangda.app-version/v2";
|
|
11082
|
+
readonly type: "object";
|
|
11083
|
+
readonly additionalProperties: false;
|
|
11084
|
+
readonly required: readonly ["schemaVersion", "id", "appCode", "version", "packageDigest", "source", "toolchain", "revisions", "metadata", "createdBy", "createdAt"];
|
|
11085
|
+
readonly properties: {
|
|
11086
|
+
readonly schemaVersion: {
|
|
11087
|
+
readonly const: "openxiangda.app-version/v2";
|
|
11088
|
+
};
|
|
11089
|
+
readonly id: {
|
|
11090
|
+
readonly type: "string";
|
|
11091
|
+
readonly minLength: 1;
|
|
11092
|
+
};
|
|
11093
|
+
readonly appCode: {
|
|
11094
|
+
readonly type: "string";
|
|
11095
|
+
readonly minLength: 1;
|
|
11096
|
+
};
|
|
11097
|
+
readonly version: {
|
|
11098
|
+
readonly type: "string";
|
|
11099
|
+
readonly minLength: 1;
|
|
11100
|
+
};
|
|
11101
|
+
readonly packageDigest: {
|
|
11102
|
+
readonly type: "string";
|
|
11103
|
+
readonly pattern: "^[0-9a-f]{64}$";
|
|
11104
|
+
};
|
|
11105
|
+
readonly source: {
|
|
11106
|
+
readonly type: "object";
|
|
11107
|
+
readonly additionalProperties: false;
|
|
11108
|
+
readonly required: readonly ["repository", "commit", "dirty"];
|
|
11109
|
+
readonly properties: {
|
|
11110
|
+
readonly repository: {
|
|
11111
|
+
readonly type: "string";
|
|
11112
|
+
readonly minLength: 1;
|
|
11113
|
+
};
|
|
11114
|
+
readonly commit: {
|
|
11115
|
+
readonly type: "string";
|
|
11116
|
+
readonly minLength: 1;
|
|
11117
|
+
};
|
|
11118
|
+
readonly dirty: {
|
|
11119
|
+
readonly type: "boolean";
|
|
11120
|
+
};
|
|
11121
|
+
};
|
|
11122
|
+
};
|
|
11123
|
+
readonly toolchain: {
|
|
11124
|
+
readonly type: "object";
|
|
11125
|
+
readonly additionalProperties: false;
|
|
11126
|
+
readonly required: readonly ["version", "contractVersion"];
|
|
11127
|
+
readonly properties: {
|
|
11128
|
+
readonly version: {
|
|
11129
|
+
readonly type: "string";
|
|
11130
|
+
readonly minLength: 1;
|
|
11131
|
+
};
|
|
11132
|
+
readonly contractVersion: {
|
|
11133
|
+
readonly const: "2.0.0-alpha.3";
|
|
11134
|
+
};
|
|
11135
|
+
};
|
|
11136
|
+
};
|
|
11137
|
+
readonly revisions: {
|
|
11138
|
+
readonly type: "object";
|
|
11139
|
+
readonly additionalProperties: false;
|
|
11140
|
+
readonly required: readonly ["frontend", "backend", "config", "dataContract"];
|
|
11141
|
+
readonly properties: {
|
|
11142
|
+
readonly frontend: {
|
|
11143
|
+
readonly type: readonly ["string", "null"];
|
|
11144
|
+
};
|
|
11145
|
+
readonly backend: {
|
|
11146
|
+
readonly type: readonly ["string", "null"];
|
|
11147
|
+
};
|
|
11148
|
+
readonly config: {
|
|
11149
|
+
readonly type: readonly ["string", "null"];
|
|
11150
|
+
};
|
|
11151
|
+
readonly dataContract: {
|
|
11152
|
+
readonly type: readonly ["string", "null"];
|
|
11153
|
+
};
|
|
11154
|
+
};
|
|
11155
|
+
};
|
|
11156
|
+
readonly metadata: {
|
|
11157
|
+
readonly type: "object";
|
|
11158
|
+
};
|
|
11159
|
+
readonly createdBy: {
|
|
11160
|
+
readonly type: "string";
|
|
11161
|
+
readonly minLength: 1;
|
|
11162
|
+
};
|
|
11163
|
+
readonly createdAt: {
|
|
11164
|
+
readonly type: "string";
|
|
11165
|
+
readonly format: "date-time";
|
|
11166
|
+
};
|
|
11167
|
+
};
|
|
11168
|
+
}, {
|
|
11169
|
+
readonly type: "null";
|
|
11170
|
+
}];
|
|
11171
|
+
};
|
|
11172
|
+
};
|
|
11173
|
+
}, {
|
|
11174
|
+
readonly type: "null";
|
|
11175
|
+
}];
|
|
11176
|
+
};
|
|
11177
|
+
readonly id: {
|
|
11178
|
+
readonly type: "string";
|
|
11179
|
+
readonly minLength: 1;
|
|
11180
|
+
};
|
|
11181
|
+
readonly tenantId: {
|
|
11182
|
+
readonly type: "string";
|
|
11183
|
+
readonly minLength: 1;
|
|
11184
|
+
};
|
|
11185
|
+
readonly appCode: {
|
|
11186
|
+
readonly type: "string";
|
|
11187
|
+
readonly minLength: 1;
|
|
11188
|
+
};
|
|
11189
|
+
readonly environmentKey: {
|
|
11190
|
+
readonly enum: readonly ["preproduction", "production"];
|
|
11191
|
+
};
|
|
11192
|
+
readonly environmentKind: {
|
|
11193
|
+
readonly enum: readonly ["preproduction", "production"];
|
|
11194
|
+
};
|
|
11195
|
+
readonly displayName: {
|
|
11196
|
+
readonly type: "string";
|
|
11197
|
+
readonly minLength: 1;
|
|
11198
|
+
};
|
|
11199
|
+
readonly status: {
|
|
11200
|
+
readonly enum: readonly ["active", "decommissioned"];
|
|
11201
|
+
};
|
|
11202
|
+
readonly runtimeState: {
|
|
11203
|
+
readonly enum: readonly ["running", "stopped"];
|
|
11204
|
+
};
|
|
11205
|
+
readonly sideEffectPolicy: {
|
|
11206
|
+
readonly type: "object";
|
|
11207
|
+
};
|
|
11208
|
+
readonly revision: {
|
|
11209
|
+
readonly type: "integer";
|
|
11210
|
+
readonly minimum: 1;
|
|
11211
|
+
};
|
|
11212
|
+
readonly createdBy: {
|
|
11213
|
+
readonly type: "string";
|
|
11214
|
+
readonly minLength: 1;
|
|
11215
|
+
};
|
|
11216
|
+
readonly updatedBy: {
|
|
11217
|
+
readonly type: "string";
|
|
11218
|
+
readonly minLength: 1;
|
|
11219
|
+
};
|
|
11220
|
+
readonly createdAt: {
|
|
11221
|
+
readonly type: "string";
|
|
11222
|
+
readonly format: "date-time";
|
|
11223
|
+
};
|
|
11224
|
+
readonly updatedAt: {
|
|
11225
|
+
readonly type: "string";
|
|
11226
|
+
readonly format: "date-time";
|
|
11227
|
+
};
|
|
11228
|
+
};
|
|
11229
|
+
readonly type: "object";
|
|
11230
|
+
readonly additionalProperties: false;
|
|
11231
|
+
};
|
|
11232
|
+
};
|
|
11233
|
+
readonly total: {
|
|
11234
|
+
readonly type: "integer";
|
|
11235
|
+
readonly minimum: 0;
|
|
11236
|
+
readonly maximum: 2;
|
|
11237
|
+
};
|
|
11238
|
+
};
|
|
11239
|
+
};
|
|
10544
11240
|
readonly deploymentRun: {
|
|
10545
11241
|
readonly $id: "openxiangda.deployment-run/v2";
|
|
10546
11242
|
readonly type: "object";
|
|
@@ -10571,7 +11267,7 @@ export declare const contractSchemas: {
|
|
|
10571
11267
|
};
|
|
10572
11268
|
};
|
|
10573
11269
|
readonly kind: {
|
|
10574
|
-
readonly enum: readonly ["deploy", "promotion", "rollback", "redeploy"];
|
|
11270
|
+
readonly enum: readonly ["deploy", "promotion", "rollback", "redeploy", "start", "stop"];
|
|
10575
11271
|
};
|
|
10576
11272
|
readonly packageDigest: {
|
|
10577
11273
|
readonly type: "string";
|