@faiber/faiber-profile 0.5.2 → 0.6.2

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.
@@ -201,6 +201,61 @@ export interface CountryForceDestroyDeleteResponse extends ApiEnvelope<JsonValue
201
201
  /** Backend response type: serde_json::Value. */
202
202
  export interface CountryRestoreGetResponse extends ApiEnvelope<JsonValue> {
203
203
  }
204
+ /** Backend query type: models::ListQuery. */
205
+ export interface CustomTypeIndexGetQuery extends QueryParams {
206
+ "page"?: string | null;
207
+ "per_page"?: string | null;
208
+ "filter[search]"?: string | null;
209
+ "filter[status]"?: string | null;
210
+ "filter[active]"?: string | null;
211
+ }
212
+ /** Backend response type: models::ListData. */
213
+ export interface CustomTypeIndexGetResponseData extends JsonObject {
214
+ "custom_types": BackendJson<"Response">[];
215
+ }
216
+ export interface CustomTypeIndexGetMetaData extends JsonObject {
217
+ "current_page": number;
218
+ "per_page": number;
219
+ "total": number;
220
+ "last_page": number;
221
+ }
222
+ export interface CustomTypeIndexGetResponse extends ApiEnvelope<CustomTypeIndexGetResponseData> {
223
+ meta: CustomTypeIndexGetMetaData;
224
+ }
225
+ /** Backend request type: models::Create. */
226
+ export interface CustomTypeStorePostInput extends JsonObject {
227
+ "name": string;
228
+ "value_type": string;
229
+ "options": JsonValue[];
230
+ }
231
+ /** Backend response type: models::SingleData. */
232
+ export interface CustomTypeStorePostResponseData extends JsonObject {
233
+ "custom_type": BackendJson<"Response">;
234
+ }
235
+ export interface CustomTypeStorePostResponse extends ApiEnvelope<CustomTypeStorePostResponseData> {
236
+ }
237
+ /** Backend response type: serde_json::Value. */
238
+ export interface CustomTypeDestroyDeleteResponse extends ApiEnvelope<JsonValue> {
239
+ }
240
+ /** Backend response type: models::SingleData. */
241
+ export interface CustomTypeShowGetResponseData extends JsonObject {
242
+ "custom_type": BackendJson<"Response">;
243
+ }
244
+ export interface CustomTypeShowGetResponse extends ApiEnvelope<CustomTypeShowGetResponseData> {
245
+ }
246
+ /** Backend request type: models::Update. */
247
+ export interface CustomTypeUpdatePatchInput extends JsonObject {
248
+ "name"?: string | null;
249
+ "value_type"?: string | null;
250
+ "options"?: JsonValue[] | null;
251
+ "status"?: string | null;
252
+ }
253
+ /** Backend response type: models::SingleData. */
254
+ export interface CustomTypeUpdatePatchResponseData extends JsonObject {
255
+ "custom_type": BackendJson<"Response">;
256
+ }
257
+ export interface CustomTypeUpdatePatchResponse extends ApiEnvelope<CustomTypeUpdatePatchResponseData> {
258
+ }
204
259
  /** Backend response type: Value. */
205
260
  export interface OptionDependencyGetResponse extends ApiEnvelope<JsonValue> {
206
261
  }
@@ -277,6 +332,13 @@ export interface ProfileIndexGetMetaData extends JsonObject {
277
332
  export interface ProfileIndexGetResponse extends ApiEnvelope<ProfileIndexGetResponseData> {
278
333
  meta: ProfileIndexGetMetaData;
279
334
  }
335
+ /** Backend query type: MediaQuery. */
336
+ export interface ProfileAvatarShowGetApiV1ProfileMediaUuidAvatarQuery extends QueryParams {
337
+ "key": string;
338
+ }
339
+ /** Backend response type: raw-response. */
340
+ export interface ProfileAvatarShowGetApiV1ProfileMediaUuidAvatarResponse extends ApiEnvelope<JsonValue> {
341
+ }
280
342
  /** Backend query type: models::ListQuery. */
281
343
  export interface ProfilePropertyIndexGetQuery extends QueryParams {
282
344
  "page"?: string | null;
@@ -307,6 +369,7 @@ export interface ProfilePropertyStorePostInput extends JsonObject {
307
369
  "title": string;
308
370
  "validator_type": string;
309
371
  "validator_config"?: JsonValue | null;
372
+ "custom_type_id"?: string | null;
310
373
  "visible_in_list"?: boolean | null;
311
374
  "visible_in_get"?: boolean | null;
312
375
  "visible_in_full"?: boolean | null;
@@ -336,6 +399,7 @@ export interface ProfilePropertyUpdatePatchInput extends JsonObject {
336
399
  "title"?: string | null;
337
400
  "validator_type"?: string | null;
338
401
  "validator_config"?: JsonValue | null;
402
+ "custom_type_id"?: string | null;
339
403
  "visible_in_list"?: boolean | null;
340
404
  "visible_in_get"?: boolean | null;
341
405
  "visible_in_full"?: boolean | null;
@@ -357,6 +421,7 @@ export interface ProfilePropertyUpdatePutInput extends JsonObject {
357
421
  "title"?: string | null;
358
422
  "validator_type"?: string | null;
359
423
  "validator_config"?: JsonValue | null;
424
+ "custom_type_id"?: string | null;
360
425
  "visible_in_list"?: boolean | null;
361
426
  "visible_in_get"?: boolean | null;
362
427
  "visible_in_full"?: boolean | null;
@@ -378,6 +443,115 @@ export interface ProfilePropertyForceDestroyDeleteResponse extends ApiEnvelope<J
378
443
  /** Backend response type: serde_json::Value. */
379
444
  export interface ProfilePropertyRestoreGetResponse extends ApiEnvelope<JsonValue> {
380
445
  }
446
+ /** Backend response type: entity::profile::Model. */
447
+ export interface ReferralShowProfileReferralGetResponseData extends JsonObject {
448
+ "id": string;
449
+ "province_id": string;
450
+ "name": string;
451
+ "latitude"?: number | null;
452
+ "longitude"?: number | null;
453
+ "status": string;
454
+ "created_at": string;
455
+ "updated_at"?: string | null;
456
+ "deleted_at"?: string | null;
457
+ }
458
+ export interface ReferralShowProfileReferralGetResponse extends ApiEnvelope<ReferralShowProfileReferralGetResponseData> {
459
+ }
460
+ /** Backend request type: ProfileReferralWrite. */
461
+ export interface ReferralAssignPutInput extends JsonObject {
462
+ "referral_source_id"?: string | null;
463
+ "referrer_profile_id"?: string | null;
464
+ }
465
+ /** Backend response type: entity::profile::Model. */
466
+ export interface ReferralAssignPutResponseData extends JsonObject {
467
+ "id": string;
468
+ "province_id": string;
469
+ "name": string;
470
+ "latitude"?: number | null;
471
+ "longitude"?: number | null;
472
+ "status": string;
473
+ "created_at": string;
474
+ "updated_at"?: string | null;
475
+ "deleted_at"?: string | null;
476
+ }
477
+ export interface ReferralAssignPutResponse extends ApiEnvelope<ReferralAssignPutResponseData> {
478
+ }
479
+ /** Backend query type: RelationQuery. */
480
+ export interface RelationListRelationsGetQuery extends QueryParams {
481
+ "profile_id"?: string | null;
482
+ "active"?: boolean | null;
483
+ }
484
+ /** Backend response type: Vec<entity::profile_relation::Model>. */
485
+ export interface RelationListRelationsGetResponseItem extends JsonObject {
486
+ "id": string;
487
+ "province_id": string;
488
+ "name": string;
489
+ "latitude"?: number | null;
490
+ "longitude"?: number | null;
491
+ "status": string;
492
+ "created_at": string;
493
+ "updated_at"?: string | null;
494
+ "deleted_at"?: string | null;
495
+ }
496
+ export interface RelationListRelationsGetResponse extends ApiEnvelope<RelationListRelationsGetResponseItem[]> {
497
+ }
498
+ /** Backend request type: RelationWrite. */
499
+ export interface RelationCreateRelationPostInput extends JsonObject {
500
+ "source_profile_id": string;
501
+ "target_profile_id": string;
502
+ "relation_type_id": string;
503
+ "metadata"?: JsonValue;
504
+ }
505
+ /** Backend response type: Vec<entity::profile_relation::Model>. */
506
+ export interface RelationCreateRelationPostResponseItem extends JsonObject {
507
+ "id": string;
508
+ "province_id": string;
509
+ "name": string;
510
+ "latitude"?: number | null;
511
+ "longitude"?: number | null;
512
+ "status": string;
513
+ "created_at": string;
514
+ "updated_at"?: string | null;
515
+ "deleted_at"?: string | null;
516
+ }
517
+ export interface RelationCreateRelationPostResponse extends ApiEnvelope<RelationCreateRelationPostResponseItem[]> {
518
+ }
519
+ /** Backend response type: serde_json::Value. */
520
+ export interface RelationDeleteRelationDeleteResponse extends ApiEnvelope<JsonValue> {
521
+ }
522
+ /** Backend response type: entity::profile_relation::Model. */
523
+ export interface RelationShowRelationGetResponseData extends JsonObject {
524
+ "id": string;
525
+ "province_id": string;
526
+ "name": string;
527
+ "latitude"?: number | null;
528
+ "longitude"?: number | null;
529
+ "status": string;
530
+ "created_at": string;
531
+ "updated_at"?: string | null;
532
+ "deleted_at"?: string | null;
533
+ }
534
+ export interface RelationShowRelationGetResponse extends ApiEnvelope<RelationShowRelationGetResponseData> {
535
+ }
536
+ /** Backend request type: RelationUpdate. */
537
+ export interface RelationUpdateRelationPutInput extends JsonObject {
538
+ "metadata"?: JsonValue;
539
+ "active"?: boolean;
540
+ }
541
+ /** Backend response type: Vec<entity::profile_relation::Model>. */
542
+ export interface RelationUpdateRelationPutResponseItem extends JsonObject {
543
+ "id": string;
544
+ "province_id": string;
545
+ "name": string;
546
+ "latitude"?: number | null;
547
+ "longitude"?: number | null;
548
+ "status": string;
549
+ "created_at": string;
550
+ "updated_at"?: string | null;
551
+ "deleted_at"?: string | null;
552
+ }
553
+ export interface RelationUpdateRelationPutResponse extends ApiEnvelope<RelationUpdateRelationPutResponseItem[]> {
554
+ }
381
555
  /** Backend response type: serde_json::Value. */
382
556
  export interface ProfileDeleteParentDeleteResponse extends ApiEnvelope<JsonValue> {
383
557
  }
@@ -435,11 +609,11 @@ export interface ProfileShowAdminGetResponse extends ApiEnvelope<ProfileShowAdmi
435
609
  export interface ProfileAvatarDeleteDeleteResponse extends ApiEnvelope<JsonValue> {
436
610
  }
437
611
  /** Backend query type: MediaQuery. */
438
- export interface ProfileAvatarShowGetQuery extends QueryParams {
612
+ export interface ProfileAvatarShowGetApiV1ProfileUuidAvatarQuery extends QueryParams {
439
613
  "key": string;
440
614
  }
441
615
  /** Backend response type: raw-response. */
442
- export interface ProfileAvatarShowGetResponse extends ApiEnvelope<JsonValue> {
616
+ export interface ProfileAvatarShowGetApiV1ProfileUuidAvatarResponse extends ApiEnvelope<JsonValue> {
443
617
  }
444
618
  /** Backend request type: multipart/form-data. */
445
619
  export type ProfileAvatarStorePostInput = FormData;
@@ -1021,6 +1195,164 @@ export interface ProvinceForceDestroyDeleteResponse extends ApiEnvelope<JsonValu
1021
1195
  /** Backend response type: serde_json::Value. */
1022
1196
  export interface ProvinceRestoreGetResponse extends ApiEnvelope<JsonValue> {
1023
1197
  }
1198
+ /** Backend response type: Vec<entity::referral_source::Model>. */
1199
+ export interface ReferralListGetResponseItem extends JsonObject {
1200
+ "id": string;
1201
+ "province_id": string;
1202
+ "name": string;
1203
+ "latitude"?: number | null;
1204
+ "longitude"?: number | null;
1205
+ "status": string;
1206
+ "created_at": string;
1207
+ "updated_at"?: string | null;
1208
+ "deleted_at"?: string | null;
1209
+ }
1210
+ export interface ReferralListGetResponse extends ApiEnvelope<ReferralListGetResponseItem[]> {
1211
+ }
1212
+ /** Backend request type: SourceWrite. */
1213
+ export interface ReferralCreatePostInput extends JsonObject {
1214
+ "code": string;
1215
+ "labels"?: JsonValue;
1216
+ "metadata"?: JsonValue;
1217
+ "active"?: boolean;
1218
+ "sort_order"?: number;
1219
+ }
1220
+ /** Backend response type: entity::referral_source::Model. */
1221
+ export interface ReferralCreatePostResponseData extends JsonObject {
1222
+ "id": string;
1223
+ "province_id": string;
1224
+ "name": string;
1225
+ "latitude"?: number | null;
1226
+ "longitude"?: number | null;
1227
+ "status": string;
1228
+ "created_at": string;
1229
+ "updated_at"?: string | null;
1230
+ "deleted_at"?: string | null;
1231
+ }
1232
+ export interface ReferralCreatePostResponse extends ApiEnvelope<ReferralCreatePostResponseData> {
1233
+ }
1234
+ /** Backend response type: serde_json::Value. */
1235
+ export interface ReferralDeleteDeleteResponse extends ApiEnvelope<JsonValue> {
1236
+ }
1237
+ /** Backend response type: entity::referral_source::Model. */
1238
+ export interface ReferralShowGetResponseData extends JsonObject {
1239
+ "id": string;
1240
+ "province_id": string;
1241
+ "name": string;
1242
+ "latitude"?: number | null;
1243
+ "longitude"?: number | null;
1244
+ "status": string;
1245
+ "created_at": string;
1246
+ "updated_at"?: string | null;
1247
+ "deleted_at"?: string | null;
1248
+ }
1249
+ export interface ReferralShowGetResponse extends ApiEnvelope<ReferralShowGetResponseData> {
1250
+ }
1251
+ /** Backend request type: SourceWrite. */
1252
+ export interface ReferralUpdatePutInput extends JsonObject {
1253
+ "code": string;
1254
+ "labels"?: JsonValue;
1255
+ "metadata"?: JsonValue;
1256
+ "active"?: boolean;
1257
+ "sort_order"?: number;
1258
+ }
1259
+ /** Backend response type: entity::referral_source::Model. */
1260
+ export interface ReferralUpdatePutResponseData extends JsonObject {
1261
+ "id": string;
1262
+ "province_id": string;
1263
+ "name": string;
1264
+ "latitude"?: number | null;
1265
+ "longitude"?: number | null;
1266
+ "status": string;
1267
+ "created_at": string;
1268
+ "updated_at"?: string | null;
1269
+ "deleted_at"?: string | null;
1270
+ }
1271
+ export interface ReferralUpdatePutResponse extends ApiEnvelope<ReferralUpdatePutResponseData> {
1272
+ }
1273
+ /** Backend response type: Vec<entity::relation_type::Model>. */
1274
+ export interface RelationListTypesGetResponseItem extends JsonObject {
1275
+ "id": string;
1276
+ "province_id": string;
1277
+ "name": string;
1278
+ "latitude"?: number | null;
1279
+ "longitude"?: number | null;
1280
+ "status": string;
1281
+ "created_at": string;
1282
+ "updated_at"?: string | null;
1283
+ "deleted_at"?: string | null;
1284
+ }
1285
+ export interface RelationListTypesGetResponse extends ApiEnvelope<RelationListTypesGetResponseItem[]> {
1286
+ }
1287
+ /** Backend request type: RelationTypeWrite. */
1288
+ export interface RelationCreateTypePostInput extends JsonObject {
1289
+ "code": string;
1290
+ "labels"?: JsonValue;
1291
+ "inverse_type_id"?: string | null;
1292
+ "symmetric"?: boolean;
1293
+ "managed_inverse"?: boolean;
1294
+ "allow_self"?: boolean;
1295
+ "constraints"?: JsonValue;
1296
+ "active"?: boolean;
1297
+ "sort_order"?: number;
1298
+ }
1299
+ /** Backend response type: entity::relation_type::Model. */
1300
+ export interface RelationCreateTypePostResponseData extends JsonObject {
1301
+ "id": string;
1302
+ "province_id": string;
1303
+ "name": string;
1304
+ "latitude"?: number | null;
1305
+ "longitude"?: number | null;
1306
+ "status": string;
1307
+ "created_at": string;
1308
+ "updated_at"?: string | null;
1309
+ "deleted_at"?: string | null;
1310
+ }
1311
+ export interface RelationCreateTypePostResponse extends ApiEnvelope<RelationCreateTypePostResponseData> {
1312
+ }
1313
+ /** Backend response type: serde_json::Value. */
1314
+ export interface RelationDeleteTypeDeleteResponse extends ApiEnvelope<JsonValue> {
1315
+ }
1316
+ /** Backend response type: entity::relation_type::Model. */
1317
+ export interface RelationShowTypeGetResponseData extends JsonObject {
1318
+ "id": string;
1319
+ "province_id": string;
1320
+ "name": string;
1321
+ "latitude"?: number | null;
1322
+ "longitude"?: number | null;
1323
+ "status": string;
1324
+ "created_at": string;
1325
+ "updated_at"?: string | null;
1326
+ "deleted_at"?: string | null;
1327
+ }
1328
+ export interface RelationShowTypeGetResponse extends ApiEnvelope<RelationShowTypeGetResponseData> {
1329
+ }
1330
+ /** Backend request type: RelationTypeWrite. */
1331
+ export interface RelationUpdateTypePutInput extends JsonObject {
1332
+ "code": string;
1333
+ "labels"?: JsonValue;
1334
+ "inverse_type_id"?: string | null;
1335
+ "symmetric"?: boolean;
1336
+ "managed_inverse"?: boolean;
1337
+ "allow_self"?: boolean;
1338
+ "constraints"?: JsonValue;
1339
+ "active"?: boolean;
1340
+ "sort_order"?: number;
1341
+ }
1342
+ /** Backend response type: entity::relation_type::Model. */
1343
+ export interface RelationUpdateTypePutResponseData extends JsonObject {
1344
+ "id": string;
1345
+ "province_id": string;
1346
+ "name": string;
1347
+ "latitude"?: number | null;
1348
+ "longitude"?: number | null;
1349
+ "status": string;
1350
+ "created_at": string;
1351
+ "updated_at"?: string | null;
1352
+ "deleted_at"?: string | null;
1353
+ }
1354
+ export interface RelationUpdateTypePutResponse extends ApiEnvelope<RelationUpdateTypePutResponseData> {
1355
+ }
1024
1356
  /** Backend response type: models::ListData. */
1025
1357
  export interface SettingIndexGetResponseData extends JsonObject {
1026
1358
  "setting": BackendJson<"Response">[];
@@ -1039,6 +1371,396 @@ export interface SettingStorePostResponseData extends JsonObject {
1039
1371
  }
1040
1372
  export interface SettingStorePostResponse extends ApiEnvelope<SettingStorePostResponseData> {
1041
1373
  }
1374
+ /** Backend query type: ActionQuery. */
1375
+ export interface LifecycleActionsListGetQuery extends QueryParams {
1376
+ "state_id"?: string | null;
1377
+ }
1378
+ /** Backend response type: Vec<entity::state_action::Model>. */
1379
+ export interface LifecycleActionsListGetResponseItem extends JsonObject {
1380
+ "id": string;
1381
+ "province_id": string;
1382
+ "name": string;
1383
+ "latitude"?: number | null;
1384
+ "longitude"?: number | null;
1385
+ "status": string;
1386
+ "created_at": string;
1387
+ "updated_at"?: string | null;
1388
+ "deleted_at"?: string | null;
1389
+ }
1390
+ export interface LifecycleActionsListGetResponse extends ApiEnvelope<LifecycleActionsListGetResponseItem[]> {
1391
+ }
1392
+ /** Backend request type: ActionWrite. */
1393
+ export interface LifecycleCreateActionPostInput extends JsonObject {
1394
+ "state_id": string;
1395
+ "phase": string;
1396
+ "action_type": string;
1397
+ "labels"?: JsonValue;
1398
+ "config"?: JsonValue;
1399
+ "condition"?: JsonValue | null;
1400
+ "delay_seconds"?: number;
1401
+ "retry_policy"?: JsonValue;
1402
+ "max_attempts"?: number;
1403
+ "sort_order"?: number;
1404
+ "enabled"?: boolean;
1405
+ }
1406
+ /** Backend response type: entity::state_action::Model. */
1407
+ export interface LifecycleCreateActionPostResponseData extends JsonObject {
1408
+ "id": string;
1409
+ "province_id": string;
1410
+ "name": string;
1411
+ "latitude"?: number | null;
1412
+ "longitude"?: number | null;
1413
+ "status": string;
1414
+ "created_at": string;
1415
+ "updated_at"?: string | null;
1416
+ "deleted_at"?: string | null;
1417
+ }
1418
+ export interface LifecycleCreateActionPostResponse extends ApiEnvelope<LifecycleCreateActionPostResponseData> {
1419
+ }
1420
+ /** Backend response type: serde_json::Value. */
1421
+ export interface LifecycleDeleteActionDeleteResponse extends ApiEnvelope<JsonValue> {
1422
+ }
1423
+ /** Backend response type: entity::state_action::Model. */
1424
+ export interface LifecycleShowActionGetResponseData extends JsonObject {
1425
+ "id": string;
1426
+ "province_id": string;
1427
+ "name": string;
1428
+ "latitude"?: number | null;
1429
+ "longitude"?: number | null;
1430
+ "status": string;
1431
+ "created_at": string;
1432
+ "updated_at"?: string | null;
1433
+ "deleted_at"?: string | null;
1434
+ }
1435
+ export interface LifecycleShowActionGetResponse extends ApiEnvelope<LifecycleShowActionGetResponseData> {
1436
+ }
1437
+ /** Backend request type: ActionWrite. */
1438
+ export interface LifecycleUpdateActionPutInput extends JsonObject {
1439
+ "state_id": string;
1440
+ "phase": string;
1441
+ "action_type": string;
1442
+ "labels"?: JsonValue;
1443
+ "config"?: JsonValue;
1444
+ "condition"?: JsonValue | null;
1445
+ "delay_seconds"?: number;
1446
+ "retry_policy"?: JsonValue;
1447
+ "max_attempts"?: number;
1448
+ "sort_order"?: number;
1449
+ "enabled"?: boolean;
1450
+ }
1451
+ /** Backend response type: entity::state_action::Model. */
1452
+ export interface LifecycleUpdateActionPutResponseData extends JsonObject {
1453
+ "id": string;
1454
+ "province_id": string;
1455
+ "name": string;
1456
+ "latitude"?: number | null;
1457
+ "longitude"?: number | null;
1458
+ "status": string;
1459
+ "created_at": string;
1460
+ "updated_at"?: string | null;
1461
+ "deleted_at"?: string | null;
1462
+ }
1463
+ export interface LifecycleUpdateActionPutResponse extends ApiEnvelope<LifecycleUpdateActionPutResponseData> {
1464
+ }
1465
+ /** Backend request type: ActionWrite. */
1466
+ export interface LifecycleDryRunActionPostInput extends JsonObject {
1467
+ "state_id": string;
1468
+ "phase": string;
1469
+ "action_type": string;
1470
+ "labels"?: JsonValue;
1471
+ "config"?: JsonValue;
1472
+ "condition"?: JsonValue | null;
1473
+ "delay_seconds"?: number;
1474
+ "retry_policy"?: JsonValue;
1475
+ "max_attempts"?: number;
1476
+ "sort_order"?: number;
1477
+ "enabled"?: boolean;
1478
+ }
1479
+ /** Backend response type: serde_json::Value. */
1480
+ export interface LifecycleDryRunActionPostResponse extends ApiEnvelope<JsonValue> {
1481
+ }
1482
+ /** Backend query type: StateQuery. */
1483
+ export interface LifecycleStatesGetQuery extends QueryParams {
1484
+ "system_id"?: string | null;
1485
+ }
1486
+ /** Backend response type: Vec<entity::state_definition::Model>. */
1487
+ export interface LifecycleStatesGetResponseItem extends JsonObject {
1488
+ "id": string;
1489
+ "province_id": string;
1490
+ "name": string;
1491
+ "latitude"?: number | null;
1492
+ "longitude"?: number | null;
1493
+ "status": string;
1494
+ "created_at": string;
1495
+ "updated_at"?: string | null;
1496
+ "deleted_at"?: string | null;
1497
+ }
1498
+ export interface LifecycleStatesGetResponse extends ApiEnvelope<LifecycleStatesGetResponseItem[]> {
1499
+ }
1500
+ /** Backend request type: StateWrite. */
1501
+ export interface LifecycleCreateStatePostInput extends JsonObject {
1502
+ "system_id": string;
1503
+ "code": string;
1504
+ "labels"?: JsonValue;
1505
+ "description"?: JsonValue;
1506
+ "rule"?: JsonValue;
1507
+ "priority"?: number;
1508
+ "is_fallback"?: boolean;
1509
+ "active"?: boolean;
1510
+ }
1511
+ /** Backend response type: entity::state_definition::Model. */
1512
+ export interface LifecycleCreateStatePostResponseData extends JsonObject {
1513
+ "id": string;
1514
+ "province_id": string;
1515
+ "name": string;
1516
+ "latitude"?: number | null;
1517
+ "longitude"?: number | null;
1518
+ "status": string;
1519
+ "created_at": string;
1520
+ "updated_at"?: string | null;
1521
+ "deleted_at"?: string | null;
1522
+ }
1523
+ export interface LifecycleCreateStatePostResponse extends ApiEnvelope<LifecycleCreateStatePostResponseData> {
1524
+ }
1525
+ /** Backend response type: serde_json::Value. */
1526
+ export interface LifecycleDeleteStateDeleteResponse extends ApiEnvelope<JsonValue> {
1527
+ }
1528
+ /** Backend response type: entity::state_definition::Model. */
1529
+ export interface LifecycleShowStateGetResponseData extends JsonObject {
1530
+ "id": string;
1531
+ "province_id": string;
1532
+ "name": string;
1533
+ "latitude"?: number | null;
1534
+ "longitude"?: number | null;
1535
+ "status": string;
1536
+ "created_at": string;
1537
+ "updated_at"?: string | null;
1538
+ "deleted_at"?: string | null;
1539
+ }
1540
+ export interface LifecycleShowStateGetResponse extends ApiEnvelope<LifecycleShowStateGetResponseData> {
1541
+ }
1542
+ /** Backend request type: StateWrite. */
1543
+ export interface LifecycleUpdateStatePutInput extends JsonObject {
1544
+ "system_id": string;
1545
+ "code": string;
1546
+ "labels"?: JsonValue;
1547
+ "description"?: JsonValue;
1548
+ "rule"?: JsonValue;
1549
+ "priority"?: number;
1550
+ "is_fallback"?: boolean;
1551
+ "active"?: boolean;
1552
+ }
1553
+ /** Backend response type: entity::state_definition::Model. */
1554
+ export interface LifecycleUpdateStatePutResponseData extends JsonObject {
1555
+ "id": string;
1556
+ "province_id": string;
1557
+ "name": string;
1558
+ "latitude"?: number | null;
1559
+ "longitude"?: number | null;
1560
+ "status": string;
1561
+ "created_at": string;
1562
+ "updated_at"?: string | null;
1563
+ "deleted_at"?: string | null;
1564
+ }
1565
+ export interface LifecycleUpdateStatePutResponse extends ApiEnvelope<LifecycleUpdateStatePutResponseData> {
1566
+ }
1567
+ /** Backend query type: AttemptQuery. */
1568
+ export interface LifecycleActionAttemptsGetQuery extends QueryParams {
1569
+ "outbox_id"?: string | null;
1570
+ }
1571
+ /** Backend response type: Vec<entity::state_action_attempt::Model>. */
1572
+ export interface LifecycleActionAttemptsGetResponseItem extends JsonObject {
1573
+ "id": string;
1574
+ "province_id": string;
1575
+ "name": string;
1576
+ "latitude"?: number | null;
1577
+ "longitude"?: number | null;
1578
+ "status": string;
1579
+ "created_at": string;
1580
+ "updated_at"?: string | null;
1581
+ "deleted_at"?: string | null;
1582
+ }
1583
+ export interface LifecycleActionAttemptsGetResponse extends ApiEnvelope<LifecycleActionAttemptsGetResponseItem[]> {
1584
+ }
1585
+ /** Backend request type: EvaluationRequest. */
1586
+ export interface LifecycleEvaluatePostInput extends JsonObject {
1587
+ "profile_id": string;
1588
+ "system_id": string;
1589
+ "facts"?: JsonValue;
1590
+ "trigger"?: string | null;
1591
+ }
1592
+ /** Backend response type: EvaluationResult. */
1593
+ export interface LifecycleEvaluatePostResponseData extends JsonObject {
1594
+ "eligible": boolean;
1595
+ "selected_state_id"?: string | null;
1596
+ "selected_state_code"?: string | null;
1597
+ "current_state_id"?: string | null;
1598
+ "changed": boolean;
1599
+ "candidates": BackendJson<"CandidateResult">[];
1600
+ "facts": JsonValue;
1601
+ }
1602
+ export interface LifecycleEvaluatePostResponse extends ApiEnvelope<LifecycleEvaluatePostResponseData> {
1603
+ }
1604
+ /** Backend query type: OutboxQuery. */
1605
+ export interface LifecycleOutboxGetQuery extends QueryParams {
1606
+ "status"?: string | null;
1607
+ }
1608
+ /** Backend response type: Vec<entity::state_action_outbox::Model>. */
1609
+ export interface LifecycleOutboxGetResponseItem extends JsonObject {
1610
+ "id": string;
1611
+ "province_id": string;
1612
+ "name": string;
1613
+ "latitude"?: number | null;
1614
+ "longitude"?: number | null;
1615
+ "status": string;
1616
+ "created_at": string;
1617
+ "updated_at"?: string | null;
1618
+ "deleted_at"?: string | null;
1619
+ }
1620
+ export interface LifecycleOutboxGetResponse extends ApiEnvelope<LifecycleOutboxGetResponseItem[]> {
1621
+ }
1622
+ /** Backend response type: entity::state_action_outbox::Model. */
1623
+ export interface LifecycleRetryPostResponseData extends JsonObject {
1624
+ "id": string;
1625
+ "province_id": string;
1626
+ "name": string;
1627
+ "latitude"?: number | null;
1628
+ "longitude"?: number | null;
1629
+ "status": string;
1630
+ "created_at": string;
1631
+ "updated_at"?: string | null;
1632
+ "deleted_at"?: string | null;
1633
+ }
1634
+ export interface LifecycleRetryPostResponse extends ApiEnvelope<LifecycleRetryPostResponseData> {
1635
+ }
1636
+ /** Backend response type: usize. */
1637
+ export interface LifecycleProcessOutboxPostResponse extends ApiEnvelope<number> {
1638
+ }
1639
+ /** Backend request type: EvaluationRequest. */
1640
+ export interface LifecyclePreviewPostInput extends JsonObject {
1641
+ "profile_id": string;
1642
+ "system_id": string;
1643
+ "facts"?: JsonValue;
1644
+ "trigger"?: string | null;
1645
+ }
1646
+ /** Backend response type: EvaluationResult. */
1647
+ export interface LifecyclePreviewPostResponseData extends JsonObject {
1648
+ "eligible": boolean;
1649
+ "selected_state_id"?: string | null;
1650
+ "selected_state_code"?: string | null;
1651
+ "current_state_id"?: string | null;
1652
+ "changed": boolean;
1653
+ "candidates": BackendJson<"CandidateResult">[];
1654
+ "facts": JsonValue;
1655
+ }
1656
+ export interface LifecyclePreviewPostResponse extends ApiEnvelope<LifecyclePreviewPostResponseData> {
1657
+ }
1658
+ /** Backend query type: TransitionQuery. */
1659
+ export interface LifecycleTransitionsGetQuery extends QueryParams {
1660
+ "profile_id"?: string | null;
1661
+ "system_id"?: string | null;
1662
+ }
1663
+ /** Backend response type: Vec<entity::state_transition::Model>. */
1664
+ export interface LifecycleTransitionsGetResponseItem extends JsonObject {
1665
+ "id": string;
1666
+ "province_id": string;
1667
+ "name": string;
1668
+ "latitude"?: number | null;
1669
+ "longitude"?: number | null;
1670
+ "status": string;
1671
+ "created_at": string;
1672
+ "updated_at"?: string | null;
1673
+ "deleted_at"?: string | null;
1674
+ }
1675
+ export interface LifecycleTransitionsGetResponse extends ApiEnvelope<LifecycleTransitionsGetResponseItem[]> {
1676
+ }
1677
+ /** Backend request type: RulePreviewRequest. */
1678
+ export interface LifecycleValidateRulePostInput extends JsonObject {
1679
+ "rule"?: JsonValue;
1680
+ "facts"?: JsonValue;
1681
+ }
1682
+ /** Backend response type: serde_json::Value. */
1683
+ export interface LifecycleValidateRulePostResponse extends ApiEnvelope<JsonValue> {
1684
+ }
1685
+ /** Backend response type: Vec<entity::state_system::Model>. */
1686
+ export interface LifecycleSystemsGetResponseItem extends JsonObject {
1687
+ "id": string;
1688
+ "province_id": string;
1689
+ "name": string;
1690
+ "latitude"?: number | null;
1691
+ "longitude"?: number | null;
1692
+ "status": string;
1693
+ "created_at": string;
1694
+ "updated_at"?: string | null;
1695
+ "deleted_at"?: string | null;
1696
+ }
1697
+ export interface LifecycleSystemsGetResponse extends ApiEnvelope<LifecycleSystemsGetResponseItem[]> {
1698
+ }
1699
+ /** Backend request type: SystemWrite. */
1700
+ export interface LifecycleCreateSystemPostInput extends JsonObject {
1701
+ "code": string;
1702
+ "labels"?: JsonValue;
1703
+ "description"?: JsonValue;
1704
+ "eligibility_rule"?: JsonValue;
1705
+ "evaluation_schedule"?: string | null;
1706
+ "publish_mode"?: string;
1707
+ "active"?: boolean;
1708
+ }
1709
+ /** Backend response type: entity::state_system::Model. */
1710
+ export interface LifecycleCreateSystemPostResponseData extends JsonObject {
1711
+ "id": string;
1712
+ "province_id": string;
1713
+ "name": string;
1714
+ "latitude"?: number | null;
1715
+ "longitude"?: number | null;
1716
+ "status": string;
1717
+ "created_at": string;
1718
+ "updated_at"?: string | null;
1719
+ "deleted_at"?: string | null;
1720
+ }
1721
+ export interface LifecycleCreateSystemPostResponse extends ApiEnvelope<LifecycleCreateSystemPostResponseData> {
1722
+ }
1723
+ /** Backend response type: serde_json::Value. */
1724
+ export interface LifecycleDeleteSystemDeleteResponse extends ApiEnvelope<JsonValue> {
1725
+ }
1726
+ /** Backend response type: entity::state_system::Model. */
1727
+ export interface LifecycleShowSystemGetResponseData extends JsonObject {
1728
+ "id": string;
1729
+ "province_id": string;
1730
+ "name": string;
1731
+ "latitude"?: number | null;
1732
+ "longitude"?: number | null;
1733
+ "status": string;
1734
+ "created_at": string;
1735
+ "updated_at"?: string | null;
1736
+ "deleted_at"?: string | null;
1737
+ }
1738
+ export interface LifecycleShowSystemGetResponse extends ApiEnvelope<LifecycleShowSystemGetResponseData> {
1739
+ }
1740
+ /** Backend request type: SystemWrite. */
1741
+ export interface LifecycleUpdateSystemPutInput extends JsonObject {
1742
+ "code": string;
1743
+ "labels"?: JsonValue;
1744
+ "description"?: JsonValue;
1745
+ "eligibility_rule"?: JsonValue;
1746
+ "evaluation_schedule"?: string | null;
1747
+ "publish_mode"?: string;
1748
+ "active"?: boolean;
1749
+ }
1750
+ /** Backend response type: entity::state_system::Model. */
1751
+ export interface LifecycleUpdateSystemPutResponseData extends JsonObject {
1752
+ "id": string;
1753
+ "province_id": string;
1754
+ "name": string;
1755
+ "latitude"?: number | null;
1756
+ "longitude"?: number | null;
1757
+ "status": string;
1758
+ "created_at": string;
1759
+ "updated_at"?: string | null;
1760
+ "deleted_at"?: string | null;
1761
+ }
1762
+ export interface LifecycleUpdateSystemPutResponse extends ApiEnvelope<LifecycleUpdateSystemPutResponseData> {
1763
+ }
1042
1764
  /** Backend response type: Value. */
1043
1765
  export interface SurveyIndexGetResponse extends ApiEnvelope<JsonValue> {
1044
1766
  }