@faiber/faiber-crm 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.tsbuildinfo +1 -1
- package/dist/operations.types.d.ts +113 -988
- package/dist/operations.types.d.ts.map +1 -1
- package/package.json +4 -3
|
@@ -1,183 +1,28 @@
|
|
|
1
|
-
import type { ApiEnvelope, JsonObject, JsonValue, QueryParams } from "@faiber/sdk-core";
|
|
1
|
+
import type { ApiEnvelope, BackendJson, JsonObject, JsonValue, QueryParams } from "@faiber/sdk-core";
|
|
2
2
|
/** Generated route contracts. Dynamic payload members remain JSON-safe and are documented with their Rust source type. */
|
|
3
|
-
/** Backend response type:
|
|
3
|
+
/** Backend response type: api. */
|
|
4
4
|
export interface RouterStatusRouteGetResponse extends ApiEnvelope<JsonValue> {
|
|
5
5
|
}
|
|
6
|
-
/** Backend response type:
|
|
6
|
+
/** Backend response type: api. */
|
|
7
7
|
export interface RouterOpenapiJsonGetResponse extends ApiEnvelope<JsonValue> {
|
|
8
8
|
}
|
|
9
9
|
/** Backend response type: crate::integration::models::IntegrationDocsResponse. */
|
|
10
|
-
export interface IntegrationIntegrationDocsShowGetResponseDataDirectEventsPayloadFields extends JsonObject {
|
|
11
|
-
"name": string;
|
|
12
|
-
"field_type": string;
|
|
13
|
-
"required": boolean;
|
|
14
|
-
"description": string;
|
|
15
|
-
}
|
|
16
|
-
export interface IntegrationIntegrationDocsShowGetResponseDataDirectEvents extends JsonObject {
|
|
17
|
-
"event_name": string;
|
|
18
|
-
"payload_fields": IntegrationIntegrationDocsShowGetResponseDataDirectEventsPayloadFields[];
|
|
19
|
-
}
|
|
20
|
-
export interface IntegrationIntegrationDocsShowGetResponseDataDirect extends JsonObject {
|
|
21
|
-
"transport": string;
|
|
22
|
-
"queue"?: string | null;
|
|
23
|
-
"base_url"?: string | null;
|
|
24
|
-
"broker_url_hint"?: string | null;
|
|
25
|
-
"sample_profile_id"?: string | null;
|
|
26
|
-
"events": IntegrationIntegrationDocsShowGetResponseDataDirectEvents[];
|
|
27
|
-
}
|
|
28
|
-
export interface IntegrationIntegrationDocsShowGetResponseDataSdk extends JsonObject {
|
|
29
|
-
"event_name": string;
|
|
30
|
-
"method": string;
|
|
31
|
-
"language": string;
|
|
32
|
-
"cargo_dep": string;
|
|
33
|
-
"code": string;
|
|
34
|
-
}
|
|
35
10
|
export interface IntegrationIntegrationDocsShowGetResponseData extends JsonObject {
|
|
36
|
-
"direct":
|
|
37
|
-
"sdk":
|
|
11
|
+
"direct": BackendJson<"DirectIntegrationMeta">;
|
|
12
|
+
"sdk": BackendJson<"SdkIntegrationSnippet">[];
|
|
38
13
|
}
|
|
39
14
|
export interface IntegrationIntegrationDocsShowGetResponse extends ApiEnvelope<IntegrationIntegrationDocsShowGetResponseData> {
|
|
40
15
|
}
|
|
41
16
|
/** Backend response type: infera_flow_sdk::FlowIntegrationResponse. */
|
|
42
|
-
export interface IntegrationFlowIntegrationShowGetResponse extends ApiEnvelope<
|
|
17
|
+
export interface IntegrationFlowIntegrationShowGetResponse extends ApiEnvelope<BackendJson<"infera_flow_sdk::FlowIntegrationResponse">> {
|
|
43
18
|
}
|
|
44
19
|
/** Backend query type: LeadListQuery. */
|
|
45
20
|
export interface LeadIndexGetQuery extends QueryParams {
|
|
46
21
|
"sort"?: string | null;
|
|
47
22
|
}
|
|
48
23
|
/** Backend response type: LeadListResponse. */
|
|
49
|
-
export interface LeadIndexGetResponseDataLeadsCreator extends JsonObject {
|
|
50
|
-
"id": string;
|
|
51
|
-
"first_name_fa"?: string | null;
|
|
52
|
-
"last_name_fa"?: string | null;
|
|
53
|
-
"phone"?: string | null;
|
|
54
|
-
}
|
|
55
|
-
export interface LeadIndexGetResponseDataLeadsProfile extends JsonObject {
|
|
56
|
-
"id": string;
|
|
57
|
-
"first_name_fa"?: string | null;
|
|
58
|
-
"last_name_fa"?: string | null;
|
|
59
|
-
"phone"?: string | null;
|
|
60
|
-
}
|
|
61
|
-
export interface LeadIndexGetResponseDataLeadsWorkflow extends JsonObject {
|
|
62
|
-
"id": string;
|
|
63
|
-
"name": string;
|
|
64
|
-
"slug": string;
|
|
65
|
-
"acquire_flags": string[];
|
|
66
|
-
"priority": number;
|
|
67
|
-
"can_create_lead": boolean;
|
|
68
|
-
"actions"?: JsonValue | null;
|
|
69
|
-
"hint"?: string | null;
|
|
70
|
-
"created_at": string;
|
|
71
|
-
"updated_at": string;
|
|
72
|
-
}
|
|
73
|
-
export interface LeadIndexGetResponseDataLeadsWorkflowNode extends JsonObject {
|
|
74
|
-
"id": string;
|
|
75
|
-
"name": string;
|
|
76
|
-
"slug": string;
|
|
77
|
-
"priority": number;
|
|
78
|
-
"workflow_id": string;
|
|
79
|
-
"is_draggable_in": boolean;
|
|
80
|
-
"is_draggable_out": boolean;
|
|
81
|
-
"actions"?: JsonValue | null;
|
|
82
|
-
"auto_win": boolean;
|
|
83
|
-
"created_at": string;
|
|
84
|
-
"updated_at": string;
|
|
85
|
-
}
|
|
86
|
-
export interface LeadIndexGetResponseDataLeadsLeadLogsProfile extends JsonObject {
|
|
87
|
-
"id": string;
|
|
88
|
-
"first_name_fa"?: string | null;
|
|
89
|
-
"last_name_fa"?: string | null;
|
|
90
|
-
"phone"?: string | null;
|
|
91
|
-
}
|
|
92
|
-
export interface LeadIndexGetResponseDataLeadsLeadLogsFromWorkflowNode extends JsonObject {
|
|
93
|
-
"id": string;
|
|
94
|
-
"name": string;
|
|
95
|
-
"slug": string;
|
|
96
|
-
"priority": number;
|
|
97
|
-
"workflow_id": string;
|
|
98
|
-
"is_draggable_in": boolean;
|
|
99
|
-
"is_draggable_out": boolean;
|
|
100
|
-
"actions"?: JsonValue | null;
|
|
101
|
-
"auto_win": boolean;
|
|
102
|
-
"created_at": string;
|
|
103
|
-
"updated_at": string;
|
|
104
|
-
}
|
|
105
|
-
export interface LeadIndexGetResponseDataLeadsLeadLogsToWorkflowNode extends JsonObject {
|
|
106
|
-
"id": string;
|
|
107
|
-
"name": string;
|
|
108
|
-
"slug": string;
|
|
109
|
-
"priority": number;
|
|
110
|
-
"workflow_id": string;
|
|
111
|
-
"is_draggable_in": boolean;
|
|
112
|
-
"is_draggable_out": boolean;
|
|
113
|
-
"actions"?: JsonValue | null;
|
|
114
|
-
"auto_win": boolean;
|
|
115
|
-
"created_at": string;
|
|
116
|
-
"updated_at": string;
|
|
117
|
-
}
|
|
118
|
-
export interface LeadIndexGetResponseDataLeadsLeadLogs extends JsonObject {
|
|
119
|
-
"id": string;
|
|
120
|
-
"from_workflow_node_id"?: string | null;
|
|
121
|
-
"to_workflow_node_id"?: string | null;
|
|
122
|
-
"type": string;
|
|
123
|
-
"profile_id": string;
|
|
124
|
-
"profile"?: LeadIndexGetResponseDataLeadsLeadLogsProfile | null;
|
|
125
|
-
"from_status"?: string | null;
|
|
126
|
-
"to_status"?: string | null;
|
|
127
|
-
"from_workflow_node"?: LeadIndexGetResponseDataLeadsLeadLogsFromWorkflowNode | null;
|
|
128
|
-
"to_workflow_node"?: LeadIndexGetResponseDataLeadsLeadLogsToWorkflowNode | null;
|
|
129
|
-
"created_at": string;
|
|
130
|
-
"updated_at": string;
|
|
131
|
-
}
|
|
132
|
-
export interface LeadIndexGetResponseDataLeadsLeadTouchProfile extends JsonObject {
|
|
133
|
-
"id": string;
|
|
134
|
-
"first_name_fa"?: string | null;
|
|
135
|
-
"last_name_fa"?: string | null;
|
|
136
|
-
"phone"?: string | null;
|
|
137
|
-
}
|
|
138
|
-
export interface LeadIndexGetResponseDataLeadsLeadTouch extends JsonObject {
|
|
139
|
-
"id": string;
|
|
140
|
-
"lead_id": string;
|
|
141
|
-
"profile_id": string;
|
|
142
|
-
"profile"?: LeadIndexGetResponseDataLeadsLeadTouchProfile | null;
|
|
143
|
-
"description"?: string | null;
|
|
144
|
-
"status": string;
|
|
145
|
-
"created_at": string;
|
|
146
|
-
"updated_at": string;
|
|
147
|
-
}
|
|
148
|
-
export interface LeadIndexGetResponseDataLeads extends JsonObject {
|
|
149
|
-
"id": string;
|
|
150
|
-
"profile_id"?: string | null;
|
|
151
|
-
"title"?: string | null;
|
|
152
|
-
"description"?: string | null;
|
|
153
|
-
"creator_id": string;
|
|
154
|
-
"creator"?: LeadIndexGetResponseDataLeadsCreator | null;
|
|
155
|
-
"workflow_id"?: string | null;
|
|
156
|
-
"workflow_node_id"?: string | null;
|
|
157
|
-
"campaign_id"?: string | null;
|
|
158
|
-
"source_id"?: string | null;
|
|
159
|
-
"task_status": string;
|
|
160
|
-
"foreign_key"?: string | null;
|
|
161
|
-
"task_priority": number;
|
|
162
|
-
"flags": string[];
|
|
163
|
-
"profile"?: LeadIndexGetResponseDataLeadsProfile | null;
|
|
164
|
-
"created_at": string;
|
|
165
|
-
"updated_at": string;
|
|
166
|
-
"enrollment_id"?: number | null;
|
|
167
|
-
"enrollment_course_id"?: number | null;
|
|
168
|
-
"installment_id"?: number | null;
|
|
169
|
-
"installment_enrollment_id"?: number | null;
|
|
170
|
-
"active_at"?: string | null;
|
|
171
|
-
"is_active_status"?: boolean | null;
|
|
172
|
-
"is_sos_assignee"?: boolean | null;
|
|
173
|
-
"workflow"?: LeadIndexGetResponseDataLeadsWorkflow | null;
|
|
174
|
-
"workflow_node"?: LeadIndexGetResponseDataLeadsWorkflowNode | null;
|
|
175
|
-
"lead_logs"?: LeadIndexGetResponseDataLeadsLeadLogs[] | null;
|
|
176
|
-
"lead_touch"?: LeadIndexGetResponseDataLeadsLeadTouch[] | null;
|
|
177
|
-
"meta_data"?: JsonValue | null;
|
|
178
|
-
}
|
|
179
24
|
export interface LeadIndexGetResponseData extends JsonObject {
|
|
180
|
-
"leads":
|
|
25
|
+
"leads": BackendJson<"FullLeadResponse">[];
|
|
181
26
|
}
|
|
182
27
|
export interface LeadIndexGetResponse extends ApiEnvelope<LeadIndexGetResponseData> {
|
|
183
28
|
}
|
|
@@ -203,50 +48,13 @@ export interface LeadCreatePostInput extends JsonObject {
|
|
|
203
48
|
"description"?: string | null;
|
|
204
49
|
}
|
|
205
50
|
/** Backend response type: LeadResponse. */
|
|
206
|
-
export interface LeadCreatePostResponseDataCreator extends JsonObject {
|
|
207
|
-
"id": string;
|
|
208
|
-
"first_name_fa"?: string | null;
|
|
209
|
-
"last_name_fa"?: string | null;
|
|
210
|
-
"phone"?: string | null;
|
|
211
|
-
}
|
|
212
|
-
export interface LeadCreatePostResponseDataProfile extends JsonObject {
|
|
213
|
-
"id": string;
|
|
214
|
-
"first_name_fa"?: string | null;
|
|
215
|
-
"last_name_fa"?: string | null;
|
|
216
|
-
"phone"?: string | null;
|
|
217
|
-
}
|
|
218
|
-
export interface LeadCreatePostResponseDataWorkflow extends JsonObject {
|
|
219
|
-
"id": string;
|
|
220
|
-
"name": string;
|
|
221
|
-
"slug": string;
|
|
222
|
-
"acquire_flags": string[];
|
|
223
|
-
"priority": number;
|
|
224
|
-
"can_create_lead": boolean;
|
|
225
|
-
"actions"?: JsonValue | null;
|
|
226
|
-
"hint"?: string | null;
|
|
227
|
-
"created_at": string;
|
|
228
|
-
"updated_at": string;
|
|
229
|
-
}
|
|
230
|
-
export interface LeadCreatePostResponseDataWorkflowNode extends JsonObject {
|
|
231
|
-
"id": string;
|
|
232
|
-
"name": string;
|
|
233
|
-
"slug": string;
|
|
234
|
-
"priority": number;
|
|
235
|
-
"workflow_id": string;
|
|
236
|
-
"is_draggable_in": boolean;
|
|
237
|
-
"is_draggable_out": boolean;
|
|
238
|
-
"actions"?: JsonValue | null;
|
|
239
|
-
"auto_win": boolean;
|
|
240
|
-
"created_at": string;
|
|
241
|
-
"updated_at": string;
|
|
242
|
-
}
|
|
243
51
|
export interface LeadCreatePostResponseData extends JsonObject {
|
|
244
52
|
"id": string;
|
|
245
53
|
"profile_id"?: string | null;
|
|
246
54
|
"title"?: string | null;
|
|
247
55
|
"description"?: string | null;
|
|
248
56
|
"creator_id": string;
|
|
249
|
-
"creator"?:
|
|
57
|
+
"creator"?: BackendJson<"ProfileSummary"> | null;
|
|
250
58
|
"workflow_id"?: string | null;
|
|
251
59
|
"workflow_node_id"?: string | null;
|
|
252
60
|
"campaign_id"?: string | null;
|
|
@@ -255,7 +63,7 @@ export interface LeadCreatePostResponseData extends JsonObject {
|
|
|
255
63
|
"foreign_key"?: string | null;
|
|
256
64
|
"task_priority": number;
|
|
257
65
|
"flags": string[];
|
|
258
|
-
"profile"?:
|
|
66
|
+
"profile"?: BackendJson<"ProfileSummary"> | null;
|
|
259
67
|
"created_at": string;
|
|
260
68
|
"updated_at": string;
|
|
261
69
|
"enrollment_id"?: number | null;
|
|
@@ -265,8 +73,8 @@ export interface LeadCreatePostResponseData extends JsonObject {
|
|
|
265
73
|
"active_at"?: string | null;
|
|
266
74
|
"is_active_status"?: boolean | null;
|
|
267
75
|
"is_sos_assignee"?: boolean | null;
|
|
268
|
-
"workflow"?:
|
|
269
|
-
"workflow_node"?:
|
|
76
|
+
"workflow"?: BackendJson<"WorkflowResponse"> | null;
|
|
77
|
+
"workflow_node"?: BackendJson<"WorkflowNodeResponse"> | null;
|
|
270
78
|
"is_in_reminder"?: boolean | null;
|
|
271
79
|
"meta_data"?: JsonValue | null;
|
|
272
80
|
}
|
|
@@ -382,50 +190,13 @@ export interface LeadSourceUpdatePutResponse extends ApiEnvelope<LeadSourceUpdat
|
|
|
382
190
|
export interface LeadDestroyDeleteResponse extends ApiEnvelope<boolean> {
|
|
383
191
|
}
|
|
384
192
|
/** Backend response type: LeadResponse. */
|
|
385
|
-
export interface LeadShowGetResponseDataCreator extends JsonObject {
|
|
386
|
-
"id": string;
|
|
387
|
-
"first_name_fa"?: string | null;
|
|
388
|
-
"last_name_fa"?: string | null;
|
|
389
|
-
"phone"?: string | null;
|
|
390
|
-
}
|
|
391
|
-
export interface LeadShowGetResponseDataProfile extends JsonObject {
|
|
392
|
-
"id": string;
|
|
393
|
-
"first_name_fa"?: string | null;
|
|
394
|
-
"last_name_fa"?: string | null;
|
|
395
|
-
"phone"?: string | null;
|
|
396
|
-
}
|
|
397
|
-
export interface LeadShowGetResponseDataWorkflow extends JsonObject {
|
|
398
|
-
"id": string;
|
|
399
|
-
"name": string;
|
|
400
|
-
"slug": string;
|
|
401
|
-
"acquire_flags": string[];
|
|
402
|
-
"priority": number;
|
|
403
|
-
"can_create_lead": boolean;
|
|
404
|
-
"actions"?: JsonValue | null;
|
|
405
|
-
"hint"?: string | null;
|
|
406
|
-
"created_at": string;
|
|
407
|
-
"updated_at": string;
|
|
408
|
-
}
|
|
409
|
-
export interface LeadShowGetResponseDataWorkflowNode extends JsonObject {
|
|
410
|
-
"id": string;
|
|
411
|
-
"name": string;
|
|
412
|
-
"slug": string;
|
|
413
|
-
"priority": number;
|
|
414
|
-
"workflow_id": string;
|
|
415
|
-
"is_draggable_in": boolean;
|
|
416
|
-
"is_draggable_out": boolean;
|
|
417
|
-
"actions"?: JsonValue | null;
|
|
418
|
-
"auto_win": boolean;
|
|
419
|
-
"created_at": string;
|
|
420
|
-
"updated_at": string;
|
|
421
|
-
}
|
|
422
193
|
export interface LeadShowGetResponseData extends JsonObject {
|
|
423
194
|
"id": string;
|
|
424
195
|
"profile_id"?: string | null;
|
|
425
196
|
"title"?: string | null;
|
|
426
197
|
"description"?: string | null;
|
|
427
198
|
"creator_id": string;
|
|
428
|
-
"creator"?:
|
|
199
|
+
"creator"?: BackendJson<"ProfileSummary"> | null;
|
|
429
200
|
"workflow_id"?: string | null;
|
|
430
201
|
"workflow_node_id"?: string | null;
|
|
431
202
|
"campaign_id"?: string | null;
|
|
@@ -434,7 +205,7 @@ export interface LeadShowGetResponseData extends JsonObject {
|
|
|
434
205
|
"foreign_key"?: string | null;
|
|
435
206
|
"task_priority": number;
|
|
436
207
|
"flags": string[];
|
|
437
|
-
"profile"?:
|
|
208
|
+
"profile"?: BackendJson<"ProfileSummary"> | null;
|
|
438
209
|
"created_at": string;
|
|
439
210
|
"updated_at": string;
|
|
440
211
|
"enrollment_id"?: number | null;
|
|
@@ -444,8 +215,8 @@ export interface LeadShowGetResponseData extends JsonObject {
|
|
|
444
215
|
"active_at"?: string | null;
|
|
445
216
|
"is_active_status"?: boolean | null;
|
|
446
217
|
"is_sos_assignee"?: boolean | null;
|
|
447
|
-
"workflow"?:
|
|
448
|
-
"workflow_node"?:
|
|
218
|
+
"workflow"?: BackendJson<"WorkflowResponse"> | null;
|
|
219
|
+
"workflow_node"?: BackendJson<"WorkflowNodeResponse"> | null;
|
|
449
220
|
"is_in_reminder"?: boolean | null;
|
|
450
221
|
"meta_data"?: JsonValue | null;
|
|
451
222
|
}
|
|
@@ -473,50 +244,13 @@ export interface LeadUpdatePutInput extends JsonObject {
|
|
|
473
244
|
"assignee_profile_id"?: string | null;
|
|
474
245
|
}
|
|
475
246
|
/** Backend response type: LeadResponse. */
|
|
476
|
-
export interface LeadUpdatePutResponseDataCreator extends JsonObject {
|
|
477
|
-
"id": string;
|
|
478
|
-
"first_name_fa"?: string | null;
|
|
479
|
-
"last_name_fa"?: string | null;
|
|
480
|
-
"phone"?: string | null;
|
|
481
|
-
}
|
|
482
|
-
export interface LeadUpdatePutResponseDataProfile extends JsonObject {
|
|
483
|
-
"id": string;
|
|
484
|
-
"first_name_fa"?: string | null;
|
|
485
|
-
"last_name_fa"?: string | null;
|
|
486
|
-
"phone"?: string | null;
|
|
487
|
-
}
|
|
488
|
-
export interface LeadUpdatePutResponseDataWorkflow extends JsonObject {
|
|
489
|
-
"id": string;
|
|
490
|
-
"name": string;
|
|
491
|
-
"slug": string;
|
|
492
|
-
"acquire_flags": string[];
|
|
493
|
-
"priority": number;
|
|
494
|
-
"can_create_lead": boolean;
|
|
495
|
-
"actions"?: JsonValue | null;
|
|
496
|
-
"hint"?: string | null;
|
|
497
|
-
"created_at": string;
|
|
498
|
-
"updated_at": string;
|
|
499
|
-
}
|
|
500
|
-
export interface LeadUpdatePutResponseDataWorkflowNode extends JsonObject {
|
|
501
|
-
"id": string;
|
|
502
|
-
"name": string;
|
|
503
|
-
"slug": string;
|
|
504
|
-
"priority": number;
|
|
505
|
-
"workflow_id": string;
|
|
506
|
-
"is_draggable_in": boolean;
|
|
507
|
-
"is_draggable_out": boolean;
|
|
508
|
-
"actions"?: JsonValue | null;
|
|
509
|
-
"auto_win": boolean;
|
|
510
|
-
"created_at": string;
|
|
511
|
-
"updated_at": string;
|
|
512
|
-
}
|
|
513
247
|
export interface LeadUpdatePutResponseData extends JsonObject {
|
|
514
248
|
"id": string;
|
|
515
249
|
"profile_id"?: string | null;
|
|
516
250
|
"title"?: string | null;
|
|
517
251
|
"description"?: string | null;
|
|
518
252
|
"creator_id": string;
|
|
519
|
-
"creator"?:
|
|
253
|
+
"creator"?: BackendJson<"ProfileSummary"> | null;
|
|
520
254
|
"workflow_id"?: string | null;
|
|
521
255
|
"workflow_node_id"?: string | null;
|
|
522
256
|
"campaign_id"?: string | null;
|
|
@@ -525,7 +259,7 @@ export interface LeadUpdatePutResponseData extends JsonObject {
|
|
|
525
259
|
"foreign_key"?: string | null;
|
|
526
260
|
"task_priority": number;
|
|
527
261
|
"flags": string[];
|
|
528
|
-
"profile"?:
|
|
262
|
+
"profile"?: BackendJson<"ProfileSummary"> | null;
|
|
529
263
|
"created_at": string;
|
|
530
264
|
"updated_at": string;
|
|
531
265
|
"enrollment_id"?: number | null;
|
|
@@ -535,58 +269,21 @@ export interface LeadUpdatePutResponseData extends JsonObject {
|
|
|
535
269
|
"active_at"?: string | null;
|
|
536
270
|
"is_active_status"?: boolean | null;
|
|
537
271
|
"is_sos_assignee"?: boolean | null;
|
|
538
|
-
"workflow"?:
|
|
539
|
-
"workflow_node"?:
|
|
272
|
+
"workflow"?: BackendJson<"WorkflowResponse"> | null;
|
|
273
|
+
"workflow_node"?: BackendJson<"WorkflowNodeResponse"> | null;
|
|
540
274
|
"is_in_reminder"?: boolean | null;
|
|
541
275
|
"meta_data"?: JsonValue | null;
|
|
542
276
|
}
|
|
543
277
|
export interface LeadUpdatePutResponse extends ApiEnvelope<LeadUpdatePutResponseData> {
|
|
544
278
|
}
|
|
545
279
|
/** Backend response type: LeadResponse. */
|
|
546
|
-
export interface LeadCheckStatusGetResponseDataCreator extends JsonObject {
|
|
547
|
-
"id": string;
|
|
548
|
-
"first_name_fa"?: string | null;
|
|
549
|
-
"last_name_fa"?: string | null;
|
|
550
|
-
"phone"?: string | null;
|
|
551
|
-
}
|
|
552
|
-
export interface LeadCheckStatusGetResponseDataProfile extends JsonObject {
|
|
553
|
-
"id": string;
|
|
554
|
-
"first_name_fa"?: string | null;
|
|
555
|
-
"last_name_fa"?: string | null;
|
|
556
|
-
"phone"?: string | null;
|
|
557
|
-
}
|
|
558
|
-
export interface LeadCheckStatusGetResponseDataWorkflow extends JsonObject {
|
|
559
|
-
"id": string;
|
|
560
|
-
"name": string;
|
|
561
|
-
"slug": string;
|
|
562
|
-
"acquire_flags": string[];
|
|
563
|
-
"priority": number;
|
|
564
|
-
"can_create_lead": boolean;
|
|
565
|
-
"actions"?: JsonValue | null;
|
|
566
|
-
"hint"?: string | null;
|
|
567
|
-
"created_at": string;
|
|
568
|
-
"updated_at": string;
|
|
569
|
-
}
|
|
570
|
-
export interface LeadCheckStatusGetResponseDataWorkflowNode extends JsonObject {
|
|
571
|
-
"id": string;
|
|
572
|
-
"name": string;
|
|
573
|
-
"slug": string;
|
|
574
|
-
"priority": number;
|
|
575
|
-
"workflow_id": string;
|
|
576
|
-
"is_draggable_in": boolean;
|
|
577
|
-
"is_draggable_out": boolean;
|
|
578
|
-
"actions"?: JsonValue | null;
|
|
579
|
-
"auto_win": boolean;
|
|
580
|
-
"created_at": string;
|
|
581
|
-
"updated_at": string;
|
|
582
|
-
}
|
|
583
280
|
export interface LeadCheckStatusGetResponseData extends JsonObject {
|
|
584
281
|
"id": string;
|
|
585
282
|
"profile_id"?: string | null;
|
|
586
283
|
"title"?: string | null;
|
|
587
284
|
"description"?: string | null;
|
|
588
285
|
"creator_id": string;
|
|
589
|
-
"creator"?:
|
|
286
|
+
"creator"?: BackendJson<"ProfileSummary"> | null;
|
|
590
287
|
"workflow_id"?: string | null;
|
|
591
288
|
"workflow_node_id"?: string | null;
|
|
592
289
|
"campaign_id"?: string | null;
|
|
@@ -595,7 +292,7 @@ export interface LeadCheckStatusGetResponseData extends JsonObject {
|
|
|
595
292
|
"foreign_key"?: string | null;
|
|
596
293
|
"task_priority": number;
|
|
597
294
|
"flags": string[];
|
|
598
|
-
"profile"?:
|
|
295
|
+
"profile"?: BackendJson<"ProfileSummary"> | null;
|
|
599
296
|
"created_at": string;
|
|
600
297
|
"updated_at": string;
|
|
601
298
|
"enrollment_id"?: number | null;
|
|
@@ -605,62 +302,16 @@ export interface LeadCheckStatusGetResponseData extends JsonObject {
|
|
|
605
302
|
"active_at"?: string | null;
|
|
606
303
|
"is_active_status"?: boolean | null;
|
|
607
304
|
"is_sos_assignee"?: boolean | null;
|
|
608
|
-
"workflow"?:
|
|
609
|
-
"workflow_node"?:
|
|
305
|
+
"workflow"?: BackendJson<"WorkflowResponse"> | null;
|
|
306
|
+
"workflow_node"?: BackendJson<"WorkflowNodeResponse"> | null;
|
|
610
307
|
"is_in_reminder"?: boolean | null;
|
|
611
308
|
"meta_data"?: JsonValue | null;
|
|
612
309
|
}
|
|
613
310
|
export interface LeadCheckStatusGetResponse extends ApiEnvelope<LeadCheckStatusGetResponseData> {
|
|
614
311
|
}
|
|
615
312
|
/** Backend response type: LeadLogListResponse. */
|
|
616
|
-
export interface LeadListLogsGetResponseDataLeadLogsProfile extends JsonObject {
|
|
617
|
-
"id": string;
|
|
618
|
-
"first_name_fa"?: string | null;
|
|
619
|
-
"last_name_fa"?: string | null;
|
|
620
|
-
"phone"?: string | null;
|
|
621
|
-
}
|
|
622
|
-
export interface LeadListLogsGetResponseDataLeadLogsFromWorkflowNode extends JsonObject {
|
|
623
|
-
"id": string;
|
|
624
|
-
"name": string;
|
|
625
|
-
"slug": string;
|
|
626
|
-
"priority": number;
|
|
627
|
-
"workflow_id": string;
|
|
628
|
-
"is_draggable_in": boolean;
|
|
629
|
-
"is_draggable_out": boolean;
|
|
630
|
-
"actions"?: JsonValue | null;
|
|
631
|
-
"auto_win": boolean;
|
|
632
|
-
"created_at": string;
|
|
633
|
-
"updated_at": string;
|
|
634
|
-
}
|
|
635
|
-
export interface LeadListLogsGetResponseDataLeadLogsToWorkflowNode extends JsonObject {
|
|
636
|
-
"id": string;
|
|
637
|
-
"name": string;
|
|
638
|
-
"slug": string;
|
|
639
|
-
"priority": number;
|
|
640
|
-
"workflow_id": string;
|
|
641
|
-
"is_draggable_in": boolean;
|
|
642
|
-
"is_draggable_out": boolean;
|
|
643
|
-
"actions"?: JsonValue | null;
|
|
644
|
-
"auto_win": boolean;
|
|
645
|
-
"created_at": string;
|
|
646
|
-
"updated_at": string;
|
|
647
|
-
}
|
|
648
|
-
export interface LeadListLogsGetResponseDataLeadLogs extends JsonObject {
|
|
649
|
-
"id": string;
|
|
650
|
-
"from_workflow_node_id"?: string | null;
|
|
651
|
-
"to_workflow_node_id"?: string | null;
|
|
652
|
-
"type": string;
|
|
653
|
-
"profile_id": string;
|
|
654
|
-
"profile"?: LeadListLogsGetResponseDataLeadLogsProfile | null;
|
|
655
|
-
"from_status"?: string | null;
|
|
656
|
-
"to_status"?: string | null;
|
|
657
|
-
"from_workflow_node"?: LeadListLogsGetResponseDataLeadLogsFromWorkflowNode | null;
|
|
658
|
-
"to_workflow_node"?: LeadListLogsGetResponseDataLeadLogsToWorkflowNode | null;
|
|
659
|
-
"created_at": string;
|
|
660
|
-
"updated_at": string;
|
|
661
|
-
}
|
|
662
313
|
export interface LeadListLogsGetResponseData extends JsonObject {
|
|
663
|
-
"lead_logs":
|
|
314
|
+
"lead_logs": BackendJson<"LeadLogResponse">[];
|
|
664
315
|
}
|
|
665
316
|
export interface LeadListLogsGetResponse extends ApiEnvelope<LeadListLogsGetResponseData> {
|
|
666
317
|
}
|
|
@@ -673,49 +324,17 @@ export interface LeadCreateLogPostInput extends JsonObject {
|
|
|
673
324
|
"type": string;
|
|
674
325
|
}
|
|
675
326
|
/** Backend response type: LeadLogResponse. */
|
|
676
|
-
export interface LeadCreateLogPostResponseDataProfile extends JsonObject {
|
|
677
|
-
"id": string;
|
|
678
|
-
"first_name_fa"?: string | null;
|
|
679
|
-
"last_name_fa"?: string | null;
|
|
680
|
-
"phone"?: string | null;
|
|
681
|
-
}
|
|
682
|
-
export interface LeadCreateLogPostResponseDataFromWorkflowNode extends JsonObject {
|
|
683
|
-
"id": string;
|
|
684
|
-
"name": string;
|
|
685
|
-
"slug": string;
|
|
686
|
-
"priority": number;
|
|
687
|
-
"workflow_id": string;
|
|
688
|
-
"is_draggable_in": boolean;
|
|
689
|
-
"is_draggable_out": boolean;
|
|
690
|
-
"actions"?: JsonValue | null;
|
|
691
|
-
"auto_win": boolean;
|
|
692
|
-
"created_at": string;
|
|
693
|
-
"updated_at": string;
|
|
694
|
-
}
|
|
695
|
-
export interface LeadCreateLogPostResponseDataToWorkflowNode extends JsonObject {
|
|
696
|
-
"id": string;
|
|
697
|
-
"name": string;
|
|
698
|
-
"slug": string;
|
|
699
|
-
"priority": number;
|
|
700
|
-
"workflow_id": string;
|
|
701
|
-
"is_draggable_in": boolean;
|
|
702
|
-
"is_draggable_out": boolean;
|
|
703
|
-
"actions"?: JsonValue | null;
|
|
704
|
-
"auto_win": boolean;
|
|
705
|
-
"created_at": string;
|
|
706
|
-
"updated_at": string;
|
|
707
|
-
}
|
|
708
327
|
export interface LeadCreateLogPostResponseData extends JsonObject {
|
|
709
328
|
"id": string;
|
|
710
329
|
"from_workflow_node_id"?: string | null;
|
|
711
330
|
"to_workflow_node_id"?: string | null;
|
|
712
331
|
"type": string;
|
|
713
332
|
"profile_id": string;
|
|
714
|
-
"profile"?:
|
|
333
|
+
"profile"?: BackendJson<"ProfileSummary"> | null;
|
|
715
334
|
"from_status"?: string | null;
|
|
716
335
|
"to_status"?: string | null;
|
|
717
|
-
"from_workflow_node"?:
|
|
718
|
-
"to_workflow_node"?:
|
|
336
|
+
"from_workflow_node"?: BackendJson<"WorkflowNodeResponse"> | null;
|
|
337
|
+
"to_workflow_node"?: BackendJson<"WorkflowNodeResponse"> | null;
|
|
719
338
|
"created_at": string;
|
|
720
339
|
"updated_at": string;
|
|
721
340
|
}
|
|
@@ -725,49 +344,17 @@ export interface LeadCreateLogPostResponse extends ApiEnvelope<LeadCreateLogPost
|
|
|
725
344
|
export interface LeadDestroyLogDeleteResponse extends ApiEnvelope<boolean> {
|
|
726
345
|
}
|
|
727
346
|
/** Backend response type: LeadLogResponse. */
|
|
728
|
-
export interface LeadShowLogGetResponseDataProfile extends JsonObject {
|
|
729
|
-
"id": string;
|
|
730
|
-
"first_name_fa"?: string | null;
|
|
731
|
-
"last_name_fa"?: string | null;
|
|
732
|
-
"phone"?: string | null;
|
|
733
|
-
}
|
|
734
|
-
export interface LeadShowLogGetResponseDataFromWorkflowNode extends JsonObject {
|
|
735
|
-
"id": string;
|
|
736
|
-
"name": string;
|
|
737
|
-
"slug": string;
|
|
738
|
-
"priority": number;
|
|
739
|
-
"workflow_id": string;
|
|
740
|
-
"is_draggable_in": boolean;
|
|
741
|
-
"is_draggable_out": boolean;
|
|
742
|
-
"actions"?: JsonValue | null;
|
|
743
|
-
"auto_win": boolean;
|
|
744
|
-
"created_at": string;
|
|
745
|
-
"updated_at": string;
|
|
746
|
-
}
|
|
747
|
-
export interface LeadShowLogGetResponseDataToWorkflowNode extends JsonObject {
|
|
748
|
-
"id": string;
|
|
749
|
-
"name": string;
|
|
750
|
-
"slug": string;
|
|
751
|
-
"priority": number;
|
|
752
|
-
"workflow_id": string;
|
|
753
|
-
"is_draggable_in": boolean;
|
|
754
|
-
"is_draggable_out": boolean;
|
|
755
|
-
"actions"?: JsonValue | null;
|
|
756
|
-
"auto_win": boolean;
|
|
757
|
-
"created_at": string;
|
|
758
|
-
"updated_at": string;
|
|
759
|
-
}
|
|
760
347
|
export interface LeadShowLogGetResponseData extends JsonObject {
|
|
761
348
|
"id": string;
|
|
762
349
|
"from_workflow_node_id"?: string | null;
|
|
763
350
|
"to_workflow_node_id"?: string | null;
|
|
764
351
|
"type": string;
|
|
765
352
|
"profile_id": string;
|
|
766
|
-
"profile"?:
|
|
353
|
+
"profile"?: BackendJson<"ProfileSummary"> | null;
|
|
767
354
|
"from_status"?: string | null;
|
|
768
355
|
"to_status"?: string | null;
|
|
769
|
-
"from_workflow_node"?:
|
|
770
|
-
"to_workflow_node"?:
|
|
356
|
+
"from_workflow_node"?: BackendJson<"WorkflowNodeResponse"> | null;
|
|
357
|
+
"to_workflow_node"?: BackendJson<"WorkflowNodeResponse"> | null;
|
|
771
358
|
"created_at": string;
|
|
772
359
|
"updated_at": string;
|
|
773
360
|
}
|
|
@@ -782,49 +369,17 @@ export interface LeadUpdateLogPutInput extends JsonObject {
|
|
|
782
369
|
"type"?: string | null;
|
|
783
370
|
}
|
|
784
371
|
/** Backend response type: LeadLogResponse. */
|
|
785
|
-
export interface LeadUpdateLogPutResponseDataProfile extends JsonObject {
|
|
786
|
-
"id": string;
|
|
787
|
-
"first_name_fa"?: string | null;
|
|
788
|
-
"last_name_fa"?: string | null;
|
|
789
|
-
"phone"?: string | null;
|
|
790
|
-
}
|
|
791
|
-
export interface LeadUpdateLogPutResponseDataFromWorkflowNode extends JsonObject {
|
|
792
|
-
"id": string;
|
|
793
|
-
"name": string;
|
|
794
|
-
"slug": string;
|
|
795
|
-
"priority": number;
|
|
796
|
-
"workflow_id": string;
|
|
797
|
-
"is_draggable_in": boolean;
|
|
798
|
-
"is_draggable_out": boolean;
|
|
799
|
-
"actions"?: JsonValue | null;
|
|
800
|
-
"auto_win": boolean;
|
|
801
|
-
"created_at": string;
|
|
802
|
-
"updated_at": string;
|
|
803
|
-
}
|
|
804
|
-
export interface LeadUpdateLogPutResponseDataToWorkflowNode extends JsonObject {
|
|
805
|
-
"id": string;
|
|
806
|
-
"name": string;
|
|
807
|
-
"slug": string;
|
|
808
|
-
"priority": number;
|
|
809
|
-
"workflow_id": string;
|
|
810
|
-
"is_draggable_in": boolean;
|
|
811
|
-
"is_draggable_out": boolean;
|
|
812
|
-
"actions"?: JsonValue | null;
|
|
813
|
-
"auto_win": boolean;
|
|
814
|
-
"created_at": string;
|
|
815
|
-
"updated_at": string;
|
|
816
|
-
}
|
|
817
372
|
export interface LeadUpdateLogPutResponseData extends JsonObject {
|
|
818
373
|
"id": string;
|
|
819
374
|
"from_workflow_node_id"?: string | null;
|
|
820
375
|
"to_workflow_node_id"?: string | null;
|
|
821
376
|
"type": string;
|
|
822
377
|
"profile_id": string;
|
|
823
|
-
"profile"?:
|
|
378
|
+
"profile"?: BackendJson<"ProfileSummary"> | null;
|
|
824
379
|
"from_status"?: string | null;
|
|
825
380
|
"to_status"?: string | null;
|
|
826
|
-
"from_workflow_node"?:
|
|
827
|
-
"to_workflow_node"?:
|
|
381
|
+
"from_workflow_node"?: BackendJson<"WorkflowNodeResponse"> | null;
|
|
382
|
+
"to_workflow_node"?: BackendJson<"WorkflowNodeResponse"> | null;
|
|
828
383
|
"created_at": string;
|
|
829
384
|
"updated_at": string;
|
|
830
385
|
}
|
|
@@ -836,50 +391,13 @@ export interface LeadMoveToDonePutInput extends JsonObject {
|
|
|
836
391
|
"assignee_profile_id"?: string | null;
|
|
837
392
|
}
|
|
838
393
|
/** Backend response type: LeadResponse. */
|
|
839
|
-
export interface LeadMoveToDonePutResponseDataCreator extends JsonObject {
|
|
840
|
-
"id": string;
|
|
841
|
-
"first_name_fa"?: string | null;
|
|
842
|
-
"last_name_fa"?: string | null;
|
|
843
|
-
"phone"?: string | null;
|
|
844
|
-
}
|
|
845
|
-
export interface LeadMoveToDonePutResponseDataProfile extends JsonObject {
|
|
846
|
-
"id": string;
|
|
847
|
-
"first_name_fa"?: string | null;
|
|
848
|
-
"last_name_fa"?: string | null;
|
|
849
|
-
"phone"?: string | null;
|
|
850
|
-
}
|
|
851
|
-
export interface LeadMoveToDonePutResponseDataWorkflow extends JsonObject {
|
|
852
|
-
"id": string;
|
|
853
|
-
"name": string;
|
|
854
|
-
"slug": string;
|
|
855
|
-
"acquire_flags": string[];
|
|
856
|
-
"priority": number;
|
|
857
|
-
"can_create_lead": boolean;
|
|
858
|
-
"actions"?: JsonValue | null;
|
|
859
|
-
"hint"?: string | null;
|
|
860
|
-
"created_at": string;
|
|
861
|
-
"updated_at": string;
|
|
862
|
-
}
|
|
863
|
-
export interface LeadMoveToDonePutResponseDataWorkflowNode extends JsonObject {
|
|
864
|
-
"id": string;
|
|
865
|
-
"name": string;
|
|
866
|
-
"slug": string;
|
|
867
|
-
"priority": number;
|
|
868
|
-
"workflow_id": string;
|
|
869
|
-
"is_draggable_in": boolean;
|
|
870
|
-
"is_draggable_out": boolean;
|
|
871
|
-
"actions"?: JsonValue | null;
|
|
872
|
-
"auto_win": boolean;
|
|
873
|
-
"created_at": string;
|
|
874
|
-
"updated_at": string;
|
|
875
|
-
}
|
|
876
394
|
export interface LeadMoveToDonePutResponseData extends JsonObject {
|
|
877
395
|
"id": string;
|
|
878
396
|
"profile_id"?: string | null;
|
|
879
397
|
"title"?: string | null;
|
|
880
398
|
"description"?: string | null;
|
|
881
399
|
"creator_id": string;
|
|
882
|
-
"creator"?:
|
|
400
|
+
"creator"?: BackendJson<"ProfileSummary"> | null;
|
|
883
401
|
"workflow_id"?: string | null;
|
|
884
402
|
"workflow_node_id"?: string | null;
|
|
885
403
|
"campaign_id"?: string | null;
|
|
@@ -888,7 +406,7 @@ export interface LeadMoveToDonePutResponseData extends JsonObject {
|
|
|
888
406
|
"foreign_key"?: string | null;
|
|
889
407
|
"task_priority": number;
|
|
890
408
|
"flags": string[];
|
|
891
|
-
"profile"?:
|
|
409
|
+
"profile"?: BackendJson<"ProfileSummary"> | null;
|
|
892
410
|
"created_at": string;
|
|
893
411
|
"updated_at": string;
|
|
894
412
|
"enrollment_id"?: number | null;
|
|
@@ -898,257 +416,88 @@ export interface LeadMoveToDonePutResponseData extends JsonObject {
|
|
|
898
416
|
"active_at"?: string | null;
|
|
899
417
|
"is_active_status"?: boolean | null;
|
|
900
418
|
"is_sos_assignee"?: boolean | null;
|
|
901
|
-
"workflow"?:
|
|
902
|
-
"workflow_node"?:
|
|
419
|
+
"workflow"?: BackendJson<"WorkflowResponse"> | null;
|
|
420
|
+
"workflow_node"?: BackendJson<"WorkflowNodeResponse"> | null;
|
|
903
421
|
"is_in_reminder"?: boolean | null;
|
|
904
422
|
"meta_data"?: JsonValue | null;
|
|
905
423
|
}
|
|
906
424
|
export interface LeadMoveToDonePutResponse extends ApiEnvelope<LeadMoveToDonePutResponseData> {
|
|
907
425
|
}
|
|
908
426
|
/** Backend response type: LeadTouchListResponse. */
|
|
909
|
-
export interface LeadListTouchesGetResponseDataLeadTouchProfile extends JsonObject {
|
|
910
|
-
"id": string;
|
|
911
|
-
"first_name_fa"?: string | null;
|
|
912
|
-
"last_name_fa"?: string | null;
|
|
913
|
-
"phone"?: string | null;
|
|
914
|
-
}
|
|
915
|
-
export interface LeadListTouchesGetResponseDataLeadTouch extends JsonObject {
|
|
916
|
-
"id": string;
|
|
917
|
-
"lead_id": string;
|
|
918
|
-
"profile_id": string;
|
|
919
|
-
"profile"?: LeadListTouchesGetResponseDataLeadTouchProfile | null;
|
|
920
|
-
"description"?: string | null;
|
|
921
|
-
"status": string;
|
|
922
|
-
"created_at": string;
|
|
923
|
-
"updated_at": string;
|
|
924
|
-
}
|
|
925
427
|
export interface LeadListTouchesGetResponseData extends JsonObject {
|
|
926
|
-
"lead_touch":
|
|
927
|
-
}
|
|
928
|
-
export interface LeadListTouchesGetResponse extends ApiEnvelope<LeadListTouchesGetResponseData> {
|
|
929
|
-
}
|
|
930
|
-
/** Backend request type: CreateLeadTouchRequest. */
|
|
931
|
-
export interface LeadCreateTouchPostInput extends JsonObject {
|
|
932
|
-
"description"?: string | null;
|
|
933
|
-
"status": string;
|
|
934
|
-
}
|
|
935
|
-
/** Backend response type: LeadTouchResponse. */
|
|
936
|
-
export interface LeadCreateTouchPostResponseDataProfile extends JsonObject {
|
|
937
|
-
"id": string;
|
|
938
|
-
"first_name_fa"?: string | null;
|
|
939
|
-
"last_name_fa"?: string | null;
|
|
940
|
-
"phone"?: string | null;
|
|
941
|
-
}
|
|
942
|
-
export interface LeadCreateTouchPostResponseData extends JsonObject {
|
|
943
|
-
"id": string;
|
|
944
|
-
"lead_id": string;
|
|
945
|
-
"profile_id": string;
|
|
946
|
-
"profile"?: LeadCreateTouchPostResponseDataProfile | null;
|
|
947
|
-
"description"?: string | null;
|
|
948
|
-
"status": string;
|
|
949
|
-
"created_at": string;
|
|
950
|
-
"updated_at": string;
|
|
951
|
-
}
|
|
952
|
-
export interface LeadCreateTouchPostResponse extends ApiEnvelope<LeadCreateTouchPostResponseData> {
|
|
953
|
-
}
|
|
954
|
-
/** Backend response type: bool. */
|
|
955
|
-
export interface LeadDestroyTouchDeleteResponse extends ApiEnvelope<boolean> {
|
|
956
|
-
}
|
|
957
|
-
/** Backend response type: LeadTouchResponse. */
|
|
958
|
-
export interface LeadShowTouchGetResponseDataProfile extends JsonObject {
|
|
959
|
-
"id": string;
|
|
960
|
-
"first_name_fa"?: string | null;
|
|
961
|
-
"last_name_fa"?: string | null;
|
|
962
|
-
"phone"?: string | null;
|
|
963
|
-
}
|
|
964
|
-
export interface LeadShowTouchGetResponseData extends JsonObject {
|
|
965
|
-
"id": string;
|
|
966
|
-
"lead_id": string;
|
|
967
|
-
"profile_id": string;
|
|
968
|
-
"profile"?: LeadShowTouchGetResponseDataProfile | null;
|
|
969
|
-
"description"?: string | null;
|
|
970
|
-
"status": string;
|
|
971
|
-
"created_at": string;
|
|
972
|
-
"updated_at": string;
|
|
973
|
-
}
|
|
974
|
-
export interface LeadShowTouchGetResponse extends ApiEnvelope<LeadShowTouchGetResponseData> {
|
|
975
|
-
}
|
|
976
|
-
/** Backend request type: UpdateLeadTouchRequest. */
|
|
977
|
-
export interface LeadUpdateTouchPutInput extends JsonObject {
|
|
978
|
-
"description"?: string | null;
|
|
979
|
-
"status"?: string | null;
|
|
980
|
-
}
|
|
981
|
-
/** Backend response type: LeadTouchResponse. */
|
|
982
|
-
export interface LeadUpdateTouchPutResponseDataProfile extends JsonObject {
|
|
983
|
-
"id": string;
|
|
984
|
-
"first_name_fa"?: string | null;
|
|
985
|
-
"last_name_fa"?: string | null;
|
|
986
|
-
"phone"?: string | null;
|
|
987
|
-
}
|
|
988
|
-
export interface LeadUpdateTouchPutResponseData extends JsonObject {
|
|
989
|
-
"id": string;
|
|
990
|
-
"lead_id": string;
|
|
991
|
-
"profile_id": string;
|
|
992
|
-
"profile"?: LeadUpdateTouchPutResponseDataProfile | null;
|
|
993
|
-
"description"?: string | null;
|
|
994
|
-
"status": string;
|
|
995
|
-
"created_at": string;
|
|
996
|
-
"updated_at": string;
|
|
997
|
-
}
|
|
998
|
-
export interface LeadUpdateTouchPutResponse extends ApiEnvelope<LeadUpdateTouchPutResponseData> {
|
|
999
|
-
}
|
|
1000
|
-
/** Backend request type: CreateDeveloperLeadRequest. */
|
|
1001
|
-
export interface LeadCreateDeveloperPostInput extends JsonObject {
|
|
1002
|
-
"title": string;
|
|
1003
|
-
"description": string;
|
|
1004
|
-
"task_priority"?: number | null;
|
|
1005
|
-
"flags"?: string[];
|
|
1006
|
-
"assignee_ids": string[];
|
|
1007
|
-
"meta"?: JsonValue | null;
|
|
1008
|
-
}
|
|
1009
|
-
/** Backend response type: LeadResponse. */
|
|
1010
|
-
export interface LeadCreateDeveloperPostResponseDataCreator extends JsonObject {
|
|
1011
|
-
"id": string;
|
|
1012
|
-
"first_name_fa"?: string | null;
|
|
1013
|
-
"last_name_fa"?: string | null;
|
|
1014
|
-
"phone"?: string | null;
|
|
1015
|
-
}
|
|
1016
|
-
export interface LeadCreateDeveloperPostResponseDataProfile extends JsonObject {
|
|
1017
|
-
"id": string;
|
|
1018
|
-
"first_name_fa"?: string | null;
|
|
1019
|
-
"last_name_fa"?: string | null;
|
|
1020
|
-
"phone"?: string | null;
|
|
1021
|
-
}
|
|
1022
|
-
export interface LeadCreateDeveloperPostResponseDataWorkflow extends JsonObject {
|
|
1023
|
-
"id": string;
|
|
1024
|
-
"name": string;
|
|
1025
|
-
"slug": string;
|
|
1026
|
-
"acquire_flags": string[];
|
|
1027
|
-
"priority": number;
|
|
1028
|
-
"can_create_lead": boolean;
|
|
1029
|
-
"actions"?: JsonValue | null;
|
|
1030
|
-
"hint"?: string | null;
|
|
1031
|
-
"created_at": string;
|
|
1032
|
-
"updated_at": string;
|
|
1033
|
-
}
|
|
1034
|
-
export interface LeadCreateDeveloperPostResponseDataWorkflowNode extends JsonObject {
|
|
1035
|
-
"id": string;
|
|
1036
|
-
"name": string;
|
|
1037
|
-
"slug": string;
|
|
1038
|
-
"priority": number;
|
|
1039
|
-
"workflow_id": string;
|
|
1040
|
-
"is_draggable_in": boolean;
|
|
1041
|
-
"is_draggable_out": boolean;
|
|
1042
|
-
"actions"?: JsonValue | null;
|
|
1043
|
-
"auto_win": boolean;
|
|
1044
|
-
"created_at": string;
|
|
1045
|
-
"updated_at": string;
|
|
1046
|
-
}
|
|
1047
|
-
export interface LeadCreateDeveloperPostResponseData extends JsonObject {
|
|
1048
|
-
"id": string;
|
|
1049
|
-
"profile_id"?: string | null;
|
|
1050
|
-
"title"?: string | null;
|
|
1051
|
-
"description"?: string | null;
|
|
1052
|
-
"creator_id": string;
|
|
1053
|
-
"creator"?: LeadCreateDeveloperPostResponseDataCreator | null;
|
|
1054
|
-
"workflow_id"?: string | null;
|
|
1055
|
-
"workflow_node_id"?: string | null;
|
|
1056
|
-
"campaign_id"?: string | null;
|
|
1057
|
-
"source_id"?: string | null;
|
|
1058
|
-
"task_status": string;
|
|
1059
|
-
"foreign_key"?: string | null;
|
|
1060
|
-
"task_priority": number;
|
|
1061
|
-
"flags": string[];
|
|
1062
|
-
"profile"?: LeadCreateDeveloperPostResponseDataProfile | null;
|
|
1063
|
-
"created_at": string;
|
|
1064
|
-
"updated_at": string;
|
|
1065
|
-
"enrollment_id"?: number | null;
|
|
1066
|
-
"enrollment_course_id"?: number | null;
|
|
1067
|
-
"installment_id"?: number | null;
|
|
1068
|
-
"installment_enrollment_id"?: number | null;
|
|
1069
|
-
"active_at"?: string | null;
|
|
1070
|
-
"is_active_status"?: boolean | null;
|
|
1071
|
-
"is_sos_assignee"?: boolean | null;
|
|
1072
|
-
"workflow"?: LeadCreateDeveloperPostResponseDataWorkflow | null;
|
|
1073
|
-
"workflow_node"?: LeadCreateDeveloperPostResponseDataWorkflowNode | null;
|
|
1074
|
-
"is_in_reminder"?: boolean | null;
|
|
1075
|
-
"meta_data"?: JsonValue | null;
|
|
1076
|
-
}
|
|
1077
|
-
export interface LeadCreateDeveloperPostResponse extends ApiEnvelope<LeadCreateDeveloperPostResponseData> {
|
|
428
|
+
"lead_touch": BackendJson<"LeadTouchResponse">[];
|
|
1078
429
|
}
|
|
1079
|
-
|
|
1080
|
-
export interface LeadDeveloperReadyGetQuery extends QueryParams {
|
|
1081
|
-
"sort"?: string | null;
|
|
430
|
+
export interface LeadListTouchesGetResponse extends ApiEnvelope<LeadListTouchesGetResponseData> {
|
|
1082
431
|
}
|
|
1083
|
-
/** Backend
|
|
1084
|
-
export interface
|
|
1085
|
-
"
|
|
1086
|
-
"
|
|
1087
|
-
"last_name_fa"?: string | null;
|
|
1088
|
-
"phone"?: string | null;
|
|
432
|
+
/** Backend request type: CreateLeadTouchRequest. */
|
|
433
|
+
export interface LeadCreateTouchPostInput extends JsonObject {
|
|
434
|
+
"description"?: string | null;
|
|
435
|
+
"status": string;
|
|
1089
436
|
}
|
|
1090
|
-
|
|
437
|
+
/** Backend response type: LeadTouchResponse. */
|
|
438
|
+
export interface LeadCreateTouchPostResponseData extends JsonObject {
|
|
1091
439
|
"id": string;
|
|
1092
|
-
"
|
|
1093
|
-
"
|
|
1094
|
-
"
|
|
1095
|
-
"
|
|
1096
|
-
"
|
|
1097
|
-
"is_draggable_out": boolean;
|
|
1098
|
-
"actions"?: JsonValue | null;
|
|
1099
|
-
"auto_win": boolean;
|
|
440
|
+
"lead_id": string;
|
|
441
|
+
"profile_id": string;
|
|
442
|
+
"profile"?: BackendJson<"ProfileSummary"> | null;
|
|
443
|
+
"description"?: string | null;
|
|
444
|
+
"status": string;
|
|
1100
445
|
"created_at": string;
|
|
1101
446
|
"updated_at": string;
|
|
1102
447
|
}
|
|
1103
|
-
export interface
|
|
1104
|
-
"id": string;
|
|
1105
|
-
"name": string;
|
|
1106
|
-
"slug": string;
|
|
1107
|
-
"priority": number;
|
|
1108
|
-
"workflow_id": string;
|
|
1109
|
-
"is_draggable_in": boolean;
|
|
1110
|
-
"is_draggable_out": boolean;
|
|
1111
|
-
"actions"?: JsonValue | null;
|
|
1112
|
-
"auto_win": boolean;
|
|
1113
|
-
"created_at": string;
|
|
1114
|
-
"updated_at": string;
|
|
448
|
+
export interface LeadCreateTouchPostResponse extends ApiEnvelope<LeadCreateTouchPostResponseData> {
|
|
1115
449
|
}
|
|
1116
|
-
|
|
450
|
+
/** Backend response type: bool. */
|
|
451
|
+
export interface LeadDestroyTouchDeleteResponse extends ApiEnvelope<boolean> {
|
|
452
|
+
}
|
|
453
|
+
/** Backend response type: LeadTouchResponse. */
|
|
454
|
+
export interface LeadShowTouchGetResponseData extends JsonObject {
|
|
1117
455
|
"id": string;
|
|
1118
|
-
"
|
|
1119
|
-
"to_workflow_node_id"?: string | null;
|
|
1120
|
-
"type": string;
|
|
456
|
+
"lead_id": string;
|
|
1121
457
|
"profile_id": string;
|
|
1122
|
-
"profile"?:
|
|
1123
|
-
"
|
|
1124
|
-
"
|
|
1125
|
-
"from_workflow_node"?: LeadDeveloperReadyGetResponseDataLeadsLeadLogsFromWorkflowNode | null;
|
|
1126
|
-
"to_workflow_node"?: LeadDeveloperReadyGetResponseDataLeadsLeadLogsToWorkflowNode | null;
|
|
458
|
+
"profile"?: BackendJson<"ProfileSummary"> | null;
|
|
459
|
+
"description"?: string | null;
|
|
460
|
+
"status": string;
|
|
1127
461
|
"created_at": string;
|
|
1128
462
|
"updated_at": string;
|
|
1129
463
|
}
|
|
1130
|
-
export interface
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
"
|
|
464
|
+
export interface LeadShowTouchGetResponse extends ApiEnvelope<LeadShowTouchGetResponseData> {
|
|
465
|
+
}
|
|
466
|
+
/** Backend request type: UpdateLeadTouchRequest. */
|
|
467
|
+
export interface LeadUpdateTouchPutInput extends JsonObject {
|
|
468
|
+
"description"?: string | null;
|
|
469
|
+
"status"?: string | null;
|
|
1135
470
|
}
|
|
1136
|
-
|
|
471
|
+
/** Backend response type: LeadTouchResponse. */
|
|
472
|
+
export interface LeadUpdateTouchPutResponseData extends JsonObject {
|
|
1137
473
|
"id": string;
|
|
1138
474
|
"lead_id": string;
|
|
1139
475
|
"profile_id": string;
|
|
1140
|
-
"profile"?:
|
|
476
|
+
"profile"?: BackendJson<"ProfileSummary"> | null;
|
|
1141
477
|
"description"?: string | null;
|
|
1142
478
|
"status": string;
|
|
1143
479
|
"created_at": string;
|
|
1144
480
|
"updated_at": string;
|
|
1145
481
|
}
|
|
1146
|
-
export interface
|
|
482
|
+
export interface LeadUpdateTouchPutResponse extends ApiEnvelope<LeadUpdateTouchPutResponseData> {
|
|
483
|
+
}
|
|
484
|
+
/** Backend request type: CreateDeveloperLeadRequest. */
|
|
485
|
+
export interface LeadCreateDeveloperPostInput extends JsonObject {
|
|
486
|
+
"title": string;
|
|
487
|
+
"description": string;
|
|
488
|
+
"task_priority"?: number | null;
|
|
489
|
+
"flags"?: string[];
|
|
490
|
+
"assignee_ids": string[];
|
|
491
|
+
"meta"?: JsonValue | null;
|
|
492
|
+
}
|
|
493
|
+
/** Backend response type: LeadResponse. */
|
|
494
|
+
export interface LeadCreateDeveloperPostResponseData extends JsonObject {
|
|
1147
495
|
"id": string;
|
|
1148
496
|
"profile_id"?: string | null;
|
|
1149
497
|
"title"?: string | null;
|
|
1150
498
|
"description"?: string | null;
|
|
1151
499
|
"creator_id": string;
|
|
500
|
+
"creator"?: BackendJson<"ProfileSummary"> | null;
|
|
1152
501
|
"workflow_id"?: string | null;
|
|
1153
502
|
"workflow_node_id"?: string | null;
|
|
1154
503
|
"campaign_id"?: string | null;
|
|
@@ -1157,6 +506,7 @@ export interface LeadDeveloperReadyGetResponseDataLeads extends JsonObject {
|
|
|
1157
506
|
"foreign_key"?: string | null;
|
|
1158
507
|
"task_priority": number;
|
|
1159
508
|
"flags": string[];
|
|
509
|
+
"profile"?: BackendJson<"ProfileSummary"> | null;
|
|
1160
510
|
"created_at": string;
|
|
1161
511
|
"updated_at": string;
|
|
1162
512
|
"enrollment_id"?: number | null;
|
|
@@ -1164,11 +514,22 @@ export interface LeadDeveloperReadyGetResponseDataLeads extends JsonObject {
|
|
|
1164
514
|
"installment_id"?: number | null;
|
|
1165
515
|
"installment_enrollment_id"?: number | null;
|
|
1166
516
|
"active_at"?: string | null;
|
|
1167
|
-
"
|
|
1168
|
-
"
|
|
517
|
+
"is_active_status"?: boolean | null;
|
|
518
|
+
"is_sos_assignee"?: boolean | null;
|
|
519
|
+
"workflow"?: BackendJson<"WorkflowResponse"> | null;
|
|
520
|
+
"workflow_node"?: BackendJson<"WorkflowNodeResponse"> | null;
|
|
521
|
+
"is_in_reminder"?: boolean | null;
|
|
522
|
+
"meta_data"?: JsonValue | null;
|
|
523
|
+
}
|
|
524
|
+
export interface LeadCreateDeveloperPostResponse extends ApiEnvelope<LeadCreateDeveloperPostResponseData> {
|
|
525
|
+
}
|
|
526
|
+
/** Backend query type: LeadListQuery. */
|
|
527
|
+
export interface LeadDeveloperReadyGetQuery extends QueryParams {
|
|
528
|
+
"sort"?: string | null;
|
|
1169
529
|
}
|
|
530
|
+
/** Backend response type: DeveloperReadyLeadListResponse. */
|
|
1170
531
|
export interface LeadDeveloperReadyGetResponseData extends JsonObject {
|
|
1171
|
-
"leads":
|
|
532
|
+
"leads": BackendJson<"DeveloperReadyLeadResponse">[];
|
|
1172
533
|
}
|
|
1173
534
|
export interface LeadDeveloperReadyGetResponse extends ApiEnvelope<LeadDeveloperReadyGetResponseData> {
|
|
1174
535
|
}
|
|
@@ -1179,50 +540,13 @@ export interface LeadByForeignKeyGetQuery extends QueryParams {
|
|
|
1179
540
|
"flags"?: string | null;
|
|
1180
541
|
}
|
|
1181
542
|
/** Backend response type: LeadResponse. */
|
|
1182
|
-
export interface LeadByForeignKeyGetResponseDataCreator extends JsonObject {
|
|
1183
|
-
"id": string;
|
|
1184
|
-
"first_name_fa"?: string | null;
|
|
1185
|
-
"last_name_fa"?: string | null;
|
|
1186
|
-
"phone"?: string | null;
|
|
1187
|
-
}
|
|
1188
|
-
export interface LeadByForeignKeyGetResponseDataProfile extends JsonObject {
|
|
1189
|
-
"id": string;
|
|
1190
|
-
"first_name_fa"?: string | null;
|
|
1191
|
-
"last_name_fa"?: string | null;
|
|
1192
|
-
"phone"?: string | null;
|
|
1193
|
-
}
|
|
1194
|
-
export interface LeadByForeignKeyGetResponseDataWorkflow extends JsonObject {
|
|
1195
|
-
"id": string;
|
|
1196
|
-
"name": string;
|
|
1197
|
-
"slug": string;
|
|
1198
|
-
"acquire_flags": string[];
|
|
1199
|
-
"priority": number;
|
|
1200
|
-
"can_create_lead": boolean;
|
|
1201
|
-
"actions"?: JsonValue | null;
|
|
1202
|
-
"hint"?: string | null;
|
|
1203
|
-
"created_at": string;
|
|
1204
|
-
"updated_at": string;
|
|
1205
|
-
}
|
|
1206
|
-
export interface LeadByForeignKeyGetResponseDataWorkflowNode extends JsonObject {
|
|
1207
|
-
"id": string;
|
|
1208
|
-
"name": string;
|
|
1209
|
-
"slug": string;
|
|
1210
|
-
"priority": number;
|
|
1211
|
-
"workflow_id": string;
|
|
1212
|
-
"is_draggable_in": boolean;
|
|
1213
|
-
"is_draggable_out": boolean;
|
|
1214
|
-
"actions"?: JsonValue | null;
|
|
1215
|
-
"auto_win": boolean;
|
|
1216
|
-
"created_at": string;
|
|
1217
|
-
"updated_at": string;
|
|
1218
|
-
}
|
|
1219
543
|
export interface LeadByForeignKeyGetResponseData extends JsonObject {
|
|
1220
544
|
"id": string;
|
|
1221
545
|
"profile_id"?: string | null;
|
|
1222
546
|
"title"?: string | null;
|
|
1223
547
|
"description"?: string | null;
|
|
1224
548
|
"creator_id": string;
|
|
1225
|
-
"creator"?:
|
|
549
|
+
"creator"?: BackendJson<"ProfileSummary"> | null;
|
|
1226
550
|
"workflow_id"?: string | null;
|
|
1227
551
|
"workflow_node_id"?: string | null;
|
|
1228
552
|
"campaign_id"?: string | null;
|
|
@@ -1231,7 +555,7 @@ export interface LeadByForeignKeyGetResponseData extends JsonObject {
|
|
|
1231
555
|
"foreign_key"?: string | null;
|
|
1232
556
|
"task_priority": number;
|
|
1233
557
|
"flags": string[];
|
|
1234
|
-
"profile"?:
|
|
558
|
+
"profile"?: BackendJson<"ProfileSummary"> | null;
|
|
1235
559
|
"created_at": string;
|
|
1236
560
|
"updated_at": string;
|
|
1237
561
|
"enrollment_id"?: number | null;
|
|
@@ -1241,8 +565,8 @@ export interface LeadByForeignKeyGetResponseData extends JsonObject {
|
|
|
1241
565
|
"active_at"?: string | null;
|
|
1242
566
|
"is_active_status"?: boolean | null;
|
|
1243
567
|
"is_sos_assignee"?: boolean | null;
|
|
1244
|
-
"workflow"?:
|
|
1245
|
-
"workflow_node"?:
|
|
568
|
+
"workflow"?: BackendJson<"WorkflowResponse"> | null;
|
|
569
|
+
"workflow_node"?: BackendJson<"WorkflowNodeResponse"> | null;
|
|
1246
570
|
"is_in_reminder"?: boolean | null;
|
|
1247
571
|
"meta_data"?: JsonValue | null;
|
|
1248
572
|
}
|
|
@@ -1273,50 +597,13 @@ export interface LeadUpdateByForeignKeyPutInput extends JsonObject {
|
|
|
1273
597
|
"assignee_profile_id"?: string | null;
|
|
1274
598
|
}
|
|
1275
599
|
/** Backend response type: LeadResponse. */
|
|
1276
|
-
export interface LeadUpdateByForeignKeyPutResponseDataCreator extends JsonObject {
|
|
1277
|
-
"id": string;
|
|
1278
|
-
"first_name_fa"?: string | null;
|
|
1279
|
-
"last_name_fa"?: string | null;
|
|
1280
|
-
"phone"?: string | null;
|
|
1281
|
-
}
|
|
1282
|
-
export interface LeadUpdateByForeignKeyPutResponseDataProfile extends JsonObject {
|
|
1283
|
-
"id": string;
|
|
1284
|
-
"first_name_fa"?: string | null;
|
|
1285
|
-
"last_name_fa"?: string | null;
|
|
1286
|
-
"phone"?: string | null;
|
|
1287
|
-
}
|
|
1288
|
-
export interface LeadUpdateByForeignKeyPutResponseDataWorkflow extends JsonObject {
|
|
1289
|
-
"id": string;
|
|
1290
|
-
"name": string;
|
|
1291
|
-
"slug": string;
|
|
1292
|
-
"acquire_flags": string[];
|
|
1293
|
-
"priority": number;
|
|
1294
|
-
"can_create_lead": boolean;
|
|
1295
|
-
"actions"?: JsonValue | null;
|
|
1296
|
-
"hint"?: string | null;
|
|
1297
|
-
"created_at": string;
|
|
1298
|
-
"updated_at": string;
|
|
1299
|
-
}
|
|
1300
|
-
export interface LeadUpdateByForeignKeyPutResponseDataWorkflowNode extends JsonObject {
|
|
1301
|
-
"id": string;
|
|
1302
|
-
"name": string;
|
|
1303
|
-
"slug": string;
|
|
1304
|
-
"priority": number;
|
|
1305
|
-
"workflow_id": string;
|
|
1306
|
-
"is_draggable_in": boolean;
|
|
1307
|
-
"is_draggable_out": boolean;
|
|
1308
|
-
"actions"?: JsonValue | null;
|
|
1309
|
-
"auto_win": boolean;
|
|
1310
|
-
"created_at": string;
|
|
1311
|
-
"updated_at": string;
|
|
1312
|
-
}
|
|
1313
600
|
export interface LeadUpdateByForeignKeyPutResponseData extends JsonObject {
|
|
1314
601
|
"id": string;
|
|
1315
602
|
"profile_id"?: string | null;
|
|
1316
603
|
"title"?: string | null;
|
|
1317
604
|
"description"?: string | null;
|
|
1318
605
|
"creator_id": string;
|
|
1319
|
-
"creator"?:
|
|
606
|
+
"creator"?: BackendJson<"ProfileSummary"> | null;
|
|
1320
607
|
"workflow_id"?: string | null;
|
|
1321
608
|
"workflow_node_id"?: string | null;
|
|
1322
609
|
"campaign_id"?: string | null;
|
|
@@ -1325,7 +612,7 @@ export interface LeadUpdateByForeignKeyPutResponseData extends JsonObject {
|
|
|
1325
612
|
"foreign_key"?: string | null;
|
|
1326
613
|
"task_priority": number;
|
|
1327
614
|
"flags": string[];
|
|
1328
|
-
"profile"?:
|
|
615
|
+
"profile"?: BackendJson<"ProfileSummary"> | null;
|
|
1329
616
|
"created_at": string;
|
|
1330
617
|
"updated_at": string;
|
|
1331
618
|
"enrollment_id"?: number | null;
|
|
@@ -1335,8 +622,8 @@ export interface LeadUpdateByForeignKeyPutResponseData extends JsonObject {
|
|
|
1335
622
|
"active_at"?: string | null;
|
|
1336
623
|
"is_active_status"?: boolean | null;
|
|
1337
624
|
"is_sos_assignee"?: boolean | null;
|
|
1338
|
-
"workflow"?:
|
|
1339
|
-
"workflow_node"?:
|
|
625
|
+
"workflow"?: BackendJson<"WorkflowResponse"> | null;
|
|
626
|
+
"workflow_node"?: BackendJson<"WorkflowNodeResponse"> | null;
|
|
1340
627
|
"is_in_reminder"?: boolean | null;
|
|
1341
628
|
"meta_data"?: JsonValue | null;
|
|
1342
629
|
}
|
|
@@ -1349,138 +636,8 @@ export interface LeadLightGetQuery extends QueryParams {
|
|
|
1349
636
|
"page[number]"?: number | null;
|
|
1350
637
|
}
|
|
1351
638
|
/** Backend response type: LeadLightListResponse. */
|
|
1352
|
-
export interface LeadLightGetResponseDataLeadsCreator extends JsonObject {
|
|
1353
|
-
"id": string;
|
|
1354
|
-
"first_name_fa"?: string | null;
|
|
1355
|
-
"last_name_fa"?: string | null;
|
|
1356
|
-
"phone"?: string | null;
|
|
1357
|
-
}
|
|
1358
|
-
export interface LeadLightGetResponseDataLeadsProfile extends JsonObject {
|
|
1359
|
-
"id": string;
|
|
1360
|
-
"first_name_fa"?: string | null;
|
|
1361
|
-
"last_name_fa"?: string | null;
|
|
1362
|
-
"phone"?: string | null;
|
|
1363
|
-
}
|
|
1364
|
-
export interface LeadLightGetResponseDataLeadsWorkflow extends JsonObject {
|
|
1365
|
-
"id": string;
|
|
1366
|
-
"name": string;
|
|
1367
|
-
"slug": string;
|
|
1368
|
-
"acquire_flags": string[];
|
|
1369
|
-
"priority": number;
|
|
1370
|
-
"can_create_lead": boolean;
|
|
1371
|
-
"actions"?: JsonValue | null;
|
|
1372
|
-
"hint"?: string | null;
|
|
1373
|
-
"created_at": string;
|
|
1374
|
-
"updated_at": string;
|
|
1375
|
-
}
|
|
1376
|
-
export interface LeadLightGetResponseDataLeadsWorkflowNode extends JsonObject {
|
|
1377
|
-
"id": string;
|
|
1378
|
-
"name": string;
|
|
1379
|
-
"slug": string;
|
|
1380
|
-
"priority": number;
|
|
1381
|
-
"workflow_id": string;
|
|
1382
|
-
"is_draggable_in": boolean;
|
|
1383
|
-
"is_draggable_out": boolean;
|
|
1384
|
-
"actions"?: JsonValue | null;
|
|
1385
|
-
"auto_win": boolean;
|
|
1386
|
-
"created_at": string;
|
|
1387
|
-
"updated_at": string;
|
|
1388
|
-
}
|
|
1389
|
-
export interface LeadLightGetResponseDataLeadsLeadLogsProfile extends JsonObject {
|
|
1390
|
-
"id": string;
|
|
1391
|
-
"first_name_fa"?: string | null;
|
|
1392
|
-
"last_name_fa"?: string | null;
|
|
1393
|
-
"phone"?: string | null;
|
|
1394
|
-
}
|
|
1395
|
-
export interface LeadLightGetResponseDataLeadsLeadLogsFromWorkflowNode extends JsonObject {
|
|
1396
|
-
"id": string;
|
|
1397
|
-
"name": string;
|
|
1398
|
-
"slug": string;
|
|
1399
|
-
"priority": number;
|
|
1400
|
-
"workflow_id": string;
|
|
1401
|
-
"is_draggable_in": boolean;
|
|
1402
|
-
"is_draggable_out": boolean;
|
|
1403
|
-
"actions"?: JsonValue | null;
|
|
1404
|
-
"auto_win": boolean;
|
|
1405
|
-
"created_at": string;
|
|
1406
|
-
"updated_at": string;
|
|
1407
|
-
}
|
|
1408
|
-
export interface LeadLightGetResponseDataLeadsLeadLogsToWorkflowNode extends JsonObject {
|
|
1409
|
-
"id": string;
|
|
1410
|
-
"name": string;
|
|
1411
|
-
"slug": string;
|
|
1412
|
-
"priority": number;
|
|
1413
|
-
"workflow_id": string;
|
|
1414
|
-
"is_draggable_in": boolean;
|
|
1415
|
-
"is_draggable_out": boolean;
|
|
1416
|
-
"actions"?: JsonValue | null;
|
|
1417
|
-
"auto_win": boolean;
|
|
1418
|
-
"created_at": string;
|
|
1419
|
-
"updated_at": string;
|
|
1420
|
-
}
|
|
1421
|
-
export interface LeadLightGetResponseDataLeadsLeadLogs extends JsonObject {
|
|
1422
|
-
"id": string;
|
|
1423
|
-
"from_workflow_node_id"?: string | null;
|
|
1424
|
-
"to_workflow_node_id"?: string | null;
|
|
1425
|
-
"type": string;
|
|
1426
|
-
"profile_id": string;
|
|
1427
|
-
"profile"?: LeadLightGetResponseDataLeadsLeadLogsProfile | null;
|
|
1428
|
-
"from_status"?: string | null;
|
|
1429
|
-
"to_status"?: string | null;
|
|
1430
|
-
"from_workflow_node"?: LeadLightGetResponseDataLeadsLeadLogsFromWorkflowNode | null;
|
|
1431
|
-
"to_workflow_node"?: LeadLightGetResponseDataLeadsLeadLogsToWorkflowNode | null;
|
|
1432
|
-
"created_at": string;
|
|
1433
|
-
"updated_at": string;
|
|
1434
|
-
}
|
|
1435
|
-
export interface LeadLightGetResponseDataLeadsLeadTouchProfile extends JsonObject {
|
|
1436
|
-
"id": string;
|
|
1437
|
-
"first_name_fa"?: string | null;
|
|
1438
|
-
"last_name_fa"?: string | null;
|
|
1439
|
-
"phone"?: string | null;
|
|
1440
|
-
}
|
|
1441
|
-
export interface LeadLightGetResponseDataLeadsLeadTouch extends JsonObject {
|
|
1442
|
-
"id": string;
|
|
1443
|
-
"lead_id": string;
|
|
1444
|
-
"profile_id": string;
|
|
1445
|
-
"profile"?: LeadLightGetResponseDataLeadsLeadTouchProfile | null;
|
|
1446
|
-
"description"?: string | null;
|
|
1447
|
-
"status": string;
|
|
1448
|
-
"created_at": string;
|
|
1449
|
-
"updated_at": string;
|
|
1450
|
-
}
|
|
1451
|
-
export interface LeadLightGetResponseDataLeads extends JsonObject {
|
|
1452
|
-
"id": string;
|
|
1453
|
-
"profile_id"?: string | null;
|
|
1454
|
-
"title"?: string | null;
|
|
1455
|
-
"description"?: string | null;
|
|
1456
|
-
"creator_id": string;
|
|
1457
|
-
"creator"?: LeadLightGetResponseDataLeadsCreator | null;
|
|
1458
|
-
"workflow_id"?: string | null;
|
|
1459
|
-
"workflow_node_id"?: string | null;
|
|
1460
|
-
"campaign_id"?: string | null;
|
|
1461
|
-
"source_id"?: string | null;
|
|
1462
|
-
"task_status": string;
|
|
1463
|
-
"foreign_key"?: string | null;
|
|
1464
|
-
"task_priority": number;
|
|
1465
|
-
"flags": string[];
|
|
1466
|
-
"profile"?: LeadLightGetResponseDataLeadsProfile | null;
|
|
1467
|
-
"created_at": string;
|
|
1468
|
-
"updated_at": string;
|
|
1469
|
-
"enrollment_id"?: number | null;
|
|
1470
|
-
"enrollment_course_id"?: number | null;
|
|
1471
|
-
"installment_id"?: number | null;
|
|
1472
|
-
"installment_enrollment_id"?: number | null;
|
|
1473
|
-
"active_at"?: string | null;
|
|
1474
|
-
"is_active_status"?: boolean | null;
|
|
1475
|
-
"is_sos_assignee"?: boolean | null;
|
|
1476
|
-
"workflow"?: LeadLightGetResponseDataLeadsWorkflow | null;
|
|
1477
|
-
"workflow_node"?: LeadLightGetResponseDataLeadsWorkflowNode | null;
|
|
1478
|
-
"lead_logs"?: LeadLightGetResponseDataLeadsLeadLogs[] | null;
|
|
1479
|
-
"lead_touch"?: LeadLightGetResponseDataLeadsLeadTouch[] | null;
|
|
1480
|
-
"meta_data"?: JsonValue | null;
|
|
1481
|
-
}
|
|
1482
639
|
export interface LeadLightGetResponseData extends JsonObject {
|
|
1483
|
-
"leads":
|
|
640
|
+
"leads": BackendJson<"FullLeadResponse">[];
|
|
1484
641
|
"total_count": number;
|
|
1485
642
|
"won_count": number;
|
|
1486
643
|
"lost_count": number;
|
|
@@ -1557,15 +714,8 @@ export interface SosIndexGetQuery extends QueryParams {
|
|
|
1557
714
|
"sort"?: string | null;
|
|
1558
715
|
}
|
|
1559
716
|
/** Backend response type: SosListResponse. */
|
|
1560
|
-
export interface SosIndexGetResponseDataSos extends JsonObject {
|
|
1561
|
-
"id": string;
|
|
1562
|
-
"profile_id": string;
|
|
1563
|
-
"assignee_ids": string[];
|
|
1564
|
-
"created_at": string;
|
|
1565
|
-
"updated_at": string;
|
|
1566
|
-
}
|
|
1567
717
|
export interface SosIndexGetResponseData extends JsonObject {
|
|
1568
|
-
"sos":
|
|
718
|
+
"sos": BackendJson<"SosResponse">[];
|
|
1569
719
|
}
|
|
1570
720
|
export interface SosIndexGetResponse extends ApiEnvelope<SosIndexGetResponseData> {
|
|
1571
721
|
}
|
|
@@ -1725,15 +875,8 @@ export interface SosAllGetQuery extends QueryParams {
|
|
|
1725
875
|
"sort"?: string | null;
|
|
1726
876
|
}
|
|
1727
877
|
/** Backend response type: SosListResponse. */
|
|
1728
|
-
export interface SosAllGetResponseDataSos extends JsonObject {
|
|
1729
|
-
"id": string;
|
|
1730
|
-
"profile_id": string;
|
|
1731
|
-
"assignee_ids": string[];
|
|
1732
|
-
"created_at": string;
|
|
1733
|
-
"updated_at": string;
|
|
1734
|
-
}
|
|
1735
878
|
export interface SosAllGetResponseData extends JsonObject {
|
|
1736
|
-
"sos":
|
|
879
|
+
"sos": BackendJson<"SosResponse">[];
|
|
1737
880
|
}
|
|
1738
881
|
export interface SosAllGetResponse extends ApiEnvelope<SosAllGetResponseData> {
|
|
1739
882
|
}
|
|
@@ -1748,17 +891,8 @@ export interface SosExitAssigneeRoutePostResponseData extends JsonObject {
|
|
|
1748
891
|
export interface SosExitAssigneeRoutePostResponse extends ApiEnvelope<SosExitAssigneeRoutePostResponseData> {
|
|
1749
892
|
}
|
|
1750
893
|
/** Backend response type: DailyStatsResponse. */
|
|
1751
|
-
export interface StatsDailyGetResponseDataWorkflows extends JsonObject {
|
|
1752
|
-
"id": string;
|
|
1753
|
-
"name": string;
|
|
1754
|
-
"slug": string;
|
|
1755
|
-
"priority": number;
|
|
1756
|
-
"hint"?: string | null;
|
|
1757
|
-
"daily_tasks": number;
|
|
1758
|
-
"leads_count": number;
|
|
1759
|
-
}
|
|
1760
894
|
export interface StatsDailyGetResponseData extends JsonObject {
|
|
1761
|
-
"workflows":
|
|
895
|
+
"workflows": BackendJson<"DailyWorkflowStats">[];
|
|
1762
896
|
"total_tasks": number;
|
|
1763
897
|
"total_done_tasks": number;
|
|
1764
898
|
"extra_tasks_done": number;
|
|
@@ -1767,18 +901,9 @@ export interface StatsDailyGetResponseData extends JsonObject {
|
|
|
1767
901
|
export interface StatsDailyGetResponse extends ApiEnvelope<StatsDailyGetResponseData> {
|
|
1768
902
|
}
|
|
1769
903
|
/** Backend response type: LeadStatsResponse. */
|
|
1770
|
-
export interface StatsLeadGetResponseDataWorkflows extends JsonObject {
|
|
1771
|
-
"id": string;
|
|
1772
|
-
"name": string;
|
|
1773
|
-
"slug": string;
|
|
1774
|
-
"priority": number;
|
|
1775
|
-
"count": number;
|
|
1776
|
-
"activeLeadCount": number;
|
|
1777
|
-
"deActiveLeadCount": number;
|
|
1778
|
-
}
|
|
1779
904
|
export interface StatsLeadGetResponseData extends JsonObject {
|
|
1780
905
|
"total": number;
|
|
1781
|
-
"workflows":
|
|
906
|
+
"workflows": BackendJson<"WorkflowLeadStats">[];
|
|
1782
907
|
"permissions": string[];
|
|
1783
908
|
}
|
|
1784
909
|
export interface StatsLeadGetResponse extends ApiEnvelope<StatsLeadGetResponseData> {
|
|
@@ -2305,10 +1430,10 @@ export interface WorklogUpdatePutResponseData extends JsonObject {
|
|
|
2305
1430
|
}
|
|
2306
1431
|
export interface WorklogUpdatePutResponse extends ApiEnvelope<WorklogUpdatePutResponseData> {
|
|
2307
1432
|
}
|
|
2308
|
-
/** Backend response type:
|
|
1433
|
+
/** Backend response type: api. */
|
|
2309
1434
|
export interface RouterStatusRouteGetHealthResponse extends ApiEnvelope<JsonValue> {
|
|
2310
1435
|
}
|
|
2311
|
-
/** Backend response type:
|
|
1436
|
+
/** Backend response type: api. */
|
|
2312
1437
|
export interface RouterStatusRouteGetUpResponse extends ApiEnvelope<JsonValue> {
|
|
2313
1438
|
}
|
|
2314
1439
|
//# sourceMappingURL=operations.types.d.ts.map
|