@faiber/faiber-crm 0.11.3 → 0.11.5
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/README.md +5 -1
- package/dist/.tsbuildinfo +1 -1
- package/dist/index.d.ts +16 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +25 -12
- package/dist/index.js.map +1 -1
- package/dist/operations.d.ts +110 -6
- package/dist/operations.d.ts.map +1 -1
- package/dist/operations.js +132 -6
- package/dist/operations.js.map +1 -1
- package/dist/operations.types.d.ts +487 -27
- package/dist/operations.types.d.ts.map +1 -1
- package/dist/types.d.ts +6 -5
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -1281,32 +1281,382 @@ export interface ApiRemoveTeamMemberDeleteResponseData extends JsonObject {
|
|
|
1281
1281
|
"updated_at": string;
|
|
1282
1282
|
}
|
|
1283
1283
|
export type ApiRemoveTeamMemberDeleteResponse = import("./types.js").CrmApiResponse<ApiRemoveTeamMemberDeleteResponseData>;
|
|
1284
|
+
/** Backend query type: ListQuery. */
|
|
1285
|
+
export interface ApiListWorkflowsRouteGetApiV1WorkflowQuery extends QueryParams {
|
|
1286
|
+
"cursor"?: string | null;
|
|
1287
|
+
"limit"?: number | null;
|
|
1288
|
+
"q"?: string | null;
|
|
1289
|
+
"pipeline_id"?: string | null;
|
|
1290
|
+
"stage_id"?: string | null;
|
|
1291
|
+
"team_id"?: string | null;
|
|
1292
|
+
"owner_user_id"?: string | null;
|
|
1293
|
+
"status"?: string | null;
|
|
1294
|
+
"statuses"?: string | null;
|
|
1295
|
+
"profile_id"?: string | null;
|
|
1296
|
+
"active_from"?: string | null;
|
|
1297
|
+
"active_to"?: string | null;
|
|
1298
|
+
"sort"?: string | null;
|
|
1299
|
+
}
|
|
1300
|
+
/** Backend response type: Vec<WorkflowResponse>. */
|
|
1301
|
+
export type ApiListWorkflowsRouteGetApiV1WorkflowResponseItemActionsKind = "internal" | "external";
|
|
1302
|
+
export interface ApiListWorkflowsRouteGetApiV1WorkflowResponseItemActions extends JsonObject {
|
|
1303
|
+
"key": string;
|
|
1304
|
+
"kind": ApiListWorkflowsRouteGetApiV1WorkflowResponseItemActionsKind;
|
|
1305
|
+
"form": string;
|
|
1306
|
+
"required"?: boolean;
|
|
1307
|
+
}
|
|
1308
|
+
export interface ApiListWorkflowsRouteGetApiV1WorkflowResponseItem extends JsonObject {
|
|
1309
|
+
"id": string;
|
|
1310
|
+
"name": string;
|
|
1311
|
+
"slug": string;
|
|
1312
|
+
"flags": string[];
|
|
1313
|
+
"acquire_flags": string[];
|
|
1314
|
+
"priority": number;
|
|
1315
|
+
"entity_type": string;
|
|
1316
|
+
"team_id"?: string | null;
|
|
1317
|
+
"is_default": boolean;
|
|
1318
|
+
"is_active": boolean;
|
|
1319
|
+
"daily_quota": number;
|
|
1320
|
+
"version": number;
|
|
1321
|
+
"can_create_lead": boolean;
|
|
1322
|
+
"actions": ApiListWorkflowsRouteGetApiV1WorkflowResponseItemActions[];
|
|
1323
|
+
"hint"?: string | null;
|
|
1324
|
+
"created_at": string;
|
|
1325
|
+
"updated_at": string;
|
|
1326
|
+
}
|
|
1327
|
+
export type ApiListWorkflowsRouteGetApiV1WorkflowResponse = import("./types.js").CrmApiResponse<ApiListWorkflowsRouteGetApiV1WorkflowResponseItem[]>;
|
|
1284
1328
|
/** Backend request type: CreateWorkflowRequest. */
|
|
1329
|
+
export type ApiCreateWorkflowRoutePostApiV1WorkflowInputActionsKind = "internal" | "external";
|
|
1330
|
+
export interface ApiCreateWorkflowRoutePostApiV1WorkflowInputActions extends JsonObject {
|
|
1331
|
+
"key": string;
|
|
1332
|
+
"kind": ApiCreateWorkflowRoutePostApiV1WorkflowInputActionsKind;
|
|
1333
|
+
"form": string;
|
|
1334
|
+
"required"?: boolean;
|
|
1335
|
+
}
|
|
1285
1336
|
export interface ApiCreateWorkflowRoutePostApiV1WorkflowInput extends JsonObject {
|
|
1286
1337
|
"name": string;
|
|
1287
1338
|
"slug": string;
|
|
1339
|
+
"flags"?: string[];
|
|
1288
1340
|
"acquire_flags": string[];
|
|
1289
1341
|
"priority": number;
|
|
1342
|
+
"entity_type"?: string;
|
|
1343
|
+
"team_id"?: string | null;
|
|
1344
|
+
"is_default"?: boolean;
|
|
1345
|
+
"is_active"?: boolean;
|
|
1346
|
+
"daily_quota"?: number;
|
|
1290
1347
|
"can_create_lead"?: boolean;
|
|
1291
|
-
"actions"?:
|
|
1348
|
+
"actions"?: ApiCreateWorkflowRoutePostApiV1WorkflowInputActions[];
|
|
1292
1349
|
"hint"?: string | null;
|
|
1293
1350
|
}
|
|
1294
1351
|
/** Backend response type: WorkflowResponse. */
|
|
1352
|
+
export type ApiCreateWorkflowRoutePostApiV1WorkflowResponseDataActionsKind = "internal" | "external";
|
|
1353
|
+
export interface ApiCreateWorkflowRoutePostApiV1WorkflowResponseDataActions extends JsonObject {
|
|
1354
|
+
"key": string;
|
|
1355
|
+
"kind": ApiCreateWorkflowRoutePostApiV1WorkflowResponseDataActionsKind;
|
|
1356
|
+
"form": string;
|
|
1357
|
+
"required"?: boolean;
|
|
1358
|
+
}
|
|
1295
1359
|
export interface ApiCreateWorkflowRoutePostApiV1WorkflowResponseData extends JsonObject {
|
|
1296
1360
|
"id": string;
|
|
1297
1361
|
"name": string;
|
|
1298
1362
|
"slug": string;
|
|
1363
|
+
"flags": string[];
|
|
1299
1364
|
"acquire_flags": string[];
|
|
1300
1365
|
"priority": number;
|
|
1366
|
+
"entity_type": string;
|
|
1367
|
+
"team_id"?: string | null;
|
|
1368
|
+
"is_default": boolean;
|
|
1369
|
+
"is_active": boolean;
|
|
1370
|
+
"daily_quota": number;
|
|
1371
|
+
"version": number;
|
|
1301
1372
|
"can_create_lead": boolean;
|
|
1302
|
-
"actions"
|
|
1373
|
+
"actions": ApiCreateWorkflowRoutePostApiV1WorkflowResponseDataActions[];
|
|
1303
1374
|
"hint"?: string | null;
|
|
1304
1375
|
"created_at": string;
|
|
1305
1376
|
"updated_at": string;
|
|
1306
1377
|
}
|
|
1307
1378
|
export type ApiCreateWorkflowRoutePostApiV1WorkflowResponse = import("./types.js").CrmApiResponse<ApiCreateWorkflowRoutePostApiV1WorkflowResponseData>;
|
|
1308
1379
|
/** Backend query type: ListQuery. */
|
|
1309
|
-
export interface
|
|
1380
|
+
export interface ApiListWorkflowNodesCompatRouteGetQuery extends QueryParams {
|
|
1381
|
+
"cursor"?: string | null;
|
|
1382
|
+
"limit"?: number | null;
|
|
1383
|
+
"q"?: string | null;
|
|
1384
|
+
"pipeline_id"?: string | null;
|
|
1385
|
+
"stage_id"?: string | null;
|
|
1386
|
+
"team_id"?: string | null;
|
|
1387
|
+
"owner_user_id"?: string | null;
|
|
1388
|
+
"status"?: string | null;
|
|
1389
|
+
"statuses"?: string | null;
|
|
1390
|
+
"profile_id"?: string | null;
|
|
1391
|
+
"active_from"?: string | null;
|
|
1392
|
+
"active_to"?: string | null;
|
|
1393
|
+
"sort"?: string | null;
|
|
1394
|
+
}
|
|
1395
|
+
/** Backend response type: Vec<WorkflowNodeResponse>. */
|
|
1396
|
+
export interface ApiListWorkflowNodesCompatRouteGetResponseItem extends JsonObject {
|
|
1397
|
+
"id": string;
|
|
1398
|
+
"name": string;
|
|
1399
|
+
"slug": string;
|
|
1400
|
+
"priority": number;
|
|
1401
|
+
"probability": number;
|
|
1402
|
+
"stage_type": string;
|
|
1403
|
+
"sla_minutes"?: number | null;
|
|
1404
|
+
"is_active": boolean;
|
|
1405
|
+
"workflow_id": string;
|
|
1406
|
+
"is_draggable_in": boolean;
|
|
1407
|
+
"is_draggable_out": boolean;
|
|
1408
|
+
"actions"?: JsonValue | null;
|
|
1409
|
+
"auto_win": boolean;
|
|
1410
|
+
"created_at": string;
|
|
1411
|
+
"updated_at": string;
|
|
1412
|
+
}
|
|
1413
|
+
export type ApiListWorkflowNodesCompatRouteGetResponse = import("./types.js").CrmApiResponse<ApiListWorkflowNodesCompatRouteGetResponseItem[]>;
|
|
1414
|
+
/** Backend response type: bool. */
|
|
1415
|
+
export type ApiDeleteWorkflowNodeCompatRouteDeleteResponse = import("./types.js").CrmApiResponse<boolean>;
|
|
1416
|
+
/** Backend response type: WorkflowNodeResponse. */
|
|
1417
|
+
export interface ApiShowWorkflowNodeCompatRouteGetResponseData extends JsonObject {
|
|
1418
|
+
"id": string;
|
|
1419
|
+
"name": string;
|
|
1420
|
+
"slug": string;
|
|
1421
|
+
"priority": number;
|
|
1422
|
+
"probability": number;
|
|
1423
|
+
"stage_type": string;
|
|
1424
|
+
"sla_minutes"?: number | null;
|
|
1425
|
+
"is_active": boolean;
|
|
1426
|
+
"workflow_id": string;
|
|
1427
|
+
"is_draggable_in": boolean;
|
|
1428
|
+
"is_draggable_out": boolean;
|
|
1429
|
+
"actions"?: JsonValue | null;
|
|
1430
|
+
"auto_win": boolean;
|
|
1431
|
+
"created_at": string;
|
|
1432
|
+
"updated_at": string;
|
|
1433
|
+
}
|
|
1434
|
+
export type ApiShowWorkflowNodeCompatRouteGetResponse = import("./types.js").CrmApiResponse<ApiShowWorkflowNodeCompatRouteGetResponseData>;
|
|
1435
|
+
/** Backend request type: UpdateWorkflowNodeRequest. */
|
|
1436
|
+
export interface ApiUpdateWorkflowNodeCompatRoutePatchInput extends JsonObject {
|
|
1437
|
+
"name"?: string | null;
|
|
1438
|
+
"slug"?: string | null;
|
|
1439
|
+
"priority"?: number | null;
|
|
1440
|
+
"probability"?: number | null;
|
|
1441
|
+
"stage_type"?: string | null;
|
|
1442
|
+
"sla_minutes"?: number | null;
|
|
1443
|
+
"is_active"?: boolean | null;
|
|
1444
|
+
"is_draggable_in"?: boolean | null;
|
|
1445
|
+
"is_draggable_out"?: boolean | null;
|
|
1446
|
+
"actions"?: JsonValue | null;
|
|
1447
|
+
"auto_win"?: boolean | null;
|
|
1448
|
+
}
|
|
1449
|
+
/** Backend response type: WorkflowNodeResponse. */
|
|
1450
|
+
export interface ApiUpdateWorkflowNodeCompatRoutePatchResponseData extends JsonObject {
|
|
1451
|
+
"id": string;
|
|
1452
|
+
"name": string;
|
|
1453
|
+
"slug": string;
|
|
1454
|
+
"priority": number;
|
|
1455
|
+
"probability": number;
|
|
1456
|
+
"stage_type": string;
|
|
1457
|
+
"sla_minutes"?: number | null;
|
|
1458
|
+
"is_active": boolean;
|
|
1459
|
+
"workflow_id": string;
|
|
1460
|
+
"is_draggable_in": boolean;
|
|
1461
|
+
"is_draggable_out": boolean;
|
|
1462
|
+
"actions"?: JsonValue | null;
|
|
1463
|
+
"auto_win": boolean;
|
|
1464
|
+
"created_at": string;
|
|
1465
|
+
"updated_at": string;
|
|
1466
|
+
}
|
|
1467
|
+
export type ApiUpdateWorkflowNodeCompatRoutePatchResponse = import("./types.js").CrmApiResponse<ApiUpdateWorkflowNodeCompatRoutePatchResponseData>;
|
|
1468
|
+
/** Backend request type: CreateWorkflowNodeRequest. */
|
|
1469
|
+
export interface ApiCreateWorkflowNodeRoutePostApiV1WorkflowNodeIdInput extends JsonObject {
|
|
1470
|
+
"name": string;
|
|
1471
|
+
"slug": string;
|
|
1472
|
+
"priority": number;
|
|
1473
|
+
"probability"?: number;
|
|
1474
|
+
"stage_type"?: string;
|
|
1475
|
+
"sla_minutes"?: number | null;
|
|
1476
|
+
"is_active"?: boolean;
|
|
1477
|
+
"is_draggable_in"?: boolean;
|
|
1478
|
+
"is_draggable_out"?: boolean;
|
|
1479
|
+
"actions"?: JsonValue | null;
|
|
1480
|
+
"auto_win"?: boolean;
|
|
1481
|
+
}
|
|
1482
|
+
/** Backend response type: WorkflowNodeResponse. */
|
|
1483
|
+
export interface ApiCreateWorkflowNodeRoutePostApiV1WorkflowNodeIdResponseData extends JsonObject {
|
|
1484
|
+
"id": string;
|
|
1485
|
+
"name": string;
|
|
1486
|
+
"slug": string;
|
|
1487
|
+
"priority": number;
|
|
1488
|
+
"probability": number;
|
|
1489
|
+
"stage_type": string;
|
|
1490
|
+
"sla_minutes"?: number | null;
|
|
1491
|
+
"is_active": boolean;
|
|
1492
|
+
"workflow_id": string;
|
|
1493
|
+
"is_draggable_in": boolean;
|
|
1494
|
+
"is_draggable_out": boolean;
|
|
1495
|
+
"actions"?: JsonValue | null;
|
|
1496
|
+
"auto_win": boolean;
|
|
1497
|
+
"created_at": string;
|
|
1498
|
+
"updated_at": string;
|
|
1499
|
+
}
|
|
1500
|
+
export type ApiCreateWorkflowNodeRoutePostApiV1WorkflowNodeIdResponse = import("./types.js").CrmApiResponse<ApiCreateWorkflowNodeRoutePostApiV1WorkflowNodeIdResponseData>;
|
|
1501
|
+
/** Backend request type: UpdateWorkflowNodeRequest. */
|
|
1502
|
+
export interface ApiUpdateWorkflowNodeCompatRoutePutInput extends JsonObject {
|
|
1503
|
+
"name"?: string | null;
|
|
1504
|
+
"slug"?: string | null;
|
|
1505
|
+
"priority"?: number | null;
|
|
1506
|
+
"probability"?: number | null;
|
|
1507
|
+
"stage_type"?: string | null;
|
|
1508
|
+
"sla_minutes"?: number | null;
|
|
1509
|
+
"is_active"?: boolean | null;
|
|
1510
|
+
"is_draggable_in"?: boolean | null;
|
|
1511
|
+
"is_draggable_out"?: boolean | null;
|
|
1512
|
+
"actions"?: JsonValue | null;
|
|
1513
|
+
"auto_win"?: boolean | null;
|
|
1514
|
+
}
|
|
1515
|
+
/** Backend response type: WorkflowNodeResponse. */
|
|
1516
|
+
export interface ApiUpdateWorkflowNodeCompatRoutePutResponseData extends JsonObject {
|
|
1517
|
+
"id": string;
|
|
1518
|
+
"name": string;
|
|
1519
|
+
"slug": string;
|
|
1520
|
+
"priority": number;
|
|
1521
|
+
"probability": number;
|
|
1522
|
+
"stage_type": string;
|
|
1523
|
+
"sla_minutes"?: number | null;
|
|
1524
|
+
"is_active": boolean;
|
|
1525
|
+
"workflow_id": string;
|
|
1526
|
+
"is_draggable_in": boolean;
|
|
1527
|
+
"is_draggable_out": boolean;
|
|
1528
|
+
"actions"?: JsonValue | null;
|
|
1529
|
+
"auto_win": boolean;
|
|
1530
|
+
"created_at": string;
|
|
1531
|
+
"updated_at": string;
|
|
1532
|
+
}
|
|
1533
|
+
export type ApiUpdateWorkflowNodeCompatRoutePutResponse = import("./types.js").CrmApiResponse<ApiUpdateWorkflowNodeCompatRoutePutResponseData>;
|
|
1534
|
+
/** Backend response type: DeletionResult. */
|
|
1535
|
+
export interface ApiDeleteWorkflowRouteDeleteApiV1WorkflowIdResponseData extends JsonObject {
|
|
1536
|
+
"id": string;
|
|
1537
|
+
"deleted": boolean;
|
|
1538
|
+
}
|
|
1539
|
+
export type ApiDeleteWorkflowRouteDeleteApiV1WorkflowIdResponse = import("./types.js").CrmApiResponse<ApiDeleteWorkflowRouteDeleteApiV1WorkflowIdResponseData>;
|
|
1540
|
+
/** Backend response type: WorkflowResponse. */
|
|
1541
|
+
export type ApiShowWorkflowRouteGetApiV1WorkflowIdResponseDataActionsKind = "internal" | "external";
|
|
1542
|
+
export interface ApiShowWorkflowRouteGetApiV1WorkflowIdResponseDataActions extends JsonObject {
|
|
1543
|
+
"key": string;
|
|
1544
|
+
"kind": ApiShowWorkflowRouteGetApiV1WorkflowIdResponseDataActionsKind;
|
|
1545
|
+
"form": string;
|
|
1546
|
+
"required"?: boolean;
|
|
1547
|
+
}
|
|
1548
|
+
export interface ApiShowWorkflowRouteGetApiV1WorkflowIdResponseData extends JsonObject {
|
|
1549
|
+
"id": string;
|
|
1550
|
+
"name": string;
|
|
1551
|
+
"slug": string;
|
|
1552
|
+
"flags": string[];
|
|
1553
|
+
"acquire_flags": string[];
|
|
1554
|
+
"priority": number;
|
|
1555
|
+
"entity_type": string;
|
|
1556
|
+
"team_id"?: string | null;
|
|
1557
|
+
"is_default": boolean;
|
|
1558
|
+
"is_active": boolean;
|
|
1559
|
+
"daily_quota": number;
|
|
1560
|
+
"version": number;
|
|
1561
|
+
"can_create_lead": boolean;
|
|
1562
|
+
"actions": ApiShowWorkflowRouteGetApiV1WorkflowIdResponseDataActions[];
|
|
1563
|
+
"hint"?: string | null;
|
|
1564
|
+
"created_at": string;
|
|
1565
|
+
"updated_at": string;
|
|
1566
|
+
}
|
|
1567
|
+
export type ApiShowWorkflowRouteGetApiV1WorkflowIdResponse = import("./types.js").CrmApiResponse<ApiShowWorkflowRouteGetApiV1WorkflowIdResponseData>;
|
|
1568
|
+
/** Backend request type: UpdateWorkflowRequest. */
|
|
1569
|
+
export interface ApiUpdateWorkflowRoutePatchApiV1WorkflowIdInput extends JsonObject {
|
|
1570
|
+
"name"?: string | null;
|
|
1571
|
+
"slug"?: string | null;
|
|
1572
|
+
"flags"?: string[] | null;
|
|
1573
|
+
"acquire_flags"?: string[] | null;
|
|
1574
|
+
"priority"?: number | null;
|
|
1575
|
+
"entity_type"?: string | null;
|
|
1576
|
+
"team_id"?: string | null;
|
|
1577
|
+
"is_default"?: boolean | null;
|
|
1578
|
+
"is_active"?: boolean | null;
|
|
1579
|
+
"daily_quota"?: number | null;
|
|
1580
|
+
"version"?: number | null;
|
|
1581
|
+
"can_create_lead"?: boolean | null;
|
|
1582
|
+
"actions"?: BackendJson<"WorkflowActionDefinition">[] | null;
|
|
1583
|
+
"hint"?: string | null;
|
|
1584
|
+
}
|
|
1585
|
+
/** Backend response type: WorkflowResponse. */
|
|
1586
|
+
export type ApiUpdateWorkflowRoutePatchApiV1WorkflowIdResponseDataActionsKind = "internal" | "external";
|
|
1587
|
+
export interface ApiUpdateWorkflowRoutePatchApiV1WorkflowIdResponseDataActions extends JsonObject {
|
|
1588
|
+
"key": string;
|
|
1589
|
+
"kind": ApiUpdateWorkflowRoutePatchApiV1WorkflowIdResponseDataActionsKind;
|
|
1590
|
+
"form": string;
|
|
1591
|
+
"required"?: boolean;
|
|
1592
|
+
}
|
|
1593
|
+
export interface ApiUpdateWorkflowRoutePatchApiV1WorkflowIdResponseData extends JsonObject {
|
|
1594
|
+
"id": string;
|
|
1595
|
+
"name": string;
|
|
1596
|
+
"slug": string;
|
|
1597
|
+
"flags": string[];
|
|
1598
|
+
"acquire_flags": string[];
|
|
1599
|
+
"priority": number;
|
|
1600
|
+
"entity_type": string;
|
|
1601
|
+
"team_id"?: string | null;
|
|
1602
|
+
"is_default": boolean;
|
|
1603
|
+
"is_active": boolean;
|
|
1604
|
+
"daily_quota": number;
|
|
1605
|
+
"version": number;
|
|
1606
|
+
"can_create_lead": boolean;
|
|
1607
|
+
"actions": ApiUpdateWorkflowRoutePatchApiV1WorkflowIdResponseDataActions[];
|
|
1608
|
+
"hint"?: string | null;
|
|
1609
|
+
"created_at": string;
|
|
1610
|
+
"updated_at": string;
|
|
1611
|
+
}
|
|
1612
|
+
export type ApiUpdateWorkflowRoutePatchApiV1WorkflowIdResponse = import("./types.js").CrmApiResponse<ApiUpdateWorkflowRoutePatchApiV1WorkflowIdResponseData>;
|
|
1613
|
+
/** Backend request type: UpdateWorkflowRequest. */
|
|
1614
|
+
export interface ApiUpdateWorkflowRoutePutInput extends JsonObject {
|
|
1615
|
+
"name"?: string | null;
|
|
1616
|
+
"slug"?: string | null;
|
|
1617
|
+
"flags"?: string[] | null;
|
|
1618
|
+
"acquire_flags"?: string[] | null;
|
|
1619
|
+
"priority"?: number | null;
|
|
1620
|
+
"entity_type"?: string | null;
|
|
1621
|
+
"team_id"?: string | null;
|
|
1622
|
+
"is_default"?: boolean | null;
|
|
1623
|
+
"is_active"?: boolean | null;
|
|
1624
|
+
"daily_quota"?: number | null;
|
|
1625
|
+
"version"?: number | null;
|
|
1626
|
+
"can_create_lead"?: boolean | null;
|
|
1627
|
+
"actions"?: BackendJson<"WorkflowActionDefinition">[] | null;
|
|
1628
|
+
"hint"?: string | null;
|
|
1629
|
+
}
|
|
1630
|
+
/** Backend response type: WorkflowResponse. */
|
|
1631
|
+
export type ApiUpdateWorkflowRoutePutResponseDataActionsKind = "internal" | "external";
|
|
1632
|
+
export interface ApiUpdateWorkflowRoutePutResponseDataActions extends JsonObject {
|
|
1633
|
+
"key": string;
|
|
1634
|
+
"kind": ApiUpdateWorkflowRoutePutResponseDataActionsKind;
|
|
1635
|
+
"form": string;
|
|
1636
|
+
"required"?: boolean;
|
|
1637
|
+
}
|
|
1638
|
+
export interface ApiUpdateWorkflowRoutePutResponseData extends JsonObject {
|
|
1639
|
+
"id": string;
|
|
1640
|
+
"name": string;
|
|
1641
|
+
"slug": string;
|
|
1642
|
+
"flags": string[];
|
|
1643
|
+
"acquire_flags": string[];
|
|
1644
|
+
"priority": number;
|
|
1645
|
+
"entity_type": string;
|
|
1646
|
+
"team_id"?: string | null;
|
|
1647
|
+
"is_default": boolean;
|
|
1648
|
+
"is_active": boolean;
|
|
1649
|
+
"daily_quota": number;
|
|
1650
|
+
"version": number;
|
|
1651
|
+
"can_create_lead": boolean;
|
|
1652
|
+
"actions": ApiUpdateWorkflowRoutePutResponseDataActions[];
|
|
1653
|
+
"hint"?: string | null;
|
|
1654
|
+
"created_at": string;
|
|
1655
|
+
"updated_at": string;
|
|
1656
|
+
}
|
|
1657
|
+
export type ApiUpdateWorkflowRoutePutResponse = import("./types.js").CrmApiResponse<ApiUpdateWorkflowRoutePutResponseData>;
|
|
1658
|
+
/** Backend query type: ListQuery. */
|
|
1659
|
+
export interface ApiListWorkflowsRouteGetApiV1WorkflowsQuery extends QueryParams {
|
|
1310
1660
|
"cursor"?: string | null;
|
|
1311
1661
|
"limit"?: number | null;
|
|
1312
1662
|
"q"?: string | null;
|
|
@@ -1322,87 +1672,163 @@ export interface ApiListWorkflowsRouteGetQuery extends QueryParams {
|
|
|
1322
1672
|
"sort"?: string | null;
|
|
1323
1673
|
}
|
|
1324
1674
|
/** Backend response type: Vec<WorkflowResponse>. */
|
|
1325
|
-
export
|
|
1675
|
+
export type ApiListWorkflowsRouteGetApiV1WorkflowsResponseItemActionsKind = "internal" | "external";
|
|
1676
|
+
export interface ApiListWorkflowsRouteGetApiV1WorkflowsResponseItemActions extends JsonObject {
|
|
1677
|
+
"key": string;
|
|
1678
|
+
"kind": ApiListWorkflowsRouteGetApiV1WorkflowsResponseItemActionsKind;
|
|
1679
|
+
"form": string;
|
|
1680
|
+
"required"?: boolean;
|
|
1681
|
+
}
|
|
1682
|
+
export interface ApiListWorkflowsRouteGetApiV1WorkflowsResponseItem extends JsonObject {
|
|
1326
1683
|
"id": string;
|
|
1327
1684
|
"name": string;
|
|
1328
1685
|
"slug": string;
|
|
1686
|
+
"flags": string[];
|
|
1329
1687
|
"acquire_flags": string[];
|
|
1330
1688
|
"priority": number;
|
|
1689
|
+
"entity_type": string;
|
|
1690
|
+
"team_id"?: string | null;
|
|
1691
|
+
"is_default": boolean;
|
|
1692
|
+
"is_active": boolean;
|
|
1693
|
+
"daily_quota": number;
|
|
1694
|
+
"version": number;
|
|
1331
1695
|
"can_create_lead": boolean;
|
|
1332
|
-
"actions"
|
|
1696
|
+
"actions": ApiListWorkflowsRouteGetApiV1WorkflowsResponseItemActions[];
|
|
1333
1697
|
"hint"?: string | null;
|
|
1334
1698
|
"created_at": string;
|
|
1335
1699
|
"updated_at": string;
|
|
1336
1700
|
}
|
|
1337
|
-
export type
|
|
1701
|
+
export type ApiListWorkflowsRouteGetApiV1WorkflowsResponse = import("./types.js").CrmApiResponse<ApiListWorkflowsRouteGetApiV1WorkflowsResponseItem[]>;
|
|
1338
1702
|
/** Backend request type: CreateWorkflowRequest. */
|
|
1703
|
+
export type ApiCreateWorkflowRoutePostApiV1WorkflowsInputActionsKind = "internal" | "external";
|
|
1704
|
+
export interface ApiCreateWorkflowRoutePostApiV1WorkflowsInputActions extends JsonObject {
|
|
1705
|
+
"key": string;
|
|
1706
|
+
"kind": ApiCreateWorkflowRoutePostApiV1WorkflowsInputActionsKind;
|
|
1707
|
+
"form": string;
|
|
1708
|
+
"required"?: boolean;
|
|
1709
|
+
}
|
|
1339
1710
|
export interface ApiCreateWorkflowRoutePostApiV1WorkflowsInput extends JsonObject {
|
|
1340
1711
|
"name": string;
|
|
1341
1712
|
"slug": string;
|
|
1713
|
+
"flags"?: string[];
|
|
1342
1714
|
"acquire_flags": string[];
|
|
1343
1715
|
"priority": number;
|
|
1716
|
+
"entity_type"?: string;
|
|
1717
|
+
"team_id"?: string | null;
|
|
1718
|
+
"is_default"?: boolean;
|
|
1719
|
+
"is_active"?: boolean;
|
|
1720
|
+
"daily_quota"?: number;
|
|
1344
1721
|
"can_create_lead"?: boolean;
|
|
1345
|
-
"actions"?:
|
|
1722
|
+
"actions"?: ApiCreateWorkflowRoutePostApiV1WorkflowsInputActions[];
|
|
1346
1723
|
"hint"?: string | null;
|
|
1347
1724
|
}
|
|
1348
1725
|
/** Backend response type: WorkflowResponse. */
|
|
1726
|
+
export type ApiCreateWorkflowRoutePostApiV1WorkflowsResponseDataActionsKind = "internal" | "external";
|
|
1727
|
+
export interface ApiCreateWorkflowRoutePostApiV1WorkflowsResponseDataActions extends JsonObject {
|
|
1728
|
+
"key": string;
|
|
1729
|
+
"kind": ApiCreateWorkflowRoutePostApiV1WorkflowsResponseDataActionsKind;
|
|
1730
|
+
"form": string;
|
|
1731
|
+
"required"?: boolean;
|
|
1732
|
+
}
|
|
1349
1733
|
export interface ApiCreateWorkflowRoutePostApiV1WorkflowsResponseData extends JsonObject {
|
|
1350
1734
|
"id": string;
|
|
1351
1735
|
"name": string;
|
|
1352
1736
|
"slug": string;
|
|
1737
|
+
"flags": string[];
|
|
1353
1738
|
"acquire_flags": string[];
|
|
1354
1739
|
"priority": number;
|
|
1740
|
+
"entity_type": string;
|
|
1741
|
+
"team_id"?: string | null;
|
|
1742
|
+
"is_default": boolean;
|
|
1743
|
+
"is_active": boolean;
|
|
1744
|
+
"daily_quota": number;
|
|
1745
|
+
"version": number;
|
|
1355
1746
|
"can_create_lead": boolean;
|
|
1356
|
-
"actions"
|
|
1747
|
+
"actions": ApiCreateWorkflowRoutePostApiV1WorkflowsResponseDataActions[];
|
|
1357
1748
|
"hint"?: string | null;
|
|
1358
1749
|
"created_at": string;
|
|
1359
1750
|
"updated_at": string;
|
|
1360
1751
|
}
|
|
1361
1752
|
export type ApiCreateWorkflowRoutePostApiV1WorkflowsResponse = import("./types.js").CrmApiResponse<ApiCreateWorkflowRoutePostApiV1WorkflowsResponseData>;
|
|
1362
1753
|
/** Backend response type: DeletionResult. */
|
|
1363
|
-
export interface
|
|
1754
|
+
export interface ApiDeleteWorkflowRouteDeleteApiV1WorkflowsIdResponseData extends JsonObject {
|
|
1364
1755
|
"id": string;
|
|
1365
1756
|
"deleted": boolean;
|
|
1366
1757
|
}
|
|
1367
|
-
export type
|
|
1758
|
+
export type ApiDeleteWorkflowRouteDeleteApiV1WorkflowsIdResponse = import("./types.js").CrmApiResponse<ApiDeleteWorkflowRouteDeleteApiV1WorkflowsIdResponseData>;
|
|
1368
1759
|
/** Backend response type: WorkflowResponse. */
|
|
1369
|
-
export
|
|
1760
|
+
export type ApiShowWorkflowRouteGetApiV1WorkflowsIdResponseDataActionsKind = "internal" | "external";
|
|
1761
|
+
export interface ApiShowWorkflowRouteGetApiV1WorkflowsIdResponseDataActions extends JsonObject {
|
|
1762
|
+
"key": string;
|
|
1763
|
+
"kind": ApiShowWorkflowRouteGetApiV1WorkflowsIdResponseDataActionsKind;
|
|
1764
|
+
"form": string;
|
|
1765
|
+
"required"?: boolean;
|
|
1766
|
+
}
|
|
1767
|
+
export interface ApiShowWorkflowRouteGetApiV1WorkflowsIdResponseData extends JsonObject {
|
|
1370
1768
|
"id": string;
|
|
1371
1769
|
"name": string;
|
|
1372
1770
|
"slug": string;
|
|
1771
|
+
"flags": string[];
|
|
1373
1772
|
"acquire_flags": string[];
|
|
1374
1773
|
"priority": number;
|
|
1774
|
+
"entity_type": string;
|
|
1775
|
+
"team_id"?: string | null;
|
|
1776
|
+
"is_default": boolean;
|
|
1777
|
+
"is_active": boolean;
|
|
1778
|
+
"daily_quota": number;
|
|
1779
|
+
"version": number;
|
|
1375
1780
|
"can_create_lead": boolean;
|
|
1376
|
-
"actions"
|
|
1781
|
+
"actions": ApiShowWorkflowRouteGetApiV1WorkflowsIdResponseDataActions[];
|
|
1377
1782
|
"hint"?: string | null;
|
|
1378
1783
|
"created_at": string;
|
|
1379
1784
|
"updated_at": string;
|
|
1380
1785
|
}
|
|
1381
|
-
export type
|
|
1786
|
+
export type ApiShowWorkflowRouteGetApiV1WorkflowsIdResponse = import("./types.js").CrmApiResponse<ApiShowWorkflowRouteGetApiV1WorkflowsIdResponseData>;
|
|
1382
1787
|
/** Backend request type: UpdateWorkflowRequest. */
|
|
1383
|
-
export interface
|
|
1788
|
+
export interface ApiUpdateWorkflowRoutePatchApiV1WorkflowsIdInput extends JsonObject {
|
|
1384
1789
|
"name"?: string | null;
|
|
1385
1790
|
"slug"?: string | null;
|
|
1791
|
+
"flags"?: string[] | null;
|
|
1386
1792
|
"acquire_flags"?: string[] | null;
|
|
1387
1793
|
"priority"?: number | null;
|
|
1794
|
+
"entity_type"?: string | null;
|
|
1795
|
+
"team_id"?: string | null;
|
|
1796
|
+
"is_default"?: boolean | null;
|
|
1797
|
+
"is_active"?: boolean | null;
|
|
1798
|
+
"daily_quota"?: number | null;
|
|
1799
|
+
"version"?: number | null;
|
|
1388
1800
|
"can_create_lead"?: boolean | null;
|
|
1389
|
-
"actions"?:
|
|
1801
|
+
"actions"?: BackendJson<"WorkflowActionDefinition">[] | null;
|
|
1390
1802
|
"hint"?: string | null;
|
|
1391
1803
|
}
|
|
1392
1804
|
/** Backend response type: WorkflowResponse. */
|
|
1393
|
-
export
|
|
1805
|
+
export type ApiUpdateWorkflowRoutePatchApiV1WorkflowsIdResponseDataActionsKind = "internal" | "external";
|
|
1806
|
+
export interface ApiUpdateWorkflowRoutePatchApiV1WorkflowsIdResponseDataActions extends JsonObject {
|
|
1807
|
+
"key": string;
|
|
1808
|
+
"kind": ApiUpdateWorkflowRoutePatchApiV1WorkflowsIdResponseDataActionsKind;
|
|
1809
|
+
"form": string;
|
|
1810
|
+
"required"?: boolean;
|
|
1811
|
+
}
|
|
1812
|
+
export interface ApiUpdateWorkflowRoutePatchApiV1WorkflowsIdResponseData extends JsonObject {
|
|
1394
1813
|
"id": string;
|
|
1395
1814
|
"name": string;
|
|
1396
1815
|
"slug": string;
|
|
1816
|
+
"flags": string[];
|
|
1397
1817
|
"acquire_flags": string[];
|
|
1398
1818
|
"priority": number;
|
|
1819
|
+
"entity_type": string;
|
|
1820
|
+
"team_id"?: string | null;
|
|
1821
|
+
"is_default": boolean;
|
|
1822
|
+
"is_active": boolean;
|
|
1823
|
+
"daily_quota": number;
|
|
1824
|
+
"version": number;
|
|
1399
1825
|
"can_create_lead": boolean;
|
|
1400
|
-
"actions"
|
|
1826
|
+
"actions": ApiUpdateWorkflowRoutePatchApiV1WorkflowsIdResponseDataActions[];
|
|
1401
1827
|
"hint"?: string | null;
|
|
1402
1828
|
"created_at": string;
|
|
1403
1829
|
"updated_at": string;
|
|
1404
1830
|
}
|
|
1405
|
-
export type
|
|
1831
|
+
export type ApiUpdateWorkflowRoutePatchApiV1WorkflowsIdResponse = import("./types.js").CrmApiResponse<ApiUpdateWorkflowRoutePatchApiV1WorkflowsIdResponseData>;
|
|
1406
1832
|
/** Backend response type: Vec<WorkflowAssignment>. */
|
|
1407
1833
|
export interface ApiListWorkflowAssignmentsGetResponseItem extends JsonObject {
|
|
1408
1834
|
"id": string;
|
|
@@ -1456,6 +1882,10 @@ export interface ApiListWorkflowNodesRouteGetResponseItem extends JsonObject {
|
|
|
1456
1882
|
"name": string;
|
|
1457
1883
|
"slug": string;
|
|
1458
1884
|
"priority": number;
|
|
1885
|
+
"probability": number;
|
|
1886
|
+
"stage_type": string;
|
|
1887
|
+
"sla_minutes"?: number | null;
|
|
1888
|
+
"is_active": boolean;
|
|
1459
1889
|
"workflow_id": string;
|
|
1460
1890
|
"is_draggable_in": boolean;
|
|
1461
1891
|
"is_draggable_out": boolean;
|
|
@@ -1466,21 +1896,29 @@ export interface ApiListWorkflowNodesRouteGetResponseItem extends JsonObject {
|
|
|
1466
1896
|
}
|
|
1467
1897
|
export type ApiListWorkflowNodesRouteGetResponse = import("./types.js").CrmApiResponse<ApiListWorkflowNodesRouteGetResponseItem[]>;
|
|
1468
1898
|
/** Backend request type: CreateWorkflowNodeRequest. */
|
|
1469
|
-
export interface
|
|
1899
|
+
export interface ApiCreateWorkflowNodeRoutePostApiV1WorkflowsWorkflowIdNodesInput extends JsonObject {
|
|
1470
1900
|
"name": string;
|
|
1471
1901
|
"slug": string;
|
|
1472
1902
|
"priority": number;
|
|
1903
|
+
"probability"?: number;
|
|
1904
|
+
"stage_type"?: string;
|
|
1905
|
+
"sla_minutes"?: number | null;
|
|
1906
|
+
"is_active"?: boolean;
|
|
1473
1907
|
"is_draggable_in"?: boolean;
|
|
1474
1908
|
"is_draggable_out"?: boolean;
|
|
1475
1909
|
"actions"?: JsonValue | null;
|
|
1476
1910
|
"auto_win"?: boolean;
|
|
1477
1911
|
}
|
|
1478
1912
|
/** Backend response type: WorkflowNodeResponse. */
|
|
1479
|
-
export interface
|
|
1913
|
+
export interface ApiCreateWorkflowNodeRoutePostApiV1WorkflowsWorkflowIdNodesResponseData extends JsonObject {
|
|
1480
1914
|
"id": string;
|
|
1481
1915
|
"name": string;
|
|
1482
1916
|
"slug": string;
|
|
1483
1917
|
"priority": number;
|
|
1918
|
+
"probability": number;
|
|
1919
|
+
"stage_type": string;
|
|
1920
|
+
"sla_minutes"?: number | null;
|
|
1921
|
+
"is_active": boolean;
|
|
1484
1922
|
"workflow_id": string;
|
|
1485
1923
|
"is_draggable_in": boolean;
|
|
1486
1924
|
"is_draggable_out": boolean;
|
|
@@ -1489,7 +1927,7 @@ export interface ApiCreateWorkflowNodeRoutePostResponseData extends JsonObject {
|
|
|
1489
1927
|
"created_at": string;
|
|
1490
1928
|
"updated_at": string;
|
|
1491
1929
|
}
|
|
1492
|
-
export type
|
|
1930
|
+
export type ApiCreateWorkflowNodeRoutePostApiV1WorkflowsWorkflowIdNodesResponse = import("./types.js").CrmApiResponse<ApiCreateWorkflowNodeRoutePostApiV1WorkflowsWorkflowIdNodesResponseData>;
|
|
1493
1931
|
/** Backend response type: DeletionResult. */
|
|
1494
1932
|
export interface ApiDeleteWorkflowNodeRouteDeleteResponseData extends JsonObject {
|
|
1495
1933
|
"id": string;
|
|
@@ -1502,6 +1940,10 @@ export interface ApiShowWorkflowNodeRouteGetResponseData extends JsonObject {
|
|
|
1502
1940
|
"name": string;
|
|
1503
1941
|
"slug": string;
|
|
1504
1942
|
"priority": number;
|
|
1943
|
+
"probability": number;
|
|
1944
|
+
"stage_type": string;
|
|
1945
|
+
"sla_minutes"?: number | null;
|
|
1946
|
+
"is_active": boolean;
|
|
1505
1947
|
"workflow_id": string;
|
|
1506
1948
|
"is_draggable_in": boolean;
|
|
1507
1949
|
"is_draggable_out": boolean;
|
|
@@ -1516,6 +1958,10 @@ export interface ApiUpdateWorkflowNodeRoutePatchInput extends JsonObject {
|
|
|
1516
1958
|
"name"?: string | null;
|
|
1517
1959
|
"slug"?: string | null;
|
|
1518
1960
|
"priority"?: number | null;
|
|
1961
|
+
"probability"?: number | null;
|
|
1962
|
+
"stage_type"?: string | null;
|
|
1963
|
+
"sla_minutes"?: number | null;
|
|
1964
|
+
"is_active"?: boolean | null;
|
|
1519
1965
|
"is_draggable_in"?: boolean | null;
|
|
1520
1966
|
"is_draggable_out"?: boolean | null;
|
|
1521
1967
|
"actions"?: JsonValue | null;
|
|
@@ -1527,6 +1973,10 @@ export interface ApiUpdateWorkflowNodeRoutePatchResponseData extends JsonObject
|
|
|
1527
1973
|
"name": string;
|
|
1528
1974
|
"slug": string;
|
|
1529
1975
|
"priority": number;
|
|
1976
|
+
"probability": number;
|
|
1977
|
+
"stage_type": string;
|
|
1978
|
+
"sla_minutes"?: number | null;
|
|
1979
|
+
"is_active": boolean;
|
|
1530
1980
|
"workflow_id": string;
|
|
1531
1981
|
"is_draggable_in": boolean;
|
|
1532
1982
|
"is_draggable_out": boolean;
|
|
@@ -1536,22 +1986,32 @@ export interface ApiUpdateWorkflowNodeRoutePatchResponseData extends JsonObject
|
|
|
1536
1986
|
"updated_at": string;
|
|
1537
1987
|
}
|
|
1538
1988
|
export type ApiUpdateWorkflowNodeRoutePatchResponse = import("./types.js").CrmApiResponse<ApiUpdateWorkflowNodeRoutePatchResponseData>;
|
|
1539
|
-
/** Backend response type: Vec<
|
|
1989
|
+
/** Backend response type: Vec<WorkflowResponse>. */
|
|
1990
|
+
export type ApiMemberWorkflowsGetResponseItemActionsKind = "internal" | "external";
|
|
1991
|
+
export interface ApiMemberWorkflowsGetResponseItemActions extends JsonObject {
|
|
1992
|
+
"key": string;
|
|
1993
|
+
"kind": ApiMemberWorkflowsGetResponseItemActionsKind;
|
|
1994
|
+
"form": string;
|
|
1995
|
+
"required"?: boolean;
|
|
1996
|
+
}
|
|
1540
1997
|
export interface ApiMemberWorkflowsGetResponseItem extends JsonObject {
|
|
1541
1998
|
"id": string;
|
|
1542
1999
|
"name": string;
|
|
1543
2000
|
"slug": string;
|
|
2001
|
+
"flags": string[];
|
|
2002
|
+
"acquire_flags": string[];
|
|
2003
|
+
"priority": number;
|
|
1544
2004
|
"entity_type": string;
|
|
1545
2005
|
"team_id"?: string | null;
|
|
1546
2006
|
"is_default": boolean;
|
|
1547
2007
|
"is_active": boolean;
|
|
1548
|
-
"priority": number;
|
|
1549
|
-
"hint"?: string | null;
|
|
1550
2008
|
"daily_quota": number;
|
|
1551
|
-
"can_create_lead": boolean;
|
|
1552
|
-
"acquire_flags": BackendJson<"JsonValue">;
|
|
1553
|
-
"actions": BackendJson<"JsonValue">;
|
|
1554
2009
|
"version": number;
|
|
2010
|
+
"can_create_lead": boolean;
|
|
2011
|
+
"actions": ApiMemberWorkflowsGetResponseItemActions[];
|
|
2012
|
+
"hint"?: string | null;
|
|
2013
|
+
"created_at": string;
|
|
2014
|
+
"updated_at": string;
|
|
1555
2015
|
}
|
|
1556
2016
|
export type ApiMemberWorkflowsGetResponse = import("./types.js").CrmApiResponse<ApiMemberWorkflowsGetResponseItem[]>;
|
|
1557
2017
|
/** Backend query type: super::types::WorklogListQuery. */
|