@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.
- package/dist/index.cjs.js +763 -60
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +763 -61
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +763 -60
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +15 -0
- package/dist/types/models/Activity.d.ts +4 -0
- package/dist/types/models/Deal.d.ts +4 -0
- package/dist/types/models/LeadSource.d.ts +4 -0
- package/dist/types/models/Member.d.ts +16 -0
- package/dist/types/models/Organization.d.ts +4 -0
- package/dist/types/models/Overview.d.ts +4 -0
- package/dist/types/models/PaginatedMemberList.d.ts +7 -0
- package/dist/types/models/PaginatedWebFormList.d.ts +7 -0
- package/dist/types/models/PaginatedWebFormSubmissionList.d.ts +7 -0
- package/dist/types/models/PatchedActivity.d.ts +4 -0
- package/dist/types/models/PatchedDeal.d.ts +4 -0
- package/dist/types/models/PatchedLeadSource.d.ts +4 -0
- package/dist/types/models/PatchedOrganization.d.ts +4 -0
- package/dist/types/models/PatchedPerson.d.ts +4 -0
- package/dist/types/models/PatchedPipeline.d.ts +4 -0
- package/dist/types/models/PatchedSavedView.d.ts +4 -0
- package/dist/types/models/PatchedTag.d.ts +4 -0
- package/dist/types/models/PatchedWebForm.d.ts +41 -0
- package/dist/types/models/Person.d.ts +4 -0
- package/dist/types/models/Pipeline.d.ts +4 -0
- package/dist/types/models/SavedView.d.ts +4 -0
- package/dist/types/models/SearchDeal.d.ts +4 -0
- package/dist/types/models/SearchOrganization.d.ts +5 -1
- package/dist/types/models/SearchPerson.d.ts +4 -0
- package/dist/types/models/Tag.d.ts +4 -0
- package/dist/types/models/Type240Enum.d.ts +20 -0
- package/dist/types/models/WebForm.d.ts +41 -0
- package/dist/types/models/WebFormField.d.ts +20 -0
- package/dist/types/models/WebFormPublic.d.ts +25 -0
- package/dist/types/models/WebFormPublicField.d.ts +10 -0
- package/dist/types/models/WebFormRouting.d.ts +45 -0
- package/dist/types/models/WebFormSubmission.d.ts +15 -0
- package/dist/types/models/WebFormSubmitRequest.d.ts +15 -0
- package/dist/types/models/WebFormSubmitResponse.d.ts +4 -0
- package/dist/types/services/CrmService.d.ts +662 -83
- package/dist/types/services/V1CoursesService.d.ts +25 -0
- package/package.json +1 -1
- package/sdk_schema.yml +1895 -10
- package/src/core/OpenAPI.ts +1 -1
- package/src/index.ts +15 -0
- package/src/models/Activity.ts +4 -0
- package/src/models/Deal.ts +4 -0
- package/src/models/LeadSource.ts +4 -0
- package/src/models/Member.ts +21 -0
- package/src/models/Organization.ts +4 -0
- package/src/models/Overview.ts +4 -0
- package/src/models/PaginatedMemberList.ts +12 -0
- package/src/models/PaginatedWebFormList.ts +12 -0
- package/src/models/PaginatedWebFormSubmissionList.ts +12 -0
- package/src/models/PatchedActivity.ts +4 -0
- package/src/models/PatchedDeal.ts +4 -0
- package/src/models/PatchedLeadSource.ts +4 -0
- package/src/models/PatchedOrganization.ts +4 -0
- package/src/models/PatchedPerson.ts +4 -0
- package/src/models/PatchedPipeline.ts +4 -0
- package/src/models/PatchedSavedView.ts +4 -0
- package/src/models/PatchedTag.ts +4 -0
- package/src/models/PatchedWebForm.ts +46 -0
- package/src/models/Person.ts +4 -0
- package/src/models/Pipeline.ts +4 -0
- package/src/models/SavedView.ts +4 -0
- package/src/models/SearchDeal.ts +4 -0
- package/src/models/SearchOrganization.ts +5 -1
- package/src/models/SearchPerson.ts +4 -0
- package/src/models/Tag.ts +4 -0
- package/src/models/Type240Enum.ts +24 -0
- package/src/models/WebForm.ts +46 -0
- package/src/models/WebFormField.ts +25 -0
- package/src/models/WebFormPublic.ts +30 -0
- package/src/models/WebFormPublicField.ts +15 -0
- package/src/models/WebFormRouting.ts +50 -0
- package/src/models/WebFormSubmission.ts +20 -0
- package/src/models/WebFormSubmitRequest.ts +20 -0
- package/src/models/WebFormSubmitResponse.ts +9 -0
- package/src/services/CrmService.ts +1151 -38
- package/src/services/V1CoursesService.ts +52 -0
package/dist/index.esm.js
CHANGED
|
@@ -108,7 +108,7 @@ class CancelablePromise {
|
|
|
108
108
|
|
|
109
109
|
const OpenAPI = {
|
|
110
110
|
BASE: 'https://base.manager.iblai.app',
|
|
111
|
-
VERSION: '4.
|
|
111
|
+
VERSION: '4.452.0-core',
|
|
112
112
|
WITH_CREDENTIALS: false,
|
|
113
113
|
CREDENTIALS: 'include',
|
|
114
114
|
TOKEN: undefined,
|
|
@@ -2239,6 +2239,32 @@ var TransactionTypeEnum;
|
|
|
2239
2239
|
TransactionTypeEnum["REFUND"] = "refund";
|
|
2240
2240
|
})(TransactionTypeEnum || (TransactionTypeEnum = {}));
|
|
2241
2241
|
|
|
2242
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2243
|
+
/* istanbul ignore file */
|
|
2244
|
+
/* tslint:disable */
|
|
2245
|
+
/* eslint-disable */
|
|
2246
|
+
/**
|
|
2247
|
+
* * `text` - text
|
|
2248
|
+
* * `email` - email
|
|
2249
|
+
* * `tel` - tel
|
|
2250
|
+
* * `number` - number
|
|
2251
|
+
* * `date` - date
|
|
2252
|
+
* * `select` - select
|
|
2253
|
+
* * `textarea` - textarea
|
|
2254
|
+
* * `checkbox` - checkbox
|
|
2255
|
+
*/
|
|
2256
|
+
var Type240Enum;
|
|
2257
|
+
(function (Type240Enum) {
|
|
2258
|
+
Type240Enum["TEXT"] = "text";
|
|
2259
|
+
Type240Enum["EMAIL"] = "email";
|
|
2260
|
+
Type240Enum["TEL"] = "tel";
|
|
2261
|
+
Type240Enum["NUMBER"] = "number";
|
|
2262
|
+
Type240Enum["DATE"] = "date";
|
|
2263
|
+
Type240Enum["SELECT"] = "select";
|
|
2264
|
+
Type240Enum["TEXTAREA"] = "textarea";
|
|
2265
|
+
Type240Enum["CHECKBOX"] = "checkbox";
|
|
2266
|
+
})(Type240Enum || (Type240Enum = {}));
|
|
2267
|
+
|
|
2242
2268
|
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2243
2269
|
/* istanbul ignore file */
|
|
2244
2270
|
/* tslint:disable */
|
|
@@ -23507,6 +23533,7 @@ class CrmService {
|
|
|
23507
23533
|
* @throws ApiError
|
|
23508
23534
|
*/
|
|
23509
23535
|
static crmActivitiesList({
|
|
23536
|
+
app = '',
|
|
23510
23537
|
dateFilter,
|
|
23511
23538
|
deal,
|
|
23512
23539
|
endDate,
|
|
@@ -23528,6 +23555,7 @@ class CrmService {
|
|
|
23528
23555
|
method: 'GET',
|
|
23529
23556
|
url: '/api/crm/activities/',
|
|
23530
23557
|
query: {
|
|
23558
|
+
'app': app,
|
|
23531
23559
|
'date_filter': dateFilter,
|
|
23532
23560
|
'deal': deal,
|
|
23533
23561
|
'end_date': endDate,
|
|
@@ -23560,11 +23588,15 @@ class CrmService {
|
|
|
23560
23588
|
* @throws ApiError
|
|
23561
23589
|
*/
|
|
23562
23590
|
static crmActivitiesCreate({
|
|
23563
|
-
requestBody
|
|
23591
|
+
requestBody,
|
|
23592
|
+
app = ''
|
|
23564
23593
|
}) {
|
|
23565
23594
|
return request(OpenAPI, {
|
|
23566
23595
|
method: 'POST',
|
|
23567
23596
|
url: '/api/crm/activities/',
|
|
23597
|
+
query: {
|
|
23598
|
+
'app': app
|
|
23599
|
+
},
|
|
23568
23600
|
body: requestBody,
|
|
23569
23601
|
mediaType: 'application/json',
|
|
23570
23602
|
errors: {
|
|
@@ -23582,7 +23614,8 @@ class CrmService {
|
|
|
23582
23614
|
* @throws ApiError
|
|
23583
23615
|
*/
|
|
23584
23616
|
static crmActivitiesRetrieve({
|
|
23585
|
-
id
|
|
23617
|
+
id,
|
|
23618
|
+
app = ''
|
|
23586
23619
|
}) {
|
|
23587
23620
|
return request(OpenAPI, {
|
|
23588
23621
|
method: 'GET',
|
|
@@ -23590,6 +23623,9 @@ class CrmService {
|
|
|
23590
23623
|
path: {
|
|
23591
23624
|
'id': id
|
|
23592
23625
|
},
|
|
23626
|
+
query: {
|
|
23627
|
+
'app': app
|
|
23628
|
+
},
|
|
23593
23629
|
errors: {
|
|
23594
23630
|
403: `Missing required permission \`Ibl.CRM/Activities/read\`.`,
|
|
23595
23631
|
404: `Activity not found.`
|
|
@@ -23606,7 +23642,8 @@ class CrmService {
|
|
|
23606
23642
|
*/
|
|
23607
23643
|
static crmActivitiesUpdate({
|
|
23608
23644
|
id,
|
|
23609
|
-
requestBody
|
|
23645
|
+
requestBody,
|
|
23646
|
+
app = ''
|
|
23610
23647
|
}) {
|
|
23611
23648
|
return request(OpenAPI, {
|
|
23612
23649
|
method: 'PUT',
|
|
@@ -23614,6 +23651,9 @@ class CrmService {
|
|
|
23614
23651
|
path: {
|
|
23615
23652
|
'id': id
|
|
23616
23653
|
},
|
|
23654
|
+
query: {
|
|
23655
|
+
'app': app
|
|
23656
|
+
},
|
|
23617
23657
|
body: requestBody,
|
|
23618
23658
|
mediaType: 'application/json',
|
|
23619
23659
|
errors: {
|
|
@@ -23633,6 +23673,7 @@ class CrmService {
|
|
|
23633
23673
|
*/
|
|
23634
23674
|
static crmActivitiesPartialUpdate({
|
|
23635
23675
|
id,
|
|
23676
|
+
app = '',
|
|
23636
23677
|
requestBody
|
|
23637
23678
|
}) {
|
|
23638
23679
|
return request(OpenAPI, {
|
|
@@ -23641,6 +23682,9 @@ class CrmService {
|
|
|
23641
23682
|
path: {
|
|
23642
23683
|
'id': id
|
|
23643
23684
|
},
|
|
23685
|
+
query: {
|
|
23686
|
+
'app': app
|
|
23687
|
+
},
|
|
23644
23688
|
body: requestBody,
|
|
23645
23689
|
mediaType: 'application/json',
|
|
23646
23690
|
errors: {
|
|
@@ -23659,7 +23703,8 @@ class CrmService {
|
|
|
23659
23703
|
* @throws ApiError
|
|
23660
23704
|
*/
|
|
23661
23705
|
static crmActivitiesDestroy({
|
|
23662
|
-
id
|
|
23706
|
+
id,
|
|
23707
|
+
app = ''
|
|
23663
23708
|
}) {
|
|
23664
23709
|
return request(OpenAPI, {
|
|
23665
23710
|
method: 'DELETE',
|
|
@@ -23667,6 +23712,9 @@ class CrmService {
|
|
|
23667
23712
|
path: {
|
|
23668
23713
|
'id': id
|
|
23669
23714
|
},
|
|
23715
|
+
query: {
|
|
23716
|
+
'app': app
|
|
23717
|
+
},
|
|
23670
23718
|
errors: {
|
|
23671
23719
|
403: `Missing required permission \`Ibl.CRM/Activities/delete\`.`,
|
|
23672
23720
|
404: `Activity not found.`
|
|
@@ -23682,7 +23730,8 @@ class CrmService {
|
|
|
23682
23730
|
* @throws ApiError
|
|
23683
23731
|
*/
|
|
23684
23732
|
static crmActivitiesDoneCreate({
|
|
23685
|
-
id
|
|
23733
|
+
id,
|
|
23734
|
+
app = ''
|
|
23686
23735
|
}) {
|
|
23687
23736
|
return request(OpenAPI, {
|
|
23688
23737
|
method: 'POST',
|
|
@@ -23690,6 +23739,9 @@ class CrmService {
|
|
|
23690
23739
|
path: {
|
|
23691
23740
|
'id': id
|
|
23692
23741
|
},
|
|
23742
|
+
query: {
|
|
23743
|
+
'app': app
|
|
23744
|
+
},
|
|
23693
23745
|
errors: {
|
|
23694
23746
|
403: `Missing required permission \`Ibl.CRM/Activities/write\`.`,
|
|
23695
23747
|
404: `Activity not found.`
|
|
@@ -23705,6 +23757,7 @@ class CrmService {
|
|
|
23705
23757
|
* @throws ApiError
|
|
23706
23758
|
*/
|
|
23707
23759
|
static crmDealsList({
|
|
23760
|
+
app = '',
|
|
23708
23761
|
createdAtGte,
|
|
23709
23762
|
createdAtLte,
|
|
23710
23763
|
dateFilter,
|
|
@@ -23730,6 +23783,7 @@ class CrmService {
|
|
|
23730
23783
|
method: 'GET',
|
|
23731
23784
|
url: '/api/crm/deals/',
|
|
23732
23785
|
query: {
|
|
23786
|
+
'app': app,
|
|
23733
23787
|
'created_at__gte': createdAtGte,
|
|
23734
23788
|
'created_at__lte': createdAtLte,
|
|
23735
23789
|
'date_filter': dateFilter,
|
|
@@ -23766,11 +23820,15 @@ class CrmService {
|
|
|
23766
23820
|
* @throws ApiError
|
|
23767
23821
|
*/
|
|
23768
23822
|
static crmDealsCreate({
|
|
23769
|
-
requestBody
|
|
23823
|
+
requestBody,
|
|
23824
|
+
app = ''
|
|
23770
23825
|
}) {
|
|
23771
23826
|
return request(OpenAPI, {
|
|
23772
23827
|
method: 'POST',
|
|
23773
23828
|
url: '/api/crm/deals/',
|
|
23829
|
+
query: {
|
|
23830
|
+
'app': app
|
|
23831
|
+
},
|
|
23774
23832
|
body: requestBody,
|
|
23775
23833
|
mediaType: 'application/json',
|
|
23776
23834
|
errors: {
|
|
@@ -23788,7 +23846,8 @@ class CrmService {
|
|
|
23788
23846
|
* @throws ApiError
|
|
23789
23847
|
*/
|
|
23790
23848
|
static crmDealsRetrieve({
|
|
23791
|
-
id
|
|
23849
|
+
id,
|
|
23850
|
+
app = ''
|
|
23792
23851
|
}) {
|
|
23793
23852
|
return request(OpenAPI, {
|
|
23794
23853
|
method: 'GET',
|
|
@@ -23796,6 +23855,9 @@ class CrmService {
|
|
|
23796
23855
|
path: {
|
|
23797
23856
|
'id': id
|
|
23798
23857
|
},
|
|
23858
|
+
query: {
|
|
23859
|
+
'app': app
|
|
23860
|
+
},
|
|
23799
23861
|
errors: {
|
|
23800
23862
|
403: `Missing required permission \`Ibl.CRM/Deals/read\`.`,
|
|
23801
23863
|
404: `Deal not found.`
|
|
@@ -23812,7 +23874,8 @@ class CrmService {
|
|
|
23812
23874
|
*/
|
|
23813
23875
|
static crmDealsUpdate({
|
|
23814
23876
|
id,
|
|
23815
|
-
requestBody
|
|
23877
|
+
requestBody,
|
|
23878
|
+
app = ''
|
|
23816
23879
|
}) {
|
|
23817
23880
|
return request(OpenAPI, {
|
|
23818
23881
|
method: 'PUT',
|
|
@@ -23820,6 +23883,9 @@ class CrmService {
|
|
|
23820
23883
|
path: {
|
|
23821
23884
|
'id': id
|
|
23822
23885
|
},
|
|
23886
|
+
query: {
|
|
23887
|
+
'app': app
|
|
23888
|
+
},
|
|
23823
23889
|
body: requestBody,
|
|
23824
23890
|
mediaType: 'application/json',
|
|
23825
23891
|
errors: {
|
|
@@ -23839,6 +23905,7 @@ class CrmService {
|
|
|
23839
23905
|
*/
|
|
23840
23906
|
static crmDealsPartialUpdate({
|
|
23841
23907
|
id,
|
|
23908
|
+
app = '',
|
|
23842
23909
|
requestBody
|
|
23843
23910
|
}) {
|
|
23844
23911
|
return request(OpenAPI, {
|
|
@@ -23847,6 +23914,9 @@ class CrmService {
|
|
|
23847
23914
|
path: {
|
|
23848
23915
|
'id': id
|
|
23849
23916
|
},
|
|
23917
|
+
query: {
|
|
23918
|
+
'app': app
|
|
23919
|
+
},
|
|
23850
23920
|
body: requestBody,
|
|
23851
23921
|
mediaType: 'application/json',
|
|
23852
23922
|
errors: {
|
|
@@ -23865,7 +23935,8 @@ class CrmService {
|
|
|
23865
23935
|
* @throws ApiError
|
|
23866
23936
|
*/
|
|
23867
23937
|
static crmDealsDestroy({
|
|
23868
|
-
id
|
|
23938
|
+
id,
|
|
23939
|
+
app = ''
|
|
23869
23940
|
}) {
|
|
23870
23941
|
return request(OpenAPI, {
|
|
23871
23942
|
method: 'DELETE',
|
|
@@ -23873,6 +23944,9 @@ class CrmService {
|
|
|
23873
23944
|
path: {
|
|
23874
23945
|
'id': id
|
|
23875
23946
|
},
|
|
23947
|
+
query: {
|
|
23948
|
+
'app': app
|
|
23949
|
+
},
|
|
23876
23950
|
errors: {
|
|
23877
23951
|
403: `Missing required permission \`Ibl.CRM/Deals/delete\`.`,
|
|
23878
23952
|
404: `Deal not found.`
|
|
@@ -23888,7 +23962,8 @@ class CrmService {
|
|
|
23888
23962
|
* @throws ApiError
|
|
23889
23963
|
*/
|
|
23890
23964
|
static crmDealsHistoryList({
|
|
23891
|
-
id
|
|
23965
|
+
id,
|
|
23966
|
+
app = ''
|
|
23892
23967
|
}) {
|
|
23893
23968
|
return request(OpenAPI, {
|
|
23894
23969
|
method: 'GET',
|
|
@@ -23896,6 +23971,9 @@ class CrmService {
|
|
|
23896
23971
|
path: {
|
|
23897
23972
|
'id': id
|
|
23898
23973
|
},
|
|
23974
|
+
query: {
|
|
23975
|
+
'app': app
|
|
23976
|
+
},
|
|
23899
23977
|
errors: {
|
|
23900
23978
|
403: `Missing the record's \`read\` permission.`,
|
|
23901
23979
|
404: `Record not found.`
|
|
@@ -23912,7 +23990,8 @@ class CrmService {
|
|
|
23912
23990
|
*/
|
|
23913
23991
|
static crmDealsLostCreate({
|
|
23914
23992
|
id,
|
|
23915
|
-
requestBody
|
|
23993
|
+
requestBody,
|
|
23994
|
+
app = ''
|
|
23916
23995
|
}) {
|
|
23917
23996
|
return request(OpenAPI, {
|
|
23918
23997
|
method: 'POST',
|
|
@@ -23920,6 +23999,9 @@ class CrmService {
|
|
|
23920
23999
|
path: {
|
|
23921
24000
|
'id': id
|
|
23922
24001
|
},
|
|
24002
|
+
query: {
|
|
24003
|
+
'app': app
|
|
24004
|
+
},
|
|
23923
24005
|
body: requestBody,
|
|
23924
24006
|
mediaType: 'application/json',
|
|
23925
24007
|
errors: {
|
|
@@ -23929,6 +24011,32 @@ class CrmService {
|
|
|
23929
24011
|
}
|
|
23930
24012
|
});
|
|
23931
24013
|
}
|
|
24014
|
+
/**
|
|
24015
|
+
* Merge into this record's metadata
|
|
24016
|
+
* 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.
|
|
24017
|
+
*
|
|
24018
|
+
* **Required permission:** the record's `write` verb.
|
|
24019
|
+
* @returns Deal
|
|
24020
|
+
* @throws ApiError
|
|
24021
|
+
*/
|
|
24022
|
+
static crmDealsMetadataPartialUpdate({
|
|
24023
|
+
id,
|
|
24024
|
+
app = '',
|
|
24025
|
+
requestBody
|
|
24026
|
+
}) {
|
|
24027
|
+
return request(OpenAPI, {
|
|
24028
|
+
method: 'PATCH',
|
|
24029
|
+
url: '/api/crm/deals/{id}/metadata/',
|
|
24030
|
+
path: {
|
|
24031
|
+
'id': id
|
|
24032
|
+
},
|
|
24033
|
+
query: {
|
|
24034
|
+
'app': app
|
|
24035
|
+
},
|
|
24036
|
+
body: requestBody,
|
|
24037
|
+
mediaType: 'application/json'
|
|
24038
|
+
});
|
|
24039
|
+
}
|
|
23932
24040
|
/**
|
|
23933
24041
|
* Move a deal to a different stage
|
|
23934
24042
|
* 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.
|
|
@@ -23939,6 +24047,7 @@ class CrmService {
|
|
|
23939
24047
|
*/
|
|
23940
24048
|
static crmDealsMoveStageCreate({
|
|
23941
24049
|
id,
|
|
24050
|
+
app = '',
|
|
23942
24051
|
requestBody
|
|
23943
24052
|
}) {
|
|
23944
24053
|
return request(OpenAPI, {
|
|
@@ -23947,6 +24056,9 @@ class CrmService {
|
|
|
23947
24056
|
path: {
|
|
23948
24057
|
'id': id
|
|
23949
24058
|
},
|
|
24059
|
+
query: {
|
|
24060
|
+
'app': app
|
|
24061
|
+
},
|
|
23950
24062
|
body: requestBody,
|
|
23951
24063
|
mediaType: 'application/json',
|
|
23952
24064
|
errors: {
|
|
@@ -23966,7 +24078,8 @@ class CrmService {
|
|
|
23966
24078
|
*/
|
|
23967
24079
|
static crmDealsTagsCreate({
|
|
23968
24080
|
id,
|
|
23969
|
-
requestBody
|
|
24081
|
+
requestBody,
|
|
24082
|
+
app = ''
|
|
23970
24083
|
}) {
|
|
23971
24084
|
return request(OpenAPI, {
|
|
23972
24085
|
method: 'POST',
|
|
@@ -23974,6 +24087,9 @@ class CrmService {
|
|
|
23974
24087
|
path: {
|
|
23975
24088
|
'id': id
|
|
23976
24089
|
},
|
|
24090
|
+
query: {
|
|
24091
|
+
'app': app
|
|
24092
|
+
},
|
|
23977
24093
|
body: requestBody,
|
|
23978
24094
|
mediaType: 'application/json',
|
|
23979
24095
|
errors: {
|
|
@@ -23994,7 +24110,8 @@ class CrmService {
|
|
|
23994
24110
|
*/
|
|
23995
24111
|
static crmDealsTagsDestroy({
|
|
23996
24112
|
id,
|
|
23997
|
-
tagId
|
|
24113
|
+
tagId,
|
|
24114
|
+
app = ''
|
|
23998
24115
|
}) {
|
|
23999
24116
|
return request(OpenAPI, {
|
|
24000
24117
|
method: 'DELETE',
|
|
@@ -24003,6 +24120,9 @@ class CrmService {
|
|
|
24003
24120
|
'id': id,
|
|
24004
24121
|
'tag_id': tagId
|
|
24005
24122
|
},
|
|
24123
|
+
query: {
|
|
24124
|
+
'app': app
|
|
24125
|
+
},
|
|
24006
24126
|
errors: {
|
|
24007
24127
|
403: `No response body`,
|
|
24008
24128
|
404: `No response body`
|
|
@@ -24019,6 +24139,7 @@ class CrmService {
|
|
|
24019
24139
|
*/
|
|
24020
24140
|
static crmDealsWonCreate({
|
|
24021
24141
|
id,
|
|
24142
|
+
app = '',
|
|
24022
24143
|
requestBody
|
|
24023
24144
|
}) {
|
|
24024
24145
|
return request(OpenAPI, {
|
|
@@ -24027,6 +24148,9 @@ class CrmService {
|
|
|
24027
24148
|
path: {
|
|
24028
24149
|
'id': id
|
|
24029
24150
|
},
|
|
24151
|
+
query: {
|
|
24152
|
+
'app': app
|
|
24153
|
+
},
|
|
24030
24154
|
body: requestBody,
|
|
24031
24155
|
mediaType: 'application/json',
|
|
24032
24156
|
errors: {
|
|
@@ -24045,6 +24169,7 @@ class CrmService {
|
|
|
24045
24169
|
* @throws ApiError
|
|
24046
24170
|
*/
|
|
24047
24171
|
static crmDealsBoardRetrieve({
|
|
24172
|
+
app = '',
|
|
24048
24173
|
createdAtGte,
|
|
24049
24174
|
createdAtLte,
|
|
24050
24175
|
dateFilter,
|
|
@@ -24068,6 +24193,7 @@ class CrmService {
|
|
|
24068
24193
|
method: 'GET',
|
|
24069
24194
|
url: '/api/crm/deals/board/',
|
|
24070
24195
|
query: {
|
|
24196
|
+
'app': app,
|
|
24071
24197
|
'created_at__gte': createdAtGte,
|
|
24072
24198
|
'created_at__lte': createdAtLte,
|
|
24073
24199
|
'date_filter': dateFilter,
|
|
@@ -24103,6 +24229,7 @@ class CrmService {
|
|
|
24103
24229
|
* @throws ApiError
|
|
24104
24230
|
*/
|
|
24105
24231
|
static crmFavoritesList({
|
|
24232
|
+
app = '',
|
|
24106
24233
|
dateFilter,
|
|
24107
24234
|
deal,
|
|
24108
24235
|
endDate,
|
|
@@ -24117,6 +24244,7 @@ class CrmService {
|
|
|
24117
24244
|
method: 'GET',
|
|
24118
24245
|
url: '/api/crm/favorites/',
|
|
24119
24246
|
query: {
|
|
24247
|
+
'app': app,
|
|
24120
24248
|
'date_filter': dateFilter,
|
|
24121
24249
|
'deal': deal,
|
|
24122
24250
|
'end_date': endDate,
|
|
@@ -24142,11 +24270,15 @@ class CrmService {
|
|
|
24142
24270
|
* @throws ApiError
|
|
24143
24271
|
*/
|
|
24144
24272
|
static crmFavoritesCreate({
|
|
24273
|
+
app = '',
|
|
24145
24274
|
requestBody
|
|
24146
24275
|
}) {
|
|
24147
24276
|
return request(OpenAPI, {
|
|
24148
24277
|
method: 'POST',
|
|
24149
24278
|
url: '/api/crm/favorites/',
|
|
24279
|
+
query: {
|
|
24280
|
+
'app': app
|
|
24281
|
+
},
|
|
24150
24282
|
body: requestBody,
|
|
24151
24283
|
mediaType: 'application/json',
|
|
24152
24284
|
errors: {
|
|
@@ -24162,7 +24294,8 @@ class CrmService {
|
|
|
24162
24294
|
* @throws ApiError
|
|
24163
24295
|
*/
|
|
24164
24296
|
static crmFavoritesRetrieve({
|
|
24165
|
-
id
|
|
24297
|
+
id,
|
|
24298
|
+
app = ''
|
|
24166
24299
|
}) {
|
|
24167
24300
|
return request(OpenAPI, {
|
|
24168
24301
|
method: 'GET',
|
|
@@ -24170,6 +24303,9 @@ class CrmService {
|
|
|
24170
24303
|
path: {
|
|
24171
24304
|
'id': id
|
|
24172
24305
|
},
|
|
24306
|
+
query: {
|
|
24307
|
+
'app': app
|
|
24308
|
+
},
|
|
24173
24309
|
errors: {
|
|
24174
24310
|
403: `Missing required permission \`Ibl.CRM/Favorites/read\`.`,
|
|
24175
24311
|
404: `Favorite not found.`
|
|
@@ -24185,7 +24321,8 @@ class CrmService {
|
|
|
24185
24321
|
* @throws ApiError
|
|
24186
24322
|
*/
|
|
24187
24323
|
static crmFavoritesDestroy({
|
|
24188
|
-
id
|
|
24324
|
+
id,
|
|
24325
|
+
app = ''
|
|
24189
24326
|
}) {
|
|
24190
24327
|
return request(OpenAPI, {
|
|
24191
24328
|
method: 'DELETE',
|
|
@@ -24193,6 +24330,9 @@ class CrmService {
|
|
|
24193
24330
|
path: {
|
|
24194
24331
|
'id': id
|
|
24195
24332
|
},
|
|
24333
|
+
query: {
|
|
24334
|
+
'app': app
|
|
24335
|
+
},
|
|
24196
24336
|
errors: {
|
|
24197
24337
|
403: `Missing required permission \`Ibl.CRM/Favorites/delete\`.`,
|
|
24198
24338
|
404: `Favorite not found.`
|
|
@@ -24208,6 +24348,7 @@ class CrmService {
|
|
|
24208
24348
|
* @throws ApiError
|
|
24209
24349
|
*/
|
|
24210
24350
|
static crmLeadSourcesList({
|
|
24351
|
+
app = '',
|
|
24211
24352
|
code,
|
|
24212
24353
|
dateFilter,
|
|
24213
24354
|
endDate,
|
|
@@ -24222,6 +24363,7 @@ class CrmService {
|
|
|
24222
24363
|
method: 'GET',
|
|
24223
24364
|
url: '/api/crm/lead-sources/',
|
|
24224
24365
|
query: {
|
|
24366
|
+
'app': app,
|
|
24225
24367
|
'code': code,
|
|
24226
24368
|
'date_filter': dateFilter,
|
|
24227
24369
|
'end_date': endDate,
|
|
@@ -24247,11 +24389,15 @@ class CrmService {
|
|
|
24247
24389
|
* @throws ApiError
|
|
24248
24390
|
*/
|
|
24249
24391
|
static crmLeadSourcesCreate({
|
|
24250
|
-
requestBody
|
|
24392
|
+
requestBody,
|
|
24393
|
+
app = ''
|
|
24251
24394
|
}) {
|
|
24252
24395
|
return request(OpenAPI, {
|
|
24253
24396
|
method: 'POST',
|
|
24254
24397
|
url: '/api/crm/lead-sources/',
|
|
24398
|
+
query: {
|
|
24399
|
+
'app': app
|
|
24400
|
+
},
|
|
24255
24401
|
body: requestBody,
|
|
24256
24402
|
mediaType: 'application/json',
|
|
24257
24403
|
errors: {
|
|
@@ -24269,7 +24415,8 @@ class CrmService {
|
|
|
24269
24415
|
* @throws ApiError
|
|
24270
24416
|
*/
|
|
24271
24417
|
static crmLeadSourcesRetrieve({
|
|
24272
|
-
id
|
|
24418
|
+
id,
|
|
24419
|
+
app = ''
|
|
24273
24420
|
}) {
|
|
24274
24421
|
return request(OpenAPI, {
|
|
24275
24422
|
method: 'GET',
|
|
@@ -24277,6 +24424,9 @@ class CrmService {
|
|
|
24277
24424
|
path: {
|
|
24278
24425
|
'id': id
|
|
24279
24426
|
},
|
|
24427
|
+
query: {
|
|
24428
|
+
'app': app
|
|
24429
|
+
},
|
|
24280
24430
|
errors: {
|
|
24281
24431
|
403: `Missing required permission \`Ibl.CRM/Pipelines/read\`.`,
|
|
24282
24432
|
404: `LeadSource not found.`
|
|
@@ -24293,7 +24443,8 @@ class CrmService {
|
|
|
24293
24443
|
*/
|
|
24294
24444
|
static crmLeadSourcesUpdate({
|
|
24295
24445
|
id,
|
|
24296
|
-
requestBody
|
|
24446
|
+
requestBody,
|
|
24447
|
+
app = ''
|
|
24297
24448
|
}) {
|
|
24298
24449
|
return request(OpenAPI, {
|
|
24299
24450
|
method: 'PUT',
|
|
@@ -24301,6 +24452,9 @@ class CrmService {
|
|
|
24301
24452
|
path: {
|
|
24302
24453
|
'id': id
|
|
24303
24454
|
},
|
|
24455
|
+
query: {
|
|
24456
|
+
'app': app
|
|
24457
|
+
},
|
|
24304
24458
|
body: requestBody,
|
|
24305
24459
|
mediaType: 'application/json',
|
|
24306
24460
|
errors: {
|
|
@@ -24320,6 +24474,7 @@ class CrmService {
|
|
|
24320
24474
|
*/
|
|
24321
24475
|
static crmLeadSourcesPartialUpdate({
|
|
24322
24476
|
id,
|
|
24477
|
+
app = '',
|
|
24323
24478
|
requestBody
|
|
24324
24479
|
}) {
|
|
24325
24480
|
return request(OpenAPI, {
|
|
@@ -24328,6 +24483,9 @@ class CrmService {
|
|
|
24328
24483
|
path: {
|
|
24329
24484
|
'id': id
|
|
24330
24485
|
},
|
|
24486
|
+
query: {
|
|
24487
|
+
'app': app
|
|
24488
|
+
},
|
|
24331
24489
|
body: requestBody,
|
|
24332
24490
|
mediaType: 'application/json',
|
|
24333
24491
|
errors: {
|
|
@@ -24346,7 +24504,8 @@ class CrmService {
|
|
|
24346
24504
|
* @throws ApiError
|
|
24347
24505
|
*/
|
|
24348
24506
|
static crmLeadSourcesDestroy({
|
|
24349
|
-
id
|
|
24507
|
+
id,
|
|
24508
|
+
app = ''
|
|
24350
24509
|
}) {
|
|
24351
24510
|
return request(OpenAPI, {
|
|
24352
24511
|
method: 'DELETE',
|
|
@@ -24354,24 +24513,57 @@ class CrmService {
|
|
|
24354
24513
|
path: {
|
|
24355
24514
|
'id': id
|
|
24356
24515
|
},
|
|
24516
|
+
query: {
|
|
24517
|
+
'app': app
|
|
24518
|
+
},
|
|
24357
24519
|
errors: {
|
|
24358
24520
|
403: `Missing required permission \`Ibl.CRM/Pipelines/delete\`.`,
|
|
24359
24521
|
404: `LeadSource not found.`
|
|
24360
24522
|
}
|
|
24361
24523
|
});
|
|
24362
24524
|
}
|
|
24525
|
+
/**
|
|
24526
|
+
* List the Platform's members
|
|
24527
|
+
* 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`.
|
|
24528
|
+
*
|
|
24529
|
+
* **Required permission:** `list` on persons, organizations, deals or activities (any one).
|
|
24530
|
+
* @returns PaginatedMemberList
|
|
24531
|
+
* @throws ApiError
|
|
24532
|
+
*/
|
|
24533
|
+
static crmMembersList({
|
|
24534
|
+
app = '',
|
|
24535
|
+
page,
|
|
24536
|
+
pageSize,
|
|
24537
|
+
query
|
|
24538
|
+
}) {
|
|
24539
|
+
return request(OpenAPI, {
|
|
24540
|
+
method: 'GET',
|
|
24541
|
+
url: '/api/crm/members/',
|
|
24542
|
+
query: {
|
|
24543
|
+
'app': app,
|
|
24544
|
+
'page': page,
|
|
24545
|
+
'page_size': pageSize,
|
|
24546
|
+
'query': query
|
|
24547
|
+
},
|
|
24548
|
+
errors: {
|
|
24549
|
+
403: `No CRM list permission.`
|
|
24550
|
+
}
|
|
24551
|
+
});
|
|
24552
|
+
}
|
|
24363
24553
|
/**
|
|
24364
24554
|
* List organizations
|
|
24365
|
-
* Returns a paginated list of organizations in your Platform. Supports filtering by `owner
|
|
24555
|
+
* 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).
|
|
24366
24556
|
*
|
|
24367
24557
|
* **Required permission:** `Ibl.CRM/Organizations/list`.
|
|
24368
24558
|
* @returns PaginatedOrganizationList
|
|
24369
24559
|
* @throws ApiError
|
|
24370
24560
|
*/
|
|
24371
24561
|
static crmOrganizationsList({
|
|
24562
|
+
app = '',
|
|
24372
24563
|
dateFilter,
|
|
24373
24564
|
endDate,
|
|
24374
24565
|
name,
|
|
24566
|
+
nameIexact,
|
|
24375
24567
|
ordering,
|
|
24376
24568
|
owner,
|
|
24377
24569
|
page,
|
|
@@ -24384,9 +24576,11 @@ class CrmService {
|
|
|
24384
24576
|
method: 'GET',
|
|
24385
24577
|
url: '/api/crm/organizations/',
|
|
24386
24578
|
query: {
|
|
24579
|
+
'app': app,
|
|
24387
24580
|
'date_filter': dateFilter,
|
|
24388
24581
|
'end_date': endDate,
|
|
24389
24582
|
'name': name,
|
|
24583
|
+
'name__iexact': nameIexact,
|
|
24390
24584
|
'ordering': ordering,
|
|
24391
24585
|
'owner': owner,
|
|
24392
24586
|
'page': page,
|
|
@@ -24410,11 +24604,15 @@ class CrmService {
|
|
|
24410
24604
|
* @throws ApiError
|
|
24411
24605
|
*/
|
|
24412
24606
|
static crmOrganizationsCreate({
|
|
24413
|
-
requestBody
|
|
24607
|
+
requestBody,
|
|
24608
|
+
app = ''
|
|
24414
24609
|
}) {
|
|
24415
24610
|
return request(OpenAPI, {
|
|
24416
24611
|
method: 'POST',
|
|
24417
24612
|
url: '/api/crm/organizations/',
|
|
24613
|
+
query: {
|
|
24614
|
+
'app': app
|
|
24615
|
+
},
|
|
24418
24616
|
body: requestBody,
|
|
24419
24617
|
mediaType: 'application/json',
|
|
24420
24618
|
errors: {
|
|
@@ -24432,7 +24630,8 @@ class CrmService {
|
|
|
24432
24630
|
* @throws ApiError
|
|
24433
24631
|
*/
|
|
24434
24632
|
static crmOrganizationsRetrieve({
|
|
24435
|
-
id
|
|
24633
|
+
id,
|
|
24634
|
+
app = ''
|
|
24436
24635
|
}) {
|
|
24437
24636
|
return request(OpenAPI, {
|
|
24438
24637
|
method: 'GET',
|
|
@@ -24440,6 +24639,9 @@ class CrmService {
|
|
|
24440
24639
|
path: {
|
|
24441
24640
|
'id': id
|
|
24442
24641
|
},
|
|
24642
|
+
query: {
|
|
24643
|
+
'app': app
|
|
24644
|
+
},
|
|
24443
24645
|
errors: {
|
|
24444
24646
|
403: `Missing required permission \`Ibl.CRM/Organizations/read\`.`,
|
|
24445
24647
|
404: `Organization not found.`
|
|
@@ -24456,7 +24658,8 @@ class CrmService {
|
|
|
24456
24658
|
*/
|
|
24457
24659
|
static crmOrganizationsUpdate({
|
|
24458
24660
|
id,
|
|
24459
|
-
requestBody
|
|
24661
|
+
requestBody,
|
|
24662
|
+
app = ''
|
|
24460
24663
|
}) {
|
|
24461
24664
|
return request(OpenAPI, {
|
|
24462
24665
|
method: 'PUT',
|
|
@@ -24464,6 +24667,9 @@ class CrmService {
|
|
|
24464
24667
|
path: {
|
|
24465
24668
|
'id': id
|
|
24466
24669
|
},
|
|
24670
|
+
query: {
|
|
24671
|
+
'app': app
|
|
24672
|
+
},
|
|
24467
24673
|
body: requestBody,
|
|
24468
24674
|
mediaType: 'application/json',
|
|
24469
24675
|
errors: {
|
|
@@ -24483,6 +24689,7 @@ class CrmService {
|
|
|
24483
24689
|
*/
|
|
24484
24690
|
static crmOrganizationsPartialUpdate({
|
|
24485
24691
|
id,
|
|
24692
|
+
app = '',
|
|
24486
24693
|
requestBody
|
|
24487
24694
|
}) {
|
|
24488
24695
|
return request(OpenAPI, {
|
|
@@ -24491,6 +24698,9 @@ class CrmService {
|
|
|
24491
24698
|
path: {
|
|
24492
24699
|
'id': id
|
|
24493
24700
|
},
|
|
24701
|
+
query: {
|
|
24702
|
+
'app': app
|
|
24703
|
+
},
|
|
24494
24704
|
body: requestBody,
|
|
24495
24705
|
mediaType: 'application/json',
|
|
24496
24706
|
errors: {
|
|
@@ -24509,7 +24719,8 @@ class CrmService {
|
|
|
24509
24719
|
* @throws ApiError
|
|
24510
24720
|
*/
|
|
24511
24721
|
static crmOrganizationsDestroy({
|
|
24512
|
-
id
|
|
24722
|
+
id,
|
|
24723
|
+
app = ''
|
|
24513
24724
|
}) {
|
|
24514
24725
|
return request(OpenAPI, {
|
|
24515
24726
|
method: 'DELETE',
|
|
@@ -24517,6 +24728,9 @@ class CrmService {
|
|
|
24517
24728
|
path: {
|
|
24518
24729
|
'id': id
|
|
24519
24730
|
},
|
|
24731
|
+
query: {
|
|
24732
|
+
'app': app
|
|
24733
|
+
},
|
|
24520
24734
|
errors: {
|
|
24521
24735
|
403: `Missing required permission \`Ibl.CRM/Organizations/delete\`.`,
|
|
24522
24736
|
404: `Organization not found.`
|
|
@@ -24532,7 +24746,8 @@ class CrmService {
|
|
|
24532
24746
|
* @throws ApiError
|
|
24533
24747
|
*/
|
|
24534
24748
|
static crmOrganizationsHistoryList({
|
|
24535
|
-
id
|
|
24749
|
+
id,
|
|
24750
|
+
app = ''
|
|
24536
24751
|
}) {
|
|
24537
24752
|
return request(OpenAPI, {
|
|
24538
24753
|
method: 'GET',
|
|
@@ -24540,12 +24755,41 @@ class CrmService {
|
|
|
24540
24755
|
path: {
|
|
24541
24756
|
'id': id
|
|
24542
24757
|
},
|
|
24758
|
+
query: {
|
|
24759
|
+
'app': app
|
|
24760
|
+
},
|
|
24543
24761
|
errors: {
|
|
24544
24762
|
403: `Missing the record's \`read\` permission.`,
|
|
24545
24763
|
404: `Record not found.`
|
|
24546
24764
|
}
|
|
24547
24765
|
});
|
|
24548
24766
|
}
|
|
24767
|
+
/**
|
|
24768
|
+
* Merge into this record's metadata
|
|
24769
|
+
* 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.
|
|
24770
|
+
*
|
|
24771
|
+
* **Required permission:** the record's `write` verb.
|
|
24772
|
+
* @returns Organization
|
|
24773
|
+
* @throws ApiError
|
|
24774
|
+
*/
|
|
24775
|
+
static crmOrganizationsMetadataPartialUpdate({
|
|
24776
|
+
id,
|
|
24777
|
+
app = '',
|
|
24778
|
+
requestBody
|
|
24779
|
+
}) {
|
|
24780
|
+
return request(OpenAPI, {
|
|
24781
|
+
method: 'PATCH',
|
|
24782
|
+
url: '/api/crm/organizations/{id}/metadata/',
|
|
24783
|
+
path: {
|
|
24784
|
+
'id': id
|
|
24785
|
+
},
|
|
24786
|
+
query: {
|
|
24787
|
+
'app': app
|
|
24788
|
+
},
|
|
24789
|
+
body: requestBody,
|
|
24790
|
+
mediaType: 'application/json'
|
|
24791
|
+
});
|
|
24792
|
+
}
|
|
24549
24793
|
/**
|
|
24550
24794
|
* Attach a tag to this record
|
|
24551
24795
|
* 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.
|
|
@@ -24556,7 +24800,8 @@ class CrmService {
|
|
|
24556
24800
|
*/
|
|
24557
24801
|
static crmOrganizationsTagsCreate({
|
|
24558
24802
|
id,
|
|
24559
|
-
requestBody
|
|
24803
|
+
requestBody,
|
|
24804
|
+
app = ''
|
|
24560
24805
|
}) {
|
|
24561
24806
|
return request(OpenAPI, {
|
|
24562
24807
|
method: 'POST',
|
|
@@ -24564,6 +24809,9 @@ class CrmService {
|
|
|
24564
24809
|
path: {
|
|
24565
24810
|
'id': id
|
|
24566
24811
|
},
|
|
24812
|
+
query: {
|
|
24813
|
+
'app': app
|
|
24814
|
+
},
|
|
24567
24815
|
body: requestBody,
|
|
24568
24816
|
mediaType: 'application/json',
|
|
24569
24817
|
errors: {
|
|
@@ -24584,7 +24832,8 @@ class CrmService {
|
|
|
24584
24832
|
*/
|
|
24585
24833
|
static crmOrganizationsTagsDestroy({
|
|
24586
24834
|
id,
|
|
24587
|
-
tagId
|
|
24835
|
+
tagId,
|
|
24836
|
+
app = ''
|
|
24588
24837
|
}) {
|
|
24589
24838
|
return request(OpenAPI, {
|
|
24590
24839
|
method: 'DELETE',
|
|
@@ -24593,12 +24842,74 @@ class CrmService {
|
|
|
24593
24842
|
'id': id,
|
|
24594
24843
|
'tag_id': tagId
|
|
24595
24844
|
},
|
|
24845
|
+
query: {
|
|
24846
|
+
'app': app
|
|
24847
|
+
},
|
|
24596
24848
|
errors: {
|
|
24597
24849
|
403: `No response body`,
|
|
24598
24850
|
404: `No response body`
|
|
24599
24851
|
}
|
|
24600
24852
|
});
|
|
24601
24853
|
}
|
|
24854
|
+
/**
|
|
24855
|
+
* A published web form (public)
|
|
24856
|
+
* 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.
|
|
24857
|
+
* @returns WebFormPublic
|
|
24858
|
+
* @throws ApiError
|
|
24859
|
+
*/
|
|
24860
|
+
static crmOrgsWebFormsRetrieve({
|
|
24861
|
+
org,
|
|
24862
|
+
slug,
|
|
24863
|
+
app = ''
|
|
24864
|
+
}) {
|
|
24865
|
+
return request(OpenAPI, {
|
|
24866
|
+
method: 'GET',
|
|
24867
|
+
url: '/api/crm/orgs/{org}/web-forms/{slug}/',
|
|
24868
|
+
path: {
|
|
24869
|
+
'org': org,
|
|
24870
|
+
'slug': slug
|
|
24871
|
+
},
|
|
24872
|
+
query: {
|
|
24873
|
+
'app': app
|
|
24874
|
+
},
|
|
24875
|
+
errors: {
|
|
24876
|
+
404: `No published form here.`
|
|
24877
|
+
}
|
|
24878
|
+
});
|
|
24879
|
+
}
|
|
24880
|
+
/**
|
|
24881
|
+
* Submit a published web form (public)
|
|
24882
|
+
* 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).
|
|
24883
|
+
* @returns WebFormSubmitResponse
|
|
24884
|
+
* @throws ApiError
|
|
24885
|
+
*/
|
|
24886
|
+
static crmOrgsWebFormsSubmissionsCreate({
|
|
24887
|
+
org,
|
|
24888
|
+
slug,
|
|
24889
|
+
requestBody,
|
|
24890
|
+
app = ''
|
|
24891
|
+
}) {
|
|
24892
|
+
return request(OpenAPI, {
|
|
24893
|
+
method: 'POST',
|
|
24894
|
+
url: '/api/crm/orgs/{org}/web-forms/{slug}/submissions/',
|
|
24895
|
+
path: {
|
|
24896
|
+
'org': org,
|
|
24897
|
+
'slug': slug
|
|
24898
|
+
},
|
|
24899
|
+
query: {
|
|
24900
|
+
'app': app
|
|
24901
|
+
},
|
|
24902
|
+
body: requestBody,
|
|
24903
|
+
mediaType: 'application/json',
|
|
24904
|
+
errors: {
|
|
24905
|
+
400: `\`{issues: {<field key>|non_field_errors: [message]}}\`.`,
|
|
24906
|
+
404: `No published form here.`,
|
|
24907
|
+
413: `Body over 64 KB.`,
|
|
24908
|
+
415: `Not JSON.`,
|
|
24909
|
+
429: `Too many submissions from this IP.`
|
|
24910
|
+
}
|
|
24911
|
+
});
|
|
24912
|
+
}
|
|
24602
24913
|
/**
|
|
24603
24914
|
* CRM overview
|
|
24604
24915
|
* 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.
|
|
@@ -24610,6 +24921,7 @@ class CrmService {
|
|
|
24610
24921
|
* @throws ApiError
|
|
24611
24922
|
*/
|
|
24612
24923
|
static crmOverviewRetrieve({
|
|
24924
|
+
app = '',
|
|
24613
24925
|
dateFilter,
|
|
24614
24926
|
endDate,
|
|
24615
24927
|
pipeline,
|
|
@@ -24619,6 +24931,7 @@ class CrmService {
|
|
|
24619
24931
|
method: 'GET',
|
|
24620
24932
|
url: '/api/crm/overview/',
|
|
24621
24933
|
query: {
|
|
24934
|
+
'app': app,
|
|
24622
24935
|
'date_filter': dateFilter,
|
|
24623
24936
|
'end_date': endDate,
|
|
24624
24937
|
'pipeline': pipeline,
|
|
@@ -24633,7 +24946,7 @@ class CrmService {
|
|
|
24633
24946
|
}
|
|
24634
24947
|
/**
|
|
24635
24948
|
* List persons
|
|
24636
|
-
* 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`.
|
|
24949
|
+
* 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`.
|
|
24637
24950
|
*
|
|
24638
24951
|
* **Required permission:** `Ibl.CRM/Persons/list`.
|
|
24639
24952
|
* @returns PaginatedPersonList
|
|
@@ -24641,6 +24954,7 @@ class CrmService {
|
|
|
24641
24954
|
*/
|
|
24642
24955
|
static crmPersonsList({
|
|
24643
24956
|
active,
|
|
24957
|
+
app = '',
|
|
24644
24958
|
createdAtGte,
|
|
24645
24959
|
createdAtLte,
|
|
24646
24960
|
dateFilter,
|
|
@@ -24652,6 +24966,7 @@ class CrmService {
|
|
|
24652
24966
|
owner,
|
|
24653
24967
|
page,
|
|
24654
24968
|
pageSize,
|
|
24969
|
+
primaryEmail,
|
|
24655
24970
|
search,
|
|
24656
24971
|
startDate,
|
|
24657
24972
|
tags
|
|
@@ -24661,6 +24976,7 @@ class CrmService {
|
|
|
24661
24976
|
url: '/api/crm/persons/',
|
|
24662
24977
|
query: {
|
|
24663
24978
|
'active': active,
|
|
24979
|
+
'app': app,
|
|
24664
24980
|
'created_at__gte': createdAtGte,
|
|
24665
24981
|
'created_at__lte': createdAtLte,
|
|
24666
24982
|
'date_filter': dateFilter,
|
|
@@ -24672,6 +24988,7 @@ class CrmService {
|
|
|
24672
24988
|
'owner': owner,
|
|
24673
24989
|
'page': page,
|
|
24674
24990
|
'page_size': pageSize,
|
|
24991
|
+
'primary_email': primaryEmail,
|
|
24675
24992
|
'search': search,
|
|
24676
24993
|
'start_date': startDate,
|
|
24677
24994
|
'tags': tags
|
|
@@ -24691,11 +25008,15 @@ class CrmService {
|
|
|
24691
25008
|
* @throws ApiError
|
|
24692
25009
|
*/
|
|
24693
25010
|
static crmPersonsCreate({
|
|
24694
|
-
requestBody
|
|
25011
|
+
requestBody,
|
|
25012
|
+
app = ''
|
|
24695
25013
|
}) {
|
|
24696
25014
|
return request(OpenAPI, {
|
|
24697
25015
|
method: 'POST',
|
|
24698
25016
|
url: '/api/crm/persons/',
|
|
25017
|
+
query: {
|
|
25018
|
+
'app': app
|
|
25019
|
+
},
|
|
24699
25020
|
body: requestBody,
|
|
24700
25021
|
mediaType: 'application/json',
|
|
24701
25022
|
errors: {
|
|
@@ -24713,7 +25034,8 @@ class CrmService {
|
|
|
24713
25034
|
* @throws ApiError
|
|
24714
25035
|
*/
|
|
24715
25036
|
static crmPersonsRetrieve({
|
|
24716
|
-
id
|
|
25037
|
+
id,
|
|
25038
|
+
app = ''
|
|
24717
25039
|
}) {
|
|
24718
25040
|
return request(OpenAPI, {
|
|
24719
25041
|
method: 'GET',
|
|
@@ -24721,6 +25043,9 @@ class CrmService {
|
|
|
24721
25043
|
path: {
|
|
24722
25044
|
'id': id
|
|
24723
25045
|
},
|
|
25046
|
+
query: {
|
|
25047
|
+
'app': app
|
|
25048
|
+
},
|
|
24724
25049
|
errors: {
|
|
24725
25050
|
403: `Missing required permission \`Ibl.CRM/Persons/read\`.`,
|
|
24726
25051
|
404: `Person not found.`
|
|
@@ -24737,7 +25062,8 @@ class CrmService {
|
|
|
24737
25062
|
*/
|
|
24738
25063
|
static crmPersonsUpdate({
|
|
24739
25064
|
id,
|
|
24740
|
-
requestBody
|
|
25065
|
+
requestBody,
|
|
25066
|
+
app = ''
|
|
24741
25067
|
}) {
|
|
24742
25068
|
return request(OpenAPI, {
|
|
24743
25069
|
method: 'PUT',
|
|
@@ -24745,6 +25071,9 @@ class CrmService {
|
|
|
24745
25071
|
path: {
|
|
24746
25072
|
'id': id
|
|
24747
25073
|
},
|
|
25074
|
+
query: {
|
|
25075
|
+
'app': app
|
|
25076
|
+
},
|
|
24748
25077
|
body: requestBody,
|
|
24749
25078
|
mediaType: 'application/json',
|
|
24750
25079
|
errors: {
|
|
@@ -24764,6 +25093,7 @@ class CrmService {
|
|
|
24764
25093
|
*/
|
|
24765
25094
|
static crmPersonsPartialUpdate({
|
|
24766
25095
|
id,
|
|
25096
|
+
app = '',
|
|
24767
25097
|
requestBody
|
|
24768
25098
|
}) {
|
|
24769
25099
|
return request(OpenAPI, {
|
|
@@ -24772,6 +25102,9 @@ class CrmService {
|
|
|
24772
25102
|
path: {
|
|
24773
25103
|
'id': id
|
|
24774
25104
|
},
|
|
25105
|
+
query: {
|
|
25106
|
+
'app': app
|
|
25107
|
+
},
|
|
24775
25108
|
body: requestBody,
|
|
24776
25109
|
mediaType: 'application/json',
|
|
24777
25110
|
errors: {
|
|
@@ -24790,7 +25123,8 @@ class CrmService {
|
|
|
24790
25123
|
* @throws ApiError
|
|
24791
25124
|
*/
|
|
24792
25125
|
static crmPersonsDestroy({
|
|
24793
|
-
id
|
|
25126
|
+
id,
|
|
25127
|
+
app = ''
|
|
24794
25128
|
}) {
|
|
24795
25129
|
return request(OpenAPI, {
|
|
24796
25130
|
method: 'DELETE',
|
|
@@ -24798,6 +25132,9 @@ class CrmService {
|
|
|
24798
25132
|
path: {
|
|
24799
25133
|
'id': id
|
|
24800
25134
|
},
|
|
25135
|
+
query: {
|
|
25136
|
+
'app': app
|
|
25137
|
+
},
|
|
24801
25138
|
errors: {
|
|
24802
25139
|
403: `Missing required permission \`Ibl.CRM/Persons/delete\`.`,
|
|
24803
25140
|
404: `Person not found.`,
|
|
@@ -24814,7 +25151,8 @@ class CrmService {
|
|
|
24814
25151
|
* @throws ApiError
|
|
24815
25152
|
*/
|
|
24816
25153
|
static crmPersonsHistoryList({
|
|
24817
|
-
id
|
|
25154
|
+
id,
|
|
25155
|
+
app = ''
|
|
24818
25156
|
}) {
|
|
24819
25157
|
return request(OpenAPI, {
|
|
24820
25158
|
method: 'GET',
|
|
@@ -24822,6 +25160,9 @@ class CrmService {
|
|
|
24822
25160
|
path: {
|
|
24823
25161
|
'id': id
|
|
24824
25162
|
},
|
|
25163
|
+
query: {
|
|
25164
|
+
'app': app
|
|
25165
|
+
},
|
|
24825
25166
|
errors: {
|
|
24826
25167
|
403: `Missing the record's \`read\` permission.`,
|
|
24827
25168
|
404: `Record not found.`
|
|
@@ -24834,12 +25175,13 @@ class CrmService {
|
|
|
24834
25175
|
*
|
|
24835
25176
|
* 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.
|
|
24836
25177
|
*
|
|
24837
|
-
* **Required permission:** `Ibl.CRM/Invite/action`.
|
|
25178
|
+
* **Required permission:** `Ibl.CRM/Invite/action`; `is_admin` or `is_staff` also needs `Ibl.Catalog/PlatformInvitations/action`.
|
|
24838
25179
|
* @returns PersonInviteResponse
|
|
24839
25180
|
* @throws ApiError
|
|
24840
25181
|
*/
|
|
24841
25182
|
static crmPersonsInviteCreate({
|
|
24842
25183
|
id,
|
|
25184
|
+
app = '',
|
|
24843
25185
|
requestBody
|
|
24844
25186
|
}) {
|
|
24845
25187
|
return request(OpenAPI, {
|
|
@@ -24848,11 +25190,14 @@ class CrmService {
|
|
|
24848
25190
|
path: {
|
|
24849
25191
|
'id': id
|
|
24850
25192
|
},
|
|
25193
|
+
query: {
|
|
25194
|
+
'app': app
|
|
25195
|
+
},
|
|
24851
25196
|
body: requestBody,
|
|
24852
25197
|
mediaType: 'application/json',
|
|
24853
25198
|
errors: {
|
|
24854
25199
|
400: `Person has no \`primary_email\`; cannot invite.`,
|
|
24855
|
-
403: `Missing
|
|
25200
|
+
403: `Missing \`Ibl.CRM/Invite/action\`, or \`Ibl.Catalog/PlatformInvitations/action\` for \`is_admin\` / \`is_staff\`; an API key never grants them.`,
|
|
24856
25201
|
404: `Person not found.`,
|
|
24857
25202
|
422: `Person is already linked to a platform user.`
|
|
24858
25203
|
}
|
|
@@ -24870,7 +25215,8 @@ class CrmService {
|
|
|
24870
25215
|
*/
|
|
24871
25216
|
static crmPersonsLinkUserCreate({
|
|
24872
25217
|
id,
|
|
24873
|
-
requestBody
|
|
25218
|
+
requestBody,
|
|
25219
|
+
app = ''
|
|
24874
25220
|
}) {
|
|
24875
25221
|
return request(OpenAPI, {
|
|
24876
25222
|
method: 'POST',
|
|
@@ -24878,6 +25224,9 @@ class CrmService {
|
|
|
24878
25224
|
path: {
|
|
24879
25225
|
'id': id
|
|
24880
25226
|
},
|
|
25227
|
+
query: {
|
|
25228
|
+
'app': app
|
|
25229
|
+
},
|
|
24881
25230
|
body: requestBody,
|
|
24882
25231
|
mediaType: 'application/json',
|
|
24883
25232
|
errors: {
|
|
@@ -24887,6 +25236,32 @@ class CrmService {
|
|
|
24887
25236
|
}
|
|
24888
25237
|
});
|
|
24889
25238
|
}
|
|
25239
|
+
/**
|
|
25240
|
+
* Merge into this record's metadata
|
|
25241
|
+
* 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.
|
|
25242
|
+
*
|
|
25243
|
+
* **Required permission:** the record's `write` verb.
|
|
25244
|
+
* @returns Person
|
|
25245
|
+
* @throws ApiError
|
|
25246
|
+
*/
|
|
25247
|
+
static crmPersonsMetadataPartialUpdate({
|
|
25248
|
+
id,
|
|
25249
|
+
app = '',
|
|
25250
|
+
requestBody
|
|
25251
|
+
}) {
|
|
25252
|
+
return request(OpenAPI, {
|
|
25253
|
+
method: 'PATCH',
|
|
25254
|
+
url: '/api/crm/persons/{id}/metadata/',
|
|
25255
|
+
path: {
|
|
25256
|
+
'id': id
|
|
25257
|
+
},
|
|
25258
|
+
query: {
|
|
25259
|
+
'app': app
|
|
25260
|
+
},
|
|
25261
|
+
body: requestBody,
|
|
25262
|
+
mediaType: 'application/json'
|
|
25263
|
+
});
|
|
25264
|
+
}
|
|
24890
25265
|
/**
|
|
24891
25266
|
* Attach a tag to this record
|
|
24892
25267
|
* 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.
|
|
@@ -24897,7 +25272,8 @@ class CrmService {
|
|
|
24897
25272
|
*/
|
|
24898
25273
|
static crmPersonsTagsCreate({
|
|
24899
25274
|
id,
|
|
24900
|
-
requestBody
|
|
25275
|
+
requestBody,
|
|
25276
|
+
app = ''
|
|
24901
25277
|
}) {
|
|
24902
25278
|
return request(OpenAPI, {
|
|
24903
25279
|
method: 'POST',
|
|
@@ -24905,6 +25281,9 @@ class CrmService {
|
|
|
24905
25281
|
path: {
|
|
24906
25282
|
'id': id
|
|
24907
25283
|
},
|
|
25284
|
+
query: {
|
|
25285
|
+
'app': app
|
|
25286
|
+
},
|
|
24908
25287
|
body: requestBody,
|
|
24909
25288
|
mediaType: 'application/json',
|
|
24910
25289
|
errors: {
|
|
@@ -24925,7 +25304,8 @@ class CrmService {
|
|
|
24925
25304
|
*/
|
|
24926
25305
|
static crmPersonsTagsDestroy({
|
|
24927
25306
|
id,
|
|
24928
|
-
tagId
|
|
25307
|
+
tagId,
|
|
25308
|
+
app = ''
|
|
24929
25309
|
}) {
|
|
24930
25310
|
return request(OpenAPI, {
|
|
24931
25311
|
method: 'DELETE',
|
|
@@ -24934,6 +25314,9 @@ class CrmService {
|
|
|
24934
25314
|
'id': id,
|
|
24935
25315
|
'tag_id': tagId
|
|
24936
25316
|
},
|
|
25317
|
+
query: {
|
|
25318
|
+
'app': app
|
|
25319
|
+
},
|
|
24937
25320
|
errors: {
|
|
24938
25321
|
403: `No response body`,
|
|
24939
25322
|
404: `No response body`
|
|
@@ -24942,7 +25325,7 @@ class CrmService {
|
|
|
24942
25325
|
}
|
|
24943
25326
|
/**
|
|
24944
25327
|
* Merge duplicate persons into a primary
|
|
24945
|
-
* Marks each person in `duplicate_ids` as inactive and reports how many related records (deals, activities, tags) were re-parented onto `primary_id`.
|
|
25328
|
+
* 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`.
|
|
24946
25329
|
*
|
|
24947
25330
|
* All ids — both the primary and every duplicate — must belong to your Platform. `primary_id` may not appear in `duplicate_ids`.
|
|
24948
25331
|
*
|
|
@@ -24951,15 +25334,19 @@ class CrmService {
|
|
|
24951
25334
|
* @throws ApiError
|
|
24952
25335
|
*/
|
|
24953
25336
|
static crmPersonsMergeCreate({
|
|
24954
|
-
requestBody
|
|
25337
|
+
requestBody,
|
|
25338
|
+
app = ''
|
|
24955
25339
|
}) {
|
|
24956
25340
|
return request(OpenAPI, {
|
|
24957
25341
|
method: 'POST',
|
|
24958
25342
|
url: '/api/crm/persons/merge/',
|
|
25343
|
+
query: {
|
|
25344
|
+
'app': app
|
|
25345
|
+
},
|
|
24959
25346
|
body: requestBody,
|
|
24960
25347
|
mediaType: 'application/json',
|
|
24961
25348
|
errors: {
|
|
24962
|
-
400: `Validation error: the primary appears in duplicates,
|
|
25349
|
+
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.`,
|
|
24963
25350
|
403: `Missing required permission \`Ibl.CRM/Persons/write\`.`,
|
|
24964
25351
|
404: `Primary person not found.`
|
|
24965
25352
|
}
|
|
@@ -24974,6 +25361,7 @@ class CrmService {
|
|
|
24974
25361
|
* @throws ApiError
|
|
24975
25362
|
*/
|
|
24976
25363
|
static crmPipelinesList({
|
|
25364
|
+
app = '',
|
|
24977
25365
|
code,
|
|
24978
25366
|
dateFilter,
|
|
24979
25367
|
endDate,
|
|
@@ -24989,6 +25377,7 @@ class CrmService {
|
|
|
24989
25377
|
method: 'GET',
|
|
24990
25378
|
url: '/api/crm/pipelines/',
|
|
24991
25379
|
query: {
|
|
25380
|
+
'app': app,
|
|
24992
25381
|
'code': code,
|
|
24993
25382
|
'date_filter': dateFilter,
|
|
24994
25383
|
'end_date': endDate,
|
|
@@ -25015,11 +25404,15 @@ class CrmService {
|
|
|
25015
25404
|
* @throws ApiError
|
|
25016
25405
|
*/
|
|
25017
25406
|
static crmPipelinesCreate({
|
|
25018
|
-
requestBody
|
|
25407
|
+
requestBody,
|
|
25408
|
+
app = ''
|
|
25019
25409
|
}) {
|
|
25020
25410
|
return request(OpenAPI, {
|
|
25021
25411
|
method: 'POST',
|
|
25022
25412
|
url: '/api/crm/pipelines/',
|
|
25413
|
+
query: {
|
|
25414
|
+
'app': app
|
|
25415
|
+
},
|
|
25023
25416
|
body: requestBody,
|
|
25024
25417
|
mediaType: 'application/json',
|
|
25025
25418
|
errors: {
|
|
@@ -25038,6 +25431,7 @@ class CrmService {
|
|
|
25038
25431
|
*/
|
|
25039
25432
|
static crmPipelinesStagesList({
|
|
25040
25433
|
pipelinePk,
|
|
25434
|
+
app = '',
|
|
25041
25435
|
code,
|
|
25042
25436
|
dateFilter,
|
|
25043
25437
|
endDate,
|
|
@@ -25056,6 +25450,7 @@ class CrmService {
|
|
|
25056
25450
|
'pipeline_pk': pipelinePk
|
|
25057
25451
|
},
|
|
25058
25452
|
query: {
|
|
25453
|
+
'app': app,
|
|
25059
25454
|
'code': code,
|
|
25060
25455
|
'date_filter': dateFilter,
|
|
25061
25456
|
'end_date': endDate,
|
|
@@ -25083,7 +25478,8 @@ class CrmService {
|
|
|
25083
25478
|
*/
|
|
25084
25479
|
static crmPipelinesStagesCreate({
|
|
25085
25480
|
pipelinePk,
|
|
25086
|
-
requestBody
|
|
25481
|
+
requestBody,
|
|
25482
|
+
app = ''
|
|
25087
25483
|
}) {
|
|
25088
25484
|
return request(OpenAPI, {
|
|
25089
25485
|
method: 'POST',
|
|
@@ -25091,6 +25487,9 @@ class CrmService {
|
|
|
25091
25487
|
path: {
|
|
25092
25488
|
'pipeline_pk': pipelinePk
|
|
25093
25489
|
},
|
|
25490
|
+
query: {
|
|
25491
|
+
'app': app
|
|
25492
|
+
},
|
|
25094
25493
|
body: requestBody,
|
|
25095
25494
|
mediaType: 'application/json',
|
|
25096
25495
|
errors: {
|
|
@@ -25110,7 +25509,8 @@ class CrmService {
|
|
|
25110
25509
|
*/
|
|
25111
25510
|
static crmPipelinesStagesRetrieve({
|
|
25112
25511
|
id,
|
|
25113
|
-
pipelinePk
|
|
25512
|
+
pipelinePk,
|
|
25513
|
+
app = ''
|
|
25114
25514
|
}) {
|
|
25115
25515
|
return request(OpenAPI, {
|
|
25116
25516
|
method: 'GET',
|
|
@@ -25119,6 +25519,9 @@ class CrmService {
|
|
|
25119
25519
|
'id': id,
|
|
25120
25520
|
'pipeline_pk': pipelinePk
|
|
25121
25521
|
},
|
|
25522
|
+
query: {
|
|
25523
|
+
'app': app
|
|
25524
|
+
},
|
|
25122
25525
|
errors: {
|
|
25123
25526
|
403: `Missing required permission \`Ibl.CRM/Pipelines/read\`.`,
|
|
25124
25527
|
404: `Stage not found in this Pipeline.`
|
|
@@ -25136,7 +25539,8 @@ class CrmService {
|
|
|
25136
25539
|
static crmPipelinesStagesUpdate({
|
|
25137
25540
|
id,
|
|
25138
25541
|
pipelinePk,
|
|
25139
|
-
requestBody
|
|
25542
|
+
requestBody,
|
|
25543
|
+
app = ''
|
|
25140
25544
|
}) {
|
|
25141
25545
|
return request(OpenAPI, {
|
|
25142
25546
|
method: 'PUT',
|
|
@@ -25145,6 +25549,9 @@ class CrmService {
|
|
|
25145
25549
|
'id': id,
|
|
25146
25550
|
'pipeline_pk': pipelinePk
|
|
25147
25551
|
},
|
|
25552
|
+
query: {
|
|
25553
|
+
'app': app
|
|
25554
|
+
},
|
|
25148
25555
|
body: requestBody,
|
|
25149
25556
|
mediaType: 'application/json',
|
|
25150
25557
|
errors: {
|
|
@@ -25165,6 +25572,7 @@ class CrmService {
|
|
|
25165
25572
|
static crmPipelinesStagesPartialUpdate({
|
|
25166
25573
|
id,
|
|
25167
25574
|
pipelinePk,
|
|
25575
|
+
app = '',
|
|
25168
25576
|
requestBody
|
|
25169
25577
|
}) {
|
|
25170
25578
|
return request(OpenAPI, {
|
|
@@ -25174,6 +25582,9 @@ class CrmService {
|
|
|
25174
25582
|
'id': id,
|
|
25175
25583
|
'pipeline_pk': pipelinePk
|
|
25176
25584
|
},
|
|
25585
|
+
query: {
|
|
25586
|
+
'app': app
|
|
25587
|
+
},
|
|
25177
25588
|
body: requestBody,
|
|
25178
25589
|
mediaType: 'application/json',
|
|
25179
25590
|
errors: {
|
|
@@ -25193,7 +25604,8 @@ class CrmService {
|
|
|
25193
25604
|
*/
|
|
25194
25605
|
static crmPipelinesStagesDestroy({
|
|
25195
25606
|
id,
|
|
25196
|
-
pipelinePk
|
|
25607
|
+
pipelinePk,
|
|
25608
|
+
app = ''
|
|
25197
25609
|
}) {
|
|
25198
25610
|
return request(OpenAPI, {
|
|
25199
25611
|
method: 'DELETE',
|
|
@@ -25202,6 +25614,9 @@ class CrmService {
|
|
|
25202
25614
|
'id': id,
|
|
25203
25615
|
'pipeline_pk': pipelinePk
|
|
25204
25616
|
},
|
|
25617
|
+
query: {
|
|
25618
|
+
'app': app
|
|
25619
|
+
},
|
|
25205
25620
|
errors: {
|
|
25206
25621
|
403: `Missing required permission \`Ibl.CRM/Pipelines/delete\`.`,
|
|
25207
25622
|
404: `Stage not found in this Pipeline.`,
|
|
@@ -25218,7 +25633,8 @@ class CrmService {
|
|
|
25218
25633
|
* @throws ApiError
|
|
25219
25634
|
*/
|
|
25220
25635
|
static crmPipelinesRetrieve({
|
|
25221
|
-
id
|
|
25636
|
+
id,
|
|
25637
|
+
app = ''
|
|
25222
25638
|
}) {
|
|
25223
25639
|
return request(OpenAPI, {
|
|
25224
25640
|
method: 'GET',
|
|
@@ -25226,6 +25642,9 @@ class CrmService {
|
|
|
25226
25642
|
path: {
|
|
25227
25643
|
'id': id
|
|
25228
25644
|
},
|
|
25645
|
+
query: {
|
|
25646
|
+
'app': app
|
|
25647
|
+
},
|
|
25229
25648
|
errors: {
|
|
25230
25649
|
403: `Missing required permission \`Ibl.CRM/Pipelines/read\`.`,
|
|
25231
25650
|
404: `Pipeline not found.`
|
|
@@ -25242,7 +25661,8 @@ class CrmService {
|
|
|
25242
25661
|
*/
|
|
25243
25662
|
static crmPipelinesUpdate({
|
|
25244
25663
|
id,
|
|
25245
|
-
requestBody
|
|
25664
|
+
requestBody,
|
|
25665
|
+
app = ''
|
|
25246
25666
|
}) {
|
|
25247
25667
|
return request(OpenAPI, {
|
|
25248
25668
|
method: 'PUT',
|
|
@@ -25250,6 +25670,9 @@ class CrmService {
|
|
|
25250
25670
|
path: {
|
|
25251
25671
|
'id': id
|
|
25252
25672
|
},
|
|
25673
|
+
query: {
|
|
25674
|
+
'app': app
|
|
25675
|
+
},
|
|
25253
25676
|
body: requestBody,
|
|
25254
25677
|
mediaType: 'application/json',
|
|
25255
25678
|
errors: {
|
|
@@ -25269,6 +25692,7 @@ class CrmService {
|
|
|
25269
25692
|
*/
|
|
25270
25693
|
static crmPipelinesPartialUpdate({
|
|
25271
25694
|
id,
|
|
25695
|
+
app = '',
|
|
25272
25696
|
requestBody
|
|
25273
25697
|
}) {
|
|
25274
25698
|
return request(OpenAPI, {
|
|
@@ -25277,6 +25701,9 @@ class CrmService {
|
|
|
25277
25701
|
path: {
|
|
25278
25702
|
'id': id
|
|
25279
25703
|
},
|
|
25704
|
+
query: {
|
|
25705
|
+
'app': app
|
|
25706
|
+
},
|
|
25280
25707
|
body: requestBody,
|
|
25281
25708
|
mediaType: 'application/json',
|
|
25282
25709
|
errors: {
|
|
@@ -25295,7 +25722,8 @@ class CrmService {
|
|
|
25295
25722
|
* @throws ApiError
|
|
25296
25723
|
*/
|
|
25297
25724
|
static crmPipelinesDestroy({
|
|
25298
|
-
id
|
|
25725
|
+
id,
|
|
25726
|
+
app = ''
|
|
25299
25727
|
}) {
|
|
25300
25728
|
return request(OpenAPI, {
|
|
25301
25729
|
method: 'DELETE',
|
|
@@ -25303,6 +25731,9 @@ class CrmService {
|
|
|
25303
25731
|
path: {
|
|
25304
25732
|
'id': id
|
|
25305
25733
|
},
|
|
25734
|
+
query: {
|
|
25735
|
+
'app': app
|
|
25736
|
+
},
|
|
25306
25737
|
errors: {
|
|
25307
25738
|
403: `Missing required permission \`Ibl.CRM/Pipelines/delete\`.`,
|
|
25308
25739
|
404: `Pipeline not found.`,
|
|
@@ -25320,7 +25751,8 @@ class CrmService {
|
|
|
25320
25751
|
*/
|
|
25321
25752
|
static crmPipelinesStagesReorderCreate({
|
|
25322
25753
|
id,
|
|
25323
|
-
requestBody
|
|
25754
|
+
requestBody,
|
|
25755
|
+
app = ''
|
|
25324
25756
|
}) {
|
|
25325
25757
|
return request(OpenAPI, {
|
|
25326
25758
|
method: 'POST',
|
|
@@ -25328,6 +25760,9 @@ class CrmService {
|
|
|
25328
25760
|
path: {
|
|
25329
25761
|
'id': id
|
|
25330
25762
|
},
|
|
25763
|
+
query: {
|
|
25764
|
+
'app': app
|
|
25765
|
+
},
|
|
25331
25766
|
body: requestBody,
|
|
25332
25767
|
mediaType: 'application/json',
|
|
25333
25768
|
errors: {
|
|
@@ -25347,12 +25782,14 @@ class CrmService {
|
|
|
25347
25782
|
*/
|
|
25348
25783
|
static crmSearchRetrieve({
|
|
25349
25784
|
q,
|
|
25785
|
+
app = '',
|
|
25350
25786
|
limit
|
|
25351
25787
|
}) {
|
|
25352
25788
|
return request(OpenAPI, {
|
|
25353
25789
|
method: 'GET',
|
|
25354
25790
|
url: '/api/crm/search/',
|
|
25355
25791
|
query: {
|
|
25792
|
+
'app': app,
|
|
25356
25793
|
'limit': limit,
|
|
25357
25794
|
'q': q
|
|
25358
25795
|
},
|
|
@@ -25364,18 +25801,20 @@ class CrmService {
|
|
|
25364
25801
|
}
|
|
25365
25802
|
/**
|
|
25366
25803
|
* List tags
|
|
25367
|
-
* 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.
|
|
25804
|
+
* 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.
|
|
25368
25805
|
*
|
|
25369
25806
|
* **Required permission:** `Ibl.CRM/Tags/list`.
|
|
25370
25807
|
* @returns PaginatedTagList
|
|
25371
25808
|
* @throws ApiError
|
|
25372
25809
|
*/
|
|
25373
25810
|
static crmTagsList({
|
|
25811
|
+
app = '',
|
|
25374
25812
|
createdAtGte,
|
|
25375
25813
|
createdAtLte,
|
|
25376
25814
|
dateFilter,
|
|
25377
25815
|
endDate,
|
|
25378
25816
|
name,
|
|
25817
|
+
nameIexact,
|
|
25379
25818
|
ordering,
|
|
25380
25819
|
page,
|
|
25381
25820
|
pageSize,
|
|
@@ -25386,11 +25825,13 @@ class CrmService {
|
|
|
25386
25825
|
method: 'GET',
|
|
25387
25826
|
url: '/api/crm/tags/',
|
|
25388
25827
|
query: {
|
|
25828
|
+
'app': app,
|
|
25389
25829
|
'created_at__gte': createdAtGte,
|
|
25390
25830
|
'created_at__lte': createdAtLte,
|
|
25391
25831
|
'date_filter': dateFilter,
|
|
25392
25832
|
'end_date': endDate,
|
|
25393
25833
|
'name': name,
|
|
25834
|
+
'name__iexact': nameIexact,
|
|
25394
25835
|
'ordering': ordering,
|
|
25395
25836
|
'page': page,
|
|
25396
25837
|
'page_size': pageSize,
|
|
@@ -25412,11 +25853,15 @@ class CrmService {
|
|
|
25412
25853
|
* @throws ApiError
|
|
25413
25854
|
*/
|
|
25414
25855
|
static crmTagsCreate({
|
|
25415
|
-
requestBody
|
|
25856
|
+
requestBody,
|
|
25857
|
+
app = ''
|
|
25416
25858
|
}) {
|
|
25417
25859
|
return request(OpenAPI, {
|
|
25418
25860
|
method: 'POST',
|
|
25419
25861
|
url: '/api/crm/tags/',
|
|
25862
|
+
query: {
|
|
25863
|
+
'app': app
|
|
25864
|
+
},
|
|
25420
25865
|
body: requestBody,
|
|
25421
25866
|
mediaType: 'application/json',
|
|
25422
25867
|
errors: {
|
|
@@ -25434,7 +25879,8 @@ class CrmService {
|
|
|
25434
25879
|
* @throws ApiError
|
|
25435
25880
|
*/
|
|
25436
25881
|
static crmTagsRetrieve({
|
|
25437
|
-
id
|
|
25882
|
+
id,
|
|
25883
|
+
app = ''
|
|
25438
25884
|
}) {
|
|
25439
25885
|
return request(OpenAPI, {
|
|
25440
25886
|
method: 'GET',
|
|
@@ -25442,6 +25888,9 @@ class CrmService {
|
|
|
25442
25888
|
path: {
|
|
25443
25889
|
'id': id
|
|
25444
25890
|
},
|
|
25891
|
+
query: {
|
|
25892
|
+
'app': app
|
|
25893
|
+
},
|
|
25445
25894
|
errors: {
|
|
25446
25895
|
403: `Missing required permission \`Ibl.CRM/Tags/read\`.`,
|
|
25447
25896
|
404: `Tag not found.`
|
|
@@ -25458,7 +25907,8 @@ class CrmService {
|
|
|
25458
25907
|
*/
|
|
25459
25908
|
static crmTagsUpdate({
|
|
25460
25909
|
id,
|
|
25461
|
-
requestBody
|
|
25910
|
+
requestBody,
|
|
25911
|
+
app = ''
|
|
25462
25912
|
}) {
|
|
25463
25913
|
return request(OpenAPI, {
|
|
25464
25914
|
method: 'PUT',
|
|
@@ -25466,6 +25916,9 @@ class CrmService {
|
|
|
25466
25916
|
path: {
|
|
25467
25917
|
'id': id
|
|
25468
25918
|
},
|
|
25919
|
+
query: {
|
|
25920
|
+
'app': app
|
|
25921
|
+
},
|
|
25469
25922
|
body: requestBody,
|
|
25470
25923
|
mediaType: 'application/json',
|
|
25471
25924
|
errors: {
|
|
@@ -25485,6 +25938,7 @@ class CrmService {
|
|
|
25485
25938
|
*/
|
|
25486
25939
|
static crmTagsPartialUpdate({
|
|
25487
25940
|
id,
|
|
25941
|
+
app = '',
|
|
25488
25942
|
requestBody
|
|
25489
25943
|
}) {
|
|
25490
25944
|
return request(OpenAPI, {
|
|
@@ -25493,6 +25947,9 @@ class CrmService {
|
|
|
25493
25947
|
path: {
|
|
25494
25948
|
'id': id
|
|
25495
25949
|
},
|
|
25950
|
+
query: {
|
|
25951
|
+
'app': app
|
|
25952
|
+
},
|
|
25496
25953
|
body: requestBody,
|
|
25497
25954
|
mediaType: 'application/json',
|
|
25498
25955
|
errors: {
|
|
@@ -25511,7 +25968,8 @@ class CrmService {
|
|
|
25511
25968
|
* @throws ApiError
|
|
25512
25969
|
*/
|
|
25513
25970
|
static crmTagsDestroy({
|
|
25514
|
-
id
|
|
25971
|
+
id,
|
|
25972
|
+
app = ''
|
|
25515
25973
|
}) {
|
|
25516
25974
|
return request(OpenAPI, {
|
|
25517
25975
|
method: 'DELETE',
|
|
@@ -25519,6 +25977,9 @@ class CrmService {
|
|
|
25519
25977
|
path: {
|
|
25520
25978
|
'id': id
|
|
25521
25979
|
},
|
|
25980
|
+
query: {
|
|
25981
|
+
'app': app
|
|
25982
|
+
},
|
|
25522
25983
|
errors: {
|
|
25523
25984
|
403: `Missing required permission \`Ibl.CRM/Tags/delete\`.`,
|
|
25524
25985
|
404: `Tag not found.`
|
|
@@ -25534,6 +25995,7 @@ class CrmService {
|
|
|
25534
25995
|
* @throws ApiError
|
|
25535
25996
|
*/
|
|
25536
25997
|
static crmViewsList({
|
|
25998
|
+
app = '',
|
|
25537
25999
|
dateFilter,
|
|
25538
26000
|
endDate,
|
|
25539
26001
|
objectType,
|
|
@@ -25548,6 +26010,7 @@ class CrmService {
|
|
|
25548
26010
|
method: 'GET',
|
|
25549
26011
|
url: '/api/crm/views/',
|
|
25550
26012
|
query: {
|
|
26013
|
+
'app': app,
|
|
25551
26014
|
'date_filter': dateFilter,
|
|
25552
26015
|
'end_date': endDate,
|
|
25553
26016
|
'object_type': objectType,
|
|
@@ -25573,11 +26036,15 @@ class CrmService {
|
|
|
25573
26036
|
* @throws ApiError
|
|
25574
26037
|
*/
|
|
25575
26038
|
static crmViewsCreate({
|
|
25576
|
-
requestBody
|
|
26039
|
+
requestBody,
|
|
26040
|
+
app = ''
|
|
25577
26041
|
}) {
|
|
25578
26042
|
return request(OpenAPI, {
|
|
25579
26043
|
method: 'POST',
|
|
25580
26044
|
url: '/api/crm/views/',
|
|
26045
|
+
query: {
|
|
26046
|
+
'app': app
|
|
26047
|
+
},
|
|
25581
26048
|
body: requestBody,
|
|
25582
26049
|
mediaType: 'application/json',
|
|
25583
26050
|
errors: {
|
|
@@ -25593,7 +26060,8 @@ class CrmService {
|
|
|
25593
26060
|
* @throws ApiError
|
|
25594
26061
|
*/
|
|
25595
26062
|
static crmViewsRetrieve({
|
|
25596
|
-
id
|
|
26063
|
+
id,
|
|
26064
|
+
app = ''
|
|
25597
26065
|
}) {
|
|
25598
26066
|
return request(OpenAPI, {
|
|
25599
26067
|
method: 'GET',
|
|
@@ -25601,6 +26069,9 @@ class CrmService {
|
|
|
25601
26069
|
path: {
|
|
25602
26070
|
'id': id
|
|
25603
26071
|
},
|
|
26072
|
+
query: {
|
|
26073
|
+
'app': app
|
|
26074
|
+
},
|
|
25604
26075
|
errors: {
|
|
25605
26076
|
403: `Missing required permission \`Ibl.CRM/Views/read\`.`,
|
|
25606
26077
|
404: `View not found.`
|
|
@@ -25615,7 +26086,8 @@ class CrmService {
|
|
|
25615
26086
|
*/
|
|
25616
26087
|
static crmViewsUpdate({
|
|
25617
26088
|
id,
|
|
25618
|
-
requestBody
|
|
26089
|
+
requestBody,
|
|
26090
|
+
app = ''
|
|
25619
26091
|
}) {
|
|
25620
26092
|
return request(OpenAPI, {
|
|
25621
26093
|
method: 'PUT',
|
|
@@ -25623,6 +26095,9 @@ class CrmService {
|
|
|
25623
26095
|
path: {
|
|
25624
26096
|
'id': id
|
|
25625
26097
|
},
|
|
26098
|
+
query: {
|
|
26099
|
+
'app': app
|
|
26100
|
+
},
|
|
25626
26101
|
body: requestBody,
|
|
25627
26102
|
mediaType: 'application/json',
|
|
25628
26103
|
errors: {
|
|
@@ -25640,6 +26115,7 @@ class CrmService {
|
|
|
25640
26115
|
*/
|
|
25641
26116
|
static crmViewsPartialUpdate({
|
|
25642
26117
|
id,
|
|
26118
|
+
app = '',
|
|
25643
26119
|
requestBody
|
|
25644
26120
|
}) {
|
|
25645
26121
|
return request(OpenAPI, {
|
|
@@ -25648,6 +26124,9 @@ class CrmService {
|
|
|
25648
26124
|
path: {
|
|
25649
26125
|
'id': id
|
|
25650
26126
|
},
|
|
26127
|
+
query: {
|
|
26128
|
+
'app': app
|
|
26129
|
+
},
|
|
25651
26130
|
body: requestBody,
|
|
25652
26131
|
mediaType: 'application/json',
|
|
25653
26132
|
errors: {
|
|
@@ -25664,7 +26143,8 @@ class CrmService {
|
|
|
25664
26143
|
* @throws ApiError
|
|
25665
26144
|
*/
|
|
25666
26145
|
static crmViewsDestroy({
|
|
25667
|
-
id
|
|
26146
|
+
id,
|
|
26147
|
+
app = ''
|
|
25668
26148
|
}) {
|
|
25669
26149
|
return request(OpenAPI, {
|
|
25670
26150
|
method: 'DELETE',
|
|
@@ -25672,12 +26152,201 @@ class CrmService {
|
|
|
25672
26152
|
path: {
|
|
25673
26153
|
'id': id
|
|
25674
26154
|
},
|
|
26155
|
+
query: {
|
|
26156
|
+
'app': app
|
|
26157
|
+
},
|
|
25675
26158
|
errors: {
|
|
25676
26159
|
403: `Missing required permission \`Ibl.CRM/Views/delete\`.`,
|
|
25677
26160
|
404: `View not found.`
|
|
25678
26161
|
}
|
|
25679
26162
|
});
|
|
25680
26163
|
}
|
|
26164
|
+
/**
|
|
26165
|
+
* List web forms
|
|
26166
|
+
* Your Platform's web forms, drafts included.
|
|
26167
|
+
*
|
|
26168
|
+
* **Required permission:** `Ibl.CRM/WebForms/list`.
|
|
26169
|
+
* @returns PaginatedWebFormList
|
|
26170
|
+
* @throws ApiError
|
|
26171
|
+
*/
|
|
26172
|
+
static crmWebFormsList({
|
|
26173
|
+
app = '',
|
|
26174
|
+
dateFilter,
|
|
26175
|
+
endDate,
|
|
26176
|
+
ordering,
|
|
26177
|
+
page,
|
|
26178
|
+
pageSize,
|
|
26179
|
+
search,
|
|
26180
|
+
startDate
|
|
26181
|
+
}) {
|
|
26182
|
+
return request(OpenAPI, {
|
|
26183
|
+
method: 'GET',
|
|
26184
|
+
url: '/api/crm/web-forms/',
|
|
26185
|
+
query: {
|
|
26186
|
+
'app': app,
|
|
26187
|
+
'date_filter': dateFilter,
|
|
26188
|
+
'end_date': endDate,
|
|
26189
|
+
'ordering': ordering,
|
|
26190
|
+
'page': page,
|
|
26191
|
+
'page_size': pageSize,
|
|
26192
|
+
'search': search,
|
|
26193
|
+
'start_date': startDate
|
|
26194
|
+
}
|
|
26195
|
+
});
|
|
26196
|
+
}
|
|
26197
|
+
/**
|
|
26198
|
+
* Create a web form
|
|
26199
|
+
* `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.
|
|
26200
|
+
*
|
|
26201
|
+
* **Required permission:** `Ibl.CRM/WebForms/action`; a new `lead_source_code` also needs `Ibl.CRM/Pipelines/action`.
|
|
26202
|
+
* @returns WebForm
|
|
26203
|
+
* @throws ApiError
|
|
26204
|
+
*/
|
|
26205
|
+
static crmWebFormsCreate({
|
|
26206
|
+
requestBody,
|
|
26207
|
+
app = ''
|
|
26208
|
+
}) {
|
|
26209
|
+
return request(OpenAPI, {
|
|
26210
|
+
method: 'POST',
|
|
26211
|
+
url: '/api/crm/web-forms/',
|
|
26212
|
+
query: {
|
|
26213
|
+
'app': app
|
|
26214
|
+
},
|
|
26215
|
+
body: requestBody,
|
|
26216
|
+
mediaType: 'application/json'
|
|
26217
|
+
});
|
|
26218
|
+
}
|
|
26219
|
+
/**
|
|
26220
|
+
* Retrieve a web form
|
|
26221
|
+
* **Required permission:** `Ibl.CRM/WebForms/read`.
|
|
26222
|
+
* @returns WebForm
|
|
26223
|
+
* @throws ApiError
|
|
26224
|
+
*/
|
|
26225
|
+
static crmWebFormsRetrieve({
|
|
26226
|
+
slug,
|
|
26227
|
+
app = ''
|
|
26228
|
+
}) {
|
|
26229
|
+
return request(OpenAPI, {
|
|
26230
|
+
method: 'GET',
|
|
26231
|
+
url: '/api/crm/web-forms/{slug}/',
|
|
26232
|
+
path: {
|
|
26233
|
+
'slug': slug
|
|
26234
|
+
},
|
|
26235
|
+
query: {
|
|
26236
|
+
'app': app
|
|
26237
|
+
}
|
|
26238
|
+
});
|
|
26239
|
+
}
|
|
26240
|
+
/**
|
|
26241
|
+
* Replace a web form
|
|
26242
|
+
* **Required permission:** `Ibl.CRM/WebForms/write`; a new `routing.lead_source_code` also needs `Ibl.CRM/Pipelines/action`.
|
|
26243
|
+
* @returns WebForm
|
|
26244
|
+
* @throws ApiError
|
|
26245
|
+
*/
|
|
26246
|
+
static crmWebFormsUpdate({
|
|
26247
|
+
slug,
|
|
26248
|
+
requestBody,
|
|
26249
|
+
app = ''
|
|
26250
|
+
}) {
|
|
26251
|
+
return request(OpenAPI, {
|
|
26252
|
+
method: 'PUT',
|
|
26253
|
+
url: '/api/crm/web-forms/{slug}/',
|
|
26254
|
+
path: {
|
|
26255
|
+
'slug': slug
|
|
26256
|
+
},
|
|
26257
|
+
query: {
|
|
26258
|
+
'app': app
|
|
26259
|
+
},
|
|
26260
|
+
body: requestBody,
|
|
26261
|
+
mediaType: 'application/json'
|
|
26262
|
+
});
|
|
26263
|
+
}
|
|
26264
|
+
/**
|
|
26265
|
+
* Update a web form
|
|
26266
|
+
* `fields`, `routing` and `metadata` are replaced whole when sent. Publishing rules apply to the form as saved.
|
|
26267
|
+
*
|
|
26268
|
+
* **Required permission:** `Ibl.CRM/WebForms/write`; a new `routing.lead_source_code` also needs `Ibl.CRM/Pipelines/action`.
|
|
26269
|
+
* @returns WebForm
|
|
26270
|
+
* @throws ApiError
|
|
26271
|
+
*/
|
|
26272
|
+
static crmWebFormsPartialUpdate({
|
|
26273
|
+
slug,
|
|
26274
|
+
app = '',
|
|
26275
|
+
requestBody
|
|
26276
|
+
}) {
|
|
26277
|
+
return request(OpenAPI, {
|
|
26278
|
+
method: 'PATCH',
|
|
26279
|
+
url: '/api/crm/web-forms/{slug}/',
|
|
26280
|
+
path: {
|
|
26281
|
+
'slug': slug
|
|
26282
|
+
},
|
|
26283
|
+
query: {
|
|
26284
|
+
'app': app
|
|
26285
|
+
},
|
|
26286
|
+
body: requestBody,
|
|
26287
|
+
mediaType: 'application/json'
|
|
26288
|
+
});
|
|
26289
|
+
}
|
|
26290
|
+
/**
|
|
26291
|
+
* Delete a web form
|
|
26292
|
+
* Deletes the form and its submissions log; the persons, deals and notes it filed stay.
|
|
26293
|
+
*
|
|
26294
|
+
* **Required permission:** `Ibl.CRM/WebForms/delete`.
|
|
26295
|
+
* @returns void
|
|
26296
|
+
* @throws ApiError
|
|
26297
|
+
*/
|
|
26298
|
+
static crmWebFormsDestroy({
|
|
26299
|
+
slug,
|
|
26300
|
+
app = ''
|
|
26301
|
+
}) {
|
|
26302
|
+
return request(OpenAPI, {
|
|
26303
|
+
method: 'DELETE',
|
|
26304
|
+
url: '/api/crm/web-forms/{slug}/',
|
|
26305
|
+
path: {
|
|
26306
|
+
'slug': slug
|
|
26307
|
+
},
|
|
26308
|
+
query: {
|
|
26309
|
+
'app': app
|
|
26310
|
+
}
|
|
26311
|
+
});
|
|
26312
|
+
}
|
|
26313
|
+
/**
|
|
26314
|
+
* A web form's submissions
|
|
26315
|
+
* Newest first, paginated; `date_filter` (or `start_date` + `end_date`) narrows to submissions in a window.
|
|
26316
|
+
*
|
|
26317
|
+
* **Required permission:** `Ibl.CRM/WebForms/list`.
|
|
26318
|
+
* @returns PaginatedWebFormSubmissionList
|
|
26319
|
+
* @throws ApiError
|
|
26320
|
+
*/
|
|
26321
|
+
static crmWebFormsSubmissionsList({
|
|
26322
|
+
slug,
|
|
26323
|
+
app = '',
|
|
26324
|
+
dateFilter,
|
|
26325
|
+
endDate,
|
|
26326
|
+
page,
|
|
26327
|
+
pageSize,
|
|
26328
|
+
startDate
|
|
26329
|
+
}) {
|
|
26330
|
+
return request(OpenAPI, {
|
|
26331
|
+
method: 'GET',
|
|
26332
|
+
url: '/api/crm/web-forms/{slug}/submissions/',
|
|
26333
|
+
path: {
|
|
26334
|
+
'slug': slug
|
|
26335
|
+
},
|
|
26336
|
+
query: {
|
|
26337
|
+
'app': app,
|
|
26338
|
+
'date_filter': dateFilter,
|
|
26339
|
+
'end_date': endDate,
|
|
26340
|
+
'page': page,
|
|
26341
|
+
'page_size': pageSize,
|
|
26342
|
+
'start_date': startDate
|
|
26343
|
+
},
|
|
26344
|
+
errors: {
|
|
26345
|
+
403: `Missing \`Ibl.CRM/WebForms/list\`.`,
|
|
26346
|
+
404: `Web form not found.`
|
|
26347
|
+
}
|
|
26348
|
+
});
|
|
26349
|
+
}
|
|
25681
26350
|
}
|
|
25682
26351
|
|
|
25683
26352
|
class CustomDomainsService {
|
|
@@ -28861,6 +29530,39 @@ class SkillsService {
|
|
|
28861
29530
|
}
|
|
28862
29531
|
}
|
|
28863
29532
|
|
|
29533
|
+
class V1CoursesService {
|
|
29534
|
+
/**
|
|
29535
|
+
* Get course metadata
|
|
29536
|
+
* 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.
|
|
29537
|
+
*
|
|
29538
|
+
* 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.
|
|
29539
|
+
* @returns any
|
|
29540
|
+
* @throws ApiError
|
|
29541
|
+
*/
|
|
29542
|
+
static v1CoursesMetadataRetrieve({
|
|
29543
|
+
courseId,
|
|
29544
|
+
courseKey,
|
|
29545
|
+
iblaiOrg
|
|
29546
|
+
}) {
|
|
29547
|
+
return request(OpenAPI, {
|
|
29548
|
+
method: 'GET',
|
|
29549
|
+
url: '/v1/courses/metadata',
|
|
29550
|
+
headers: {
|
|
29551
|
+
'iblai-org': iblaiOrg
|
|
29552
|
+
},
|
|
29553
|
+
query: {
|
|
29554
|
+
'course_id': courseId,
|
|
29555
|
+
'course_key': courseKey
|
|
29556
|
+
},
|
|
29557
|
+
errors: {
|
|
29558
|
+
400: `course_id missing, or a service account omitted iblai-org.`,
|
|
29559
|
+
403: `iblai-org names another platform.`,
|
|
29560
|
+
404: `Course or platform not found.`
|
|
29561
|
+
}
|
|
29562
|
+
});
|
|
29563
|
+
}
|
|
29564
|
+
}
|
|
29565
|
+
|
|
28864
29566
|
class V1LmsService {
|
|
28865
29567
|
/**
|
|
28866
29568
|
* Call edX as a user
|
|
@@ -29192,5 +29894,5 @@ class V1StudioService {
|
|
|
29192
29894
|
}
|
|
29193
29895
|
}
|
|
29194
29896
|
|
|
29195
|
-
export { AcceptanceEnum, ActivityTypeEnum, AiAnalyticsService, AnalyticsService, ApiError, AutoRechargeTriggerResponseStatusEnum, BillingService, BlankEnum, BusinessTypeEnum, CancelError, CancelablePromise, CareerService, CatalogService, CeleryHeartbeatFailStatusEnum, CeleryHeartbeatStatusEnum, CommerceService, CoreService, CoursesProgressFrequencyEnum, CoursesProgressLearnerScopeEnum, CredentialsService, CreditTransactionHistoryStatusEnum, CrmService, CustomDomainsService, DirEnum, DirectionEnum, DisabilityStatusEnum, EthnicityEnum, EventsEnum, EximService, FeaturesService, FieldTypeEnum, FlowTypeEnum, GenderEnum, GooglePayAccountResponseStatusEnum, GradePostedNotifyModeEnum, GrandfatheringStrategyEnum, HistoryEntryActionEnum, HumanSupportRecipientModeEnum, InstitutionTypeEnum, IntervalEnum, ItemTypeEnum, KindEnum, LifecycleStageEnum, MediaService, MediaTypeEnum, NotificationFrequencyEnum, NotificationSourceTypeEnum, NotificationsService, ObjectTypeEnum, OpenAPI, PeriodEnum, PlatformApiKeyModeEnum, PlatformApplicationFeeActionActionEnum, PlatformApplicationPlacementUpdateStatusEnum, PlatformApplicationTransitionActionEnum, PlatformListStatusEnum, ProgramTypeEnum, RecipientsRecipientModeEnum, RecommendationsService, ReportsService, RoleEnum, SavedViewTypeEnum, ScimService, SearchService, SkillsService, SourceEnum, StateEnum, Status05cEnum, Status0e3Enum, Status147Enum, Status3daEnum, StripeCheckoutSessionRequestModeEnum, TimezoneEnum, TransactionTypeEnum, Type6d9Enum, V1LmsService, V1RbacService, V1StudioService };
|
|
29897
|
+
export { AcceptanceEnum, ActivityTypeEnum, AiAnalyticsService, AnalyticsService, ApiError, AutoRechargeTriggerResponseStatusEnum, BillingService, BlankEnum, BusinessTypeEnum, CancelError, CancelablePromise, CareerService, CatalogService, CeleryHeartbeatFailStatusEnum, CeleryHeartbeatStatusEnum, CommerceService, CoreService, CoursesProgressFrequencyEnum, CoursesProgressLearnerScopeEnum, CredentialsService, CreditTransactionHistoryStatusEnum, CrmService, CustomDomainsService, DirEnum, DirectionEnum, DisabilityStatusEnum, EthnicityEnum, EventsEnum, EximService, FeaturesService, FieldTypeEnum, FlowTypeEnum, GenderEnum, GooglePayAccountResponseStatusEnum, GradePostedNotifyModeEnum, GrandfatheringStrategyEnum, HistoryEntryActionEnum, HumanSupportRecipientModeEnum, InstitutionTypeEnum, IntervalEnum, ItemTypeEnum, KindEnum, LifecycleStageEnum, MediaService, MediaTypeEnum, NotificationFrequencyEnum, NotificationSourceTypeEnum, NotificationsService, ObjectTypeEnum, OpenAPI, PeriodEnum, PlatformApiKeyModeEnum, PlatformApplicationFeeActionActionEnum, PlatformApplicationPlacementUpdateStatusEnum, PlatformApplicationTransitionActionEnum, PlatformListStatusEnum, ProgramTypeEnum, RecipientsRecipientModeEnum, RecommendationsService, ReportsService, RoleEnum, SavedViewTypeEnum, ScimService, SearchService, SkillsService, SourceEnum, StateEnum, Status05cEnum, Status0e3Enum, Status147Enum, Status3daEnum, StripeCheckoutSessionRequestModeEnum, TimezoneEnum, TransactionTypeEnum, Type240Enum, Type6d9Enum, V1CoursesService, V1LmsService, V1RbacService, V1StudioService };
|
|
29196
29898
|
//# sourceMappingURL=index.esm.js.map
|