@faiber/faiber-crm 0.11.2 → 0.11.4
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 +16 -4
- package/dist/.tsbuildinfo +1 -1
- package/dist/index.d.ts +27 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +33 -2
- package/dist/index.js.map +1 -1
- package/dist/operations.d.ts +203 -2
- package/dist/operations.d.ts.map +1 -1
- package/dist/operations.js +245 -2
- package/dist/operations.js.map +1 -1
- package/dist/operations.types.d.ts +543 -14
- package/dist/operations.types.d.ts.map +1 -1
- package/dist/types.d.ts +7 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -886,10 +886,23 @@ export interface ApiAssignLeadPatchResponseData extends JsonObject {
|
|
|
886
886
|
}
|
|
887
887
|
export type ApiAssignLeadPatchResponse = import("./types.js").CrmApiResponse<ApiAssignLeadPatchResponseData>;
|
|
888
888
|
/** Backend response type: Vec<LeadHistoryEvent>. */
|
|
889
|
+
export interface ApiLeadHistoryGetResponseItemProfile extends JsonObject {
|
|
890
|
+
"id": string;
|
|
891
|
+
"user_id"?: string | null;
|
|
892
|
+
"email"?: string | null;
|
|
893
|
+
"phone"?: string | null;
|
|
894
|
+
"national_code"?: string | null;
|
|
895
|
+
"first_name"?: JsonValue | null;
|
|
896
|
+
"last_name"?: JsonValue | null;
|
|
897
|
+
"status"?: string | null;
|
|
898
|
+
"employee_type"?: string | null;
|
|
899
|
+
"avatar"?: string | null;
|
|
900
|
+
}
|
|
889
901
|
export interface ApiLeadHistoryGetResponseItem extends JsonObject {
|
|
890
902
|
"id": string;
|
|
891
903
|
"event_type": string;
|
|
892
904
|
"actor_user_id"?: string | null;
|
|
905
|
+
"profile"?: ApiLeadHistoryGetResponseItemProfile | null;
|
|
893
906
|
"data": BackendJson<"JsonValue">;
|
|
894
907
|
"occurred_at": string;
|
|
895
908
|
}
|
|
@@ -1268,30 +1281,440 @@ export interface ApiRemoveTeamMemberDeleteResponseData extends JsonObject {
|
|
|
1268
1281
|
"updated_at": string;
|
|
1269
1282
|
}
|
|
1270
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
|
+
"can_create_lead": boolean;
|
|
1316
|
+
"actions": ApiListWorkflowsRouteGetApiV1WorkflowResponseItemActions[];
|
|
1317
|
+
"hint"?: string | null;
|
|
1318
|
+
"created_at": string;
|
|
1319
|
+
"updated_at": string;
|
|
1320
|
+
}
|
|
1321
|
+
export type ApiListWorkflowsRouteGetApiV1WorkflowResponse = import("./types.js").CrmApiResponse<ApiListWorkflowsRouteGetApiV1WorkflowResponseItem[]>;
|
|
1271
1322
|
/** Backend request type: CreateWorkflowRequest. */
|
|
1272
|
-
export
|
|
1323
|
+
export type ApiCreateWorkflowRoutePostApiV1WorkflowInputActionsKind = "internal" | "external";
|
|
1324
|
+
export interface ApiCreateWorkflowRoutePostApiV1WorkflowInputActions extends JsonObject {
|
|
1325
|
+
"key": string;
|
|
1326
|
+
"kind": ApiCreateWorkflowRoutePostApiV1WorkflowInputActionsKind;
|
|
1327
|
+
"form": string;
|
|
1328
|
+
"required"?: boolean;
|
|
1329
|
+
}
|
|
1330
|
+
export interface ApiCreateWorkflowRoutePostApiV1WorkflowInput extends JsonObject {
|
|
1273
1331
|
"name": string;
|
|
1274
1332
|
"slug": string;
|
|
1333
|
+
"flags"?: string[];
|
|
1275
1334
|
"acquire_flags": string[];
|
|
1276
1335
|
"priority": number;
|
|
1277
1336
|
"can_create_lead"?: boolean;
|
|
1278
|
-
"actions"?:
|
|
1337
|
+
"actions"?: ApiCreateWorkflowRoutePostApiV1WorkflowInputActions[];
|
|
1279
1338
|
"hint"?: string | null;
|
|
1280
1339
|
}
|
|
1281
1340
|
/** Backend response type: WorkflowResponse. */
|
|
1282
|
-
export
|
|
1341
|
+
export type ApiCreateWorkflowRoutePostApiV1WorkflowResponseDataActionsKind = "internal" | "external";
|
|
1342
|
+
export interface ApiCreateWorkflowRoutePostApiV1WorkflowResponseDataActions extends JsonObject {
|
|
1343
|
+
"key": string;
|
|
1344
|
+
"kind": ApiCreateWorkflowRoutePostApiV1WorkflowResponseDataActionsKind;
|
|
1345
|
+
"form": string;
|
|
1346
|
+
"required"?: boolean;
|
|
1347
|
+
}
|
|
1348
|
+
export interface ApiCreateWorkflowRoutePostApiV1WorkflowResponseData extends JsonObject {
|
|
1283
1349
|
"id": string;
|
|
1284
1350
|
"name": string;
|
|
1285
1351
|
"slug": string;
|
|
1352
|
+
"flags": string[];
|
|
1286
1353
|
"acquire_flags": string[];
|
|
1287
1354
|
"priority": number;
|
|
1288
1355
|
"can_create_lead": boolean;
|
|
1356
|
+
"actions": ApiCreateWorkflowRoutePostApiV1WorkflowResponseDataActions[];
|
|
1357
|
+
"hint"?: string | null;
|
|
1358
|
+
"created_at": string;
|
|
1359
|
+
"updated_at": string;
|
|
1360
|
+
}
|
|
1361
|
+
export type ApiCreateWorkflowRoutePostApiV1WorkflowResponse = import("./types.js").CrmApiResponse<ApiCreateWorkflowRoutePostApiV1WorkflowResponseData>;
|
|
1362
|
+
/** Backend query type: ListQuery. */
|
|
1363
|
+
export interface ApiListWorkflowNodesCompatRouteGetQuery extends QueryParams {
|
|
1364
|
+
"cursor"?: string | null;
|
|
1365
|
+
"limit"?: number | null;
|
|
1366
|
+
"q"?: string | null;
|
|
1367
|
+
"pipeline_id"?: string | null;
|
|
1368
|
+
"stage_id"?: string | null;
|
|
1369
|
+
"team_id"?: string | null;
|
|
1370
|
+
"owner_user_id"?: string | null;
|
|
1371
|
+
"status"?: string | null;
|
|
1372
|
+
"statuses"?: string | null;
|
|
1373
|
+
"profile_id"?: string | null;
|
|
1374
|
+
"active_from"?: string | null;
|
|
1375
|
+
"active_to"?: string | null;
|
|
1376
|
+
"sort"?: string | null;
|
|
1377
|
+
}
|
|
1378
|
+
/** Backend response type: Vec<WorkflowNodeResponse>. */
|
|
1379
|
+
export interface ApiListWorkflowNodesCompatRouteGetResponseItem extends JsonObject {
|
|
1380
|
+
"id": string;
|
|
1381
|
+
"name": string;
|
|
1382
|
+
"slug": string;
|
|
1383
|
+
"priority": number;
|
|
1384
|
+
"workflow_id": string;
|
|
1385
|
+
"is_draggable_in": boolean;
|
|
1386
|
+
"is_draggable_out": boolean;
|
|
1387
|
+
"actions"?: JsonValue | null;
|
|
1388
|
+
"auto_win": boolean;
|
|
1389
|
+
"created_at": string;
|
|
1390
|
+
"updated_at": string;
|
|
1391
|
+
}
|
|
1392
|
+
export type ApiListWorkflowNodesCompatRouteGetResponse = import("./types.js").CrmApiResponse<ApiListWorkflowNodesCompatRouteGetResponseItem[]>;
|
|
1393
|
+
/** Backend response type: bool. */
|
|
1394
|
+
export type ApiDeleteWorkflowNodeCompatRouteDeleteResponse = import("./types.js").CrmApiResponse<boolean>;
|
|
1395
|
+
/** Backend response type: WorkflowNodeResponse. */
|
|
1396
|
+
export interface ApiShowWorkflowNodeCompatRouteGetResponseData extends JsonObject {
|
|
1397
|
+
"id": string;
|
|
1398
|
+
"name": string;
|
|
1399
|
+
"slug": string;
|
|
1400
|
+
"priority": number;
|
|
1401
|
+
"workflow_id": string;
|
|
1402
|
+
"is_draggable_in": boolean;
|
|
1403
|
+
"is_draggable_out": boolean;
|
|
1404
|
+
"actions"?: JsonValue | null;
|
|
1405
|
+
"auto_win": boolean;
|
|
1406
|
+
"created_at": string;
|
|
1407
|
+
"updated_at": string;
|
|
1408
|
+
}
|
|
1409
|
+
export type ApiShowWorkflowNodeCompatRouteGetResponse = import("./types.js").CrmApiResponse<ApiShowWorkflowNodeCompatRouteGetResponseData>;
|
|
1410
|
+
/** Backend request type: UpdateWorkflowNodeRequest. */
|
|
1411
|
+
export interface ApiUpdateWorkflowNodeCompatRoutePatchInput extends JsonObject {
|
|
1412
|
+
"name"?: string | null;
|
|
1413
|
+
"slug"?: string | null;
|
|
1414
|
+
"priority"?: number | null;
|
|
1415
|
+
"is_draggable_in"?: boolean | null;
|
|
1416
|
+
"is_draggable_out"?: boolean | null;
|
|
1417
|
+
"actions"?: JsonValue | null;
|
|
1418
|
+
"auto_win"?: boolean | null;
|
|
1419
|
+
}
|
|
1420
|
+
/** Backend response type: WorkflowNodeResponse. */
|
|
1421
|
+
export interface ApiUpdateWorkflowNodeCompatRoutePatchResponseData extends JsonObject {
|
|
1422
|
+
"id": string;
|
|
1423
|
+
"name": string;
|
|
1424
|
+
"slug": string;
|
|
1425
|
+
"priority": number;
|
|
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 ApiUpdateWorkflowNodeCompatRoutePatchResponse = import("./types.js").CrmApiResponse<ApiUpdateWorkflowNodeCompatRoutePatchResponseData>;
|
|
1435
|
+
/** Backend request type: CreateWorkflowNodeRequest. */
|
|
1436
|
+
export interface ApiCreateWorkflowNodeRoutePostApiV1WorkflowNodeIdInput extends JsonObject {
|
|
1437
|
+
"name": string;
|
|
1438
|
+
"slug": string;
|
|
1439
|
+
"priority": number;
|
|
1440
|
+
"is_draggable_in"?: boolean;
|
|
1441
|
+
"is_draggable_out"?: boolean;
|
|
1442
|
+
"actions"?: JsonValue | null;
|
|
1443
|
+
"auto_win"?: boolean;
|
|
1444
|
+
}
|
|
1445
|
+
/** Backend response type: WorkflowNodeResponse. */
|
|
1446
|
+
export interface ApiCreateWorkflowNodeRoutePostApiV1WorkflowNodeIdResponseData extends JsonObject {
|
|
1447
|
+
"id": string;
|
|
1448
|
+
"name": string;
|
|
1449
|
+
"slug": string;
|
|
1450
|
+
"priority": number;
|
|
1451
|
+
"workflow_id": string;
|
|
1452
|
+
"is_draggable_in": boolean;
|
|
1453
|
+
"is_draggable_out": boolean;
|
|
1289
1454
|
"actions"?: JsonValue | null;
|
|
1455
|
+
"auto_win": boolean;
|
|
1456
|
+
"created_at": string;
|
|
1457
|
+
"updated_at": string;
|
|
1458
|
+
}
|
|
1459
|
+
export type ApiCreateWorkflowNodeRoutePostApiV1WorkflowNodeIdResponse = import("./types.js").CrmApiResponse<ApiCreateWorkflowNodeRoutePostApiV1WorkflowNodeIdResponseData>;
|
|
1460
|
+
/** Backend request type: UpdateWorkflowNodeRequest. */
|
|
1461
|
+
export interface ApiUpdateWorkflowNodeCompatRoutePutInput extends JsonObject {
|
|
1462
|
+
"name"?: string | null;
|
|
1463
|
+
"slug"?: string | null;
|
|
1464
|
+
"priority"?: number | null;
|
|
1465
|
+
"is_draggable_in"?: boolean | null;
|
|
1466
|
+
"is_draggable_out"?: boolean | null;
|
|
1467
|
+
"actions"?: JsonValue | null;
|
|
1468
|
+
"auto_win"?: boolean | null;
|
|
1469
|
+
}
|
|
1470
|
+
/** Backend response type: WorkflowNodeResponse. */
|
|
1471
|
+
export interface ApiUpdateWorkflowNodeCompatRoutePutResponseData extends JsonObject {
|
|
1472
|
+
"id": string;
|
|
1473
|
+
"name": string;
|
|
1474
|
+
"slug": string;
|
|
1475
|
+
"priority": number;
|
|
1476
|
+
"workflow_id": string;
|
|
1477
|
+
"is_draggable_in": boolean;
|
|
1478
|
+
"is_draggable_out": boolean;
|
|
1479
|
+
"actions"?: JsonValue | null;
|
|
1480
|
+
"auto_win": boolean;
|
|
1481
|
+
"created_at": string;
|
|
1482
|
+
"updated_at": string;
|
|
1483
|
+
}
|
|
1484
|
+
export type ApiUpdateWorkflowNodeCompatRoutePutResponse = import("./types.js").CrmApiResponse<ApiUpdateWorkflowNodeCompatRoutePutResponseData>;
|
|
1485
|
+
/** Backend response type: DeletionResult. */
|
|
1486
|
+
export interface ApiDeleteWorkflowRouteDeleteApiV1WorkflowIdResponseData extends JsonObject {
|
|
1487
|
+
"id": string;
|
|
1488
|
+
"deleted": boolean;
|
|
1489
|
+
}
|
|
1490
|
+
export type ApiDeleteWorkflowRouteDeleteApiV1WorkflowIdResponse = import("./types.js").CrmApiResponse<ApiDeleteWorkflowRouteDeleteApiV1WorkflowIdResponseData>;
|
|
1491
|
+
/** Backend response type: WorkflowResponse. */
|
|
1492
|
+
export type ApiShowWorkflowRouteGetApiV1WorkflowIdResponseDataActionsKind = "internal" | "external";
|
|
1493
|
+
export interface ApiShowWorkflowRouteGetApiV1WorkflowIdResponseDataActions extends JsonObject {
|
|
1494
|
+
"key": string;
|
|
1495
|
+
"kind": ApiShowWorkflowRouteGetApiV1WorkflowIdResponseDataActionsKind;
|
|
1496
|
+
"form": string;
|
|
1497
|
+
"required"?: boolean;
|
|
1498
|
+
}
|
|
1499
|
+
export interface ApiShowWorkflowRouteGetApiV1WorkflowIdResponseData extends JsonObject {
|
|
1500
|
+
"id": string;
|
|
1501
|
+
"name": string;
|
|
1502
|
+
"slug": string;
|
|
1503
|
+
"flags": string[];
|
|
1504
|
+
"acquire_flags": string[];
|
|
1505
|
+
"priority": number;
|
|
1506
|
+
"can_create_lead": boolean;
|
|
1507
|
+
"actions": ApiShowWorkflowRouteGetApiV1WorkflowIdResponseDataActions[];
|
|
1290
1508
|
"hint"?: string | null;
|
|
1291
1509
|
"created_at": string;
|
|
1292
1510
|
"updated_at": string;
|
|
1293
1511
|
}
|
|
1294
|
-
export type
|
|
1512
|
+
export type ApiShowWorkflowRouteGetApiV1WorkflowIdResponse = import("./types.js").CrmApiResponse<ApiShowWorkflowRouteGetApiV1WorkflowIdResponseData>;
|
|
1513
|
+
/** Backend request type: UpdateWorkflowRequest. */
|
|
1514
|
+
export interface ApiUpdateWorkflowRoutePatchApiV1WorkflowIdInput extends JsonObject {
|
|
1515
|
+
"name"?: string | null;
|
|
1516
|
+
"slug"?: string | null;
|
|
1517
|
+
"flags"?: string[] | null;
|
|
1518
|
+
"acquire_flags"?: string[] | null;
|
|
1519
|
+
"priority"?: number | null;
|
|
1520
|
+
"can_create_lead"?: boolean | null;
|
|
1521
|
+
"actions"?: BackendJson<"WorkflowActionDefinition">[] | null;
|
|
1522
|
+
"hint"?: string | null;
|
|
1523
|
+
}
|
|
1524
|
+
/** Backend response type: WorkflowResponse. */
|
|
1525
|
+
export type ApiUpdateWorkflowRoutePatchApiV1WorkflowIdResponseDataActionsKind = "internal" | "external";
|
|
1526
|
+
export interface ApiUpdateWorkflowRoutePatchApiV1WorkflowIdResponseDataActions extends JsonObject {
|
|
1527
|
+
"key": string;
|
|
1528
|
+
"kind": ApiUpdateWorkflowRoutePatchApiV1WorkflowIdResponseDataActionsKind;
|
|
1529
|
+
"form": string;
|
|
1530
|
+
"required"?: boolean;
|
|
1531
|
+
}
|
|
1532
|
+
export interface ApiUpdateWorkflowRoutePatchApiV1WorkflowIdResponseData extends JsonObject {
|
|
1533
|
+
"id": string;
|
|
1534
|
+
"name": string;
|
|
1535
|
+
"slug": string;
|
|
1536
|
+
"flags": string[];
|
|
1537
|
+
"acquire_flags": string[];
|
|
1538
|
+
"priority": number;
|
|
1539
|
+
"can_create_lead": boolean;
|
|
1540
|
+
"actions": ApiUpdateWorkflowRoutePatchApiV1WorkflowIdResponseDataActions[];
|
|
1541
|
+
"hint"?: string | null;
|
|
1542
|
+
"created_at": string;
|
|
1543
|
+
"updated_at": string;
|
|
1544
|
+
}
|
|
1545
|
+
export type ApiUpdateWorkflowRoutePatchApiV1WorkflowIdResponse = import("./types.js").CrmApiResponse<ApiUpdateWorkflowRoutePatchApiV1WorkflowIdResponseData>;
|
|
1546
|
+
/** Backend request type: UpdateWorkflowRequest. */
|
|
1547
|
+
export interface ApiUpdateWorkflowRoutePutInput extends JsonObject {
|
|
1548
|
+
"name"?: string | null;
|
|
1549
|
+
"slug"?: string | null;
|
|
1550
|
+
"flags"?: string[] | null;
|
|
1551
|
+
"acquire_flags"?: string[] | null;
|
|
1552
|
+
"priority"?: number | null;
|
|
1553
|
+
"can_create_lead"?: boolean | null;
|
|
1554
|
+
"actions"?: BackendJson<"WorkflowActionDefinition">[] | null;
|
|
1555
|
+
"hint"?: string | null;
|
|
1556
|
+
}
|
|
1557
|
+
/** Backend response type: WorkflowResponse. */
|
|
1558
|
+
export type ApiUpdateWorkflowRoutePutResponseDataActionsKind = "internal" | "external";
|
|
1559
|
+
export interface ApiUpdateWorkflowRoutePutResponseDataActions extends JsonObject {
|
|
1560
|
+
"key": string;
|
|
1561
|
+
"kind": ApiUpdateWorkflowRoutePutResponseDataActionsKind;
|
|
1562
|
+
"form": string;
|
|
1563
|
+
"required"?: boolean;
|
|
1564
|
+
}
|
|
1565
|
+
export interface ApiUpdateWorkflowRoutePutResponseData extends JsonObject {
|
|
1566
|
+
"id": string;
|
|
1567
|
+
"name": string;
|
|
1568
|
+
"slug": string;
|
|
1569
|
+
"flags": string[];
|
|
1570
|
+
"acquire_flags": string[];
|
|
1571
|
+
"priority": number;
|
|
1572
|
+
"can_create_lead": boolean;
|
|
1573
|
+
"actions": ApiUpdateWorkflowRoutePutResponseDataActions[];
|
|
1574
|
+
"hint"?: string | null;
|
|
1575
|
+
"created_at": string;
|
|
1576
|
+
"updated_at": string;
|
|
1577
|
+
}
|
|
1578
|
+
export type ApiUpdateWorkflowRoutePutResponse = import("./types.js").CrmApiResponse<ApiUpdateWorkflowRoutePutResponseData>;
|
|
1579
|
+
/** Backend query type: ListQuery. */
|
|
1580
|
+
export interface ApiListWorkflowsRouteGetApiV1WorkflowsQuery extends QueryParams {
|
|
1581
|
+
"cursor"?: string | null;
|
|
1582
|
+
"limit"?: number | null;
|
|
1583
|
+
"q"?: string | null;
|
|
1584
|
+
"pipeline_id"?: string | null;
|
|
1585
|
+
"stage_id"?: string | null;
|
|
1586
|
+
"team_id"?: string | null;
|
|
1587
|
+
"owner_user_id"?: string | null;
|
|
1588
|
+
"status"?: string | null;
|
|
1589
|
+
"statuses"?: string | null;
|
|
1590
|
+
"profile_id"?: string | null;
|
|
1591
|
+
"active_from"?: string | null;
|
|
1592
|
+
"active_to"?: string | null;
|
|
1593
|
+
"sort"?: string | null;
|
|
1594
|
+
}
|
|
1595
|
+
/** Backend response type: Vec<WorkflowResponse>. */
|
|
1596
|
+
export type ApiListWorkflowsRouteGetApiV1WorkflowsResponseItemActionsKind = "internal" | "external";
|
|
1597
|
+
export interface ApiListWorkflowsRouteGetApiV1WorkflowsResponseItemActions extends JsonObject {
|
|
1598
|
+
"key": string;
|
|
1599
|
+
"kind": ApiListWorkflowsRouteGetApiV1WorkflowsResponseItemActionsKind;
|
|
1600
|
+
"form": string;
|
|
1601
|
+
"required"?: boolean;
|
|
1602
|
+
}
|
|
1603
|
+
export interface ApiListWorkflowsRouteGetApiV1WorkflowsResponseItem extends JsonObject {
|
|
1604
|
+
"id": string;
|
|
1605
|
+
"name": string;
|
|
1606
|
+
"slug": string;
|
|
1607
|
+
"flags": string[];
|
|
1608
|
+
"acquire_flags": string[];
|
|
1609
|
+
"priority": number;
|
|
1610
|
+
"can_create_lead": boolean;
|
|
1611
|
+
"actions": ApiListWorkflowsRouteGetApiV1WorkflowsResponseItemActions[];
|
|
1612
|
+
"hint"?: string | null;
|
|
1613
|
+
"created_at": string;
|
|
1614
|
+
"updated_at": string;
|
|
1615
|
+
}
|
|
1616
|
+
export type ApiListWorkflowsRouteGetApiV1WorkflowsResponse = import("./types.js").CrmApiResponse<ApiListWorkflowsRouteGetApiV1WorkflowsResponseItem[]>;
|
|
1617
|
+
/** Backend request type: CreateWorkflowRequest. */
|
|
1618
|
+
export type ApiCreateWorkflowRoutePostApiV1WorkflowsInputActionsKind = "internal" | "external";
|
|
1619
|
+
export interface ApiCreateWorkflowRoutePostApiV1WorkflowsInputActions extends JsonObject {
|
|
1620
|
+
"key": string;
|
|
1621
|
+
"kind": ApiCreateWorkflowRoutePostApiV1WorkflowsInputActionsKind;
|
|
1622
|
+
"form": string;
|
|
1623
|
+
"required"?: boolean;
|
|
1624
|
+
}
|
|
1625
|
+
export interface ApiCreateWorkflowRoutePostApiV1WorkflowsInput extends JsonObject {
|
|
1626
|
+
"name": string;
|
|
1627
|
+
"slug": string;
|
|
1628
|
+
"flags"?: string[];
|
|
1629
|
+
"acquire_flags": string[];
|
|
1630
|
+
"priority": number;
|
|
1631
|
+
"can_create_lead"?: boolean;
|
|
1632
|
+
"actions"?: ApiCreateWorkflowRoutePostApiV1WorkflowsInputActions[];
|
|
1633
|
+
"hint"?: string | null;
|
|
1634
|
+
}
|
|
1635
|
+
/** Backend response type: WorkflowResponse. */
|
|
1636
|
+
export type ApiCreateWorkflowRoutePostApiV1WorkflowsResponseDataActionsKind = "internal" | "external";
|
|
1637
|
+
export interface ApiCreateWorkflowRoutePostApiV1WorkflowsResponseDataActions extends JsonObject {
|
|
1638
|
+
"key": string;
|
|
1639
|
+
"kind": ApiCreateWorkflowRoutePostApiV1WorkflowsResponseDataActionsKind;
|
|
1640
|
+
"form": string;
|
|
1641
|
+
"required"?: boolean;
|
|
1642
|
+
}
|
|
1643
|
+
export interface ApiCreateWorkflowRoutePostApiV1WorkflowsResponseData extends JsonObject {
|
|
1644
|
+
"id": string;
|
|
1645
|
+
"name": string;
|
|
1646
|
+
"slug": string;
|
|
1647
|
+
"flags": string[];
|
|
1648
|
+
"acquire_flags": string[];
|
|
1649
|
+
"priority": number;
|
|
1650
|
+
"can_create_lead": boolean;
|
|
1651
|
+
"actions": ApiCreateWorkflowRoutePostApiV1WorkflowsResponseDataActions[];
|
|
1652
|
+
"hint"?: string | null;
|
|
1653
|
+
"created_at": string;
|
|
1654
|
+
"updated_at": string;
|
|
1655
|
+
}
|
|
1656
|
+
export type ApiCreateWorkflowRoutePostApiV1WorkflowsResponse = import("./types.js").CrmApiResponse<ApiCreateWorkflowRoutePostApiV1WorkflowsResponseData>;
|
|
1657
|
+
/** Backend response type: DeletionResult. */
|
|
1658
|
+
export interface ApiDeleteWorkflowRouteDeleteApiV1WorkflowsIdResponseData extends JsonObject {
|
|
1659
|
+
"id": string;
|
|
1660
|
+
"deleted": boolean;
|
|
1661
|
+
}
|
|
1662
|
+
export type ApiDeleteWorkflowRouteDeleteApiV1WorkflowsIdResponse = import("./types.js").CrmApiResponse<ApiDeleteWorkflowRouteDeleteApiV1WorkflowsIdResponseData>;
|
|
1663
|
+
/** Backend response type: WorkflowResponse. */
|
|
1664
|
+
export type ApiShowWorkflowRouteGetApiV1WorkflowsIdResponseDataActionsKind = "internal" | "external";
|
|
1665
|
+
export interface ApiShowWorkflowRouteGetApiV1WorkflowsIdResponseDataActions extends JsonObject {
|
|
1666
|
+
"key": string;
|
|
1667
|
+
"kind": ApiShowWorkflowRouteGetApiV1WorkflowsIdResponseDataActionsKind;
|
|
1668
|
+
"form": string;
|
|
1669
|
+
"required"?: boolean;
|
|
1670
|
+
}
|
|
1671
|
+
export interface ApiShowWorkflowRouteGetApiV1WorkflowsIdResponseData extends JsonObject {
|
|
1672
|
+
"id": string;
|
|
1673
|
+
"name": string;
|
|
1674
|
+
"slug": string;
|
|
1675
|
+
"flags": string[];
|
|
1676
|
+
"acquire_flags": string[];
|
|
1677
|
+
"priority": number;
|
|
1678
|
+
"can_create_lead": boolean;
|
|
1679
|
+
"actions": ApiShowWorkflowRouteGetApiV1WorkflowsIdResponseDataActions[];
|
|
1680
|
+
"hint"?: string | null;
|
|
1681
|
+
"created_at": string;
|
|
1682
|
+
"updated_at": string;
|
|
1683
|
+
}
|
|
1684
|
+
export type ApiShowWorkflowRouteGetApiV1WorkflowsIdResponse = import("./types.js").CrmApiResponse<ApiShowWorkflowRouteGetApiV1WorkflowsIdResponseData>;
|
|
1685
|
+
/** Backend request type: UpdateWorkflowRequest. */
|
|
1686
|
+
export interface ApiUpdateWorkflowRoutePatchApiV1WorkflowsIdInput extends JsonObject {
|
|
1687
|
+
"name"?: string | null;
|
|
1688
|
+
"slug"?: string | null;
|
|
1689
|
+
"flags"?: string[] | null;
|
|
1690
|
+
"acquire_flags"?: string[] | null;
|
|
1691
|
+
"priority"?: number | null;
|
|
1692
|
+
"can_create_lead"?: boolean | null;
|
|
1693
|
+
"actions"?: BackendJson<"WorkflowActionDefinition">[] | null;
|
|
1694
|
+
"hint"?: string | null;
|
|
1695
|
+
}
|
|
1696
|
+
/** Backend response type: WorkflowResponse. */
|
|
1697
|
+
export type ApiUpdateWorkflowRoutePatchApiV1WorkflowsIdResponseDataActionsKind = "internal" | "external";
|
|
1698
|
+
export interface ApiUpdateWorkflowRoutePatchApiV1WorkflowsIdResponseDataActions extends JsonObject {
|
|
1699
|
+
"key": string;
|
|
1700
|
+
"kind": ApiUpdateWorkflowRoutePatchApiV1WorkflowsIdResponseDataActionsKind;
|
|
1701
|
+
"form": string;
|
|
1702
|
+
"required"?: boolean;
|
|
1703
|
+
}
|
|
1704
|
+
export interface ApiUpdateWorkflowRoutePatchApiV1WorkflowsIdResponseData extends JsonObject {
|
|
1705
|
+
"id": string;
|
|
1706
|
+
"name": string;
|
|
1707
|
+
"slug": string;
|
|
1708
|
+
"flags": string[];
|
|
1709
|
+
"acquire_flags": string[];
|
|
1710
|
+
"priority": number;
|
|
1711
|
+
"can_create_lead": boolean;
|
|
1712
|
+
"actions": ApiUpdateWorkflowRoutePatchApiV1WorkflowsIdResponseDataActions[];
|
|
1713
|
+
"hint"?: string | null;
|
|
1714
|
+
"created_at": string;
|
|
1715
|
+
"updated_at": string;
|
|
1716
|
+
}
|
|
1717
|
+
export type ApiUpdateWorkflowRoutePatchApiV1WorkflowsIdResponse = import("./types.js").CrmApiResponse<ApiUpdateWorkflowRoutePatchApiV1WorkflowsIdResponseData>;
|
|
1295
1718
|
/** Backend response type: Vec<WorkflowAssignment>. */
|
|
1296
1719
|
export interface ApiListWorkflowAssignmentsGetResponseItem extends JsonObject {
|
|
1297
1720
|
"id": string;
|
|
@@ -1323,22 +1746,128 @@ export interface ApiDeleteWorkflowAssignmentDeleteResponseData extends JsonObjec
|
|
|
1323
1746
|
"deleted": boolean;
|
|
1324
1747
|
}
|
|
1325
1748
|
export type ApiDeleteWorkflowAssignmentDeleteResponse = import("./types.js").CrmApiResponse<ApiDeleteWorkflowAssignmentDeleteResponseData>;
|
|
1326
|
-
/** Backend
|
|
1749
|
+
/** Backend query type: ListQuery. */
|
|
1750
|
+
export interface ApiListWorkflowNodesRouteGetQuery extends QueryParams {
|
|
1751
|
+
"cursor"?: string | null;
|
|
1752
|
+
"limit"?: number | null;
|
|
1753
|
+
"q"?: string | null;
|
|
1754
|
+
"pipeline_id"?: string | null;
|
|
1755
|
+
"stage_id"?: string | null;
|
|
1756
|
+
"team_id"?: string | null;
|
|
1757
|
+
"owner_user_id"?: string | null;
|
|
1758
|
+
"status"?: string | null;
|
|
1759
|
+
"statuses"?: string | null;
|
|
1760
|
+
"profile_id"?: string | null;
|
|
1761
|
+
"active_from"?: string | null;
|
|
1762
|
+
"active_to"?: string | null;
|
|
1763
|
+
"sort"?: string | null;
|
|
1764
|
+
}
|
|
1765
|
+
/** Backend response type: Vec<WorkflowNodeResponse>. */
|
|
1766
|
+
export interface ApiListWorkflowNodesRouteGetResponseItem extends JsonObject {
|
|
1767
|
+
"id": string;
|
|
1768
|
+
"name": string;
|
|
1769
|
+
"slug": string;
|
|
1770
|
+
"priority": number;
|
|
1771
|
+
"workflow_id": string;
|
|
1772
|
+
"is_draggable_in": boolean;
|
|
1773
|
+
"is_draggable_out": boolean;
|
|
1774
|
+
"actions"?: JsonValue | null;
|
|
1775
|
+
"auto_win": boolean;
|
|
1776
|
+
"created_at": string;
|
|
1777
|
+
"updated_at": string;
|
|
1778
|
+
}
|
|
1779
|
+
export type ApiListWorkflowNodesRouteGetResponse = import("./types.js").CrmApiResponse<ApiListWorkflowNodesRouteGetResponseItem[]>;
|
|
1780
|
+
/** Backend request type: CreateWorkflowNodeRequest. */
|
|
1781
|
+
export interface ApiCreateWorkflowNodeRoutePostApiV1WorkflowsWorkflowIdNodesInput extends JsonObject {
|
|
1782
|
+
"name": string;
|
|
1783
|
+
"slug": string;
|
|
1784
|
+
"priority": number;
|
|
1785
|
+
"is_draggable_in"?: boolean;
|
|
1786
|
+
"is_draggable_out"?: boolean;
|
|
1787
|
+
"actions"?: JsonValue | null;
|
|
1788
|
+
"auto_win"?: boolean;
|
|
1789
|
+
}
|
|
1790
|
+
/** Backend response type: WorkflowNodeResponse. */
|
|
1791
|
+
export interface ApiCreateWorkflowNodeRoutePostApiV1WorkflowsWorkflowIdNodesResponseData extends JsonObject {
|
|
1792
|
+
"id": string;
|
|
1793
|
+
"name": string;
|
|
1794
|
+
"slug": string;
|
|
1795
|
+
"priority": number;
|
|
1796
|
+
"workflow_id": string;
|
|
1797
|
+
"is_draggable_in": boolean;
|
|
1798
|
+
"is_draggable_out": boolean;
|
|
1799
|
+
"actions"?: JsonValue | null;
|
|
1800
|
+
"auto_win": boolean;
|
|
1801
|
+
"created_at": string;
|
|
1802
|
+
"updated_at": string;
|
|
1803
|
+
}
|
|
1804
|
+
export type ApiCreateWorkflowNodeRoutePostApiV1WorkflowsWorkflowIdNodesResponse = import("./types.js").CrmApiResponse<ApiCreateWorkflowNodeRoutePostApiV1WorkflowsWorkflowIdNodesResponseData>;
|
|
1805
|
+
/** Backend response type: DeletionResult. */
|
|
1806
|
+
export interface ApiDeleteWorkflowNodeRouteDeleteResponseData extends JsonObject {
|
|
1807
|
+
"id": string;
|
|
1808
|
+
"deleted": boolean;
|
|
1809
|
+
}
|
|
1810
|
+
export type ApiDeleteWorkflowNodeRouteDeleteResponse = import("./types.js").CrmApiResponse<ApiDeleteWorkflowNodeRouteDeleteResponseData>;
|
|
1811
|
+
/** Backend response type: WorkflowNodeResponse. */
|
|
1812
|
+
export interface ApiShowWorkflowNodeRouteGetResponseData extends JsonObject {
|
|
1813
|
+
"id": string;
|
|
1814
|
+
"name": string;
|
|
1815
|
+
"slug": string;
|
|
1816
|
+
"priority": number;
|
|
1817
|
+
"workflow_id": string;
|
|
1818
|
+
"is_draggable_in": boolean;
|
|
1819
|
+
"is_draggable_out": boolean;
|
|
1820
|
+
"actions"?: JsonValue | null;
|
|
1821
|
+
"auto_win": boolean;
|
|
1822
|
+
"created_at": string;
|
|
1823
|
+
"updated_at": string;
|
|
1824
|
+
}
|
|
1825
|
+
export type ApiShowWorkflowNodeRouteGetResponse = import("./types.js").CrmApiResponse<ApiShowWorkflowNodeRouteGetResponseData>;
|
|
1826
|
+
/** Backend request type: UpdateWorkflowNodeRequest. */
|
|
1827
|
+
export interface ApiUpdateWorkflowNodeRoutePatchInput extends JsonObject {
|
|
1828
|
+
"name"?: string | null;
|
|
1829
|
+
"slug"?: string | null;
|
|
1830
|
+
"priority"?: number | null;
|
|
1831
|
+
"is_draggable_in"?: boolean | null;
|
|
1832
|
+
"is_draggable_out"?: boolean | null;
|
|
1833
|
+
"actions"?: JsonValue | null;
|
|
1834
|
+
"auto_win"?: boolean | null;
|
|
1835
|
+
}
|
|
1836
|
+
/** Backend response type: WorkflowNodeResponse. */
|
|
1837
|
+
export interface ApiUpdateWorkflowNodeRoutePatchResponseData extends JsonObject {
|
|
1838
|
+
"id": string;
|
|
1839
|
+
"name": string;
|
|
1840
|
+
"slug": string;
|
|
1841
|
+
"priority": number;
|
|
1842
|
+
"workflow_id": string;
|
|
1843
|
+
"is_draggable_in": boolean;
|
|
1844
|
+
"is_draggable_out": boolean;
|
|
1845
|
+
"actions"?: JsonValue | null;
|
|
1846
|
+
"auto_win": boolean;
|
|
1847
|
+
"created_at": string;
|
|
1848
|
+
"updated_at": string;
|
|
1849
|
+
}
|
|
1850
|
+
export type ApiUpdateWorkflowNodeRoutePatchResponse = import("./types.js").CrmApiResponse<ApiUpdateWorkflowNodeRoutePatchResponseData>;
|
|
1851
|
+
/** Backend response type: Vec<WorkflowResponse>. */
|
|
1852
|
+
export type ApiMemberWorkflowsGetResponseItemActionsKind = "internal" | "external";
|
|
1853
|
+
export interface ApiMemberWorkflowsGetResponseItemActions extends JsonObject {
|
|
1854
|
+
"key": string;
|
|
1855
|
+
"kind": ApiMemberWorkflowsGetResponseItemActionsKind;
|
|
1856
|
+
"form": string;
|
|
1857
|
+
"required"?: boolean;
|
|
1858
|
+
}
|
|
1327
1859
|
export interface ApiMemberWorkflowsGetResponseItem extends JsonObject {
|
|
1328
1860
|
"id": string;
|
|
1329
1861
|
"name": string;
|
|
1330
1862
|
"slug": string;
|
|
1331
|
-
"
|
|
1332
|
-
"
|
|
1333
|
-
"is_default": boolean;
|
|
1334
|
-
"is_active": boolean;
|
|
1863
|
+
"flags": string[];
|
|
1864
|
+
"acquire_flags": string[];
|
|
1335
1865
|
"priority": number;
|
|
1336
|
-
"hint"?: string | null;
|
|
1337
|
-
"daily_quota": number;
|
|
1338
1866
|
"can_create_lead": boolean;
|
|
1339
|
-
"
|
|
1340
|
-
"
|
|
1341
|
-
"
|
|
1867
|
+
"actions": ApiMemberWorkflowsGetResponseItemActions[];
|
|
1868
|
+
"hint"?: string | null;
|
|
1869
|
+
"created_at": string;
|
|
1870
|
+
"updated_at": string;
|
|
1342
1871
|
}
|
|
1343
1872
|
export type ApiMemberWorkflowsGetResponse = import("./types.js").CrmApiResponse<ApiMemberWorkflowsGetResponseItem[]>;
|
|
1344
1873
|
/** Backend query type: super::types::WorklogListQuery. */
|