@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
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-core',
113
+ VERSION: '4.452.0-core',
114
114
  WITH_CREDENTIALS: false,
115
115
  CREDENTIALS: 'include',
116
116
  TOKEN: undefined,
@@ -2241,6 +2241,32 @@ exports.TransactionTypeEnum = void 0;
2241
2241
  TransactionTypeEnum["REFUND"] = "refund";
2242
2242
  })(exports.TransactionTypeEnum || (exports.TransactionTypeEnum = {}));
2243
2243
 
2244
+ /* generated using openapi-typescript-codegen -- do not edit */
2245
+ /* istanbul ignore file */
2246
+ /* tslint:disable */
2247
+ /* eslint-disable */
2248
+ /**
2249
+ * * `text` - text
2250
+ * * `email` - email
2251
+ * * `tel` - tel
2252
+ * * `number` - number
2253
+ * * `date` - date
2254
+ * * `select` - select
2255
+ * * `textarea` - textarea
2256
+ * * `checkbox` - checkbox
2257
+ */
2258
+ exports.Type240Enum = void 0;
2259
+ (function (Type240Enum) {
2260
+ Type240Enum["TEXT"] = "text";
2261
+ Type240Enum["EMAIL"] = "email";
2262
+ Type240Enum["TEL"] = "tel";
2263
+ Type240Enum["NUMBER"] = "number";
2264
+ Type240Enum["DATE"] = "date";
2265
+ Type240Enum["SELECT"] = "select";
2266
+ Type240Enum["TEXTAREA"] = "textarea";
2267
+ Type240Enum["CHECKBOX"] = "checkbox";
2268
+ })(exports.Type240Enum || (exports.Type240Enum = {}));
2269
+
2244
2270
  /* generated using openapi-typescript-codegen -- do not edit */
2245
2271
  /* istanbul ignore file */
2246
2272
  /* tslint:disable */
@@ -23509,6 +23535,7 @@ class CrmService {
23509
23535
  * @throws ApiError
23510
23536
  */
23511
23537
  static crmActivitiesList({
23538
+ app = '',
23512
23539
  dateFilter,
23513
23540
  deal,
23514
23541
  endDate,
@@ -23530,6 +23557,7 @@ class CrmService {
23530
23557
  method: 'GET',
23531
23558
  url: '/api/crm/activities/',
23532
23559
  query: {
23560
+ 'app': app,
23533
23561
  'date_filter': dateFilter,
23534
23562
  'deal': deal,
23535
23563
  'end_date': endDate,
@@ -23562,11 +23590,15 @@ class CrmService {
23562
23590
  * @throws ApiError
23563
23591
  */
23564
23592
  static crmActivitiesCreate({
23565
- requestBody
23593
+ requestBody,
23594
+ app = ''
23566
23595
  }) {
23567
23596
  return request(OpenAPI, {
23568
23597
  method: 'POST',
23569
23598
  url: '/api/crm/activities/',
23599
+ query: {
23600
+ 'app': app
23601
+ },
23570
23602
  body: requestBody,
23571
23603
  mediaType: 'application/json',
23572
23604
  errors: {
@@ -23584,7 +23616,8 @@ class CrmService {
23584
23616
  * @throws ApiError
23585
23617
  */
23586
23618
  static crmActivitiesRetrieve({
23587
- id
23619
+ id,
23620
+ app = ''
23588
23621
  }) {
23589
23622
  return request(OpenAPI, {
23590
23623
  method: 'GET',
@@ -23592,6 +23625,9 @@ class CrmService {
23592
23625
  path: {
23593
23626
  'id': id
23594
23627
  },
23628
+ query: {
23629
+ 'app': app
23630
+ },
23595
23631
  errors: {
23596
23632
  403: `Missing required permission \`Ibl.CRM/Activities/read\`.`,
23597
23633
  404: `Activity not found.`
@@ -23608,7 +23644,8 @@ class CrmService {
23608
23644
  */
23609
23645
  static crmActivitiesUpdate({
23610
23646
  id,
23611
- requestBody
23647
+ requestBody,
23648
+ app = ''
23612
23649
  }) {
23613
23650
  return request(OpenAPI, {
23614
23651
  method: 'PUT',
@@ -23616,6 +23653,9 @@ class CrmService {
23616
23653
  path: {
23617
23654
  'id': id
23618
23655
  },
23656
+ query: {
23657
+ 'app': app
23658
+ },
23619
23659
  body: requestBody,
23620
23660
  mediaType: 'application/json',
23621
23661
  errors: {
@@ -23635,6 +23675,7 @@ class CrmService {
23635
23675
  */
23636
23676
  static crmActivitiesPartialUpdate({
23637
23677
  id,
23678
+ app = '',
23638
23679
  requestBody
23639
23680
  }) {
23640
23681
  return request(OpenAPI, {
@@ -23643,6 +23684,9 @@ class CrmService {
23643
23684
  path: {
23644
23685
  'id': id
23645
23686
  },
23687
+ query: {
23688
+ 'app': app
23689
+ },
23646
23690
  body: requestBody,
23647
23691
  mediaType: 'application/json',
23648
23692
  errors: {
@@ -23661,7 +23705,8 @@ class CrmService {
23661
23705
  * @throws ApiError
23662
23706
  */
23663
23707
  static crmActivitiesDestroy({
23664
- id
23708
+ id,
23709
+ app = ''
23665
23710
  }) {
23666
23711
  return request(OpenAPI, {
23667
23712
  method: 'DELETE',
@@ -23669,6 +23714,9 @@ class CrmService {
23669
23714
  path: {
23670
23715
  'id': id
23671
23716
  },
23717
+ query: {
23718
+ 'app': app
23719
+ },
23672
23720
  errors: {
23673
23721
  403: `Missing required permission \`Ibl.CRM/Activities/delete\`.`,
23674
23722
  404: `Activity not found.`
@@ -23684,7 +23732,8 @@ class CrmService {
23684
23732
  * @throws ApiError
23685
23733
  */
23686
23734
  static crmActivitiesDoneCreate({
23687
- id
23735
+ id,
23736
+ app = ''
23688
23737
  }) {
23689
23738
  return request(OpenAPI, {
23690
23739
  method: 'POST',
@@ -23692,6 +23741,9 @@ class CrmService {
23692
23741
  path: {
23693
23742
  'id': id
23694
23743
  },
23744
+ query: {
23745
+ 'app': app
23746
+ },
23695
23747
  errors: {
23696
23748
  403: `Missing required permission \`Ibl.CRM/Activities/write\`.`,
23697
23749
  404: `Activity not found.`
@@ -23707,6 +23759,7 @@ class CrmService {
23707
23759
  * @throws ApiError
23708
23760
  */
23709
23761
  static crmDealsList({
23762
+ app = '',
23710
23763
  createdAtGte,
23711
23764
  createdAtLte,
23712
23765
  dateFilter,
@@ -23732,6 +23785,7 @@ class CrmService {
23732
23785
  method: 'GET',
23733
23786
  url: '/api/crm/deals/',
23734
23787
  query: {
23788
+ 'app': app,
23735
23789
  'created_at__gte': createdAtGte,
23736
23790
  'created_at__lte': createdAtLte,
23737
23791
  'date_filter': dateFilter,
@@ -23768,11 +23822,15 @@ class CrmService {
23768
23822
  * @throws ApiError
23769
23823
  */
23770
23824
  static crmDealsCreate({
23771
- requestBody
23825
+ requestBody,
23826
+ app = ''
23772
23827
  }) {
23773
23828
  return request(OpenAPI, {
23774
23829
  method: 'POST',
23775
23830
  url: '/api/crm/deals/',
23831
+ query: {
23832
+ 'app': app
23833
+ },
23776
23834
  body: requestBody,
23777
23835
  mediaType: 'application/json',
23778
23836
  errors: {
@@ -23790,7 +23848,8 @@ class CrmService {
23790
23848
  * @throws ApiError
23791
23849
  */
23792
23850
  static crmDealsRetrieve({
23793
- id
23851
+ id,
23852
+ app = ''
23794
23853
  }) {
23795
23854
  return request(OpenAPI, {
23796
23855
  method: 'GET',
@@ -23798,6 +23857,9 @@ class CrmService {
23798
23857
  path: {
23799
23858
  'id': id
23800
23859
  },
23860
+ query: {
23861
+ 'app': app
23862
+ },
23801
23863
  errors: {
23802
23864
  403: `Missing required permission \`Ibl.CRM/Deals/read\`.`,
23803
23865
  404: `Deal not found.`
@@ -23814,7 +23876,8 @@ class CrmService {
23814
23876
  */
23815
23877
  static crmDealsUpdate({
23816
23878
  id,
23817
- requestBody
23879
+ requestBody,
23880
+ app = ''
23818
23881
  }) {
23819
23882
  return request(OpenAPI, {
23820
23883
  method: 'PUT',
@@ -23822,6 +23885,9 @@ class CrmService {
23822
23885
  path: {
23823
23886
  'id': id
23824
23887
  },
23888
+ query: {
23889
+ 'app': app
23890
+ },
23825
23891
  body: requestBody,
23826
23892
  mediaType: 'application/json',
23827
23893
  errors: {
@@ -23841,6 +23907,7 @@ class CrmService {
23841
23907
  */
23842
23908
  static crmDealsPartialUpdate({
23843
23909
  id,
23910
+ app = '',
23844
23911
  requestBody
23845
23912
  }) {
23846
23913
  return request(OpenAPI, {
@@ -23849,6 +23916,9 @@ class CrmService {
23849
23916
  path: {
23850
23917
  'id': id
23851
23918
  },
23919
+ query: {
23920
+ 'app': app
23921
+ },
23852
23922
  body: requestBody,
23853
23923
  mediaType: 'application/json',
23854
23924
  errors: {
@@ -23867,7 +23937,8 @@ class CrmService {
23867
23937
  * @throws ApiError
23868
23938
  */
23869
23939
  static crmDealsDestroy({
23870
- id
23940
+ id,
23941
+ app = ''
23871
23942
  }) {
23872
23943
  return request(OpenAPI, {
23873
23944
  method: 'DELETE',
@@ -23875,6 +23946,9 @@ class CrmService {
23875
23946
  path: {
23876
23947
  'id': id
23877
23948
  },
23949
+ query: {
23950
+ 'app': app
23951
+ },
23878
23952
  errors: {
23879
23953
  403: `Missing required permission \`Ibl.CRM/Deals/delete\`.`,
23880
23954
  404: `Deal not found.`
@@ -23890,7 +23964,8 @@ class CrmService {
23890
23964
  * @throws ApiError
23891
23965
  */
23892
23966
  static crmDealsHistoryList({
23893
- id
23967
+ id,
23968
+ app = ''
23894
23969
  }) {
23895
23970
  return request(OpenAPI, {
23896
23971
  method: 'GET',
@@ -23898,6 +23973,9 @@ class CrmService {
23898
23973
  path: {
23899
23974
  'id': id
23900
23975
  },
23976
+ query: {
23977
+ 'app': app
23978
+ },
23901
23979
  errors: {
23902
23980
  403: `Missing the record's \`read\` permission.`,
23903
23981
  404: `Record not found.`
@@ -23914,7 +23992,8 @@ class CrmService {
23914
23992
  */
23915
23993
  static crmDealsLostCreate({
23916
23994
  id,
23917
- requestBody
23995
+ requestBody,
23996
+ app = ''
23918
23997
  }) {
23919
23998
  return request(OpenAPI, {
23920
23999
  method: 'POST',
@@ -23922,6 +24001,9 @@ class CrmService {
23922
24001
  path: {
23923
24002
  'id': id
23924
24003
  },
24004
+ query: {
24005
+ 'app': app
24006
+ },
23925
24007
  body: requestBody,
23926
24008
  mediaType: 'application/json',
23927
24009
  errors: {
@@ -23931,6 +24013,32 @@ class CrmService {
23931
24013
  }
23932
24014
  });
23933
24015
  }
24016
+ /**
24017
+ * Merge into this record's metadata
24018
+ * 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.
24019
+ *
24020
+ * **Required permission:** the record's `write` verb.
24021
+ * @returns Deal
24022
+ * @throws ApiError
24023
+ */
24024
+ static crmDealsMetadataPartialUpdate({
24025
+ id,
24026
+ app = '',
24027
+ requestBody
24028
+ }) {
24029
+ return request(OpenAPI, {
24030
+ method: 'PATCH',
24031
+ url: '/api/crm/deals/{id}/metadata/',
24032
+ path: {
24033
+ 'id': id
24034
+ },
24035
+ query: {
24036
+ 'app': app
24037
+ },
24038
+ body: requestBody,
24039
+ mediaType: 'application/json'
24040
+ });
24041
+ }
23934
24042
  /**
23935
24043
  * Move a deal to a different stage
23936
24044
  * 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.
@@ -23941,6 +24049,7 @@ class CrmService {
23941
24049
  */
23942
24050
  static crmDealsMoveStageCreate({
23943
24051
  id,
24052
+ app = '',
23944
24053
  requestBody
23945
24054
  }) {
23946
24055
  return request(OpenAPI, {
@@ -23949,6 +24058,9 @@ class CrmService {
23949
24058
  path: {
23950
24059
  'id': id
23951
24060
  },
24061
+ query: {
24062
+ 'app': app
24063
+ },
23952
24064
  body: requestBody,
23953
24065
  mediaType: 'application/json',
23954
24066
  errors: {
@@ -23968,7 +24080,8 @@ class CrmService {
23968
24080
  */
23969
24081
  static crmDealsTagsCreate({
23970
24082
  id,
23971
- requestBody
24083
+ requestBody,
24084
+ app = ''
23972
24085
  }) {
23973
24086
  return request(OpenAPI, {
23974
24087
  method: 'POST',
@@ -23976,6 +24089,9 @@ class CrmService {
23976
24089
  path: {
23977
24090
  'id': id
23978
24091
  },
24092
+ query: {
24093
+ 'app': app
24094
+ },
23979
24095
  body: requestBody,
23980
24096
  mediaType: 'application/json',
23981
24097
  errors: {
@@ -23996,7 +24112,8 @@ class CrmService {
23996
24112
  */
23997
24113
  static crmDealsTagsDestroy({
23998
24114
  id,
23999
- tagId
24115
+ tagId,
24116
+ app = ''
24000
24117
  }) {
24001
24118
  return request(OpenAPI, {
24002
24119
  method: 'DELETE',
@@ -24005,6 +24122,9 @@ class CrmService {
24005
24122
  'id': id,
24006
24123
  'tag_id': tagId
24007
24124
  },
24125
+ query: {
24126
+ 'app': app
24127
+ },
24008
24128
  errors: {
24009
24129
  403: `No response body`,
24010
24130
  404: `No response body`
@@ -24021,6 +24141,7 @@ class CrmService {
24021
24141
  */
24022
24142
  static crmDealsWonCreate({
24023
24143
  id,
24144
+ app = '',
24024
24145
  requestBody
24025
24146
  }) {
24026
24147
  return request(OpenAPI, {
@@ -24029,6 +24150,9 @@ class CrmService {
24029
24150
  path: {
24030
24151
  'id': id
24031
24152
  },
24153
+ query: {
24154
+ 'app': app
24155
+ },
24032
24156
  body: requestBody,
24033
24157
  mediaType: 'application/json',
24034
24158
  errors: {
@@ -24047,6 +24171,7 @@ class CrmService {
24047
24171
  * @throws ApiError
24048
24172
  */
24049
24173
  static crmDealsBoardRetrieve({
24174
+ app = '',
24050
24175
  createdAtGte,
24051
24176
  createdAtLte,
24052
24177
  dateFilter,
@@ -24070,6 +24195,7 @@ class CrmService {
24070
24195
  method: 'GET',
24071
24196
  url: '/api/crm/deals/board/',
24072
24197
  query: {
24198
+ 'app': app,
24073
24199
  'created_at__gte': createdAtGte,
24074
24200
  'created_at__lte': createdAtLte,
24075
24201
  'date_filter': dateFilter,
@@ -24105,6 +24231,7 @@ class CrmService {
24105
24231
  * @throws ApiError
24106
24232
  */
24107
24233
  static crmFavoritesList({
24234
+ app = '',
24108
24235
  dateFilter,
24109
24236
  deal,
24110
24237
  endDate,
@@ -24119,6 +24246,7 @@ class CrmService {
24119
24246
  method: 'GET',
24120
24247
  url: '/api/crm/favorites/',
24121
24248
  query: {
24249
+ 'app': app,
24122
24250
  'date_filter': dateFilter,
24123
24251
  'deal': deal,
24124
24252
  'end_date': endDate,
@@ -24144,11 +24272,15 @@ class CrmService {
24144
24272
  * @throws ApiError
24145
24273
  */
24146
24274
  static crmFavoritesCreate({
24275
+ app = '',
24147
24276
  requestBody
24148
24277
  }) {
24149
24278
  return request(OpenAPI, {
24150
24279
  method: 'POST',
24151
24280
  url: '/api/crm/favorites/',
24281
+ query: {
24282
+ 'app': app
24283
+ },
24152
24284
  body: requestBody,
24153
24285
  mediaType: 'application/json',
24154
24286
  errors: {
@@ -24164,7 +24296,8 @@ class CrmService {
24164
24296
  * @throws ApiError
24165
24297
  */
24166
24298
  static crmFavoritesRetrieve({
24167
- id
24299
+ id,
24300
+ app = ''
24168
24301
  }) {
24169
24302
  return request(OpenAPI, {
24170
24303
  method: 'GET',
@@ -24172,6 +24305,9 @@ class CrmService {
24172
24305
  path: {
24173
24306
  'id': id
24174
24307
  },
24308
+ query: {
24309
+ 'app': app
24310
+ },
24175
24311
  errors: {
24176
24312
  403: `Missing required permission \`Ibl.CRM/Favorites/read\`.`,
24177
24313
  404: `Favorite not found.`
@@ -24187,7 +24323,8 @@ class CrmService {
24187
24323
  * @throws ApiError
24188
24324
  */
24189
24325
  static crmFavoritesDestroy({
24190
- id
24326
+ id,
24327
+ app = ''
24191
24328
  }) {
24192
24329
  return request(OpenAPI, {
24193
24330
  method: 'DELETE',
@@ -24195,6 +24332,9 @@ class CrmService {
24195
24332
  path: {
24196
24333
  'id': id
24197
24334
  },
24335
+ query: {
24336
+ 'app': app
24337
+ },
24198
24338
  errors: {
24199
24339
  403: `Missing required permission \`Ibl.CRM/Favorites/delete\`.`,
24200
24340
  404: `Favorite not found.`
@@ -24210,6 +24350,7 @@ class CrmService {
24210
24350
  * @throws ApiError
24211
24351
  */
24212
24352
  static crmLeadSourcesList({
24353
+ app = '',
24213
24354
  code,
24214
24355
  dateFilter,
24215
24356
  endDate,
@@ -24224,6 +24365,7 @@ class CrmService {
24224
24365
  method: 'GET',
24225
24366
  url: '/api/crm/lead-sources/',
24226
24367
  query: {
24368
+ 'app': app,
24227
24369
  'code': code,
24228
24370
  'date_filter': dateFilter,
24229
24371
  'end_date': endDate,
@@ -24249,11 +24391,15 @@ class CrmService {
24249
24391
  * @throws ApiError
24250
24392
  */
24251
24393
  static crmLeadSourcesCreate({
24252
- requestBody
24394
+ requestBody,
24395
+ app = ''
24253
24396
  }) {
24254
24397
  return request(OpenAPI, {
24255
24398
  method: 'POST',
24256
24399
  url: '/api/crm/lead-sources/',
24400
+ query: {
24401
+ 'app': app
24402
+ },
24257
24403
  body: requestBody,
24258
24404
  mediaType: 'application/json',
24259
24405
  errors: {
@@ -24271,7 +24417,8 @@ class CrmService {
24271
24417
  * @throws ApiError
24272
24418
  */
24273
24419
  static crmLeadSourcesRetrieve({
24274
- id
24420
+ id,
24421
+ app = ''
24275
24422
  }) {
24276
24423
  return request(OpenAPI, {
24277
24424
  method: 'GET',
@@ -24279,6 +24426,9 @@ class CrmService {
24279
24426
  path: {
24280
24427
  'id': id
24281
24428
  },
24429
+ query: {
24430
+ 'app': app
24431
+ },
24282
24432
  errors: {
24283
24433
  403: `Missing required permission \`Ibl.CRM/Pipelines/read\`.`,
24284
24434
  404: `LeadSource not found.`
@@ -24295,7 +24445,8 @@ class CrmService {
24295
24445
  */
24296
24446
  static crmLeadSourcesUpdate({
24297
24447
  id,
24298
- requestBody
24448
+ requestBody,
24449
+ app = ''
24299
24450
  }) {
24300
24451
  return request(OpenAPI, {
24301
24452
  method: 'PUT',
@@ -24303,6 +24454,9 @@ class CrmService {
24303
24454
  path: {
24304
24455
  'id': id
24305
24456
  },
24457
+ query: {
24458
+ 'app': app
24459
+ },
24306
24460
  body: requestBody,
24307
24461
  mediaType: 'application/json',
24308
24462
  errors: {
@@ -24322,6 +24476,7 @@ class CrmService {
24322
24476
  */
24323
24477
  static crmLeadSourcesPartialUpdate({
24324
24478
  id,
24479
+ app = '',
24325
24480
  requestBody
24326
24481
  }) {
24327
24482
  return request(OpenAPI, {
@@ -24330,6 +24485,9 @@ class CrmService {
24330
24485
  path: {
24331
24486
  'id': id
24332
24487
  },
24488
+ query: {
24489
+ 'app': app
24490
+ },
24333
24491
  body: requestBody,
24334
24492
  mediaType: 'application/json',
24335
24493
  errors: {
@@ -24348,7 +24506,8 @@ class CrmService {
24348
24506
  * @throws ApiError
24349
24507
  */
24350
24508
  static crmLeadSourcesDestroy({
24351
- id
24509
+ id,
24510
+ app = ''
24352
24511
  }) {
24353
24512
  return request(OpenAPI, {
24354
24513
  method: 'DELETE',
@@ -24356,24 +24515,57 @@ class CrmService {
24356
24515
  path: {
24357
24516
  'id': id
24358
24517
  },
24518
+ query: {
24519
+ 'app': app
24520
+ },
24359
24521
  errors: {
24360
24522
  403: `Missing required permission \`Ibl.CRM/Pipelines/delete\`.`,
24361
24523
  404: `LeadSource not found.`
24362
24524
  }
24363
24525
  });
24364
24526
  }
24527
+ /**
24528
+ * List the Platform's members
24529
+ * 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`.
24530
+ *
24531
+ * **Required permission:** `list` on persons, organizations, deals or activities (any one).
24532
+ * @returns PaginatedMemberList
24533
+ * @throws ApiError
24534
+ */
24535
+ static crmMembersList({
24536
+ app = '',
24537
+ page,
24538
+ pageSize,
24539
+ query
24540
+ }) {
24541
+ return request(OpenAPI, {
24542
+ method: 'GET',
24543
+ url: '/api/crm/members/',
24544
+ query: {
24545
+ 'app': app,
24546
+ 'page': page,
24547
+ 'page_size': pageSize,
24548
+ 'query': query
24549
+ },
24550
+ errors: {
24551
+ 403: `No CRM list permission.`
24552
+ }
24553
+ });
24554
+ }
24365
24555
  /**
24366
24556
  * List organizations
24367
- * Returns a paginated list of organizations in your Platform. Supports filtering by `owner` and by `name` (case-insensitive substring match).
24557
+ * 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).
24368
24558
  *
24369
24559
  * **Required permission:** `Ibl.CRM/Organizations/list`.
24370
24560
  * @returns PaginatedOrganizationList
24371
24561
  * @throws ApiError
24372
24562
  */
24373
24563
  static crmOrganizationsList({
24564
+ app = '',
24374
24565
  dateFilter,
24375
24566
  endDate,
24376
24567
  name,
24568
+ nameIexact,
24377
24569
  ordering,
24378
24570
  owner,
24379
24571
  page,
@@ -24386,9 +24578,11 @@ class CrmService {
24386
24578
  method: 'GET',
24387
24579
  url: '/api/crm/organizations/',
24388
24580
  query: {
24581
+ 'app': app,
24389
24582
  'date_filter': dateFilter,
24390
24583
  'end_date': endDate,
24391
24584
  'name': name,
24585
+ 'name__iexact': nameIexact,
24392
24586
  'ordering': ordering,
24393
24587
  'owner': owner,
24394
24588
  'page': page,
@@ -24412,11 +24606,15 @@ class CrmService {
24412
24606
  * @throws ApiError
24413
24607
  */
24414
24608
  static crmOrganizationsCreate({
24415
- requestBody
24609
+ requestBody,
24610
+ app = ''
24416
24611
  }) {
24417
24612
  return request(OpenAPI, {
24418
24613
  method: 'POST',
24419
24614
  url: '/api/crm/organizations/',
24615
+ query: {
24616
+ 'app': app
24617
+ },
24420
24618
  body: requestBody,
24421
24619
  mediaType: 'application/json',
24422
24620
  errors: {
@@ -24434,7 +24632,8 @@ class CrmService {
24434
24632
  * @throws ApiError
24435
24633
  */
24436
24634
  static crmOrganizationsRetrieve({
24437
- id
24635
+ id,
24636
+ app = ''
24438
24637
  }) {
24439
24638
  return request(OpenAPI, {
24440
24639
  method: 'GET',
@@ -24442,6 +24641,9 @@ class CrmService {
24442
24641
  path: {
24443
24642
  'id': id
24444
24643
  },
24644
+ query: {
24645
+ 'app': app
24646
+ },
24445
24647
  errors: {
24446
24648
  403: `Missing required permission \`Ibl.CRM/Organizations/read\`.`,
24447
24649
  404: `Organization not found.`
@@ -24458,7 +24660,8 @@ class CrmService {
24458
24660
  */
24459
24661
  static crmOrganizationsUpdate({
24460
24662
  id,
24461
- requestBody
24663
+ requestBody,
24664
+ app = ''
24462
24665
  }) {
24463
24666
  return request(OpenAPI, {
24464
24667
  method: 'PUT',
@@ -24466,6 +24669,9 @@ class CrmService {
24466
24669
  path: {
24467
24670
  'id': id
24468
24671
  },
24672
+ query: {
24673
+ 'app': app
24674
+ },
24469
24675
  body: requestBody,
24470
24676
  mediaType: 'application/json',
24471
24677
  errors: {
@@ -24485,6 +24691,7 @@ class CrmService {
24485
24691
  */
24486
24692
  static crmOrganizationsPartialUpdate({
24487
24693
  id,
24694
+ app = '',
24488
24695
  requestBody
24489
24696
  }) {
24490
24697
  return request(OpenAPI, {
@@ -24493,6 +24700,9 @@ class CrmService {
24493
24700
  path: {
24494
24701
  'id': id
24495
24702
  },
24703
+ query: {
24704
+ 'app': app
24705
+ },
24496
24706
  body: requestBody,
24497
24707
  mediaType: 'application/json',
24498
24708
  errors: {
@@ -24511,7 +24721,8 @@ class CrmService {
24511
24721
  * @throws ApiError
24512
24722
  */
24513
24723
  static crmOrganizationsDestroy({
24514
- id
24724
+ id,
24725
+ app = ''
24515
24726
  }) {
24516
24727
  return request(OpenAPI, {
24517
24728
  method: 'DELETE',
@@ -24519,6 +24730,9 @@ class CrmService {
24519
24730
  path: {
24520
24731
  'id': id
24521
24732
  },
24733
+ query: {
24734
+ 'app': app
24735
+ },
24522
24736
  errors: {
24523
24737
  403: `Missing required permission \`Ibl.CRM/Organizations/delete\`.`,
24524
24738
  404: `Organization not found.`
@@ -24534,7 +24748,8 @@ class CrmService {
24534
24748
  * @throws ApiError
24535
24749
  */
24536
24750
  static crmOrganizationsHistoryList({
24537
- id
24751
+ id,
24752
+ app = ''
24538
24753
  }) {
24539
24754
  return request(OpenAPI, {
24540
24755
  method: 'GET',
@@ -24542,12 +24757,41 @@ class CrmService {
24542
24757
  path: {
24543
24758
  'id': id
24544
24759
  },
24760
+ query: {
24761
+ 'app': app
24762
+ },
24545
24763
  errors: {
24546
24764
  403: `Missing the record's \`read\` permission.`,
24547
24765
  404: `Record not found.`
24548
24766
  }
24549
24767
  });
24550
24768
  }
24769
+ /**
24770
+ * Merge into this record's metadata
24771
+ * 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.
24772
+ *
24773
+ * **Required permission:** the record's `write` verb.
24774
+ * @returns Organization
24775
+ * @throws ApiError
24776
+ */
24777
+ static crmOrganizationsMetadataPartialUpdate({
24778
+ id,
24779
+ app = '',
24780
+ requestBody
24781
+ }) {
24782
+ return request(OpenAPI, {
24783
+ method: 'PATCH',
24784
+ url: '/api/crm/organizations/{id}/metadata/',
24785
+ path: {
24786
+ 'id': id
24787
+ },
24788
+ query: {
24789
+ 'app': app
24790
+ },
24791
+ body: requestBody,
24792
+ mediaType: 'application/json'
24793
+ });
24794
+ }
24551
24795
  /**
24552
24796
  * Attach a tag to this record
24553
24797
  * 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.
@@ -24558,7 +24802,8 @@ class CrmService {
24558
24802
  */
24559
24803
  static crmOrganizationsTagsCreate({
24560
24804
  id,
24561
- requestBody
24805
+ requestBody,
24806
+ app = ''
24562
24807
  }) {
24563
24808
  return request(OpenAPI, {
24564
24809
  method: 'POST',
@@ -24566,6 +24811,9 @@ class CrmService {
24566
24811
  path: {
24567
24812
  'id': id
24568
24813
  },
24814
+ query: {
24815
+ 'app': app
24816
+ },
24569
24817
  body: requestBody,
24570
24818
  mediaType: 'application/json',
24571
24819
  errors: {
@@ -24586,7 +24834,8 @@ class CrmService {
24586
24834
  */
24587
24835
  static crmOrganizationsTagsDestroy({
24588
24836
  id,
24589
- tagId
24837
+ tagId,
24838
+ app = ''
24590
24839
  }) {
24591
24840
  return request(OpenAPI, {
24592
24841
  method: 'DELETE',
@@ -24595,12 +24844,74 @@ class CrmService {
24595
24844
  'id': id,
24596
24845
  'tag_id': tagId
24597
24846
  },
24847
+ query: {
24848
+ 'app': app
24849
+ },
24598
24850
  errors: {
24599
24851
  403: `No response body`,
24600
24852
  404: `No response body`
24601
24853
  }
24602
24854
  });
24603
24855
  }
24856
+ /**
24857
+ * A published web form (public)
24858
+ * 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.
24859
+ * @returns WebFormPublic
24860
+ * @throws ApiError
24861
+ */
24862
+ static crmOrgsWebFormsRetrieve({
24863
+ org,
24864
+ slug,
24865
+ app = ''
24866
+ }) {
24867
+ return request(OpenAPI, {
24868
+ method: 'GET',
24869
+ url: '/api/crm/orgs/{org}/web-forms/{slug}/',
24870
+ path: {
24871
+ 'org': org,
24872
+ 'slug': slug
24873
+ },
24874
+ query: {
24875
+ 'app': app
24876
+ },
24877
+ errors: {
24878
+ 404: `No published form here.`
24879
+ }
24880
+ });
24881
+ }
24882
+ /**
24883
+ * Submit a published web form (public)
24884
+ * 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).
24885
+ * @returns WebFormSubmitResponse
24886
+ * @throws ApiError
24887
+ */
24888
+ static crmOrgsWebFormsSubmissionsCreate({
24889
+ org,
24890
+ slug,
24891
+ requestBody,
24892
+ app = ''
24893
+ }) {
24894
+ return request(OpenAPI, {
24895
+ method: 'POST',
24896
+ url: '/api/crm/orgs/{org}/web-forms/{slug}/submissions/',
24897
+ path: {
24898
+ 'org': org,
24899
+ 'slug': slug
24900
+ },
24901
+ query: {
24902
+ 'app': app
24903
+ },
24904
+ body: requestBody,
24905
+ mediaType: 'application/json',
24906
+ errors: {
24907
+ 400: `\`{issues: {<field key>|non_field_errors: [message]}}\`.`,
24908
+ 404: `No published form here.`,
24909
+ 413: `Body over 64 KB.`,
24910
+ 415: `Not JSON.`,
24911
+ 429: `Too many submissions from this IP.`
24912
+ }
24913
+ });
24914
+ }
24604
24915
  /**
24605
24916
  * CRM overview
24606
24917
  * 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.
@@ -24612,6 +24923,7 @@ class CrmService {
24612
24923
  * @throws ApiError
24613
24924
  */
24614
24925
  static crmOverviewRetrieve({
24926
+ app = '',
24615
24927
  dateFilter,
24616
24928
  endDate,
24617
24929
  pipeline,
@@ -24621,6 +24933,7 @@ class CrmService {
24621
24933
  method: 'GET',
24622
24934
  url: '/api/crm/overview/',
24623
24935
  query: {
24936
+ 'app': app,
24624
24937
  'date_filter': dateFilter,
24625
24938
  'end_date': endDate,
24626
24939
  'pipeline': pipeline,
@@ -24635,7 +24948,7 @@ class CrmService {
24635
24948
  }
24636
24949
  /**
24637
24950
  * List persons
24638
- * 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`.
24951
+ * 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`.
24639
24952
  *
24640
24953
  * **Required permission:** `Ibl.CRM/Persons/list`.
24641
24954
  * @returns PaginatedPersonList
@@ -24643,6 +24956,7 @@ class CrmService {
24643
24956
  */
24644
24957
  static crmPersonsList({
24645
24958
  active,
24959
+ app = '',
24646
24960
  createdAtGte,
24647
24961
  createdAtLte,
24648
24962
  dateFilter,
@@ -24654,6 +24968,7 @@ class CrmService {
24654
24968
  owner,
24655
24969
  page,
24656
24970
  pageSize,
24971
+ primaryEmail,
24657
24972
  search,
24658
24973
  startDate,
24659
24974
  tags
@@ -24663,6 +24978,7 @@ class CrmService {
24663
24978
  url: '/api/crm/persons/',
24664
24979
  query: {
24665
24980
  'active': active,
24981
+ 'app': app,
24666
24982
  'created_at__gte': createdAtGte,
24667
24983
  'created_at__lte': createdAtLte,
24668
24984
  'date_filter': dateFilter,
@@ -24674,6 +24990,7 @@ class CrmService {
24674
24990
  'owner': owner,
24675
24991
  'page': page,
24676
24992
  'page_size': pageSize,
24993
+ 'primary_email': primaryEmail,
24677
24994
  'search': search,
24678
24995
  'start_date': startDate,
24679
24996
  'tags': tags
@@ -24693,11 +25010,15 @@ class CrmService {
24693
25010
  * @throws ApiError
24694
25011
  */
24695
25012
  static crmPersonsCreate({
24696
- requestBody
25013
+ requestBody,
25014
+ app = ''
24697
25015
  }) {
24698
25016
  return request(OpenAPI, {
24699
25017
  method: 'POST',
24700
25018
  url: '/api/crm/persons/',
25019
+ query: {
25020
+ 'app': app
25021
+ },
24701
25022
  body: requestBody,
24702
25023
  mediaType: 'application/json',
24703
25024
  errors: {
@@ -24715,7 +25036,8 @@ class CrmService {
24715
25036
  * @throws ApiError
24716
25037
  */
24717
25038
  static crmPersonsRetrieve({
24718
- id
25039
+ id,
25040
+ app = ''
24719
25041
  }) {
24720
25042
  return request(OpenAPI, {
24721
25043
  method: 'GET',
@@ -24723,6 +25045,9 @@ class CrmService {
24723
25045
  path: {
24724
25046
  'id': id
24725
25047
  },
25048
+ query: {
25049
+ 'app': app
25050
+ },
24726
25051
  errors: {
24727
25052
  403: `Missing required permission \`Ibl.CRM/Persons/read\`.`,
24728
25053
  404: `Person not found.`
@@ -24739,7 +25064,8 @@ class CrmService {
24739
25064
  */
24740
25065
  static crmPersonsUpdate({
24741
25066
  id,
24742
- requestBody
25067
+ requestBody,
25068
+ app = ''
24743
25069
  }) {
24744
25070
  return request(OpenAPI, {
24745
25071
  method: 'PUT',
@@ -24747,6 +25073,9 @@ class CrmService {
24747
25073
  path: {
24748
25074
  'id': id
24749
25075
  },
25076
+ query: {
25077
+ 'app': app
25078
+ },
24750
25079
  body: requestBody,
24751
25080
  mediaType: 'application/json',
24752
25081
  errors: {
@@ -24766,6 +25095,7 @@ class CrmService {
24766
25095
  */
24767
25096
  static crmPersonsPartialUpdate({
24768
25097
  id,
25098
+ app = '',
24769
25099
  requestBody
24770
25100
  }) {
24771
25101
  return request(OpenAPI, {
@@ -24774,6 +25104,9 @@ class CrmService {
24774
25104
  path: {
24775
25105
  'id': id
24776
25106
  },
25107
+ query: {
25108
+ 'app': app
25109
+ },
24777
25110
  body: requestBody,
24778
25111
  mediaType: 'application/json',
24779
25112
  errors: {
@@ -24792,7 +25125,8 @@ class CrmService {
24792
25125
  * @throws ApiError
24793
25126
  */
24794
25127
  static crmPersonsDestroy({
24795
- id
25128
+ id,
25129
+ app = ''
24796
25130
  }) {
24797
25131
  return request(OpenAPI, {
24798
25132
  method: 'DELETE',
@@ -24800,6 +25134,9 @@ class CrmService {
24800
25134
  path: {
24801
25135
  'id': id
24802
25136
  },
25137
+ query: {
25138
+ 'app': app
25139
+ },
24803
25140
  errors: {
24804
25141
  403: `Missing required permission \`Ibl.CRM/Persons/delete\`.`,
24805
25142
  404: `Person not found.`,
@@ -24816,7 +25153,8 @@ class CrmService {
24816
25153
  * @throws ApiError
24817
25154
  */
24818
25155
  static crmPersonsHistoryList({
24819
- id
25156
+ id,
25157
+ app = ''
24820
25158
  }) {
24821
25159
  return request(OpenAPI, {
24822
25160
  method: 'GET',
@@ -24824,6 +25162,9 @@ class CrmService {
24824
25162
  path: {
24825
25163
  'id': id
24826
25164
  },
25165
+ query: {
25166
+ 'app': app
25167
+ },
24827
25168
  errors: {
24828
25169
  403: `Missing the record's \`read\` permission.`,
24829
25170
  404: `Record not found.`
@@ -24836,12 +25177,13 @@ class CrmService {
24836
25177
  *
24837
25178
  * 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.
24838
25179
  *
24839
- * **Required permission:** `Ibl.CRM/Invite/action`.
25180
+ * **Required permission:** `Ibl.CRM/Invite/action`; `is_admin` or `is_staff` also needs `Ibl.Catalog/PlatformInvitations/action`.
24840
25181
  * @returns PersonInviteResponse
24841
25182
  * @throws ApiError
24842
25183
  */
24843
25184
  static crmPersonsInviteCreate({
24844
25185
  id,
25186
+ app = '',
24845
25187
  requestBody
24846
25188
  }) {
24847
25189
  return request(OpenAPI, {
@@ -24850,11 +25192,14 @@ class CrmService {
24850
25192
  path: {
24851
25193
  'id': id
24852
25194
  },
25195
+ query: {
25196
+ 'app': app
25197
+ },
24853
25198
  body: requestBody,
24854
25199
  mediaType: 'application/json',
24855
25200
  errors: {
24856
25201
  400: `Person has no \`primary_email\`; cannot invite.`,
24857
- 403: `Missing required permission \`Ibl.CRM/Invite/action\`.`,
25202
+ 403: `Missing \`Ibl.CRM/Invite/action\`, or \`Ibl.Catalog/PlatformInvitations/action\` for \`is_admin\` / \`is_staff\`; an API key never grants them.`,
24858
25203
  404: `Person not found.`,
24859
25204
  422: `Person is already linked to a platform user.`
24860
25205
  }
@@ -24872,7 +25217,8 @@ class CrmService {
24872
25217
  */
24873
25218
  static crmPersonsLinkUserCreate({
24874
25219
  id,
24875
- requestBody
25220
+ requestBody,
25221
+ app = ''
24876
25222
  }) {
24877
25223
  return request(OpenAPI, {
24878
25224
  method: 'POST',
@@ -24880,6 +25226,9 @@ class CrmService {
24880
25226
  path: {
24881
25227
  'id': id
24882
25228
  },
25229
+ query: {
25230
+ 'app': app
25231
+ },
24883
25232
  body: requestBody,
24884
25233
  mediaType: 'application/json',
24885
25234
  errors: {
@@ -24889,6 +25238,32 @@ class CrmService {
24889
25238
  }
24890
25239
  });
24891
25240
  }
25241
+ /**
25242
+ * Merge into this record's metadata
25243
+ * 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.
25244
+ *
25245
+ * **Required permission:** the record's `write` verb.
25246
+ * @returns Person
25247
+ * @throws ApiError
25248
+ */
25249
+ static crmPersonsMetadataPartialUpdate({
25250
+ id,
25251
+ app = '',
25252
+ requestBody
25253
+ }) {
25254
+ return request(OpenAPI, {
25255
+ method: 'PATCH',
25256
+ url: '/api/crm/persons/{id}/metadata/',
25257
+ path: {
25258
+ 'id': id
25259
+ },
25260
+ query: {
25261
+ 'app': app
25262
+ },
25263
+ body: requestBody,
25264
+ mediaType: 'application/json'
25265
+ });
25266
+ }
24892
25267
  /**
24893
25268
  * Attach a tag to this record
24894
25269
  * 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.
@@ -24899,7 +25274,8 @@ class CrmService {
24899
25274
  */
24900
25275
  static crmPersonsTagsCreate({
24901
25276
  id,
24902
- requestBody
25277
+ requestBody,
25278
+ app = ''
24903
25279
  }) {
24904
25280
  return request(OpenAPI, {
24905
25281
  method: 'POST',
@@ -24907,6 +25283,9 @@ class CrmService {
24907
25283
  path: {
24908
25284
  'id': id
24909
25285
  },
25286
+ query: {
25287
+ 'app': app
25288
+ },
24910
25289
  body: requestBody,
24911
25290
  mediaType: 'application/json',
24912
25291
  errors: {
@@ -24927,7 +25306,8 @@ class CrmService {
24927
25306
  */
24928
25307
  static crmPersonsTagsDestroy({
24929
25308
  id,
24930
- tagId
25309
+ tagId,
25310
+ app = ''
24931
25311
  }) {
24932
25312
  return request(OpenAPI, {
24933
25313
  method: 'DELETE',
@@ -24936,6 +25316,9 @@ class CrmService {
24936
25316
  'id': id,
24937
25317
  'tag_id': tagId
24938
25318
  },
25319
+ query: {
25320
+ 'app': app
25321
+ },
24939
25322
  errors: {
24940
25323
  403: `No response body`,
24941
25324
  404: `No response body`
@@ -24944,7 +25327,7 @@ class CrmService {
24944
25327
  }
24945
25328
  /**
24946
25329
  * Merge duplicate persons into a primary
24947
- * Marks each person in `duplicate_ids` as inactive and reports how many related records (deals, activities, tags) were re-parented onto `primary_id`.
25330
+ * 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`.
24948
25331
  *
24949
25332
  * All ids — both the primary and every duplicate — must belong to your Platform. `primary_id` may not appear in `duplicate_ids`.
24950
25333
  *
@@ -24953,15 +25336,19 @@ class CrmService {
24953
25336
  * @throws ApiError
24954
25337
  */
24955
25338
  static crmPersonsMergeCreate({
24956
- requestBody
25339
+ requestBody,
25340
+ app = ''
24957
25341
  }) {
24958
25342
  return request(OpenAPI, {
24959
25343
  method: 'POST',
24960
25344
  url: '/api/crm/persons/merge/',
25345
+ query: {
25346
+ 'app': app
25347
+ },
24961
25348
  body: requestBody,
24962
25349
  mediaType: 'application/json',
24963
25350
  errors: {
24964
- 400: `Validation error: the primary appears in duplicates, or one or more ids belong to another Platform.`,
25351
+ 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.`,
24965
25352
  403: `Missing required permission \`Ibl.CRM/Persons/write\`.`,
24966
25353
  404: `Primary person not found.`
24967
25354
  }
@@ -24976,6 +25363,7 @@ class CrmService {
24976
25363
  * @throws ApiError
24977
25364
  */
24978
25365
  static crmPipelinesList({
25366
+ app = '',
24979
25367
  code,
24980
25368
  dateFilter,
24981
25369
  endDate,
@@ -24991,6 +25379,7 @@ class CrmService {
24991
25379
  method: 'GET',
24992
25380
  url: '/api/crm/pipelines/',
24993
25381
  query: {
25382
+ 'app': app,
24994
25383
  'code': code,
24995
25384
  'date_filter': dateFilter,
24996
25385
  'end_date': endDate,
@@ -25017,11 +25406,15 @@ class CrmService {
25017
25406
  * @throws ApiError
25018
25407
  */
25019
25408
  static crmPipelinesCreate({
25020
- requestBody
25409
+ requestBody,
25410
+ app = ''
25021
25411
  }) {
25022
25412
  return request(OpenAPI, {
25023
25413
  method: 'POST',
25024
25414
  url: '/api/crm/pipelines/',
25415
+ query: {
25416
+ 'app': app
25417
+ },
25025
25418
  body: requestBody,
25026
25419
  mediaType: 'application/json',
25027
25420
  errors: {
@@ -25040,6 +25433,7 @@ class CrmService {
25040
25433
  */
25041
25434
  static crmPipelinesStagesList({
25042
25435
  pipelinePk,
25436
+ app = '',
25043
25437
  code,
25044
25438
  dateFilter,
25045
25439
  endDate,
@@ -25058,6 +25452,7 @@ class CrmService {
25058
25452
  'pipeline_pk': pipelinePk
25059
25453
  },
25060
25454
  query: {
25455
+ 'app': app,
25061
25456
  'code': code,
25062
25457
  'date_filter': dateFilter,
25063
25458
  'end_date': endDate,
@@ -25085,7 +25480,8 @@ class CrmService {
25085
25480
  */
25086
25481
  static crmPipelinesStagesCreate({
25087
25482
  pipelinePk,
25088
- requestBody
25483
+ requestBody,
25484
+ app = ''
25089
25485
  }) {
25090
25486
  return request(OpenAPI, {
25091
25487
  method: 'POST',
@@ -25093,6 +25489,9 @@ class CrmService {
25093
25489
  path: {
25094
25490
  'pipeline_pk': pipelinePk
25095
25491
  },
25492
+ query: {
25493
+ 'app': app
25494
+ },
25096
25495
  body: requestBody,
25097
25496
  mediaType: 'application/json',
25098
25497
  errors: {
@@ -25112,7 +25511,8 @@ class CrmService {
25112
25511
  */
25113
25512
  static crmPipelinesStagesRetrieve({
25114
25513
  id,
25115
- pipelinePk
25514
+ pipelinePk,
25515
+ app = ''
25116
25516
  }) {
25117
25517
  return request(OpenAPI, {
25118
25518
  method: 'GET',
@@ -25121,6 +25521,9 @@ class CrmService {
25121
25521
  'id': id,
25122
25522
  'pipeline_pk': pipelinePk
25123
25523
  },
25524
+ query: {
25525
+ 'app': app
25526
+ },
25124
25527
  errors: {
25125
25528
  403: `Missing required permission \`Ibl.CRM/Pipelines/read\`.`,
25126
25529
  404: `Stage not found in this Pipeline.`
@@ -25138,7 +25541,8 @@ class CrmService {
25138
25541
  static crmPipelinesStagesUpdate({
25139
25542
  id,
25140
25543
  pipelinePk,
25141
- requestBody
25544
+ requestBody,
25545
+ app = ''
25142
25546
  }) {
25143
25547
  return request(OpenAPI, {
25144
25548
  method: 'PUT',
@@ -25147,6 +25551,9 @@ class CrmService {
25147
25551
  'id': id,
25148
25552
  'pipeline_pk': pipelinePk
25149
25553
  },
25554
+ query: {
25555
+ 'app': app
25556
+ },
25150
25557
  body: requestBody,
25151
25558
  mediaType: 'application/json',
25152
25559
  errors: {
@@ -25167,6 +25574,7 @@ class CrmService {
25167
25574
  static crmPipelinesStagesPartialUpdate({
25168
25575
  id,
25169
25576
  pipelinePk,
25577
+ app = '',
25170
25578
  requestBody
25171
25579
  }) {
25172
25580
  return request(OpenAPI, {
@@ -25176,6 +25584,9 @@ class CrmService {
25176
25584
  'id': id,
25177
25585
  'pipeline_pk': pipelinePk
25178
25586
  },
25587
+ query: {
25588
+ 'app': app
25589
+ },
25179
25590
  body: requestBody,
25180
25591
  mediaType: 'application/json',
25181
25592
  errors: {
@@ -25195,7 +25606,8 @@ class CrmService {
25195
25606
  */
25196
25607
  static crmPipelinesStagesDestroy({
25197
25608
  id,
25198
- pipelinePk
25609
+ pipelinePk,
25610
+ app = ''
25199
25611
  }) {
25200
25612
  return request(OpenAPI, {
25201
25613
  method: 'DELETE',
@@ -25204,6 +25616,9 @@ class CrmService {
25204
25616
  'id': id,
25205
25617
  'pipeline_pk': pipelinePk
25206
25618
  },
25619
+ query: {
25620
+ 'app': app
25621
+ },
25207
25622
  errors: {
25208
25623
  403: `Missing required permission \`Ibl.CRM/Pipelines/delete\`.`,
25209
25624
  404: `Stage not found in this Pipeline.`,
@@ -25220,7 +25635,8 @@ class CrmService {
25220
25635
  * @throws ApiError
25221
25636
  */
25222
25637
  static crmPipelinesRetrieve({
25223
- id
25638
+ id,
25639
+ app = ''
25224
25640
  }) {
25225
25641
  return request(OpenAPI, {
25226
25642
  method: 'GET',
@@ -25228,6 +25644,9 @@ class CrmService {
25228
25644
  path: {
25229
25645
  'id': id
25230
25646
  },
25647
+ query: {
25648
+ 'app': app
25649
+ },
25231
25650
  errors: {
25232
25651
  403: `Missing required permission \`Ibl.CRM/Pipelines/read\`.`,
25233
25652
  404: `Pipeline not found.`
@@ -25244,7 +25663,8 @@ class CrmService {
25244
25663
  */
25245
25664
  static crmPipelinesUpdate({
25246
25665
  id,
25247
- requestBody
25666
+ requestBody,
25667
+ app = ''
25248
25668
  }) {
25249
25669
  return request(OpenAPI, {
25250
25670
  method: 'PUT',
@@ -25252,6 +25672,9 @@ class CrmService {
25252
25672
  path: {
25253
25673
  'id': id
25254
25674
  },
25675
+ query: {
25676
+ 'app': app
25677
+ },
25255
25678
  body: requestBody,
25256
25679
  mediaType: 'application/json',
25257
25680
  errors: {
@@ -25271,6 +25694,7 @@ class CrmService {
25271
25694
  */
25272
25695
  static crmPipelinesPartialUpdate({
25273
25696
  id,
25697
+ app = '',
25274
25698
  requestBody
25275
25699
  }) {
25276
25700
  return request(OpenAPI, {
@@ -25279,6 +25703,9 @@ class CrmService {
25279
25703
  path: {
25280
25704
  'id': id
25281
25705
  },
25706
+ query: {
25707
+ 'app': app
25708
+ },
25282
25709
  body: requestBody,
25283
25710
  mediaType: 'application/json',
25284
25711
  errors: {
@@ -25297,7 +25724,8 @@ class CrmService {
25297
25724
  * @throws ApiError
25298
25725
  */
25299
25726
  static crmPipelinesDestroy({
25300
- id
25727
+ id,
25728
+ app = ''
25301
25729
  }) {
25302
25730
  return request(OpenAPI, {
25303
25731
  method: 'DELETE',
@@ -25305,6 +25733,9 @@ class CrmService {
25305
25733
  path: {
25306
25734
  'id': id
25307
25735
  },
25736
+ query: {
25737
+ 'app': app
25738
+ },
25308
25739
  errors: {
25309
25740
  403: `Missing required permission \`Ibl.CRM/Pipelines/delete\`.`,
25310
25741
  404: `Pipeline not found.`,
@@ -25322,7 +25753,8 @@ class CrmService {
25322
25753
  */
25323
25754
  static crmPipelinesStagesReorderCreate({
25324
25755
  id,
25325
- requestBody
25756
+ requestBody,
25757
+ app = ''
25326
25758
  }) {
25327
25759
  return request(OpenAPI, {
25328
25760
  method: 'POST',
@@ -25330,6 +25762,9 @@ class CrmService {
25330
25762
  path: {
25331
25763
  'id': id
25332
25764
  },
25765
+ query: {
25766
+ 'app': app
25767
+ },
25333
25768
  body: requestBody,
25334
25769
  mediaType: 'application/json',
25335
25770
  errors: {
@@ -25349,12 +25784,14 @@ class CrmService {
25349
25784
  */
25350
25785
  static crmSearchRetrieve({
25351
25786
  q,
25787
+ app = '',
25352
25788
  limit
25353
25789
  }) {
25354
25790
  return request(OpenAPI, {
25355
25791
  method: 'GET',
25356
25792
  url: '/api/crm/search/',
25357
25793
  query: {
25794
+ 'app': app,
25358
25795
  'limit': limit,
25359
25796
  'q': q
25360
25797
  },
@@ -25366,18 +25803,20 @@ class CrmService {
25366
25803
  }
25367
25804
  /**
25368
25805
  * List tags
25369
- * 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.
25806
+ * 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.
25370
25807
  *
25371
25808
  * **Required permission:** `Ibl.CRM/Tags/list`.
25372
25809
  * @returns PaginatedTagList
25373
25810
  * @throws ApiError
25374
25811
  */
25375
25812
  static crmTagsList({
25813
+ app = '',
25376
25814
  createdAtGte,
25377
25815
  createdAtLte,
25378
25816
  dateFilter,
25379
25817
  endDate,
25380
25818
  name,
25819
+ nameIexact,
25381
25820
  ordering,
25382
25821
  page,
25383
25822
  pageSize,
@@ -25388,11 +25827,13 @@ class CrmService {
25388
25827
  method: 'GET',
25389
25828
  url: '/api/crm/tags/',
25390
25829
  query: {
25830
+ 'app': app,
25391
25831
  'created_at__gte': createdAtGte,
25392
25832
  'created_at__lte': createdAtLte,
25393
25833
  'date_filter': dateFilter,
25394
25834
  'end_date': endDate,
25395
25835
  'name': name,
25836
+ 'name__iexact': nameIexact,
25396
25837
  'ordering': ordering,
25397
25838
  'page': page,
25398
25839
  'page_size': pageSize,
@@ -25414,11 +25855,15 @@ class CrmService {
25414
25855
  * @throws ApiError
25415
25856
  */
25416
25857
  static crmTagsCreate({
25417
- requestBody
25858
+ requestBody,
25859
+ app = ''
25418
25860
  }) {
25419
25861
  return request(OpenAPI, {
25420
25862
  method: 'POST',
25421
25863
  url: '/api/crm/tags/',
25864
+ query: {
25865
+ 'app': app
25866
+ },
25422
25867
  body: requestBody,
25423
25868
  mediaType: 'application/json',
25424
25869
  errors: {
@@ -25436,7 +25881,8 @@ class CrmService {
25436
25881
  * @throws ApiError
25437
25882
  */
25438
25883
  static crmTagsRetrieve({
25439
- id
25884
+ id,
25885
+ app = ''
25440
25886
  }) {
25441
25887
  return request(OpenAPI, {
25442
25888
  method: 'GET',
@@ -25444,6 +25890,9 @@ class CrmService {
25444
25890
  path: {
25445
25891
  'id': id
25446
25892
  },
25893
+ query: {
25894
+ 'app': app
25895
+ },
25447
25896
  errors: {
25448
25897
  403: `Missing required permission \`Ibl.CRM/Tags/read\`.`,
25449
25898
  404: `Tag not found.`
@@ -25460,7 +25909,8 @@ class CrmService {
25460
25909
  */
25461
25910
  static crmTagsUpdate({
25462
25911
  id,
25463
- requestBody
25912
+ requestBody,
25913
+ app = ''
25464
25914
  }) {
25465
25915
  return request(OpenAPI, {
25466
25916
  method: 'PUT',
@@ -25468,6 +25918,9 @@ class CrmService {
25468
25918
  path: {
25469
25919
  'id': id
25470
25920
  },
25921
+ query: {
25922
+ 'app': app
25923
+ },
25471
25924
  body: requestBody,
25472
25925
  mediaType: 'application/json',
25473
25926
  errors: {
@@ -25487,6 +25940,7 @@ class CrmService {
25487
25940
  */
25488
25941
  static crmTagsPartialUpdate({
25489
25942
  id,
25943
+ app = '',
25490
25944
  requestBody
25491
25945
  }) {
25492
25946
  return request(OpenAPI, {
@@ -25495,6 +25949,9 @@ class CrmService {
25495
25949
  path: {
25496
25950
  'id': id
25497
25951
  },
25952
+ query: {
25953
+ 'app': app
25954
+ },
25498
25955
  body: requestBody,
25499
25956
  mediaType: 'application/json',
25500
25957
  errors: {
@@ -25513,7 +25970,8 @@ class CrmService {
25513
25970
  * @throws ApiError
25514
25971
  */
25515
25972
  static crmTagsDestroy({
25516
- id
25973
+ id,
25974
+ app = ''
25517
25975
  }) {
25518
25976
  return request(OpenAPI, {
25519
25977
  method: 'DELETE',
@@ -25521,6 +25979,9 @@ class CrmService {
25521
25979
  path: {
25522
25980
  'id': id
25523
25981
  },
25982
+ query: {
25983
+ 'app': app
25984
+ },
25524
25985
  errors: {
25525
25986
  403: `Missing required permission \`Ibl.CRM/Tags/delete\`.`,
25526
25987
  404: `Tag not found.`
@@ -25536,6 +25997,7 @@ class CrmService {
25536
25997
  * @throws ApiError
25537
25998
  */
25538
25999
  static crmViewsList({
26000
+ app = '',
25539
26001
  dateFilter,
25540
26002
  endDate,
25541
26003
  objectType,
@@ -25550,6 +26012,7 @@ class CrmService {
25550
26012
  method: 'GET',
25551
26013
  url: '/api/crm/views/',
25552
26014
  query: {
26015
+ 'app': app,
25553
26016
  'date_filter': dateFilter,
25554
26017
  'end_date': endDate,
25555
26018
  'object_type': objectType,
@@ -25575,11 +26038,15 @@ class CrmService {
25575
26038
  * @throws ApiError
25576
26039
  */
25577
26040
  static crmViewsCreate({
25578
- requestBody
26041
+ requestBody,
26042
+ app = ''
25579
26043
  }) {
25580
26044
  return request(OpenAPI, {
25581
26045
  method: 'POST',
25582
26046
  url: '/api/crm/views/',
26047
+ query: {
26048
+ 'app': app
26049
+ },
25583
26050
  body: requestBody,
25584
26051
  mediaType: 'application/json',
25585
26052
  errors: {
@@ -25595,7 +26062,8 @@ class CrmService {
25595
26062
  * @throws ApiError
25596
26063
  */
25597
26064
  static crmViewsRetrieve({
25598
- id
26065
+ id,
26066
+ app = ''
25599
26067
  }) {
25600
26068
  return request(OpenAPI, {
25601
26069
  method: 'GET',
@@ -25603,6 +26071,9 @@ class CrmService {
25603
26071
  path: {
25604
26072
  'id': id
25605
26073
  },
26074
+ query: {
26075
+ 'app': app
26076
+ },
25606
26077
  errors: {
25607
26078
  403: `Missing required permission \`Ibl.CRM/Views/read\`.`,
25608
26079
  404: `View not found.`
@@ -25617,7 +26088,8 @@ class CrmService {
25617
26088
  */
25618
26089
  static crmViewsUpdate({
25619
26090
  id,
25620
- requestBody
26091
+ requestBody,
26092
+ app = ''
25621
26093
  }) {
25622
26094
  return request(OpenAPI, {
25623
26095
  method: 'PUT',
@@ -25625,6 +26097,9 @@ class CrmService {
25625
26097
  path: {
25626
26098
  'id': id
25627
26099
  },
26100
+ query: {
26101
+ 'app': app
26102
+ },
25628
26103
  body: requestBody,
25629
26104
  mediaType: 'application/json',
25630
26105
  errors: {
@@ -25642,6 +26117,7 @@ class CrmService {
25642
26117
  */
25643
26118
  static crmViewsPartialUpdate({
25644
26119
  id,
26120
+ app = '',
25645
26121
  requestBody
25646
26122
  }) {
25647
26123
  return request(OpenAPI, {
@@ -25650,6 +26126,9 @@ class CrmService {
25650
26126
  path: {
25651
26127
  'id': id
25652
26128
  },
26129
+ query: {
26130
+ 'app': app
26131
+ },
25653
26132
  body: requestBody,
25654
26133
  mediaType: 'application/json',
25655
26134
  errors: {
@@ -25666,7 +26145,8 @@ class CrmService {
25666
26145
  * @throws ApiError
25667
26146
  */
25668
26147
  static crmViewsDestroy({
25669
- id
26148
+ id,
26149
+ app = ''
25670
26150
  }) {
25671
26151
  return request(OpenAPI, {
25672
26152
  method: 'DELETE',
@@ -25674,12 +26154,201 @@ class CrmService {
25674
26154
  path: {
25675
26155
  'id': id
25676
26156
  },
26157
+ query: {
26158
+ 'app': app
26159
+ },
25677
26160
  errors: {
25678
26161
  403: `Missing required permission \`Ibl.CRM/Views/delete\`.`,
25679
26162
  404: `View not found.`
25680
26163
  }
25681
26164
  });
25682
26165
  }
26166
+ /**
26167
+ * List web forms
26168
+ * Your Platform's web forms, drafts included.
26169
+ *
26170
+ * **Required permission:** `Ibl.CRM/WebForms/list`.
26171
+ * @returns PaginatedWebFormList
26172
+ * @throws ApiError
26173
+ */
26174
+ static crmWebFormsList({
26175
+ app = '',
26176
+ dateFilter,
26177
+ endDate,
26178
+ ordering,
26179
+ page,
26180
+ pageSize,
26181
+ search,
26182
+ startDate
26183
+ }) {
26184
+ return request(OpenAPI, {
26185
+ method: 'GET',
26186
+ url: '/api/crm/web-forms/',
26187
+ query: {
26188
+ 'app': app,
26189
+ 'date_filter': dateFilter,
26190
+ 'end_date': endDate,
26191
+ 'ordering': ordering,
26192
+ 'page': page,
26193
+ 'page_size': pageSize,
26194
+ 'search': search,
26195
+ 'start_date': startDate
26196
+ }
26197
+ });
26198
+ }
26199
+ /**
26200
+ * Create a web form
26201
+ * `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.
26202
+ *
26203
+ * **Required permission:** `Ibl.CRM/WebForms/action`; a new `lead_source_code` also needs `Ibl.CRM/Pipelines/action`.
26204
+ * @returns WebForm
26205
+ * @throws ApiError
26206
+ */
26207
+ static crmWebFormsCreate({
26208
+ requestBody,
26209
+ app = ''
26210
+ }) {
26211
+ return request(OpenAPI, {
26212
+ method: 'POST',
26213
+ url: '/api/crm/web-forms/',
26214
+ query: {
26215
+ 'app': app
26216
+ },
26217
+ body: requestBody,
26218
+ mediaType: 'application/json'
26219
+ });
26220
+ }
26221
+ /**
26222
+ * Retrieve a web form
26223
+ * **Required permission:** `Ibl.CRM/WebForms/read`.
26224
+ * @returns WebForm
26225
+ * @throws ApiError
26226
+ */
26227
+ static crmWebFormsRetrieve({
26228
+ slug,
26229
+ app = ''
26230
+ }) {
26231
+ return request(OpenAPI, {
26232
+ method: 'GET',
26233
+ url: '/api/crm/web-forms/{slug}/',
26234
+ path: {
26235
+ 'slug': slug
26236
+ },
26237
+ query: {
26238
+ 'app': app
26239
+ }
26240
+ });
26241
+ }
26242
+ /**
26243
+ * Replace a web form
26244
+ * **Required permission:** `Ibl.CRM/WebForms/write`; a new `routing.lead_source_code` also needs `Ibl.CRM/Pipelines/action`.
26245
+ * @returns WebForm
26246
+ * @throws ApiError
26247
+ */
26248
+ static crmWebFormsUpdate({
26249
+ slug,
26250
+ requestBody,
26251
+ app = ''
26252
+ }) {
26253
+ return request(OpenAPI, {
26254
+ method: 'PUT',
26255
+ url: '/api/crm/web-forms/{slug}/',
26256
+ path: {
26257
+ 'slug': slug
26258
+ },
26259
+ query: {
26260
+ 'app': app
26261
+ },
26262
+ body: requestBody,
26263
+ mediaType: 'application/json'
26264
+ });
26265
+ }
26266
+ /**
26267
+ * Update a web form
26268
+ * `fields`, `routing` and `metadata` are replaced whole when sent. Publishing rules apply to the form as saved.
26269
+ *
26270
+ * **Required permission:** `Ibl.CRM/WebForms/write`; a new `routing.lead_source_code` also needs `Ibl.CRM/Pipelines/action`.
26271
+ * @returns WebForm
26272
+ * @throws ApiError
26273
+ */
26274
+ static crmWebFormsPartialUpdate({
26275
+ slug,
26276
+ app = '',
26277
+ requestBody
26278
+ }) {
26279
+ return request(OpenAPI, {
26280
+ method: 'PATCH',
26281
+ url: '/api/crm/web-forms/{slug}/',
26282
+ path: {
26283
+ 'slug': slug
26284
+ },
26285
+ query: {
26286
+ 'app': app
26287
+ },
26288
+ body: requestBody,
26289
+ mediaType: 'application/json'
26290
+ });
26291
+ }
26292
+ /**
26293
+ * Delete a web form
26294
+ * Deletes the form and its submissions log; the persons, deals and notes it filed stay.
26295
+ *
26296
+ * **Required permission:** `Ibl.CRM/WebForms/delete`.
26297
+ * @returns void
26298
+ * @throws ApiError
26299
+ */
26300
+ static crmWebFormsDestroy({
26301
+ slug,
26302
+ app = ''
26303
+ }) {
26304
+ return request(OpenAPI, {
26305
+ method: 'DELETE',
26306
+ url: '/api/crm/web-forms/{slug}/',
26307
+ path: {
26308
+ 'slug': slug
26309
+ },
26310
+ query: {
26311
+ 'app': app
26312
+ }
26313
+ });
26314
+ }
26315
+ /**
26316
+ * A web form's submissions
26317
+ * Newest first, paginated; `date_filter` (or `start_date` + `end_date`) narrows to submissions in a window.
26318
+ *
26319
+ * **Required permission:** `Ibl.CRM/WebForms/list`.
26320
+ * @returns PaginatedWebFormSubmissionList
26321
+ * @throws ApiError
26322
+ */
26323
+ static crmWebFormsSubmissionsList({
26324
+ slug,
26325
+ app = '',
26326
+ dateFilter,
26327
+ endDate,
26328
+ page,
26329
+ pageSize,
26330
+ startDate
26331
+ }) {
26332
+ return request(OpenAPI, {
26333
+ method: 'GET',
26334
+ url: '/api/crm/web-forms/{slug}/submissions/',
26335
+ path: {
26336
+ 'slug': slug
26337
+ },
26338
+ query: {
26339
+ 'app': app,
26340
+ 'date_filter': dateFilter,
26341
+ 'end_date': endDate,
26342
+ 'page': page,
26343
+ 'page_size': pageSize,
26344
+ 'start_date': startDate
26345
+ },
26346
+ errors: {
26347
+ 403: `Missing \`Ibl.CRM/WebForms/list\`.`,
26348
+ 404: `Web form not found.`
26349
+ }
26350
+ });
26351
+ }
25683
26352
  }
25684
26353
 
25685
26354
  class CustomDomainsService {
@@ -28863,6 +29532,39 @@ class SkillsService {
28863
29532
  }
28864
29533
  }
28865
29534
 
29535
+ class V1CoursesService {
29536
+ /**
29537
+ * Get course metadata
29538
+ * 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.
29539
+ *
29540
+ * 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.
29541
+ * @returns any
29542
+ * @throws ApiError
29543
+ */
29544
+ static v1CoursesMetadataRetrieve({
29545
+ courseId,
29546
+ courseKey,
29547
+ iblaiOrg
29548
+ }) {
29549
+ return request(OpenAPI, {
29550
+ method: 'GET',
29551
+ url: '/v1/courses/metadata',
29552
+ headers: {
29553
+ 'iblai-org': iblaiOrg
29554
+ },
29555
+ query: {
29556
+ 'course_id': courseId,
29557
+ 'course_key': courseKey
29558
+ },
29559
+ errors: {
29560
+ 400: `course_id missing, or a service account omitted iblai-org.`,
29561
+ 403: `iblai-org names another platform.`,
29562
+ 404: `Course or platform not found.`
29563
+ }
29564
+ });
29565
+ }
29566
+ }
29567
+
28866
29568
  class V1LmsService {
28867
29569
  /**
28868
29570
  * Call edX as a user
@@ -29217,6 +29919,7 @@ exports.ReportsService = ReportsService;
29217
29919
  exports.ScimService = ScimService;
29218
29920
  exports.SearchService = SearchService;
29219
29921
  exports.SkillsService = SkillsService;
29922
+ exports.V1CoursesService = V1CoursesService;
29220
29923
  exports.V1LmsService = V1LmsService;
29221
29924
  exports.V1RbacService = V1RbacService;
29222
29925
  exports.V1StudioService = V1StudioService;