@iblai/iblai-api 4.450.0-core → 4.452.0-core

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.
Files changed (83) hide show
  1. package/dist/index.cjs.js +763 -60
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +763 -61
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/index.umd.js +763 -60
  6. package/dist/index.umd.js.map +1 -1
  7. package/dist/types/index.d.ts +15 -0
  8. package/dist/types/models/Activity.d.ts +4 -0
  9. package/dist/types/models/Deal.d.ts +4 -0
  10. package/dist/types/models/LeadSource.d.ts +4 -0
  11. package/dist/types/models/Member.d.ts +16 -0
  12. package/dist/types/models/Organization.d.ts +4 -0
  13. package/dist/types/models/Overview.d.ts +4 -0
  14. package/dist/types/models/PaginatedMemberList.d.ts +7 -0
  15. package/dist/types/models/PaginatedWebFormList.d.ts +7 -0
  16. package/dist/types/models/PaginatedWebFormSubmissionList.d.ts +7 -0
  17. package/dist/types/models/PatchedActivity.d.ts +4 -0
  18. package/dist/types/models/PatchedDeal.d.ts +4 -0
  19. package/dist/types/models/PatchedLeadSource.d.ts +4 -0
  20. package/dist/types/models/PatchedOrganization.d.ts +4 -0
  21. package/dist/types/models/PatchedPerson.d.ts +4 -0
  22. package/dist/types/models/PatchedPipeline.d.ts +4 -0
  23. package/dist/types/models/PatchedSavedView.d.ts +4 -0
  24. package/dist/types/models/PatchedTag.d.ts +4 -0
  25. package/dist/types/models/PatchedWebForm.d.ts +41 -0
  26. package/dist/types/models/Person.d.ts +4 -0
  27. package/dist/types/models/Pipeline.d.ts +4 -0
  28. package/dist/types/models/SavedView.d.ts +4 -0
  29. package/dist/types/models/SearchDeal.d.ts +4 -0
  30. package/dist/types/models/SearchOrganization.d.ts +5 -1
  31. package/dist/types/models/SearchPerson.d.ts +4 -0
  32. package/dist/types/models/Tag.d.ts +4 -0
  33. package/dist/types/models/Type240Enum.d.ts +20 -0
  34. package/dist/types/models/WebForm.d.ts +41 -0
  35. package/dist/types/models/WebFormField.d.ts +20 -0
  36. package/dist/types/models/WebFormPublic.d.ts +25 -0
  37. package/dist/types/models/WebFormPublicField.d.ts +10 -0
  38. package/dist/types/models/WebFormRouting.d.ts +45 -0
  39. package/dist/types/models/WebFormSubmission.d.ts +15 -0
  40. package/dist/types/models/WebFormSubmitRequest.d.ts +15 -0
  41. package/dist/types/models/WebFormSubmitResponse.d.ts +4 -0
  42. package/dist/types/services/CrmService.d.ts +662 -83
  43. package/dist/types/services/V1CoursesService.d.ts +25 -0
  44. package/package.json +1 -1
  45. package/sdk_schema.yml +1895 -10
  46. package/src/core/OpenAPI.ts +1 -1
  47. package/src/index.ts +15 -0
  48. package/src/models/Activity.ts +4 -0
  49. package/src/models/Deal.ts +4 -0
  50. package/src/models/LeadSource.ts +4 -0
  51. package/src/models/Member.ts +21 -0
  52. package/src/models/Organization.ts +4 -0
  53. package/src/models/Overview.ts +4 -0
  54. package/src/models/PaginatedMemberList.ts +12 -0
  55. package/src/models/PaginatedWebFormList.ts +12 -0
  56. package/src/models/PaginatedWebFormSubmissionList.ts +12 -0
  57. package/src/models/PatchedActivity.ts +4 -0
  58. package/src/models/PatchedDeal.ts +4 -0
  59. package/src/models/PatchedLeadSource.ts +4 -0
  60. package/src/models/PatchedOrganization.ts +4 -0
  61. package/src/models/PatchedPerson.ts +4 -0
  62. package/src/models/PatchedPipeline.ts +4 -0
  63. package/src/models/PatchedSavedView.ts +4 -0
  64. package/src/models/PatchedTag.ts +4 -0
  65. package/src/models/PatchedWebForm.ts +46 -0
  66. package/src/models/Person.ts +4 -0
  67. package/src/models/Pipeline.ts +4 -0
  68. package/src/models/SavedView.ts +4 -0
  69. package/src/models/SearchDeal.ts +4 -0
  70. package/src/models/SearchOrganization.ts +5 -1
  71. package/src/models/SearchPerson.ts +4 -0
  72. package/src/models/Tag.ts +4 -0
  73. package/src/models/Type240Enum.ts +24 -0
  74. package/src/models/WebForm.ts +46 -0
  75. package/src/models/WebFormField.ts +25 -0
  76. package/src/models/WebFormPublic.ts +30 -0
  77. package/src/models/WebFormPublicField.ts +15 -0
  78. package/src/models/WebFormRouting.ts +50 -0
  79. package/src/models/WebFormSubmission.ts +20 -0
  80. package/src/models/WebFormSubmitRequest.ts +20 -0
  81. package/src/models/WebFormSubmitResponse.ts +9 -0
  82. package/src/services/CrmService.ts +1151 -38
  83. package/src/services/V1CoursesService.ts +52 -0
@@ -18,12 +18,15 @@ import type { PaginatedActivityList } from '../models/PaginatedActivityList';
18
18
  import type { PaginatedDealList } from '../models/PaginatedDealList';
19
19
  import type { PaginatedFavoriteList } from '../models/PaginatedFavoriteList';
20
20
  import type { PaginatedLeadSourceList } from '../models/PaginatedLeadSourceList';
21
+ import type { PaginatedMemberList } from '../models/PaginatedMemberList';
21
22
  import type { PaginatedOrganizationList } from '../models/PaginatedOrganizationList';
22
23
  import type { PaginatedPersonList } from '../models/PaginatedPersonList';
23
24
  import type { PaginatedPipelineList } from '../models/PaginatedPipelineList';
24
25
  import type { PaginatedPipelineStageList } from '../models/PaginatedPipelineStageList';
25
26
  import type { PaginatedSavedViewList } from '../models/PaginatedSavedViewList';
26
27
  import type { PaginatedTagList } from '../models/PaginatedTagList';
28
+ import type { PaginatedWebFormList } from '../models/PaginatedWebFormList';
29
+ import type { PaginatedWebFormSubmissionList } from '../models/PaginatedWebFormSubmissionList';
27
30
  import type { PatchedActivity } from '../models/PatchedActivity';
28
31
  import type { PatchedDeal } from '../models/PatchedDeal';
29
32
  import type { PatchedLeadSource } from '../models/PatchedLeadSource';
@@ -33,6 +36,7 @@ import type { PatchedPipeline } from '../models/PatchedPipeline';
33
36
  import type { PatchedPipelineStage } from '../models/PatchedPipelineStage';
34
37
  import type { PatchedSavedView } from '../models/PatchedSavedView';
35
38
  import type { PatchedTag } from '../models/PatchedTag';
39
+ import type { PatchedWebForm } from '../models/PatchedWebForm';
36
40
  import type { Person } from '../models/Person';
37
41
  import type { PersonInviteRequest } from '../models/PersonInviteRequest';
38
42
  import type { PersonInviteResponse } from '../models/PersonInviteResponse';
@@ -45,6 +49,10 @@ import type { PipelineStageReorderRequest } from '../models/PipelineStageReorder
45
49
  import type { SavedView } from '../models/SavedView';
46
50
  import type { SearchResponse } from '../models/SearchResponse';
47
51
  import type { Tag } from '../models/Tag';
52
+ import type { WebForm } from '../models/WebForm';
53
+ import type { WebFormPublic } from '../models/WebFormPublic';
54
+ import type { WebFormSubmitRequest } from '../models/WebFormSubmitRequest';
55
+ import type { WebFormSubmitResponse } from '../models/WebFormSubmitResponse';
48
56
  import type { CancelablePromise } from '../core/CancelablePromise';
49
57
  import { OpenAPI } from '../core/OpenAPI';
50
58
  import { request as __request } from '../core/request';
@@ -58,6 +66,7 @@ export class CrmService {
58
66
  * @throws ApiError
59
67
  */
60
68
  public static crmActivitiesList({
69
+ app = '',
61
70
  dateFilter,
62
71
  deal,
63
72
  endDate,
@@ -75,6 +84,10 @@ export class CrmService {
75
84
  startDate,
76
85
  type,
77
86
  }: {
87
+ /**
88
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
89
+ */
90
+ app?: string,
78
91
  /**
79
92
  * Only rows created in this window. `custom` needs `start_date` and `end_date`.
80
93
  */
@@ -128,6 +141,7 @@ export class CrmService {
128
141
  method: 'GET',
129
142
  url: '/api/crm/activities/',
130
143
  query: {
144
+ 'app': app,
131
145
  'date_filter': dateFilter,
132
146
  'deal': deal,
133
147
  'end_date': endDate,
@@ -161,12 +175,20 @@ export class CrmService {
161
175
  */
162
176
  public static crmActivitiesCreate({
163
177
  requestBody,
178
+ app = '',
164
179
  }: {
165
180
  requestBody: Activity,
181
+ /**
182
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
183
+ */
184
+ app?: string,
166
185
  }): CancelablePromise<Activity> {
167
186
  return __request(OpenAPI, {
168
187
  method: 'POST',
169
188
  url: '/api/crm/activities/',
189
+ query: {
190
+ 'app': app,
191
+ },
170
192
  body: requestBody,
171
193
  mediaType: 'application/json',
172
194
  errors: {
@@ -185,11 +207,16 @@ export class CrmService {
185
207
  */
186
208
  public static crmActivitiesRetrieve({
187
209
  id,
210
+ app = '',
188
211
  }: {
189
212
  /**
190
213
  * A unique integer value identifying this activity.
191
214
  */
192
215
  id: number,
216
+ /**
217
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
218
+ */
219
+ app?: string,
193
220
  }): CancelablePromise<Activity> {
194
221
  return __request(OpenAPI, {
195
222
  method: 'GET',
@@ -197,6 +224,9 @@ export class CrmService {
197
224
  path: {
198
225
  'id': id,
199
226
  },
227
+ query: {
228
+ 'app': app,
229
+ },
200
230
  errors: {
201
231
  403: `Missing required permission \`Ibl.CRM/Activities/read\`.`,
202
232
  404: `Activity not found.`,
@@ -214,12 +244,17 @@ export class CrmService {
214
244
  public static crmActivitiesUpdate({
215
245
  id,
216
246
  requestBody,
247
+ app = '',
217
248
  }: {
218
249
  /**
219
250
  * A unique integer value identifying this activity.
220
251
  */
221
252
  id: number,
222
253
  requestBody: Activity,
254
+ /**
255
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
256
+ */
257
+ app?: string,
223
258
  }): CancelablePromise<Activity> {
224
259
  return __request(OpenAPI, {
225
260
  method: 'PUT',
@@ -227,6 +262,9 @@ export class CrmService {
227
262
  path: {
228
263
  'id': id,
229
264
  },
265
+ query: {
266
+ 'app': app,
267
+ },
230
268
  body: requestBody,
231
269
  mediaType: 'application/json',
232
270
  errors: {
@@ -246,12 +284,17 @@ export class CrmService {
246
284
  */
247
285
  public static crmActivitiesPartialUpdate({
248
286
  id,
287
+ app = '',
249
288
  requestBody,
250
289
  }: {
251
290
  /**
252
291
  * A unique integer value identifying this activity.
253
292
  */
254
293
  id: number,
294
+ /**
295
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
296
+ */
297
+ app?: string,
255
298
  requestBody?: PatchedActivity,
256
299
  }): CancelablePromise<Activity> {
257
300
  return __request(OpenAPI, {
@@ -260,6 +303,9 @@ export class CrmService {
260
303
  path: {
261
304
  'id': id,
262
305
  },
306
+ query: {
307
+ 'app': app,
308
+ },
263
309
  body: requestBody,
264
310
  mediaType: 'application/json',
265
311
  errors: {
@@ -279,11 +325,16 @@ export class CrmService {
279
325
  */
280
326
  public static crmActivitiesDestroy({
281
327
  id,
328
+ app = '',
282
329
  }: {
283
330
  /**
284
331
  * A unique integer value identifying this activity.
285
332
  */
286
333
  id: number,
334
+ /**
335
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
336
+ */
337
+ app?: string,
287
338
  }): CancelablePromise<void> {
288
339
  return __request(OpenAPI, {
289
340
  method: 'DELETE',
@@ -291,6 +342,9 @@ export class CrmService {
291
342
  path: {
292
343
  'id': id,
293
344
  },
345
+ query: {
346
+ 'app': app,
347
+ },
294
348
  errors: {
295
349
  403: `Missing required permission \`Ibl.CRM/Activities/delete\`.`,
296
350
  404: `Activity not found.`,
@@ -307,11 +361,16 @@ export class CrmService {
307
361
  */
308
362
  public static crmActivitiesDoneCreate({
309
363
  id,
364
+ app = '',
310
365
  }: {
311
366
  /**
312
367
  * A unique integer value identifying this activity.
313
368
  */
314
369
  id: number,
370
+ /**
371
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
372
+ */
373
+ app?: string,
315
374
  }): CancelablePromise<Activity> {
316
375
  return __request(OpenAPI, {
317
376
  method: 'POST',
@@ -319,6 +378,9 @@ export class CrmService {
319
378
  path: {
320
379
  'id': id,
321
380
  },
381
+ query: {
382
+ 'app': app,
383
+ },
322
384
  errors: {
323
385
  403: `Missing required permission \`Ibl.CRM/Activities/write\`.`,
324
386
  404: `Activity not found.`,
@@ -334,6 +396,7 @@ export class CrmService {
334
396
  * @throws ApiError
335
397
  */
336
398
  public static crmDealsList({
399
+ app = '',
337
400
  createdAtGte,
338
401
  createdAtLte,
339
402
  dateFilter,
@@ -355,6 +418,10 @@ export class CrmService {
355
418
  status,
356
419
  tags,
357
420
  }: {
421
+ /**
422
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
423
+ */
424
+ app?: string,
358
425
  createdAtGte?: string,
359
426
  createdAtLte?: string,
360
427
  /**
@@ -408,6 +475,7 @@ export class CrmService {
408
475
  method: 'GET',
409
476
  url: '/api/crm/deals/',
410
477
  query: {
478
+ 'app': app,
411
479
  'created_at__gte': createdAtGte,
412
480
  'created_at__lte': createdAtLte,
413
481
  'date_filter': dateFilter,
@@ -445,12 +513,20 @@ export class CrmService {
445
513
  */
446
514
  public static crmDealsCreate({
447
515
  requestBody,
516
+ app = '',
448
517
  }: {
449
518
  requestBody: Deal,
519
+ /**
520
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
521
+ */
522
+ app?: string,
450
523
  }): CancelablePromise<Deal> {
451
524
  return __request(OpenAPI, {
452
525
  method: 'POST',
453
526
  url: '/api/crm/deals/',
527
+ query: {
528
+ 'app': app,
529
+ },
454
530
  body: requestBody,
455
531
  mediaType: 'application/json',
456
532
  errors: {
@@ -469,11 +545,16 @@ export class CrmService {
469
545
  */
470
546
  public static crmDealsRetrieve({
471
547
  id,
548
+ app = '',
472
549
  }: {
473
550
  /**
474
551
  * A unique integer value identifying this deal.
475
552
  */
476
553
  id: number,
554
+ /**
555
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
556
+ */
557
+ app?: string,
477
558
  }): CancelablePromise<Deal> {
478
559
  return __request(OpenAPI, {
479
560
  method: 'GET',
@@ -481,6 +562,9 @@ export class CrmService {
481
562
  path: {
482
563
  'id': id,
483
564
  },
565
+ query: {
566
+ 'app': app,
567
+ },
484
568
  errors: {
485
569
  403: `Missing required permission \`Ibl.CRM/Deals/read\`.`,
486
570
  404: `Deal not found.`,
@@ -498,12 +582,17 @@ export class CrmService {
498
582
  public static crmDealsUpdate({
499
583
  id,
500
584
  requestBody,
585
+ app = '',
501
586
  }: {
502
587
  /**
503
588
  * A unique integer value identifying this deal.
504
589
  */
505
590
  id: number,
506
591
  requestBody: Deal,
592
+ /**
593
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
594
+ */
595
+ app?: string,
507
596
  }): CancelablePromise<Deal> {
508
597
  return __request(OpenAPI, {
509
598
  method: 'PUT',
@@ -511,6 +600,9 @@ export class CrmService {
511
600
  path: {
512
601
  'id': id,
513
602
  },
603
+ query: {
604
+ 'app': app,
605
+ },
514
606
  body: requestBody,
515
607
  mediaType: 'application/json',
516
608
  errors: {
@@ -530,12 +622,17 @@ export class CrmService {
530
622
  */
531
623
  public static crmDealsPartialUpdate({
532
624
  id,
625
+ app = '',
533
626
  requestBody,
534
627
  }: {
535
628
  /**
536
629
  * A unique integer value identifying this deal.
537
630
  */
538
631
  id: number,
632
+ /**
633
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
634
+ */
635
+ app?: string,
539
636
  requestBody?: PatchedDeal,
540
637
  }): CancelablePromise<Deal> {
541
638
  return __request(OpenAPI, {
@@ -544,6 +641,9 @@ export class CrmService {
544
641
  path: {
545
642
  'id': id,
546
643
  },
644
+ query: {
645
+ 'app': app,
646
+ },
547
647
  body: requestBody,
548
648
  mediaType: 'application/json',
549
649
  errors: {
@@ -563,11 +663,16 @@ export class CrmService {
563
663
  */
564
664
  public static crmDealsDestroy({
565
665
  id,
666
+ app = '',
566
667
  }: {
567
668
  /**
568
669
  * A unique integer value identifying this deal.
569
670
  */
570
671
  id: number,
672
+ /**
673
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
674
+ */
675
+ app?: string,
571
676
  }): CancelablePromise<void> {
572
677
  return __request(OpenAPI, {
573
678
  method: 'DELETE',
@@ -575,6 +680,9 @@ export class CrmService {
575
680
  path: {
576
681
  'id': id,
577
682
  },
683
+ query: {
684
+ 'app': app,
685
+ },
578
686
  errors: {
579
687
  403: `Missing required permission \`Ibl.CRM/Deals/delete\`.`,
580
688
  404: `Deal not found.`,
@@ -591,11 +699,16 @@ export class CrmService {
591
699
  */
592
700
  public static crmDealsHistoryList({
593
701
  id,
702
+ app = '',
594
703
  }: {
595
704
  /**
596
705
  * A unique integer value identifying this deal.
597
706
  */
598
707
  id: number,
708
+ /**
709
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
710
+ */
711
+ app?: string,
599
712
  }): CancelablePromise<Array<HistoryEntry>> {
600
713
  return __request(OpenAPI, {
601
714
  method: 'GET',
@@ -603,6 +716,9 @@ export class CrmService {
603
716
  path: {
604
717
  'id': id,
605
718
  },
719
+ query: {
720
+ 'app': app,
721
+ },
606
722
  errors: {
607
723
  403: `Missing the record's \`read\` permission.`,
608
724
  404: `Record not found.`,
@@ -620,12 +736,17 @@ export class CrmService {
620
736
  public static crmDealsLostCreate({
621
737
  id,
622
738
  requestBody,
739
+ app = '',
623
740
  }: {
624
741
  /**
625
742
  * A unique integer value identifying this deal.
626
743
  */
627
744
  id: number,
628
745
  requestBody: DealLostRequest,
746
+ /**
747
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
748
+ */
749
+ app?: string,
629
750
  }): CancelablePromise<Deal> {
630
751
  return __request(OpenAPI, {
631
752
  method: 'POST',
@@ -633,6 +754,9 @@ export class CrmService {
633
754
  path: {
634
755
  'id': id,
635
756
  },
757
+ query: {
758
+ 'app': app,
759
+ },
636
760
  body: requestBody,
637
761
  mediaType: 'application/json',
638
762
  errors: {
@@ -642,6 +766,42 @@ export class CrmService {
642
766
  },
643
767
  });
644
768
  }
769
+ /**
770
+ * Merge into this record's metadata
771
+ * Applies a JSON merge patch (RFC 7386) to `metadata` under a row lock: objects merge key by key, `null` removes a key, any other value replaces it. Two merges never lose each other's keys; a plain `PATCH` still replaces `metadata` whole.
772
+ *
773
+ * **Required permission:** the record's `write` verb.
774
+ * @returns Deal
775
+ * @throws ApiError
776
+ */
777
+ public static crmDealsMetadataPartialUpdate({
778
+ id,
779
+ app = '',
780
+ requestBody,
781
+ }: {
782
+ /**
783
+ * A unique integer value identifying this deal.
784
+ */
785
+ id: number,
786
+ /**
787
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
788
+ */
789
+ app?: string,
790
+ requestBody?: Record<string, any>,
791
+ }): CancelablePromise<Deal> {
792
+ return __request(OpenAPI, {
793
+ method: 'PATCH',
794
+ url: '/api/crm/deals/{id}/metadata/',
795
+ path: {
796
+ 'id': id,
797
+ },
798
+ query: {
799
+ 'app': app,
800
+ },
801
+ body: requestBody,
802
+ mediaType: 'application/json',
803
+ });
804
+ }
645
805
  /**
646
806
  * Move a deal to a different stage
647
807
  * Moves the Deal to the stage identified by `stage_id` or `stage_code`. The target stage must belong to this Deal's pipeline. Records an audit Activity and emits `deal_stage_changed`. `Deal.status` is recomputed from the new stage's `is_won` / `is_lost` flags.
@@ -652,12 +812,17 @@ export class CrmService {
652
812
  */
653
813
  public static crmDealsMoveStageCreate({
654
814
  id,
815
+ app = '',
655
816
  requestBody,
656
817
  }: {
657
818
  /**
658
819
  * A unique integer value identifying this deal.
659
820
  */
660
821
  id: number,
822
+ /**
823
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
824
+ */
825
+ app?: string,
661
826
  requestBody?: DealMoveStageRequest,
662
827
  }): CancelablePromise<Deal> {
663
828
  return __request(OpenAPI, {
@@ -666,6 +831,9 @@ export class CrmService {
666
831
  path: {
667
832
  'id': id,
668
833
  },
834
+ query: {
835
+ 'app': app,
836
+ },
669
837
  body: requestBody,
670
838
  mediaType: 'application/json',
671
839
  errors: {
@@ -686,12 +854,17 @@ export class CrmService {
686
854
  public static crmDealsTagsCreate({
687
855
  id,
688
856
  requestBody,
857
+ app = '',
689
858
  }: {
690
859
  /**
691
860
  * A unique integer value identifying this deal.
692
861
  */
693
862
  id: number,
694
863
  requestBody: _TagAttachRequest,
864
+ /**
865
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
866
+ */
867
+ app?: string,
695
868
  }): CancelablePromise<any> {
696
869
  return __request(OpenAPI, {
697
870
  method: 'POST',
@@ -699,6 +872,9 @@ export class CrmService {
699
872
  path: {
700
873
  'id': id,
701
874
  },
875
+ query: {
876
+ 'app': app,
877
+ },
702
878
  body: requestBody,
703
879
  mediaType: 'application/json',
704
880
  errors: {
@@ -720,12 +896,17 @@ export class CrmService {
720
896
  public static crmDealsTagsDestroy({
721
897
  id,
722
898
  tagId,
899
+ app = '',
723
900
  }: {
724
901
  /**
725
902
  * A unique integer value identifying this deal.
726
903
  */
727
904
  id: number,
728
905
  tagId: string,
906
+ /**
907
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
908
+ */
909
+ app?: string,
729
910
  }): CancelablePromise<void> {
730
911
  return __request(OpenAPI, {
731
912
  method: 'DELETE',
@@ -734,6 +915,9 @@ export class CrmService {
734
915
  'id': id,
735
916
  'tag_id': tagId,
736
917
  },
918
+ query: {
919
+ 'app': app,
920
+ },
737
921
  errors: {
738
922
  403: `No response body`,
739
923
  404: `No response body`,
@@ -750,12 +934,17 @@ export class CrmService {
750
934
  */
751
935
  public static crmDealsWonCreate({
752
936
  id,
937
+ app = '',
753
938
  requestBody,
754
939
  }: {
755
940
  /**
756
941
  * A unique integer value identifying this deal.
757
942
  */
758
943
  id: number,
944
+ /**
945
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
946
+ */
947
+ app?: string,
759
948
  requestBody?: DealWonRequest,
760
949
  }): CancelablePromise<Deal> {
761
950
  return __request(OpenAPI, {
@@ -764,6 +953,9 @@ export class CrmService {
764
953
  path: {
765
954
  'id': id,
766
955
  },
956
+ query: {
957
+ 'app': app,
958
+ },
767
959
  body: requestBody,
768
960
  mediaType: 'application/json',
769
961
  errors: {
@@ -782,6 +974,7 @@ export class CrmService {
782
974
  * @throws ApiError
783
975
  */
784
976
  public static crmDealsBoardRetrieve({
977
+ app = '',
785
978
  createdAtGte,
786
979
  createdAtLte,
787
980
  dateFilter,
@@ -801,6 +994,10 @@ export class CrmService {
801
994
  status,
802
995
  tags,
803
996
  }: {
997
+ /**
998
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
999
+ */
1000
+ app?: string,
804
1001
  createdAtGte?: string,
805
1002
  createdAtLte?: string,
806
1003
  /**
@@ -849,6 +1046,7 @@ export class CrmService {
849
1046
  method: 'GET',
850
1047
  url: '/api/crm/deals/board/',
851
1048
  query: {
1049
+ 'app': app,
852
1050
  'created_at__gte': createdAtGte,
853
1051
  'created_at__lte': createdAtLte,
854
1052
  'date_filter': dateFilter,
@@ -884,6 +1082,7 @@ export class CrmService {
884
1082
  * @throws ApiError
885
1083
  */
886
1084
  public static crmFavoritesList({
1085
+ app = '',
887
1086
  dateFilter,
888
1087
  deal,
889
1088
  endDate,
@@ -894,6 +1093,10 @@ export class CrmService {
894
1093
  person,
895
1094
  startDate,
896
1095
  }: {
1096
+ /**
1097
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
1098
+ */
1099
+ app?: string,
897
1100
  /**
898
1101
  * Only rows created in this window. `custom` needs `start_date` and `end_date`.
899
1102
  */
@@ -926,6 +1129,7 @@ export class CrmService {
926
1129
  method: 'GET',
927
1130
  url: '/api/crm/favorites/',
928
1131
  query: {
1132
+ 'app': app,
929
1133
  'date_filter': dateFilter,
930
1134
  'deal': deal,
931
1135
  'end_date': endDate,
@@ -951,13 +1155,21 @@ export class CrmService {
951
1155
  * @throws ApiError
952
1156
  */
953
1157
  public static crmFavoritesCreate({
1158
+ app = '',
954
1159
  requestBody,
955
1160
  }: {
1161
+ /**
1162
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
1163
+ */
1164
+ app?: string,
956
1165
  requestBody?: Favorite,
957
1166
  }): CancelablePromise<Favorite> {
958
1167
  return __request(OpenAPI, {
959
1168
  method: 'POST',
960
1169
  url: '/api/crm/favorites/',
1170
+ query: {
1171
+ 'app': app,
1172
+ },
961
1173
  body: requestBody,
962
1174
  mediaType: 'application/json',
963
1175
  errors: {
@@ -974,11 +1186,16 @@ export class CrmService {
974
1186
  */
975
1187
  public static crmFavoritesRetrieve({
976
1188
  id,
1189
+ app = '',
977
1190
  }: {
978
1191
  /**
979
1192
  * A unique integer value identifying this favorite.
980
1193
  */
981
1194
  id: number,
1195
+ /**
1196
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
1197
+ */
1198
+ app?: string,
982
1199
  }): CancelablePromise<Favorite> {
983
1200
  return __request(OpenAPI, {
984
1201
  method: 'GET',
@@ -986,6 +1203,9 @@ export class CrmService {
986
1203
  path: {
987
1204
  'id': id,
988
1205
  },
1206
+ query: {
1207
+ 'app': app,
1208
+ },
989
1209
  errors: {
990
1210
  403: `Missing required permission \`Ibl.CRM/Favorites/read\`.`,
991
1211
  404: `Favorite not found.`,
@@ -1002,11 +1222,16 @@ export class CrmService {
1002
1222
  */
1003
1223
  public static crmFavoritesDestroy({
1004
1224
  id,
1225
+ app = '',
1005
1226
  }: {
1006
1227
  /**
1007
1228
  * A unique integer value identifying this favorite.
1008
1229
  */
1009
1230
  id: number,
1231
+ /**
1232
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
1233
+ */
1234
+ app?: string,
1010
1235
  }): CancelablePromise<void> {
1011
1236
  return __request(OpenAPI, {
1012
1237
  method: 'DELETE',
@@ -1014,6 +1239,9 @@ export class CrmService {
1014
1239
  path: {
1015
1240
  'id': id,
1016
1241
  },
1242
+ query: {
1243
+ 'app': app,
1244
+ },
1017
1245
  errors: {
1018
1246
  403: `Missing required permission \`Ibl.CRM/Favorites/delete\`.`,
1019
1247
  404: `Favorite not found.`,
@@ -1029,6 +1257,7 @@ export class CrmService {
1029
1257
  * @throws ApiError
1030
1258
  */
1031
1259
  public static crmLeadSourcesList({
1260
+ app = '',
1032
1261
  code,
1033
1262
  dateFilter,
1034
1263
  endDate,
@@ -1039,6 +1268,10 @@ export class CrmService {
1039
1268
  search,
1040
1269
  startDate,
1041
1270
  }: {
1271
+ /**
1272
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
1273
+ */
1274
+ app?: string,
1042
1275
  code?: string,
1043
1276
  /**
1044
1277
  * Only rows created in this window. `custom` needs `start_date` and `end_date`.
@@ -1074,6 +1307,7 @@ export class CrmService {
1074
1307
  method: 'GET',
1075
1308
  url: '/api/crm/lead-sources/',
1076
1309
  query: {
1310
+ 'app': app,
1077
1311
  'code': code,
1078
1312
  'date_filter': dateFilter,
1079
1313
  'end_date': endDate,
@@ -1100,12 +1334,20 @@ export class CrmService {
1100
1334
  */
1101
1335
  public static crmLeadSourcesCreate({
1102
1336
  requestBody,
1337
+ app = '',
1103
1338
  }: {
1104
1339
  requestBody: LeadSource,
1340
+ /**
1341
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
1342
+ */
1343
+ app?: string,
1105
1344
  }): CancelablePromise<LeadSource> {
1106
1345
  return __request(OpenAPI, {
1107
1346
  method: 'POST',
1108
1347
  url: '/api/crm/lead-sources/',
1348
+ query: {
1349
+ 'app': app,
1350
+ },
1109
1351
  body: requestBody,
1110
1352
  mediaType: 'application/json',
1111
1353
  errors: {
@@ -1124,11 +1366,16 @@ export class CrmService {
1124
1366
  */
1125
1367
  public static crmLeadSourcesRetrieve({
1126
1368
  id,
1369
+ app = '',
1127
1370
  }: {
1128
1371
  /**
1129
1372
  * A unique integer value identifying this lead source.
1130
1373
  */
1131
1374
  id: number,
1375
+ /**
1376
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
1377
+ */
1378
+ app?: string,
1132
1379
  }): CancelablePromise<LeadSource> {
1133
1380
  return __request(OpenAPI, {
1134
1381
  method: 'GET',
@@ -1136,6 +1383,9 @@ export class CrmService {
1136
1383
  path: {
1137
1384
  'id': id,
1138
1385
  },
1386
+ query: {
1387
+ 'app': app,
1388
+ },
1139
1389
  errors: {
1140
1390
  403: `Missing required permission \`Ibl.CRM/Pipelines/read\`.`,
1141
1391
  404: `LeadSource not found.`,
@@ -1153,12 +1403,17 @@ export class CrmService {
1153
1403
  public static crmLeadSourcesUpdate({
1154
1404
  id,
1155
1405
  requestBody,
1406
+ app = '',
1156
1407
  }: {
1157
1408
  /**
1158
1409
  * A unique integer value identifying this lead source.
1159
1410
  */
1160
1411
  id: number,
1161
1412
  requestBody: LeadSource,
1413
+ /**
1414
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
1415
+ */
1416
+ app?: string,
1162
1417
  }): CancelablePromise<LeadSource> {
1163
1418
  return __request(OpenAPI, {
1164
1419
  method: 'PUT',
@@ -1166,6 +1421,9 @@ export class CrmService {
1166
1421
  path: {
1167
1422
  'id': id,
1168
1423
  },
1424
+ query: {
1425
+ 'app': app,
1426
+ },
1169
1427
  body: requestBody,
1170
1428
  mediaType: 'application/json',
1171
1429
  errors: {
@@ -1185,12 +1443,17 @@ export class CrmService {
1185
1443
  */
1186
1444
  public static crmLeadSourcesPartialUpdate({
1187
1445
  id,
1446
+ app = '',
1188
1447
  requestBody,
1189
1448
  }: {
1190
1449
  /**
1191
1450
  * A unique integer value identifying this lead source.
1192
1451
  */
1193
1452
  id: number,
1453
+ /**
1454
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
1455
+ */
1456
+ app?: string,
1194
1457
  requestBody?: PatchedLeadSource,
1195
1458
  }): CancelablePromise<LeadSource> {
1196
1459
  return __request(OpenAPI, {
@@ -1199,6 +1462,9 @@ export class CrmService {
1199
1462
  path: {
1200
1463
  'id': id,
1201
1464
  },
1465
+ query: {
1466
+ 'app': app,
1467
+ },
1202
1468
  body: requestBody,
1203
1469
  mediaType: 'application/json',
1204
1470
  errors: {
@@ -1218,11 +1484,16 @@ export class CrmService {
1218
1484
  */
1219
1485
  public static crmLeadSourcesDestroy({
1220
1486
  id,
1487
+ app = '',
1221
1488
  }: {
1222
1489
  /**
1223
1490
  * A unique integer value identifying this lead source.
1224
1491
  */
1225
1492
  id: number,
1493
+ /**
1494
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
1495
+ */
1496
+ app?: string,
1226
1497
  }): CancelablePromise<void> {
1227
1498
  return __request(OpenAPI, {
1228
1499
  method: 'DELETE',
@@ -1230,24 +1501,74 @@ export class CrmService {
1230
1501
  path: {
1231
1502
  'id': id,
1232
1503
  },
1504
+ query: {
1505
+ 'app': app,
1506
+ },
1233
1507
  errors: {
1234
1508
  403: `Missing required permission \`Ibl.CRM/Pipelines/delete\`.`,
1235
1509
  404: `LeadSource not found.`,
1236
1510
  },
1237
1511
  });
1238
1512
  }
1513
+ /**
1514
+ * List the Platform's members
1515
+ * Active members of your Platform with an active account, by username: the users a person, deal or activity `owner` can be. `query` matches username or name (and email when shown). `email` is null unless you hold `Ibl.Core/Users/list`.
1516
+ *
1517
+ * **Required permission:** `list` on persons, organizations, deals or activities (any one).
1518
+ * @returns PaginatedMemberList
1519
+ * @throws ApiError
1520
+ */
1521
+ public static crmMembersList({
1522
+ app = '',
1523
+ page,
1524
+ pageSize,
1525
+ query,
1526
+ }: {
1527
+ /**
1528
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
1529
+ */
1530
+ app?: string,
1531
+ /**
1532
+ * A page number within the paginated result set.
1533
+ */
1534
+ page?: number,
1535
+ /**
1536
+ * Number of results to return per page.
1537
+ */
1538
+ pageSize?: number,
1539
+ /**
1540
+ * Substring of username or name.
1541
+ */
1542
+ query?: string,
1543
+ }): CancelablePromise<PaginatedMemberList> {
1544
+ return __request(OpenAPI, {
1545
+ method: 'GET',
1546
+ url: '/api/crm/members/',
1547
+ query: {
1548
+ 'app': app,
1549
+ 'page': page,
1550
+ 'page_size': pageSize,
1551
+ 'query': query,
1552
+ },
1553
+ errors: {
1554
+ 403: `No CRM list permission.`,
1555
+ },
1556
+ });
1557
+ }
1239
1558
  /**
1240
1559
  * List organizations
1241
- * Returns a paginated list of organizations in your Platform. Supports filtering by `owner` and by `name` (case-insensitive substring match).
1560
+ * Returns a paginated list of organizations in your Platform. Supports filtering by `owner`, by `name` (case-insensitive substring match) and by `name__iexact` (exact, ignoring case).
1242
1561
  *
1243
1562
  * **Required permission:** `Ibl.CRM/Organizations/list`.
1244
1563
  * @returns PaginatedOrganizationList
1245
1564
  * @throws ApiError
1246
1565
  */
1247
1566
  public static crmOrganizationsList({
1567
+ app = '',
1248
1568
  dateFilter,
1249
1569
  endDate,
1250
1570
  name,
1571
+ nameIexact,
1251
1572
  ordering,
1252
1573
  owner,
1253
1574
  page,
@@ -1256,6 +1577,10 @@ export class CrmService {
1256
1577
  startDate,
1257
1578
  tags,
1258
1579
  }: {
1580
+ /**
1581
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
1582
+ */
1583
+ app?: string,
1259
1584
  /**
1260
1585
  * Only rows created in this window. `custom` needs `start_date` and `end_date`.
1261
1586
  */
@@ -1265,6 +1590,7 @@ export class CrmService {
1265
1590
  */
1266
1591
  endDate?: string,
1267
1592
  name?: string,
1593
+ nameIexact?: string,
1268
1594
  /**
1269
1595
  * Which field to use when ordering the results.
1270
1596
  */
@@ -1292,9 +1618,11 @@ export class CrmService {
1292
1618
  method: 'GET',
1293
1619
  url: '/api/crm/organizations/',
1294
1620
  query: {
1621
+ 'app': app,
1295
1622
  'date_filter': dateFilter,
1296
1623
  'end_date': endDate,
1297
1624
  'name': name,
1625
+ 'name__iexact': nameIexact,
1298
1626
  'ordering': ordering,
1299
1627
  'owner': owner,
1300
1628
  'page': page,
@@ -1319,12 +1647,20 @@ export class CrmService {
1319
1647
  */
1320
1648
  public static crmOrganizationsCreate({
1321
1649
  requestBody,
1650
+ app = '',
1322
1651
  }: {
1323
1652
  requestBody: Organization,
1653
+ /**
1654
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
1655
+ */
1656
+ app?: string,
1324
1657
  }): CancelablePromise<Organization> {
1325
1658
  return __request(OpenAPI, {
1326
1659
  method: 'POST',
1327
1660
  url: '/api/crm/organizations/',
1661
+ query: {
1662
+ 'app': app,
1663
+ },
1328
1664
  body: requestBody,
1329
1665
  mediaType: 'application/json',
1330
1666
  errors: {
@@ -1343,8 +1679,13 @@ export class CrmService {
1343
1679
  */
1344
1680
  public static crmOrganizationsRetrieve({
1345
1681
  id,
1682
+ app = '',
1346
1683
  }: {
1347
1684
  id: string,
1685
+ /**
1686
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
1687
+ */
1688
+ app?: string,
1348
1689
  }): CancelablePromise<Organization> {
1349
1690
  return __request(OpenAPI, {
1350
1691
  method: 'GET',
@@ -1352,6 +1693,9 @@ export class CrmService {
1352
1693
  path: {
1353
1694
  'id': id,
1354
1695
  },
1696
+ query: {
1697
+ 'app': app,
1698
+ },
1355
1699
  errors: {
1356
1700
  403: `Missing required permission \`Ibl.CRM/Organizations/read\`.`,
1357
1701
  404: `Organization not found.`,
@@ -1369,9 +1713,14 @@ export class CrmService {
1369
1713
  public static crmOrganizationsUpdate({
1370
1714
  id,
1371
1715
  requestBody,
1716
+ app = '',
1372
1717
  }: {
1373
1718
  id: string,
1374
1719
  requestBody: Organization,
1720
+ /**
1721
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
1722
+ */
1723
+ app?: string,
1375
1724
  }): CancelablePromise<Organization> {
1376
1725
  return __request(OpenAPI, {
1377
1726
  method: 'PUT',
@@ -1379,6 +1728,9 @@ export class CrmService {
1379
1728
  path: {
1380
1729
  'id': id,
1381
1730
  },
1731
+ query: {
1732
+ 'app': app,
1733
+ },
1382
1734
  body: requestBody,
1383
1735
  mediaType: 'application/json',
1384
1736
  errors: {
@@ -1398,9 +1750,14 @@ export class CrmService {
1398
1750
  */
1399
1751
  public static crmOrganizationsPartialUpdate({
1400
1752
  id,
1753
+ app = '',
1401
1754
  requestBody,
1402
1755
  }: {
1403
1756
  id: string,
1757
+ /**
1758
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
1759
+ */
1760
+ app?: string,
1404
1761
  requestBody?: PatchedOrganization,
1405
1762
  }): CancelablePromise<Organization> {
1406
1763
  return __request(OpenAPI, {
@@ -1409,6 +1766,9 @@ export class CrmService {
1409
1766
  path: {
1410
1767
  'id': id,
1411
1768
  },
1769
+ query: {
1770
+ 'app': app,
1771
+ },
1412
1772
  body: requestBody,
1413
1773
  mediaType: 'application/json',
1414
1774
  errors: {
@@ -1428,8 +1788,13 @@ export class CrmService {
1428
1788
  */
1429
1789
  public static crmOrganizationsDestroy({
1430
1790
  id,
1791
+ app = '',
1431
1792
  }: {
1432
1793
  id: string,
1794
+ /**
1795
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
1796
+ */
1797
+ app?: string,
1433
1798
  }): CancelablePromise<void> {
1434
1799
  return __request(OpenAPI, {
1435
1800
  method: 'DELETE',
@@ -1437,6 +1802,9 @@ export class CrmService {
1437
1802
  path: {
1438
1803
  'id': id,
1439
1804
  },
1805
+ query: {
1806
+ 'app': app,
1807
+ },
1440
1808
  errors: {
1441
1809
  403: `Missing required permission \`Ibl.CRM/Organizations/delete\`.`,
1442
1810
  404: `Organization not found.`,
@@ -1453,8 +1821,13 @@ export class CrmService {
1453
1821
  */
1454
1822
  public static crmOrganizationsHistoryList({
1455
1823
  id,
1824
+ app = '',
1456
1825
  }: {
1457
1826
  id: string,
1827
+ /**
1828
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
1829
+ */
1830
+ app?: string,
1458
1831
  }): CancelablePromise<Array<HistoryEntry>> {
1459
1832
  return __request(OpenAPI, {
1460
1833
  method: 'GET',
@@ -1462,12 +1835,48 @@ export class CrmService {
1462
1835
  path: {
1463
1836
  'id': id,
1464
1837
  },
1838
+ query: {
1839
+ 'app': app,
1840
+ },
1465
1841
  errors: {
1466
1842
  403: `Missing the record's \`read\` permission.`,
1467
1843
  404: `Record not found.`,
1468
1844
  },
1469
1845
  });
1470
1846
  }
1847
+ /**
1848
+ * Merge into this record's metadata
1849
+ * Applies a JSON merge patch (RFC 7386) to `metadata` under a row lock: objects merge key by key, `null` removes a key, any other value replaces it. Two merges never lose each other's keys; a plain `PATCH` still replaces `metadata` whole.
1850
+ *
1851
+ * **Required permission:** the record's `write` verb.
1852
+ * @returns Organization
1853
+ * @throws ApiError
1854
+ */
1855
+ public static crmOrganizationsMetadataPartialUpdate({
1856
+ id,
1857
+ app = '',
1858
+ requestBody,
1859
+ }: {
1860
+ id: string,
1861
+ /**
1862
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
1863
+ */
1864
+ app?: string,
1865
+ requestBody?: Record<string, any>,
1866
+ }): CancelablePromise<Organization> {
1867
+ return __request(OpenAPI, {
1868
+ method: 'PATCH',
1869
+ url: '/api/crm/organizations/{id}/metadata/',
1870
+ path: {
1871
+ 'id': id,
1872
+ },
1873
+ query: {
1874
+ 'app': app,
1875
+ },
1876
+ body: requestBody,
1877
+ mediaType: 'application/json',
1878
+ });
1879
+ }
1471
1880
  /**
1472
1881
  * Attach a tag to this record
1473
1882
  * Attaches an existing Tag to this record. Both the Tag and the record must belong to your Platform. Returns `409 Conflict` with the existing `assignment_id` if the tag is already attached.
@@ -1479,9 +1888,14 @@ export class CrmService {
1479
1888
  public static crmOrganizationsTagsCreate({
1480
1889
  id,
1481
1890
  requestBody,
1891
+ app = '',
1482
1892
  }: {
1483
1893
  id: string,
1484
1894
  requestBody: _TagAttachRequest,
1895
+ /**
1896
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
1897
+ */
1898
+ app?: string,
1485
1899
  }): CancelablePromise<any> {
1486
1900
  return __request(OpenAPI, {
1487
1901
  method: 'POST',
@@ -1489,6 +1903,9 @@ export class CrmService {
1489
1903
  path: {
1490
1904
  'id': id,
1491
1905
  },
1906
+ query: {
1907
+ 'app': app,
1908
+ },
1492
1909
  body: requestBody,
1493
1910
  mediaType: 'application/json',
1494
1911
  errors: {
@@ -1510,9 +1927,14 @@ export class CrmService {
1510
1927
  public static crmOrganizationsTagsDestroy({
1511
1928
  id,
1512
1929
  tagId,
1930
+ app = '',
1513
1931
  }: {
1514
1932
  id: string,
1515
1933
  tagId: string,
1934
+ /**
1935
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
1936
+ */
1937
+ app?: string,
1516
1938
  }): CancelablePromise<void> {
1517
1939
  return __request(OpenAPI, {
1518
1940
  method: 'DELETE',
@@ -1521,6 +1943,9 @@ export class CrmService {
1521
1943
  'id': id,
1522
1944
  'tag_id': tagId,
1523
1945
  },
1946
+ query: {
1947
+ 'app': app,
1948
+ },
1524
1949
  errors: {
1525
1950
  403: `No response body`,
1526
1951
  404: `No response body`,
@@ -1528,45 +1953,125 @@ export class CrmService {
1528
1953
  });
1529
1954
  }
1530
1955
  /**
1531
- * CRM overview
1532
- * Dashboard figures: person and organization counts, open-deal count and value (plain and probability-weighted), this month's won / lost deals, open deals per stage of one pipeline, six months of won / lost history, and activities due today or overdue. Sections you may not `list` are omitted.
1533
- *
1534
- * `date_filter` (or `start_date` + `end_date`) adds `period_*` siblings for that window.
1535
- *
1536
- * **Required permission:** the `list` verb of each section.
1537
- * @returns Overview
1956
+ * A published web form (public)
1957
+ * No credential. The fields as a visitor fills them in, the page copy (`metadata`) and the success text. Unknown, draft and inactive forms are the same 404.
1958
+ * @returns WebFormPublic
1538
1959
  * @throws ApiError
1539
1960
  */
1540
- public static crmOverviewRetrieve({
1541
- dateFilter,
1542
- endDate,
1543
- pipeline,
1544
- startDate,
1961
+ public static crmOrgsWebFormsRetrieve({
1962
+ org,
1963
+ slug,
1964
+ app = '',
1545
1965
  }: {
1966
+ org: string,
1967
+ slug: string,
1546
1968
  /**
1547
- * Window for the `period_*` figures.
1548
- */
1549
- dateFilter?: '30d' | '7d' | '90d' | 'all_time' | 'custom' | 'today',
1550
- /**
1551
- * Custom window end.
1552
- */
1553
- endDate?: string,
1554
- /**
1555
- * Pipeline for `deals.by_stage` (default: the default pipeline).
1556
- */
1557
- pipeline?: number,
1558
- /**
1559
- * Custom window start.
1969
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
1560
1970
  */
1561
- startDate?: string,
1562
- }): CancelablePromise<Overview> {
1971
+ app?: string,
1972
+ }): CancelablePromise<WebFormPublic> {
1563
1973
  return __request(OpenAPI, {
1564
1974
  method: 'GET',
1565
- url: '/api/crm/overview/',
1975
+ url: '/api/crm/orgs/{org}/web-forms/{slug}/',
1976
+ path: {
1977
+ 'org': org,
1978
+ 'slug': slug,
1979
+ },
1566
1980
  query: {
1567
- 'date_filter': dateFilter,
1568
- 'end_date': endDate,
1569
- 'pipeline': pipeline,
1981
+ 'app': app,
1982
+ },
1983
+ errors: {
1984
+ 404: `No published form here.`,
1985
+ },
1986
+ });
1987
+ }
1988
+ /**
1989
+ * Submit a published web form (public)
1990
+ * No credential; JSON only, at most 64 KB. Files the answers into the CRM: the person with this email is reused (gaps filled, nothing overwritten) or created, a deal is opened when the form routes to one, tags and a note are added. Identical answers to the same form within ten minutes return the first submission with `created: false`. Unknown answer keys are dropped. Leave `website` empty: it is a honeypot. Throttled per IP (`CRM_WEB_FORM_SUBMIT_THROTTLE_RATE`, default 20/min).
1991
+ * @returns WebFormSubmitResponse
1992
+ * @throws ApiError
1993
+ */
1994
+ public static crmOrgsWebFormsSubmissionsCreate({
1995
+ org,
1996
+ slug,
1997
+ requestBody,
1998
+ app = '',
1999
+ }: {
2000
+ org: string,
2001
+ slug: string,
2002
+ requestBody: WebFormSubmitRequest,
2003
+ /**
2004
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
2005
+ */
2006
+ app?: string,
2007
+ }): CancelablePromise<WebFormSubmitResponse> {
2008
+ return __request(OpenAPI, {
2009
+ method: 'POST',
2010
+ url: '/api/crm/orgs/{org}/web-forms/{slug}/submissions/',
2011
+ path: {
2012
+ 'org': org,
2013
+ 'slug': slug,
2014
+ },
2015
+ query: {
2016
+ 'app': app,
2017
+ },
2018
+ body: requestBody,
2019
+ mediaType: 'application/json',
2020
+ errors: {
2021
+ 400: `\`{issues: {<field key>|non_field_errors: [message]}}\`.`,
2022
+ 404: `No published form here.`,
2023
+ 413: `Body over 64 KB.`,
2024
+ 415: `Not JSON.`,
2025
+ 429: `Too many submissions from this IP.`,
2026
+ },
2027
+ });
2028
+ }
2029
+ /**
2030
+ * CRM overview
2031
+ * Dashboard figures: person and organization counts, open-deal count and value (plain and probability-weighted), this month's won / lost deals, open deals per stage of one pipeline, six months of won / lost history, and activities due today or overdue. Sections you may not `list` are omitted.
2032
+ *
2033
+ * `date_filter` (or `start_date` + `end_date`) adds `period_*` siblings for that window.
2034
+ *
2035
+ * **Required permission:** the `list` verb of each section.
2036
+ * @returns Overview
2037
+ * @throws ApiError
2038
+ */
2039
+ public static crmOverviewRetrieve({
2040
+ app = '',
2041
+ dateFilter,
2042
+ endDate,
2043
+ pipeline,
2044
+ startDate,
2045
+ }: {
2046
+ /**
2047
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
2048
+ */
2049
+ app?: string,
2050
+ /**
2051
+ * Window for the `period_*` figures.
2052
+ */
2053
+ dateFilter?: '30d' | '7d' | '90d' | 'all_time' | 'custom' | 'today',
2054
+ /**
2055
+ * Custom window end.
2056
+ */
2057
+ endDate?: string,
2058
+ /**
2059
+ * Pipeline for `deals.by_stage` (default: the default pipeline).
2060
+ */
2061
+ pipeline?: number,
2062
+ /**
2063
+ * Custom window start.
2064
+ */
2065
+ startDate?: string,
2066
+ }): CancelablePromise<Overview> {
2067
+ return __request(OpenAPI, {
2068
+ method: 'GET',
2069
+ url: '/api/crm/overview/',
2070
+ query: {
2071
+ 'app': app,
2072
+ 'date_filter': dateFilter,
2073
+ 'end_date': endDate,
2074
+ 'pipeline': pipeline,
1570
2075
  'start_date': startDate,
1571
2076
  },
1572
2077
  errors: {
@@ -1578,7 +2083,7 @@ export class CrmService {
1578
2083
  }
1579
2084
  /**
1580
2085
  * List persons
1581
- * Returns a paginated list of persons in your Platform. Supports filtering by `lifecycle_stage`, `owner`, `organization`, `created_at__gte`/`created_at__lte`, and `metadata__has_key`.
2086
+ * Returns a paginated list of persons in your Platform. Supports filtering by `lifecycle_stage`, `owner`, `organization`, `primary_email` (exact, ignoring case), `created_at__gte`/`created_at__lte`, and `metadata__has_key`.
1582
2087
  *
1583
2088
  * **Required permission:** `Ibl.CRM/Persons/list`.
1584
2089
  * @returns PaginatedPersonList
@@ -1586,6 +2091,7 @@ export class CrmService {
1586
2091
  */
1587
2092
  public static crmPersonsList({
1588
2093
  active,
2094
+ app = '',
1589
2095
  createdAtGte,
1590
2096
  createdAtLte,
1591
2097
  dateFilter,
@@ -1597,11 +2103,16 @@ export class CrmService {
1597
2103
  owner,
1598
2104
  page,
1599
2105
  pageSize,
2106
+ primaryEmail,
1600
2107
  search,
1601
2108
  startDate,
1602
2109
  tags,
1603
2110
  }: {
1604
2111
  active?: boolean,
2112
+ /**
2113
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
2114
+ */
2115
+ app?: string,
1605
2116
  createdAtGte?: string,
1606
2117
  createdAtLte?: string,
1607
2118
  /**
@@ -1637,6 +2148,7 @@ export class CrmService {
1637
2148
  * Number of results to return per page.
1638
2149
  */
1639
2150
  pageSize?: number,
2151
+ primaryEmail?: string,
1640
2152
  /**
1641
2153
  * A search term.
1642
2154
  */
@@ -1652,6 +2164,7 @@ export class CrmService {
1652
2164
  url: '/api/crm/persons/',
1653
2165
  query: {
1654
2166
  'active': active,
2167
+ 'app': app,
1655
2168
  'created_at__gte': createdAtGte,
1656
2169
  'created_at__lte': createdAtLte,
1657
2170
  'date_filter': dateFilter,
@@ -1663,6 +2176,7 @@ export class CrmService {
1663
2176
  'owner': owner,
1664
2177
  'page': page,
1665
2178
  'page_size': pageSize,
2179
+ 'primary_email': primaryEmail,
1666
2180
  'search': search,
1667
2181
  'start_date': startDate,
1668
2182
  'tags': tags,
@@ -1683,12 +2197,20 @@ export class CrmService {
1683
2197
  */
1684
2198
  public static crmPersonsCreate({
1685
2199
  requestBody,
2200
+ app = '',
1686
2201
  }: {
1687
2202
  requestBody: Person,
2203
+ /**
2204
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
2205
+ */
2206
+ app?: string,
1688
2207
  }): CancelablePromise<Person> {
1689
2208
  return __request(OpenAPI, {
1690
2209
  method: 'POST',
1691
2210
  url: '/api/crm/persons/',
2211
+ query: {
2212
+ 'app': app,
2213
+ },
1692
2214
  body: requestBody,
1693
2215
  mediaType: 'application/json',
1694
2216
  errors: {
@@ -1707,8 +2229,13 @@ export class CrmService {
1707
2229
  */
1708
2230
  public static crmPersonsRetrieve({
1709
2231
  id,
2232
+ app = '',
1710
2233
  }: {
1711
2234
  id: string,
2235
+ /**
2236
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
2237
+ */
2238
+ app?: string,
1712
2239
  }): CancelablePromise<Person> {
1713
2240
  return __request(OpenAPI, {
1714
2241
  method: 'GET',
@@ -1716,6 +2243,9 @@ export class CrmService {
1716
2243
  path: {
1717
2244
  'id': id,
1718
2245
  },
2246
+ query: {
2247
+ 'app': app,
2248
+ },
1719
2249
  errors: {
1720
2250
  403: `Missing required permission \`Ibl.CRM/Persons/read\`.`,
1721
2251
  404: `Person not found.`,
@@ -1733,9 +2263,14 @@ export class CrmService {
1733
2263
  public static crmPersonsUpdate({
1734
2264
  id,
1735
2265
  requestBody,
2266
+ app = '',
1736
2267
  }: {
1737
2268
  id: string,
1738
2269
  requestBody: Person,
2270
+ /**
2271
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
2272
+ */
2273
+ app?: string,
1739
2274
  }): CancelablePromise<Person> {
1740
2275
  return __request(OpenAPI, {
1741
2276
  method: 'PUT',
@@ -1743,6 +2278,9 @@ export class CrmService {
1743
2278
  path: {
1744
2279
  'id': id,
1745
2280
  },
2281
+ query: {
2282
+ 'app': app,
2283
+ },
1746
2284
  body: requestBody,
1747
2285
  mediaType: 'application/json',
1748
2286
  errors: {
@@ -1762,9 +2300,14 @@ export class CrmService {
1762
2300
  */
1763
2301
  public static crmPersonsPartialUpdate({
1764
2302
  id,
2303
+ app = '',
1765
2304
  requestBody,
1766
2305
  }: {
1767
2306
  id: string,
2307
+ /**
2308
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
2309
+ */
2310
+ app?: string,
1768
2311
  requestBody?: PatchedPerson,
1769
2312
  }): CancelablePromise<Person> {
1770
2313
  return __request(OpenAPI, {
@@ -1773,6 +2316,9 @@ export class CrmService {
1773
2316
  path: {
1774
2317
  'id': id,
1775
2318
  },
2319
+ query: {
2320
+ 'app': app,
2321
+ },
1776
2322
  body: requestBody,
1777
2323
  mediaType: 'application/json',
1778
2324
  errors: {
@@ -1792,8 +2338,13 @@ export class CrmService {
1792
2338
  */
1793
2339
  public static crmPersonsDestroy({
1794
2340
  id,
2341
+ app = '',
1795
2342
  }: {
1796
2343
  id: string,
2344
+ /**
2345
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
2346
+ */
2347
+ app?: string,
1797
2348
  }): CancelablePromise<void> {
1798
2349
  return __request(OpenAPI, {
1799
2350
  method: 'DELETE',
@@ -1801,6 +2352,9 @@ export class CrmService {
1801
2352
  path: {
1802
2353
  'id': id,
1803
2354
  },
2355
+ query: {
2356
+ 'app': app,
2357
+ },
1804
2358
  errors: {
1805
2359
  403: `Missing required permission \`Ibl.CRM/Persons/delete\`.`,
1806
2360
  404: `Person not found.`,
@@ -1818,8 +2372,13 @@ export class CrmService {
1818
2372
  */
1819
2373
  public static crmPersonsHistoryList({
1820
2374
  id,
2375
+ app = '',
1821
2376
  }: {
1822
2377
  id: string,
2378
+ /**
2379
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
2380
+ */
2381
+ app?: string,
1823
2382
  }): CancelablePromise<Array<HistoryEntry>> {
1824
2383
  return __request(OpenAPI, {
1825
2384
  method: 'GET',
@@ -1827,6 +2386,9 @@ export class CrmService {
1827
2386
  path: {
1828
2387
  'id': id,
1829
2388
  },
2389
+ query: {
2390
+ 'app': app,
2391
+ },
1830
2392
  errors: {
1831
2393
  403: `Missing the record's \`read\` permission.`,
1832
2394
  404: `Record not found.`,
@@ -1839,15 +2401,20 @@ export class CrmService {
1839
2401
  *
1840
2402
  * Returns `409 Conflict` if an active invitation already exists for this email in your Platform, and `422 Unprocessable Entity` if the person is already linked to a platform user.
1841
2403
  *
1842
- * **Required permission:** `Ibl.CRM/Invite/action`.
2404
+ * **Required permission:** `Ibl.CRM/Invite/action`; `is_admin` or `is_staff` also needs `Ibl.Catalog/PlatformInvitations/action`.
1843
2405
  * @returns PersonInviteResponse
1844
2406
  * @throws ApiError
1845
2407
  */
1846
2408
  public static crmPersonsInviteCreate({
1847
2409
  id,
2410
+ app = '',
1848
2411
  requestBody,
1849
2412
  }: {
1850
2413
  id: string,
2414
+ /**
2415
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
2416
+ */
2417
+ app?: string,
1851
2418
  requestBody?: PersonInviteRequest,
1852
2419
  }): CancelablePromise<PersonInviteResponse> {
1853
2420
  return __request(OpenAPI, {
@@ -1856,11 +2423,14 @@ export class CrmService {
1856
2423
  path: {
1857
2424
  'id': id,
1858
2425
  },
2426
+ query: {
2427
+ 'app': app,
2428
+ },
1859
2429
  body: requestBody,
1860
2430
  mediaType: 'application/json',
1861
2431
  errors: {
1862
2432
  400: `Person has no \`primary_email\`; cannot invite.`,
1863
- 403: `Missing required permission \`Ibl.CRM/Invite/action\`.`,
2433
+ 403: `Missing \`Ibl.CRM/Invite/action\`, or \`Ibl.Catalog/PlatformInvitations/action\` for \`is_admin\` / \`is_staff\`; an API key never grants them.`,
1864
2434
  404: `Person not found.`,
1865
2435
  422: `Person is already linked to a platform user.`,
1866
2436
  },
@@ -1879,9 +2449,14 @@ export class CrmService {
1879
2449
  public static crmPersonsLinkUserCreate({
1880
2450
  id,
1881
2451
  requestBody,
2452
+ app = '',
1882
2453
  }: {
1883
2454
  id: string,
1884
2455
  requestBody: PersonLinkUserRequest,
2456
+ /**
2457
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
2458
+ */
2459
+ app?: string,
1885
2460
  }): CancelablePromise<Person> {
1886
2461
  return __request(OpenAPI, {
1887
2462
  method: 'POST',
@@ -1889,6 +2464,9 @@ export class CrmService {
1889
2464
  path: {
1890
2465
  'id': id,
1891
2466
  },
2467
+ query: {
2468
+ 'app': app,
2469
+ },
1892
2470
  body: requestBody,
1893
2471
  mediaType: 'application/json',
1894
2472
  errors: {
@@ -1898,6 +2476,39 @@ export class CrmService {
1898
2476
  },
1899
2477
  });
1900
2478
  }
2479
+ /**
2480
+ * Merge into this record's metadata
2481
+ * Applies a JSON merge patch (RFC 7386) to `metadata` under a row lock: objects merge key by key, `null` removes a key, any other value replaces it. Two merges never lose each other's keys; a plain `PATCH` still replaces `metadata` whole.
2482
+ *
2483
+ * **Required permission:** the record's `write` verb.
2484
+ * @returns Person
2485
+ * @throws ApiError
2486
+ */
2487
+ public static crmPersonsMetadataPartialUpdate({
2488
+ id,
2489
+ app = '',
2490
+ requestBody,
2491
+ }: {
2492
+ id: string,
2493
+ /**
2494
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
2495
+ */
2496
+ app?: string,
2497
+ requestBody?: Record<string, any>,
2498
+ }): CancelablePromise<Person> {
2499
+ return __request(OpenAPI, {
2500
+ method: 'PATCH',
2501
+ url: '/api/crm/persons/{id}/metadata/',
2502
+ path: {
2503
+ 'id': id,
2504
+ },
2505
+ query: {
2506
+ 'app': app,
2507
+ },
2508
+ body: requestBody,
2509
+ mediaType: 'application/json',
2510
+ });
2511
+ }
1901
2512
  /**
1902
2513
  * Attach a tag to this record
1903
2514
  * Attaches an existing Tag to this record. Both the Tag and the record must belong to your Platform. Returns `409 Conflict` with the existing `assignment_id` if the tag is already attached.
@@ -1909,9 +2520,14 @@ export class CrmService {
1909
2520
  public static crmPersonsTagsCreate({
1910
2521
  id,
1911
2522
  requestBody,
2523
+ app = '',
1912
2524
  }: {
1913
2525
  id: string,
1914
2526
  requestBody: _TagAttachRequest,
2527
+ /**
2528
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
2529
+ */
2530
+ app?: string,
1915
2531
  }): CancelablePromise<any> {
1916
2532
  return __request(OpenAPI, {
1917
2533
  method: 'POST',
@@ -1919,6 +2535,9 @@ export class CrmService {
1919
2535
  path: {
1920
2536
  'id': id,
1921
2537
  },
2538
+ query: {
2539
+ 'app': app,
2540
+ },
1922
2541
  body: requestBody,
1923
2542
  mediaType: 'application/json',
1924
2543
  errors: {
@@ -1940,9 +2559,14 @@ export class CrmService {
1940
2559
  public static crmPersonsTagsDestroy({
1941
2560
  id,
1942
2561
  tagId,
2562
+ app = '',
1943
2563
  }: {
1944
2564
  id: string,
1945
2565
  tagId: string,
2566
+ /**
2567
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
2568
+ */
2569
+ app?: string,
1946
2570
  }): CancelablePromise<void> {
1947
2571
  return __request(OpenAPI, {
1948
2572
  method: 'DELETE',
@@ -1951,6 +2575,9 @@ export class CrmService {
1951
2575
  'id': id,
1952
2576
  'tag_id': tagId,
1953
2577
  },
2578
+ query: {
2579
+ 'app': app,
2580
+ },
1954
2581
  errors: {
1955
2582
  403: `No response body`,
1956
2583
  404: `No response body`,
@@ -1959,7 +2586,7 @@ export class CrmService {
1959
2586
  }
1960
2587
  /**
1961
2588
  * Merge duplicate persons into a primary
1962
- * Marks each person in `duplicate_ids` as inactive and reports how many related records (deals, activities, tags) were re-parented onto `primary_id`.
2589
+ * Marks each person in `duplicate_ids` as inactive, moves a duplicate's platform-user link to the primary (which retires the primary, as a link does) and clears it on the retired rows, and reports how many related records (deals, activities, tags) were re-parented onto `primary_id`.
1963
2590
  *
1964
2591
  * All ids — both the primary and every duplicate — must belong to your Platform. `primary_id` may not appear in `duplicate_ids`.
1965
2592
  *
@@ -1969,16 +2596,24 @@ export class CrmService {
1969
2596
  */
1970
2597
  public static crmPersonsMergeCreate({
1971
2598
  requestBody,
2599
+ app = '',
1972
2600
  }: {
1973
2601
  requestBody: PersonMergeRequest,
2602
+ /**
2603
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
2604
+ */
2605
+ app?: string,
1974
2606
  }): CancelablePromise<PersonMergeResponse> {
1975
2607
  return __request(OpenAPI, {
1976
2608
  method: 'POST',
1977
2609
  url: '/api/crm/persons/merge/',
2610
+ query: {
2611
+ 'app': app,
2612
+ },
1978
2613
  body: requestBody,
1979
2614
  mediaType: 'application/json',
1980
2615
  errors: {
1981
- 400: `Validation error: the primary appears in duplicates, or one or more ids belong to another Platform.`,
2616
+ 400: `Validation error: the primary appears in duplicates, one or more ids belong to another Platform, or the persons are linked to different platform users.`,
1982
2617
  403: `Missing required permission \`Ibl.CRM/Persons/write\`.`,
1983
2618
  404: `Primary person not found.`,
1984
2619
  },
@@ -1993,6 +2628,7 @@ export class CrmService {
1993
2628
  * @throws ApiError
1994
2629
  */
1995
2630
  public static crmPipelinesList({
2631
+ app = '',
1996
2632
  code,
1997
2633
  dateFilter,
1998
2634
  endDate,
@@ -2004,6 +2640,10 @@ export class CrmService {
2004
2640
  search,
2005
2641
  startDate,
2006
2642
  }: {
2643
+ /**
2644
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
2645
+ */
2646
+ app?: string,
2007
2647
  code?: string,
2008
2648
  /**
2009
2649
  * Only rows created in this window. `custom` needs `start_date` and `end_date`.
@@ -2040,6 +2680,7 @@ export class CrmService {
2040
2680
  method: 'GET',
2041
2681
  url: '/api/crm/pipelines/',
2042
2682
  query: {
2683
+ 'app': app,
2043
2684
  'code': code,
2044
2685
  'date_filter': dateFilter,
2045
2686
  'end_date': endDate,
@@ -2067,12 +2708,20 @@ export class CrmService {
2067
2708
  */
2068
2709
  public static crmPipelinesCreate({
2069
2710
  requestBody,
2711
+ app = '',
2070
2712
  }: {
2071
2713
  requestBody: Pipeline,
2714
+ /**
2715
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
2716
+ */
2717
+ app?: string,
2072
2718
  }): CancelablePromise<Pipeline> {
2073
2719
  return __request(OpenAPI, {
2074
2720
  method: 'POST',
2075
2721
  url: '/api/crm/pipelines/',
2722
+ query: {
2723
+ 'app': app,
2724
+ },
2076
2725
  body: requestBody,
2077
2726
  mediaType: 'application/json',
2078
2727
  errors: {
@@ -2091,6 +2740,7 @@ export class CrmService {
2091
2740
  */
2092
2741
  public static crmPipelinesStagesList({
2093
2742
  pipelinePk,
2743
+ app = '',
2094
2744
  code,
2095
2745
  dateFilter,
2096
2746
  endDate,
@@ -2103,6 +2753,10 @@ export class CrmService {
2103
2753
  startDate,
2104
2754
  }: {
2105
2755
  pipelinePk: number,
2756
+ /**
2757
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
2758
+ */
2759
+ app?: string,
2106
2760
  code?: string,
2107
2761
  /**
2108
2762
  * Only rows created in this window. `custom` needs `start_date` and `end_date`.
@@ -2142,6 +2796,7 @@ export class CrmService {
2142
2796
  'pipeline_pk': pipelinePk,
2143
2797
  },
2144
2798
  query: {
2799
+ 'app': app,
2145
2800
  'code': code,
2146
2801
  'date_filter': dateFilter,
2147
2802
  'end_date': endDate,
@@ -2170,9 +2825,14 @@ export class CrmService {
2170
2825
  public static crmPipelinesStagesCreate({
2171
2826
  pipelinePk,
2172
2827
  requestBody,
2828
+ app = '',
2173
2829
  }: {
2174
2830
  pipelinePk: number,
2175
2831
  requestBody: PipelineStage,
2832
+ /**
2833
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
2834
+ */
2835
+ app?: string,
2176
2836
  }): CancelablePromise<PipelineStage> {
2177
2837
  return __request(OpenAPI, {
2178
2838
  method: 'POST',
@@ -2180,6 +2840,9 @@ export class CrmService {
2180
2840
  path: {
2181
2841
  'pipeline_pk': pipelinePk,
2182
2842
  },
2843
+ query: {
2844
+ 'app': app,
2845
+ },
2183
2846
  body: requestBody,
2184
2847
  mediaType: 'application/json',
2185
2848
  errors: {
@@ -2200,9 +2863,14 @@ export class CrmService {
2200
2863
  public static crmPipelinesStagesRetrieve({
2201
2864
  id,
2202
2865
  pipelinePk,
2866
+ app = '',
2203
2867
  }: {
2204
2868
  id: number,
2205
2869
  pipelinePk: number,
2870
+ /**
2871
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
2872
+ */
2873
+ app?: string,
2206
2874
  }): CancelablePromise<PipelineStage> {
2207
2875
  return __request(OpenAPI, {
2208
2876
  method: 'GET',
@@ -2211,6 +2879,9 @@ export class CrmService {
2211
2879
  'id': id,
2212
2880
  'pipeline_pk': pipelinePk,
2213
2881
  },
2882
+ query: {
2883
+ 'app': app,
2884
+ },
2214
2885
  errors: {
2215
2886
  403: `Missing required permission \`Ibl.CRM/Pipelines/read\`.`,
2216
2887
  404: `Stage not found in this Pipeline.`,
@@ -2229,10 +2900,15 @@ export class CrmService {
2229
2900
  id,
2230
2901
  pipelinePk,
2231
2902
  requestBody,
2903
+ app = '',
2232
2904
  }: {
2233
2905
  id: number,
2234
2906
  pipelinePk: number,
2235
2907
  requestBody: PipelineStage,
2908
+ /**
2909
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
2910
+ */
2911
+ app?: string,
2236
2912
  }): CancelablePromise<PipelineStage> {
2237
2913
  return __request(OpenAPI, {
2238
2914
  method: 'PUT',
@@ -2241,6 +2917,9 @@ export class CrmService {
2241
2917
  'id': id,
2242
2918
  'pipeline_pk': pipelinePk,
2243
2919
  },
2920
+ query: {
2921
+ 'app': app,
2922
+ },
2244
2923
  body: requestBody,
2245
2924
  mediaType: 'application/json',
2246
2925
  errors: {
@@ -2261,10 +2940,15 @@ export class CrmService {
2261
2940
  public static crmPipelinesStagesPartialUpdate({
2262
2941
  id,
2263
2942
  pipelinePk,
2943
+ app = '',
2264
2944
  requestBody,
2265
2945
  }: {
2266
2946
  id: number,
2267
2947
  pipelinePk: number,
2948
+ /**
2949
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
2950
+ */
2951
+ app?: string,
2268
2952
  requestBody?: PatchedPipelineStage,
2269
2953
  }): CancelablePromise<PipelineStage> {
2270
2954
  return __request(OpenAPI, {
@@ -2274,6 +2958,9 @@ export class CrmService {
2274
2958
  'id': id,
2275
2959
  'pipeline_pk': pipelinePk,
2276
2960
  },
2961
+ query: {
2962
+ 'app': app,
2963
+ },
2277
2964
  body: requestBody,
2278
2965
  mediaType: 'application/json',
2279
2966
  errors: {
@@ -2294,9 +2981,14 @@ export class CrmService {
2294
2981
  public static crmPipelinesStagesDestroy({
2295
2982
  id,
2296
2983
  pipelinePk,
2984
+ app = '',
2297
2985
  }: {
2298
2986
  id: number,
2299
2987
  pipelinePk: number,
2988
+ /**
2989
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
2990
+ */
2991
+ app?: string,
2300
2992
  }): CancelablePromise<void> {
2301
2993
  return __request(OpenAPI, {
2302
2994
  method: 'DELETE',
@@ -2305,6 +2997,9 @@ export class CrmService {
2305
2997
  'id': id,
2306
2998
  'pipeline_pk': pipelinePk,
2307
2999
  },
3000
+ query: {
3001
+ 'app': app,
3002
+ },
2308
3003
  errors: {
2309
3004
  403: `Missing required permission \`Ibl.CRM/Pipelines/delete\`.`,
2310
3005
  404: `Stage not found in this Pipeline.`,
@@ -2322,11 +3017,16 @@ export class CrmService {
2322
3017
  */
2323
3018
  public static crmPipelinesRetrieve({
2324
3019
  id,
3020
+ app = '',
2325
3021
  }: {
2326
3022
  /**
2327
3023
  * A unique integer value identifying this pipeline.
2328
3024
  */
2329
3025
  id: number,
3026
+ /**
3027
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
3028
+ */
3029
+ app?: string,
2330
3030
  }): CancelablePromise<Pipeline> {
2331
3031
  return __request(OpenAPI, {
2332
3032
  method: 'GET',
@@ -2334,6 +3034,9 @@ export class CrmService {
2334
3034
  path: {
2335
3035
  'id': id,
2336
3036
  },
3037
+ query: {
3038
+ 'app': app,
3039
+ },
2337
3040
  errors: {
2338
3041
  403: `Missing required permission \`Ibl.CRM/Pipelines/read\`.`,
2339
3042
  404: `Pipeline not found.`,
@@ -2351,12 +3054,17 @@ export class CrmService {
2351
3054
  public static crmPipelinesUpdate({
2352
3055
  id,
2353
3056
  requestBody,
3057
+ app = '',
2354
3058
  }: {
2355
3059
  /**
2356
3060
  * A unique integer value identifying this pipeline.
2357
3061
  */
2358
3062
  id: number,
2359
3063
  requestBody: Pipeline,
3064
+ /**
3065
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
3066
+ */
3067
+ app?: string,
2360
3068
  }): CancelablePromise<Pipeline> {
2361
3069
  return __request(OpenAPI, {
2362
3070
  method: 'PUT',
@@ -2364,6 +3072,9 @@ export class CrmService {
2364
3072
  path: {
2365
3073
  'id': id,
2366
3074
  },
3075
+ query: {
3076
+ 'app': app,
3077
+ },
2367
3078
  body: requestBody,
2368
3079
  mediaType: 'application/json',
2369
3080
  errors: {
@@ -2383,12 +3094,17 @@ export class CrmService {
2383
3094
  */
2384
3095
  public static crmPipelinesPartialUpdate({
2385
3096
  id,
3097
+ app = '',
2386
3098
  requestBody,
2387
3099
  }: {
2388
3100
  /**
2389
3101
  * A unique integer value identifying this pipeline.
2390
3102
  */
2391
3103
  id: number,
3104
+ /**
3105
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
3106
+ */
3107
+ app?: string,
2392
3108
  requestBody?: PatchedPipeline,
2393
3109
  }): CancelablePromise<Pipeline> {
2394
3110
  return __request(OpenAPI, {
@@ -2397,6 +3113,9 @@ export class CrmService {
2397
3113
  path: {
2398
3114
  'id': id,
2399
3115
  },
3116
+ query: {
3117
+ 'app': app,
3118
+ },
2400
3119
  body: requestBody,
2401
3120
  mediaType: 'application/json',
2402
3121
  errors: {
@@ -2416,11 +3135,16 @@ export class CrmService {
2416
3135
  */
2417
3136
  public static crmPipelinesDestroy({
2418
3137
  id,
3138
+ app = '',
2419
3139
  }: {
2420
3140
  /**
2421
3141
  * A unique integer value identifying this pipeline.
2422
3142
  */
2423
3143
  id: number,
3144
+ /**
3145
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
3146
+ */
3147
+ app?: string,
2424
3148
  }): CancelablePromise<void> {
2425
3149
  return __request(OpenAPI, {
2426
3150
  method: 'DELETE',
@@ -2428,6 +3152,9 @@ export class CrmService {
2428
3152
  path: {
2429
3153
  'id': id,
2430
3154
  },
3155
+ query: {
3156
+ 'app': app,
3157
+ },
2431
3158
  errors: {
2432
3159
  403: `Missing required permission \`Ibl.CRM/Pipelines/delete\`.`,
2433
3160
  404: `Pipeline not found.`,
@@ -2446,12 +3173,17 @@ export class CrmService {
2446
3173
  public static crmPipelinesStagesReorderCreate({
2447
3174
  id,
2448
3175
  requestBody,
3176
+ app = '',
2449
3177
  }: {
2450
3178
  /**
2451
3179
  * A unique integer value identifying this pipeline.
2452
3180
  */
2453
3181
  id: number,
2454
3182
  requestBody: PipelineStageReorderRequest,
3183
+ /**
3184
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
3185
+ */
3186
+ app?: string,
2455
3187
  }): CancelablePromise<Pipeline> {
2456
3188
  return __request(OpenAPI, {
2457
3189
  method: 'POST',
@@ -2459,6 +3191,9 @@ export class CrmService {
2459
3191
  path: {
2460
3192
  'id': id,
2461
3193
  },
3194
+ query: {
3195
+ 'app': app,
3196
+ },
2462
3197
  body: requestBody,
2463
3198
  mediaType: 'application/json',
2464
3199
  errors: {
@@ -2478,12 +3213,17 @@ export class CrmService {
2478
3213
  */
2479
3214
  public static crmSearchRetrieve({
2480
3215
  q,
3216
+ app = '',
2481
3217
  limit,
2482
3218
  }: {
2483
3219
  /**
2484
3220
  * Search text.
2485
3221
  */
2486
3222
  q: string,
3223
+ /**
3224
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
3225
+ */
3226
+ app?: string,
2487
3227
  /**
2488
3228
  * Rows per bucket, 1–25 (default 8).
2489
3229
  */
@@ -2493,6 +3233,7 @@ export class CrmService {
2493
3233
  method: 'GET',
2494
3234
  url: '/api/crm/search/',
2495
3235
  query: {
3236
+ 'app': app,
2496
3237
  'limit': limit,
2497
3238
  'q': q,
2498
3239
  },
@@ -2504,24 +3245,30 @@ export class CrmService {
2504
3245
  }
2505
3246
  /**
2506
3247
  * List tags
2507
- * Returns a paginated list of Tags in your Platform. Supports filtering by `name` (case-insensitive substring) and `created_at__gte`/`created_at__lte` ISO timestamp ranges.
3248
+ * Returns a paginated list of Tags in your Platform. Supports filtering by `name` (case-insensitive substring), `name__iexact` (exact, ignoring case) and `created_at__gte`/`created_at__lte` ISO timestamp ranges.
2508
3249
  *
2509
3250
  * **Required permission:** `Ibl.CRM/Tags/list`.
2510
3251
  * @returns PaginatedTagList
2511
3252
  * @throws ApiError
2512
3253
  */
2513
3254
  public static crmTagsList({
3255
+ app = '',
2514
3256
  createdAtGte,
2515
3257
  createdAtLte,
2516
3258
  dateFilter,
2517
3259
  endDate,
2518
3260
  name,
3261
+ nameIexact,
2519
3262
  ordering,
2520
3263
  page,
2521
3264
  pageSize,
2522
3265
  search,
2523
3266
  startDate,
2524
3267
  }: {
3268
+ /**
3269
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
3270
+ */
3271
+ app?: string,
2525
3272
  createdAtGte?: string,
2526
3273
  createdAtLte?: string,
2527
3274
  /**
@@ -2533,6 +3280,7 @@ export class CrmService {
2533
3280
  */
2534
3281
  endDate?: string,
2535
3282
  name?: string,
3283
+ nameIexact?: string,
2536
3284
  /**
2537
3285
  * Which field to use when ordering the results.
2538
3286
  */
@@ -2558,11 +3306,13 @@ export class CrmService {
2558
3306
  method: 'GET',
2559
3307
  url: '/api/crm/tags/',
2560
3308
  query: {
3309
+ 'app': app,
2561
3310
  'created_at__gte': createdAtGte,
2562
3311
  'created_at__lte': createdAtLte,
2563
3312
  'date_filter': dateFilter,
2564
3313
  'end_date': endDate,
2565
3314
  'name': name,
3315
+ 'name__iexact': nameIexact,
2566
3316
  'ordering': ordering,
2567
3317
  'page': page,
2568
3318
  'page_size': pageSize,
@@ -2585,12 +3335,20 @@ export class CrmService {
2585
3335
  */
2586
3336
  public static crmTagsCreate({
2587
3337
  requestBody,
3338
+ app = '',
2588
3339
  }: {
2589
3340
  requestBody: Tag,
3341
+ /**
3342
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
3343
+ */
3344
+ app?: string,
2590
3345
  }): CancelablePromise<Tag> {
2591
3346
  return __request(OpenAPI, {
2592
3347
  method: 'POST',
2593
3348
  url: '/api/crm/tags/',
3349
+ query: {
3350
+ 'app': app,
3351
+ },
2594
3352
  body: requestBody,
2595
3353
  mediaType: 'application/json',
2596
3354
  errors: {
@@ -2609,11 +3367,16 @@ export class CrmService {
2609
3367
  */
2610
3368
  public static crmTagsRetrieve({
2611
3369
  id,
3370
+ app = '',
2612
3371
  }: {
2613
3372
  /**
2614
3373
  * A unique integer value identifying this tag.
2615
3374
  */
2616
3375
  id: number,
3376
+ /**
3377
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
3378
+ */
3379
+ app?: string,
2617
3380
  }): CancelablePromise<Tag> {
2618
3381
  return __request(OpenAPI, {
2619
3382
  method: 'GET',
@@ -2621,6 +3384,9 @@ export class CrmService {
2621
3384
  path: {
2622
3385
  'id': id,
2623
3386
  },
3387
+ query: {
3388
+ 'app': app,
3389
+ },
2624
3390
  errors: {
2625
3391
  403: `Missing required permission \`Ibl.CRM/Tags/read\`.`,
2626
3392
  404: `Tag not found.`,
@@ -2638,12 +3404,17 @@ export class CrmService {
2638
3404
  public static crmTagsUpdate({
2639
3405
  id,
2640
3406
  requestBody,
3407
+ app = '',
2641
3408
  }: {
2642
3409
  /**
2643
3410
  * A unique integer value identifying this tag.
2644
3411
  */
2645
3412
  id: number,
2646
3413
  requestBody: Tag,
3414
+ /**
3415
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
3416
+ */
3417
+ app?: string,
2647
3418
  }): CancelablePromise<Tag> {
2648
3419
  return __request(OpenAPI, {
2649
3420
  method: 'PUT',
@@ -2651,6 +3422,9 @@ export class CrmService {
2651
3422
  path: {
2652
3423
  'id': id,
2653
3424
  },
3425
+ query: {
3426
+ 'app': app,
3427
+ },
2654
3428
  body: requestBody,
2655
3429
  mediaType: 'application/json',
2656
3430
  errors: {
@@ -2670,12 +3444,17 @@ export class CrmService {
2670
3444
  */
2671
3445
  public static crmTagsPartialUpdate({
2672
3446
  id,
3447
+ app = '',
2673
3448
  requestBody,
2674
3449
  }: {
2675
3450
  /**
2676
3451
  * A unique integer value identifying this tag.
2677
3452
  */
2678
3453
  id: number,
3454
+ /**
3455
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
3456
+ */
3457
+ app?: string,
2679
3458
  requestBody?: PatchedTag,
2680
3459
  }): CancelablePromise<Tag> {
2681
3460
  return __request(OpenAPI, {
@@ -2684,6 +3463,9 @@ export class CrmService {
2684
3463
  path: {
2685
3464
  'id': id,
2686
3465
  },
3466
+ query: {
3467
+ 'app': app,
3468
+ },
2687
3469
  body: requestBody,
2688
3470
  mediaType: 'application/json',
2689
3471
  errors: {
@@ -2703,11 +3485,16 @@ export class CrmService {
2703
3485
  */
2704
3486
  public static crmTagsDestroy({
2705
3487
  id,
3488
+ app = '',
2706
3489
  }: {
2707
3490
  /**
2708
3491
  * A unique integer value identifying this tag.
2709
3492
  */
2710
3493
  id: number,
3494
+ /**
3495
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
3496
+ */
3497
+ app?: string,
2711
3498
  }): CancelablePromise<void> {
2712
3499
  return __request(OpenAPI, {
2713
3500
  method: 'DELETE',
@@ -2715,6 +3502,9 @@ export class CrmService {
2715
3502
  path: {
2716
3503
  'id': id,
2717
3504
  },
3505
+ query: {
3506
+ 'app': app,
3507
+ },
2718
3508
  errors: {
2719
3509
  403: `Missing required permission \`Ibl.CRM/Tags/delete\`.`,
2720
3510
  404: `Tag not found.`,
@@ -2730,6 +3520,7 @@ export class CrmService {
2730
3520
  * @throws ApiError
2731
3521
  */
2732
3522
  public static crmViewsList({
3523
+ app = '',
2733
3524
  dateFilter,
2734
3525
  endDate,
2735
3526
  objectType,
@@ -2740,6 +3531,10 @@ export class CrmService {
2740
3531
  startDate,
2741
3532
  type,
2742
3533
  }: {
3534
+ /**
3535
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
3536
+ */
3537
+ app?: string,
2743
3538
  /**
2744
3539
  * Only rows created in this window. `custom` needs `start_date` and `end_date`.
2745
3540
  */
@@ -2789,6 +3584,7 @@ export class CrmService {
2789
3584
  method: 'GET',
2790
3585
  url: '/api/crm/views/',
2791
3586
  query: {
3587
+ 'app': app,
2792
3588
  'date_filter': dateFilter,
2793
3589
  'end_date': endDate,
2794
3590
  'object_type': objectType,
@@ -2815,12 +3611,20 @@ export class CrmService {
2815
3611
  */
2816
3612
  public static crmViewsCreate({
2817
3613
  requestBody,
3614
+ app = '',
2818
3615
  }: {
2819
3616
  requestBody: SavedView,
3617
+ /**
3618
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
3619
+ */
3620
+ app?: string,
2820
3621
  }): CancelablePromise<SavedView> {
2821
3622
  return __request(OpenAPI, {
2822
3623
  method: 'POST',
2823
3624
  url: '/api/crm/views/',
3625
+ query: {
3626
+ 'app': app,
3627
+ },
2824
3628
  body: requestBody,
2825
3629
  mediaType: 'application/json',
2826
3630
  errors: {
@@ -2837,11 +3641,16 @@ export class CrmService {
2837
3641
  */
2838
3642
  public static crmViewsRetrieve({
2839
3643
  id,
3644
+ app = '',
2840
3645
  }: {
2841
3646
  /**
2842
3647
  * A unique integer value identifying this saved view.
2843
3648
  */
2844
3649
  id: number,
3650
+ /**
3651
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
3652
+ */
3653
+ app?: string,
2845
3654
  }): CancelablePromise<SavedView> {
2846
3655
  return __request(OpenAPI, {
2847
3656
  method: 'GET',
@@ -2849,6 +3658,9 @@ export class CrmService {
2849
3658
  path: {
2850
3659
  'id': id,
2851
3660
  },
3661
+ query: {
3662
+ 'app': app,
3663
+ },
2852
3664
  errors: {
2853
3665
  403: `Missing required permission \`Ibl.CRM/Views/read\`.`,
2854
3666
  404: `View not found.`,
@@ -2864,12 +3676,17 @@ export class CrmService {
2864
3676
  public static crmViewsUpdate({
2865
3677
  id,
2866
3678
  requestBody,
3679
+ app = '',
2867
3680
  }: {
2868
3681
  /**
2869
3682
  * A unique integer value identifying this saved view.
2870
3683
  */
2871
3684
  id: number,
2872
3685
  requestBody: SavedView,
3686
+ /**
3687
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
3688
+ */
3689
+ app?: string,
2873
3690
  }): CancelablePromise<SavedView> {
2874
3691
  return __request(OpenAPI, {
2875
3692
  method: 'PUT',
@@ -2877,6 +3694,9 @@ export class CrmService {
2877
3694
  path: {
2878
3695
  'id': id,
2879
3696
  },
3697
+ query: {
3698
+ 'app': app,
3699
+ },
2880
3700
  body: requestBody,
2881
3701
  mediaType: 'application/json',
2882
3702
  errors: {
@@ -2894,12 +3714,17 @@ export class CrmService {
2894
3714
  */
2895
3715
  public static crmViewsPartialUpdate({
2896
3716
  id,
3717
+ app = '',
2897
3718
  requestBody,
2898
3719
  }: {
2899
3720
  /**
2900
3721
  * A unique integer value identifying this saved view.
2901
3722
  */
2902
3723
  id: number,
3724
+ /**
3725
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
3726
+ */
3727
+ app?: string,
2903
3728
  requestBody?: PatchedSavedView,
2904
3729
  }): CancelablePromise<SavedView> {
2905
3730
  return __request(OpenAPI, {
@@ -2908,6 +3733,9 @@ export class CrmService {
2908
3733
  path: {
2909
3734
  'id': id,
2910
3735
  },
3736
+ query: {
3737
+ 'app': app,
3738
+ },
2911
3739
  body: requestBody,
2912
3740
  mediaType: 'application/json',
2913
3741
  errors: {
@@ -2925,11 +3753,16 @@ export class CrmService {
2925
3753
  */
2926
3754
  public static crmViewsDestroy({
2927
3755
  id,
3756
+ app = '',
2928
3757
  }: {
2929
3758
  /**
2930
3759
  * A unique integer value identifying this saved view.
2931
3760
  */
2932
3761
  id: number,
3762
+ /**
3763
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
3764
+ */
3765
+ app?: string,
2933
3766
  }): CancelablePromise<void> {
2934
3767
  return __request(OpenAPI, {
2935
3768
  method: 'DELETE',
@@ -2937,10 +3770,290 @@ export class CrmService {
2937
3770
  path: {
2938
3771
  'id': id,
2939
3772
  },
3773
+ query: {
3774
+ 'app': app,
3775
+ },
2940
3776
  errors: {
2941
3777
  403: `Missing required permission \`Ibl.CRM/Views/delete\`.`,
2942
3778
  404: `View not found.`,
2943
3779
  },
2944
3780
  });
2945
3781
  }
3782
+ /**
3783
+ * List web forms
3784
+ * Your Platform's web forms, drafts included.
3785
+ *
3786
+ * **Required permission:** `Ibl.CRM/WebForms/list`.
3787
+ * @returns PaginatedWebFormList
3788
+ * @throws ApiError
3789
+ */
3790
+ public static crmWebFormsList({
3791
+ app = '',
3792
+ dateFilter,
3793
+ endDate,
3794
+ ordering,
3795
+ page,
3796
+ pageSize,
3797
+ search,
3798
+ startDate,
3799
+ }: {
3800
+ /**
3801
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
3802
+ */
3803
+ app?: string,
3804
+ /**
3805
+ * Only rows created in this window. `custom` needs `start_date` and `end_date`.
3806
+ */
3807
+ dateFilter?: 'today' | '7d' | '30d' | '90d' | 'all_time' | 'custom',
3808
+ /**
3809
+ * Last day of a custom window, inclusive (YYYY-MM-DD).
3810
+ */
3811
+ endDate?: string,
3812
+ /**
3813
+ * Which field to use when ordering the results.
3814
+ */
3815
+ ordering?: string,
3816
+ /**
3817
+ * A page number within the paginated result set.
3818
+ */
3819
+ page?: number,
3820
+ /**
3821
+ * Number of results to return per page.
3822
+ */
3823
+ pageSize?: number,
3824
+ /**
3825
+ * A search term.
3826
+ */
3827
+ search?: string,
3828
+ /**
3829
+ * First day of a custom window (YYYY-MM-DD).
3830
+ */
3831
+ startDate?: string,
3832
+ }): CancelablePromise<PaginatedWebFormList> {
3833
+ return __request(OpenAPI, {
3834
+ method: 'GET',
3835
+ url: '/api/crm/web-forms/',
3836
+ query: {
3837
+ 'app': app,
3838
+ 'date_filter': dateFilter,
3839
+ 'end_date': endDate,
3840
+ 'ordering': ordering,
3841
+ 'page': page,
3842
+ 'page_size': pageSize,
3843
+ 'search': search,
3844
+ 'start_date': startDate,
3845
+ },
3846
+ });
3847
+ }
3848
+ /**
3849
+ * Create a web form
3850
+ * `fields` and `routing` are stored with every key present. Publishing needs a field mapped to `person.primary_email` and one to `person.name` or `person.first_name`. A `routing.lead_source_code` no lead source has yet is created with the form, named after it.
3851
+ *
3852
+ * **Required permission:** `Ibl.CRM/WebForms/action`; a new `lead_source_code` also needs `Ibl.CRM/Pipelines/action`.
3853
+ * @returns WebForm
3854
+ * @throws ApiError
3855
+ */
3856
+ public static crmWebFormsCreate({
3857
+ requestBody,
3858
+ app = '',
3859
+ }: {
3860
+ requestBody: WebForm,
3861
+ /**
3862
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
3863
+ */
3864
+ app?: string,
3865
+ }): CancelablePromise<WebForm> {
3866
+ return __request(OpenAPI, {
3867
+ method: 'POST',
3868
+ url: '/api/crm/web-forms/',
3869
+ query: {
3870
+ 'app': app,
3871
+ },
3872
+ body: requestBody,
3873
+ mediaType: 'application/json',
3874
+ });
3875
+ }
3876
+ /**
3877
+ * Retrieve a web form
3878
+ * **Required permission:** `Ibl.CRM/WebForms/read`.
3879
+ * @returns WebForm
3880
+ * @throws ApiError
3881
+ */
3882
+ public static crmWebFormsRetrieve({
3883
+ slug,
3884
+ app = '',
3885
+ }: {
3886
+ slug: string,
3887
+ /**
3888
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
3889
+ */
3890
+ app?: string,
3891
+ }): CancelablePromise<WebForm> {
3892
+ return __request(OpenAPI, {
3893
+ method: 'GET',
3894
+ url: '/api/crm/web-forms/{slug}/',
3895
+ path: {
3896
+ 'slug': slug,
3897
+ },
3898
+ query: {
3899
+ 'app': app,
3900
+ },
3901
+ });
3902
+ }
3903
+ /**
3904
+ * Replace a web form
3905
+ * **Required permission:** `Ibl.CRM/WebForms/write`; a new `routing.lead_source_code` also needs `Ibl.CRM/Pipelines/action`.
3906
+ * @returns WebForm
3907
+ * @throws ApiError
3908
+ */
3909
+ public static crmWebFormsUpdate({
3910
+ slug,
3911
+ requestBody,
3912
+ app = '',
3913
+ }: {
3914
+ slug: string,
3915
+ requestBody: WebForm,
3916
+ /**
3917
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
3918
+ */
3919
+ app?: string,
3920
+ }): CancelablePromise<WebForm> {
3921
+ return __request(OpenAPI, {
3922
+ method: 'PUT',
3923
+ url: '/api/crm/web-forms/{slug}/',
3924
+ path: {
3925
+ 'slug': slug,
3926
+ },
3927
+ query: {
3928
+ 'app': app,
3929
+ },
3930
+ body: requestBody,
3931
+ mediaType: 'application/json',
3932
+ });
3933
+ }
3934
+ /**
3935
+ * Update a web form
3936
+ * `fields`, `routing` and `metadata` are replaced whole when sent. Publishing rules apply to the form as saved.
3937
+ *
3938
+ * **Required permission:** `Ibl.CRM/WebForms/write`; a new `routing.lead_source_code` also needs `Ibl.CRM/Pipelines/action`.
3939
+ * @returns WebForm
3940
+ * @throws ApiError
3941
+ */
3942
+ public static crmWebFormsPartialUpdate({
3943
+ slug,
3944
+ app = '',
3945
+ requestBody,
3946
+ }: {
3947
+ slug: string,
3948
+ /**
3949
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
3950
+ */
3951
+ app?: string,
3952
+ requestBody?: PatchedWebForm,
3953
+ }): CancelablePromise<WebForm> {
3954
+ return __request(OpenAPI, {
3955
+ method: 'PATCH',
3956
+ url: '/api/crm/web-forms/{slug}/',
3957
+ path: {
3958
+ 'slug': slug,
3959
+ },
3960
+ query: {
3961
+ 'app': app,
3962
+ },
3963
+ body: requestBody,
3964
+ mediaType: 'application/json',
3965
+ });
3966
+ }
3967
+ /**
3968
+ * Delete a web form
3969
+ * Deletes the form and its submissions log; the persons, deals and notes it filed stay.
3970
+ *
3971
+ * **Required permission:** `Ibl.CRM/WebForms/delete`.
3972
+ * @returns void
3973
+ * @throws ApiError
3974
+ */
3975
+ public static crmWebFormsDestroy({
3976
+ slug,
3977
+ app = '',
3978
+ }: {
3979
+ slug: string,
3980
+ /**
3981
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
3982
+ */
3983
+ app?: string,
3984
+ }): CancelablePromise<void> {
3985
+ return __request(OpenAPI, {
3986
+ method: 'DELETE',
3987
+ url: '/api/crm/web-forms/{slug}/',
3988
+ path: {
3989
+ 'slug': slug,
3990
+ },
3991
+ query: {
3992
+ 'app': app,
3993
+ },
3994
+ });
3995
+ }
3996
+ /**
3997
+ * A web form's submissions
3998
+ * Newest first, paginated; `date_filter` (or `start_date` + `end_date`) narrows to submissions in a window.
3999
+ *
4000
+ * **Required permission:** `Ibl.CRM/WebForms/list`.
4001
+ * @returns PaginatedWebFormSubmissionList
4002
+ * @throws ApiError
4003
+ */
4004
+ public static crmWebFormsSubmissionsList({
4005
+ slug,
4006
+ app = '',
4007
+ dateFilter,
4008
+ endDate,
4009
+ page,
4010
+ pageSize,
4011
+ startDate,
4012
+ }: {
4013
+ slug: string,
4014
+ /**
4015
+ * The app whose records these are: blank for the CRM, e.g. `recruit`.
4016
+ */
4017
+ app?: string,
4018
+ /**
4019
+ * Only rows created in this window. `custom` needs `start_date` and `end_date`.
4020
+ */
4021
+ dateFilter?: 'today' | '7d' | '30d' | '90d' | 'all_time' | 'custom',
4022
+ /**
4023
+ * Last day of a custom window, inclusive (YYYY-MM-DD).
4024
+ */
4025
+ endDate?: string,
4026
+ /**
4027
+ * A page number within the paginated result set.
4028
+ */
4029
+ page?: number,
4030
+ /**
4031
+ * Number of results to return per page.
4032
+ */
4033
+ pageSize?: number,
4034
+ /**
4035
+ * First day of a custom window (YYYY-MM-DD).
4036
+ */
4037
+ startDate?: string,
4038
+ }): CancelablePromise<PaginatedWebFormSubmissionList> {
4039
+ return __request(OpenAPI, {
4040
+ method: 'GET',
4041
+ url: '/api/crm/web-forms/{slug}/submissions/',
4042
+ path: {
4043
+ 'slug': slug,
4044
+ },
4045
+ query: {
4046
+ 'app': app,
4047
+ 'date_filter': dateFilter,
4048
+ 'end_date': endDate,
4049
+ 'page': page,
4050
+ 'page_size': pageSize,
4051
+ 'start_date': startDate,
4052
+ },
4053
+ errors: {
4054
+ 403: `Missing \`Ibl.CRM/WebForms/list\`.`,
4055
+ 404: `Web form not found.`,
4056
+ },
4057
+ });
4058
+ }
2946
4059
  }