@faiber/faiber-crm 0.11.3 → 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 +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 +347 -31
- 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,303 @@ 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
|
+
"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[]>;
|
|
1284
1322
|
/** Backend request type: CreateWorkflowRequest. */
|
|
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
|
+
}
|
|
1285
1330
|
export interface ApiCreateWorkflowRoutePostApiV1WorkflowInput extends JsonObject {
|
|
1286
1331
|
"name": string;
|
|
1287
1332
|
"slug": string;
|
|
1333
|
+
"flags"?: string[];
|
|
1288
1334
|
"acquire_flags": string[];
|
|
1289
1335
|
"priority": number;
|
|
1290
1336
|
"can_create_lead"?: boolean;
|
|
1291
|
-
"actions"?:
|
|
1337
|
+
"actions"?: ApiCreateWorkflowRoutePostApiV1WorkflowInputActions[];
|
|
1292
1338
|
"hint"?: string | null;
|
|
1293
1339
|
}
|
|
1294
1340
|
/** Backend response type: WorkflowResponse. */
|
|
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
|
+
}
|
|
1295
1348
|
export interface ApiCreateWorkflowRoutePostApiV1WorkflowResponseData extends JsonObject {
|
|
1296
1349
|
"id": string;
|
|
1297
1350
|
"name": string;
|
|
1298
1351
|
"slug": string;
|
|
1352
|
+
"flags": string[];
|
|
1299
1353
|
"acquire_flags": string[];
|
|
1300
1354
|
"priority": number;
|
|
1301
1355
|
"can_create_lead": boolean;
|
|
1302
|
-
"actions"
|
|
1356
|
+
"actions": ApiCreateWorkflowRoutePostApiV1WorkflowResponseDataActions[];
|
|
1303
1357
|
"hint"?: string | null;
|
|
1304
1358
|
"created_at": string;
|
|
1305
1359
|
"updated_at": string;
|
|
1306
1360
|
}
|
|
1307
1361
|
export type ApiCreateWorkflowRoutePostApiV1WorkflowResponse = import("./types.js").CrmApiResponse<ApiCreateWorkflowRoutePostApiV1WorkflowResponseData>;
|
|
1308
1362
|
/** Backend query type: ListQuery. */
|
|
1309
|
-
export interface
|
|
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;
|
|
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[];
|
|
1508
|
+
"hint"?: string | null;
|
|
1509
|
+
"created_at": string;
|
|
1510
|
+
"updated_at": string;
|
|
1511
|
+
}
|
|
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 {
|
|
1310
1581
|
"cursor"?: string | null;
|
|
1311
1582
|
"limit"?: number | null;
|
|
1312
1583
|
"q"?: string | null;
|
|
@@ -1322,87 +1593,128 @@ export interface ApiListWorkflowsRouteGetQuery extends QueryParams {
|
|
|
1322
1593
|
"sort"?: string | null;
|
|
1323
1594
|
}
|
|
1324
1595
|
/** Backend response type: Vec<WorkflowResponse>. */
|
|
1325
|
-
export
|
|
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 {
|
|
1326
1604
|
"id": string;
|
|
1327
1605
|
"name": string;
|
|
1328
1606
|
"slug": string;
|
|
1607
|
+
"flags": string[];
|
|
1329
1608
|
"acquire_flags": string[];
|
|
1330
1609
|
"priority": number;
|
|
1331
1610
|
"can_create_lead": boolean;
|
|
1332
|
-
"actions"
|
|
1611
|
+
"actions": ApiListWorkflowsRouteGetApiV1WorkflowsResponseItemActions[];
|
|
1333
1612
|
"hint"?: string | null;
|
|
1334
1613
|
"created_at": string;
|
|
1335
1614
|
"updated_at": string;
|
|
1336
1615
|
}
|
|
1337
|
-
export type
|
|
1616
|
+
export type ApiListWorkflowsRouteGetApiV1WorkflowsResponse = import("./types.js").CrmApiResponse<ApiListWorkflowsRouteGetApiV1WorkflowsResponseItem[]>;
|
|
1338
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
|
+
}
|
|
1339
1625
|
export interface ApiCreateWorkflowRoutePostApiV1WorkflowsInput extends JsonObject {
|
|
1340
1626
|
"name": string;
|
|
1341
1627
|
"slug": string;
|
|
1628
|
+
"flags"?: string[];
|
|
1342
1629
|
"acquire_flags": string[];
|
|
1343
1630
|
"priority": number;
|
|
1344
1631
|
"can_create_lead"?: boolean;
|
|
1345
|
-
"actions"?:
|
|
1632
|
+
"actions"?: ApiCreateWorkflowRoutePostApiV1WorkflowsInputActions[];
|
|
1346
1633
|
"hint"?: string | null;
|
|
1347
1634
|
}
|
|
1348
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
|
+
}
|
|
1349
1643
|
export interface ApiCreateWorkflowRoutePostApiV1WorkflowsResponseData extends JsonObject {
|
|
1350
1644
|
"id": string;
|
|
1351
1645
|
"name": string;
|
|
1352
1646
|
"slug": string;
|
|
1647
|
+
"flags": string[];
|
|
1353
1648
|
"acquire_flags": string[];
|
|
1354
1649
|
"priority": number;
|
|
1355
1650
|
"can_create_lead": boolean;
|
|
1356
|
-
"actions"
|
|
1651
|
+
"actions": ApiCreateWorkflowRoutePostApiV1WorkflowsResponseDataActions[];
|
|
1357
1652
|
"hint"?: string | null;
|
|
1358
1653
|
"created_at": string;
|
|
1359
1654
|
"updated_at": string;
|
|
1360
1655
|
}
|
|
1361
1656
|
export type ApiCreateWorkflowRoutePostApiV1WorkflowsResponse = import("./types.js").CrmApiResponse<ApiCreateWorkflowRoutePostApiV1WorkflowsResponseData>;
|
|
1362
1657
|
/** Backend response type: DeletionResult. */
|
|
1363
|
-
export interface
|
|
1658
|
+
export interface ApiDeleteWorkflowRouteDeleteApiV1WorkflowsIdResponseData extends JsonObject {
|
|
1364
1659
|
"id": string;
|
|
1365
1660
|
"deleted": boolean;
|
|
1366
1661
|
}
|
|
1367
|
-
export type
|
|
1662
|
+
export type ApiDeleteWorkflowRouteDeleteApiV1WorkflowsIdResponse = import("./types.js").CrmApiResponse<ApiDeleteWorkflowRouteDeleteApiV1WorkflowsIdResponseData>;
|
|
1368
1663
|
/** Backend response type: WorkflowResponse. */
|
|
1369
|
-
export
|
|
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 {
|
|
1370
1672
|
"id": string;
|
|
1371
1673
|
"name": string;
|
|
1372
1674
|
"slug": string;
|
|
1675
|
+
"flags": string[];
|
|
1373
1676
|
"acquire_flags": string[];
|
|
1374
1677
|
"priority": number;
|
|
1375
1678
|
"can_create_lead": boolean;
|
|
1376
|
-
"actions"
|
|
1679
|
+
"actions": ApiShowWorkflowRouteGetApiV1WorkflowsIdResponseDataActions[];
|
|
1377
1680
|
"hint"?: string | null;
|
|
1378
1681
|
"created_at": string;
|
|
1379
1682
|
"updated_at": string;
|
|
1380
1683
|
}
|
|
1381
|
-
export type
|
|
1684
|
+
export type ApiShowWorkflowRouteGetApiV1WorkflowsIdResponse = import("./types.js").CrmApiResponse<ApiShowWorkflowRouteGetApiV1WorkflowsIdResponseData>;
|
|
1382
1685
|
/** Backend request type: UpdateWorkflowRequest. */
|
|
1383
|
-
export interface
|
|
1686
|
+
export interface ApiUpdateWorkflowRoutePatchApiV1WorkflowsIdInput extends JsonObject {
|
|
1384
1687
|
"name"?: string | null;
|
|
1385
1688
|
"slug"?: string | null;
|
|
1689
|
+
"flags"?: string[] | null;
|
|
1386
1690
|
"acquire_flags"?: string[] | null;
|
|
1387
1691
|
"priority"?: number | null;
|
|
1388
1692
|
"can_create_lead"?: boolean | null;
|
|
1389
|
-
"actions"?:
|
|
1693
|
+
"actions"?: BackendJson<"WorkflowActionDefinition">[] | null;
|
|
1390
1694
|
"hint"?: string | null;
|
|
1391
1695
|
}
|
|
1392
1696
|
/** Backend response type: WorkflowResponse. */
|
|
1393
|
-
export
|
|
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 {
|
|
1394
1705
|
"id": string;
|
|
1395
1706
|
"name": string;
|
|
1396
1707
|
"slug": string;
|
|
1708
|
+
"flags": string[];
|
|
1397
1709
|
"acquire_flags": string[];
|
|
1398
1710
|
"priority": number;
|
|
1399
1711
|
"can_create_lead": boolean;
|
|
1400
|
-
"actions"
|
|
1712
|
+
"actions": ApiUpdateWorkflowRoutePatchApiV1WorkflowsIdResponseDataActions[];
|
|
1401
1713
|
"hint"?: string | null;
|
|
1402
1714
|
"created_at": string;
|
|
1403
1715
|
"updated_at": string;
|
|
1404
1716
|
}
|
|
1405
|
-
export type
|
|
1717
|
+
export type ApiUpdateWorkflowRoutePatchApiV1WorkflowsIdResponse = import("./types.js").CrmApiResponse<ApiUpdateWorkflowRoutePatchApiV1WorkflowsIdResponseData>;
|
|
1406
1718
|
/** Backend response type: Vec<WorkflowAssignment>. */
|
|
1407
1719
|
export interface ApiListWorkflowAssignmentsGetResponseItem extends JsonObject {
|
|
1408
1720
|
"id": string;
|
|
@@ -1466,7 +1778,7 @@ export interface ApiListWorkflowNodesRouteGetResponseItem extends JsonObject {
|
|
|
1466
1778
|
}
|
|
1467
1779
|
export type ApiListWorkflowNodesRouteGetResponse = import("./types.js").CrmApiResponse<ApiListWorkflowNodesRouteGetResponseItem[]>;
|
|
1468
1780
|
/** Backend request type: CreateWorkflowNodeRequest. */
|
|
1469
|
-
export interface
|
|
1781
|
+
export interface ApiCreateWorkflowNodeRoutePostApiV1WorkflowsWorkflowIdNodesInput extends JsonObject {
|
|
1470
1782
|
"name": string;
|
|
1471
1783
|
"slug": string;
|
|
1472
1784
|
"priority": number;
|
|
@@ -1476,7 +1788,7 @@ export interface ApiCreateWorkflowNodeRoutePostInput extends JsonObject {
|
|
|
1476
1788
|
"auto_win"?: boolean;
|
|
1477
1789
|
}
|
|
1478
1790
|
/** Backend response type: WorkflowNodeResponse. */
|
|
1479
|
-
export interface
|
|
1791
|
+
export interface ApiCreateWorkflowNodeRoutePostApiV1WorkflowsWorkflowIdNodesResponseData extends JsonObject {
|
|
1480
1792
|
"id": string;
|
|
1481
1793
|
"name": string;
|
|
1482
1794
|
"slug": string;
|
|
@@ -1489,7 +1801,7 @@ export interface ApiCreateWorkflowNodeRoutePostResponseData extends JsonObject {
|
|
|
1489
1801
|
"created_at": string;
|
|
1490
1802
|
"updated_at": string;
|
|
1491
1803
|
}
|
|
1492
|
-
export type
|
|
1804
|
+
export type ApiCreateWorkflowNodeRoutePostApiV1WorkflowsWorkflowIdNodesResponse = import("./types.js").CrmApiResponse<ApiCreateWorkflowNodeRoutePostApiV1WorkflowsWorkflowIdNodesResponseData>;
|
|
1493
1805
|
/** Backend response type: DeletionResult. */
|
|
1494
1806
|
export interface ApiDeleteWorkflowNodeRouteDeleteResponseData extends JsonObject {
|
|
1495
1807
|
"id": string;
|
|
@@ -1536,22 +1848,26 @@ export interface ApiUpdateWorkflowNodeRoutePatchResponseData extends JsonObject
|
|
|
1536
1848
|
"updated_at": string;
|
|
1537
1849
|
}
|
|
1538
1850
|
export type ApiUpdateWorkflowNodeRoutePatchResponse = import("./types.js").CrmApiResponse<ApiUpdateWorkflowNodeRoutePatchResponseData>;
|
|
1539
|
-
/** Backend response type: Vec<
|
|
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
|
+
}
|
|
1540
1859
|
export interface ApiMemberWorkflowsGetResponseItem extends JsonObject {
|
|
1541
1860
|
"id": string;
|
|
1542
1861
|
"name": string;
|
|
1543
1862
|
"slug": string;
|
|
1544
|
-
"
|
|
1545
|
-
"
|
|
1546
|
-
"is_default": boolean;
|
|
1547
|
-
"is_active": boolean;
|
|
1863
|
+
"flags": string[];
|
|
1864
|
+
"acquire_flags": string[];
|
|
1548
1865
|
"priority": number;
|
|
1549
|
-
"hint"?: string | null;
|
|
1550
|
-
"daily_quota": number;
|
|
1551
1866
|
"can_create_lead": boolean;
|
|
1552
|
-
"
|
|
1553
|
-
"
|
|
1554
|
-
"
|
|
1867
|
+
"actions": ApiMemberWorkflowsGetResponseItemActions[];
|
|
1868
|
+
"hint"?: string | null;
|
|
1869
|
+
"created_at": string;
|
|
1870
|
+
"updated_at": string;
|
|
1555
1871
|
}
|
|
1556
1872
|
export type ApiMemberWorkflowsGetResponse = import("./types.js").CrmApiResponse<ApiMemberWorkflowsGetResponseItem[]>;
|
|
1557
1873
|
/** Backend query type: super::types::WorklogListQuery. */
|