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

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 +1878 -9
  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
package/dist/index.cjs.js CHANGED
@@ -110,7 +110,7 @@ class CancelablePromise {
110
110
 
111
111
  const OpenAPI = {
112
112
  BASE: 'https://base.manager.iblai.app',
113
- VERSION: '4.450.0-ai-plus',
113
+ VERSION: '4.452.0-ai-plus',
114
114
  WITH_CREDENTIALS: false,
115
115
  CREDENTIALS: 'include',
116
116
  TOKEN: undefined,
@@ -3479,6 +3479,32 @@ exports.TtsProviderEnum = void 0;
3479
3479
  TtsProviderEnum["AZURE_OPENAI"] = "azure_openai";
3480
3480
  })(exports.TtsProviderEnum || (exports.TtsProviderEnum = {}));
3481
3481
 
3482
+ /* generated using openapi-typescript-codegen -- do not edit */
3483
+ /* istanbul ignore file */
3484
+ /* tslint:disable */
3485
+ /* eslint-disable */
3486
+ /**
3487
+ * * `text` - text
3488
+ * * `email` - email
3489
+ * * `tel` - tel
3490
+ * * `number` - number
3491
+ * * `date` - date
3492
+ * * `select` - select
3493
+ * * `textarea` - textarea
3494
+ * * `checkbox` - checkbox
3495
+ */
3496
+ exports.Type240Enum = void 0;
3497
+ (function (Type240Enum) {
3498
+ Type240Enum["TEXT"] = "text";
3499
+ Type240Enum["EMAIL"] = "email";
3500
+ Type240Enum["TEL"] = "tel";
3501
+ Type240Enum["NUMBER"] = "number";
3502
+ Type240Enum["DATE"] = "date";
3503
+ Type240Enum["SELECT"] = "select";
3504
+ Type240Enum["TEXTAREA"] = "textarea";
3505
+ Type240Enum["CHECKBOX"] = "checkbox";
3506
+ })(exports.Type240Enum || (exports.Type240Enum = {}));
3507
+
3482
3508
  /* generated using openapi-typescript-codegen -- do not edit */
3483
3509
  /* istanbul ignore file */
3484
3510
  /* tslint:disable */
@@ -43911,6 +43937,7 @@ class CrmService {
43911
43937
  * @throws ApiError
43912
43938
  */
43913
43939
  static crmActivitiesList({
43940
+ app = '',
43914
43941
  dateFilter,
43915
43942
  deal,
43916
43943
  endDate,
@@ -43932,6 +43959,7 @@ class CrmService {
43932
43959
  method: 'GET',
43933
43960
  url: '/api/crm/activities/',
43934
43961
  query: {
43962
+ 'app': app,
43935
43963
  'date_filter': dateFilter,
43936
43964
  'deal': deal,
43937
43965
  'end_date': endDate,
@@ -43964,11 +43992,15 @@ class CrmService {
43964
43992
  * @throws ApiError
43965
43993
  */
43966
43994
  static crmActivitiesCreate({
43967
- requestBody
43995
+ requestBody,
43996
+ app = ''
43968
43997
  }) {
43969
43998
  return request(OpenAPI, {
43970
43999
  method: 'POST',
43971
44000
  url: '/api/crm/activities/',
44001
+ query: {
44002
+ 'app': app
44003
+ },
43972
44004
  body: requestBody,
43973
44005
  mediaType: 'application/json',
43974
44006
  errors: {
@@ -43986,7 +44018,8 @@ class CrmService {
43986
44018
  * @throws ApiError
43987
44019
  */
43988
44020
  static crmActivitiesRetrieve({
43989
- id
44021
+ id,
44022
+ app = ''
43990
44023
  }) {
43991
44024
  return request(OpenAPI, {
43992
44025
  method: 'GET',
@@ -43994,6 +44027,9 @@ class CrmService {
43994
44027
  path: {
43995
44028
  'id': id
43996
44029
  },
44030
+ query: {
44031
+ 'app': app
44032
+ },
43997
44033
  errors: {
43998
44034
  403: `Missing required permission \`Ibl.CRM/Activities/read\`.`,
43999
44035
  404: `Activity not found.`
@@ -44010,7 +44046,8 @@ class CrmService {
44010
44046
  */
44011
44047
  static crmActivitiesUpdate({
44012
44048
  id,
44013
- requestBody
44049
+ requestBody,
44050
+ app = ''
44014
44051
  }) {
44015
44052
  return request(OpenAPI, {
44016
44053
  method: 'PUT',
@@ -44018,6 +44055,9 @@ class CrmService {
44018
44055
  path: {
44019
44056
  'id': id
44020
44057
  },
44058
+ query: {
44059
+ 'app': app
44060
+ },
44021
44061
  body: requestBody,
44022
44062
  mediaType: 'application/json',
44023
44063
  errors: {
@@ -44037,6 +44077,7 @@ class CrmService {
44037
44077
  */
44038
44078
  static crmActivitiesPartialUpdate({
44039
44079
  id,
44080
+ app = '',
44040
44081
  requestBody
44041
44082
  }) {
44042
44083
  return request(OpenAPI, {
@@ -44045,6 +44086,9 @@ class CrmService {
44045
44086
  path: {
44046
44087
  'id': id
44047
44088
  },
44089
+ query: {
44090
+ 'app': app
44091
+ },
44048
44092
  body: requestBody,
44049
44093
  mediaType: 'application/json',
44050
44094
  errors: {
@@ -44063,7 +44107,8 @@ class CrmService {
44063
44107
  * @throws ApiError
44064
44108
  */
44065
44109
  static crmActivitiesDestroy({
44066
- id
44110
+ id,
44111
+ app = ''
44067
44112
  }) {
44068
44113
  return request(OpenAPI, {
44069
44114
  method: 'DELETE',
@@ -44071,6 +44116,9 @@ class CrmService {
44071
44116
  path: {
44072
44117
  'id': id
44073
44118
  },
44119
+ query: {
44120
+ 'app': app
44121
+ },
44074
44122
  errors: {
44075
44123
  403: `Missing required permission \`Ibl.CRM/Activities/delete\`.`,
44076
44124
  404: `Activity not found.`
@@ -44086,7 +44134,8 @@ class CrmService {
44086
44134
  * @throws ApiError
44087
44135
  */
44088
44136
  static crmActivitiesDoneCreate({
44089
- id
44137
+ id,
44138
+ app = ''
44090
44139
  }) {
44091
44140
  return request(OpenAPI, {
44092
44141
  method: 'POST',
@@ -44094,6 +44143,9 @@ class CrmService {
44094
44143
  path: {
44095
44144
  'id': id
44096
44145
  },
44146
+ query: {
44147
+ 'app': app
44148
+ },
44097
44149
  errors: {
44098
44150
  403: `Missing required permission \`Ibl.CRM/Activities/write\`.`,
44099
44151
  404: `Activity not found.`
@@ -44109,6 +44161,7 @@ class CrmService {
44109
44161
  * @throws ApiError
44110
44162
  */
44111
44163
  static crmDealsList({
44164
+ app = '',
44112
44165
  createdAtGte,
44113
44166
  createdAtLte,
44114
44167
  dateFilter,
@@ -44134,6 +44187,7 @@ class CrmService {
44134
44187
  method: 'GET',
44135
44188
  url: '/api/crm/deals/',
44136
44189
  query: {
44190
+ 'app': app,
44137
44191
  'created_at__gte': createdAtGte,
44138
44192
  'created_at__lte': createdAtLte,
44139
44193
  'date_filter': dateFilter,
@@ -44170,11 +44224,15 @@ class CrmService {
44170
44224
  * @throws ApiError
44171
44225
  */
44172
44226
  static crmDealsCreate({
44173
- requestBody
44227
+ requestBody,
44228
+ app = ''
44174
44229
  }) {
44175
44230
  return request(OpenAPI, {
44176
44231
  method: 'POST',
44177
44232
  url: '/api/crm/deals/',
44233
+ query: {
44234
+ 'app': app
44235
+ },
44178
44236
  body: requestBody,
44179
44237
  mediaType: 'application/json',
44180
44238
  errors: {
@@ -44192,7 +44250,8 @@ class CrmService {
44192
44250
  * @throws ApiError
44193
44251
  */
44194
44252
  static crmDealsRetrieve({
44195
- id
44253
+ id,
44254
+ app = ''
44196
44255
  }) {
44197
44256
  return request(OpenAPI, {
44198
44257
  method: 'GET',
@@ -44200,6 +44259,9 @@ class CrmService {
44200
44259
  path: {
44201
44260
  'id': id
44202
44261
  },
44262
+ query: {
44263
+ 'app': app
44264
+ },
44203
44265
  errors: {
44204
44266
  403: `Missing required permission \`Ibl.CRM/Deals/read\`.`,
44205
44267
  404: `Deal not found.`
@@ -44216,7 +44278,8 @@ class CrmService {
44216
44278
  */
44217
44279
  static crmDealsUpdate({
44218
44280
  id,
44219
- requestBody
44281
+ requestBody,
44282
+ app = ''
44220
44283
  }) {
44221
44284
  return request(OpenAPI, {
44222
44285
  method: 'PUT',
@@ -44224,6 +44287,9 @@ class CrmService {
44224
44287
  path: {
44225
44288
  'id': id
44226
44289
  },
44290
+ query: {
44291
+ 'app': app
44292
+ },
44227
44293
  body: requestBody,
44228
44294
  mediaType: 'application/json',
44229
44295
  errors: {
@@ -44243,6 +44309,7 @@ class CrmService {
44243
44309
  */
44244
44310
  static crmDealsPartialUpdate({
44245
44311
  id,
44312
+ app = '',
44246
44313
  requestBody
44247
44314
  }) {
44248
44315
  return request(OpenAPI, {
@@ -44251,6 +44318,9 @@ class CrmService {
44251
44318
  path: {
44252
44319
  'id': id
44253
44320
  },
44321
+ query: {
44322
+ 'app': app
44323
+ },
44254
44324
  body: requestBody,
44255
44325
  mediaType: 'application/json',
44256
44326
  errors: {
@@ -44269,7 +44339,8 @@ class CrmService {
44269
44339
  * @throws ApiError
44270
44340
  */
44271
44341
  static crmDealsDestroy({
44272
- id
44342
+ id,
44343
+ app = ''
44273
44344
  }) {
44274
44345
  return request(OpenAPI, {
44275
44346
  method: 'DELETE',
@@ -44277,6 +44348,9 @@ class CrmService {
44277
44348
  path: {
44278
44349
  'id': id
44279
44350
  },
44351
+ query: {
44352
+ 'app': app
44353
+ },
44280
44354
  errors: {
44281
44355
  403: `Missing required permission \`Ibl.CRM/Deals/delete\`.`,
44282
44356
  404: `Deal not found.`
@@ -44292,7 +44366,8 @@ class CrmService {
44292
44366
  * @throws ApiError
44293
44367
  */
44294
44368
  static crmDealsHistoryList({
44295
- id
44369
+ id,
44370
+ app = ''
44296
44371
  }) {
44297
44372
  return request(OpenAPI, {
44298
44373
  method: 'GET',
@@ -44300,6 +44375,9 @@ class CrmService {
44300
44375
  path: {
44301
44376
  'id': id
44302
44377
  },
44378
+ query: {
44379
+ 'app': app
44380
+ },
44303
44381
  errors: {
44304
44382
  403: `Missing the record's \`read\` permission.`,
44305
44383
  404: `Record not found.`
@@ -44316,7 +44394,8 @@ class CrmService {
44316
44394
  */
44317
44395
  static crmDealsLostCreate({
44318
44396
  id,
44319
- requestBody
44397
+ requestBody,
44398
+ app = ''
44320
44399
  }) {
44321
44400
  return request(OpenAPI, {
44322
44401
  method: 'POST',
@@ -44324,6 +44403,9 @@ class CrmService {
44324
44403
  path: {
44325
44404
  'id': id
44326
44405
  },
44406
+ query: {
44407
+ 'app': app
44408
+ },
44327
44409
  body: requestBody,
44328
44410
  mediaType: 'application/json',
44329
44411
  errors: {
@@ -44333,6 +44415,32 @@ class CrmService {
44333
44415
  }
44334
44416
  });
44335
44417
  }
44418
+ /**
44419
+ * Merge into this record's metadata
44420
+ * 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.
44421
+ *
44422
+ * **Required permission:** the record's `write` verb.
44423
+ * @returns Deal
44424
+ * @throws ApiError
44425
+ */
44426
+ static crmDealsMetadataPartialUpdate({
44427
+ id,
44428
+ app = '',
44429
+ requestBody
44430
+ }) {
44431
+ return request(OpenAPI, {
44432
+ method: 'PATCH',
44433
+ url: '/api/crm/deals/{id}/metadata/',
44434
+ path: {
44435
+ 'id': id
44436
+ },
44437
+ query: {
44438
+ 'app': app
44439
+ },
44440
+ body: requestBody,
44441
+ mediaType: 'application/json'
44442
+ });
44443
+ }
44336
44444
  /**
44337
44445
  * Move a deal to a different stage
44338
44446
  * 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.
@@ -44343,6 +44451,7 @@ class CrmService {
44343
44451
  */
44344
44452
  static crmDealsMoveStageCreate({
44345
44453
  id,
44454
+ app = '',
44346
44455
  requestBody
44347
44456
  }) {
44348
44457
  return request(OpenAPI, {
@@ -44351,6 +44460,9 @@ class CrmService {
44351
44460
  path: {
44352
44461
  'id': id
44353
44462
  },
44463
+ query: {
44464
+ 'app': app
44465
+ },
44354
44466
  body: requestBody,
44355
44467
  mediaType: 'application/json',
44356
44468
  errors: {
@@ -44370,7 +44482,8 @@ class CrmService {
44370
44482
  */
44371
44483
  static crmDealsTagsCreate({
44372
44484
  id,
44373
- requestBody
44485
+ requestBody,
44486
+ app = ''
44374
44487
  }) {
44375
44488
  return request(OpenAPI, {
44376
44489
  method: 'POST',
@@ -44378,6 +44491,9 @@ class CrmService {
44378
44491
  path: {
44379
44492
  'id': id
44380
44493
  },
44494
+ query: {
44495
+ 'app': app
44496
+ },
44381
44497
  body: requestBody,
44382
44498
  mediaType: 'application/json',
44383
44499
  errors: {
@@ -44398,7 +44514,8 @@ class CrmService {
44398
44514
  */
44399
44515
  static crmDealsTagsDestroy({
44400
44516
  id,
44401
- tagId
44517
+ tagId,
44518
+ app = ''
44402
44519
  }) {
44403
44520
  return request(OpenAPI, {
44404
44521
  method: 'DELETE',
@@ -44407,6 +44524,9 @@ class CrmService {
44407
44524
  'id': id,
44408
44525
  'tag_id': tagId
44409
44526
  },
44527
+ query: {
44528
+ 'app': app
44529
+ },
44410
44530
  errors: {
44411
44531
  403: `No response body`,
44412
44532
  404: `No response body`
@@ -44423,6 +44543,7 @@ class CrmService {
44423
44543
  */
44424
44544
  static crmDealsWonCreate({
44425
44545
  id,
44546
+ app = '',
44426
44547
  requestBody
44427
44548
  }) {
44428
44549
  return request(OpenAPI, {
@@ -44431,6 +44552,9 @@ class CrmService {
44431
44552
  path: {
44432
44553
  'id': id
44433
44554
  },
44555
+ query: {
44556
+ 'app': app
44557
+ },
44434
44558
  body: requestBody,
44435
44559
  mediaType: 'application/json',
44436
44560
  errors: {
@@ -44449,6 +44573,7 @@ class CrmService {
44449
44573
  * @throws ApiError
44450
44574
  */
44451
44575
  static crmDealsBoardRetrieve({
44576
+ app = '',
44452
44577
  createdAtGte,
44453
44578
  createdAtLte,
44454
44579
  dateFilter,
@@ -44472,6 +44597,7 @@ class CrmService {
44472
44597
  method: 'GET',
44473
44598
  url: '/api/crm/deals/board/',
44474
44599
  query: {
44600
+ 'app': app,
44475
44601
  'created_at__gte': createdAtGte,
44476
44602
  'created_at__lte': createdAtLte,
44477
44603
  'date_filter': dateFilter,
@@ -44507,6 +44633,7 @@ class CrmService {
44507
44633
  * @throws ApiError
44508
44634
  */
44509
44635
  static crmFavoritesList({
44636
+ app = '',
44510
44637
  dateFilter,
44511
44638
  deal,
44512
44639
  endDate,
@@ -44521,6 +44648,7 @@ class CrmService {
44521
44648
  method: 'GET',
44522
44649
  url: '/api/crm/favorites/',
44523
44650
  query: {
44651
+ 'app': app,
44524
44652
  'date_filter': dateFilter,
44525
44653
  'deal': deal,
44526
44654
  'end_date': endDate,
@@ -44546,11 +44674,15 @@ class CrmService {
44546
44674
  * @throws ApiError
44547
44675
  */
44548
44676
  static crmFavoritesCreate({
44677
+ app = '',
44549
44678
  requestBody
44550
44679
  }) {
44551
44680
  return request(OpenAPI, {
44552
44681
  method: 'POST',
44553
44682
  url: '/api/crm/favorites/',
44683
+ query: {
44684
+ 'app': app
44685
+ },
44554
44686
  body: requestBody,
44555
44687
  mediaType: 'application/json',
44556
44688
  errors: {
@@ -44566,7 +44698,8 @@ class CrmService {
44566
44698
  * @throws ApiError
44567
44699
  */
44568
44700
  static crmFavoritesRetrieve({
44569
- id
44701
+ id,
44702
+ app = ''
44570
44703
  }) {
44571
44704
  return request(OpenAPI, {
44572
44705
  method: 'GET',
@@ -44574,6 +44707,9 @@ class CrmService {
44574
44707
  path: {
44575
44708
  'id': id
44576
44709
  },
44710
+ query: {
44711
+ 'app': app
44712
+ },
44577
44713
  errors: {
44578
44714
  403: `Missing required permission \`Ibl.CRM/Favorites/read\`.`,
44579
44715
  404: `Favorite not found.`
@@ -44589,7 +44725,8 @@ class CrmService {
44589
44725
  * @throws ApiError
44590
44726
  */
44591
44727
  static crmFavoritesDestroy({
44592
- id
44728
+ id,
44729
+ app = ''
44593
44730
  }) {
44594
44731
  return request(OpenAPI, {
44595
44732
  method: 'DELETE',
@@ -44597,6 +44734,9 @@ class CrmService {
44597
44734
  path: {
44598
44735
  'id': id
44599
44736
  },
44737
+ query: {
44738
+ 'app': app
44739
+ },
44600
44740
  errors: {
44601
44741
  403: `Missing required permission \`Ibl.CRM/Favorites/delete\`.`,
44602
44742
  404: `Favorite not found.`
@@ -44612,6 +44752,7 @@ class CrmService {
44612
44752
  * @throws ApiError
44613
44753
  */
44614
44754
  static crmLeadSourcesList({
44755
+ app = '',
44615
44756
  code,
44616
44757
  dateFilter,
44617
44758
  endDate,
@@ -44626,6 +44767,7 @@ class CrmService {
44626
44767
  method: 'GET',
44627
44768
  url: '/api/crm/lead-sources/',
44628
44769
  query: {
44770
+ 'app': app,
44629
44771
  'code': code,
44630
44772
  'date_filter': dateFilter,
44631
44773
  'end_date': endDate,
@@ -44651,11 +44793,15 @@ class CrmService {
44651
44793
  * @throws ApiError
44652
44794
  */
44653
44795
  static crmLeadSourcesCreate({
44654
- requestBody
44796
+ requestBody,
44797
+ app = ''
44655
44798
  }) {
44656
44799
  return request(OpenAPI, {
44657
44800
  method: 'POST',
44658
44801
  url: '/api/crm/lead-sources/',
44802
+ query: {
44803
+ 'app': app
44804
+ },
44659
44805
  body: requestBody,
44660
44806
  mediaType: 'application/json',
44661
44807
  errors: {
@@ -44673,7 +44819,8 @@ class CrmService {
44673
44819
  * @throws ApiError
44674
44820
  */
44675
44821
  static crmLeadSourcesRetrieve({
44676
- id
44822
+ id,
44823
+ app = ''
44677
44824
  }) {
44678
44825
  return request(OpenAPI, {
44679
44826
  method: 'GET',
@@ -44681,6 +44828,9 @@ class CrmService {
44681
44828
  path: {
44682
44829
  'id': id
44683
44830
  },
44831
+ query: {
44832
+ 'app': app
44833
+ },
44684
44834
  errors: {
44685
44835
  403: `Missing required permission \`Ibl.CRM/Pipelines/read\`.`,
44686
44836
  404: `LeadSource not found.`
@@ -44697,7 +44847,8 @@ class CrmService {
44697
44847
  */
44698
44848
  static crmLeadSourcesUpdate({
44699
44849
  id,
44700
- requestBody
44850
+ requestBody,
44851
+ app = ''
44701
44852
  }) {
44702
44853
  return request(OpenAPI, {
44703
44854
  method: 'PUT',
@@ -44705,6 +44856,9 @@ class CrmService {
44705
44856
  path: {
44706
44857
  'id': id
44707
44858
  },
44859
+ query: {
44860
+ 'app': app
44861
+ },
44708
44862
  body: requestBody,
44709
44863
  mediaType: 'application/json',
44710
44864
  errors: {
@@ -44724,6 +44878,7 @@ class CrmService {
44724
44878
  */
44725
44879
  static crmLeadSourcesPartialUpdate({
44726
44880
  id,
44881
+ app = '',
44727
44882
  requestBody
44728
44883
  }) {
44729
44884
  return request(OpenAPI, {
@@ -44732,6 +44887,9 @@ class CrmService {
44732
44887
  path: {
44733
44888
  'id': id
44734
44889
  },
44890
+ query: {
44891
+ 'app': app
44892
+ },
44735
44893
  body: requestBody,
44736
44894
  mediaType: 'application/json',
44737
44895
  errors: {
@@ -44750,7 +44908,8 @@ class CrmService {
44750
44908
  * @throws ApiError
44751
44909
  */
44752
44910
  static crmLeadSourcesDestroy({
44753
- id
44911
+ id,
44912
+ app = ''
44754
44913
  }) {
44755
44914
  return request(OpenAPI, {
44756
44915
  method: 'DELETE',
@@ -44758,24 +44917,57 @@ class CrmService {
44758
44917
  path: {
44759
44918
  'id': id
44760
44919
  },
44920
+ query: {
44921
+ 'app': app
44922
+ },
44761
44923
  errors: {
44762
44924
  403: `Missing required permission \`Ibl.CRM/Pipelines/delete\`.`,
44763
44925
  404: `LeadSource not found.`
44764
44926
  }
44765
44927
  });
44766
44928
  }
44929
+ /**
44930
+ * List the Platform's members
44931
+ * 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`.
44932
+ *
44933
+ * **Required permission:** `list` on persons, organizations, deals or activities (any one).
44934
+ * @returns PaginatedMemberList
44935
+ * @throws ApiError
44936
+ */
44937
+ static crmMembersList({
44938
+ app = '',
44939
+ page,
44940
+ pageSize,
44941
+ query
44942
+ }) {
44943
+ return request(OpenAPI, {
44944
+ method: 'GET',
44945
+ url: '/api/crm/members/',
44946
+ query: {
44947
+ 'app': app,
44948
+ 'page': page,
44949
+ 'page_size': pageSize,
44950
+ 'query': query
44951
+ },
44952
+ errors: {
44953
+ 403: `No CRM list permission.`
44954
+ }
44955
+ });
44956
+ }
44767
44957
  /**
44768
44958
  * List organizations
44769
- * Returns a paginated list of organizations in your Platform. Supports filtering by `owner` and by `name` (case-insensitive substring match).
44959
+ * 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).
44770
44960
  *
44771
44961
  * **Required permission:** `Ibl.CRM/Organizations/list`.
44772
44962
  * @returns PaginatedOrganizationList
44773
44963
  * @throws ApiError
44774
44964
  */
44775
44965
  static crmOrganizationsList({
44966
+ app = '',
44776
44967
  dateFilter,
44777
44968
  endDate,
44778
44969
  name,
44970
+ nameIexact,
44779
44971
  ordering,
44780
44972
  owner,
44781
44973
  page,
@@ -44788,9 +44980,11 @@ class CrmService {
44788
44980
  method: 'GET',
44789
44981
  url: '/api/crm/organizations/',
44790
44982
  query: {
44983
+ 'app': app,
44791
44984
  'date_filter': dateFilter,
44792
44985
  'end_date': endDate,
44793
44986
  'name': name,
44987
+ 'name__iexact': nameIexact,
44794
44988
  'ordering': ordering,
44795
44989
  'owner': owner,
44796
44990
  'page': page,
@@ -44814,11 +45008,15 @@ class CrmService {
44814
45008
  * @throws ApiError
44815
45009
  */
44816
45010
  static crmOrganizationsCreate({
44817
- requestBody
45011
+ requestBody,
45012
+ app = ''
44818
45013
  }) {
44819
45014
  return request(OpenAPI, {
44820
45015
  method: 'POST',
44821
45016
  url: '/api/crm/organizations/',
45017
+ query: {
45018
+ 'app': app
45019
+ },
44822
45020
  body: requestBody,
44823
45021
  mediaType: 'application/json',
44824
45022
  errors: {
@@ -44836,7 +45034,8 @@ class CrmService {
44836
45034
  * @throws ApiError
44837
45035
  */
44838
45036
  static crmOrganizationsRetrieve({
44839
- id
45037
+ id,
45038
+ app = ''
44840
45039
  }) {
44841
45040
  return request(OpenAPI, {
44842
45041
  method: 'GET',
@@ -44844,6 +45043,9 @@ class CrmService {
44844
45043
  path: {
44845
45044
  'id': id
44846
45045
  },
45046
+ query: {
45047
+ 'app': app
45048
+ },
44847
45049
  errors: {
44848
45050
  403: `Missing required permission \`Ibl.CRM/Organizations/read\`.`,
44849
45051
  404: `Organization not found.`
@@ -44860,7 +45062,8 @@ class CrmService {
44860
45062
  */
44861
45063
  static crmOrganizationsUpdate({
44862
45064
  id,
44863
- requestBody
45065
+ requestBody,
45066
+ app = ''
44864
45067
  }) {
44865
45068
  return request(OpenAPI, {
44866
45069
  method: 'PUT',
@@ -44868,6 +45071,9 @@ class CrmService {
44868
45071
  path: {
44869
45072
  'id': id
44870
45073
  },
45074
+ query: {
45075
+ 'app': app
45076
+ },
44871
45077
  body: requestBody,
44872
45078
  mediaType: 'application/json',
44873
45079
  errors: {
@@ -44887,6 +45093,7 @@ class CrmService {
44887
45093
  */
44888
45094
  static crmOrganizationsPartialUpdate({
44889
45095
  id,
45096
+ app = '',
44890
45097
  requestBody
44891
45098
  }) {
44892
45099
  return request(OpenAPI, {
@@ -44895,6 +45102,9 @@ class CrmService {
44895
45102
  path: {
44896
45103
  'id': id
44897
45104
  },
45105
+ query: {
45106
+ 'app': app
45107
+ },
44898
45108
  body: requestBody,
44899
45109
  mediaType: 'application/json',
44900
45110
  errors: {
@@ -44913,7 +45123,8 @@ class CrmService {
44913
45123
  * @throws ApiError
44914
45124
  */
44915
45125
  static crmOrganizationsDestroy({
44916
- id
45126
+ id,
45127
+ app = ''
44917
45128
  }) {
44918
45129
  return request(OpenAPI, {
44919
45130
  method: 'DELETE',
@@ -44921,6 +45132,9 @@ class CrmService {
44921
45132
  path: {
44922
45133
  'id': id
44923
45134
  },
45135
+ query: {
45136
+ 'app': app
45137
+ },
44924
45138
  errors: {
44925
45139
  403: `Missing required permission \`Ibl.CRM/Organizations/delete\`.`,
44926
45140
  404: `Organization not found.`
@@ -44936,7 +45150,8 @@ class CrmService {
44936
45150
  * @throws ApiError
44937
45151
  */
44938
45152
  static crmOrganizationsHistoryList({
44939
- id
45153
+ id,
45154
+ app = ''
44940
45155
  }) {
44941
45156
  return request(OpenAPI, {
44942
45157
  method: 'GET',
@@ -44944,12 +45159,41 @@ class CrmService {
44944
45159
  path: {
44945
45160
  'id': id
44946
45161
  },
45162
+ query: {
45163
+ 'app': app
45164
+ },
44947
45165
  errors: {
44948
45166
  403: `Missing the record's \`read\` permission.`,
44949
45167
  404: `Record not found.`
44950
45168
  }
44951
45169
  });
44952
45170
  }
45171
+ /**
45172
+ * Merge into this record's metadata
45173
+ * 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.
45174
+ *
45175
+ * **Required permission:** the record's `write` verb.
45176
+ * @returns Organization
45177
+ * @throws ApiError
45178
+ */
45179
+ static crmOrganizationsMetadataPartialUpdate({
45180
+ id,
45181
+ app = '',
45182
+ requestBody
45183
+ }) {
45184
+ return request(OpenAPI, {
45185
+ method: 'PATCH',
45186
+ url: '/api/crm/organizations/{id}/metadata/',
45187
+ path: {
45188
+ 'id': id
45189
+ },
45190
+ query: {
45191
+ 'app': app
45192
+ },
45193
+ body: requestBody,
45194
+ mediaType: 'application/json'
45195
+ });
45196
+ }
44953
45197
  /**
44954
45198
  * Attach a tag to this record
44955
45199
  * 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.
@@ -44960,7 +45204,8 @@ class CrmService {
44960
45204
  */
44961
45205
  static crmOrganizationsTagsCreate({
44962
45206
  id,
44963
- requestBody
45207
+ requestBody,
45208
+ app = ''
44964
45209
  }) {
44965
45210
  return request(OpenAPI, {
44966
45211
  method: 'POST',
@@ -44968,6 +45213,9 @@ class CrmService {
44968
45213
  path: {
44969
45214
  'id': id
44970
45215
  },
45216
+ query: {
45217
+ 'app': app
45218
+ },
44971
45219
  body: requestBody,
44972
45220
  mediaType: 'application/json',
44973
45221
  errors: {
@@ -44988,7 +45236,8 @@ class CrmService {
44988
45236
  */
44989
45237
  static crmOrganizationsTagsDestroy({
44990
45238
  id,
44991
- tagId
45239
+ tagId,
45240
+ app = ''
44992
45241
  }) {
44993
45242
  return request(OpenAPI, {
44994
45243
  method: 'DELETE',
@@ -44997,12 +45246,74 @@ class CrmService {
44997
45246
  'id': id,
44998
45247
  'tag_id': tagId
44999
45248
  },
45249
+ query: {
45250
+ 'app': app
45251
+ },
45000
45252
  errors: {
45001
45253
  403: `No response body`,
45002
45254
  404: `No response body`
45003
45255
  }
45004
45256
  });
45005
45257
  }
45258
+ /**
45259
+ * A published web form (public)
45260
+ * 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.
45261
+ * @returns WebFormPublic
45262
+ * @throws ApiError
45263
+ */
45264
+ static crmOrgsWebFormsRetrieve({
45265
+ org,
45266
+ slug,
45267
+ app = ''
45268
+ }) {
45269
+ return request(OpenAPI, {
45270
+ method: 'GET',
45271
+ url: '/api/crm/orgs/{org}/web-forms/{slug}/',
45272
+ path: {
45273
+ 'org': org,
45274
+ 'slug': slug
45275
+ },
45276
+ query: {
45277
+ 'app': app
45278
+ },
45279
+ errors: {
45280
+ 404: `No published form here.`
45281
+ }
45282
+ });
45283
+ }
45284
+ /**
45285
+ * Submit a published web form (public)
45286
+ * 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).
45287
+ * @returns WebFormSubmitResponse
45288
+ * @throws ApiError
45289
+ */
45290
+ static crmOrgsWebFormsSubmissionsCreate({
45291
+ org,
45292
+ slug,
45293
+ requestBody,
45294
+ app = ''
45295
+ }) {
45296
+ return request(OpenAPI, {
45297
+ method: 'POST',
45298
+ url: '/api/crm/orgs/{org}/web-forms/{slug}/submissions/',
45299
+ path: {
45300
+ 'org': org,
45301
+ 'slug': slug
45302
+ },
45303
+ query: {
45304
+ 'app': app
45305
+ },
45306
+ body: requestBody,
45307
+ mediaType: 'application/json',
45308
+ errors: {
45309
+ 400: `\`{issues: {<field key>|non_field_errors: [message]}}\`.`,
45310
+ 404: `No published form here.`,
45311
+ 413: `Body over 64 KB.`,
45312
+ 415: `Not JSON.`,
45313
+ 429: `Too many submissions from this IP.`
45314
+ }
45315
+ });
45316
+ }
45006
45317
  /**
45007
45318
  * CRM overview
45008
45319
  * 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.
@@ -45014,6 +45325,7 @@ class CrmService {
45014
45325
  * @throws ApiError
45015
45326
  */
45016
45327
  static crmOverviewRetrieve({
45328
+ app = '',
45017
45329
  dateFilter,
45018
45330
  endDate,
45019
45331
  pipeline,
@@ -45023,6 +45335,7 @@ class CrmService {
45023
45335
  method: 'GET',
45024
45336
  url: '/api/crm/overview/',
45025
45337
  query: {
45338
+ 'app': app,
45026
45339
  'date_filter': dateFilter,
45027
45340
  'end_date': endDate,
45028
45341
  'pipeline': pipeline,
@@ -45037,7 +45350,7 @@ class CrmService {
45037
45350
  }
45038
45351
  /**
45039
45352
  * List persons
45040
- * 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`.
45353
+ * 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`.
45041
45354
  *
45042
45355
  * **Required permission:** `Ibl.CRM/Persons/list`.
45043
45356
  * @returns PaginatedPersonList
@@ -45045,6 +45358,7 @@ class CrmService {
45045
45358
  */
45046
45359
  static crmPersonsList({
45047
45360
  active,
45361
+ app = '',
45048
45362
  createdAtGte,
45049
45363
  createdAtLte,
45050
45364
  dateFilter,
@@ -45056,6 +45370,7 @@ class CrmService {
45056
45370
  owner,
45057
45371
  page,
45058
45372
  pageSize,
45373
+ primaryEmail,
45059
45374
  search,
45060
45375
  startDate,
45061
45376
  tags
@@ -45065,6 +45380,7 @@ class CrmService {
45065
45380
  url: '/api/crm/persons/',
45066
45381
  query: {
45067
45382
  'active': active,
45383
+ 'app': app,
45068
45384
  'created_at__gte': createdAtGte,
45069
45385
  'created_at__lte': createdAtLte,
45070
45386
  'date_filter': dateFilter,
@@ -45076,6 +45392,7 @@ class CrmService {
45076
45392
  'owner': owner,
45077
45393
  'page': page,
45078
45394
  'page_size': pageSize,
45395
+ 'primary_email': primaryEmail,
45079
45396
  'search': search,
45080
45397
  'start_date': startDate,
45081
45398
  'tags': tags
@@ -45095,11 +45412,15 @@ class CrmService {
45095
45412
  * @throws ApiError
45096
45413
  */
45097
45414
  static crmPersonsCreate({
45098
- requestBody
45415
+ requestBody,
45416
+ app = ''
45099
45417
  }) {
45100
45418
  return request(OpenAPI, {
45101
45419
  method: 'POST',
45102
45420
  url: '/api/crm/persons/',
45421
+ query: {
45422
+ 'app': app
45423
+ },
45103
45424
  body: requestBody,
45104
45425
  mediaType: 'application/json',
45105
45426
  errors: {
@@ -45117,7 +45438,8 @@ class CrmService {
45117
45438
  * @throws ApiError
45118
45439
  */
45119
45440
  static crmPersonsRetrieve({
45120
- id
45441
+ id,
45442
+ app = ''
45121
45443
  }) {
45122
45444
  return request(OpenAPI, {
45123
45445
  method: 'GET',
@@ -45125,6 +45447,9 @@ class CrmService {
45125
45447
  path: {
45126
45448
  'id': id
45127
45449
  },
45450
+ query: {
45451
+ 'app': app
45452
+ },
45128
45453
  errors: {
45129
45454
  403: `Missing required permission \`Ibl.CRM/Persons/read\`.`,
45130
45455
  404: `Person not found.`
@@ -45141,7 +45466,8 @@ class CrmService {
45141
45466
  */
45142
45467
  static crmPersonsUpdate({
45143
45468
  id,
45144
- requestBody
45469
+ requestBody,
45470
+ app = ''
45145
45471
  }) {
45146
45472
  return request(OpenAPI, {
45147
45473
  method: 'PUT',
@@ -45149,6 +45475,9 @@ class CrmService {
45149
45475
  path: {
45150
45476
  'id': id
45151
45477
  },
45478
+ query: {
45479
+ 'app': app
45480
+ },
45152
45481
  body: requestBody,
45153
45482
  mediaType: 'application/json',
45154
45483
  errors: {
@@ -45168,6 +45497,7 @@ class CrmService {
45168
45497
  */
45169
45498
  static crmPersonsPartialUpdate({
45170
45499
  id,
45500
+ app = '',
45171
45501
  requestBody
45172
45502
  }) {
45173
45503
  return request(OpenAPI, {
@@ -45176,6 +45506,9 @@ class CrmService {
45176
45506
  path: {
45177
45507
  'id': id
45178
45508
  },
45509
+ query: {
45510
+ 'app': app
45511
+ },
45179
45512
  body: requestBody,
45180
45513
  mediaType: 'application/json',
45181
45514
  errors: {
@@ -45194,7 +45527,8 @@ class CrmService {
45194
45527
  * @throws ApiError
45195
45528
  */
45196
45529
  static crmPersonsDestroy({
45197
- id
45530
+ id,
45531
+ app = ''
45198
45532
  }) {
45199
45533
  return request(OpenAPI, {
45200
45534
  method: 'DELETE',
@@ -45202,6 +45536,9 @@ class CrmService {
45202
45536
  path: {
45203
45537
  'id': id
45204
45538
  },
45539
+ query: {
45540
+ 'app': app
45541
+ },
45205
45542
  errors: {
45206
45543
  403: `Missing required permission \`Ibl.CRM/Persons/delete\`.`,
45207
45544
  404: `Person not found.`,
@@ -45218,7 +45555,8 @@ class CrmService {
45218
45555
  * @throws ApiError
45219
45556
  */
45220
45557
  static crmPersonsHistoryList({
45221
- id
45558
+ id,
45559
+ app = ''
45222
45560
  }) {
45223
45561
  return request(OpenAPI, {
45224
45562
  method: 'GET',
@@ -45226,6 +45564,9 @@ class CrmService {
45226
45564
  path: {
45227
45565
  'id': id
45228
45566
  },
45567
+ query: {
45568
+ 'app': app
45569
+ },
45229
45570
  errors: {
45230
45571
  403: `Missing the record's \`read\` permission.`,
45231
45572
  404: `Record not found.`
@@ -45238,12 +45579,13 @@ class CrmService {
45238
45579
  *
45239
45580
  * 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.
45240
45581
  *
45241
- * **Required permission:** `Ibl.CRM/Invite/action`.
45582
+ * **Required permission:** `Ibl.CRM/Invite/action`; `is_admin` or `is_staff` also needs `Ibl.Catalog/PlatformInvitations/action`.
45242
45583
  * @returns PersonInviteResponse
45243
45584
  * @throws ApiError
45244
45585
  */
45245
45586
  static crmPersonsInviteCreate({
45246
45587
  id,
45588
+ app = '',
45247
45589
  requestBody
45248
45590
  }) {
45249
45591
  return request(OpenAPI, {
@@ -45252,11 +45594,14 @@ class CrmService {
45252
45594
  path: {
45253
45595
  'id': id
45254
45596
  },
45597
+ query: {
45598
+ 'app': app
45599
+ },
45255
45600
  body: requestBody,
45256
45601
  mediaType: 'application/json',
45257
45602
  errors: {
45258
45603
  400: `Person has no \`primary_email\`; cannot invite.`,
45259
- 403: `Missing required permission \`Ibl.CRM/Invite/action\`.`,
45604
+ 403: `Missing \`Ibl.CRM/Invite/action\`, or \`Ibl.Catalog/PlatformInvitations/action\` for \`is_admin\` / \`is_staff\`; an API key never grants them.`,
45260
45605
  404: `Person not found.`,
45261
45606
  422: `Person is already linked to a platform user.`
45262
45607
  }
@@ -45274,7 +45619,8 @@ class CrmService {
45274
45619
  */
45275
45620
  static crmPersonsLinkUserCreate({
45276
45621
  id,
45277
- requestBody
45622
+ requestBody,
45623
+ app = ''
45278
45624
  }) {
45279
45625
  return request(OpenAPI, {
45280
45626
  method: 'POST',
@@ -45282,6 +45628,9 @@ class CrmService {
45282
45628
  path: {
45283
45629
  'id': id
45284
45630
  },
45631
+ query: {
45632
+ 'app': app
45633
+ },
45285
45634
  body: requestBody,
45286
45635
  mediaType: 'application/json',
45287
45636
  errors: {
@@ -45291,6 +45640,32 @@ class CrmService {
45291
45640
  }
45292
45641
  });
45293
45642
  }
45643
+ /**
45644
+ * Merge into this record's metadata
45645
+ * 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.
45646
+ *
45647
+ * **Required permission:** the record's `write` verb.
45648
+ * @returns Person
45649
+ * @throws ApiError
45650
+ */
45651
+ static crmPersonsMetadataPartialUpdate({
45652
+ id,
45653
+ app = '',
45654
+ requestBody
45655
+ }) {
45656
+ return request(OpenAPI, {
45657
+ method: 'PATCH',
45658
+ url: '/api/crm/persons/{id}/metadata/',
45659
+ path: {
45660
+ 'id': id
45661
+ },
45662
+ query: {
45663
+ 'app': app
45664
+ },
45665
+ body: requestBody,
45666
+ mediaType: 'application/json'
45667
+ });
45668
+ }
45294
45669
  /**
45295
45670
  * Attach a tag to this record
45296
45671
  * 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.
@@ -45301,7 +45676,8 @@ class CrmService {
45301
45676
  */
45302
45677
  static crmPersonsTagsCreate({
45303
45678
  id,
45304
- requestBody
45679
+ requestBody,
45680
+ app = ''
45305
45681
  }) {
45306
45682
  return request(OpenAPI, {
45307
45683
  method: 'POST',
@@ -45309,6 +45685,9 @@ class CrmService {
45309
45685
  path: {
45310
45686
  'id': id
45311
45687
  },
45688
+ query: {
45689
+ 'app': app
45690
+ },
45312
45691
  body: requestBody,
45313
45692
  mediaType: 'application/json',
45314
45693
  errors: {
@@ -45329,7 +45708,8 @@ class CrmService {
45329
45708
  */
45330
45709
  static crmPersonsTagsDestroy({
45331
45710
  id,
45332
- tagId
45711
+ tagId,
45712
+ app = ''
45333
45713
  }) {
45334
45714
  return request(OpenAPI, {
45335
45715
  method: 'DELETE',
@@ -45338,6 +45718,9 @@ class CrmService {
45338
45718
  'id': id,
45339
45719
  'tag_id': tagId
45340
45720
  },
45721
+ query: {
45722
+ 'app': app
45723
+ },
45341
45724
  errors: {
45342
45725
  403: `No response body`,
45343
45726
  404: `No response body`
@@ -45346,7 +45729,7 @@ class CrmService {
45346
45729
  }
45347
45730
  /**
45348
45731
  * Merge duplicate persons into a primary
45349
- * Marks each person in `duplicate_ids` as inactive and reports how many related records (deals, activities, tags) were re-parented onto `primary_id`.
45732
+ * 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`.
45350
45733
  *
45351
45734
  * All ids — both the primary and every duplicate — must belong to your Platform. `primary_id` may not appear in `duplicate_ids`.
45352
45735
  *
@@ -45355,15 +45738,19 @@ class CrmService {
45355
45738
  * @throws ApiError
45356
45739
  */
45357
45740
  static crmPersonsMergeCreate({
45358
- requestBody
45741
+ requestBody,
45742
+ app = ''
45359
45743
  }) {
45360
45744
  return request(OpenAPI, {
45361
45745
  method: 'POST',
45362
45746
  url: '/api/crm/persons/merge/',
45747
+ query: {
45748
+ 'app': app
45749
+ },
45363
45750
  body: requestBody,
45364
45751
  mediaType: 'application/json',
45365
45752
  errors: {
45366
- 400: `Validation error: the primary appears in duplicates, or one or more ids belong to another Platform.`,
45753
+ 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.`,
45367
45754
  403: `Missing required permission \`Ibl.CRM/Persons/write\`.`,
45368
45755
  404: `Primary person not found.`
45369
45756
  }
@@ -45378,6 +45765,7 @@ class CrmService {
45378
45765
  * @throws ApiError
45379
45766
  */
45380
45767
  static crmPipelinesList({
45768
+ app = '',
45381
45769
  code,
45382
45770
  dateFilter,
45383
45771
  endDate,
@@ -45393,6 +45781,7 @@ class CrmService {
45393
45781
  method: 'GET',
45394
45782
  url: '/api/crm/pipelines/',
45395
45783
  query: {
45784
+ 'app': app,
45396
45785
  'code': code,
45397
45786
  'date_filter': dateFilter,
45398
45787
  'end_date': endDate,
@@ -45419,11 +45808,15 @@ class CrmService {
45419
45808
  * @throws ApiError
45420
45809
  */
45421
45810
  static crmPipelinesCreate({
45422
- requestBody
45811
+ requestBody,
45812
+ app = ''
45423
45813
  }) {
45424
45814
  return request(OpenAPI, {
45425
45815
  method: 'POST',
45426
45816
  url: '/api/crm/pipelines/',
45817
+ query: {
45818
+ 'app': app
45819
+ },
45427
45820
  body: requestBody,
45428
45821
  mediaType: 'application/json',
45429
45822
  errors: {
@@ -45442,6 +45835,7 @@ class CrmService {
45442
45835
  */
45443
45836
  static crmPipelinesStagesList({
45444
45837
  pipelinePk,
45838
+ app = '',
45445
45839
  code,
45446
45840
  dateFilter,
45447
45841
  endDate,
@@ -45460,6 +45854,7 @@ class CrmService {
45460
45854
  'pipeline_pk': pipelinePk
45461
45855
  },
45462
45856
  query: {
45857
+ 'app': app,
45463
45858
  'code': code,
45464
45859
  'date_filter': dateFilter,
45465
45860
  'end_date': endDate,
@@ -45487,7 +45882,8 @@ class CrmService {
45487
45882
  */
45488
45883
  static crmPipelinesStagesCreate({
45489
45884
  pipelinePk,
45490
- requestBody
45885
+ requestBody,
45886
+ app = ''
45491
45887
  }) {
45492
45888
  return request(OpenAPI, {
45493
45889
  method: 'POST',
@@ -45495,6 +45891,9 @@ class CrmService {
45495
45891
  path: {
45496
45892
  'pipeline_pk': pipelinePk
45497
45893
  },
45894
+ query: {
45895
+ 'app': app
45896
+ },
45498
45897
  body: requestBody,
45499
45898
  mediaType: 'application/json',
45500
45899
  errors: {
@@ -45514,7 +45913,8 @@ class CrmService {
45514
45913
  */
45515
45914
  static crmPipelinesStagesRetrieve({
45516
45915
  id,
45517
- pipelinePk
45916
+ pipelinePk,
45917
+ app = ''
45518
45918
  }) {
45519
45919
  return request(OpenAPI, {
45520
45920
  method: 'GET',
@@ -45523,6 +45923,9 @@ class CrmService {
45523
45923
  'id': id,
45524
45924
  'pipeline_pk': pipelinePk
45525
45925
  },
45926
+ query: {
45927
+ 'app': app
45928
+ },
45526
45929
  errors: {
45527
45930
  403: `Missing required permission \`Ibl.CRM/Pipelines/read\`.`,
45528
45931
  404: `Stage not found in this Pipeline.`
@@ -45540,7 +45943,8 @@ class CrmService {
45540
45943
  static crmPipelinesStagesUpdate({
45541
45944
  id,
45542
45945
  pipelinePk,
45543
- requestBody
45946
+ requestBody,
45947
+ app = ''
45544
45948
  }) {
45545
45949
  return request(OpenAPI, {
45546
45950
  method: 'PUT',
@@ -45549,6 +45953,9 @@ class CrmService {
45549
45953
  'id': id,
45550
45954
  'pipeline_pk': pipelinePk
45551
45955
  },
45956
+ query: {
45957
+ 'app': app
45958
+ },
45552
45959
  body: requestBody,
45553
45960
  mediaType: 'application/json',
45554
45961
  errors: {
@@ -45569,6 +45976,7 @@ class CrmService {
45569
45976
  static crmPipelinesStagesPartialUpdate({
45570
45977
  id,
45571
45978
  pipelinePk,
45979
+ app = '',
45572
45980
  requestBody
45573
45981
  }) {
45574
45982
  return request(OpenAPI, {
@@ -45578,6 +45986,9 @@ class CrmService {
45578
45986
  'id': id,
45579
45987
  'pipeline_pk': pipelinePk
45580
45988
  },
45989
+ query: {
45990
+ 'app': app
45991
+ },
45581
45992
  body: requestBody,
45582
45993
  mediaType: 'application/json',
45583
45994
  errors: {
@@ -45597,7 +46008,8 @@ class CrmService {
45597
46008
  */
45598
46009
  static crmPipelinesStagesDestroy({
45599
46010
  id,
45600
- pipelinePk
46011
+ pipelinePk,
46012
+ app = ''
45601
46013
  }) {
45602
46014
  return request(OpenAPI, {
45603
46015
  method: 'DELETE',
@@ -45606,6 +46018,9 @@ class CrmService {
45606
46018
  'id': id,
45607
46019
  'pipeline_pk': pipelinePk
45608
46020
  },
46021
+ query: {
46022
+ 'app': app
46023
+ },
45609
46024
  errors: {
45610
46025
  403: `Missing required permission \`Ibl.CRM/Pipelines/delete\`.`,
45611
46026
  404: `Stage not found in this Pipeline.`,
@@ -45622,7 +46037,8 @@ class CrmService {
45622
46037
  * @throws ApiError
45623
46038
  */
45624
46039
  static crmPipelinesRetrieve({
45625
- id
46040
+ id,
46041
+ app = ''
45626
46042
  }) {
45627
46043
  return request(OpenAPI, {
45628
46044
  method: 'GET',
@@ -45630,6 +46046,9 @@ class CrmService {
45630
46046
  path: {
45631
46047
  'id': id
45632
46048
  },
46049
+ query: {
46050
+ 'app': app
46051
+ },
45633
46052
  errors: {
45634
46053
  403: `Missing required permission \`Ibl.CRM/Pipelines/read\`.`,
45635
46054
  404: `Pipeline not found.`
@@ -45646,7 +46065,8 @@ class CrmService {
45646
46065
  */
45647
46066
  static crmPipelinesUpdate({
45648
46067
  id,
45649
- requestBody
46068
+ requestBody,
46069
+ app = ''
45650
46070
  }) {
45651
46071
  return request(OpenAPI, {
45652
46072
  method: 'PUT',
@@ -45654,6 +46074,9 @@ class CrmService {
45654
46074
  path: {
45655
46075
  'id': id
45656
46076
  },
46077
+ query: {
46078
+ 'app': app
46079
+ },
45657
46080
  body: requestBody,
45658
46081
  mediaType: 'application/json',
45659
46082
  errors: {
@@ -45673,6 +46096,7 @@ class CrmService {
45673
46096
  */
45674
46097
  static crmPipelinesPartialUpdate({
45675
46098
  id,
46099
+ app = '',
45676
46100
  requestBody
45677
46101
  }) {
45678
46102
  return request(OpenAPI, {
@@ -45681,6 +46105,9 @@ class CrmService {
45681
46105
  path: {
45682
46106
  'id': id
45683
46107
  },
46108
+ query: {
46109
+ 'app': app
46110
+ },
45684
46111
  body: requestBody,
45685
46112
  mediaType: 'application/json',
45686
46113
  errors: {
@@ -45699,7 +46126,8 @@ class CrmService {
45699
46126
  * @throws ApiError
45700
46127
  */
45701
46128
  static crmPipelinesDestroy({
45702
- id
46129
+ id,
46130
+ app = ''
45703
46131
  }) {
45704
46132
  return request(OpenAPI, {
45705
46133
  method: 'DELETE',
@@ -45707,6 +46135,9 @@ class CrmService {
45707
46135
  path: {
45708
46136
  'id': id
45709
46137
  },
46138
+ query: {
46139
+ 'app': app
46140
+ },
45710
46141
  errors: {
45711
46142
  403: `Missing required permission \`Ibl.CRM/Pipelines/delete\`.`,
45712
46143
  404: `Pipeline not found.`,
@@ -45724,7 +46155,8 @@ class CrmService {
45724
46155
  */
45725
46156
  static crmPipelinesStagesReorderCreate({
45726
46157
  id,
45727
- requestBody
46158
+ requestBody,
46159
+ app = ''
45728
46160
  }) {
45729
46161
  return request(OpenAPI, {
45730
46162
  method: 'POST',
@@ -45732,6 +46164,9 @@ class CrmService {
45732
46164
  path: {
45733
46165
  'id': id
45734
46166
  },
46167
+ query: {
46168
+ 'app': app
46169
+ },
45735
46170
  body: requestBody,
45736
46171
  mediaType: 'application/json',
45737
46172
  errors: {
@@ -45751,12 +46186,14 @@ class CrmService {
45751
46186
  */
45752
46187
  static crmSearchRetrieve({
45753
46188
  q,
46189
+ app = '',
45754
46190
  limit
45755
46191
  }) {
45756
46192
  return request(OpenAPI, {
45757
46193
  method: 'GET',
45758
46194
  url: '/api/crm/search/',
45759
46195
  query: {
46196
+ 'app': app,
45760
46197
  'limit': limit,
45761
46198
  'q': q
45762
46199
  },
@@ -45768,18 +46205,20 @@ class CrmService {
45768
46205
  }
45769
46206
  /**
45770
46207
  * List tags
45771
- * 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.
46208
+ * 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.
45772
46209
  *
45773
46210
  * **Required permission:** `Ibl.CRM/Tags/list`.
45774
46211
  * @returns PaginatedTagList
45775
46212
  * @throws ApiError
45776
46213
  */
45777
46214
  static crmTagsList({
46215
+ app = '',
45778
46216
  createdAtGte,
45779
46217
  createdAtLte,
45780
46218
  dateFilter,
45781
46219
  endDate,
45782
46220
  name,
46221
+ nameIexact,
45783
46222
  ordering,
45784
46223
  page,
45785
46224
  pageSize,
@@ -45790,11 +46229,13 @@ class CrmService {
45790
46229
  method: 'GET',
45791
46230
  url: '/api/crm/tags/',
45792
46231
  query: {
46232
+ 'app': app,
45793
46233
  'created_at__gte': createdAtGte,
45794
46234
  'created_at__lte': createdAtLte,
45795
46235
  'date_filter': dateFilter,
45796
46236
  'end_date': endDate,
45797
46237
  'name': name,
46238
+ 'name__iexact': nameIexact,
45798
46239
  'ordering': ordering,
45799
46240
  'page': page,
45800
46241
  'page_size': pageSize,
@@ -45816,11 +46257,15 @@ class CrmService {
45816
46257
  * @throws ApiError
45817
46258
  */
45818
46259
  static crmTagsCreate({
45819
- requestBody
46260
+ requestBody,
46261
+ app = ''
45820
46262
  }) {
45821
46263
  return request(OpenAPI, {
45822
46264
  method: 'POST',
45823
46265
  url: '/api/crm/tags/',
46266
+ query: {
46267
+ 'app': app
46268
+ },
45824
46269
  body: requestBody,
45825
46270
  mediaType: 'application/json',
45826
46271
  errors: {
@@ -45838,7 +46283,8 @@ class CrmService {
45838
46283
  * @throws ApiError
45839
46284
  */
45840
46285
  static crmTagsRetrieve({
45841
- id
46286
+ id,
46287
+ app = ''
45842
46288
  }) {
45843
46289
  return request(OpenAPI, {
45844
46290
  method: 'GET',
@@ -45846,6 +46292,9 @@ class CrmService {
45846
46292
  path: {
45847
46293
  'id': id
45848
46294
  },
46295
+ query: {
46296
+ 'app': app
46297
+ },
45849
46298
  errors: {
45850
46299
  403: `Missing required permission \`Ibl.CRM/Tags/read\`.`,
45851
46300
  404: `Tag not found.`
@@ -45862,7 +46311,8 @@ class CrmService {
45862
46311
  */
45863
46312
  static crmTagsUpdate({
45864
46313
  id,
45865
- requestBody
46314
+ requestBody,
46315
+ app = ''
45866
46316
  }) {
45867
46317
  return request(OpenAPI, {
45868
46318
  method: 'PUT',
@@ -45870,6 +46320,9 @@ class CrmService {
45870
46320
  path: {
45871
46321
  'id': id
45872
46322
  },
46323
+ query: {
46324
+ 'app': app
46325
+ },
45873
46326
  body: requestBody,
45874
46327
  mediaType: 'application/json',
45875
46328
  errors: {
@@ -45889,6 +46342,7 @@ class CrmService {
45889
46342
  */
45890
46343
  static crmTagsPartialUpdate({
45891
46344
  id,
46345
+ app = '',
45892
46346
  requestBody
45893
46347
  }) {
45894
46348
  return request(OpenAPI, {
@@ -45897,6 +46351,9 @@ class CrmService {
45897
46351
  path: {
45898
46352
  'id': id
45899
46353
  },
46354
+ query: {
46355
+ 'app': app
46356
+ },
45900
46357
  body: requestBody,
45901
46358
  mediaType: 'application/json',
45902
46359
  errors: {
@@ -45915,7 +46372,8 @@ class CrmService {
45915
46372
  * @throws ApiError
45916
46373
  */
45917
46374
  static crmTagsDestroy({
45918
- id
46375
+ id,
46376
+ app = ''
45919
46377
  }) {
45920
46378
  return request(OpenAPI, {
45921
46379
  method: 'DELETE',
@@ -45923,6 +46381,9 @@ class CrmService {
45923
46381
  path: {
45924
46382
  'id': id
45925
46383
  },
46384
+ query: {
46385
+ 'app': app
46386
+ },
45926
46387
  errors: {
45927
46388
  403: `Missing required permission \`Ibl.CRM/Tags/delete\`.`,
45928
46389
  404: `Tag not found.`
@@ -45938,6 +46399,7 @@ class CrmService {
45938
46399
  * @throws ApiError
45939
46400
  */
45940
46401
  static crmViewsList({
46402
+ app = '',
45941
46403
  dateFilter,
45942
46404
  endDate,
45943
46405
  objectType,
@@ -45952,6 +46414,7 @@ class CrmService {
45952
46414
  method: 'GET',
45953
46415
  url: '/api/crm/views/',
45954
46416
  query: {
46417
+ 'app': app,
45955
46418
  'date_filter': dateFilter,
45956
46419
  'end_date': endDate,
45957
46420
  'object_type': objectType,
@@ -45977,11 +46440,15 @@ class CrmService {
45977
46440
  * @throws ApiError
45978
46441
  */
45979
46442
  static crmViewsCreate({
45980
- requestBody
46443
+ requestBody,
46444
+ app = ''
45981
46445
  }) {
45982
46446
  return request(OpenAPI, {
45983
46447
  method: 'POST',
45984
46448
  url: '/api/crm/views/',
46449
+ query: {
46450
+ 'app': app
46451
+ },
45985
46452
  body: requestBody,
45986
46453
  mediaType: 'application/json',
45987
46454
  errors: {
@@ -45997,7 +46464,8 @@ class CrmService {
45997
46464
  * @throws ApiError
45998
46465
  */
45999
46466
  static crmViewsRetrieve({
46000
- id
46467
+ id,
46468
+ app = ''
46001
46469
  }) {
46002
46470
  return request(OpenAPI, {
46003
46471
  method: 'GET',
@@ -46005,6 +46473,9 @@ class CrmService {
46005
46473
  path: {
46006
46474
  'id': id
46007
46475
  },
46476
+ query: {
46477
+ 'app': app
46478
+ },
46008
46479
  errors: {
46009
46480
  403: `Missing required permission \`Ibl.CRM/Views/read\`.`,
46010
46481
  404: `View not found.`
@@ -46019,7 +46490,8 @@ class CrmService {
46019
46490
  */
46020
46491
  static crmViewsUpdate({
46021
46492
  id,
46022
- requestBody
46493
+ requestBody,
46494
+ app = ''
46023
46495
  }) {
46024
46496
  return request(OpenAPI, {
46025
46497
  method: 'PUT',
@@ -46027,6 +46499,9 @@ class CrmService {
46027
46499
  path: {
46028
46500
  'id': id
46029
46501
  },
46502
+ query: {
46503
+ 'app': app
46504
+ },
46030
46505
  body: requestBody,
46031
46506
  mediaType: 'application/json',
46032
46507
  errors: {
@@ -46044,6 +46519,7 @@ class CrmService {
46044
46519
  */
46045
46520
  static crmViewsPartialUpdate({
46046
46521
  id,
46522
+ app = '',
46047
46523
  requestBody
46048
46524
  }) {
46049
46525
  return request(OpenAPI, {
@@ -46052,6 +46528,9 @@ class CrmService {
46052
46528
  path: {
46053
46529
  'id': id
46054
46530
  },
46531
+ query: {
46532
+ 'app': app
46533
+ },
46055
46534
  body: requestBody,
46056
46535
  mediaType: 'application/json',
46057
46536
  errors: {
@@ -46068,7 +46547,8 @@ class CrmService {
46068
46547
  * @throws ApiError
46069
46548
  */
46070
46549
  static crmViewsDestroy({
46071
- id
46550
+ id,
46551
+ app = ''
46072
46552
  }) {
46073
46553
  return request(OpenAPI, {
46074
46554
  method: 'DELETE',
@@ -46076,12 +46556,201 @@ class CrmService {
46076
46556
  path: {
46077
46557
  'id': id
46078
46558
  },
46559
+ query: {
46560
+ 'app': app
46561
+ },
46079
46562
  errors: {
46080
46563
  403: `Missing required permission \`Ibl.CRM/Views/delete\`.`,
46081
46564
  404: `View not found.`
46082
46565
  }
46083
46566
  });
46084
46567
  }
46568
+ /**
46569
+ * List web forms
46570
+ * Your Platform's web forms, drafts included.
46571
+ *
46572
+ * **Required permission:** `Ibl.CRM/WebForms/list`.
46573
+ * @returns PaginatedWebFormList
46574
+ * @throws ApiError
46575
+ */
46576
+ static crmWebFormsList({
46577
+ app = '',
46578
+ dateFilter,
46579
+ endDate,
46580
+ ordering,
46581
+ page,
46582
+ pageSize,
46583
+ search,
46584
+ startDate
46585
+ }) {
46586
+ return request(OpenAPI, {
46587
+ method: 'GET',
46588
+ url: '/api/crm/web-forms/',
46589
+ query: {
46590
+ 'app': app,
46591
+ 'date_filter': dateFilter,
46592
+ 'end_date': endDate,
46593
+ 'ordering': ordering,
46594
+ 'page': page,
46595
+ 'page_size': pageSize,
46596
+ 'search': search,
46597
+ 'start_date': startDate
46598
+ }
46599
+ });
46600
+ }
46601
+ /**
46602
+ * Create a web form
46603
+ * `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.
46604
+ *
46605
+ * **Required permission:** `Ibl.CRM/WebForms/action`; a new `lead_source_code` also needs `Ibl.CRM/Pipelines/action`.
46606
+ * @returns WebForm
46607
+ * @throws ApiError
46608
+ */
46609
+ static crmWebFormsCreate({
46610
+ requestBody,
46611
+ app = ''
46612
+ }) {
46613
+ return request(OpenAPI, {
46614
+ method: 'POST',
46615
+ url: '/api/crm/web-forms/',
46616
+ query: {
46617
+ 'app': app
46618
+ },
46619
+ body: requestBody,
46620
+ mediaType: 'application/json'
46621
+ });
46622
+ }
46623
+ /**
46624
+ * Retrieve a web form
46625
+ * **Required permission:** `Ibl.CRM/WebForms/read`.
46626
+ * @returns WebForm
46627
+ * @throws ApiError
46628
+ */
46629
+ static crmWebFormsRetrieve({
46630
+ slug,
46631
+ app = ''
46632
+ }) {
46633
+ return request(OpenAPI, {
46634
+ method: 'GET',
46635
+ url: '/api/crm/web-forms/{slug}/',
46636
+ path: {
46637
+ 'slug': slug
46638
+ },
46639
+ query: {
46640
+ 'app': app
46641
+ }
46642
+ });
46643
+ }
46644
+ /**
46645
+ * Replace a web form
46646
+ * **Required permission:** `Ibl.CRM/WebForms/write`; a new `routing.lead_source_code` also needs `Ibl.CRM/Pipelines/action`.
46647
+ * @returns WebForm
46648
+ * @throws ApiError
46649
+ */
46650
+ static crmWebFormsUpdate({
46651
+ slug,
46652
+ requestBody,
46653
+ app = ''
46654
+ }) {
46655
+ return request(OpenAPI, {
46656
+ method: 'PUT',
46657
+ url: '/api/crm/web-forms/{slug}/',
46658
+ path: {
46659
+ 'slug': slug
46660
+ },
46661
+ query: {
46662
+ 'app': app
46663
+ },
46664
+ body: requestBody,
46665
+ mediaType: 'application/json'
46666
+ });
46667
+ }
46668
+ /**
46669
+ * Update a web form
46670
+ * `fields`, `routing` and `metadata` are replaced whole when sent. Publishing rules apply to the form as saved.
46671
+ *
46672
+ * **Required permission:** `Ibl.CRM/WebForms/write`; a new `routing.lead_source_code` also needs `Ibl.CRM/Pipelines/action`.
46673
+ * @returns WebForm
46674
+ * @throws ApiError
46675
+ */
46676
+ static crmWebFormsPartialUpdate({
46677
+ slug,
46678
+ app = '',
46679
+ requestBody
46680
+ }) {
46681
+ return request(OpenAPI, {
46682
+ method: 'PATCH',
46683
+ url: '/api/crm/web-forms/{slug}/',
46684
+ path: {
46685
+ 'slug': slug
46686
+ },
46687
+ query: {
46688
+ 'app': app
46689
+ },
46690
+ body: requestBody,
46691
+ mediaType: 'application/json'
46692
+ });
46693
+ }
46694
+ /**
46695
+ * Delete a web form
46696
+ * Deletes the form and its submissions log; the persons, deals and notes it filed stay.
46697
+ *
46698
+ * **Required permission:** `Ibl.CRM/WebForms/delete`.
46699
+ * @returns void
46700
+ * @throws ApiError
46701
+ */
46702
+ static crmWebFormsDestroy({
46703
+ slug,
46704
+ app = ''
46705
+ }) {
46706
+ return request(OpenAPI, {
46707
+ method: 'DELETE',
46708
+ url: '/api/crm/web-forms/{slug}/',
46709
+ path: {
46710
+ 'slug': slug
46711
+ },
46712
+ query: {
46713
+ 'app': app
46714
+ }
46715
+ });
46716
+ }
46717
+ /**
46718
+ * A web form's submissions
46719
+ * Newest first, paginated; `date_filter` (or `start_date` + `end_date`) narrows to submissions in a window.
46720
+ *
46721
+ * **Required permission:** `Ibl.CRM/WebForms/list`.
46722
+ * @returns PaginatedWebFormSubmissionList
46723
+ * @throws ApiError
46724
+ */
46725
+ static crmWebFormsSubmissionsList({
46726
+ slug,
46727
+ app = '',
46728
+ dateFilter,
46729
+ endDate,
46730
+ page,
46731
+ pageSize,
46732
+ startDate
46733
+ }) {
46734
+ return request(OpenAPI, {
46735
+ method: 'GET',
46736
+ url: '/api/crm/web-forms/{slug}/submissions/',
46737
+ path: {
46738
+ 'slug': slug
46739
+ },
46740
+ query: {
46741
+ 'app': app,
46742
+ 'date_filter': dateFilter,
46743
+ 'end_date': endDate,
46744
+ 'page': page,
46745
+ 'page_size': pageSize,
46746
+ 'start_date': startDate
46747
+ },
46748
+ errors: {
46749
+ 403: `Missing \`Ibl.CRM/WebForms/list\`.`,
46750
+ 404: `Web form not found.`
46751
+ }
46752
+ });
46753
+ }
46085
46754
  }
46086
46755
 
46087
46756
  class CustomDomainsService {
@@ -50618,6 +51287,39 @@ class V1ConfigurationsService {
50618
51287
  }
50619
51288
  }
50620
51289
 
51290
+ class V1CoursesService {
51291
+ /**
51292
+ * Get course metadata
51293
+ * The course's metadata in the shape of the edX plugin's `api/ibl/v1/course_metadata` response: Studio's course details, the DM's public course metadata, `course_outline` (sections down to units), `course_price`, `certificate_available` and the display fields. Served from what the DM stores, as of the course's last Studio save and course info sync.
51294
+ *
51295
+ * Anonymous callers get courses whose catalog visibility is public. Other callers are scoped to their token's platform; a course hidden from the catalog needs a platform admin or staff member. Service accounts name the platform in `iblai-org`. A course that is missing, on another platform or not visible to the caller is 404.
51296
+ * @returns any
51297
+ * @throws ApiError
51298
+ */
51299
+ static v1CoursesMetadataRetrieve({
51300
+ courseId,
51301
+ courseKey,
51302
+ iblaiOrg
51303
+ }) {
51304
+ return request(OpenAPI, {
51305
+ method: 'GET',
51306
+ url: '/v1/courses/metadata',
51307
+ headers: {
51308
+ 'iblai-org': iblaiOrg
51309
+ },
51310
+ query: {
51311
+ 'course_id': courseId,
51312
+ 'course_key': courseKey
51313
+ },
51314
+ errors: {
51315
+ 400: `course_id missing, or a service account omitted iblai-org.`,
51316
+ 403: `iblai-org names another platform.`,
51317
+ 404: `Course or platform not found.`
51318
+ }
51319
+ });
51320
+ }
51321
+ }
51322
+
50621
51323
  class V1DisclaimersService {
50622
51324
  /**
50623
51325
  * Requires the `iblai-org` and `iblai-user` context headers.
@@ -52071,6 +52773,7 @@ exports.V1AgentsService = V1AgentsService;
52071
52773
  exports.V1AuditLogsService = V1AuditLogsService;
52072
52774
  exports.V1ChatService = V1ChatService;
52073
52775
  exports.V1ConfigurationsService = V1ConfigurationsService;
52776
+ exports.V1CoursesService = V1CoursesService;
52074
52777
  exports.V1DisclaimersService = V1DisclaimersService;
52075
52778
  exports.V1FeaturesService = V1FeaturesService;
52076
52779
  exports.V1LlmsService = V1LlmsService;