@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.umd.js CHANGED
@@ -114,7 +114,7 @@
114
114
 
115
115
  const OpenAPI = {
116
116
  BASE: 'https://base.manager.iblai.app',
117
- VERSION: '4.450.0-core',
117
+ VERSION: '4.452.0-core',
118
118
  WITH_CREDENTIALS: false,
119
119
  CREDENTIALS: 'include',
120
120
  TOKEN: undefined,
@@ -2245,6 +2245,32 @@
2245
2245
  TransactionTypeEnum["REFUND"] = "refund";
2246
2246
  })(exports.TransactionTypeEnum || (exports.TransactionTypeEnum = {}));
2247
2247
 
2248
+ /* generated using openapi-typescript-codegen -- do not edit */
2249
+ /* istanbul ignore file */
2250
+ /* tslint:disable */
2251
+ /* eslint-disable */
2252
+ /**
2253
+ * * `text` - text
2254
+ * * `email` - email
2255
+ * * `tel` - tel
2256
+ * * `number` - number
2257
+ * * `date` - date
2258
+ * * `select` - select
2259
+ * * `textarea` - textarea
2260
+ * * `checkbox` - checkbox
2261
+ */
2262
+ exports.Type240Enum = void 0;
2263
+ (function (Type240Enum) {
2264
+ Type240Enum["TEXT"] = "text";
2265
+ Type240Enum["EMAIL"] = "email";
2266
+ Type240Enum["TEL"] = "tel";
2267
+ Type240Enum["NUMBER"] = "number";
2268
+ Type240Enum["DATE"] = "date";
2269
+ Type240Enum["SELECT"] = "select";
2270
+ Type240Enum["TEXTAREA"] = "textarea";
2271
+ Type240Enum["CHECKBOX"] = "checkbox";
2272
+ })(exports.Type240Enum || (exports.Type240Enum = {}));
2273
+
2248
2274
  /* generated using openapi-typescript-codegen -- do not edit */
2249
2275
  /* istanbul ignore file */
2250
2276
  /* tslint:disable */
@@ -23513,6 +23539,7 @@
23513
23539
  * @throws ApiError
23514
23540
  */
23515
23541
  static crmActivitiesList({
23542
+ app = '',
23516
23543
  dateFilter,
23517
23544
  deal,
23518
23545
  endDate,
@@ -23534,6 +23561,7 @@
23534
23561
  method: 'GET',
23535
23562
  url: '/api/crm/activities/',
23536
23563
  query: {
23564
+ 'app': app,
23537
23565
  'date_filter': dateFilter,
23538
23566
  'deal': deal,
23539
23567
  'end_date': endDate,
@@ -23566,11 +23594,15 @@
23566
23594
  * @throws ApiError
23567
23595
  */
23568
23596
  static crmActivitiesCreate({
23569
- requestBody
23597
+ requestBody,
23598
+ app = ''
23570
23599
  }) {
23571
23600
  return request(OpenAPI, {
23572
23601
  method: 'POST',
23573
23602
  url: '/api/crm/activities/',
23603
+ query: {
23604
+ 'app': app
23605
+ },
23574
23606
  body: requestBody,
23575
23607
  mediaType: 'application/json',
23576
23608
  errors: {
@@ -23588,7 +23620,8 @@
23588
23620
  * @throws ApiError
23589
23621
  */
23590
23622
  static crmActivitiesRetrieve({
23591
- id
23623
+ id,
23624
+ app = ''
23592
23625
  }) {
23593
23626
  return request(OpenAPI, {
23594
23627
  method: 'GET',
@@ -23596,6 +23629,9 @@
23596
23629
  path: {
23597
23630
  'id': id
23598
23631
  },
23632
+ query: {
23633
+ 'app': app
23634
+ },
23599
23635
  errors: {
23600
23636
  403: `Missing required permission \`Ibl.CRM/Activities/read\`.`,
23601
23637
  404: `Activity not found.`
@@ -23612,7 +23648,8 @@
23612
23648
  */
23613
23649
  static crmActivitiesUpdate({
23614
23650
  id,
23615
- requestBody
23651
+ requestBody,
23652
+ app = ''
23616
23653
  }) {
23617
23654
  return request(OpenAPI, {
23618
23655
  method: 'PUT',
@@ -23620,6 +23657,9 @@
23620
23657
  path: {
23621
23658
  'id': id
23622
23659
  },
23660
+ query: {
23661
+ 'app': app
23662
+ },
23623
23663
  body: requestBody,
23624
23664
  mediaType: 'application/json',
23625
23665
  errors: {
@@ -23639,6 +23679,7 @@
23639
23679
  */
23640
23680
  static crmActivitiesPartialUpdate({
23641
23681
  id,
23682
+ app = '',
23642
23683
  requestBody
23643
23684
  }) {
23644
23685
  return request(OpenAPI, {
@@ -23647,6 +23688,9 @@
23647
23688
  path: {
23648
23689
  'id': id
23649
23690
  },
23691
+ query: {
23692
+ 'app': app
23693
+ },
23650
23694
  body: requestBody,
23651
23695
  mediaType: 'application/json',
23652
23696
  errors: {
@@ -23665,7 +23709,8 @@
23665
23709
  * @throws ApiError
23666
23710
  */
23667
23711
  static crmActivitiesDestroy({
23668
- id
23712
+ id,
23713
+ app = ''
23669
23714
  }) {
23670
23715
  return request(OpenAPI, {
23671
23716
  method: 'DELETE',
@@ -23673,6 +23718,9 @@
23673
23718
  path: {
23674
23719
  'id': id
23675
23720
  },
23721
+ query: {
23722
+ 'app': app
23723
+ },
23676
23724
  errors: {
23677
23725
  403: `Missing required permission \`Ibl.CRM/Activities/delete\`.`,
23678
23726
  404: `Activity not found.`
@@ -23688,7 +23736,8 @@
23688
23736
  * @throws ApiError
23689
23737
  */
23690
23738
  static crmActivitiesDoneCreate({
23691
- id
23739
+ id,
23740
+ app = ''
23692
23741
  }) {
23693
23742
  return request(OpenAPI, {
23694
23743
  method: 'POST',
@@ -23696,6 +23745,9 @@
23696
23745
  path: {
23697
23746
  'id': id
23698
23747
  },
23748
+ query: {
23749
+ 'app': app
23750
+ },
23699
23751
  errors: {
23700
23752
  403: `Missing required permission \`Ibl.CRM/Activities/write\`.`,
23701
23753
  404: `Activity not found.`
@@ -23711,6 +23763,7 @@
23711
23763
  * @throws ApiError
23712
23764
  */
23713
23765
  static crmDealsList({
23766
+ app = '',
23714
23767
  createdAtGte,
23715
23768
  createdAtLte,
23716
23769
  dateFilter,
@@ -23736,6 +23789,7 @@
23736
23789
  method: 'GET',
23737
23790
  url: '/api/crm/deals/',
23738
23791
  query: {
23792
+ 'app': app,
23739
23793
  'created_at__gte': createdAtGte,
23740
23794
  'created_at__lte': createdAtLte,
23741
23795
  'date_filter': dateFilter,
@@ -23772,11 +23826,15 @@
23772
23826
  * @throws ApiError
23773
23827
  */
23774
23828
  static crmDealsCreate({
23775
- requestBody
23829
+ requestBody,
23830
+ app = ''
23776
23831
  }) {
23777
23832
  return request(OpenAPI, {
23778
23833
  method: 'POST',
23779
23834
  url: '/api/crm/deals/',
23835
+ query: {
23836
+ 'app': app
23837
+ },
23780
23838
  body: requestBody,
23781
23839
  mediaType: 'application/json',
23782
23840
  errors: {
@@ -23794,7 +23852,8 @@
23794
23852
  * @throws ApiError
23795
23853
  */
23796
23854
  static crmDealsRetrieve({
23797
- id
23855
+ id,
23856
+ app = ''
23798
23857
  }) {
23799
23858
  return request(OpenAPI, {
23800
23859
  method: 'GET',
@@ -23802,6 +23861,9 @@
23802
23861
  path: {
23803
23862
  'id': id
23804
23863
  },
23864
+ query: {
23865
+ 'app': app
23866
+ },
23805
23867
  errors: {
23806
23868
  403: `Missing required permission \`Ibl.CRM/Deals/read\`.`,
23807
23869
  404: `Deal not found.`
@@ -23818,7 +23880,8 @@
23818
23880
  */
23819
23881
  static crmDealsUpdate({
23820
23882
  id,
23821
- requestBody
23883
+ requestBody,
23884
+ app = ''
23822
23885
  }) {
23823
23886
  return request(OpenAPI, {
23824
23887
  method: 'PUT',
@@ -23826,6 +23889,9 @@
23826
23889
  path: {
23827
23890
  'id': id
23828
23891
  },
23892
+ query: {
23893
+ 'app': app
23894
+ },
23829
23895
  body: requestBody,
23830
23896
  mediaType: 'application/json',
23831
23897
  errors: {
@@ -23845,6 +23911,7 @@
23845
23911
  */
23846
23912
  static crmDealsPartialUpdate({
23847
23913
  id,
23914
+ app = '',
23848
23915
  requestBody
23849
23916
  }) {
23850
23917
  return request(OpenAPI, {
@@ -23853,6 +23920,9 @@
23853
23920
  path: {
23854
23921
  'id': id
23855
23922
  },
23923
+ query: {
23924
+ 'app': app
23925
+ },
23856
23926
  body: requestBody,
23857
23927
  mediaType: 'application/json',
23858
23928
  errors: {
@@ -23871,7 +23941,8 @@
23871
23941
  * @throws ApiError
23872
23942
  */
23873
23943
  static crmDealsDestroy({
23874
- id
23944
+ id,
23945
+ app = ''
23875
23946
  }) {
23876
23947
  return request(OpenAPI, {
23877
23948
  method: 'DELETE',
@@ -23879,6 +23950,9 @@
23879
23950
  path: {
23880
23951
  'id': id
23881
23952
  },
23953
+ query: {
23954
+ 'app': app
23955
+ },
23882
23956
  errors: {
23883
23957
  403: `Missing required permission \`Ibl.CRM/Deals/delete\`.`,
23884
23958
  404: `Deal not found.`
@@ -23894,7 +23968,8 @@
23894
23968
  * @throws ApiError
23895
23969
  */
23896
23970
  static crmDealsHistoryList({
23897
- id
23971
+ id,
23972
+ app = ''
23898
23973
  }) {
23899
23974
  return request(OpenAPI, {
23900
23975
  method: 'GET',
@@ -23902,6 +23977,9 @@
23902
23977
  path: {
23903
23978
  'id': id
23904
23979
  },
23980
+ query: {
23981
+ 'app': app
23982
+ },
23905
23983
  errors: {
23906
23984
  403: `Missing the record's \`read\` permission.`,
23907
23985
  404: `Record not found.`
@@ -23918,7 +23996,8 @@
23918
23996
  */
23919
23997
  static crmDealsLostCreate({
23920
23998
  id,
23921
- requestBody
23999
+ requestBody,
24000
+ app = ''
23922
24001
  }) {
23923
24002
  return request(OpenAPI, {
23924
24003
  method: 'POST',
@@ -23926,6 +24005,9 @@
23926
24005
  path: {
23927
24006
  'id': id
23928
24007
  },
24008
+ query: {
24009
+ 'app': app
24010
+ },
23929
24011
  body: requestBody,
23930
24012
  mediaType: 'application/json',
23931
24013
  errors: {
@@ -23935,6 +24017,32 @@
23935
24017
  }
23936
24018
  });
23937
24019
  }
24020
+ /**
24021
+ * Merge into this record's metadata
24022
+ * 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.
24023
+ *
24024
+ * **Required permission:** the record's `write` verb.
24025
+ * @returns Deal
24026
+ * @throws ApiError
24027
+ */
24028
+ static crmDealsMetadataPartialUpdate({
24029
+ id,
24030
+ app = '',
24031
+ requestBody
24032
+ }) {
24033
+ return request(OpenAPI, {
24034
+ method: 'PATCH',
24035
+ url: '/api/crm/deals/{id}/metadata/',
24036
+ path: {
24037
+ 'id': id
24038
+ },
24039
+ query: {
24040
+ 'app': app
24041
+ },
24042
+ body: requestBody,
24043
+ mediaType: 'application/json'
24044
+ });
24045
+ }
23938
24046
  /**
23939
24047
  * Move a deal to a different stage
23940
24048
  * 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.
@@ -23945,6 +24053,7 @@
23945
24053
  */
23946
24054
  static crmDealsMoveStageCreate({
23947
24055
  id,
24056
+ app = '',
23948
24057
  requestBody
23949
24058
  }) {
23950
24059
  return request(OpenAPI, {
@@ -23953,6 +24062,9 @@
23953
24062
  path: {
23954
24063
  'id': id
23955
24064
  },
24065
+ query: {
24066
+ 'app': app
24067
+ },
23956
24068
  body: requestBody,
23957
24069
  mediaType: 'application/json',
23958
24070
  errors: {
@@ -23972,7 +24084,8 @@
23972
24084
  */
23973
24085
  static crmDealsTagsCreate({
23974
24086
  id,
23975
- requestBody
24087
+ requestBody,
24088
+ app = ''
23976
24089
  }) {
23977
24090
  return request(OpenAPI, {
23978
24091
  method: 'POST',
@@ -23980,6 +24093,9 @@
23980
24093
  path: {
23981
24094
  'id': id
23982
24095
  },
24096
+ query: {
24097
+ 'app': app
24098
+ },
23983
24099
  body: requestBody,
23984
24100
  mediaType: 'application/json',
23985
24101
  errors: {
@@ -24000,7 +24116,8 @@
24000
24116
  */
24001
24117
  static crmDealsTagsDestroy({
24002
24118
  id,
24003
- tagId
24119
+ tagId,
24120
+ app = ''
24004
24121
  }) {
24005
24122
  return request(OpenAPI, {
24006
24123
  method: 'DELETE',
@@ -24009,6 +24126,9 @@
24009
24126
  'id': id,
24010
24127
  'tag_id': tagId
24011
24128
  },
24129
+ query: {
24130
+ 'app': app
24131
+ },
24012
24132
  errors: {
24013
24133
  403: `No response body`,
24014
24134
  404: `No response body`
@@ -24025,6 +24145,7 @@
24025
24145
  */
24026
24146
  static crmDealsWonCreate({
24027
24147
  id,
24148
+ app = '',
24028
24149
  requestBody
24029
24150
  }) {
24030
24151
  return request(OpenAPI, {
@@ -24033,6 +24154,9 @@
24033
24154
  path: {
24034
24155
  'id': id
24035
24156
  },
24157
+ query: {
24158
+ 'app': app
24159
+ },
24036
24160
  body: requestBody,
24037
24161
  mediaType: 'application/json',
24038
24162
  errors: {
@@ -24051,6 +24175,7 @@
24051
24175
  * @throws ApiError
24052
24176
  */
24053
24177
  static crmDealsBoardRetrieve({
24178
+ app = '',
24054
24179
  createdAtGte,
24055
24180
  createdAtLte,
24056
24181
  dateFilter,
@@ -24074,6 +24199,7 @@
24074
24199
  method: 'GET',
24075
24200
  url: '/api/crm/deals/board/',
24076
24201
  query: {
24202
+ 'app': app,
24077
24203
  'created_at__gte': createdAtGte,
24078
24204
  'created_at__lte': createdAtLte,
24079
24205
  'date_filter': dateFilter,
@@ -24109,6 +24235,7 @@
24109
24235
  * @throws ApiError
24110
24236
  */
24111
24237
  static crmFavoritesList({
24238
+ app = '',
24112
24239
  dateFilter,
24113
24240
  deal,
24114
24241
  endDate,
@@ -24123,6 +24250,7 @@
24123
24250
  method: 'GET',
24124
24251
  url: '/api/crm/favorites/',
24125
24252
  query: {
24253
+ 'app': app,
24126
24254
  'date_filter': dateFilter,
24127
24255
  'deal': deal,
24128
24256
  'end_date': endDate,
@@ -24148,11 +24276,15 @@
24148
24276
  * @throws ApiError
24149
24277
  */
24150
24278
  static crmFavoritesCreate({
24279
+ app = '',
24151
24280
  requestBody
24152
24281
  }) {
24153
24282
  return request(OpenAPI, {
24154
24283
  method: 'POST',
24155
24284
  url: '/api/crm/favorites/',
24285
+ query: {
24286
+ 'app': app
24287
+ },
24156
24288
  body: requestBody,
24157
24289
  mediaType: 'application/json',
24158
24290
  errors: {
@@ -24168,7 +24300,8 @@
24168
24300
  * @throws ApiError
24169
24301
  */
24170
24302
  static crmFavoritesRetrieve({
24171
- id
24303
+ id,
24304
+ app = ''
24172
24305
  }) {
24173
24306
  return request(OpenAPI, {
24174
24307
  method: 'GET',
@@ -24176,6 +24309,9 @@
24176
24309
  path: {
24177
24310
  'id': id
24178
24311
  },
24312
+ query: {
24313
+ 'app': app
24314
+ },
24179
24315
  errors: {
24180
24316
  403: `Missing required permission \`Ibl.CRM/Favorites/read\`.`,
24181
24317
  404: `Favorite not found.`
@@ -24191,7 +24327,8 @@
24191
24327
  * @throws ApiError
24192
24328
  */
24193
24329
  static crmFavoritesDestroy({
24194
- id
24330
+ id,
24331
+ app = ''
24195
24332
  }) {
24196
24333
  return request(OpenAPI, {
24197
24334
  method: 'DELETE',
@@ -24199,6 +24336,9 @@
24199
24336
  path: {
24200
24337
  'id': id
24201
24338
  },
24339
+ query: {
24340
+ 'app': app
24341
+ },
24202
24342
  errors: {
24203
24343
  403: `Missing required permission \`Ibl.CRM/Favorites/delete\`.`,
24204
24344
  404: `Favorite not found.`
@@ -24214,6 +24354,7 @@
24214
24354
  * @throws ApiError
24215
24355
  */
24216
24356
  static crmLeadSourcesList({
24357
+ app = '',
24217
24358
  code,
24218
24359
  dateFilter,
24219
24360
  endDate,
@@ -24228,6 +24369,7 @@
24228
24369
  method: 'GET',
24229
24370
  url: '/api/crm/lead-sources/',
24230
24371
  query: {
24372
+ 'app': app,
24231
24373
  'code': code,
24232
24374
  'date_filter': dateFilter,
24233
24375
  'end_date': endDate,
@@ -24253,11 +24395,15 @@
24253
24395
  * @throws ApiError
24254
24396
  */
24255
24397
  static crmLeadSourcesCreate({
24256
- requestBody
24398
+ requestBody,
24399
+ app = ''
24257
24400
  }) {
24258
24401
  return request(OpenAPI, {
24259
24402
  method: 'POST',
24260
24403
  url: '/api/crm/lead-sources/',
24404
+ query: {
24405
+ 'app': app
24406
+ },
24261
24407
  body: requestBody,
24262
24408
  mediaType: 'application/json',
24263
24409
  errors: {
@@ -24275,7 +24421,8 @@
24275
24421
  * @throws ApiError
24276
24422
  */
24277
24423
  static crmLeadSourcesRetrieve({
24278
- id
24424
+ id,
24425
+ app = ''
24279
24426
  }) {
24280
24427
  return request(OpenAPI, {
24281
24428
  method: 'GET',
@@ -24283,6 +24430,9 @@
24283
24430
  path: {
24284
24431
  'id': id
24285
24432
  },
24433
+ query: {
24434
+ 'app': app
24435
+ },
24286
24436
  errors: {
24287
24437
  403: `Missing required permission \`Ibl.CRM/Pipelines/read\`.`,
24288
24438
  404: `LeadSource not found.`
@@ -24299,7 +24449,8 @@
24299
24449
  */
24300
24450
  static crmLeadSourcesUpdate({
24301
24451
  id,
24302
- requestBody
24452
+ requestBody,
24453
+ app = ''
24303
24454
  }) {
24304
24455
  return request(OpenAPI, {
24305
24456
  method: 'PUT',
@@ -24307,6 +24458,9 @@
24307
24458
  path: {
24308
24459
  'id': id
24309
24460
  },
24461
+ query: {
24462
+ 'app': app
24463
+ },
24310
24464
  body: requestBody,
24311
24465
  mediaType: 'application/json',
24312
24466
  errors: {
@@ -24326,6 +24480,7 @@
24326
24480
  */
24327
24481
  static crmLeadSourcesPartialUpdate({
24328
24482
  id,
24483
+ app = '',
24329
24484
  requestBody
24330
24485
  }) {
24331
24486
  return request(OpenAPI, {
@@ -24334,6 +24489,9 @@
24334
24489
  path: {
24335
24490
  'id': id
24336
24491
  },
24492
+ query: {
24493
+ 'app': app
24494
+ },
24337
24495
  body: requestBody,
24338
24496
  mediaType: 'application/json',
24339
24497
  errors: {
@@ -24352,7 +24510,8 @@
24352
24510
  * @throws ApiError
24353
24511
  */
24354
24512
  static crmLeadSourcesDestroy({
24355
- id
24513
+ id,
24514
+ app = ''
24356
24515
  }) {
24357
24516
  return request(OpenAPI, {
24358
24517
  method: 'DELETE',
@@ -24360,24 +24519,57 @@
24360
24519
  path: {
24361
24520
  'id': id
24362
24521
  },
24522
+ query: {
24523
+ 'app': app
24524
+ },
24363
24525
  errors: {
24364
24526
  403: `Missing required permission \`Ibl.CRM/Pipelines/delete\`.`,
24365
24527
  404: `LeadSource not found.`
24366
24528
  }
24367
24529
  });
24368
24530
  }
24531
+ /**
24532
+ * List the Platform's members
24533
+ * 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`.
24534
+ *
24535
+ * **Required permission:** `list` on persons, organizations, deals or activities (any one).
24536
+ * @returns PaginatedMemberList
24537
+ * @throws ApiError
24538
+ */
24539
+ static crmMembersList({
24540
+ app = '',
24541
+ page,
24542
+ pageSize,
24543
+ query
24544
+ }) {
24545
+ return request(OpenAPI, {
24546
+ method: 'GET',
24547
+ url: '/api/crm/members/',
24548
+ query: {
24549
+ 'app': app,
24550
+ 'page': page,
24551
+ 'page_size': pageSize,
24552
+ 'query': query
24553
+ },
24554
+ errors: {
24555
+ 403: `No CRM list permission.`
24556
+ }
24557
+ });
24558
+ }
24369
24559
  /**
24370
24560
  * List organizations
24371
- * Returns a paginated list of organizations in your Platform. Supports filtering by `owner` and by `name` (case-insensitive substring match).
24561
+ * 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).
24372
24562
  *
24373
24563
  * **Required permission:** `Ibl.CRM/Organizations/list`.
24374
24564
  * @returns PaginatedOrganizationList
24375
24565
  * @throws ApiError
24376
24566
  */
24377
24567
  static crmOrganizationsList({
24568
+ app = '',
24378
24569
  dateFilter,
24379
24570
  endDate,
24380
24571
  name,
24572
+ nameIexact,
24381
24573
  ordering,
24382
24574
  owner,
24383
24575
  page,
@@ -24390,9 +24582,11 @@
24390
24582
  method: 'GET',
24391
24583
  url: '/api/crm/organizations/',
24392
24584
  query: {
24585
+ 'app': app,
24393
24586
  'date_filter': dateFilter,
24394
24587
  'end_date': endDate,
24395
24588
  'name': name,
24589
+ 'name__iexact': nameIexact,
24396
24590
  'ordering': ordering,
24397
24591
  'owner': owner,
24398
24592
  'page': page,
@@ -24416,11 +24610,15 @@
24416
24610
  * @throws ApiError
24417
24611
  */
24418
24612
  static crmOrganizationsCreate({
24419
- requestBody
24613
+ requestBody,
24614
+ app = ''
24420
24615
  }) {
24421
24616
  return request(OpenAPI, {
24422
24617
  method: 'POST',
24423
24618
  url: '/api/crm/organizations/',
24619
+ query: {
24620
+ 'app': app
24621
+ },
24424
24622
  body: requestBody,
24425
24623
  mediaType: 'application/json',
24426
24624
  errors: {
@@ -24438,7 +24636,8 @@
24438
24636
  * @throws ApiError
24439
24637
  */
24440
24638
  static crmOrganizationsRetrieve({
24441
- id
24639
+ id,
24640
+ app = ''
24442
24641
  }) {
24443
24642
  return request(OpenAPI, {
24444
24643
  method: 'GET',
@@ -24446,6 +24645,9 @@
24446
24645
  path: {
24447
24646
  'id': id
24448
24647
  },
24648
+ query: {
24649
+ 'app': app
24650
+ },
24449
24651
  errors: {
24450
24652
  403: `Missing required permission \`Ibl.CRM/Organizations/read\`.`,
24451
24653
  404: `Organization not found.`
@@ -24462,7 +24664,8 @@
24462
24664
  */
24463
24665
  static crmOrganizationsUpdate({
24464
24666
  id,
24465
- requestBody
24667
+ requestBody,
24668
+ app = ''
24466
24669
  }) {
24467
24670
  return request(OpenAPI, {
24468
24671
  method: 'PUT',
@@ -24470,6 +24673,9 @@
24470
24673
  path: {
24471
24674
  'id': id
24472
24675
  },
24676
+ query: {
24677
+ 'app': app
24678
+ },
24473
24679
  body: requestBody,
24474
24680
  mediaType: 'application/json',
24475
24681
  errors: {
@@ -24489,6 +24695,7 @@
24489
24695
  */
24490
24696
  static crmOrganizationsPartialUpdate({
24491
24697
  id,
24698
+ app = '',
24492
24699
  requestBody
24493
24700
  }) {
24494
24701
  return request(OpenAPI, {
@@ -24497,6 +24704,9 @@
24497
24704
  path: {
24498
24705
  'id': id
24499
24706
  },
24707
+ query: {
24708
+ 'app': app
24709
+ },
24500
24710
  body: requestBody,
24501
24711
  mediaType: 'application/json',
24502
24712
  errors: {
@@ -24515,7 +24725,8 @@
24515
24725
  * @throws ApiError
24516
24726
  */
24517
24727
  static crmOrganizationsDestroy({
24518
- id
24728
+ id,
24729
+ app = ''
24519
24730
  }) {
24520
24731
  return request(OpenAPI, {
24521
24732
  method: 'DELETE',
@@ -24523,6 +24734,9 @@
24523
24734
  path: {
24524
24735
  'id': id
24525
24736
  },
24737
+ query: {
24738
+ 'app': app
24739
+ },
24526
24740
  errors: {
24527
24741
  403: `Missing required permission \`Ibl.CRM/Organizations/delete\`.`,
24528
24742
  404: `Organization not found.`
@@ -24538,7 +24752,8 @@
24538
24752
  * @throws ApiError
24539
24753
  */
24540
24754
  static crmOrganizationsHistoryList({
24541
- id
24755
+ id,
24756
+ app = ''
24542
24757
  }) {
24543
24758
  return request(OpenAPI, {
24544
24759
  method: 'GET',
@@ -24546,12 +24761,41 @@
24546
24761
  path: {
24547
24762
  'id': id
24548
24763
  },
24764
+ query: {
24765
+ 'app': app
24766
+ },
24549
24767
  errors: {
24550
24768
  403: `Missing the record's \`read\` permission.`,
24551
24769
  404: `Record not found.`
24552
24770
  }
24553
24771
  });
24554
24772
  }
24773
+ /**
24774
+ * Merge into this record's metadata
24775
+ * 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.
24776
+ *
24777
+ * **Required permission:** the record's `write` verb.
24778
+ * @returns Organization
24779
+ * @throws ApiError
24780
+ */
24781
+ static crmOrganizationsMetadataPartialUpdate({
24782
+ id,
24783
+ app = '',
24784
+ requestBody
24785
+ }) {
24786
+ return request(OpenAPI, {
24787
+ method: 'PATCH',
24788
+ url: '/api/crm/organizations/{id}/metadata/',
24789
+ path: {
24790
+ 'id': id
24791
+ },
24792
+ query: {
24793
+ 'app': app
24794
+ },
24795
+ body: requestBody,
24796
+ mediaType: 'application/json'
24797
+ });
24798
+ }
24555
24799
  /**
24556
24800
  * Attach a tag to this record
24557
24801
  * 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.
@@ -24562,7 +24806,8 @@
24562
24806
  */
24563
24807
  static crmOrganizationsTagsCreate({
24564
24808
  id,
24565
- requestBody
24809
+ requestBody,
24810
+ app = ''
24566
24811
  }) {
24567
24812
  return request(OpenAPI, {
24568
24813
  method: 'POST',
@@ -24570,6 +24815,9 @@
24570
24815
  path: {
24571
24816
  'id': id
24572
24817
  },
24818
+ query: {
24819
+ 'app': app
24820
+ },
24573
24821
  body: requestBody,
24574
24822
  mediaType: 'application/json',
24575
24823
  errors: {
@@ -24590,7 +24838,8 @@
24590
24838
  */
24591
24839
  static crmOrganizationsTagsDestroy({
24592
24840
  id,
24593
- tagId
24841
+ tagId,
24842
+ app = ''
24594
24843
  }) {
24595
24844
  return request(OpenAPI, {
24596
24845
  method: 'DELETE',
@@ -24599,12 +24848,74 @@
24599
24848
  'id': id,
24600
24849
  'tag_id': tagId
24601
24850
  },
24851
+ query: {
24852
+ 'app': app
24853
+ },
24602
24854
  errors: {
24603
24855
  403: `No response body`,
24604
24856
  404: `No response body`
24605
24857
  }
24606
24858
  });
24607
24859
  }
24860
+ /**
24861
+ * A published web form (public)
24862
+ * 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.
24863
+ * @returns WebFormPublic
24864
+ * @throws ApiError
24865
+ */
24866
+ static crmOrgsWebFormsRetrieve({
24867
+ org,
24868
+ slug,
24869
+ app = ''
24870
+ }) {
24871
+ return request(OpenAPI, {
24872
+ method: 'GET',
24873
+ url: '/api/crm/orgs/{org}/web-forms/{slug}/',
24874
+ path: {
24875
+ 'org': org,
24876
+ 'slug': slug
24877
+ },
24878
+ query: {
24879
+ 'app': app
24880
+ },
24881
+ errors: {
24882
+ 404: `No published form here.`
24883
+ }
24884
+ });
24885
+ }
24886
+ /**
24887
+ * Submit a published web form (public)
24888
+ * 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).
24889
+ * @returns WebFormSubmitResponse
24890
+ * @throws ApiError
24891
+ */
24892
+ static crmOrgsWebFormsSubmissionsCreate({
24893
+ org,
24894
+ slug,
24895
+ requestBody,
24896
+ app = ''
24897
+ }) {
24898
+ return request(OpenAPI, {
24899
+ method: 'POST',
24900
+ url: '/api/crm/orgs/{org}/web-forms/{slug}/submissions/',
24901
+ path: {
24902
+ 'org': org,
24903
+ 'slug': slug
24904
+ },
24905
+ query: {
24906
+ 'app': app
24907
+ },
24908
+ body: requestBody,
24909
+ mediaType: 'application/json',
24910
+ errors: {
24911
+ 400: `\`{issues: {<field key>|non_field_errors: [message]}}\`.`,
24912
+ 404: `No published form here.`,
24913
+ 413: `Body over 64 KB.`,
24914
+ 415: `Not JSON.`,
24915
+ 429: `Too many submissions from this IP.`
24916
+ }
24917
+ });
24918
+ }
24608
24919
  /**
24609
24920
  * CRM overview
24610
24921
  * 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.
@@ -24616,6 +24927,7 @@
24616
24927
  * @throws ApiError
24617
24928
  */
24618
24929
  static crmOverviewRetrieve({
24930
+ app = '',
24619
24931
  dateFilter,
24620
24932
  endDate,
24621
24933
  pipeline,
@@ -24625,6 +24937,7 @@
24625
24937
  method: 'GET',
24626
24938
  url: '/api/crm/overview/',
24627
24939
  query: {
24940
+ 'app': app,
24628
24941
  'date_filter': dateFilter,
24629
24942
  'end_date': endDate,
24630
24943
  'pipeline': pipeline,
@@ -24639,7 +24952,7 @@
24639
24952
  }
24640
24953
  /**
24641
24954
  * List persons
24642
- * 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`.
24955
+ * 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`.
24643
24956
  *
24644
24957
  * **Required permission:** `Ibl.CRM/Persons/list`.
24645
24958
  * @returns PaginatedPersonList
@@ -24647,6 +24960,7 @@
24647
24960
  */
24648
24961
  static crmPersonsList({
24649
24962
  active,
24963
+ app = '',
24650
24964
  createdAtGte,
24651
24965
  createdAtLte,
24652
24966
  dateFilter,
@@ -24658,6 +24972,7 @@
24658
24972
  owner,
24659
24973
  page,
24660
24974
  pageSize,
24975
+ primaryEmail,
24661
24976
  search,
24662
24977
  startDate,
24663
24978
  tags
@@ -24667,6 +24982,7 @@
24667
24982
  url: '/api/crm/persons/',
24668
24983
  query: {
24669
24984
  'active': active,
24985
+ 'app': app,
24670
24986
  'created_at__gte': createdAtGte,
24671
24987
  'created_at__lte': createdAtLte,
24672
24988
  'date_filter': dateFilter,
@@ -24678,6 +24994,7 @@
24678
24994
  'owner': owner,
24679
24995
  'page': page,
24680
24996
  'page_size': pageSize,
24997
+ 'primary_email': primaryEmail,
24681
24998
  'search': search,
24682
24999
  'start_date': startDate,
24683
25000
  'tags': tags
@@ -24697,11 +25014,15 @@
24697
25014
  * @throws ApiError
24698
25015
  */
24699
25016
  static crmPersonsCreate({
24700
- requestBody
25017
+ requestBody,
25018
+ app = ''
24701
25019
  }) {
24702
25020
  return request(OpenAPI, {
24703
25021
  method: 'POST',
24704
25022
  url: '/api/crm/persons/',
25023
+ query: {
25024
+ 'app': app
25025
+ },
24705
25026
  body: requestBody,
24706
25027
  mediaType: 'application/json',
24707
25028
  errors: {
@@ -24719,7 +25040,8 @@
24719
25040
  * @throws ApiError
24720
25041
  */
24721
25042
  static crmPersonsRetrieve({
24722
- id
25043
+ id,
25044
+ app = ''
24723
25045
  }) {
24724
25046
  return request(OpenAPI, {
24725
25047
  method: 'GET',
@@ -24727,6 +25049,9 @@
24727
25049
  path: {
24728
25050
  'id': id
24729
25051
  },
25052
+ query: {
25053
+ 'app': app
25054
+ },
24730
25055
  errors: {
24731
25056
  403: `Missing required permission \`Ibl.CRM/Persons/read\`.`,
24732
25057
  404: `Person not found.`
@@ -24743,7 +25068,8 @@
24743
25068
  */
24744
25069
  static crmPersonsUpdate({
24745
25070
  id,
24746
- requestBody
25071
+ requestBody,
25072
+ app = ''
24747
25073
  }) {
24748
25074
  return request(OpenAPI, {
24749
25075
  method: 'PUT',
@@ -24751,6 +25077,9 @@
24751
25077
  path: {
24752
25078
  'id': id
24753
25079
  },
25080
+ query: {
25081
+ 'app': app
25082
+ },
24754
25083
  body: requestBody,
24755
25084
  mediaType: 'application/json',
24756
25085
  errors: {
@@ -24770,6 +25099,7 @@
24770
25099
  */
24771
25100
  static crmPersonsPartialUpdate({
24772
25101
  id,
25102
+ app = '',
24773
25103
  requestBody
24774
25104
  }) {
24775
25105
  return request(OpenAPI, {
@@ -24778,6 +25108,9 @@
24778
25108
  path: {
24779
25109
  'id': id
24780
25110
  },
25111
+ query: {
25112
+ 'app': app
25113
+ },
24781
25114
  body: requestBody,
24782
25115
  mediaType: 'application/json',
24783
25116
  errors: {
@@ -24796,7 +25129,8 @@
24796
25129
  * @throws ApiError
24797
25130
  */
24798
25131
  static crmPersonsDestroy({
24799
- id
25132
+ id,
25133
+ app = ''
24800
25134
  }) {
24801
25135
  return request(OpenAPI, {
24802
25136
  method: 'DELETE',
@@ -24804,6 +25138,9 @@
24804
25138
  path: {
24805
25139
  'id': id
24806
25140
  },
25141
+ query: {
25142
+ 'app': app
25143
+ },
24807
25144
  errors: {
24808
25145
  403: `Missing required permission \`Ibl.CRM/Persons/delete\`.`,
24809
25146
  404: `Person not found.`,
@@ -24820,7 +25157,8 @@
24820
25157
  * @throws ApiError
24821
25158
  */
24822
25159
  static crmPersonsHistoryList({
24823
- id
25160
+ id,
25161
+ app = ''
24824
25162
  }) {
24825
25163
  return request(OpenAPI, {
24826
25164
  method: 'GET',
@@ -24828,6 +25166,9 @@
24828
25166
  path: {
24829
25167
  'id': id
24830
25168
  },
25169
+ query: {
25170
+ 'app': app
25171
+ },
24831
25172
  errors: {
24832
25173
  403: `Missing the record's \`read\` permission.`,
24833
25174
  404: `Record not found.`
@@ -24840,12 +25181,13 @@
24840
25181
  *
24841
25182
  * 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.
24842
25183
  *
24843
- * **Required permission:** `Ibl.CRM/Invite/action`.
25184
+ * **Required permission:** `Ibl.CRM/Invite/action`; `is_admin` or `is_staff` also needs `Ibl.Catalog/PlatformInvitations/action`.
24844
25185
  * @returns PersonInviteResponse
24845
25186
  * @throws ApiError
24846
25187
  */
24847
25188
  static crmPersonsInviteCreate({
24848
25189
  id,
25190
+ app = '',
24849
25191
  requestBody
24850
25192
  }) {
24851
25193
  return request(OpenAPI, {
@@ -24854,11 +25196,14 @@
24854
25196
  path: {
24855
25197
  'id': id
24856
25198
  },
25199
+ query: {
25200
+ 'app': app
25201
+ },
24857
25202
  body: requestBody,
24858
25203
  mediaType: 'application/json',
24859
25204
  errors: {
24860
25205
  400: `Person has no \`primary_email\`; cannot invite.`,
24861
- 403: `Missing required permission \`Ibl.CRM/Invite/action\`.`,
25206
+ 403: `Missing \`Ibl.CRM/Invite/action\`, or \`Ibl.Catalog/PlatformInvitations/action\` for \`is_admin\` / \`is_staff\`; an API key never grants them.`,
24862
25207
  404: `Person not found.`,
24863
25208
  422: `Person is already linked to a platform user.`
24864
25209
  }
@@ -24876,7 +25221,8 @@
24876
25221
  */
24877
25222
  static crmPersonsLinkUserCreate({
24878
25223
  id,
24879
- requestBody
25224
+ requestBody,
25225
+ app = ''
24880
25226
  }) {
24881
25227
  return request(OpenAPI, {
24882
25228
  method: 'POST',
@@ -24884,6 +25230,9 @@
24884
25230
  path: {
24885
25231
  'id': id
24886
25232
  },
25233
+ query: {
25234
+ 'app': app
25235
+ },
24887
25236
  body: requestBody,
24888
25237
  mediaType: 'application/json',
24889
25238
  errors: {
@@ -24893,6 +25242,32 @@
24893
25242
  }
24894
25243
  });
24895
25244
  }
25245
+ /**
25246
+ * Merge into this record's metadata
25247
+ * 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.
25248
+ *
25249
+ * **Required permission:** the record's `write` verb.
25250
+ * @returns Person
25251
+ * @throws ApiError
25252
+ */
25253
+ static crmPersonsMetadataPartialUpdate({
25254
+ id,
25255
+ app = '',
25256
+ requestBody
25257
+ }) {
25258
+ return request(OpenAPI, {
25259
+ method: 'PATCH',
25260
+ url: '/api/crm/persons/{id}/metadata/',
25261
+ path: {
25262
+ 'id': id
25263
+ },
25264
+ query: {
25265
+ 'app': app
25266
+ },
25267
+ body: requestBody,
25268
+ mediaType: 'application/json'
25269
+ });
25270
+ }
24896
25271
  /**
24897
25272
  * Attach a tag to this record
24898
25273
  * 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.
@@ -24903,7 +25278,8 @@
24903
25278
  */
24904
25279
  static crmPersonsTagsCreate({
24905
25280
  id,
24906
- requestBody
25281
+ requestBody,
25282
+ app = ''
24907
25283
  }) {
24908
25284
  return request(OpenAPI, {
24909
25285
  method: 'POST',
@@ -24911,6 +25287,9 @@
24911
25287
  path: {
24912
25288
  'id': id
24913
25289
  },
25290
+ query: {
25291
+ 'app': app
25292
+ },
24914
25293
  body: requestBody,
24915
25294
  mediaType: 'application/json',
24916
25295
  errors: {
@@ -24931,7 +25310,8 @@
24931
25310
  */
24932
25311
  static crmPersonsTagsDestroy({
24933
25312
  id,
24934
- tagId
25313
+ tagId,
25314
+ app = ''
24935
25315
  }) {
24936
25316
  return request(OpenAPI, {
24937
25317
  method: 'DELETE',
@@ -24940,6 +25320,9 @@
24940
25320
  'id': id,
24941
25321
  'tag_id': tagId
24942
25322
  },
25323
+ query: {
25324
+ 'app': app
25325
+ },
24943
25326
  errors: {
24944
25327
  403: `No response body`,
24945
25328
  404: `No response body`
@@ -24948,7 +25331,7 @@
24948
25331
  }
24949
25332
  /**
24950
25333
  * Merge duplicate persons into a primary
24951
- * Marks each person in `duplicate_ids` as inactive and reports how many related records (deals, activities, tags) were re-parented onto `primary_id`.
25334
+ * 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`.
24952
25335
  *
24953
25336
  * All ids — both the primary and every duplicate — must belong to your Platform. `primary_id` may not appear in `duplicate_ids`.
24954
25337
  *
@@ -24957,15 +25340,19 @@
24957
25340
  * @throws ApiError
24958
25341
  */
24959
25342
  static crmPersonsMergeCreate({
24960
- requestBody
25343
+ requestBody,
25344
+ app = ''
24961
25345
  }) {
24962
25346
  return request(OpenAPI, {
24963
25347
  method: 'POST',
24964
25348
  url: '/api/crm/persons/merge/',
25349
+ query: {
25350
+ 'app': app
25351
+ },
24965
25352
  body: requestBody,
24966
25353
  mediaType: 'application/json',
24967
25354
  errors: {
24968
- 400: `Validation error: the primary appears in duplicates, or one or more ids belong to another Platform.`,
25355
+ 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.`,
24969
25356
  403: `Missing required permission \`Ibl.CRM/Persons/write\`.`,
24970
25357
  404: `Primary person not found.`
24971
25358
  }
@@ -24980,6 +25367,7 @@
24980
25367
  * @throws ApiError
24981
25368
  */
24982
25369
  static crmPipelinesList({
25370
+ app = '',
24983
25371
  code,
24984
25372
  dateFilter,
24985
25373
  endDate,
@@ -24995,6 +25383,7 @@
24995
25383
  method: 'GET',
24996
25384
  url: '/api/crm/pipelines/',
24997
25385
  query: {
25386
+ 'app': app,
24998
25387
  'code': code,
24999
25388
  'date_filter': dateFilter,
25000
25389
  'end_date': endDate,
@@ -25021,11 +25410,15 @@
25021
25410
  * @throws ApiError
25022
25411
  */
25023
25412
  static crmPipelinesCreate({
25024
- requestBody
25413
+ requestBody,
25414
+ app = ''
25025
25415
  }) {
25026
25416
  return request(OpenAPI, {
25027
25417
  method: 'POST',
25028
25418
  url: '/api/crm/pipelines/',
25419
+ query: {
25420
+ 'app': app
25421
+ },
25029
25422
  body: requestBody,
25030
25423
  mediaType: 'application/json',
25031
25424
  errors: {
@@ -25044,6 +25437,7 @@
25044
25437
  */
25045
25438
  static crmPipelinesStagesList({
25046
25439
  pipelinePk,
25440
+ app = '',
25047
25441
  code,
25048
25442
  dateFilter,
25049
25443
  endDate,
@@ -25062,6 +25456,7 @@
25062
25456
  'pipeline_pk': pipelinePk
25063
25457
  },
25064
25458
  query: {
25459
+ 'app': app,
25065
25460
  'code': code,
25066
25461
  'date_filter': dateFilter,
25067
25462
  'end_date': endDate,
@@ -25089,7 +25484,8 @@
25089
25484
  */
25090
25485
  static crmPipelinesStagesCreate({
25091
25486
  pipelinePk,
25092
- requestBody
25487
+ requestBody,
25488
+ app = ''
25093
25489
  }) {
25094
25490
  return request(OpenAPI, {
25095
25491
  method: 'POST',
@@ -25097,6 +25493,9 @@
25097
25493
  path: {
25098
25494
  'pipeline_pk': pipelinePk
25099
25495
  },
25496
+ query: {
25497
+ 'app': app
25498
+ },
25100
25499
  body: requestBody,
25101
25500
  mediaType: 'application/json',
25102
25501
  errors: {
@@ -25116,7 +25515,8 @@
25116
25515
  */
25117
25516
  static crmPipelinesStagesRetrieve({
25118
25517
  id,
25119
- pipelinePk
25518
+ pipelinePk,
25519
+ app = ''
25120
25520
  }) {
25121
25521
  return request(OpenAPI, {
25122
25522
  method: 'GET',
@@ -25125,6 +25525,9 @@
25125
25525
  'id': id,
25126
25526
  'pipeline_pk': pipelinePk
25127
25527
  },
25528
+ query: {
25529
+ 'app': app
25530
+ },
25128
25531
  errors: {
25129
25532
  403: `Missing required permission \`Ibl.CRM/Pipelines/read\`.`,
25130
25533
  404: `Stage not found in this Pipeline.`
@@ -25142,7 +25545,8 @@
25142
25545
  static crmPipelinesStagesUpdate({
25143
25546
  id,
25144
25547
  pipelinePk,
25145
- requestBody
25548
+ requestBody,
25549
+ app = ''
25146
25550
  }) {
25147
25551
  return request(OpenAPI, {
25148
25552
  method: 'PUT',
@@ -25151,6 +25555,9 @@
25151
25555
  'id': id,
25152
25556
  'pipeline_pk': pipelinePk
25153
25557
  },
25558
+ query: {
25559
+ 'app': app
25560
+ },
25154
25561
  body: requestBody,
25155
25562
  mediaType: 'application/json',
25156
25563
  errors: {
@@ -25171,6 +25578,7 @@
25171
25578
  static crmPipelinesStagesPartialUpdate({
25172
25579
  id,
25173
25580
  pipelinePk,
25581
+ app = '',
25174
25582
  requestBody
25175
25583
  }) {
25176
25584
  return request(OpenAPI, {
@@ -25180,6 +25588,9 @@
25180
25588
  'id': id,
25181
25589
  'pipeline_pk': pipelinePk
25182
25590
  },
25591
+ query: {
25592
+ 'app': app
25593
+ },
25183
25594
  body: requestBody,
25184
25595
  mediaType: 'application/json',
25185
25596
  errors: {
@@ -25199,7 +25610,8 @@
25199
25610
  */
25200
25611
  static crmPipelinesStagesDestroy({
25201
25612
  id,
25202
- pipelinePk
25613
+ pipelinePk,
25614
+ app = ''
25203
25615
  }) {
25204
25616
  return request(OpenAPI, {
25205
25617
  method: 'DELETE',
@@ -25208,6 +25620,9 @@
25208
25620
  'id': id,
25209
25621
  'pipeline_pk': pipelinePk
25210
25622
  },
25623
+ query: {
25624
+ 'app': app
25625
+ },
25211
25626
  errors: {
25212
25627
  403: `Missing required permission \`Ibl.CRM/Pipelines/delete\`.`,
25213
25628
  404: `Stage not found in this Pipeline.`,
@@ -25224,7 +25639,8 @@
25224
25639
  * @throws ApiError
25225
25640
  */
25226
25641
  static crmPipelinesRetrieve({
25227
- id
25642
+ id,
25643
+ app = ''
25228
25644
  }) {
25229
25645
  return request(OpenAPI, {
25230
25646
  method: 'GET',
@@ -25232,6 +25648,9 @@
25232
25648
  path: {
25233
25649
  'id': id
25234
25650
  },
25651
+ query: {
25652
+ 'app': app
25653
+ },
25235
25654
  errors: {
25236
25655
  403: `Missing required permission \`Ibl.CRM/Pipelines/read\`.`,
25237
25656
  404: `Pipeline not found.`
@@ -25248,7 +25667,8 @@
25248
25667
  */
25249
25668
  static crmPipelinesUpdate({
25250
25669
  id,
25251
- requestBody
25670
+ requestBody,
25671
+ app = ''
25252
25672
  }) {
25253
25673
  return request(OpenAPI, {
25254
25674
  method: 'PUT',
@@ -25256,6 +25676,9 @@
25256
25676
  path: {
25257
25677
  'id': id
25258
25678
  },
25679
+ query: {
25680
+ 'app': app
25681
+ },
25259
25682
  body: requestBody,
25260
25683
  mediaType: 'application/json',
25261
25684
  errors: {
@@ -25275,6 +25698,7 @@
25275
25698
  */
25276
25699
  static crmPipelinesPartialUpdate({
25277
25700
  id,
25701
+ app = '',
25278
25702
  requestBody
25279
25703
  }) {
25280
25704
  return request(OpenAPI, {
@@ -25283,6 +25707,9 @@
25283
25707
  path: {
25284
25708
  'id': id
25285
25709
  },
25710
+ query: {
25711
+ 'app': app
25712
+ },
25286
25713
  body: requestBody,
25287
25714
  mediaType: 'application/json',
25288
25715
  errors: {
@@ -25301,7 +25728,8 @@
25301
25728
  * @throws ApiError
25302
25729
  */
25303
25730
  static crmPipelinesDestroy({
25304
- id
25731
+ id,
25732
+ app = ''
25305
25733
  }) {
25306
25734
  return request(OpenAPI, {
25307
25735
  method: 'DELETE',
@@ -25309,6 +25737,9 @@
25309
25737
  path: {
25310
25738
  'id': id
25311
25739
  },
25740
+ query: {
25741
+ 'app': app
25742
+ },
25312
25743
  errors: {
25313
25744
  403: `Missing required permission \`Ibl.CRM/Pipelines/delete\`.`,
25314
25745
  404: `Pipeline not found.`,
@@ -25326,7 +25757,8 @@
25326
25757
  */
25327
25758
  static crmPipelinesStagesReorderCreate({
25328
25759
  id,
25329
- requestBody
25760
+ requestBody,
25761
+ app = ''
25330
25762
  }) {
25331
25763
  return request(OpenAPI, {
25332
25764
  method: 'POST',
@@ -25334,6 +25766,9 @@
25334
25766
  path: {
25335
25767
  'id': id
25336
25768
  },
25769
+ query: {
25770
+ 'app': app
25771
+ },
25337
25772
  body: requestBody,
25338
25773
  mediaType: 'application/json',
25339
25774
  errors: {
@@ -25353,12 +25788,14 @@
25353
25788
  */
25354
25789
  static crmSearchRetrieve({
25355
25790
  q,
25791
+ app = '',
25356
25792
  limit
25357
25793
  }) {
25358
25794
  return request(OpenAPI, {
25359
25795
  method: 'GET',
25360
25796
  url: '/api/crm/search/',
25361
25797
  query: {
25798
+ 'app': app,
25362
25799
  'limit': limit,
25363
25800
  'q': q
25364
25801
  },
@@ -25370,18 +25807,20 @@
25370
25807
  }
25371
25808
  /**
25372
25809
  * List tags
25373
- * 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.
25810
+ * 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.
25374
25811
  *
25375
25812
  * **Required permission:** `Ibl.CRM/Tags/list`.
25376
25813
  * @returns PaginatedTagList
25377
25814
  * @throws ApiError
25378
25815
  */
25379
25816
  static crmTagsList({
25817
+ app = '',
25380
25818
  createdAtGte,
25381
25819
  createdAtLte,
25382
25820
  dateFilter,
25383
25821
  endDate,
25384
25822
  name,
25823
+ nameIexact,
25385
25824
  ordering,
25386
25825
  page,
25387
25826
  pageSize,
@@ -25392,11 +25831,13 @@
25392
25831
  method: 'GET',
25393
25832
  url: '/api/crm/tags/',
25394
25833
  query: {
25834
+ 'app': app,
25395
25835
  'created_at__gte': createdAtGte,
25396
25836
  'created_at__lte': createdAtLte,
25397
25837
  'date_filter': dateFilter,
25398
25838
  'end_date': endDate,
25399
25839
  'name': name,
25840
+ 'name__iexact': nameIexact,
25400
25841
  'ordering': ordering,
25401
25842
  'page': page,
25402
25843
  'page_size': pageSize,
@@ -25418,11 +25859,15 @@
25418
25859
  * @throws ApiError
25419
25860
  */
25420
25861
  static crmTagsCreate({
25421
- requestBody
25862
+ requestBody,
25863
+ app = ''
25422
25864
  }) {
25423
25865
  return request(OpenAPI, {
25424
25866
  method: 'POST',
25425
25867
  url: '/api/crm/tags/',
25868
+ query: {
25869
+ 'app': app
25870
+ },
25426
25871
  body: requestBody,
25427
25872
  mediaType: 'application/json',
25428
25873
  errors: {
@@ -25440,7 +25885,8 @@
25440
25885
  * @throws ApiError
25441
25886
  */
25442
25887
  static crmTagsRetrieve({
25443
- id
25888
+ id,
25889
+ app = ''
25444
25890
  }) {
25445
25891
  return request(OpenAPI, {
25446
25892
  method: 'GET',
@@ -25448,6 +25894,9 @@
25448
25894
  path: {
25449
25895
  'id': id
25450
25896
  },
25897
+ query: {
25898
+ 'app': app
25899
+ },
25451
25900
  errors: {
25452
25901
  403: `Missing required permission \`Ibl.CRM/Tags/read\`.`,
25453
25902
  404: `Tag not found.`
@@ -25464,7 +25913,8 @@
25464
25913
  */
25465
25914
  static crmTagsUpdate({
25466
25915
  id,
25467
- requestBody
25916
+ requestBody,
25917
+ app = ''
25468
25918
  }) {
25469
25919
  return request(OpenAPI, {
25470
25920
  method: 'PUT',
@@ -25472,6 +25922,9 @@
25472
25922
  path: {
25473
25923
  'id': id
25474
25924
  },
25925
+ query: {
25926
+ 'app': app
25927
+ },
25475
25928
  body: requestBody,
25476
25929
  mediaType: 'application/json',
25477
25930
  errors: {
@@ -25491,6 +25944,7 @@
25491
25944
  */
25492
25945
  static crmTagsPartialUpdate({
25493
25946
  id,
25947
+ app = '',
25494
25948
  requestBody
25495
25949
  }) {
25496
25950
  return request(OpenAPI, {
@@ -25499,6 +25953,9 @@
25499
25953
  path: {
25500
25954
  'id': id
25501
25955
  },
25956
+ query: {
25957
+ 'app': app
25958
+ },
25502
25959
  body: requestBody,
25503
25960
  mediaType: 'application/json',
25504
25961
  errors: {
@@ -25517,7 +25974,8 @@
25517
25974
  * @throws ApiError
25518
25975
  */
25519
25976
  static crmTagsDestroy({
25520
- id
25977
+ id,
25978
+ app = ''
25521
25979
  }) {
25522
25980
  return request(OpenAPI, {
25523
25981
  method: 'DELETE',
@@ -25525,6 +25983,9 @@
25525
25983
  path: {
25526
25984
  'id': id
25527
25985
  },
25986
+ query: {
25987
+ 'app': app
25988
+ },
25528
25989
  errors: {
25529
25990
  403: `Missing required permission \`Ibl.CRM/Tags/delete\`.`,
25530
25991
  404: `Tag not found.`
@@ -25540,6 +26001,7 @@
25540
26001
  * @throws ApiError
25541
26002
  */
25542
26003
  static crmViewsList({
26004
+ app = '',
25543
26005
  dateFilter,
25544
26006
  endDate,
25545
26007
  objectType,
@@ -25554,6 +26016,7 @@
25554
26016
  method: 'GET',
25555
26017
  url: '/api/crm/views/',
25556
26018
  query: {
26019
+ 'app': app,
25557
26020
  'date_filter': dateFilter,
25558
26021
  'end_date': endDate,
25559
26022
  'object_type': objectType,
@@ -25579,11 +26042,15 @@
25579
26042
  * @throws ApiError
25580
26043
  */
25581
26044
  static crmViewsCreate({
25582
- requestBody
26045
+ requestBody,
26046
+ app = ''
25583
26047
  }) {
25584
26048
  return request(OpenAPI, {
25585
26049
  method: 'POST',
25586
26050
  url: '/api/crm/views/',
26051
+ query: {
26052
+ 'app': app
26053
+ },
25587
26054
  body: requestBody,
25588
26055
  mediaType: 'application/json',
25589
26056
  errors: {
@@ -25599,7 +26066,8 @@
25599
26066
  * @throws ApiError
25600
26067
  */
25601
26068
  static crmViewsRetrieve({
25602
- id
26069
+ id,
26070
+ app = ''
25603
26071
  }) {
25604
26072
  return request(OpenAPI, {
25605
26073
  method: 'GET',
@@ -25607,6 +26075,9 @@
25607
26075
  path: {
25608
26076
  'id': id
25609
26077
  },
26078
+ query: {
26079
+ 'app': app
26080
+ },
25610
26081
  errors: {
25611
26082
  403: `Missing required permission \`Ibl.CRM/Views/read\`.`,
25612
26083
  404: `View not found.`
@@ -25621,7 +26092,8 @@
25621
26092
  */
25622
26093
  static crmViewsUpdate({
25623
26094
  id,
25624
- requestBody
26095
+ requestBody,
26096
+ app = ''
25625
26097
  }) {
25626
26098
  return request(OpenAPI, {
25627
26099
  method: 'PUT',
@@ -25629,6 +26101,9 @@
25629
26101
  path: {
25630
26102
  'id': id
25631
26103
  },
26104
+ query: {
26105
+ 'app': app
26106
+ },
25632
26107
  body: requestBody,
25633
26108
  mediaType: 'application/json',
25634
26109
  errors: {
@@ -25646,6 +26121,7 @@
25646
26121
  */
25647
26122
  static crmViewsPartialUpdate({
25648
26123
  id,
26124
+ app = '',
25649
26125
  requestBody
25650
26126
  }) {
25651
26127
  return request(OpenAPI, {
@@ -25654,6 +26130,9 @@
25654
26130
  path: {
25655
26131
  'id': id
25656
26132
  },
26133
+ query: {
26134
+ 'app': app
26135
+ },
25657
26136
  body: requestBody,
25658
26137
  mediaType: 'application/json',
25659
26138
  errors: {
@@ -25670,7 +26149,8 @@
25670
26149
  * @throws ApiError
25671
26150
  */
25672
26151
  static crmViewsDestroy({
25673
- id
26152
+ id,
26153
+ app = ''
25674
26154
  }) {
25675
26155
  return request(OpenAPI, {
25676
26156
  method: 'DELETE',
@@ -25678,12 +26158,201 @@
25678
26158
  path: {
25679
26159
  'id': id
25680
26160
  },
26161
+ query: {
26162
+ 'app': app
26163
+ },
25681
26164
  errors: {
25682
26165
  403: `Missing required permission \`Ibl.CRM/Views/delete\`.`,
25683
26166
  404: `View not found.`
25684
26167
  }
25685
26168
  });
25686
26169
  }
26170
+ /**
26171
+ * List web forms
26172
+ * Your Platform's web forms, drafts included.
26173
+ *
26174
+ * **Required permission:** `Ibl.CRM/WebForms/list`.
26175
+ * @returns PaginatedWebFormList
26176
+ * @throws ApiError
26177
+ */
26178
+ static crmWebFormsList({
26179
+ app = '',
26180
+ dateFilter,
26181
+ endDate,
26182
+ ordering,
26183
+ page,
26184
+ pageSize,
26185
+ search,
26186
+ startDate
26187
+ }) {
26188
+ return request(OpenAPI, {
26189
+ method: 'GET',
26190
+ url: '/api/crm/web-forms/',
26191
+ query: {
26192
+ 'app': app,
26193
+ 'date_filter': dateFilter,
26194
+ 'end_date': endDate,
26195
+ 'ordering': ordering,
26196
+ 'page': page,
26197
+ 'page_size': pageSize,
26198
+ 'search': search,
26199
+ 'start_date': startDate
26200
+ }
26201
+ });
26202
+ }
26203
+ /**
26204
+ * Create a web form
26205
+ * `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.
26206
+ *
26207
+ * **Required permission:** `Ibl.CRM/WebForms/action`; a new `lead_source_code` also needs `Ibl.CRM/Pipelines/action`.
26208
+ * @returns WebForm
26209
+ * @throws ApiError
26210
+ */
26211
+ static crmWebFormsCreate({
26212
+ requestBody,
26213
+ app = ''
26214
+ }) {
26215
+ return request(OpenAPI, {
26216
+ method: 'POST',
26217
+ url: '/api/crm/web-forms/',
26218
+ query: {
26219
+ 'app': app
26220
+ },
26221
+ body: requestBody,
26222
+ mediaType: 'application/json'
26223
+ });
26224
+ }
26225
+ /**
26226
+ * Retrieve a web form
26227
+ * **Required permission:** `Ibl.CRM/WebForms/read`.
26228
+ * @returns WebForm
26229
+ * @throws ApiError
26230
+ */
26231
+ static crmWebFormsRetrieve({
26232
+ slug,
26233
+ app = ''
26234
+ }) {
26235
+ return request(OpenAPI, {
26236
+ method: 'GET',
26237
+ url: '/api/crm/web-forms/{slug}/',
26238
+ path: {
26239
+ 'slug': slug
26240
+ },
26241
+ query: {
26242
+ 'app': app
26243
+ }
26244
+ });
26245
+ }
26246
+ /**
26247
+ * Replace a web form
26248
+ * **Required permission:** `Ibl.CRM/WebForms/write`; a new `routing.lead_source_code` also needs `Ibl.CRM/Pipelines/action`.
26249
+ * @returns WebForm
26250
+ * @throws ApiError
26251
+ */
26252
+ static crmWebFormsUpdate({
26253
+ slug,
26254
+ requestBody,
26255
+ app = ''
26256
+ }) {
26257
+ return request(OpenAPI, {
26258
+ method: 'PUT',
26259
+ url: '/api/crm/web-forms/{slug}/',
26260
+ path: {
26261
+ 'slug': slug
26262
+ },
26263
+ query: {
26264
+ 'app': app
26265
+ },
26266
+ body: requestBody,
26267
+ mediaType: 'application/json'
26268
+ });
26269
+ }
26270
+ /**
26271
+ * Update a web form
26272
+ * `fields`, `routing` and `metadata` are replaced whole when sent. Publishing rules apply to the form as saved.
26273
+ *
26274
+ * **Required permission:** `Ibl.CRM/WebForms/write`; a new `routing.lead_source_code` also needs `Ibl.CRM/Pipelines/action`.
26275
+ * @returns WebForm
26276
+ * @throws ApiError
26277
+ */
26278
+ static crmWebFormsPartialUpdate({
26279
+ slug,
26280
+ app = '',
26281
+ requestBody
26282
+ }) {
26283
+ return request(OpenAPI, {
26284
+ method: 'PATCH',
26285
+ url: '/api/crm/web-forms/{slug}/',
26286
+ path: {
26287
+ 'slug': slug
26288
+ },
26289
+ query: {
26290
+ 'app': app
26291
+ },
26292
+ body: requestBody,
26293
+ mediaType: 'application/json'
26294
+ });
26295
+ }
26296
+ /**
26297
+ * Delete a web form
26298
+ * Deletes the form and its submissions log; the persons, deals and notes it filed stay.
26299
+ *
26300
+ * **Required permission:** `Ibl.CRM/WebForms/delete`.
26301
+ * @returns void
26302
+ * @throws ApiError
26303
+ */
26304
+ static crmWebFormsDestroy({
26305
+ slug,
26306
+ app = ''
26307
+ }) {
26308
+ return request(OpenAPI, {
26309
+ method: 'DELETE',
26310
+ url: '/api/crm/web-forms/{slug}/',
26311
+ path: {
26312
+ 'slug': slug
26313
+ },
26314
+ query: {
26315
+ 'app': app
26316
+ }
26317
+ });
26318
+ }
26319
+ /**
26320
+ * A web form's submissions
26321
+ * Newest first, paginated; `date_filter` (or `start_date` + `end_date`) narrows to submissions in a window.
26322
+ *
26323
+ * **Required permission:** `Ibl.CRM/WebForms/list`.
26324
+ * @returns PaginatedWebFormSubmissionList
26325
+ * @throws ApiError
26326
+ */
26327
+ static crmWebFormsSubmissionsList({
26328
+ slug,
26329
+ app = '',
26330
+ dateFilter,
26331
+ endDate,
26332
+ page,
26333
+ pageSize,
26334
+ startDate
26335
+ }) {
26336
+ return request(OpenAPI, {
26337
+ method: 'GET',
26338
+ url: '/api/crm/web-forms/{slug}/submissions/',
26339
+ path: {
26340
+ 'slug': slug
26341
+ },
26342
+ query: {
26343
+ 'app': app,
26344
+ 'date_filter': dateFilter,
26345
+ 'end_date': endDate,
26346
+ 'page': page,
26347
+ 'page_size': pageSize,
26348
+ 'start_date': startDate
26349
+ },
26350
+ errors: {
26351
+ 403: `Missing \`Ibl.CRM/WebForms/list\`.`,
26352
+ 404: `Web form not found.`
26353
+ }
26354
+ });
26355
+ }
25687
26356
  }
25688
26357
 
25689
26358
  class CustomDomainsService {
@@ -28867,6 +29536,39 @@
28867
29536
  }
28868
29537
  }
28869
29538
 
29539
+ class V1CoursesService {
29540
+ /**
29541
+ * Get course metadata
29542
+ * 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.
29543
+ *
29544
+ * 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.
29545
+ * @returns any
29546
+ * @throws ApiError
29547
+ */
29548
+ static v1CoursesMetadataRetrieve({
29549
+ courseId,
29550
+ courseKey,
29551
+ iblaiOrg
29552
+ }) {
29553
+ return request(OpenAPI, {
29554
+ method: 'GET',
29555
+ url: '/v1/courses/metadata',
29556
+ headers: {
29557
+ 'iblai-org': iblaiOrg
29558
+ },
29559
+ query: {
29560
+ 'course_id': courseId,
29561
+ 'course_key': courseKey
29562
+ },
29563
+ errors: {
29564
+ 400: `course_id missing, or a service account omitted iblai-org.`,
29565
+ 403: `iblai-org names another platform.`,
29566
+ 404: `Course or platform not found.`
29567
+ }
29568
+ });
29569
+ }
29570
+ }
29571
+
28870
29572
  class V1LmsService {
28871
29573
  /**
28872
29574
  * Call edX as a user
@@ -29221,6 +29923,7 @@
29221
29923
  exports.ScimService = ScimService;
29222
29924
  exports.SearchService = SearchService;
29223
29925
  exports.SkillsService = SkillsService;
29926
+ exports.V1CoursesService = V1CoursesService;
29224
29927
  exports.V1LmsService = V1LmsService;
29225
29928
  exports.V1RbacService = V1RbacService;
29226
29929
  exports.V1StudioService = V1StudioService;