@faiber/faiber-crm 0.3.0 → 0.5.0

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.
@@ -1,15 +1,40 @@
1
1
  import type { ApiEnvelope, 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: response without a declared JSON model. */
3
+ /** Backend response type: handler-defined response. */
4
4
  export interface RouterStatusRouteGetResponse extends ApiEnvelope<JsonValue> {
5
5
  }
6
- /** Backend response type: response without a declared JSON model. */
6
+ /** Backend response type: handler-defined response. */
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
+ }
10
35
  export interface IntegrationIntegrationDocsShowGetResponseData extends JsonObject {
11
- "direct": JsonValue;
12
- "sdk": JsonValue[];
36
+ "direct": IntegrationIntegrationDocsShowGetResponseDataDirect;
37
+ "sdk": IntegrationIntegrationDocsShowGetResponseDataSdk[];
13
38
  }
14
39
  export interface IntegrationIntegrationDocsShowGetResponse extends ApiEnvelope<IntegrationIntegrationDocsShowGetResponseData> {
15
40
  }
@@ -18,65 +43,232 @@ export interface IntegrationFlowIntegrationShowGetResponse extends ApiEnvelope<J
18
43
  }
19
44
  /** Backend query type: LeadListQuery. */
20
45
  export interface LeadIndexGetQuery extends QueryParams {
21
- "sort"?: string;
46
+ "sort"?: string | null;
22
47
  }
23
48
  /** 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
+ }
24
179
  export interface LeadIndexGetResponseData extends JsonObject {
25
- "leads": JsonValue[];
180
+ "leads": LeadIndexGetResponseDataLeads[];
26
181
  }
27
182
  export interface LeadIndexGetResponse extends ApiEnvelope<LeadIndexGetResponseData> {
28
183
  }
29
184
  /** Backend request type: CreateLeadRequest. */
30
185
  export interface LeadCreatePostInput extends JsonObject {
31
186
  "profile_id": string;
32
- "creator_id"?: string;
187
+ "creator_id"?: string | null;
33
188
  "task_priority": number;
34
- "campaign"?: string;
35
- "source"?: string;
36
- "task_status"?: string;
37
- "foreign_key"?: string;
38
- "flags": string[];
39
- "enrollment_state"?: string;
40
- "enrollment_id"?: number;
41
- "enrollment_course_id"?: number;
42
- "installment_id"?: number;
43
- "installment_enrollment_id"?: number;
44
- "active_at"?: string;
45
- "assignee_ids"?: string[];
46
- "meta"?: JsonValue;
47
- "title"?: string;
48
- "description"?: string;
189
+ "campaign"?: string | null;
190
+ "source"?: string | null;
191
+ "task_status"?: string | null;
192
+ "foreign_key"?: string | null;
193
+ "flags"?: string[];
194
+ "enrollment_state"?: string | null;
195
+ "enrollment_id"?: number | null;
196
+ "enrollment_course_id"?: number | null;
197
+ "installment_id"?: number | null;
198
+ "installment_enrollment_id"?: number | null;
199
+ "active_at"?: string | null;
200
+ "assignee_ids"?: string[] | null;
201
+ "meta"?: JsonValue | null;
202
+ "title"?: string | null;
203
+ "description"?: string | null;
49
204
  }
50
205
  /** 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
+ }
51
243
  export interface LeadCreatePostResponseData extends JsonObject {
52
244
  "id": string;
53
- "profile_id"?: string;
54
- "title"?: string;
55
- "description"?: string;
245
+ "profile_id"?: string | null;
246
+ "title"?: string | null;
247
+ "description"?: string | null;
56
248
  "creator_id": string;
57
- "creator"?: JsonValue;
58
- "workflow_id"?: string;
59
- "workflow_node_id"?: string;
60
- "campaign_id"?: string;
61
- "source_id"?: string;
249
+ "creator"?: LeadCreatePostResponseDataCreator | null;
250
+ "workflow_id"?: string | null;
251
+ "workflow_node_id"?: string | null;
252
+ "campaign_id"?: string | null;
253
+ "source_id"?: string | null;
62
254
  "task_status": string;
63
- "foreign_key"?: string;
255
+ "foreign_key"?: string | null;
64
256
  "task_priority": number;
65
257
  "flags": string[];
66
- "profile"?: JsonValue;
258
+ "profile"?: LeadCreatePostResponseDataProfile | null;
67
259
  "created_at": string;
68
260
  "updated_at": string;
69
- "enrollment_id"?: number;
70
- "enrollment_course_id"?: number;
71
- "installment_id"?: number;
72
- "installment_enrollment_id"?: number;
73
- "active_at"?: string;
74
- "is_active_status"?: boolean;
75
- "is_sos_assignee"?: boolean;
76
- "workflow"?: JsonValue;
77
- "workflow_node"?: JsonValue;
78
- "is_in_reminder"?: boolean;
79
- "meta_data"?: JsonValue;
261
+ "enrollment_id"?: number | null;
262
+ "enrollment_course_id"?: number | null;
263
+ "installment_id"?: number | null;
264
+ "installment_enrollment_id"?: number | null;
265
+ "active_at"?: string | null;
266
+ "is_active_status"?: boolean | null;
267
+ "is_sos_assignee"?: boolean | null;
268
+ "workflow"?: LeadCreatePostResponseDataWorkflow | null;
269
+ "workflow_node"?: LeadCreatePostResponseDataWorkflowNode | null;
270
+ "is_in_reminder"?: boolean | null;
271
+ "meta_data"?: JsonValue | null;
80
272
  }
81
273
  export interface LeadCreatePostResponse extends ApiEnvelope<LeadCreatePostResponseData> {
82
274
  }
@@ -120,8 +312,8 @@ export interface LeadCampaignShowGetResponse extends ApiEnvelope<LeadCampaignSho
120
312
  }
121
313
  /** Backend request type: UpdateLeadCampaignRequest. */
122
314
  export interface LeadCampaignUpdatePutInput extends JsonObject {
123
- "name"?: string;
124
- "slug"?: string;
315
+ "name"?: string | null;
316
+ "slug"?: string | null;
125
317
  }
126
318
  /** Backend response type: LeadCampaignResponse. */
127
319
  export interface LeadCampaignUpdatePutResponseData extends JsonObject {
@@ -173,8 +365,8 @@ export interface LeadSourceShowGetResponse extends ApiEnvelope<LeadSourceShowGet
173
365
  }
174
366
  /** Backend request type: UpdateLeadSourceRequest. */
175
367
  export interface LeadSourceUpdatePutInput extends JsonObject {
176
- "name"?: string;
177
- "slug"?: string;
368
+ "name"?: string | null;
369
+ "slug"?: string | null;
178
370
  }
179
371
  /** Backend response type: LeadSourceResponse. */
180
372
  export interface LeadSourceUpdatePutResponseData extends JsonObject {
@@ -190,151 +382,340 @@ export interface LeadSourceUpdatePutResponse extends ApiEnvelope<LeadSourceUpdat
190
382
  export interface LeadDestroyDeleteResponse extends ApiEnvelope<boolean> {
191
383
  }
192
384
  /** 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
+ }
193
422
  export interface LeadShowGetResponseData extends JsonObject {
194
423
  "id": string;
195
- "profile_id"?: string;
196
- "title"?: string;
197
- "description"?: string;
424
+ "profile_id"?: string | null;
425
+ "title"?: string | null;
426
+ "description"?: string | null;
198
427
  "creator_id": string;
199
- "creator"?: JsonValue;
200
- "workflow_id"?: string;
201
- "workflow_node_id"?: string;
202
- "campaign_id"?: string;
203
- "source_id"?: string;
428
+ "creator"?: LeadShowGetResponseDataCreator | null;
429
+ "workflow_id"?: string | null;
430
+ "workflow_node_id"?: string | null;
431
+ "campaign_id"?: string | null;
432
+ "source_id"?: string | null;
204
433
  "task_status": string;
205
- "foreign_key"?: string;
434
+ "foreign_key"?: string | null;
206
435
  "task_priority": number;
207
436
  "flags": string[];
208
- "profile"?: JsonValue;
437
+ "profile"?: LeadShowGetResponseDataProfile | null;
209
438
  "created_at": string;
210
439
  "updated_at": string;
211
- "enrollment_id"?: number;
212
- "enrollment_course_id"?: number;
213
- "installment_id"?: number;
214
- "installment_enrollment_id"?: number;
215
- "active_at"?: string;
216
- "is_active_status"?: boolean;
217
- "is_sos_assignee"?: boolean;
218
- "workflow"?: JsonValue;
219
- "workflow_node"?: JsonValue;
220
- "is_in_reminder"?: boolean;
221
- "meta_data"?: JsonValue;
440
+ "enrollment_id"?: number | null;
441
+ "enrollment_course_id"?: number | null;
442
+ "installment_id"?: number | null;
443
+ "installment_enrollment_id"?: number | null;
444
+ "active_at"?: string | null;
445
+ "is_active_status"?: boolean | null;
446
+ "is_sos_assignee"?: boolean | null;
447
+ "workflow"?: LeadShowGetResponseDataWorkflow | null;
448
+ "workflow_node"?: LeadShowGetResponseDataWorkflowNode | null;
449
+ "is_in_reminder"?: boolean | null;
450
+ "meta_data"?: JsonValue | null;
222
451
  }
223
452
  export interface LeadShowGetResponse extends ApiEnvelope<LeadShowGetResponseData> {
224
453
  }
225
454
  /** Backend request type: UpdateLeadRequest. */
226
455
  export interface LeadUpdatePutInput extends JsonObject {
227
- "profile_id"?: string;
228
- "title"?: string;
229
- "description"?: string;
230
- "task_priority"?: number;
231
- "campaign"?: string;
232
- "source"?: string;
233
- "task_status"?: string;
234
- "foreign_key"?: string;
235
- "flags"?: string[];
236
- "enrollment_id"?: number;
237
- "enrollment_course_id"?: number;
238
- "installment_id"?: number;
239
- "installment_enrollment_id"?: number;
240
- "active_at"?: string;
241
- "assignee_ids"?: string[];
242
- "meta"?: JsonValue;
243
- "workflow_node_id"?: string;
244
- "assignee_profile_id"?: string;
456
+ "profile_id"?: string | null;
457
+ "title"?: string | null;
458
+ "description"?: string | null;
459
+ "task_priority"?: number | null;
460
+ "campaign"?: string | null;
461
+ "source"?: string | null;
462
+ "task_status"?: string | null;
463
+ "foreign_key"?: string | null;
464
+ "flags"?: string[] | null;
465
+ "enrollment_id"?: number | null;
466
+ "enrollment_course_id"?: number | null;
467
+ "installment_id"?: number | null;
468
+ "installment_enrollment_id"?: number | null;
469
+ "active_at"?: string | null;
470
+ "assignee_ids"?: string[] | null;
471
+ "meta"?: JsonValue | null;
472
+ "workflow_node_id"?: string | null;
473
+ "assignee_profile_id"?: string | null;
245
474
  }
246
475
  /** 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
+ }
247
513
  export interface LeadUpdatePutResponseData extends JsonObject {
248
514
  "id": string;
249
- "profile_id"?: string;
250
- "title"?: string;
251
- "description"?: string;
515
+ "profile_id"?: string | null;
516
+ "title"?: string | null;
517
+ "description"?: string | null;
252
518
  "creator_id": string;
253
- "creator"?: JsonValue;
254
- "workflow_id"?: string;
255
- "workflow_node_id"?: string;
256
- "campaign_id"?: string;
257
- "source_id"?: string;
519
+ "creator"?: LeadUpdatePutResponseDataCreator | null;
520
+ "workflow_id"?: string | null;
521
+ "workflow_node_id"?: string | null;
522
+ "campaign_id"?: string | null;
523
+ "source_id"?: string | null;
258
524
  "task_status": string;
259
- "foreign_key"?: string;
525
+ "foreign_key"?: string | null;
260
526
  "task_priority": number;
261
527
  "flags": string[];
262
- "profile"?: JsonValue;
528
+ "profile"?: LeadUpdatePutResponseDataProfile | null;
263
529
  "created_at": string;
264
530
  "updated_at": string;
265
- "enrollment_id"?: number;
266
- "enrollment_course_id"?: number;
267
- "installment_id"?: number;
268
- "installment_enrollment_id"?: number;
269
- "active_at"?: string;
270
- "is_active_status"?: boolean;
271
- "is_sos_assignee"?: boolean;
272
- "workflow"?: JsonValue;
273
- "workflow_node"?: JsonValue;
274
- "is_in_reminder"?: boolean;
275
- "meta_data"?: JsonValue;
531
+ "enrollment_id"?: number | null;
532
+ "enrollment_course_id"?: number | null;
533
+ "installment_id"?: number | null;
534
+ "installment_enrollment_id"?: number | null;
535
+ "active_at"?: string | null;
536
+ "is_active_status"?: boolean | null;
537
+ "is_sos_assignee"?: boolean | null;
538
+ "workflow"?: LeadUpdatePutResponseDataWorkflow | null;
539
+ "workflow_node"?: LeadUpdatePutResponseDataWorkflowNode | null;
540
+ "is_in_reminder"?: boolean | null;
541
+ "meta_data"?: JsonValue | null;
276
542
  }
277
543
  export interface LeadUpdatePutResponse extends ApiEnvelope<LeadUpdatePutResponseData> {
278
544
  }
279
545
  /** 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
+ }
280
583
  export interface LeadCheckStatusGetResponseData extends JsonObject {
281
584
  "id": string;
282
- "profile_id"?: string;
283
- "title"?: string;
284
- "description"?: string;
585
+ "profile_id"?: string | null;
586
+ "title"?: string | null;
587
+ "description"?: string | null;
285
588
  "creator_id": string;
286
- "creator"?: JsonValue;
287
- "workflow_id"?: string;
288
- "workflow_node_id"?: string;
289
- "campaign_id"?: string;
290
- "source_id"?: string;
589
+ "creator"?: LeadCheckStatusGetResponseDataCreator | null;
590
+ "workflow_id"?: string | null;
591
+ "workflow_node_id"?: string | null;
592
+ "campaign_id"?: string | null;
593
+ "source_id"?: string | null;
291
594
  "task_status": string;
292
- "foreign_key"?: string;
595
+ "foreign_key"?: string | null;
293
596
  "task_priority": number;
294
597
  "flags": string[];
295
- "profile"?: JsonValue;
598
+ "profile"?: LeadCheckStatusGetResponseDataProfile | null;
296
599
  "created_at": string;
297
600
  "updated_at": string;
298
- "enrollment_id"?: number;
299
- "enrollment_course_id"?: number;
300
- "installment_id"?: number;
301
- "installment_enrollment_id"?: number;
302
- "active_at"?: string;
303
- "is_active_status"?: boolean;
304
- "is_sos_assignee"?: boolean;
305
- "workflow"?: JsonValue;
306
- "workflow_node"?: JsonValue;
307
- "is_in_reminder"?: boolean;
308
- "meta_data"?: JsonValue;
601
+ "enrollment_id"?: number | null;
602
+ "enrollment_course_id"?: number | null;
603
+ "installment_id"?: number | null;
604
+ "installment_enrollment_id"?: number | null;
605
+ "active_at"?: string | null;
606
+ "is_active_status"?: boolean | null;
607
+ "is_sos_assignee"?: boolean | null;
608
+ "workflow"?: LeadCheckStatusGetResponseDataWorkflow | null;
609
+ "workflow_node"?: LeadCheckStatusGetResponseDataWorkflowNode | null;
610
+ "is_in_reminder"?: boolean | null;
611
+ "meta_data"?: JsonValue | null;
309
612
  }
310
613
  export interface LeadCheckStatusGetResponse extends ApiEnvelope<LeadCheckStatusGetResponseData> {
311
614
  }
312
615
  /** 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
+ }
313
662
  export interface LeadListLogsGetResponseData extends JsonObject {
314
- "lead_logs": JsonValue[];
663
+ "lead_logs": LeadListLogsGetResponseDataLeadLogs[];
315
664
  }
316
665
  export interface LeadListLogsGetResponse extends ApiEnvelope<LeadListLogsGetResponseData> {
317
666
  }
318
667
  /** Backend request type: CreateLeadLogRequest. */
319
668
  export interface LeadCreateLogPostInput extends JsonObject {
320
- "from_workflow_node_id"?: string;
321
- "to_workflow_node_id"?: string;
322
- "from_status"?: string;
323
- "to_status"?: string;
669
+ "from_workflow_node_id"?: string | null;
670
+ "to_workflow_node_id"?: string | null;
671
+ "from_status"?: string | null;
672
+ "to_status"?: string | null;
324
673
  "type": string;
325
674
  }
326
675
  /** 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
+ }
327
708
  export interface LeadCreateLogPostResponseData extends JsonObject {
328
709
  "id": string;
329
- "from_workflow_node_id"?: string;
330
- "to_workflow_node_id"?: string;
710
+ "from_workflow_node_id"?: string | null;
711
+ "to_workflow_node_id"?: string | null;
331
712
  "type": string;
332
713
  "profile_id": string;
333
- "profile"?: JsonValue;
334
- "from_status"?: string;
335
- "to_status"?: string;
336
- "from_workflow_node"?: JsonValue;
337
- "to_workflow_node"?: JsonValue;
714
+ "profile"?: LeadCreateLogPostResponseDataProfile | null;
715
+ "from_status"?: string | null;
716
+ "to_status"?: string | null;
717
+ "from_workflow_node"?: LeadCreateLogPostResponseDataFromWorkflowNode | null;
718
+ "to_workflow_node"?: LeadCreateLogPostResponseDataToWorkflowNode | null;
338
719
  "created_at": string;
339
720
  "updated_at": string;
340
721
  }
@@ -344,17 +725,49 @@ export interface LeadCreateLogPostResponse extends ApiEnvelope<LeadCreateLogPost
344
725
  export interface LeadDestroyLogDeleteResponse extends ApiEnvelope<boolean> {
345
726
  }
346
727
  /** 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
+ }
347
760
  export interface LeadShowLogGetResponseData extends JsonObject {
348
761
  "id": string;
349
- "from_workflow_node_id"?: string;
350
- "to_workflow_node_id"?: string;
762
+ "from_workflow_node_id"?: string | null;
763
+ "to_workflow_node_id"?: string | null;
351
764
  "type": string;
352
765
  "profile_id": string;
353
- "profile"?: JsonValue;
354
- "from_status"?: string;
355
- "to_status"?: string;
356
- "from_workflow_node"?: JsonValue;
357
- "to_workflow_node"?: JsonValue;
766
+ "profile"?: LeadShowLogGetResponseDataProfile | null;
767
+ "from_status"?: string | null;
768
+ "to_status"?: string | null;
769
+ "from_workflow_node"?: LeadShowLogGetResponseDataFromWorkflowNode | null;
770
+ "to_workflow_node"?: LeadShowLogGetResponseDataToWorkflowNode | null;
358
771
  "created_at": string;
359
772
  "updated_at": string;
360
773
  }
@@ -362,85 +775,176 @@ export interface LeadShowLogGetResponse extends ApiEnvelope<LeadShowLogGetRespon
362
775
  }
363
776
  /** Backend request type: UpdateLeadLogRequest. */
364
777
  export interface LeadUpdateLogPutInput extends JsonObject {
365
- "from_workflow_node_id"?: string;
366
- "to_workflow_node_id"?: string;
367
- "from_status"?: string;
368
- "to_status"?: string;
369
- "type"?: string;
778
+ "from_workflow_node_id"?: string | null;
779
+ "to_workflow_node_id"?: string | null;
780
+ "from_status"?: string | null;
781
+ "to_status"?: string | null;
782
+ "type"?: string | null;
370
783
  }
371
784
  /** 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
+ }
372
817
  export interface LeadUpdateLogPutResponseData extends JsonObject {
373
818
  "id": string;
374
- "from_workflow_node_id"?: string;
375
- "to_workflow_node_id"?: string;
819
+ "from_workflow_node_id"?: string | null;
820
+ "to_workflow_node_id"?: string | null;
376
821
  "type": string;
377
822
  "profile_id": string;
378
- "profile"?: JsonValue;
379
- "from_status"?: string;
380
- "to_status"?: string;
381
- "from_workflow_node"?: JsonValue;
382
- "to_workflow_node"?: JsonValue;
823
+ "profile"?: LeadUpdateLogPutResponseDataProfile | null;
824
+ "from_status"?: string | null;
825
+ "to_status"?: string | null;
826
+ "from_workflow_node"?: LeadUpdateLogPutResponseDataFromWorkflowNode | null;
827
+ "to_workflow_node"?: LeadUpdateLogPutResponseDataToWorkflowNode | null;
828
+ "created_at": string;
829
+ "updated_at": string;
830
+ }
831
+ export interface LeadUpdateLogPutResponse extends ApiEnvelope<LeadUpdateLogPutResponseData> {
832
+ }
833
+ /** Backend request type: MoveLeadToDoneRequest. */
834
+ export interface LeadMoveToDonePutInput extends JsonObject {
835
+ "task_status": string;
836
+ "assignee_profile_id"?: string | null;
837
+ }
838
+ /** 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;
383
860
  "created_at": string;
384
861
  "updated_at": string;
385
862
  }
386
- export interface LeadUpdateLogPutResponse extends ApiEnvelope<LeadUpdateLogPutResponseData> {
387
- }
388
- /** Backend request type: MoveLeadToDoneRequest. */
389
- export interface LeadMoveToDonePutInput extends JsonObject {
390
- "task_status": string;
391
- "assignee_profile_id"?: string;
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;
392
875
  }
393
- /** Backend response type: LeadResponse. */
394
876
  export interface LeadMoveToDonePutResponseData extends JsonObject {
395
877
  "id": string;
396
- "profile_id"?: string;
397
- "title"?: string;
398
- "description"?: string;
878
+ "profile_id"?: string | null;
879
+ "title"?: string | null;
880
+ "description"?: string | null;
399
881
  "creator_id": string;
400
- "creator"?: JsonValue;
401
- "workflow_id"?: string;
402
- "workflow_node_id"?: string;
403
- "campaign_id"?: string;
404
- "source_id"?: string;
882
+ "creator"?: LeadMoveToDonePutResponseDataCreator | null;
883
+ "workflow_id"?: string | null;
884
+ "workflow_node_id"?: string | null;
885
+ "campaign_id"?: string | null;
886
+ "source_id"?: string | null;
405
887
  "task_status": string;
406
- "foreign_key"?: string;
888
+ "foreign_key"?: string | null;
407
889
  "task_priority": number;
408
890
  "flags": string[];
409
- "profile"?: JsonValue;
891
+ "profile"?: LeadMoveToDonePutResponseDataProfile | null;
410
892
  "created_at": string;
411
893
  "updated_at": string;
412
- "enrollment_id"?: number;
413
- "enrollment_course_id"?: number;
414
- "installment_id"?: number;
415
- "installment_enrollment_id"?: number;
416
- "active_at"?: string;
417
- "is_active_status"?: boolean;
418
- "is_sos_assignee"?: boolean;
419
- "workflow"?: JsonValue;
420
- "workflow_node"?: JsonValue;
421
- "is_in_reminder"?: boolean;
422
- "meta_data"?: JsonValue;
894
+ "enrollment_id"?: number | null;
895
+ "enrollment_course_id"?: number | null;
896
+ "installment_id"?: number | null;
897
+ "installment_enrollment_id"?: number | null;
898
+ "active_at"?: string | null;
899
+ "is_active_status"?: boolean | null;
900
+ "is_sos_assignee"?: boolean | null;
901
+ "workflow"?: LeadMoveToDonePutResponseDataWorkflow | null;
902
+ "workflow_node"?: LeadMoveToDonePutResponseDataWorkflowNode | null;
903
+ "is_in_reminder"?: boolean | null;
904
+ "meta_data"?: JsonValue | null;
423
905
  }
424
906
  export interface LeadMoveToDonePutResponse extends ApiEnvelope<LeadMoveToDonePutResponseData> {
425
907
  }
426
908
  /** 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
+ }
427
925
  export interface LeadListTouchesGetResponseData extends JsonObject {
428
- "lead_touch": JsonValue[];
926
+ "lead_touch": LeadListTouchesGetResponseDataLeadTouch[];
429
927
  }
430
928
  export interface LeadListTouchesGetResponse extends ApiEnvelope<LeadListTouchesGetResponseData> {
431
929
  }
432
930
  /** Backend request type: CreateLeadTouchRequest. */
433
931
  export interface LeadCreateTouchPostInput extends JsonObject {
434
- "description"?: string;
932
+ "description"?: string | null;
435
933
  "status": string;
436
934
  }
437
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
+ }
438
942
  export interface LeadCreateTouchPostResponseData extends JsonObject {
439
943
  "id": string;
440
944
  "lead_id": string;
441
945
  "profile_id": string;
442
- "profile"?: JsonValue;
443
- "description"?: string;
946
+ "profile"?: LeadCreateTouchPostResponseDataProfile | null;
947
+ "description"?: string | null;
444
948
  "status": string;
445
949
  "created_at": string;
446
950
  "updated_at": string;
@@ -451,12 +955,18 @@ export interface LeadCreateTouchPostResponse extends ApiEnvelope<LeadCreateTouch
451
955
  export interface LeadDestroyTouchDeleteResponse extends ApiEnvelope<boolean> {
452
956
  }
453
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
+ }
454
964
  export interface LeadShowTouchGetResponseData extends JsonObject {
455
965
  "id": string;
456
966
  "lead_id": string;
457
967
  "profile_id": string;
458
- "profile"?: JsonValue;
459
- "description"?: string;
968
+ "profile"?: LeadShowTouchGetResponseDataProfile | null;
969
+ "description"?: string | null;
460
970
  "status": string;
461
971
  "created_at": string;
462
972
  "updated_at": string;
@@ -465,16 +975,22 @@ export interface LeadShowTouchGetResponse extends ApiEnvelope<LeadShowTouchGetRe
465
975
  }
466
976
  /** Backend request type: UpdateLeadTouchRequest. */
467
977
  export interface LeadUpdateTouchPutInput extends JsonObject {
468
- "description"?: string;
469
- "status"?: string;
978
+ "description"?: string | null;
979
+ "status"?: string | null;
470
980
  }
471
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
+ }
472
988
  export interface LeadUpdateTouchPutResponseData extends JsonObject {
473
989
  "id": string;
474
990
  "lead_id": string;
475
991
  "profile_id": string;
476
- "profile"?: JsonValue;
477
- "description"?: string;
992
+ "profile"?: LeadUpdateTouchPutResponseDataProfile | null;
993
+ "description"?: string | null;
478
994
  "status": string;
479
995
  "created_at": string;
480
996
  "updated_at": string;
@@ -485,90 +1001,250 @@ export interface LeadUpdateTouchPutResponse extends ApiEnvelope<LeadUpdateTouchP
485
1001
  export interface LeadCreateDeveloperPostInput extends JsonObject {
486
1002
  "title": string;
487
1003
  "description": string;
488
- "task_priority"?: number;
489
- "flags": string[];
1004
+ "task_priority"?: number | null;
1005
+ "flags"?: string[];
490
1006
  "assignee_ids": string[];
491
- "meta"?: JsonValue;
1007
+ "meta"?: JsonValue | null;
492
1008
  }
493
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
+ }
494
1047
  export interface LeadCreateDeveloperPostResponseData extends JsonObject {
495
1048
  "id": string;
496
- "profile_id"?: string;
497
- "title"?: string;
498
- "description"?: string;
1049
+ "profile_id"?: string | null;
1050
+ "title"?: string | null;
1051
+ "description"?: string | null;
499
1052
  "creator_id": string;
500
- "creator"?: JsonValue;
501
- "workflow_id"?: string;
502
- "workflow_node_id"?: string;
503
- "campaign_id"?: string;
504
- "source_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;
505
1058
  "task_status": string;
506
- "foreign_key"?: string;
1059
+ "foreign_key"?: string | null;
507
1060
  "task_priority": number;
508
1061
  "flags": string[];
509
- "profile"?: JsonValue;
1062
+ "profile"?: LeadCreateDeveloperPostResponseDataProfile | null;
510
1063
  "created_at": string;
511
1064
  "updated_at": string;
512
- "enrollment_id"?: number;
513
- "enrollment_course_id"?: number;
514
- "installment_id"?: number;
515
- "installment_enrollment_id"?: number;
516
- "active_at"?: string;
517
- "is_active_status"?: boolean;
518
- "is_sos_assignee"?: boolean;
519
- "workflow"?: JsonValue;
520
- "workflow_node"?: JsonValue;
521
- "is_in_reminder"?: boolean;
522
- "meta_data"?: JsonValue;
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;
523
1076
  }
524
1077
  export interface LeadCreateDeveloperPostResponse extends ApiEnvelope<LeadCreateDeveloperPostResponseData> {
525
1078
  }
526
1079
  /** Backend query type: LeadListQuery. */
527
1080
  export interface LeadDeveloperReadyGetQuery extends QueryParams {
528
- "sort"?: string;
1081
+ "sort"?: string | null;
529
1082
  }
530
1083
  /** Backend response type: DeveloperReadyLeadListResponse. */
1084
+ export interface LeadDeveloperReadyGetResponseDataLeadsLeadLogsProfile extends JsonObject {
1085
+ "id": string;
1086
+ "first_name_fa"?: string | null;
1087
+ "last_name_fa"?: string | null;
1088
+ "phone"?: string | null;
1089
+ }
1090
+ export interface LeadDeveloperReadyGetResponseDataLeadsLeadLogsFromWorkflowNode extends JsonObject {
1091
+ "id": string;
1092
+ "name": string;
1093
+ "slug": string;
1094
+ "priority": number;
1095
+ "workflow_id": string;
1096
+ "is_draggable_in": boolean;
1097
+ "is_draggable_out": boolean;
1098
+ "actions"?: JsonValue | null;
1099
+ "auto_win": boolean;
1100
+ "created_at": string;
1101
+ "updated_at": string;
1102
+ }
1103
+ export interface LeadDeveloperReadyGetResponseDataLeadsLeadLogsToWorkflowNode extends JsonObject {
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;
1115
+ }
1116
+ export interface LeadDeveloperReadyGetResponseDataLeadsLeadLogs extends JsonObject {
1117
+ "id": string;
1118
+ "from_workflow_node_id"?: string | null;
1119
+ "to_workflow_node_id"?: string | null;
1120
+ "type": string;
1121
+ "profile_id": string;
1122
+ "profile"?: LeadDeveloperReadyGetResponseDataLeadsLeadLogsProfile | null;
1123
+ "from_status"?: string | null;
1124
+ "to_status"?: string | null;
1125
+ "from_workflow_node"?: LeadDeveloperReadyGetResponseDataLeadsLeadLogsFromWorkflowNode | null;
1126
+ "to_workflow_node"?: LeadDeveloperReadyGetResponseDataLeadsLeadLogsToWorkflowNode | null;
1127
+ "created_at": string;
1128
+ "updated_at": string;
1129
+ }
1130
+ export interface LeadDeveloperReadyGetResponseDataLeadsLeadTouchProfile extends JsonObject {
1131
+ "id": string;
1132
+ "first_name_fa"?: string | null;
1133
+ "last_name_fa"?: string | null;
1134
+ "phone"?: string | null;
1135
+ }
1136
+ export interface LeadDeveloperReadyGetResponseDataLeadsLeadTouch extends JsonObject {
1137
+ "id": string;
1138
+ "lead_id": string;
1139
+ "profile_id": string;
1140
+ "profile"?: LeadDeveloperReadyGetResponseDataLeadsLeadTouchProfile | null;
1141
+ "description"?: string | null;
1142
+ "status": string;
1143
+ "created_at": string;
1144
+ "updated_at": string;
1145
+ }
1146
+ export interface LeadDeveloperReadyGetResponseDataLeads extends JsonObject {
1147
+ "id": string;
1148
+ "profile_id"?: string | null;
1149
+ "title"?: string | null;
1150
+ "description"?: string | null;
1151
+ "creator_id": string;
1152
+ "workflow_id"?: string | null;
1153
+ "workflow_node_id"?: string | null;
1154
+ "campaign_id"?: string | null;
1155
+ "source_id"?: string | null;
1156
+ "task_status": string;
1157
+ "foreign_key"?: string | null;
1158
+ "task_priority": number;
1159
+ "flags": string[];
1160
+ "created_at": string;
1161
+ "updated_at": string;
1162
+ "enrollment_id"?: number | null;
1163
+ "enrollment_course_id"?: number | null;
1164
+ "installment_id"?: number | null;
1165
+ "installment_enrollment_id"?: number | null;
1166
+ "active_at"?: string | null;
1167
+ "lead_logs"?: LeadDeveloperReadyGetResponseDataLeadsLeadLogs[] | null;
1168
+ "lead_touch"?: LeadDeveloperReadyGetResponseDataLeadsLeadTouch[] | null;
1169
+ }
531
1170
  export interface LeadDeveloperReadyGetResponseData extends JsonObject {
532
- "leads": JsonValue[];
1171
+ "leads": LeadDeveloperReadyGetResponseDataLeads[];
533
1172
  }
534
1173
  export interface LeadDeveloperReadyGetResponse extends ApiEnvelope<LeadDeveloperReadyGetResponseData> {
535
1174
  }
536
1175
  /** Backend query type: ForeignKeyQuery. */
537
1176
  export interface LeadByForeignKeyGetQuery extends QueryParams {
538
- "foreign_key"?: string;
539
- "profile_id"?: string;
540
- "flags"?: string;
1177
+ "foreign_key"?: string | null;
1178
+ "profile_id"?: string | null;
1179
+ "flags"?: string | null;
541
1180
  }
542
1181
  /** 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
+ }
543
1219
  export interface LeadByForeignKeyGetResponseData extends JsonObject {
544
1220
  "id": string;
545
- "profile_id"?: string;
546
- "title"?: string;
547
- "description"?: string;
1221
+ "profile_id"?: string | null;
1222
+ "title"?: string | null;
1223
+ "description"?: string | null;
548
1224
  "creator_id": string;
549
- "creator"?: JsonValue;
550
- "workflow_id"?: string;
551
- "workflow_node_id"?: string;
552
- "campaign_id"?: string;
553
- "source_id"?: string;
1225
+ "creator"?: LeadByForeignKeyGetResponseDataCreator | null;
1226
+ "workflow_id"?: string | null;
1227
+ "workflow_node_id"?: string | null;
1228
+ "campaign_id"?: string | null;
1229
+ "source_id"?: string | null;
554
1230
  "task_status": string;
555
- "foreign_key"?: string;
1231
+ "foreign_key"?: string | null;
556
1232
  "task_priority": number;
557
1233
  "flags": string[];
558
- "profile"?: JsonValue;
1234
+ "profile"?: LeadByForeignKeyGetResponseDataProfile | null;
559
1235
  "created_at": string;
560
1236
  "updated_at": string;
561
- "enrollment_id"?: number;
562
- "enrollment_course_id"?: number;
563
- "installment_id"?: number;
564
- "installment_enrollment_id"?: number;
565
- "active_at"?: string;
566
- "is_active_status"?: boolean;
567
- "is_sos_assignee"?: boolean;
568
- "workflow"?: JsonValue;
569
- "workflow_node"?: JsonValue;
570
- "is_in_reminder"?: boolean;
571
- "meta_data"?: JsonValue;
1237
+ "enrollment_id"?: number | null;
1238
+ "enrollment_course_id"?: number | null;
1239
+ "installment_id"?: number | null;
1240
+ "installment_enrollment_id"?: number | null;
1241
+ "active_at"?: string | null;
1242
+ "is_active_status"?: boolean | null;
1243
+ "is_sos_assignee"?: boolean | null;
1244
+ "workflow"?: LeadByForeignKeyGetResponseDataWorkflow | null;
1245
+ "workflow_node"?: LeadByForeignKeyGetResponseDataWorkflowNode | null;
1246
+ "is_in_reminder"?: boolean | null;
1247
+ "meta_data"?: JsonValue | null;
572
1248
  }
573
1249
  export interface LeadByForeignKeyGetResponse extends ApiEnvelope<LeadByForeignKeyGetResponseData> {
574
1250
  }
@@ -577,67 +1253,234 @@ export interface LeadDestroyByForeignKeyDeleteResponse extends ApiEnvelope<boole
577
1253
  }
578
1254
  /** Backend request type: UpdateLeadRequest. */
579
1255
  export interface LeadUpdateByForeignKeyPutInput extends JsonObject {
580
- "profile_id"?: string;
581
- "title"?: string;
582
- "description"?: string;
583
- "task_priority"?: number;
584
- "campaign"?: string;
585
- "source"?: string;
586
- "task_status"?: string;
587
- "foreign_key"?: string;
588
- "flags"?: string[];
589
- "enrollment_id"?: number;
590
- "enrollment_course_id"?: number;
591
- "installment_id"?: number;
592
- "installment_enrollment_id"?: number;
593
- "active_at"?: string;
594
- "assignee_ids"?: string[];
595
- "meta"?: JsonValue;
596
- "workflow_node_id"?: string;
597
- "assignee_profile_id"?: string;
1256
+ "profile_id"?: string | null;
1257
+ "title"?: string | null;
1258
+ "description"?: string | null;
1259
+ "task_priority"?: number | null;
1260
+ "campaign"?: string | null;
1261
+ "source"?: string | null;
1262
+ "task_status"?: string | null;
1263
+ "foreign_key"?: string | null;
1264
+ "flags"?: string[] | null;
1265
+ "enrollment_id"?: number | null;
1266
+ "enrollment_course_id"?: number | null;
1267
+ "installment_id"?: number | null;
1268
+ "installment_enrollment_id"?: number | null;
1269
+ "active_at"?: string | null;
1270
+ "assignee_ids"?: string[] | null;
1271
+ "meta"?: JsonValue | null;
1272
+ "workflow_node_id"?: string | null;
1273
+ "assignee_profile_id"?: string | null;
598
1274
  }
599
1275
  /** 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
+ }
600
1313
  export interface LeadUpdateByForeignKeyPutResponseData extends JsonObject {
601
1314
  "id": string;
602
- "profile_id"?: string;
603
- "title"?: string;
604
- "description"?: string;
1315
+ "profile_id"?: string | null;
1316
+ "title"?: string | null;
1317
+ "description"?: string | null;
605
1318
  "creator_id": string;
606
- "creator"?: JsonValue;
607
- "workflow_id"?: string;
608
- "workflow_node_id"?: string;
609
- "campaign_id"?: string;
610
- "source_id"?: string;
1319
+ "creator"?: LeadUpdateByForeignKeyPutResponseDataCreator | null;
1320
+ "workflow_id"?: string | null;
1321
+ "workflow_node_id"?: string | null;
1322
+ "campaign_id"?: string | null;
1323
+ "source_id"?: string | null;
611
1324
  "task_status": string;
612
- "foreign_key"?: string;
1325
+ "foreign_key"?: string | null;
613
1326
  "task_priority": number;
614
1327
  "flags": string[];
615
- "profile"?: JsonValue;
1328
+ "profile"?: LeadUpdateByForeignKeyPutResponseDataProfile | null;
616
1329
  "created_at": string;
617
1330
  "updated_at": string;
618
- "enrollment_id"?: number;
619
- "enrollment_course_id"?: number;
620
- "installment_id"?: number;
621
- "installment_enrollment_id"?: number;
622
- "active_at"?: string;
623
- "is_active_status"?: boolean;
624
- "is_sos_assignee"?: boolean;
625
- "workflow"?: JsonValue;
626
- "workflow_node"?: JsonValue;
627
- "is_in_reminder"?: boolean;
628
- "meta_data"?: JsonValue;
1331
+ "enrollment_id"?: number | null;
1332
+ "enrollment_course_id"?: number | null;
1333
+ "installment_id"?: number | null;
1334
+ "installment_enrollment_id"?: number | null;
1335
+ "active_at"?: string | null;
1336
+ "is_active_status"?: boolean | null;
1337
+ "is_sos_assignee"?: boolean | null;
1338
+ "workflow"?: LeadUpdateByForeignKeyPutResponseDataWorkflow | null;
1339
+ "workflow_node"?: LeadUpdateByForeignKeyPutResponseDataWorkflowNode | null;
1340
+ "is_in_reminder"?: boolean | null;
1341
+ "meta_data"?: JsonValue | null;
629
1342
  }
630
1343
  export interface LeadUpdateByForeignKeyPutResponse extends ApiEnvelope<LeadUpdateByForeignKeyPutResponseData> {
631
1344
  }
632
1345
  /** Backend query type: LeadLightQuery. */
633
1346
  export interface LeadLightGetQuery extends QueryParams {
634
- "sort"?: string;
635
- "page[limit]"?: number;
636
- "page[number]"?: number;
1347
+ "sort"?: string | null;
1348
+ "page[limit]"?: number | null;
1349
+ "page[number]"?: number | null;
637
1350
  }
638
1351
  /** 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
+ }
639
1482
  export interface LeadLightGetResponseData extends JsonObject {
640
- "leads": JsonValue[];
1483
+ "leads": LeadLightGetResponseDataLeads[];
641
1484
  "total_count": number;
642
1485
  "won_count": number;
643
1486
  "lost_count": number;
@@ -650,7 +1493,7 @@ export interface ReminderIndexGetResponseItem extends JsonObject {
650
1493
  "lead_id": string;
651
1494
  "profile_id": string;
652
1495
  "remind": string;
653
- "description"?: string;
1496
+ "description"?: string | null;
654
1497
  "created_at": string;
655
1498
  "updated_at": string;
656
1499
  }
@@ -660,7 +1503,7 @@ export interface ReminderIndexGetResponse extends ApiEnvelope<ReminderIndexGetRe
660
1503
  export interface ReminderCreatePostInput extends JsonObject {
661
1504
  "lead_id": string;
662
1505
  "remind": string;
663
- "description"?: string;
1506
+ "description"?: string | null;
664
1507
  }
665
1508
  /** Backend response type: ReminderResponse. */
666
1509
  export interface ReminderCreatePostResponseData extends JsonObject {
@@ -668,7 +1511,7 @@ export interface ReminderCreatePostResponseData extends JsonObject {
668
1511
  "lead_id": string;
669
1512
  "profile_id": string;
670
1513
  "remind": string;
671
- "description"?: string;
1514
+ "description"?: string | null;
672
1515
  "created_at": string;
673
1516
  "updated_at": string;
674
1517
  }
@@ -679,8 +1522,8 @@ export interface ReminderDestroyDeleteResponse extends ApiEnvelope<boolean> {
679
1522
  }
680
1523
  /** Backend request type: UpdateReminderRequest. */
681
1524
  export interface ReminderUpdatePutInput extends JsonObject {
682
- "remind"?: string;
683
- "description"?: string;
1525
+ "remind"?: string | null;
1526
+ "description"?: string | null;
684
1527
  }
685
1528
  /** Backend response type: ReminderResponse. */
686
1529
  export interface ReminderUpdatePutResponseData extends JsonObject {
@@ -688,7 +1531,7 @@ export interface ReminderUpdatePutResponseData extends JsonObject {
688
1531
  "lead_id": string;
689
1532
  "profile_id": string;
690
1533
  "remind": string;
691
- "description"?: string;
1534
+ "description"?: string | null;
692
1535
  "created_at": string;
693
1536
  "updated_at": string;
694
1537
  }
@@ -703,7 +1546,7 @@ export interface ReminderUntilTodayGetResponseItem extends JsonObject {
703
1546
  "lead_id": string;
704
1547
  "profile_id": string;
705
1548
  "remind": string;
706
- "description"?: string;
1549
+ "description"?: string | null;
707
1550
  "created_at": string;
708
1551
  "updated_at": string;
709
1552
  }
@@ -711,11 +1554,18 @@ export interface ReminderUntilTodayGetResponse extends ApiEnvelope<ReminderUntil
711
1554
  }
712
1555
  /** Backend query type: SortQuery. */
713
1556
  export interface SosIndexGetQuery extends QueryParams {
714
- "sort"?: string;
1557
+ "sort"?: string | null;
715
1558
  }
716
1559
  /** 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
+ }
717
1567
  export interface SosIndexGetResponseData extends JsonObject {
718
- "sos": JsonValue[];
1568
+ "sos": SosIndexGetResponseDataSos[];
719
1569
  }
720
1570
  export interface SosIndexGetResponse extends ApiEnvelope<SosIndexGetResponseData> {
721
1571
  }
@@ -748,7 +1598,7 @@ export interface SosShowGetResponse extends ApiEnvelope<SosShowGetResponseData>
748
1598
  }
749
1599
  /** Backend request type: UpdateSosRequest. */
750
1600
  export interface SosUpdatePutInput extends JsonObject {
751
- "profile_id"?: string;
1601
+ "profile_id"?: string | null;
752
1602
  }
753
1603
  /** Backend response type: SosResponse. */
754
1604
  export interface SosUpdatePutResponseData extends JsonObject {
@@ -765,7 +1615,7 @@ export interface SosListLogsGetResponseItem extends JsonObject {
765
1615
  "id": string;
766
1616
  "sos_id": string;
767
1617
  "profile_id": string;
768
- "description"?: string;
1618
+ "description"?: string | null;
769
1619
  "created_at": string;
770
1620
  "updated_at": string;
771
1621
  }
@@ -773,14 +1623,14 @@ export interface SosListLogsGetResponse extends ApiEnvelope<SosListLogsGetRespon
773
1623
  }
774
1624
  /** Backend request type: CreateSosLogRequest. */
775
1625
  export interface SosCreateLogPostInput extends JsonObject {
776
- "description"?: string;
1626
+ "description"?: string | null;
777
1627
  }
778
1628
  /** Backend response type: SosLogResponse. */
779
1629
  export interface SosCreateLogPostResponseData extends JsonObject {
780
1630
  "id": string;
781
1631
  "sos_id": string;
782
1632
  "profile_id": string;
783
- "description"?: string;
1633
+ "description"?: string | null;
784
1634
  "created_at": string;
785
1635
  "updated_at": string;
786
1636
  }
@@ -794,7 +1644,7 @@ export interface SosShowLogGetResponseData extends JsonObject {
794
1644
  "id": string;
795
1645
  "sos_id": string;
796
1646
  "profile_id": string;
797
- "description"?: string;
1647
+ "description"?: string | null;
798
1648
  "created_at": string;
799
1649
  "updated_at": string;
800
1650
  }
@@ -802,14 +1652,14 @@ export interface SosShowLogGetResponse extends ApiEnvelope<SosShowLogGetResponse
802
1652
  }
803
1653
  /** Backend request type: UpdateSosLogRequest. */
804
1654
  export interface SosUpdateLogPutInput extends JsonObject {
805
- "description"?: string;
1655
+ "description"?: string | null;
806
1656
  }
807
1657
  /** Backend response type: SosLogResponse. */
808
1658
  export interface SosUpdateLogPutResponseData extends JsonObject {
809
1659
  "id": string;
810
1660
  "sos_id": string;
811
1661
  "profile_id": string;
812
- "description"?: string;
1662
+ "description"?: string | null;
813
1663
  "created_at": string;
814
1664
  "updated_at": string;
815
1665
  }
@@ -820,7 +1670,7 @@ export interface SosListTouchesGetResponseItem extends JsonObject {
820
1670
  "id": string;
821
1671
  "sos_id": string;
822
1672
  "profile_id": string;
823
- "description"?: string;
1673
+ "description"?: string | null;
824
1674
  "created_at": string;
825
1675
  "updated_at": string;
826
1676
  }
@@ -828,14 +1678,14 @@ export interface SosListTouchesGetResponse extends ApiEnvelope<SosListTouchesGet
828
1678
  }
829
1679
  /** Backend request type: CreateSosTouchRequest. */
830
1680
  export interface SosCreateTouchPostInput extends JsonObject {
831
- "description"?: string;
1681
+ "description"?: string | null;
832
1682
  }
833
1683
  /** Backend response type: SosTouchResponse. */
834
1684
  export interface SosCreateTouchPostResponseData extends JsonObject {
835
1685
  "id": string;
836
1686
  "sos_id": string;
837
1687
  "profile_id": string;
838
- "description"?: string;
1688
+ "description"?: string | null;
839
1689
  "created_at": string;
840
1690
  "updated_at": string;
841
1691
  }
@@ -849,7 +1699,7 @@ export interface SosShowTouchGetResponseData extends JsonObject {
849
1699
  "id": string;
850
1700
  "sos_id": string;
851
1701
  "profile_id": string;
852
- "description"?: string;
1702
+ "description"?: string | null;
853
1703
  "created_at": string;
854
1704
  "updated_at": string;
855
1705
  }
@@ -857,14 +1707,14 @@ export interface SosShowTouchGetResponse extends ApiEnvelope<SosShowTouchGetResp
857
1707
  }
858
1708
  /** Backend request type: UpdateSosTouchRequest. */
859
1709
  export interface SosUpdateTouchPutInput extends JsonObject {
860
- "description"?: string;
1710
+ "description"?: string | null;
861
1711
  }
862
1712
  /** Backend response type: SosTouchResponse. */
863
1713
  export interface SosUpdateTouchPutResponseData extends JsonObject {
864
1714
  "id": string;
865
1715
  "sos_id": string;
866
1716
  "profile_id": string;
867
- "description"?: string;
1717
+ "description"?: string | null;
868
1718
  "created_at": string;
869
1719
  "updated_at": string;
870
1720
  }
@@ -872,11 +1722,18 @@ export interface SosUpdateTouchPutResponse extends ApiEnvelope<SosUpdateTouchPut
872
1722
  }
873
1723
  /** Backend query type: SortQuery. */
874
1724
  export interface SosAllGetQuery extends QueryParams {
875
- "sort"?: string;
1725
+ "sort"?: string | null;
876
1726
  }
877
1727
  /** 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
+ }
878
1735
  export interface SosAllGetResponseData extends JsonObject {
879
- "sos": JsonValue[];
1736
+ "sos": SosAllGetResponseDataSos[];
880
1737
  }
881
1738
  export interface SosAllGetResponse extends ApiEnvelope<SosAllGetResponseData> {
882
1739
  }
@@ -891,8 +1748,17 @@ export interface SosExitAssigneeRoutePostResponseData extends JsonObject {
891
1748
  export interface SosExitAssigneeRoutePostResponse extends ApiEnvelope<SosExitAssigneeRoutePostResponseData> {
892
1749
  }
893
1750
  /** 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
+ }
894
1760
  export interface StatsDailyGetResponseData extends JsonObject {
895
- "workflows": JsonValue[];
1761
+ "workflows": StatsDailyGetResponseDataWorkflows[];
896
1762
  "total_tasks": number;
897
1763
  "total_done_tasks": number;
898
1764
  "extra_tasks_done": number;
@@ -901,16 +1767,25 @@ export interface StatsDailyGetResponseData extends JsonObject {
901
1767
  export interface StatsDailyGetResponse extends ApiEnvelope<StatsDailyGetResponseData> {
902
1768
  }
903
1769
  /** 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
+ }
904
1779
  export interface StatsLeadGetResponseData extends JsonObject {
905
1780
  "total": number;
906
- "workflows": JsonValue[];
1781
+ "workflows": StatsLeadGetResponseDataWorkflows[];
907
1782
  "permissions": string[];
908
1783
  }
909
1784
  export interface StatsLeadGetResponse extends ApiEnvelope<StatsLeadGetResponseData> {
910
1785
  }
911
1786
  /** Backend query type: SortQuery. */
912
1787
  export interface TeamIndexGetQuery extends QueryParams {
913
- "sort"?: string;
1788
+ "sort"?: string | null;
914
1789
  }
915
1790
  /** Backend response type: Vec<TeamResponse>. */
916
1791
  export interface TeamIndexGetResponseItem extends JsonObject {
@@ -936,7 +1811,7 @@ export interface TeamCreatePostResponse extends ApiEnvelope<TeamCreatePostRespon
936
1811
  }
937
1812
  /** Backend query type: SortQuery. */
938
1813
  export interface TeamUserIndexGetQuery extends QueryParams {
939
- "sort"?: string;
1814
+ "sort"?: string | null;
940
1815
  }
941
1816
  /** Backend response type: Vec<TeamUserResponse>. */
942
1817
  export interface TeamUserIndexGetResponseItem extends JsonObject {
@@ -978,8 +1853,8 @@ export interface TeamUserShowGetResponse extends ApiEnvelope<TeamUserShowGetResp
978
1853
  }
979
1854
  /** Backend request type: UpdateTeamUserRequest. */
980
1855
  export interface TeamUserUpdatePutInput extends JsonObject {
981
- "team_id"?: string;
982
- "profile_id"?: string;
1856
+ "team_id"?: string | null;
1857
+ "profile_id"?: string | null;
983
1858
  }
984
1859
  /** Backend response type: TeamUserResponse. */
985
1860
  export interface TeamUserUpdatePutResponseData extends JsonObject {
@@ -1020,7 +1895,7 @@ export interface TeamShowGetResponse extends ApiEnvelope<TeamShowGetResponseData
1020
1895
  }
1021
1896
  /** Backend request type: UpdateTeamRequest. */
1022
1897
  export interface TeamUpdatePutInput extends JsonObject {
1023
- "name"?: string;
1898
+ "name"?: string | null;
1024
1899
  }
1025
1900
  /** Backend response type: TeamResponse. */
1026
1901
  export interface TeamUpdatePutResponseData extends JsonObject {
@@ -1075,9 +1950,9 @@ export interface WebhookShowGetResponse extends ApiEnvelope<WebhookShowGetRespon
1075
1950
  }
1076
1951
  /** Backend request type: UpdateWebhookRequest. */
1077
1952
  export interface WebhookUpdatePutInput extends JsonObject {
1078
- "domain"?: string;
1079
- "events"?: JsonValue;
1080
- "workflow_id"?: string;
1953
+ "domain"?: string | null;
1954
+ "events"?: JsonValue | null;
1955
+ "workflow_id"?: string | null;
1081
1956
  }
1082
1957
  /** Backend response type: WebhookResponse. */
1083
1958
  export interface WebhookUpdatePutResponseData extends JsonObject {
@@ -1092,7 +1967,7 @@ export interface WebhookUpdatePutResponse extends ApiEnvelope<WebhookUpdatePutRe
1092
1967
  }
1093
1968
  /** Backend query type: SortQuery. */
1094
1969
  export interface WorkflowIndexGetQuery extends QueryParams {
1095
- "sort"?: string;
1970
+ "sort"?: string | null;
1096
1971
  }
1097
1972
  /** Backend response type: Vec<WorkflowResponse>. */
1098
1973
  export interface WorkflowIndexGetResponseItem extends JsonObject {
@@ -1102,8 +1977,8 @@ export interface WorkflowIndexGetResponseItem extends JsonObject {
1102
1977
  "acquire_flags": string[];
1103
1978
  "priority": number;
1104
1979
  "can_create_lead": boolean;
1105
- "actions"?: JsonValue;
1106
- "hint"?: string;
1980
+ "actions"?: JsonValue | null;
1981
+ "hint"?: string | null;
1107
1982
  "created_at": string;
1108
1983
  "updated_at": string;
1109
1984
  }
@@ -1115,9 +1990,9 @@ export interface WorkflowCreatePostInput extends JsonObject {
1115
1990
  "slug": string;
1116
1991
  "acquire_flags": string[];
1117
1992
  "priority": number;
1118
- "can_create_lead": boolean;
1119
- "actions"?: JsonValue;
1120
- "hint"?: string;
1993
+ "can_create_lead"?: boolean;
1994
+ "actions"?: JsonValue | null;
1995
+ "hint"?: string | null;
1121
1996
  }
1122
1997
  /** Backend response type: WorkflowResponse. */
1123
1998
  export interface WorkflowCreatePostResponseData extends JsonObject {
@@ -1127,8 +2002,8 @@ export interface WorkflowCreatePostResponseData extends JsonObject {
1127
2002
  "acquire_flags": string[];
1128
2003
  "priority": number;
1129
2004
  "can_create_lead": boolean;
1130
- "actions"?: JsonValue;
1131
- "hint"?: string;
2005
+ "actions"?: JsonValue | null;
2006
+ "hint"?: string | null;
1132
2007
  "created_at": string;
1133
2008
  "updated_at": string;
1134
2009
  }
@@ -1138,8 +2013,8 @@ export interface WorkflowCreatePostResponse extends ApiEnvelope<WorkflowCreatePo
1138
2013
  export interface WorkflowMemberIndexGetResponseItem extends JsonObject {
1139
2014
  "id": string;
1140
2015
  "workflow_id": string;
1141
- "team_id"?: string;
1142
- "profile_id"?: string;
2016
+ "team_id"?: string | null;
2017
+ "profile_id"?: string | null;
1143
2018
  "created_at": string;
1144
2019
  "updated_at": string;
1145
2020
  }
@@ -1152,8 +2027,8 @@ export interface WorkflowMemberDestroyDeleteResponse extends ApiEnvelope<boolean
1152
2027
  export interface WorkflowMemberShowGetResponseData extends JsonObject {
1153
2028
  "id": string;
1154
2029
  "workflow_id": string;
1155
- "team_id"?: string;
1156
- "profile_id"?: string;
2030
+ "team_id"?: string | null;
2031
+ "profile_id"?: string | null;
1157
2032
  "created_at": string;
1158
2033
  "updated_at": string;
1159
2034
  }
@@ -1161,15 +2036,15 @@ export interface WorkflowMemberShowGetResponse extends ApiEnvelope<WorkflowMembe
1161
2036
  }
1162
2037
  /** Backend request type: CreateWorkflowMemberRequest. */
1163
2038
  export interface WorkflowMemberCreatePostInput extends JsonObject {
1164
- "team_id"?: string;
1165
- "profile_id"?: string;
2039
+ "team_id"?: string | null;
2040
+ "profile_id"?: string | null;
1166
2041
  }
1167
2042
  /** Backend response type: WorkflowMemberResponse. */
1168
2043
  export interface WorkflowMemberCreatePostResponseData extends JsonObject {
1169
2044
  "id": string;
1170
2045
  "workflow_id": string;
1171
- "team_id"?: string;
1172
- "profile_id"?: string;
2046
+ "team_id"?: string | null;
2047
+ "profile_id"?: string | null;
1173
2048
  "created_at": string;
1174
2049
  "updated_at": string;
1175
2050
  }
@@ -1177,15 +2052,15 @@ export interface WorkflowMemberCreatePostResponse extends ApiEnvelope<WorkflowMe
1177
2052
  }
1178
2053
  /** Backend request type: UpdateWorkflowMemberRequest. */
1179
2054
  export interface WorkflowMemberUpdatePutInput extends JsonObject {
1180
- "team_id"?: string;
1181
- "profile_id"?: string;
2055
+ "team_id"?: string | null;
2056
+ "profile_id"?: string | null;
1182
2057
  }
1183
2058
  /** Backend response type: WorkflowMemberResponse. */
1184
2059
  export interface WorkflowMemberUpdatePutResponseData extends JsonObject {
1185
2060
  "id": string;
1186
2061
  "workflow_id": string;
1187
- "team_id"?: string;
1188
- "profile_id"?: string;
2062
+ "team_id"?: string | null;
2063
+ "profile_id"?: string | null;
1189
2064
  "created_at": string;
1190
2065
  "updated_at": string;
1191
2066
  }
@@ -1195,8 +2070,8 @@ export interface WorkflowMemberUpdatePutResponse extends ApiEnvelope<WorkflowMem
1195
2070
  export interface WorkflowMemberByWorkflowGetResponseItem extends JsonObject {
1196
2071
  "id": string;
1197
2072
  "workflow_id": string;
1198
- "team_id"?: string;
1199
- "profile_id"?: string;
2073
+ "team_id"?: string | null;
2074
+ "profile_id"?: string | null;
1200
2075
  "created_at": string;
1201
2076
  "updated_at": string;
1202
2077
  }
@@ -1204,7 +2079,7 @@ export interface WorkflowMemberByWorkflowGetResponse extends ApiEnvelope<Workflo
1204
2079
  }
1205
2080
  /** Backend query type: SortQuery. */
1206
2081
  export interface WorkflowNodeIndexGetQuery extends QueryParams {
1207
- "sort"?: string;
2082
+ "sort"?: string | null;
1208
2083
  }
1209
2084
  /** Backend response type: Vec<WorkflowNodeResponse>. */
1210
2085
  export interface WorkflowNodeIndexGetResponseItem extends JsonObject {
@@ -1215,7 +2090,7 @@ export interface WorkflowNodeIndexGetResponseItem extends JsonObject {
1215
2090
  "workflow_id": string;
1216
2091
  "is_draggable_in": boolean;
1217
2092
  "is_draggable_out": boolean;
1218
- "actions"?: JsonValue;
2093
+ "actions"?: JsonValue | null;
1219
2094
  "auto_win": boolean;
1220
2095
  "created_at": string;
1221
2096
  "updated_at": string;
@@ -1234,7 +2109,7 @@ export interface WorkflowNodeShowGetResponseData extends JsonObject {
1234
2109
  "workflow_id": string;
1235
2110
  "is_draggable_in": boolean;
1236
2111
  "is_draggable_out": boolean;
1237
- "actions"?: JsonValue;
2112
+ "actions"?: JsonValue | null;
1238
2113
  "auto_win": boolean;
1239
2114
  "created_at": string;
1240
2115
  "updated_at": string;
@@ -1246,10 +2121,10 @@ export interface WorkflowNodeCreatePostInput extends JsonObject {
1246
2121
  "name": string;
1247
2122
  "slug": string;
1248
2123
  "priority": number;
1249
- "is_draggable_in": boolean;
1250
- "is_draggable_out": boolean;
1251
- "actions"?: JsonValue;
1252
- "auto_win": boolean;
2124
+ "is_draggable_in"?: boolean;
2125
+ "is_draggable_out"?: boolean;
2126
+ "actions"?: JsonValue | null;
2127
+ "auto_win"?: boolean;
1253
2128
  }
1254
2129
  /** Backend response type: WorkflowNodeResponse. */
1255
2130
  export interface WorkflowNodeCreatePostResponseData extends JsonObject {
@@ -1260,7 +2135,7 @@ export interface WorkflowNodeCreatePostResponseData extends JsonObject {
1260
2135
  "workflow_id": string;
1261
2136
  "is_draggable_in": boolean;
1262
2137
  "is_draggable_out": boolean;
1263
- "actions"?: JsonValue;
2138
+ "actions"?: JsonValue | null;
1264
2139
  "auto_win": boolean;
1265
2140
  "created_at": string;
1266
2141
  "updated_at": string;
@@ -1269,13 +2144,13 @@ export interface WorkflowNodeCreatePostResponse extends ApiEnvelope<WorkflowNode
1269
2144
  }
1270
2145
  /** Backend request type: UpdateWorkflowNodeRequest. */
1271
2146
  export interface WorkflowNodeUpdatePutInput extends JsonObject {
1272
- "name"?: string;
1273
- "slug"?: string;
1274
- "priority"?: number;
1275
- "is_draggable_in"?: boolean;
1276
- "is_draggable_out"?: boolean;
1277
- "actions"?: JsonValue;
1278
- "auto_win"?: boolean;
2147
+ "name"?: string | null;
2148
+ "slug"?: string | null;
2149
+ "priority"?: number | null;
2150
+ "is_draggable_in"?: boolean | null;
2151
+ "is_draggable_out"?: boolean | null;
2152
+ "actions"?: JsonValue | null;
2153
+ "auto_win"?: boolean | null;
1279
2154
  }
1280
2155
  /** Backend response type: WorkflowNodeResponse. */
1281
2156
  export interface WorkflowNodeUpdatePutResponseData extends JsonObject {
@@ -1286,7 +2161,7 @@ export interface WorkflowNodeUpdatePutResponseData extends JsonObject {
1286
2161
  "workflow_id": string;
1287
2162
  "is_draggable_in": boolean;
1288
2163
  "is_draggable_out": boolean;
1289
- "actions"?: JsonValue;
2164
+ "actions"?: JsonValue | null;
1290
2165
  "auto_win": boolean;
1291
2166
  "created_at": string;
1292
2167
  "updated_at": string;
@@ -1304,8 +2179,8 @@ export interface WorkflowShowGetResponseData extends JsonObject {
1304
2179
  "acquire_flags": string[];
1305
2180
  "priority": number;
1306
2181
  "can_create_lead": boolean;
1307
- "actions"?: JsonValue;
1308
- "hint"?: string;
2182
+ "actions"?: JsonValue | null;
2183
+ "hint"?: string | null;
1309
2184
  "created_at": string;
1310
2185
  "updated_at": string;
1311
2186
  }
@@ -1313,13 +2188,13 @@ export interface WorkflowShowGetResponse extends ApiEnvelope<WorkflowShowGetResp
1313
2188
  }
1314
2189
  /** Backend request type: UpdateWorkflowRequest. */
1315
2190
  export interface WorkflowUpdatePutInput extends JsonObject {
1316
- "name"?: string;
1317
- "slug"?: string;
1318
- "acquire_flags"?: string[];
1319
- "priority"?: number;
1320
- "can_create_lead"?: boolean;
1321
- "actions"?: JsonValue;
1322
- "hint"?: string;
2191
+ "name"?: string | null;
2192
+ "slug"?: string | null;
2193
+ "acquire_flags"?: string[] | null;
2194
+ "priority"?: number | null;
2195
+ "can_create_lead"?: boolean | null;
2196
+ "actions"?: JsonValue | null;
2197
+ "hint"?: string | null;
1323
2198
  }
1324
2199
  /** Backend response type: WorkflowResponse. */
1325
2200
  export interface WorkflowUpdatePutResponseData extends JsonObject {
@@ -1329,8 +2204,8 @@ export interface WorkflowUpdatePutResponseData extends JsonObject {
1329
2204
  "acquire_flags": string[];
1330
2205
  "priority": number;
1331
2206
  "can_create_lead": boolean;
1332
- "actions"?: JsonValue;
1333
- "hint"?: string;
2207
+ "actions"?: JsonValue | null;
2208
+ "hint"?: string | null;
1334
2209
  "created_at": string;
1335
2210
  "updated_at": string;
1336
2211
  }
@@ -1344,8 +2219,8 @@ export interface WorkflowMemberBasedGetResponseItem extends JsonObject {
1344
2219
  "acquire_flags": string[];
1345
2220
  "priority": number;
1346
2221
  "can_create_lead": boolean;
1347
- "actions"?: JsonValue;
1348
- "hint"?: string;
2222
+ "actions"?: JsonValue | null;
2223
+ "hint"?: string | null;
1349
2224
  "created_at": string;
1350
2225
  "updated_at": string;
1351
2226
  }
@@ -1353,7 +2228,7 @@ export interface WorkflowMemberBasedGetResponse extends ApiEnvelope<WorkflowMemb
1353
2228
  }
1354
2229
  /** Backend query type: SortQuery. */
1355
2230
  export interface WorklogIndexGetQuery extends QueryParams {
1356
- "sort"?: string;
2231
+ "sort"?: string | null;
1357
2232
  }
1358
2233
  /** Backend response type: Vec<WorklogResponse>. */
1359
2234
  export interface WorklogIndexGetResponseItem extends JsonObject {
@@ -1363,7 +2238,7 @@ export interface WorklogIndexGetResponseItem extends JsonObject {
1363
2238
  "profile_id": string;
1364
2239
  "start_date": string;
1365
2240
  "duration": number;
1366
- "description"?: string;
2241
+ "description"?: string | null;
1367
2242
  "created_at": string;
1368
2243
  "updated_at": string;
1369
2244
  }
@@ -1374,7 +2249,7 @@ export interface WorklogCreatePostInput extends JsonObject {
1374
2249
  "log_type": string;
1375
2250
  "start_date": string;
1376
2251
  "duration": number;
1377
- "description"?: string;
2252
+ "description"?: string | null;
1378
2253
  "profile_id": string;
1379
2254
  }
1380
2255
  /** Backend response type: WorklogResponse. */
@@ -1385,7 +2260,7 @@ export interface WorklogCreatePostResponseData extends JsonObject {
1385
2260
  "profile_id": string;
1386
2261
  "start_date": string;
1387
2262
  "duration": number;
1388
- "description"?: string;
2263
+ "description"?: string | null;
1389
2264
  "created_at": string;
1390
2265
  "updated_at": string;
1391
2266
  }
@@ -1402,7 +2277,7 @@ export interface WorklogShowGetResponseData extends JsonObject {
1402
2277
  "profile_id": string;
1403
2278
  "start_date": string;
1404
2279
  "duration": number;
1405
- "description"?: string;
2280
+ "description"?: string | null;
1406
2281
  "created_at": string;
1407
2282
  "updated_at": string;
1408
2283
  }
@@ -1410,11 +2285,11 @@ export interface WorklogShowGetResponse extends ApiEnvelope<WorklogShowGetRespon
1410
2285
  }
1411
2286
  /** Backend request type: UpdateWorklogRequest. */
1412
2287
  export interface WorklogUpdatePutInput extends JsonObject {
1413
- "log_type"?: string;
1414
- "start_date"?: string;
1415
- "duration"?: number;
1416
- "description"?: string;
1417
- "profile_id"?: string;
2288
+ "log_type"?: string | null;
2289
+ "start_date"?: string | null;
2290
+ "duration"?: number | null;
2291
+ "description"?: string | null;
2292
+ "profile_id"?: string | null;
1418
2293
  }
1419
2294
  /** Backend response type: WorklogResponse. */
1420
2295
  export interface WorklogUpdatePutResponseData extends JsonObject {
@@ -1424,16 +2299,16 @@ export interface WorklogUpdatePutResponseData extends JsonObject {
1424
2299
  "profile_id": string;
1425
2300
  "start_date": string;
1426
2301
  "duration": number;
1427
- "description"?: string;
2302
+ "description"?: string | null;
1428
2303
  "created_at": string;
1429
2304
  "updated_at": string;
1430
2305
  }
1431
2306
  export interface WorklogUpdatePutResponse extends ApiEnvelope<WorklogUpdatePutResponseData> {
1432
2307
  }
1433
- /** Backend response type: response without a declared JSON model. */
2308
+ /** Backend response type: handler-defined response. */
1434
2309
  export interface RouterStatusRouteGetHealthResponse extends ApiEnvelope<JsonValue> {
1435
2310
  }
1436
- /** Backend response type: response without a declared JSON model. */
2311
+ /** Backend response type: handler-defined response. */
1437
2312
  export interface RouterStatusRouteGetUpResponse extends ApiEnvelope<JsonValue> {
1438
2313
  }
1439
2314
  //# sourceMappingURL=operations.types.d.ts.map