@faiber/faiber-crm 0.2.1 → 0.2.2

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.
@@ -0,0 +1,1439 @@
1
+ import type { ApiEnvelope, JsonObject, JsonValue, QueryParams } from "@faiber/sdk-core";
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. */
4
+ export interface RouterStatusRouteGetResponse extends ApiEnvelope<JsonValue> {
5
+ }
6
+ /** Backend response type: response without a declared JSON model. */
7
+ export interface RouterOpenapiJsonGetResponse extends ApiEnvelope<JsonValue> {
8
+ }
9
+ /** Backend response type: crate::integration::models::IntegrationDocsResponse. */
10
+ export interface IntegrationIntegrationDocsShowGetResponseData extends JsonObject {
11
+ "direct": JsonValue;
12
+ "sdk": JsonValue[];
13
+ }
14
+ export interface IntegrationIntegrationDocsShowGetResponse extends ApiEnvelope<IntegrationIntegrationDocsShowGetResponseData> {
15
+ }
16
+ /** Backend response type: infera_flow_sdk::FlowIntegrationResponse. */
17
+ export interface IntegrationFlowIntegrationShowGetResponse extends ApiEnvelope<JsonValue> {
18
+ }
19
+ /** Backend query type: LeadListQuery. */
20
+ export interface LeadIndexGetQuery extends QueryParams {
21
+ "sort"?: string;
22
+ }
23
+ /** Backend response type: LeadListResponse. */
24
+ export interface LeadIndexGetResponseData extends JsonObject {
25
+ "leads": JsonValue[];
26
+ }
27
+ export interface LeadIndexGetResponse extends ApiEnvelope<LeadIndexGetResponseData> {
28
+ }
29
+ /** Backend request type: CreateLeadRequest. */
30
+ export interface LeadCreatePostInput extends JsonObject {
31
+ "profile_id": string;
32
+ "creator_id"?: string;
33
+ "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;
49
+ }
50
+ /** Backend response type: LeadResponse. */
51
+ export interface LeadCreatePostResponseData extends JsonObject {
52
+ "id": string;
53
+ "profile_id"?: string;
54
+ "title"?: string;
55
+ "description"?: string;
56
+ "creator_id": string;
57
+ "creator"?: JsonValue;
58
+ "workflow_id"?: string;
59
+ "workflow_node_id"?: string;
60
+ "campaign_id"?: string;
61
+ "source_id"?: string;
62
+ "task_status": string;
63
+ "foreign_key"?: string;
64
+ "task_priority": number;
65
+ "flags": string[];
66
+ "profile"?: JsonValue;
67
+ "created_at": string;
68
+ "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;
80
+ }
81
+ export interface LeadCreatePostResponse extends ApiEnvelope<LeadCreatePostResponseData> {
82
+ }
83
+ /** Backend response type: Vec<LeadCampaignResponse>. */
84
+ export interface LeadCampaignIndexGetResponseItem extends JsonObject {
85
+ "id": string;
86
+ "name": string;
87
+ "slug": string;
88
+ "created_at": string;
89
+ "updated_at": string;
90
+ }
91
+ export interface LeadCampaignIndexGetResponse extends ApiEnvelope<LeadCampaignIndexGetResponseItem[]> {
92
+ }
93
+ /** Backend request type: CreateLeadCampaignRequest. */
94
+ export interface LeadCampaignCreatePostInput extends JsonObject {
95
+ "name": string;
96
+ "slug": string;
97
+ }
98
+ /** Backend response type: LeadCampaignResponse. */
99
+ export interface LeadCampaignCreatePostResponseData extends JsonObject {
100
+ "id": string;
101
+ "name": string;
102
+ "slug": string;
103
+ "created_at": string;
104
+ "updated_at": string;
105
+ }
106
+ export interface LeadCampaignCreatePostResponse extends ApiEnvelope<LeadCampaignCreatePostResponseData> {
107
+ }
108
+ /** Backend response type: bool. */
109
+ export interface LeadCampaignDestroyDeleteResponse extends ApiEnvelope<boolean> {
110
+ }
111
+ /** Backend response type: LeadCampaignResponse. */
112
+ export interface LeadCampaignShowGetResponseData extends JsonObject {
113
+ "id": string;
114
+ "name": string;
115
+ "slug": string;
116
+ "created_at": string;
117
+ "updated_at": string;
118
+ }
119
+ export interface LeadCampaignShowGetResponse extends ApiEnvelope<LeadCampaignShowGetResponseData> {
120
+ }
121
+ /** Backend request type: UpdateLeadCampaignRequest. */
122
+ export interface LeadCampaignUpdatePutInput extends JsonObject {
123
+ "name"?: string;
124
+ "slug"?: string;
125
+ }
126
+ /** Backend response type: LeadCampaignResponse. */
127
+ export interface LeadCampaignUpdatePutResponseData extends JsonObject {
128
+ "id": string;
129
+ "name": string;
130
+ "slug": string;
131
+ "created_at": string;
132
+ "updated_at": string;
133
+ }
134
+ export interface LeadCampaignUpdatePutResponse extends ApiEnvelope<LeadCampaignUpdatePutResponseData> {
135
+ }
136
+ /** Backend response type: Vec<LeadSourceResponse>. */
137
+ export interface LeadSourceIndexGetResponseItem extends JsonObject {
138
+ "id": string;
139
+ "name": string;
140
+ "slug": string;
141
+ "created_at": string;
142
+ "updated_at": string;
143
+ }
144
+ export interface LeadSourceIndexGetResponse extends ApiEnvelope<LeadSourceIndexGetResponseItem[]> {
145
+ }
146
+ /** Backend request type: CreateLeadSourceRequest. */
147
+ export interface LeadSourceCreatePostInput extends JsonObject {
148
+ "name": string;
149
+ "slug": string;
150
+ }
151
+ /** Backend response type: LeadSourceResponse. */
152
+ export interface LeadSourceCreatePostResponseData extends JsonObject {
153
+ "id": string;
154
+ "name": string;
155
+ "slug": string;
156
+ "created_at": string;
157
+ "updated_at": string;
158
+ }
159
+ export interface LeadSourceCreatePostResponse extends ApiEnvelope<LeadSourceCreatePostResponseData> {
160
+ }
161
+ /** Backend response type: bool. */
162
+ export interface LeadSourceDestroyDeleteResponse extends ApiEnvelope<boolean> {
163
+ }
164
+ /** Backend response type: LeadSourceResponse. */
165
+ export interface LeadSourceShowGetResponseData extends JsonObject {
166
+ "id": string;
167
+ "name": string;
168
+ "slug": string;
169
+ "created_at": string;
170
+ "updated_at": string;
171
+ }
172
+ export interface LeadSourceShowGetResponse extends ApiEnvelope<LeadSourceShowGetResponseData> {
173
+ }
174
+ /** Backend request type: UpdateLeadSourceRequest. */
175
+ export interface LeadSourceUpdatePutInput extends JsonObject {
176
+ "name"?: string;
177
+ "slug"?: string;
178
+ }
179
+ /** Backend response type: LeadSourceResponse. */
180
+ export interface LeadSourceUpdatePutResponseData extends JsonObject {
181
+ "id": string;
182
+ "name": string;
183
+ "slug": string;
184
+ "created_at": string;
185
+ "updated_at": string;
186
+ }
187
+ export interface LeadSourceUpdatePutResponse extends ApiEnvelope<LeadSourceUpdatePutResponseData> {
188
+ }
189
+ /** Backend response type: bool. */
190
+ export interface LeadDestroyDeleteResponse extends ApiEnvelope<boolean> {
191
+ }
192
+ /** Backend response type: LeadResponse. */
193
+ export interface LeadShowGetResponseData extends JsonObject {
194
+ "id": string;
195
+ "profile_id"?: string;
196
+ "title"?: string;
197
+ "description"?: string;
198
+ "creator_id": string;
199
+ "creator"?: JsonValue;
200
+ "workflow_id"?: string;
201
+ "workflow_node_id"?: string;
202
+ "campaign_id"?: string;
203
+ "source_id"?: string;
204
+ "task_status": string;
205
+ "foreign_key"?: string;
206
+ "task_priority": number;
207
+ "flags": string[];
208
+ "profile"?: JsonValue;
209
+ "created_at": string;
210
+ "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;
222
+ }
223
+ export interface LeadShowGetResponse extends ApiEnvelope<LeadShowGetResponseData> {
224
+ }
225
+ /** Backend request type: UpdateLeadRequest. */
226
+ 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;
245
+ }
246
+ /** Backend response type: LeadResponse. */
247
+ export interface LeadUpdatePutResponseData extends JsonObject {
248
+ "id": string;
249
+ "profile_id"?: string;
250
+ "title"?: string;
251
+ "description"?: string;
252
+ "creator_id": string;
253
+ "creator"?: JsonValue;
254
+ "workflow_id"?: string;
255
+ "workflow_node_id"?: string;
256
+ "campaign_id"?: string;
257
+ "source_id"?: string;
258
+ "task_status": string;
259
+ "foreign_key"?: string;
260
+ "task_priority": number;
261
+ "flags": string[];
262
+ "profile"?: JsonValue;
263
+ "created_at": string;
264
+ "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;
276
+ }
277
+ export interface LeadUpdatePutResponse extends ApiEnvelope<LeadUpdatePutResponseData> {
278
+ }
279
+ /** Backend response type: LeadResponse. */
280
+ export interface LeadCheckStatusGetResponseData extends JsonObject {
281
+ "id": string;
282
+ "profile_id"?: string;
283
+ "title"?: string;
284
+ "description"?: string;
285
+ "creator_id": string;
286
+ "creator"?: JsonValue;
287
+ "workflow_id"?: string;
288
+ "workflow_node_id"?: string;
289
+ "campaign_id"?: string;
290
+ "source_id"?: string;
291
+ "task_status": string;
292
+ "foreign_key"?: string;
293
+ "task_priority": number;
294
+ "flags": string[];
295
+ "profile"?: JsonValue;
296
+ "created_at": string;
297
+ "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;
309
+ }
310
+ export interface LeadCheckStatusGetResponse extends ApiEnvelope<LeadCheckStatusGetResponseData> {
311
+ }
312
+ /** Backend response type: LeadLogListResponse. */
313
+ export interface LeadListLogsGetResponseData extends JsonObject {
314
+ "lead_logs": JsonValue[];
315
+ }
316
+ export interface LeadListLogsGetResponse extends ApiEnvelope<LeadListLogsGetResponseData> {
317
+ }
318
+ /** Backend request type: CreateLeadLogRequest. */
319
+ 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;
324
+ "type": string;
325
+ }
326
+ /** Backend response type: LeadLogResponse. */
327
+ export interface LeadCreateLogPostResponseData extends JsonObject {
328
+ "id": string;
329
+ "from_workflow_node_id"?: string;
330
+ "to_workflow_node_id"?: string;
331
+ "type": string;
332
+ "profile_id": string;
333
+ "profile"?: JsonValue;
334
+ "from_status"?: string;
335
+ "to_status"?: string;
336
+ "from_workflow_node"?: JsonValue;
337
+ "to_workflow_node"?: JsonValue;
338
+ "created_at": string;
339
+ "updated_at": string;
340
+ }
341
+ export interface LeadCreateLogPostResponse extends ApiEnvelope<LeadCreateLogPostResponseData> {
342
+ }
343
+ /** Backend response type: bool. */
344
+ export interface LeadDestroyLogDeleteResponse extends ApiEnvelope<boolean> {
345
+ }
346
+ /** Backend response type: LeadLogResponse. */
347
+ export interface LeadShowLogGetResponseData extends JsonObject {
348
+ "id": string;
349
+ "from_workflow_node_id"?: string;
350
+ "to_workflow_node_id"?: string;
351
+ "type": string;
352
+ "profile_id": string;
353
+ "profile"?: JsonValue;
354
+ "from_status"?: string;
355
+ "to_status"?: string;
356
+ "from_workflow_node"?: JsonValue;
357
+ "to_workflow_node"?: JsonValue;
358
+ "created_at": string;
359
+ "updated_at": string;
360
+ }
361
+ export interface LeadShowLogGetResponse extends ApiEnvelope<LeadShowLogGetResponseData> {
362
+ }
363
+ /** Backend request type: UpdateLeadLogRequest. */
364
+ 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;
370
+ }
371
+ /** Backend response type: LeadLogResponse. */
372
+ export interface LeadUpdateLogPutResponseData extends JsonObject {
373
+ "id": string;
374
+ "from_workflow_node_id"?: string;
375
+ "to_workflow_node_id"?: string;
376
+ "type": string;
377
+ "profile_id": string;
378
+ "profile"?: JsonValue;
379
+ "from_status"?: string;
380
+ "to_status"?: string;
381
+ "from_workflow_node"?: JsonValue;
382
+ "to_workflow_node"?: JsonValue;
383
+ "created_at": string;
384
+ "updated_at": string;
385
+ }
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;
392
+ }
393
+ /** Backend response type: LeadResponse. */
394
+ export interface LeadMoveToDonePutResponseData extends JsonObject {
395
+ "id": string;
396
+ "profile_id"?: string;
397
+ "title"?: string;
398
+ "description"?: string;
399
+ "creator_id": string;
400
+ "creator"?: JsonValue;
401
+ "workflow_id"?: string;
402
+ "workflow_node_id"?: string;
403
+ "campaign_id"?: string;
404
+ "source_id"?: string;
405
+ "task_status": string;
406
+ "foreign_key"?: string;
407
+ "task_priority": number;
408
+ "flags": string[];
409
+ "profile"?: JsonValue;
410
+ "created_at": string;
411
+ "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;
423
+ }
424
+ export interface LeadMoveToDonePutResponse extends ApiEnvelope<LeadMoveToDonePutResponseData> {
425
+ }
426
+ /** Backend response type: LeadTouchListResponse. */
427
+ export interface LeadListTouchesGetResponseData extends JsonObject {
428
+ "lead_touch": JsonValue[];
429
+ }
430
+ export interface LeadListTouchesGetResponse extends ApiEnvelope<LeadListTouchesGetResponseData> {
431
+ }
432
+ /** Backend request type: CreateLeadTouchRequest. */
433
+ export interface LeadCreateTouchPostInput extends JsonObject {
434
+ "description"?: string;
435
+ "status": string;
436
+ }
437
+ /** Backend response type: LeadTouchResponse. */
438
+ export interface LeadCreateTouchPostResponseData extends JsonObject {
439
+ "id": string;
440
+ "lead_id": string;
441
+ "profile_id": string;
442
+ "profile"?: JsonValue;
443
+ "description"?: string;
444
+ "status": string;
445
+ "created_at": string;
446
+ "updated_at": string;
447
+ }
448
+ export interface LeadCreateTouchPostResponse extends ApiEnvelope<LeadCreateTouchPostResponseData> {
449
+ }
450
+ /** Backend response type: bool. */
451
+ export interface LeadDestroyTouchDeleteResponse extends ApiEnvelope<boolean> {
452
+ }
453
+ /** Backend response type: LeadTouchResponse. */
454
+ export interface LeadShowTouchGetResponseData extends JsonObject {
455
+ "id": string;
456
+ "lead_id": string;
457
+ "profile_id": string;
458
+ "profile"?: JsonValue;
459
+ "description"?: string;
460
+ "status": string;
461
+ "created_at": string;
462
+ "updated_at": string;
463
+ }
464
+ export interface LeadShowTouchGetResponse extends ApiEnvelope<LeadShowTouchGetResponseData> {
465
+ }
466
+ /** Backend request type: UpdateLeadTouchRequest. */
467
+ export interface LeadUpdateTouchPutInput extends JsonObject {
468
+ "description"?: string;
469
+ "status"?: string;
470
+ }
471
+ /** Backend response type: LeadTouchResponse. */
472
+ export interface LeadUpdateTouchPutResponseData extends JsonObject {
473
+ "id": string;
474
+ "lead_id": string;
475
+ "profile_id": string;
476
+ "profile"?: JsonValue;
477
+ "description"?: string;
478
+ "status": string;
479
+ "created_at": string;
480
+ "updated_at": string;
481
+ }
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;
489
+ "flags": string[];
490
+ "assignee_ids": string[];
491
+ "meta"?: JsonValue;
492
+ }
493
+ /** Backend response type: LeadResponse. */
494
+ export interface LeadCreateDeveloperPostResponseData extends JsonObject {
495
+ "id": string;
496
+ "profile_id"?: string;
497
+ "title"?: string;
498
+ "description"?: string;
499
+ "creator_id": string;
500
+ "creator"?: JsonValue;
501
+ "workflow_id"?: string;
502
+ "workflow_node_id"?: string;
503
+ "campaign_id"?: string;
504
+ "source_id"?: string;
505
+ "task_status": string;
506
+ "foreign_key"?: string;
507
+ "task_priority": number;
508
+ "flags": string[];
509
+ "profile"?: JsonValue;
510
+ "created_at": string;
511
+ "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;
523
+ }
524
+ export interface LeadCreateDeveloperPostResponse extends ApiEnvelope<LeadCreateDeveloperPostResponseData> {
525
+ }
526
+ /** Backend query type: LeadListQuery. */
527
+ export interface LeadDeveloperReadyGetQuery extends QueryParams {
528
+ "sort"?: string;
529
+ }
530
+ /** Backend response type: DeveloperReadyLeadListResponse. */
531
+ export interface LeadDeveloperReadyGetResponseData extends JsonObject {
532
+ "leads": JsonValue[];
533
+ }
534
+ export interface LeadDeveloperReadyGetResponse extends ApiEnvelope<LeadDeveloperReadyGetResponseData> {
535
+ }
536
+ /** Backend query type: ForeignKeyQuery. */
537
+ export interface LeadByForeignKeyGetQuery extends QueryParams {
538
+ "foreign_key"?: string;
539
+ "profile_id"?: string;
540
+ "flags"?: string;
541
+ }
542
+ /** Backend response type: LeadResponse. */
543
+ export interface LeadByForeignKeyGetResponseData extends JsonObject {
544
+ "id": string;
545
+ "profile_id"?: string;
546
+ "title"?: string;
547
+ "description"?: string;
548
+ "creator_id": string;
549
+ "creator"?: JsonValue;
550
+ "workflow_id"?: string;
551
+ "workflow_node_id"?: string;
552
+ "campaign_id"?: string;
553
+ "source_id"?: string;
554
+ "task_status": string;
555
+ "foreign_key"?: string;
556
+ "task_priority": number;
557
+ "flags": string[];
558
+ "profile"?: JsonValue;
559
+ "created_at": string;
560
+ "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;
572
+ }
573
+ export interface LeadByForeignKeyGetResponse extends ApiEnvelope<LeadByForeignKeyGetResponseData> {
574
+ }
575
+ /** Backend response type: bool. */
576
+ export interface LeadDestroyByForeignKeyDeleteResponse extends ApiEnvelope<boolean> {
577
+ }
578
+ /** Backend request type: UpdateLeadRequest. */
579
+ 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;
598
+ }
599
+ /** Backend response type: LeadResponse. */
600
+ export interface LeadUpdateByForeignKeyPutResponseData extends JsonObject {
601
+ "id": string;
602
+ "profile_id"?: string;
603
+ "title"?: string;
604
+ "description"?: string;
605
+ "creator_id": string;
606
+ "creator"?: JsonValue;
607
+ "workflow_id"?: string;
608
+ "workflow_node_id"?: string;
609
+ "campaign_id"?: string;
610
+ "source_id"?: string;
611
+ "task_status": string;
612
+ "foreign_key"?: string;
613
+ "task_priority": number;
614
+ "flags": string[];
615
+ "profile"?: JsonValue;
616
+ "created_at": string;
617
+ "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;
629
+ }
630
+ export interface LeadUpdateByForeignKeyPutResponse extends ApiEnvelope<LeadUpdateByForeignKeyPutResponseData> {
631
+ }
632
+ /** Backend query type: LeadLightQuery. */
633
+ export interface LeadLightGetQuery extends QueryParams {
634
+ "sort"?: string;
635
+ "page[limit]"?: number;
636
+ "page[number]"?: number;
637
+ }
638
+ /** Backend response type: LeadLightListResponse. */
639
+ export interface LeadLightGetResponseData extends JsonObject {
640
+ "leads": JsonValue[];
641
+ "total_count": number;
642
+ "won_count": number;
643
+ "lost_count": number;
644
+ }
645
+ export interface LeadLightGetResponse extends ApiEnvelope<LeadLightGetResponseData> {
646
+ }
647
+ /** Backend response type: Vec<ReminderResponse>. */
648
+ export interface ReminderIndexGetResponseItem extends JsonObject {
649
+ "id": string;
650
+ "lead_id": string;
651
+ "profile_id": string;
652
+ "remind": string;
653
+ "description"?: string;
654
+ "created_at": string;
655
+ "updated_at": string;
656
+ }
657
+ export interface ReminderIndexGetResponse extends ApiEnvelope<ReminderIndexGetResponseItem[]> {
658
+ }
659
+ /** Backend request type: CreateReminderRequest. */
660
+ export interface ReminderCreatePostInput extends JsonObject {
661
+ "lead_id": string;
662
+ "remind": string;
663
+ "description"?: string;
664
+ }
665
+ /** Backend response type: ReminderResponse. */
666
+ export interface ReminderCreatePostResponseData extends JsonObject {
667
+ "id": string;
668
+ "lead_id": string;
669
+ "profile_id": string;
670
+ "remind": string;
671
+ "description"?: string;
672
+ "created_at": string;
673
+ "updated_at": string;
674
+ }
675
+ export interface ReminderCreatePostResponse extends ApiEnvelope<ReminderCreatePostResponseData> {
676
+ }
677
+ /** Backend response type: bool. */
678
+ export interface ReminderDestroyDeleteResponse extends ApiEnvelope<boolean> {
679
+ }
680
+ /** Backend request type: UpdateReminderRequest. */
681
+ export interface ReminderUpdatePutInput extends JsonObject {
682
+ "remind"?: string;
683
+ "description"?: string;
684
+ }
685
+ /** Backend response type: ReminderResponse. */
686
+ export interface ReminderUpdatePutResponseData extends JsonObject {
687
+ "id": string;
688
+ "lead_id": string;
689
+ "profile_id": string;
690
+ "remind": string;
691
+ "description"?: string;
692
+ "created_at": string;
693
+ "updated_at": string;
694
+ }
695
+ export interface ReminderUpdatePutResponse extends ApiEnvelope<ReminderUpdatePutResponseData> {
696
+ }
697
+ /** Backend response type: u64. */
698
+ export interface ReminderDestroyByLeadDeleteResponse extends ApiEnvelope<number> {
699
+ }
700
+ /** Backend response type: Vec<ReminderResponse>. */
701
+ export interface ReminderUntilTodayGetResponseItem extends JsonObject {
702
+ "id": string;
703
+ "lead_id": string;
704
+ "profile_id": string;
705
+ "remind": string;
706
+ "description"?: string;
707
+ "created_at": string;
708
+ "updated_at": string;
709
+ }
710
+ export interface ReminderUntilTodayGetResponse extends ApiEnvelope<ReminderUntilTodayGetResponseItem[]> {
711
+ }
712
+ /** Backend query type: SortQuery. */
713
+ export interface SosIndexGetQuery extends QueryParams {
714
+ "sort"?: string;
715
+ }
716
+ /** Backend response type: SosListResponse. */
717
+ export interface SosIndexGetResponseData extends JsonObject {
718
+ "sos": JsonValue[];
719
+ }
720
+ export interface SosIndexGetResponse extends ApiEnvelope<SosIndexGetResponseData> {
721
+ }
722
+ /** Backend request type: CreateSosRequest. */
723
+ export interface SosCreatePostInput extends JsonObject {
724
+ "profile_id": string;
725
+ }
726
+ /** Backend response type: SosResponse. */
727
+ export interface SosCreatePostResponseData extends JsonObject {
728
+ "id": string;
729
+ "profile_id": string;
730
+ "assignee_ids": string[];
731
+ "created_at": string;
732
+ "updated_at": string;
733
+ }
734
+ export interface SosCreatePostResponse extends ApiEnvelope<SosCreatePostResponseData> {
735
+ }
736
+ /** Backend response type: bool. */
737
+ export interface SosDestroyDeleteResponse extends ApiEnvelope<boolean> {
738
+ }
739
+ /** Backend response type: SosResponse. */
740
+ export interface SosShowGetResponseData extends JsonObject {
741
+ "id": string;
742
+ "profile_id": string;
743
+ "assignee_ids": string[];
744
+ "created_at": string;
745
+ "updated_at": string;
746
+ }
747
+ export interface SosShowGetResponse extends ApiEnvelope<SosShowGetResponseData> {
748
+ }
749
+ /** Backend request type: UpdateSosRequest. */
750
+ export interface SosUpdatePutInput extends JsonObject {
751
+ "profile_id"?: string;
752
+ }
753
+ /** Backend response type: SosResponse. */
754
+ export interface SosUpdatePutResponseData extends JsonObject {
755
+ "id": string;
756
+ "profile_id": string;
757
+ "assignee_ids": string[];
758
+ "created_at": string;
759
+ "updated_at": string;
760
+ }
761
+ export interface SosUpdatePutResponse extends ApiEnvelope<SosUpdatePutResponseData> {
762
+ }
763
+ /** Backend response type: Vec<SosLogResponse>. */
764
+ export interface SosListLogsGetResponseItem extends JsonObject {
765
+ "id": string;
766
+ "sos_id": string;
767
+ "profile_id": string;
768
+ "description"?: string;
769
+ "created_at": string;
770
+ "updated_at": string;
771
+ }
772
+ export interface SosListLogsGetResponse extends ApiEnvelope<SosListLogsGetResponseItem[]> {
773
+ }
774
+ /** Backend request type: CreateSosLogRequest. */
775
+ export interface SosCreateLogPostInput extends JsonObject {
776
+ "description"?: string;
777
+ }
778
+ /** Backend response type: SosLogResponse. */
779
+ export interface SosCreateLogPostResponseData extends JsonObject {
780
+ "id": string;
781
+ "sos_id": string;
782
+ "profile_id": string;
783
+ "description"?: string;
784
+ "created_at": string;
785
+ "updated_at": string;
786
+ }
787
+ export interface SosCreateLogPostResponse extends ApiEnvelope<SosCreateLogPostResponseData> {
788
+ }
789
+ /** Backend response type: bool. */
790
+ export interface SosDestroyLogDeleteResponse extends ApiEnvelope<boolean> {
791
+ }
792
+ /** Backend response type: SosLogResponse. */
793
+ export interface SosShowLogGetResponseData extends JsonObject {
794
+ "id": string;
795
+ "sos_id": string;
796
+ "profile_id": string;
797
+ "description"?: string;
798
+ "created_at": string;
799
+ "updated_at": string;
800
+ }
801
+ export interface SosShowLogGetResponse extends ApiEnvelope<SosShowLogGetResponseData> {
802
+ }
803
+ /** Backend request type: UpdateSosLogRequest. */
804
+ export interface SosUpdateLogPutInput extends JsonObject {
805
+ "description"?: string;
806
+ }
807
+ /** Backend response type: SosLogResponse. */
808
+ export interface SosUpdateLogPutResponseData extends JsonObject {
809
+ "id": string;
810
+ "sos_id": string;
811
+ "profile_id": string;
812
+ "description"?: string;
813
+ "created_at": string;
814
+ "updated_at": string;
815
+ }
816
+ export interface SosUpdateLogPutResponse extends ApiEnvelope<SosUpdateLogPutResponseData> {
817
+ }
818
+ /** Backend response type: Vec<SosTouchResponse>. */
819
+ export interface SosListTouchesGetResponseItem extends JsonObject {
820
+ "id": string;
821
+ "sos_id": string;
822
+ "profile_id": string;
823
+ "description"?: string;
824
+ "created_at": string;
825
+ "updated_at": string;
826
+ }
827
+ export interface SosListTouchesGetResponse extends ApiEnvelope<SosListTouchesGetResponseItem[]> {
828
+ }
829
+ /** Backend request type: CreateSosTouchRequest. */
830
+ export interface SosCreateTouchPostInput extends JsonObject {
831
+ "description"?: string;
832
+ }
833
+ /** Backend response type: SosTouchResponse. */
834
+ export interface SosCreateTouchPostResponseData extends JsonObject {
835
+ "id": string;
836
+ "sos_id": string;
837
+ "profile_id": string;
838
+ "description"?: string;
839
+ "created_at": string;
840
+ "updated_at": string;
841
+ }
842
+ export interface SosCreateTouchPostResponse extends ApiEnvelope<SosCreateTouchPostResponseData> {
843
+ }
844
+ /** Backend response type: bool. */
845
+ export interface SosDestroyTouchDeleteResponse extends ApiEnvelope<boolean> {
846
+ }
847
+ /** Backend response type: SosTouchResponse. */
848
+ export interface SosShowTouchGetResponseData extends JsonObject {
849
+ "id": string;
850
+ "sos_id": string;
851
+ "profile_id": string;
852
+ "description"?: string;
853
+ "created_at": string;
854
+ "updated_at": string;
855
+ }
856
+ export interface SosShowTouchGetResponse extends ApiEnvelope<SosShowTouchGetResponseData> {
857
+ }
858
+ /** Backend request type: UpdateSosTouchRequest. */
859
+ export interface SosUpdateTouchPutInput extends JsonObject {
860
+ "description"?: string;
861
+ }
862
+ /** Backend response type: SosTouchResponse. */
863
+ export interface SosUpdateTouchPutResponseData extends JsonObject {
864
+ "id": string;
865
+ "sos_id": string;
866
+ "profile_id": string;
867
+ "description"?: string;
868
+ "created_at": string;
869
+ "updated_at": string;
870
+ }
871
+ export interface SosUpdateTouchPutResponse extends ApiEnvelope<SosUpdateTouchPutResponseData> {
872
+ }
873
+ /** Backend query type: SortQuery. */
874
+ export interface SosAllGetQuery extends QueryParams {
875
+ "sort"?: string;
876
+ }
877
+ /** Backend response type: SosListResponse. */
878
+ export interface SosAllGetResponseData extends JsonObject {
879
+ "sos": JsonValue[];
880
+ }
881
+ export interface SosAllGetResponse extends ApiEnvelope<SosAllGetResponseData> {
882
+ }
883
+ /** Backend response type: SosResponse. */
884
+ export interface SosExitAssigneeRoutePostResponseData extends JsonObject {
885
+ "id": string;
886
+ "profile_id": string;
887
+ "assignee_ids": string[];
888
+ "created_at": string;
889
+ "updated_at": string;
890
+ }
891
+ export interface SosExitAssigneeRoutePostResponse extends ApiEnvelope<SosExitAssigneeRoutePostResponseData> {
892
+ }
893
+ /** Backend response type: DailyStatsResponse. */
894
+ export interface StatsDailyGetResponseData extends JsonObject {
895
+ "workflows": JsonValue[];
896
+ "total_tasks": number;
897
+ "total_done_tasks": number;
898
+ "extra_tasks_done": number;
899
+ "all_tasks_done": boolean;
900
+ }
901
+ export interface StatsDailyGetResponse extends ApiEnvelope<StatsDailyGetResponseData> {
902
+ }
903
+ /** Backend response type: LeadStatsResponse. */
904
+ export interface StatsLeadGetResponseData extends JsonObject {
905
+ "total": number;
906
+ "workflows": JsonValue[];
907
+ "permissions": string[];
908
+ }
909
+ export interface StatsLeadGetResponse extends ApiEnvelope<StatsLeadGetResponseData> {
910
+ }
911
+ /** Backend query type: SortQuery. */
912
+ export interface TeamIndexGetQuery extends QueryParams {
913
+ "sort"?: string;
914
+ }
915
+ /** Backend response type: Vec<TeamResponse>. */
916
+ export interface TeamIndexGetResponseItem extends JsonObject {
917
+ "id": string;
918
+ "name": string;
919
+ "created_at": string;
920
+ "updated_at": string;
921
+ }
922
+ export interface TeamIndexGetResponse extends ApiEnvelope<TeamIndexGetResponseItem[]> {
923
+ }
924
+ /** Backend request type: CreateTeamRequest. */
925
+ export interface TeamCreatePostInput extends JsonObject {
926
+ "name": string;
927
+ }
928
+ /** Backend response type: TeamResponse. */
929
+ export interface TeamCreatePostResponseData extends JsonObject {
930
+ "id": string;
931
+ "name": string;
932
+ "created_at": string;
933
+ "updated_at": string;
934
+ }
935
+ export interface TeamCreatePostResponse extends ApiEnvelope<TeamCreatePostResponseData> {
936
+ }
937
+ /** Backend query type: SortQuery. */
938
+ export interface TeamUserIndexGetQuery extends QueryParams {
939
+ "sort"?: string;
940
+ }
941
+ /** Backend response type: Vec<TeamUserResponse>. */
942
+ export interface TeamUserIndexGetResponseItem extends JsonObject {
943
+ "id": string;
944
+ "team_id": string;
945
+ "profile_id": string;
946
+ "created_at": string;
947
+ "updated_at": string;
948
+ }
949
+ export interface TeamUserIndexGetResponse extends ApiEnvelope<TeamUserIndexGetResponseItem[]> {
950
+ }
951
+ /** Backend request type: CreateTeamUserRequest. */
952
+ export interface TeamUserCreatePostInput extends JsonObject {
953
+ "team_id": string;
954
+ "profile_id": string;
955
+ }
956
+ /** Backend response type: TeamUserResponse. */
957
+ export interface TeamUserCreatePostResponseData extends JsonObject {
958
+ "id": string;
959
+ "team_id": string;
960
+ "profile_id": string;
961
+ "created_at": string;
962
+ "updated_at": string;
963
+ }
964
+ export interface TeamUserCreatePostResponse extends ApiEnvelope<TeamUserCreatePostResponseData> {
965
+ }
966
+ /** Backend response type: bool. */
967
+ export interface TeamUserDestroyDeleteResponse extends ApiEnvelope<boolean> {
968
+ }
969
+ /** Backend response type: TeamUserResponse. */
970
+ export interface TeamUserShowGetResponseData extends JsonObject {
971
+ "id": string;
972
+ "team_id": string;
973
+ "profile_id": string;
974
+ "created_at": string;
975
+ "updated_at": string;
976
+ }
977
+ export interface TeamUserShowGetResponse extends ApiEnvelope<TeamUserShowGetResponseData> {
978
+ }
979
+ /** Backend request type: UpdateTeamUserRequest. */
980
+ export interface TeamUserUpdatePutInput extends JsonObject {
981
+ "team_id"?: string;
982
+ "profile_id"?: string;
983
+ }
984
+ /** Backend response type: TeamUserResponse. */
985
+ export interface TeamUserUpdatePutResponseData extends JsonObject {
986
+ "id": string;
987
+ "team_id": string;
988
+ "profile_id": string;
989
+ "created_at": string;
990
+ "updated_at": string;
991
+ }
992
+ export interface TeamUserUpdatePutResponse extends ApiEnvelope<TeamUserUpdatePutResponseData> {
993
+ }
994
+ /** Backend request type: MultiProfilesRequest. */
995
+ export interface TeamUserMultiProfilesPostInput extends JsonObject {
996
+ "team_id": string;
997
+ "profile_id": string[];
998
+ }
999
+ /** Backend response type: Vec<TeamUserResponse>. */
1000
+ export interface TeamUserMultiProfilesPostResponseItem extends JsonObject {
1001
+ "id": string;
1002
+ "team_id": string;
1003
+ "profile_id": string;
1004
+ "created_at": string;
1005
+ "updated_at": string;
1006
+ }
1007
+ export interface TeamUserMultiProfilesPostResponse extends ApiEnvelope<TeamUserMultiProfilesPostResponseItem[]> {
1008
+ }
1009
+ /** Backend response type: bool. */
1010
+ export interface TeamDestroyDeleteResponse extends ApiEnvelope<boolean> {
1011
+ }
1012
+ /** Backend response type: TeamResponse. */
1013
+ export interface TeamShowGetResponseData extends JsonObject {
1014
+ "id": string;
1015
+ "name": string;
1016
+ "created_at": string;
1017
+ "updated_at": string;
1018
+ }
1019
+ export interface TeamShowGetResponse extends ApiEnvelope<TeamShowGetResponseData> {
1020
+ }
1021
+ /** Backend request type: UpdateTeamRequest. */
1022
+ export interface TeamUpdatePutInput extends JsonObject {
1023
+ "name"?: string;
1024
+ }
1025
+ /** Backend response type: TeamResponse. */
1026
+ export interface TeamUpdatePutResponseData extends JsonObject {
1027
+ "id": string;
1028
+ "name": string;
1029
+ "created_at": string;
1030
+ "updated_at": string;
1031
+ }
1032
+ export interface TeamUpdatePutResponse extends ApiEnvelope<TeamUpdatePutResponseData> {
1033
+ }
1034
+ /** Backend response type: Vec<WebhookResponse>. */
1035
+ export interface WebhookIndexGetResponseItem extends JsonObject {
1036
+ "id": string;
1037
+ "domain": string;
1038
+ "events": JsonValue;
1039
+ "workflow_id": string;
1040
+ "created_at": string;
1041
+ "updated_at": string;
1042
+ }
1043
+ export interface WebhookIndexGetResponse extends ApiEnvelope<WebhookIndexGetResponseItem[]> {
1044
+ }
1045
+ /** Backend request type: CreateWebhookRequest. */
1046
+ export interface WebhookCreatePostInput extends JsonObject {
1047
+ "domain": string;
1048
+ "events": JsonValue;
1049
+ "workflow_id": string;
1050
+ }
1051
+ /** Backend response type: WebhookResponse. */
1052
+ export interface WebhookCreatePostResponseData extends JsonObject {
1053
+ "id": string;
1054
+ "domain": string;
1055
+ "events": JsonValue;
1056
+ "workflow_id": string;
1057
+ "created_at": string;
1058
+ "updated_at": string;
1059
+ }
1060
+ export interface WebhookCreatePostResponse extends ApiEnvelope<WebhookCreatePostResponseData> {
1061
+ }
1062
+ /** Backend response type: bool. */
1063
+ export interface WebhookDestroyDeleteResponse extends ApiEnvelope<boolean> {
1064
+ }
1065
+ /** Backend response type: WebhookResponse. */
1066
+ export interface WebhookShowGetResponseData extends JsonObject {
1067
+ "id": string;
1068
+ "domain": string;
1069
+ "events": JsonValue;
1070
+ "workflow_id": string;
1071
+ "created_at": string;
1072
+ "updated_at": string;
1073
+ }
1074
+ export interface WebhookShowGetResponse extends ApiEnvelope<WebhookShowGetResponseData> {
1075
+ }
1076
+ /** Backend request type: UpdateWebhookRequest. */
1077
+ export interface WebhookUpdatePutInput extends JsonObject {
1078
+ "domain"?: string;
1079
+ "events"?: JsonValue;
1080
+ "workflow_id"?: string;
1081
+ }
1082
+ /** Backend response type: WebhookResponse. */
1083
+ export interface WebhookUpdatePutResponseData extends JsonObject {
1084
+ "id": string;
1085
+ "domain": string;
1086
+ "events": JsonValue;
1087
+ "workflow_id": string;
1088
+ "created_at": string;
1089
+ "updated_at": string;
1090
+ }
1091
+ export interface WebhookUpdatePutResponse extends ApiEnvelope<WebhookUpdatePutResponseData> {
1092
+ }
1093
+ /** Backend query type: SortQuery. */
1094
+ export interface WorkflowIndexGetQuery extends QueryParams {
1095
+ "sort"?: string;
1096
+ }
1097
+ /** Backend response type: Vec<WorkflowResponse>. */
1098
+ export interface WorkflowIndexGetResponseItem extends JsonObject {
1099
+ "id": string;
1100
+ "name": string;
1101
+ "slug": string;
1102
+ "acquire_flags": string[];
1103
+ "priority": number;
1104
+ "can_create_lead": boolean;
1105
+ "actions"?: JsonValue;
1106
+ "hint"?: string;
1107
+ "created_at": string;
1108
+ "updated_at": string;
1109
+ }
1110
+ export interface WorkflowIndexGetResponse extends ApiEnvelope<WorkflowIndexGetResponseItem[]> {
1111
+ }
1112
+ /** Backend request type: CreateWorkflowRequest. */
1113
+ export interface WorkflowCreatePostInput extends JsonObject {
1114
+ "name": string;
1115
+ "slug": string;
1116
+ "acquire_flags": string[];
1117
+ "priority": number;
1118
+ "can_create_lead": boolean;
1119
+ "actions"?: JsonValue;
1120
+ "hint"?: string;
1121
+ }
1122
+ /** Backend response type: WorkflowResponse. */
1123
+ export interface WorkflowCreatePostResponseData extends JsonObject {
1124
+ "id": string;
1125
+ "name": string;
1126
+ "slug": string;
1127
+ "acquire_flags": string[];
1128
+ "priority": number;
1129
+ "can_create_lead": boolean;
1130
+ "actions"?: JsonValue;
1131
+ "hint"?: string;
1132
+ "created_at": string;
1133
+ "updated_at": string;
1134
+ }
1135
+ export interface WorkflowCreatePostResponse extends ApiEnvelope<WorkflowCreatePostResponseData> {
1136
+ }
1137
+ /** Backend response type: Vec<WorkflowMemberResponse>. */
1138
+ export interface WorkflowMemberIndexGetResponseItem extends JsonObject {
1139
+ "id": string;
1140
+ "workflow_id": string;
1141
+ "team_id"?: string;
1142
+ "profile_id"?: string;
1143
+ "created_at": string;
1144
+ "updated_at": string;
1145
+ }
1146
+ export interface WorkflowMemberIndexGetResponse extends ApiEnvelope<WorkflowMemberIndexGetResponseItem[]> {
1147
+ }
1148
+ /** Backend response type: bool. */
1149
+ export interface WorkflowMemberDestroyDeleteResponse extends ApiEnvelope<boolean> {
1150
+ }
1151
+ /** Backend response type: WorkflowMemberResponse. */
1152
+ export interface WorkflowMemberShowGetResponseData extends JsonObject {
1153
+ "id": string;
1154
+ "workflow_id": string;
1155
+ "team_id"?: string;
1156
+ "profile_id"?: string;
1157
+ "created_at": string;
1158
+ "updated_at": string;
1159
+ }
1160
+ export interface WorkflowMemberShowGetResponse extends ApiEnvelope<WorkflowMemberShowGetResponseData> {
1161
+ }
1162
+ /** Backend request type: CreateWorkflowMemberRequest. */
1163
+ export interface WorkflowMemberCreatePostInput extends JsonObject {
1164
+ "team_id"?: string;
1165
+ "profile_id"?: string;
1166
+ }
1167
+ /** Backend response type: WorkflowMemberResponse. */
1168
+ export interface WorkflowMemberCreatePostResponseData extends JsonObject {
1169
+ "id": string;
1170
+ "workflow_id": string;
1171
+ "team_id"?: string;
1172
+ "profile_id"?: string;
1173
+ "created_at": string;
1174
+ "updated_at": string;
1175
+ }
1176
+ export interface WorkflowMemberCreatePostResponse extends ApiEnvelope<WorkflowMemberCreatePostResponseData> {
1177
+ }
1178
+ /** Backend request type: UpdateWorkflowMemberRequest. */
1179
+ export interface WorkflowMemberUpdatePutInput extends JsonObject {
1180
+ "team_id"?: string;
1181
+ "profile_id"?: string;
1182
+ }
1183
+ /** Backend response type: WorkflowMemberResponse. */
1184
+ export interface WorkflowMemberUpdatePutResponseData extends JsonObject {
1185
+ "id": string;
1186
+ "workflow_id": string;
1187
+ "team_id"?: string;
1188
+ "profile_id"?: string;
1189
+ "created_at": string;
1190
+ "updated_at": string;
1191
+ }
1192
+ export interface WorkflowMemberUpdatePutResponse extends ApiEnvelope<WorkflowMemberUpdatePutResponseData> {
1193
+ }
1194
+ /** Backend response type: Vec<WorkflowMemberResponse>. */
1195
+ export interface WorkflowMemberByWorkflowGetResponseItem extends JsonObject {
1196
+ "id": string;
1197
+ "workflow_id": string;
1198
+ "team_id"?: string;
1199
+ "profile_id"?: string;
1200
+ "created_at": string;
1201
+ "updated_at": string;
1202
+ }
1203
+ export interface WorkflowMemberByWorkflowGetResponse extends ApiEnvelope<WorkflowMemberByWorkflowGetResponseItem[]> {
1204
+ }
1205
+ /** Backend query type: SortQuery. */
1206
+ export interface WorkflowNodeIndexGetQuery extends QueryParams {
1207
+ "sort"?: string;
1208
+ }
1209
+ /** Backend response type: Vec<WorkflowNodeResponse>. */
1210
+ export interface WorkflowNodeIndexGetResponseItem extends JsonObject {
1211
+ "id": string;
1212
+ "name": string;
1213
+ "slug": string;
1214
+ "priority": number;
1215
+ "workflow_id": string;
1216
+ "is_draggable_in": boolean;
1217
+ "is_draggable_out": boolean;
1218
+ "actions"?: JsonValue;
1219
+ "auto_win": boolean;
1220
+ "created_at": string;
1221
+ "updated_at": string;
1222
+ }
1223
+ export interface WorkflowNodeIndexGetResponse extends ApiEnvelope<WorkflowNodeIndexGetResponseItem[]> {
1224
+ }
1225
+ /** Backend response type: bool. */
1226
+ export interface WorkflowNodeDestroyDeleteResponse extends ApiEnvelope<boolean> {
1227
+ }
1228
+ /** Backend response type: WorkflowNodeResponse. */
1229
+ export interface WorkflowNodeShowGetResponseData extends JsonObject {
1230
+ "id": string;
1231
+ "name": string;
1232
+ "slug": string;
1233
+ "priority": number;
1234
+ "workflow_id": string;
1235
+ "is_draggable_in": boolean;
1236
+ "is_draggable_out": boolean;
1237
+ "actions"?: JsonValue;
1238
+ "auto_win": boolean;
1239
+ "created_at": string;
1240
+ "updated_at": string;
1241
+ }
1242
+ export interface WorkflowNodeShowGetResponse extends ApiEnvelope<WorkflowNodeShowGetResponseData> {
1243
+ }
1244
+ /** Backend request type: CreateWorkflowNodeRequest. */
1245
+ export interface WorkflowNodeCreatePostInput extends JsonObject {
1246
+ "name": string;
1247
+ "slug": string;
1248
+ "priority": number;
1249
+ "is_draggable_in": boolean;
1250
+ "is_draggable_out": boolean;
1251
+ "actions"?: JsonValue;
1252
+ "auto_win": boolean;
1253
+ }
1254
+ /** Backend response type: WorkflowNodeResponse. */
1255
+ export interface WorkflowNodeCreatePostResponseData extends JsonObject {
1256
+ "id": string;
1257
+ "name": string;
1258
+ "slug": string;
1259
+ "priority": number;
1260
+ "workflow_id": string;
1261
+ "is_draggable_in": boolean;
1262
+ "is_draggable_out": boolean;
1263
+ "actions"?: JsonValue;
1264
+ "auto_win": boolean;
1265
+ "created_at": string;
1266
+ "updated_at": string;
1267
+ }
1268
+ export interface WorkflowNodeCreatePostResponse extends ApiEnvelope<WorkflowNodeCreatePostResponseData> {
1269
+ }
1270
+ /** Backend request type: UpdateWorkflowNodeRequest. */
1271
+ 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;
1279
+ }
1280
+ /** Backend response type: WorkflowNodeResponse. */
1281
+ export interface WorkflowNodeUpdatePutResponseData extends JsonObject {
1282
+ "id": string;
1283
+ "name": string;
1284
+ "slug": string;
1285
+ "priority": number;
1286
+ "workflow_id": string;
1287
+ "is_draggable_in": boolean;
1288
+ "is_draggable_out": boolean;
1289
+ "actions"?: JsonValue;
1290
+ "auto_win": boolean;
1291
+ "created_at": string;
1292
+ "updated_at": string;
1293
+ }
1294
+ export interface WorkflowNodeUpdatePutResponse extends ApiEnvelope<WorkflowNodeUpdatePutResponseData> {
1295
+ }
1296
+ /** Backend response type: bool. */
1297
+ export interface WorkflowDestroyDeleteResponse extends ApiEnvelope<boolean> {
1298
+ }
1299
+ /** Backend response type: WorkflowResponse. */
1300
+ export interface WorkflowShowGetResponseData extends JsonObject {
1301
+ "id": string;
1302
+ "name": string;
1303
+ "slug": string;
1304
+ "acquire_flags": string[];
1305
+ "priority": number;
1306
+ "can_create_lead": boolean;
1307
+ "actions"?: JsonValue;
1308
+ "hint"?: string;
1309
+ "created_at": string;
1310
+ "updated_at": string;
1311
+ }
1312
+ export interface WorkflowShowGetResponse extends ApiEnvelope<WorkflowShowGetResponseData> {
1313
+ }
1314
+ /** Backend request type: UpdateWorkflowRequest. */
1315
+ 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;
1323
+ }
1324
+ /** Backend response type: WorkflowResponse. */
1325
+ export interface WorkflowUpdatePutResponseData extends JsonObject {
1326
+ "id": string;
1327
+ "name": string;
1328
+ "slug": string;
1329
+ "acquire_flags": string[];
1330
+ "priority": number;
1331
+ "can_create_lead": boolean;
1332
+ "actions"?: JsonValue;
1333
+ "hint"?: string;
1334
+ "created_at": string;
1335
+ "updated_at": string;
1336
+ }
1337
+ export interface WorkflowUpdatePutResponse extends ApiEnvelope<WorkflowUpdatePutResponseData> {
1338
+ }
1339
+ /** Backend response type: Vec<WorkflowResponse>. */
1340
+ export interface WorkflowMemberBasedGetResponseItem extends JsonObject {
1341
+ "id": string;
1342
+ "name": string;
1343
+ "slug": string;
1344
+ "acquire_flags": string[];
1345
+ "priority": number;
1346
+ "can_create_lead": boolean;
1347
+ "actions"?: JsonValue;
1348
+ "hint"?: string;
1349
+ "created_at": string;
1350
+ "updated_at": string;
1351
+ }
1352
+ export interface WorkflowMemberBasedGetResponse extends ApiEnvelope<WorkflowMemberBasedGetResponseItem[]> {
1353
+ }
1354
+ /** Backend query type: SortQuery. */
1355
+ export interface WorklogIndexGetQuery extends QueryParams {
1356
+ "sort"?: string;
1357
+ }
1358
+ /** Backend response type: Vec<WorklogResponse>. */
1359
+ export interface WorklogIndexGetResponseItem extends JsonObject {
1360
+ "id": string;
1361
+ "log_type": string;
1362
+ "assignee_id": string;
1363
+ "profile_id": string;
1364
+ "start_date": string;
1365
+ "duration": number;
1366
+ "description"?: string;
1367
+ "created_at": string;
1368
+ "updated_at": string;
1369
+ }
1370
+ export interface WorklogIndexGetResponse extends ApiEnvelope<WorklogIndexGetResponseItem[]> {
1371
+ }
1372
+ /** Backend request type: CreateWorklogRequest. */
1373
+ export interface WorklogCreatePostInput extends JsonObject {
1374
+ "log_type": string;
1375
+ "start_date": string;
1376
+ "duration": number;
1377
+ "description"?: string;
1378
+ "profile_id": string;
1379
+ }
1380
+ /** Backend response type: WorklogResponse. */
1381
+ export interface WorklogCreatePostResponseData extends JsonObject {
1382
+ "id": string;
1383
+ "log_type": string;
1384
+ "assignee_id": string;
1385
+ "profile_id": string;
1386
+ "start_date": string;
1387
+ "duration": number;
1388
+ "description"?: string;
1389
+ "created_at": string;
1390
+ "updated_at": string;
1391
+ }
1392
+ export interface WorklogCreatePostResponse extends ApiEnvelope<WorklogCreatePostResponseData> {
1393
+ }
1394
+ /** Backend response type: bool. */
1395
+ export interface WorklogDestroyDeleteResponse extends ApiEnvelope<boolean> {
1396
+ }
1397
+ /** Backend response type: WorklogResponse. */
1398
+ export interface WorklogShowGetResponseData extends JsonObject {
1399
+ "id": string;
1400
+ "log_type": string;
1401
+ "assignee_id": string;
1402
+ "profile_id": string;
1403
+ "start_date": string;
1404
+ "duration": number;
1405
+ "description"?: string;
1406
+ "created_at": string;
1407
+ "updated_at": string;
1408
+ }
1409
+ export interface WorklogShowGetResponse extends ApiEnvelope<WorklogShowGetResponseData> {
1410
+ }
1411
+ /** Backend request type: UpdateWorklogRequest. */
1412
+ export interface WorklogUpdatePutInput extends JsonObject {
1413
+ "log_type"?: string;
1414
+ "start_date"?: string;
1415
+ "duration"?: number;
1416
+ "description"?: string;
1417
+ "profile_id"?: string;
1418
+ }
1419
+ /** Backend response type: WorklogResponse. */
1420
+ export interface WorklogUpdatePutResponseData extends JsonObject {
1421
+ "id": string;
1422
+ "log_type": string;
1423
+ "assignee_id": string;
1424
+ "profile_id": string;
1425
+ "start_date": string;
1426
+ "duration": number;
1427
+ "description"?: string;
1428
+ "created_at": string;
1429
+ "updated_at": string;
1430
+ }
1431
+ export interface WorklogUpdatePutResponse extends ApiEnvelope<WorklogUpdatePutResponseData> {
1432
+ }
1433
+ /** Backend response type: response without a declared JSON model. */
1434
+ export interface RouterStatusRouteGetHealthResponse extends ApiEnvelope<JsonValue> {
1435
+ }
1436
+ /** Backend response type: response without a declared JSON model. */
1437
+ export interface RouterStatusRouteGetUpResponse extends ApiEnvelope<JsonValue> {
1438
+ }
1439
+ //# sourceMappingURL=operations.types.d.ts.map